Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 1 | /* |
Uwe Hermann | d110764 | 2007-08-29 17:52:32 +0000 | [diff] [blame] | 2 | * This file is part of the flashrom project. |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 3 | * |
Uwe Hermann | d22a1d4 | 2007-09-09 20:21:05 +0000 | [diff] [blame] | 4 | * Copyright (C) 2000 Silicon Integrated System Corporation |
| 5 | * Copyright (C) 2004 Tyan Corp |
Stefan Reinauer | 4c390c8 | 2008-07-02 13:33:09 +0000 | [diff] [blame] | 6 | * Copyright (C) 2005-2008 coresystems GmbH <stepan@openbios.org> |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 7 | * Copyright (C) 2006-2009 Carl-Daniel Hailfinger |
Sean Nelson | c57a920 | 2010-01-04 17:15:23 +0000 | [diff] [blame] | 8 | * Copyright (C) 2009 Sean Nelson <audiohacked@gmail.com> |
Uwe Hermann | d110764 | 2007-08-29 17:52:32 +0000 | [diff] [blame] | 9 | * |
Stefan Reinauer | ce53297 | 2007-05-23 17:20:56 +0000 | [diff] [blame] | 10 | * 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 Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 14 | * |
Stefan Reinauer | ce53297 | 2007-05-23 17:20:56 +0000 | [diff] [blame] | 15 | * 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 Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 19 | */ |
| 20 | |
| 21 | #include "flash.h" |
Carl-Daniel Hailfinger | 0845464 | 2009-06-15 14:14:48 +0000 | [diff] [blame] | 22 | #include "flashchips.h" |
Sean Nelson | 14ba668 | 2010-02-26 05:48:29 +0000 | [diff] [blame] | 23 | #include "chipdrivers.h" |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 24 | |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 25 | /** |
Uwe Hermann | a972040 | 2009-05-21 15:55:46 +0000 | [diff] [blame] | 26 | * List of supported flash chips. |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 27 | * |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 28 | * Temporarily, this file is sorted alphabetically by vendor and name to |
| 29 | * assist with merging the Chromium fork of flashrom. |
| 30 | * |
| 31 | * The usual intention is that that this list is sorted by vendor, then chip |
| 32 | * family and chip density, which is useful for the output of 'flashrom -L'. |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 33 | */ |
Carl-Daniel Hailfinger | 4c82318 | 2011-05-04 00:39:50 +0000 | [diff] [blame] | 34 | const struct flashchip flashchips[] = { |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 35 | |
Carl-Daniel Hailfinger | 21eedec | 2009-07-23 12:42:01 +0000 | [diff] [blame] | 36 | /* |
| 37 | * .vendor = Vendor name |
| 38 | * .name = Chip name |
| 39 | * .bustype = Supported flash bus types (Parallel, LPC...) |
| 40 | * .manufacture_id = Manufacturer chip ID |
| 41 | * .model_id = Model chip ID |
| 42 | * .total_size = Total size in (binary) kbytes |
| 43 | * .page_size = Page or eraseblock(?) size in bytes |
| 44 | * .tested = Test status |
| 45 | * .probe = Probe function |
| 46 | * .probe_timing = Probe function delay |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 47 | * .block_erasers[] = Array of erase layouts and erase functions |
| 48 | * { |
| 49 | * .eraseblocks[] = Array of { blocksize, blockcount } |
| 50 | * .block_erase = Block erase function |
| 51 | * } |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 52 | * .printlock = Chip lock status function |
| 53 | * .unlock = Chip unlock function |
Carl-Daniel Hailfinger | 21eedec | 2009-07-23 12:42:01 +0000 | [diff] [blame] | 54 | * .write = Chip write function |
| 55 | * .read = Chip read function |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 56 | * .voltage = Voltage range in millivolt |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 57 | */ |
| 58 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 59 | { |
| 60 | .vendor = "AMD", |
| 61 | .name = "Am29F002(N)BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 62 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 63 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 64 | .model_id = AMD_AM29F002BB, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 65 | .total_size = 256, |
| 66 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 67 | .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 68 | .tested = TEST_UNTESTED, |
| 69 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 70 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 71 | .block_erasers = |
| 72 | { |
| 73 | { |
| 74 | .eraseblocks = { |
| 75 | {16 * 1024, 1}, |
| 76 | {8 * 1024, 2}, |
| 77 | {32 * 1024, 1}, |
| 78 | {64 * 1024, 3}, |
| 79 | }, |
| 80 | .block_erase = erase_sector_jedec, |
| 81 | }, { |
| 82 | .eraseblocks = { {256 * 1024, 1} }, |
| 83 | .block_erase = erase_chip_block_jedec, |
| 84 | }, |
| 85 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 86 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 87 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 88 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 89 | }, |
| 90 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 91 | { |
| 92 | .vendor = "AMD", |
| 93 | .name = "Am29F002(N)BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 94 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 95 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 96 | .model_id = AMD_AM29F002BT, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 97 | .total_size = 256, |
| 98 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 99 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA, |
| 100 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 101 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 102 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 103 | .block_erasers = |
| 104 | { |
| 105 | { |
| 106 | .eraseblocks = { |
| 107 | {64 * 1024, 3}, |
| 108 | {32 * 1024, 1}, |
| 109 | {8 * 1024, 2}, |
| 110 | {16 * 1024, 1}, |
| 111 | }, |
| 112 | .block_erase = erase_sector_jedec, |
| 113 | }, { |
| 114 | .eraseblocks = { {256 * 1024, 1} }, |
| 115 | .block_erase = erase_chip_block_jedec, |
| 116 | }, |
| 117 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 118 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 119 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 120 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 121 | }, |
| 122 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 123 | { |
| 124 | .vendor = "AMD", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 125 | .name = "Am29F010", |
| 126 | .bustype = BUS_PARALLEL, |
| 127 | .manufacture_id = AMD_ID, |
| 128 | .model_id = AMD_AM29F010, |
| 129 | .total_size = 128, |
| 130 | .page_size = 16 * 1024, |
| 131 | .feature_bits = FEATURE_SHORT_RESET, |
| 132 | .tested = TEST_UNTESTED, |
| 133 | .probe = probe_jedec, |
| 134 | .probe_timing = TIMING_ZERO, |
| 135 | .block_erasers = |
| 136 | { |
| 137 | { |
| 138 | .eraseblocks = { {16 * 1024, 8} }, |
| 139 | .block_erase = erase_sector_jedec, |
| 140 | }, { |
| 141 | .eraseblocks = { {128 * 1024, 1} }, |
| 142 | .block_erase = erase_chip_block_jedec, |
| 143 | }, |
| 144 | }, |
| 145 | .write = write_jedec_1, |
| 146 | .read = read_memmapped, |
| 147 | .voltage = {4500, 5500}, |
| 148 | }, |
| 149 | |
| 150 | { |
| 151 | .vendor = "AMD", |
| 152 | .name = "Am29F010A/B", |
| 153 | .bustype = BUS_PARALLEL, |
| 154 | .manufacture_id = AMD_ID, |
| 155 | .model_id = AMD_AM29F010, |
| 156 | .total_size = 128, |
| 157 | .page_size = 16 * 1024, |
| 158 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Alan Green | a4e579f | 2019-07-24 14:18:39 +1000 | [diff] [blame] | 159 | .tested = TEST_OK_PRE, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 160 | .probe = probe_jedec, |
| 161 | .probe_timing = TIMING_ZERO, |
| 162 | .block_erasers = |
| 163 | { |
| 164 | { |
| 165 | .eraseblocks = { {16 * 1024, 8} }, |
| 166 | .block_erase = erase_sector_jedec, |
| 167 | }, { |
| 168 | .eraseblocks = { {128 * 1024, 1} }, |
| 169 | .block_erase = erase_chip_block_jedec, |
| 170 | }, |
| 171 | }, |
| 172 | .write = write_jedec_1, |
| 173 | .read = read_memmapped, |
| 174 | .voltage = {4500, 5500}, |
| 175 | }, |
| 176 | |
| 177 | { |
| 178 | .vendor = "AMD", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 179 | .name = "Am29F016D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 180 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 181 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 182 | .model_id = AMD_AM29F016D, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 183 | .total_size = 2 * 1024, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 184 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 185 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 186 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 187 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 188 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 189 | .block_erasers = |
| 190 | { |
| 191 | { |
| 192 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 193 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 194 | }, { |
| 195 | .eraseblocks = { {2048 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 196 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 197 | }, |
| 198 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 199 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 200 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 201 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 202 | }, |
| 203 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 204 | { |
| 205 | .vendor = "AMD", |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 206 | .name = "Am29F040", |
| 207 | .bustype = BUS_PARALLEL, |
| 208 | .manufacture_id = AMD_ID, |
| 209 | .model_id = AMD_AM29F040, |
| 210 | .total_size = 512, |
| 211 | .page_size = 64 * 1024, |
| 212 | .feature_bits = FEATURE_EITHER_RESET, |
| 213 | .tested = TEST_UNTESTED, |
| 214 | .probe = probe_jedec, |
| 215 | .probe_timing = TIMING_ZERO, |
| 216 | .block_erasers = |
| 217 | { |
| 218 | { |
| 219 | .eraseblocks = { {64 * 1024, 8} }, |
| 220 | .block_erase = erase_sector_jedec, |
| 221 | }, { |
| 222 | .eraseblocks = { {512 * 1024, 1} }, |
| 223 | .block_erase = erase_chip_block_jedec, |
| 224 | }, |
| 225 | }, |
| 226 | .write = write_jedec_1, |
| 227 | .read = read_memmapped, |
| 228 | .voltage = {4500, 5500}, |
| 229 | }, |
| 230 | |
| 231 | { |
| 232 | .vendor = "AMD", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 233 | .name = "Am29F040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 234 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 235 | .manufacture_id = AMD_ID, |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 236 | .model_id = AMD_AM29F040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 237 | .total_size = 512, |
| 238 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 239 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 240 | .tested = TEST_UNTESTED, |
| 241 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 242 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 243 | .block_erasers = |
| 244 | { |
| 245 | { |
| 246 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 247 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 248 | }, { |
| 249 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 250 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 251 | }, |
| 252 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 253 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 254 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 255 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 256 | }, |
| 257 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 258 | { |
| 259 | .vendor = "AMD", |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 260 | .name = "Am29F080", |
| 261 | .bustype = BUS_PARALLEL, |
| 262 | .manufacture_id = AMD_ID, |
| 263 | .model_id = AMD_AM29F080, |
| 264 | .total_size = 1024, |
| 265 | .page_size = 64 * 1024, |
| 266 | .feature_bits = FEATURE_EITHER_RESET, |
| 267 | .tested = TEST_UNTESTED, |
| 268 | .probe = probe_jedec, |
| 269 | .probe_timing = TIMING_ZERO, |
| 270 | .block_erasers = |
| 271 | { |
| 272 | { |
| 273 | .eraseblocks = { {64 * 1024, 16} }, |
| 274 | .block_erase = erase_sector_jedec, |
| 275 | }, { |
| 276 | .eraseblocks = { {1024 * 1024, 1} }, |
| 277 | .block_erase = erase_chip_block_jedec, |
| 278 | }, |
| 279 | }, |
| 280 | .write = write_jedec_1, |
| 281 | .read = read_memmapped, |
| 282 | .voltage = {4500, 5500}, |
| 283 | }, |
| 284 | |
| 285 | { |
| 286 | .vendor = "AMD", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 287 | .name = "Am29F080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 288 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | 5bae438 | 2009-06-02 00:38:14 +0000 | [diff] [blame] | 289 | .manufacture_id = AMD_ID, |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 290 | .model_id = AMD_AM29F080, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 291 | .total_size = 1024, |
| 292 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 293 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 294 | .tested = TEST_UNTESTED, |
| 295 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 296 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 297 | .block_erasers = |
| 298 | { |
| 299 | { |
| 300 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 301 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 302 | }, { |
| 303 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 304 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 305 | }, |
| 306 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 307 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 308 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 309 | .voltage = {4500, 5500}, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 310 | }, |
| 311 | |
| 312 | { |
| 313 | .vendor = "AMD", |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 314 | .name = "Am29LV001BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 315 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 316 | .manufacture_id = AMD_ID, |
| 317 | .model_id = AMD_AM29LV001BB, |
| 318 | .total_size = 128, |
| 319 | .page_size = 64 * 1024, /* unused */ |
| 320 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 321 | .tested = TEST_OK_PREW, |
| 322 | .probe = probe_jedec, |
| 323 | .probe_timing = TIMING_ZERO, |
| 324 | .block_erasers = |
| 325 | { |
| 326 | { |
| 327 | .eraseblocks = { |
| 328 | {8 * 1024, 1}, |
| 329 | {4 * 1024, 2}, |
| 330 | {16 * 1024, 7}, |
| 331 | }, |
| 332 | .block_erase = erase_sector_jedec, |
| 333 | }, { |
| 334 | .eraseblocks = { {128 * 1024, 1} }, |
| 335 | .block_erase = erase_chip_block_jedec, |
| 336 | }, |
| 337 | }, |
| 338 | .write = write_jedec_1, |
| 339 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 340 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 341 | }, |
| 342 | |
| 343 | { |
| 344 | .vendor = "AMD", |
| 345 | .name = "Am29LV001BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 346 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 347 | .manufacture_id = AMD_ID, |
| 348 | .model_id = AMD_AM29LV001BT, |
| 349 | .total_size = 128, |
| 350 | .page_size = 64 * 1024, /* unused */ |
| 351 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 352 | .tested = TEST_UNTESTED, |
| 353 | .probe = probe_jedec, |
| 354 | .probe_timing = TIMING_ZERO, |
| 355 | .block_erasers = |
| 356 | { |
| 357 | { |
| 358 | .eraseblocks = { |
| 359 | {16 * 1024, 7}, |
| 360 | {4 * 1024, 2}, |
| 361 | {8 * 1024, 1}, |
| 362 | }, |
| 363 | .block_erase = erase_sector_jedec, |
| 364 | }, { |
| 365 | .eraseblocks = { {128 * 1024, 1} }, |
| 366 | .block_erase = erase_chip_block_jedec, |
| 367 | }, |
| 368 | }, |
| 369 | .write = write_jedec_1, |
| 370 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 371 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 372 | }, |
| 373 | |
| 374 | { |
| 375 | .vendor = "AMD", |
| 376 | .name = "Am29LV002BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 377 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 378 | .manufacture_id = AMD_ID, |
| 379 | .model_id = AMD_AM29LV002BB, |
| 380 | .total_size = 256, |
| 381 | .page_size = 64 * 1024, /* unused */ |
| 382 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 383 | .tested = TEST_UNTESTED, |
| 384 | .probe = probe_jedec, |
| 385 | .probe_timing = TIMING_ZERO, |
| 386 | .block_erasers = |
| 387 | { |
| 388 | { |
| 389 | .eraseblocks = { |
| 390 | {16 * 1024, 1}, |
| 391 | {8 * 1024, 2}, |
| 392 | {32 * 1024, 1}, |
| 393 | {64 * 1024, 3}, |
| 394 | }, |
| 395 | .block_erase = erase_sector_jedec, |
| 396 | }, { |
| 397 | .eraseblocks = { {256 * 1024, 1} }, |
| 398 | .block_erase = erase_chip_block_jedec, |
| 399 | }, |
| 400 | }, |
| 401 | .write = write_jedec_1, |
| 402 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 403 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 404 | }, |
| 405 | |
| 406 | { |
| 407 | .vendor = "AMD", |
| 408 | .name = "Am29LV002BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 409 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 410 | .manufacture_id = AMD_ID, |
| 411 | .model_id = AMD_AM29LV002BT, |
| 412 | .total_size = 256, |
| 413 | .page_size = 64 * 1024, /* unused */ |
| 414 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 415 | .tested = TEST_UNTESTED, |
| 416 | .probe = probe_jedec, |
| 417 | .probe_timing = TIMING_ZERO, |
| 418 | .block_erasers = |
| 419 | { |
| 420 | { |
| 421 | .eraseblocks = { |
| 422 | {64 * 1024, 3}, |
| 423 | {32 * 1024, 1}, |
| 424 | {8 * 1024, 2}, |
| 425 | {16 * 1024, 1}, |
| 426 | }, |
| 427 | .block_erase = erase_sector_jedec, |
| 428 | }, { |
| 429 | .eraseblocks = { {256 * 1024, 1} }, |
| 430 | .block_erase = erase_chip_block_jedec, |
| 431 | }, |
| 432 | }, |
| 433 | .write = write_jedec_1, |
| 434 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 435 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 436 | }, |
| 437 | |
| 438 | { |
| 439 | .vendor = "AMD", |
| 440 | .name = "Am29LV004BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 441 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 442 | .manufacture_id = AMD_ID, |
| 443 | .model_id = AMD_AM29LV004BB, |
| 444 | .total_size = 512, |
| 445 | .page_size = 64 * 1024, /* unused */ |
| 446 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 447 | .tested = TEST_UNTESTED, |
| 448 | .probe = probe_jedec, |
| 449 | .probe_timing = TIMING_ZERO, |
| 450 | .block_erasers = |
| 451 | { |
| 452 | { |
| 453 | .eraseblocks = { |
| 454 | {16 * 1024, 1}, |
| 455 | {8 * 1024, 2}, |
| 456 | {32 * 1024, 1}, |
| 457 | {64 * 1024, 7}, |
| 458 | }, |
| 459 | .block_erase = erase_sector_jedec, |
| 460 | }, { |
| 461 | .eraseblocks = { {512 * 1024, 1} }, |
| 462 | .block_erase = erase_chip_block_jedec, |
| 463 | }, |
| 464 | }, |
| 465 | .write = write_jedec_1, |
| 466 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 467 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 468 | }, |
| 469 | |
| 470 | { |
| 471 | .vendor = "AMD", |
| 472 | .name = "Am29LV004BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 473 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 474 | .manufacture_id = AMD_ID, |
| 475 | .model_id = AMD_AM29LV004BT, |
| 476 | .total_size = 512, |
| 477 | .page_size = 64 * 1024, /* unused */ |
| 478 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 479 | .tested = TEST_UNTESTED, |
| 480 | .probe = probe_jedec, |
| 481 | .probe_timing = TIMING_ZERO, |
| 482 | .block_erasers = |
| 483 | { |
| 484 | { |
| 485 | .eraseblocks = { |
| 486 | {64 * 1024, 7}, |
| 487 | {32 * 1024, 1}, |
| 488 | {8 * 1024, 2}, |
| 489 | {16 * 1024, 1}, |
| 490 | }, |
| 491 | .block_erase = erase_sector_jedec, |
| 492 | }, { |
| 493 | .eraseblocks = { {512 * 1024, 1} }, |
| 494 | .block_erase = erase_chip_block_jedec, |
| 495 | }, |
| 496 | }, |
| 497 | .write = write_jedec_1, |
| 498 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 499 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 500 | }, |
| 501 | |
| 502 | { |
| 503 | .vendor = "AMD", |
| 504 | .name = "Am29LV008BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 505 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 506 | .manufacture_id = AMD_ID, |
| 507 | .model_id = AMD_AM29LV008BB, |
| 508 | .total_size = 1024, |
| 509 | .page_size = 64 * 1024, /* unused */ |
| 510 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Uwe Hermann | 09ebd52 | 2011-08-25 22:54:23 +0000 | [diff] [blame] | 511 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 512 | .probe = probe_jedec, |
| 513 | .probe_timing = TIMING_ZERO, |
| 514 | .block_erasers = |
| 515 | { |
| 516 | { |
| 517 | .eraseblocks = { |
| 518 | {16 * 1024, 1}, |
| 519 | {8 * 1024, 2}, |
| 520 | {32 * 1024, 1}, |
| 521 | {64 * 1024, 15}, |
| 522 | }, |
| 523 | .block_erase = erase_sector_jedec, |
| 524 | }, { |
| 525 | .eraseblocks = { {1024 * 1024, 1} }, |
| 526 | .block_erase = erase_chip_block_jedec, |
| 527 | }, |
| 528 | }, |
| 529 | .write = write_jedec_1, |
| 530 | .read = read_memmapped, |
Alan Green | f5ad688 | 2019-06-27 12:09:13 +1000 | [diff] [blame] | 531 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 532 | }, |
| 533 | |
| 534 | { |
| 535 | .vendor = "AMD", |
| 536 | .name = "Am29LV008BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 537 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 538 | .manufacture_id = AMD_ID, |
| 539 | .model_id = AMD_AM29LV008BT, |
| 540 | .total_size = 1024, |
| 541 | .page_size = 64 * 1024, /* unused */ |
| 542 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 543 | .tested = TEST_UNTESTED, |
| 544 | .probe = probe_jedec, |
| 545 | .probe_timing = TIMING_ZERO, |
| 546 | .block_erasers = |
| 547 | { |
| 548 | { |
| 549 | .eraseblocks = { |
| 550 | {64 * 1024, 15}, |
| 551 | {32 * 1024, 1}, |
| 552 | {8 * 1024, 2}, |
| 553 | {16 * 1024, 1}, |
| 554 | }, |
| 555 | .block_erase = erase_sector_jedec, |
| 556 | }, { |
| 557 | .eraseblocks = { {1024 * 1024, 1} }, |
| 558 | .block_erase = erase_chip_block_jedec, |
| 559 | }, |
| 560 | }, |
| 561 | .write = write_jedec_1, |
| 562 | .read = read_memmapped, |
Alan Green | f5ad688 | 2019-06-27 12:09:13 +1000 | [diff] [blame] | 563 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 564 | }, |
| 565 | |
| 566 | { |
| 567 | .vendor = "AMD", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 568 | .name = "Am29LV040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 569 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 570 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 571 | .model_id = AMD_AM29LV040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 572 | .total_size = 512, |
| 573 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 574 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 575 | .tested = TEST_OK_PRE, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 576 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 577 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 578 | .block_erasers = |
| 579 | { |
| 580 | { |
| 581 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 582 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 583 | }, { |
| 584 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 585 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 586 | }, |
| 587 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 588 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 589 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 590 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 591 | }, |
| 592 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 593 | { |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 594 | .vendor = "AMD", |
| 595 | .name = "Am29LV081B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 596 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | 5bae438 | 2009-06-02 00:38:14 +0000 | [diff] [blame] | 597 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 598 | .model_id = AMD_AM29LV080B, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 599 | .total_size = 1024, |
| 600 | .page_size = 64 * 1024, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 601 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, /* datasheet specifies address as don't care */ |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 602 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 603 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 604 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 605 | .block_erasers = |
| 606 | { |
| 607 | { |
| 608 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 609 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 610 | }, { |
| 611 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 612 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 613 | }, |
| 614 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 615 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 616 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 617 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */ |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 618 | }, |
| 619 | |
| 620 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 621 | .vendor = "AMIC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 622 | .name = "A25L010", |
| 623 | .bustype = BUS_SPI, |
| 624 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 625 | .model_id = AMIC_A25L010, |
| 626 | .total_size = 128, |
| 627 | .page_size = 256, |
| 628 | .feature_bits = FEATURE_WRSR_WREN, |
| 629 | .tested = TEST_UNTESTED, |
| 630 | .probe = probe_spi_rdid, |
| 631 | .probe_timing = TIMING_ZERO, |
| 632 | .block_erasers = |
| 633 | { |
| 634 | { |
| 635 | .eraseblocks = { { 4 * 1024, 32 } }, |
| 636 | .block_erase = spi_block_erase_20, |
| 637 | }, { |
| 638 | .eraseblocks = { { 64 * 1024, 2 } }, |
| 639 | .block_erase = spi_block_erase_d8, |
| 640 | }, { |
| 641 | .eraseblocks = { { 128 * 1024, 1 } }, |
| 642 | .block_erase = spi_block_erase_c7, |
| 643 | } |
| 644 | }, |
| 645 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 646 | .unlock = spi_disable_blockprotect, |
| 647 | .write = spi_chip_write_256, |
| 648 | .read = spi_chip_read, |
| 649 | .voltage = {2700, 3600}, |
| 650 | }, |
| 651 | |
| 652 | { |
| 653 | .vendor = "AMIC", |
| 654 | .name = "A25L016", |
| 655 | .bustype = BUS_SPI, |
| 656 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 657 | .model_id = AMIC_A25L016, |
| 658 | .total_size = 2048, |
| 659 | .page_size = 256, |
| 660 | .feature_bits = FEATURE_WRSR_WREN, |
| 661 | .tested = TEST_UNTESTED, |
| 662 | .probe = probe_spi_rdid, |
| 663 | .probe_timing = TIMING_ZERO, |
| 664 | .block_erasers = |
| 665 | { |
| 666 | { |
| 667 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 668 | .block_erase = spi_block_erase_20, |
| 669 | }, { |
| 670 | .eraseblocks = { { 64 * 1024, 32 } }, |
| 671 | .block_erase = spi_block_erase_d8, |
| 672 | }, { |
| 673 | .eraseblocks = { { 2048 * 1024, 1 } }, |
| 674 | .block_erase = spi_block_erase_c7, |
| 675 | } |
| 676 | }, |
| 677 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 678 | .unlock = spi_disable_blockprotect, |
| 679 | .write = spi_chip_write_256, |
| 680 | .read = spi_chip_read, |
| 681 | .voltage = {2700, 3600}, |
| 682 | }, |
| 683 | |
| 684 | { |
| 685 | .vendor = "AMIC", |
| 686 | .name = "A25L020", |
| 687 | .bustype = BUS_SPI, |
| 688 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 689 | .model_id = AMIC_A25L020, |
| 690 | .total_size = 256, |
| 691 | .page_size = 256, |
| 692 | .feature_bits = FEATURE_WRSR_WREN, |
| 693 | .tested = TEST_UNTESTED, |
| 694 | .probe = probe_spi_rdid, |
| 695 | .probe_timing = TIMING_ZERO, |
| 696 | .block_erasers = |
| 697 | { |
| 698 | { |
| 699 | .eraseblocks = { { 4 * 1024, 64 } }, |
| 700 | .block_erase = spi_block_erase_20, |
| 701 | }, { |
| 702 | .eraseblocks = { { 64 * 1024, 4 } }, |
| 703 | .block_erase = spi_block_erase_d8, |
| 704 | }, { |
| 705 | .eraseblocks = { { 256 * 1024, 1 } }, |
| 706 | .block_erase = spi_block_erase_c7, |
| 707 | } |
| 708 | }, |
| 709 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 710 | .unlock = spi_disable_blockprotect, |
| 711 | .write = spi_chip_write_256, |
| 712 | .read = spi_chip_read, |
| 713 | .voltage = {2700, 3600}, |
| 714 | }, |
| 715 | |
| 716 | { |
| 717 | .vendor = "AMIC", |
| 718 | .name = "A25L032", |
| 719 | .bustype = BUS_SPI, |
| 720 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 721 | .model_id = AMIC_A25L032, |
| 722 | .total_size = 4096, |
| 723 | .page_size = 256, |
| 724 | /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */ |
| 725 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 726 | .tested = TEST_OK_PREW, |
| 727 | .probe = probe_spi_rdid, |
| 728 | .probe_timing = TIMING_ZERO, |
| 729 | .block_erasers = |
| 730 | { |
| 731 | { |
| 732 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 733 | .block_erase = spi_block_erase_20, |
| 734 | }, { |
| 735 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 736 | .block_erase = spi_block_erase_52, |
| 737 | }, { |
| 738 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 739 | .block_erase = spi_block_erase_d8, |
| 740 | }, { |
| 741 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 742 | .block_erase = spi_block_erase_60, |
| 743 | }, { |
| 744 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 745 | .block_erase = spi_block_erase_c7, |
| 746 | } |
| 747 | }, |
| 748 | .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */ |
| 749 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 750 | .write = spi_chip_write_256, |
| 751 | .read = spi_chip_read, |
| 752 | .voltage = {2700, 3600}, |
| 753 | }, |
| 754 | |
| 755 | { |
| 756 | .vendor = "AMIC", |
| 757 | .name = "A25L040", |
| 758 | .bustype = BUS_SPI, |
| 759 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 760 | .model_id = AMIC_A25L040, |
| 761 | .total_size = 512, |
| 762 | .page_size = 256, |
| 763 | .feature_bits = FEATURE_WRSR_WREN, |
| 764 | .tested = TEST_UNTESTED, |
| 765 | .probe = probe_spi_rdid, |
| 766 | .probe_timing = TIMING_ZERO, |
| 767 | .block_erasers = |
| 768 | { |
| 769 | { |
| 770 | .eraseblocks = { { 4 * 1024, 128 } }, |
| 771 | .block_erase = spi_block_erase_20, |
| 772 | }, { |
| 773 | .eraseblocks = { { 64 * 1024, 8 } }, |
| 774 | .block_erase = spi_block_erase_d8, |
| 775 | }, { |
| 776 | .eraseblocks = { { 512 * 1024, 1 } }, |
| 777 | .block_erase = spi_block_erase_c7, |
| 778 | } |
| 779 | }, |
| 780 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 781 | .unlock = spi_disable_blockprotect, |
| 782 | .write = spi_chip_write_256, |
| 783 | .read = spi_chip_read, |
| 784 | .voltage = {2700, 3600}, |
| 785 | }, |
| 786 | |
| 787 | { |
| 788 | .vendor = "AMIC", |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 789 | .name = "A25L05PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 790 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 791 | .manufacture_id = AMIC_ID, |
| 792 | .model_id = AMIC_A25L05PT, |
| 793 | .total_size = 64, |
| 794 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 795 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 796 | .tested = TEST_UNTESTED, |
| 797 | .probe = probe_spi_rdid4, |
| 798 | .probe_timing = TIMING_ZERO, |
| 799 | .block_erasers = |
| 800 | { |
| 801 | { |
| 802 | .eraseblocks = { |
| 803 | {32 * 1024, 1}, |
| 804 | {16 * 1024, 1}, |
| 805 | {8 * 1024, 1}, |
| 806 | {4 * 1024, 2}, |
| 807 | }, |
| 808 | .block_erase = spi_block_erase_d8, |
| 809 | }, { |
| 810 | .eraseblocks = { {64 * 1024, 1} }, |
| 811 | .block_erase = spi_block_erase_c7, |
| 812 | } |
| 813 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 814 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 815 | .unlock = spi_disable_blockprotect, |
| 816 | .write = spi_chip_write_256, |
| 817 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 818 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 819 | }, |
| 820 | |
| 821 | { |
| 822 | .vendor = "AMIC", |
| 823 | .name = "A25L05PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 824 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 825 | .manufacture_id = AMIC_ID, |
| 826 | .model_id = AMIC_A25L05PU, |
| 827 | .total_size = 64, |
| 828 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 829 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 830 | .tested = TEST_UNTESTED, |
| 831 | .probe = probe_spi_rdid4, |
| 832 | .probe_timing = TIMING_ZERO, |
| 833 | .block_erasers = |
| 834 | { |
| 835 | { |
| 836 | .eraseblocks = { |
| 837 | {4 * 1024, 2}, |
| 838 | {8 * 1024, 1}, |
| 839 | {16 * 1024, 1}, |
| 840 | {32 * 1024, 1}, |
| 841 | }, |
| 842 | .block_erase = spi_block_erase_d8, |
| 843 | }, { |
| 844 | .eraseblocks = { {64 * 1024, 1} }, |
| 845 | .block_erase = spi_block_erase_c7, |
| 846 | } |
| 847 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 848 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 849 | .unlock = spi_disable_blockprotect, |
| 850 | .write = spi_chip_write_256, |
| 851 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 852 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 853 | }, |
| 854 | |
| 855 | { |
| 856 | .vendor = "AMIC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 857 | .name = "A25L080", |
| 858 | .bustype = BUS_SPI, |
| 859 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 860 | .model_id = AMIC_A25L080, |
| 861 | .total_size = 1024, |
| 862 | .page_size = 256, |
| 863 | .feature_bits = FEATURE_WRSR_WREN, |
| 864 | .tested = TEST_UNTESTED, |
| 865 | .probe = probe_spi_rdid, |
| 866 | .probe_timing = TIMING_ZERO, |
| 867 | .block_erasers = |
| 868 | { |
| 869 | { |
| 870 | .eraseblocks = { { 4 * 1024, 256 } }, |
| 871 | .block_erase = spi_block_erase_20, |
| 872 | }, { |
| 873 | .eraseblocks = { { 64 * 1024, 16 } }, |
| 874 | .block_erase = spi_block_erase_d8, |
| 875 | }, { |
| 876 | .eraseblocks = { { 1024 * 1024, 1 } }, |
| 877 | .block_erase = spi_block_erase_c7, |
| 878 | } |
| 879 | }, |
| 880 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 881 | .unlock = spi_disable_blockprotect, |
| 882 | .write = spi_chip_write_256, |
| 883 | .read = spi_chip_read, |
| 884 | .voltage = {2700, 3600}, |
| 885 | }, |
| 886 | |
| 887 | { |
| 888 | .vendor = "AMIC", |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 889 | .name = "A25L10PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 890 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 891 | .manufacture_id = AMIC_ID, |
| 892 | .model_id = AMIC_A25L10PT, |
| 893 | .total_size = 128, |
| 894 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 895 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 896 | .tested = TEST_UNTESTED, |
| 897 | .probe = probe_spi_rdid4, |
| 898 | .probe_timing = TIMING_ZERO, |
| 899 | .block_erasers = |
| 900 | { |
| 901 | { |
| 902 | .eraseblocks = { |
| 903 | {64 * 1024, 1}, |
| 904 | {32 * 1024, 1}, |
| 905 | {16 * 1024, 1}, |
| 906 | {8 * 1024, 1}, |
| 907 | {4 * 1024, 2}, |
| 908 | }, |
| 909 | .block_erase = spi_block_erase_d8, |
| 910 | }, { |
| 911 | .eraseblocks = { {128 * 1024, 1} }, |
| 912 | .block_erase = spi_block_erase_c7, |
| 913 | } |
| 914 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 915 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 916 | .unlock = spi_disable_blockprotect, |
| 917 | .write = spi_chip_write_256, |
| 918 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 919 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 920 | }, |
| 921 | |
| 922 | { |
| 923 | .vendor = "AMIC", |
| 924 | .name = "A25L10PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 925 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 926 | .manufacture_id = AMIC_ID, |
| 927 | .model_id = AMIC_A25L10PU, |
| 928 | .total_size = 128, |
| 929 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 930 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 931 | .tested = TEST_UNTESTED, |
| 932 | .probe = probe_spi_rdid4, |
| 933 | .probe_timing = TIMING_ZERO, |
| 934 | .block_erasers = |
| 935 | { |
| 936 | { |
| 937 | .eraseblocks = { |
| 938 | {4 * 1024, 2}, |
| 939 | {8 * 1024, 1}, |
| 940 | {16 * 1024, 1}, |
| 941 | {32 * 1024, 1}, |
| 942 | {64 * 1024, 1}, |
| 943 | }, |
| 944 | .block_erase = spi_block_erase_d8, |
| 945 | }, { |
| 946 | .eraseblocks = { {128 * 1024, 1} }, |
| 947 | .block_erase = spi_block_erase_c7, |
| 948 | } |
| 949 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 950 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 951 | .unlock = spi_disable_blockprotect, |
| 952 | .write = spi_chip_write_256, |
| 953 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 954 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 955 | }, |
| 956 | |
| 957 | { |
| 958 | .vendor = "AMIC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 959 | .name = "A25L16PT", |
| 960 | .bustype = BUS_SPI, |
| 961 | .manufacture_id = AMIC_ID, |
| 962 | .model_id = AMIC_A25L16PT, |
| 963 | .total_size = 2048, |
| 964 | .page_size = 256, |
| 965 | .feature_bits = FEATURE_WRSR_WREN, |
| 966 | .tested = TEST_UNTESTED, |
| 967 | .probe = probe_spi_rdid4, |
| 968 | .probe_timing = TIMING_ZERO, |
| 969 | .block_erasers = |
| 970 | { |
| 971 | { |
| 972 | .eraseblocks = { |
| 973 | {64 * 1024, 31}, |
| 974 | {32 * 1024, 1}, |
| 975 | {16 * 1024, 1}, |
| 976 | {8 * 1024, 1}, |
| 977 | {4 * 1024, 2}, |
| 978 | }, |
| 979 | .block_erase = spi_block_erase_d8, |
| 980 | }, { |
| 981 | .eraseblocks = { {2048 * 1024, 1} }, |
| 982 | .block_erase = spi_block_erase_60, |
| 983 | }, { |
| 984 | .eraseblocks = { {2048 * 1024, 1} }, |
| 985 | .block_erase = spi_block_erase_c7, |
| 986 | } |
| 987 | }, |
| 988 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 989 | .unlock = spi_disable_blockprotect, |
| 990 | .write = spi_chip_write_256, |
| 991 | .read = spi_chip_read, |
| 992 | .voltage = {2700, 3600}, |
| 993 | }, |
| 994 | |
| 995 | { |
| 996 | .vendor = "AMIC", |
| 997 | .name = "A25L16PU", |
| 998 | .bustype = BUS_SPI, |
| 999 | .manufacture_id = AMIC_ID, |
| 1000 | .model_id = AMIC_A25L16PU, |
| 1001 | .total_size = 2048, |
| 1002 | .page_size = 256, |
| 1003 | .feature_bits = FEATURE_WRSR_WREN, |
| 1004 | .tested = TEST_OK_PR, |
| 1005 | .probe = probe_spi_rdid4, |
| 1006 | .probe_timing = TIMING_ZERO, |
| 1007 | .block_erasers = |
| 1008 | { |
| 1009 | { |
| 1010 | .eraseblocks = { |
| 1011 | {4 * 1024, 2}, |
| 1012 | {8 * 1024, 1}, |
| 1013 | {16 * 1024, 1}, |
| 1014 | {32 * 1024, 1}, |
| 1015 | {64 * 1024, 31}, |
| 1016 | }, |
| 1017 | .block_erase = spi_block_erase_d8, |
| 1018 | }, { |
| 1019 | .eraseblocks = { {2048 * 1024, 1} }, |
| 1020 | .block_erase = spi_block_erase_60, |
| 1021 | }, { |
| 1022 | .eraseblocks = { {2048 * 1024, 1} }, |
| 1023 | .block_erase = spi_block_erase_c7, |
| 1024 | } |
| 1025 | }, |
| 1026 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 1027 | .unlock = spi_disable_blockprotect, |
| 1028 | .write = spi_chip_write_256, |
| 1029 | .read = spi_chip_read, |
| 1030 | .voltage = {2700, 3600}, |
| 1031 | }, |
| 1032 | |
| 1033 | { |
| 1034 | .vendor = "AMIC", |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1035 | .name = "A25L20PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1036 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1037 | .manufacture_id = AMIC_ID, |
| 1038 | .model_id = AMIC_A25L20PT, |
| 1039 | .total_size = 256, |
| 1040 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1041 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1042 | .tested = TEST_UNTESTED, |
| 1043 | .probe = probe_spi_rdid4, |
| 1044 | .probe_timing = TIMING_ZERO, |
| 1045 | .block_erasers = |
| 1046 | { |
| 1047 | { |
| 1048 | .eraseblocks = { |
| 1049 | {64 * 1024, 3}, |
| 1050 | {32 * 1024, 1}, |
| 1051 | {16 * 1024, 1}, |
| 1052 | {8 * 1024, 1}, |
| 1053 | {4 * 1024, 2}, |
| 1054 | }, |
| 1055 | .block_erase = spi_block_erase_d8, |
| 1056 | }, { |
| 1057 | .eraseblocks = { {256 * 1024, 1} }, |
| 1058 | .block_erase = spi_block_erase_c7, |
| 1059 | } |
| 1060 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1061 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1062 | .unlock = spi_disable_blockprotect, |
| 1063 | .write = spi_chip_write_256, |
| 1064 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1065 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1066 | }, |
| 1067 | |
| 1068 | { |
| 1069 | .vendor = "AMIC", |
| 1070 | .name = "A25L20PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1071 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1072 | .manufacture_id = AMIC_ID, |
| 1073 | .model_id = AMIC_A25L20PU, |
| 1074 | .total_size = 256, |
| 1075 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1076 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1077 | .tested = TEST_UNTESTED, |
| 1078 | .probe = probe_spi_rdid4, |
| 1079 | .probe_timing = TIMING_ZERO, |
| 1080 | .block_erasers = |
| 1081 | { |
| 1082 | { |
| 1083 | .eraseblocks = { |
| 1084 | {4 * 1024, 2}, |
| 1085 | {8 * 1024, 1}, |
| 1086 | {16 * 1024, 1}, |
| 1087 | {32 * 1024, 1}, |
| 1088 | {64 * 1024, 3}, |
| 1089 | }, |
| 1090 | .block_erase = spi_block_erase_d8, |
| 1091 | }, { |
| 1092 | .eraseblocks = { {256 * 1024, 1} }, |
| 1093 | .block_erase = spi_block_erase_c7, |
| 1094 | } |
| 1095 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1096 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1097 | .unlock = spi_disable_blockprotect, |
| 1098 | .write = spi_chip_write_256, |
| 1099 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1100 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1101 | }, |
| 1102 | |
| 1103 | /* The A25L40P{T,U} chips are distinguished by their |
| 1104 | * erase block layouts, but without any distinction in RDID. |
| 1105 | * This inexplicable quirk was verified by Rudolf Marek |
| 1106 | * and discussed on the flashrom mailing list on 2010-07-12. |
| 1107 | */ |
| 1108 | { |
| 1109 | .vendor = "AMIC", |
| 1110 | .name = "A25L40PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1111 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1112 | .manufacture_id = AMIC_ID, |
| 1113 | .model_id = AMIC_A25L40PT, |
| 1114 | .total_size = 512, |
| 1115 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1116 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 1117 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1118 | .probe = probe_spi_rdid4, |
| 1119 | .probe_timing = TIMING_ZERO, |
| 1120 | .block_erasers = |
| 1121 | { |
| 1122 | { |
| 1123 | .eraseblocks = { |
| 1124 | {64 * 1024, 7}, |
| 1125 | {32 * 1024, 1}, |
| 1126 | {16 * 1024, 1}, |
| 1127 | {8 * 1024, 1}, |
| 1128 | {4 * 1024, 2}, |
| 1129 | }, |
| 1130 | .block_erase = spi_block_erase_d8, |
| 1131 | }, { |
| 1132 | .eraseblocks = { {512 * 1024, 1} }, |
| 1133 | .block_erase = spi_block_erase_c7, |
| 1134 | } |
| 1135 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1136 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1137 | .unlock = spi_disable_blockprotect, |
| 1138 | .write = spi_chip_write_256, |
| 1139 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1140 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1141 | }, |
| 1142 | |
| 1143 | { |
| 1144 | .vendor = "AMIC", |
| 1145 | .name = "A25L40PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1146 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1147 | .manufacture_id = AMIC_ID, |
| 1148 | .model_id = AMIC_A25L40PU, |
| 1149 | .total_size = 512, |
| 1150 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1151 | .feature_bits = FEATURE_WRSR_WREN, |
Angel Pons | 6f08835 | 2018-09-30 19:59:42 +0200 | [diff] [blame] | 1152 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1153 | .probe = probe_spi_rdid4, |
| 1154 | .probe_timing = TIMING_ZERO, |
| 1155 | .block_erasers = |
| 1156 | { |
| 1157 | { |
| 1158 | .eraseblocks = { |
| 1159 | {4 * 1024, 2}, |
| 1160 | {8 * 1024, 1}, |
| 1161 | {16 * 1024, 1}, |
| 1162 | {32 * 1024, 1}, |
| 1163 | {64 * 1024, 7}, |
| 1164 | }, |
| 1165 | .block_erase = spi_block_erase_d8, |
| 1166 | }, { |
| 1167 | .eraseblocks = { {512 * 1024, 1} }, |
| 1168 | .block_erase = spi_block_erase_c7, |
| 1169 | } |
| 1170 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1171 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1172 | .unlock = spi_disable_blockprotect, |
| 1173 | .write = spi_chip_write_256, |
| 1174 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1175 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1176 | }, |
| 1177 | |
| 1178 | { |
| 1179 | .vendor = "AMIC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 1180 | .name = "A25L512", |
| 1181 | .bustype = BUS_SPI, |
| 1182 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1183 | .model_id = AMIC_A25L512, |
| 1184 | .total_size = 64, |
| 1185 | .page_size = 256, |
| 1186 | .feature_bits = FEATURE_WRSR_WREN, |
| 1187 | .tested = TEST_UNTESTED, |
| 1188 | .probe = probe_spi_rdid, |
| 1189 | .probe_timing = TIMING_ZERO, |
| 1190 | .block_erasers = |
| 1191 | { |
| 1192 | { |
| 1193 | .eraseblocks = { { 4 * 1024, 16 } }, |
| 1194 | .block_erase = spi_block_erase_20, |
| 1195 | }, { |
| 1196 | .eraseblocks = { { 64 * 1024, 1 } }, |
| 1197 | .block_erase = spi_block_erase_d8, |
| 1198 | }, { |
| 1199 | .eraseblocks = { { 64 * 1024, 1 } }, |
| 1200 | .block_erase = spi_block_erase_c7, |
| 1201 | } |
| 1202 | }, |
| 1203 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 1204 | .unlock = spi_disable_blockprotect, |
| 1205 | .write = spi_chip_write_256, |
| 1206 | .read = spi_chip_read, |
| 1207 | .voltage = {2700, 3600}, |
| 1208 | }, |
| 1209 | |
| 1210 | { |
| 1211 | .vendor = "AMIC", |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1212 | .name = "A25L80P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1213 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1214 | .manufacture_id = AMIC_ID, |
| 1215 | .model_id = AMIC_A25L80P, |
| 1216 | .total_size = 1024, |
| 1217 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1218 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 1219 | .tested = TEST_OK_PRE, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1220 | .probe = probe_spi_rdid4, |
| 1221 | .probe_timing = TIMING_ZERO, |
| 1222 | .block_erasers = |
| 1223 | { |
| 1224 | { |
| 1225 | .eraseblocks = { |
| 1226 | {4 * 1024, 2}, |
| 1227 | {8 * 1024, 1}, |
| 1228 | {16 * 1024, 1}, |
| 1229 | {32 * 1024, 1}, |
| 1230 | {64 * 1024, 15}, |
| 1231 | }, |
| 1232 | .block_erase = spi_block_erase_d8, |
| 1233 | }, { |
| 1234 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1235 | .block_erase = spi_block_erase_c7, |
| 1236 | } |
| 1237 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1238 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1239 | .unlock = spi_disable_blockprotect, |
| 1240 | .write = spi_chip_write_256, |
| 1241 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1242 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1243 | }, |
| 1244 | |
| 1245 | { |
| 1246 | .vendor = "AMIC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 1247 | .name = "A25LQ032/A25LQ32A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1248 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1249 | .manufacture_id = AMIC_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 1250 | .model_id = AMIC_A25LQ032, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1251 | .total_size = 4096, |
| 1252 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 1253 | /* A25LQ32A supports SFDP */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1254 | /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */ |
| 1255 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 1256 | .tested = TEST_UNTESTED, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1257 | .probe = probe_spi_rdid, |
| 1258 | .probe_timing = TIMING_ZERO, |
| 1259 | .block_erasers = |
| 1260 | { |
| 1261 | { |
| 1262 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 1263 | .block_erase = spi_block_erase_20, |
| 1264 | }, { |
| 1265 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1266 | .block_erase = spi_block_erase_52, |
| 1267 | }, { |
| 1268 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1269 | .block_erase = spi_block_erase_d8, |
| 1270 | }, { |
| 1271 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1272 | .block_erase = spi_block_erase_60, |
| 1273 | }, { |
| 1274 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1275 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1276 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1277 | }, |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1278 | .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */ |
| 1279 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1280 | .write = spi_chip_write_256, |
| 1281 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1282 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1283 | }, |
| 1284 | |
| 1285 | { |
| 1286 | .vendor = "AMIC", |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1287 | .name = "A25LQ16", |
| 1288 | .bustype = BUS_SPI, |
| 1289 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1290 | .model_id = AMIC_A25LQ16, |
| 1291 | .total_size = 2048, |
| 1292 | .page_size = 256, |
| 1293 | /* supports SFDP */ |
| 1294 | /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */ |
| 1295 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1296 | .tested = TEST_UNTESTED, |
| 1297 | .probe = probe_spi_rdid, |
| 1298 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 1299 | .block_erasers = |
| 1300 | { |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1301 | { |
| 1302 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 1303 | .block_erase = spi_block_erase_20, |
| 1304 | }, { |
| 1305 | .eraseblocks = { { 64 * 1024, 32 } }, |
| 1306 | .block_erase = spi_block_erase_52, |
| 1307 | }, { |
| 1308 | .eraseblocks = { { 64 * 1024, 32 } }, |
| 1309 | .block_erase = spi_block_erase_d8, |
| 1310 | }, { |
| 1311 | .eraseblocks = { { 2048 * 1024, 1 } }, |
| 1312 | .block_erase = spi_block_erase_60, |
| 1313 | }, { |
| 1314 | .eraseblocks = { { 2048 * 1024, 1 } }, |
| 1315 | .block_erase = spi_block_erase_c7, |
| 1316 | } |
| 1317 | }, |
| 1318 | .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */ |
| 1319 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 1320 | .write = spi_chip_write_256, |
| 1321 | .read = spi_chip_read, |
| 1322 | .voltage = {2700, 3600}, |
| 1323 | }, |
| 1324 | |
| 1325 | { |
| 1326 | .vendor = "AMIC", |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1327 | .name = "A25LQ64", |
| 1328 | .bustype = BUS_SPI, |
| 1329 | .manufacture_id = AMIC_ID_NOPREFIX, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 1330 | .model_id = AMIC_A25LQ64, |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1331 | .total_size = 8192, |
| 1332 | .page_size = 256, |
| 1333 | /* supports SFDP */ |
| 1334 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 1335 | /* QPI enable 0x35, disable 0xF5 */ |
| 1336 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 1337 | .tested = TEST_UNTESTED, |
| 1338 | .probe = probe_spi_rdid, |
| 1339 | .probe_timing = TIMING_ZERO, |
| 1340 | .block_erasers = |
| 1341 | { |
| 1342 | { |
| 1343 | .eraseblocks = { { 4 * 1024, 2048 } }, |
| 1344 | .block_erase = spi_block_erase_20, |
| 1345 | }, { |
| 1346 | .eraseblocks = { { 32 * 1024, 256 } }, |
| 1347 | .block_erase = spi_block_erase_52, |
| 1348 | }, { |
| 1349 | .eraseblocks = { { 64 * 1024, 128 } }, |
| 1350 | .block_erase = spi_block_erase_d8, |
| 1351 | }, { |
| 1352 | .eraseblocks = { { 8192 * 1024, 1 } }, |
| 1353 | .block_erase = spi_block_erase_60, |
| 1354 | }, { |
| 1355 | .eraseblocks = { { 8192 * 1024, 1 } }, |
| 1356 | .block_erase = spi_block_erase_c7, |
| 1357 | } |
| 1358 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1359 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enhance (sic!) */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 1360 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1361 | .write = spi_chip_write_256, |
| 1362 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1363 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1364 | }, |
| 1365 | |
| 1366 | { |
| 1367 | .vendor = "AMIC", |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1368 | .name = "A29002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1369 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1370 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1371 | .model_id = AMIC_A29002B, |
| 1372 | .total_size = 256, |
| 1373 | .page_size = 64 * 1024, |
| 1374 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 1375 | .tested = TEST_UNTESTED, |
| 1376 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1377 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1378 | .block_erasers = |
| 1379 | { |
| 1380 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1381 | .eraseblocks = { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1382 | {16 * 1024, 1}, |
| 1383 | {8 * 1024, 2}, |
| 1384 | {32 * 1024, 1}, |
| 1385 | {64 * 1024, 3}, |
| 1386 | }, |
| 1387 | .block_erase = erase_sector_jedec, |
| 1388 | }, { |
| 1389 | .eraseblocks = { {256 * 1024, 1} }, |
| 1390 | .block_erase = erase_chip_block_jedec, |
| 1391 | }, |
| 1392 | }, |
| 1393 | .write = write_jedec_1, |
| 1394 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1395 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1396 | }, |
| 1397 | |
| 1398 | { |
| 1399 | .vendor = "AMIC", |
| 1400 | .name = "A29002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1401 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1402 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1403 | .model_id = AMIC_A29002T, |
| 1404 | .total_size = 256, |
| 1405 | .page_size = 64 * 1024, |
| 1406 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 1407 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1408 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1409 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1410 | .block_erasers = |
| 1411 | { |
| 1412 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1413 | .eraseblocks = { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1414 | {64 * 1024, 3}, |
| 1415 | {32 * 1024, 1}, |
| 1416 | {8 * 1024, 2}, |
| 1417 | {16 * 1024, 1}, |
| 1418 | }, |
| 1419 | .block_erase = erase_sector_jedec, |
| 1420 | }, { |
| 1421 | .eraseblocks = { {256 * 1024, 1} }, |
| 1422 | .block_erase = erase_chip_block_jedec, |
| 1423 | }, |
| 1424 | }, |
| 1425 | .write = write_jedec_1, |
| 1426 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1427 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1428 | }, |
| 1429 | |
| 1430 | { |
| 1431 | .vendor = "AMIC", |
| 1432 | .name = "A29040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1433 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1434 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1435 | .model_id = AMIC_A29040B, |
| 1436 | .total_size = 512, |
| 1437 | .page_size = 64 * 1024, |
| 1438 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Corey Osgood | cbd5665 | 2013-09-10 10:42:48 +0000 | [diff] [blame] | 1439 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1440 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1441 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1442 | .block_erasers = |
| 1443 | { |
| 1444 | { |
| 1445 | .eraseblocks = { {64 * 1024, 8} }, |
| 1446 | .block_erase = erase_sector_jedec, |
| 1447 | }, { |
| 1448 | .eraseblocks = { {512 * 1024, 1} }, |
| 1449 | .block_erase = erase_chip_block_jedec, |
| 1450 | }, |
| 1451 | }, |
| 1452 | .write = write_jedec_1, |
| 1453 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1454 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1455 | }, |
| 1456 | |
| 1457 | { |
| 1458 | .vendor = "AMIC", |
| 1459 | .name = "A49LF040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1460 | .bustype = BUS_LPC, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1461 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1462 | .model_id = AMIC_A49LF040A, |
| 1463 | .total_size = 512, |
| 1464 | .page_size = 64 * 1024, |
| 1465 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 1466 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1467 | .probe = probe_jedec, |
| 1468 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
| 1469 | .block_erasers = |
| 1470 | { |
| 1471 | { |
| 1472 | .eraseblocks = { {64 * 1024, 8} }, |
| 1473 | .block_erase = erase_block_jedec, |
| 1474 | }, { |
| 1475 | .eraseblocks = { {512 * 1024, 1} }, |
| 1476 | .block_erase = erase_chip_block_jedec, |
| 1477 | } |
| 1478 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 1479 | .unlock = unlock_regspace2_uniform_64k, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1480 | .write = write_jedec_1, |
| 1481 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1482 | .voltage = {3000, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1483 | }, |
| 1484 | |
| 1485 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1486 | .vendor = "Atmel", |
| 1487 | .name = "AT25DF021", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1488 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1489 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1490 | .model_id = ATMEL_AT25DF021, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1491 | .total_size = 256, |
| 1492 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1493 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1494 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1495 | .tested = TEST_UNTESTED, |
| 1496 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1497 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1498 | .block_erasers = |
| 1499 | { |
| 1500 | { |
| 1501 | .eraseblocks = { {4 * 1024, 64} }, |
| 1502 | .block_erase = spi_block_erase_20, |
| 1503 | }, { |
| 1504 | .eraseblocks = { {32 * 1024, 8} }, |
| 1505 | .block_erase = spi_block_erase_52, |
| 1506 | }, { |
| 1507 | .eraseblocks = { {64 * 1024, 4} }, |
| 1508 | .block_erase = spi_block_erase_d8, |
| 1509 | }, { |
| 1510 | .eraseblocks = { {256 * 1024, 1} }, |
| 1511 | .block_erase = spi_block_erase_60, |
| 1512 | }, { |
| 1513 | .eraseblocks = { {256 * 1024, 1} }, |
| 1514 | .block_erase = spi_block_erase_c7, |
| 1515 | } |
| 1516 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1517 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1518 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1519 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1520 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1521 | .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1522 | }, |
| 1523 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1524 | { |
| 1525 | .vendor = "Atmel", |
Steffen Mauch | 0b59b0d | 2018-06-02 23:46:03 +0200 | [diff] [blame] | 1526 | .name = "AT25DF021A", |
| 1527 | .bustype = BUS_SPI, |
| 1528 | .manufacture_id = ATMEL_ID, |
| 1529 | .model_id = ATMEL_AT25DF021A, |
| 1530 | .total_size = 256, |
| 1531 | .page_size = 256, |
| 1532 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1533 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1534 | .tested = TEST_OK_PREW, |
| 1535 | .probe = probe_spi_rdid, |
| 1536 | .probe_timing = TIMING_ZERO, |
| 1537 | .block_erasers = |
| 1538 | { |
| 1539 | { |
| 1540 | .eraseblocks = { {4 * 1024, 64} }, |
| 1541 | .block_erase = spi_block_erase_20, |
| 1542 | }, { |
| 1543 | .eraseblocks = { {32 * 1024, 8} }, |
| 1544 | .block_erase = spi_block_erase_52, |
| 1545 | }, { |
| 1546 | .eraseblocks = { {64 * 1024, 4} }, |
| 1547 | .block_erase = spi_block_erase_d8, |
| 1548 | }, { |
| 1549 | .eraseblocks = { {256 * 1024, 1} }, |
| 1550 | .block_erase = spi_block_erase_60, |
| 1551 | }, { |
| 1552 | .eraseblocks = { {256 * 1024, 1} }, |
| 1553 | .block_erase = spi_block_erase_c7, |
| 1554 | } |
| 1555 | }, |
| 1556 | .printlock = spi_prettyprint_status_register_at25df, |
| 1557 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
| 1558 | .write = spi_chip_write_256, |
| 1559 | .read = spi_chip_read, |
| 1560 | .voltage = {1650, 3600}, |
| 1561 | }, |
| 1562 | |
| 1563 | { |
| 1564 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1565 | .name = "AT25DF041A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1566 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1567 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1568 | .model_id = ATMEL_AT25DF041A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1569 | .total_size = 512, |
| 1570 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1571 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 1572 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1573 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1574 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1575 | .block_erasers = |
| 1576 | { |
| 1577 | { |
| 1578 | .eraseblocks = { {4 * 1024, 128} }, |
| 1579 | .block_erase = spi_block_erase_20, |
| 1580 | }, { |
| 1581 | .eraseblocks = { {32 * 1024, 16} }, |
| 1582 | .block_erase = spi_block_erase_52, |
| 1583 | }, { |
| 1584 | .eraseblocks = { {64 * 1024, 8} }, |
| 1585 | .block_erase = spi_block_erase_d8, |
| 1586 | }, { |
| 1587 | .eraseblocks = { {512 * 1024, 1} }, |
| 1588 | .block_erase = spi_block_erase_60, |
| 1589 | }, { |
| 1590 | .eraseblocks = { {512 * 1024, 1} }, |
| 1591 | .block_erase = spi_block_erase_c7, |
| 1592 | } |
| 1593 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1594 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1595 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1596 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1597 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1598 | .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1599 | }, |
| 1600 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1601 | { |
| 1602 | .vendor = "Atmel", |
| 1603 | .name = "AT25DF081", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1604 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1605 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1606 | .model_id = ATMEL_AT25DF081, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1607 | .total_size = 1024, |
| 1608 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1609 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1610 | .tested = TEST_UNTESTED, |
| 1611 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1612 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1613 | .block_erasers = |
| 1614 | { |
| 1615 | { |
| 1616 | .eraseblocks = { {4 * 1024, 256} }, |
| 1617 | .block_erase = spi_block_erase_20, |
| 1618 | }, { |
| 1619 | .eraseblocks = { {32 * 1024, 32} }, |
| 1620 | .block_erase = spi_block_erase_52, |
| 1621 | }, { |
| 1622 | .eraseblocks = { {64 * 1024, 16} }, |
| 1623 | .block_erase = spi_block_erase_d8, |
| 1624 | }, { |
| 1625 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1626 | .block_erase = spi_block_erase_60, |
| 1627 | }, { |
| 1628 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1629 | .block_erase = spi_block_erase_c7, |
| 1630 | } |
| 1631 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1632 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1633 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1634 | .write = spi_chip_write_256, |
| 1635 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1636 | .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */ |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1637 | }, |
| 1638 | |
| 1639 | { |
| 1640 | .vendor = "Atmel", |
| 1641 | .name = "AT25DF081A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1642 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1643 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1644 | .model_id = ATMEL_AT25DF081A, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1645 | .total_size = 1024, |
| 1646 | .page_size = 256, |
| 1647 | .feature_bits = FEATURE_WRSR_WREN, |
| 1648 | .tested = TEST_UNTESTED, |
| 1649 | .probe = probe_spi_rdid, |
| 1650 | .probe_timing = TIMING_ZERO, |
| 1651 | .block_erasers = |
| 1652 | { |
| 1653 | { |
| 1654 | .eraseblocks = { {4 * 1024, 256} }, |
| 1655 | .block_erase = spi_block_erase_20, |
| 1656 | }, { |
| 1657 | .eraseblocks = { {32 * 1024, 32} }, |
| 1658 | .block_erase = spi_block_erase_52, |
| 1659 | }, { |
| 1660 | .eraseblocks = { {64 * 1024, 16} }, |
| 1661 | .block_erase = spi_block_erase_d8, |
| 1662 | }, { |
| 1663 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1664 | .block_erase = spi_block_erase_60, |
| 1665 | }, { |
| 1666 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1667 | .block_erase = spi_block_erase_c7, |
| 1668 | } |
| 1669 | }, |
| 1670 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1671 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1672 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1673 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1674 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1675 | }, |
| 1676 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1677 | { |
| 1678 | .vendor = "Atmel", |
| 1679 | .name = "AT25DF161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1680 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1681 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1682 | .model_id = ATMEL_AT25DF161, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1683 | .total_size = 2048, |
| 1684 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1685 | .feature_bits = FEATURE_WRSR_WREN, |
Angel Pons | 8b5b962 | 2018-09-30 19:13:15 +0200 | [diff] [blame] | 1686 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1687 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1688 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1689 | .block_erasers = |
| 1690 | { |
| 1691 | { |
| 1692 | .eraseblocks = { {4 * 1024, 512} }, |
| 1693 | .block_erase = spi_block_erase_20, |
| 1694 | }, { |
| 1695 | .eraseblocks = { {32 * 1024, 64} }, |
| 1696 | .block_erase = spi_block_erase_52, |
| 1697 | }, { |
| 1698 | .eraseblocks = { {64 * 1024, 32} }, |
| 1699 | .block_erase = spi_block_erase_d8, |
| 1700 | }, { |
| 1701 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1702 | .block_erase = spi_block_erase_60, |
| 1703 | }, { |
| 1704 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1705 | .block_erase = spi_block_erase_c7, |
| 1706 | } |
| 1707 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1708 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1709 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1710 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1711 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1712 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1713 | }, |
| 1714 | |
Alan Green | 86bf6ab | 2019-06-27 16:58:20 +1000 | [diff] [blame] | 1715 | /*The AT26DF321 has the same ID as the AT25DF321. */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1716 | { |
| 1717 | .vendor = "Atmel", |
| 1718 | .name = "AT25DF321", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1719 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1720 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1721 | .model_id = ATMEL_AT25DF321, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1722 | .total_size = 4096, |
| 1723 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1724 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d06d941 | 2011-06-12 19:47:55 +0000 | [diff] [blame] | 1725 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1726 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1727 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1728 | .block_erasers = |
| 1729 | { |
| 1730 | { |
| 1731 | .eraseblocks = { {4 * 1024, 1024} }, |
| 1732 | .block_erase = spi_block_erase_20, |
| 1733 | }, { |
| 1734 | .eraseblocks = { {32 * 1024, 128} }, |
| 1735 | .block_erase = spi_block_erase_52, |
| 1736 | }, { |
| 1737 | .eraseblocks = { {64 * 1024, 64} }, |
| 1738 | .block_erase = spi_block_erase_d8, |
| 1739 | }, { |
| 1740 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1741 | .block_erase = spi_block_erase_60, |
| 1742 | }, { |
| 1743 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1744 | .block_erase = spi_block_erase_c7, |
| 1745 | } |
| 1746 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1747 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1748 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1749 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1750 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1751 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1752 | }, |
| 1753 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1754 | { |
| 1755 | .vendor = "Atmel", |
| 1756 | .name = "AT25DF321A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1757 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1758 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1759 | .model_id = ATMEL_AT25DF321A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1760 | .total_size = 4096, |
| 1761 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1762 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1763 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 1764 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1765 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1766 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1767 | .block_erasers = |
| 1768 | { |
| 1769 | { |
| 1770 | .eraseblocks = { {4 * 1024, 1024} }, |
| 1771 | .block_erase = spi_block_erase_20, |
| 1772 | }, { |
| 1773 | .eraseblocks = { {32 * 1024, 128} }, |
| 1774 | .block_erase = spi_block_erase_52, |
| 1775 | }, { |
| 1776 | .eraseblocks = { {64 * 1024, 64} }, |
| 1777 | .block_erase = spi_block_erase_d8, |
| 1778 | }, { |
| 1779 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1780 | .block_erase = spi_block_erase_60, |
| 1781 | }, { |
| 1782 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1783 | .block_erase = spi_block_erase_c7, |
| 1784 | } |
| 1785 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1786 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1787 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1788 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1789 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1790 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1791 | }, |
| 1792 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1793 | { |
| 1794 | .vendor = "Atmel", |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 1795 | .name = "AT25DF641(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1796 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1797 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1798 | .model_id = ATMEL_AT25DF641, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1799 | .total_size = 8192, |
| 1800 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1801 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1802 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1803 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1804 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1805 | .block_erasers = |
| 1806 | { |
| 1807 | { |
| 1808 | .eraseblocks = { {4 * 1024, 2048} }, |
| 1809 | .block_erase = spi_block_erase_20, |
| 1810 | }, { |
| 1811 | .eraseblocks = { {32 * 1024, 256} }, |
| 1812 | .block_erase = spi_block_erase_52, |
| 1813 | }, { |
| 1814 | .eraseblocks = { {64 * 1024, 128} }, |
| 1815 | .block_erase = spi_block_erase_d8, |
| 1816 | }, { |
| 1817 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 1818 | .block_erase = spi_block_erase_60, |
| 1819 | }, { |
| 1820 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 1821 | .block_erase = spi_block_erase_c7, |
| 1822 | } |
| 1823 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1824 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1825 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1826 | .write = spi_chip_write_256, |
| 1827 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1828 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1829 | }, |
| 1830 | |
| 1831 | { |
| 1832 | .vendor = "Atmel", |
Stefan Tauner | c9d8b27 | 2014-06-01 13:22:35 +0000 | [diff] [blame] | 1833 | .name = "AT25DL081", |
| 1834 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 1835 | .manufacture_id = ATMEL_ID, |
Stefan Tauner | c9d8b27 | 2014-06-01 13:22:35 +0000 | [diff] [blame] | 1836 | .model_id = ATMEL_AT25DF081, |
| 1837 | .total_size = 1024, |
| 1838 | .page_size = 256, |
| 1839 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1840 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1841 | .tested = TEST_UNTESTED, |
| 1842 | .probe = probe_spi_rdid, |
| 1843 | .probe_timing = TIMING_ZERO, |
| 1844 | .block_erasers = |
| 1845 | { |
| 1846 | { |
| 1847 | .eraseblocks = { {4 * 1024, 256} }, |
| 1848 | .block_erase = spi_block_erase_20, |
| 1849 | }, { |
| 1850 | .eraseblocks = { {32 * 1024, 32} }, |
| 1851 | .block_erase = spi_block_erase_52, |
| 1852 | }, { |
| 1853 | .eraseblocks = { {64 * 1024, 16} }, |
| 1854 | .block_erase = spi_block_erase_d8, |
| 1855 | }, { |
| 1856 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 1857 | .block_erase = spi_block_erase_60, |
| 1858 | }, { |
| 1859 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 1860 | .block_erase = spi_block_erase_c7, |
| 1861 | } |
| 1862 | }, |
| 1863 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1864 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
| 1865 | .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */ |
| 1866 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 1867 | .voltage = {1650, 1950}, |
| 1868 | }, |
| 1869 | |
| 1870 | { |
| 1871 | .vendor = "Atmel", |
| 1872 | .name = "AT25DL161", |
| 1873 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 1874 | .manufacture_id = ATMEL_ID, |
Stefan Tauner | c9d8b27 | 2014-06-01 13:22:35 +0000 | [diff] [blame] | 1875 | .model_id = ATMEL_AT25DL161, |
| 1876 | .total_size = 2048, |
| 1877 | .page_size = 256, |
| 1878 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1879 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1880 | .tested = TEST_UNTESTED, |
| 1881 | .probe = probe_spi_rdid, |
| 1882 | .probe_timing = TIMING_ZERO, |
| 1883 | .block_erasers = |
| 1884 | { |
| 1885 | { |
| 1886 | .eraseblocks = { {4 * 1024, 512} }, |
| 1887 | .block_erase = spi_block_erase_20, |
| 1888 | }, { |
| 1889 | .eraseblocks = { {32 * 1024, 64} }, |
| 1890 | .block_erase = spi_block_erase_52, |
| 1891 | }, { |
| 1892 | .eraseblocks = { {64 * 1024, 32} }, |
| 1893 | .block_erase = spi_block_erase_d8, |
| 1894 | }, { |
| 1895 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1896 | .block_erase = spi_block_erase_60, |
| 1897 | }, { |
| 1898 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1899 | .block_erase = spi_block_erase_c7, |
| 1900 | } |
| 1901 | }, |
| 1902 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1903 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
| 1904 | .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */ |
| 1905 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 1906 | .voltage = {1650, 1950}, |
| 1907 | }, |
| 1908 | |
| 1909 | { |
| 1910 | .vendor = "Atmel", |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1911 | .name = "AT25DQ161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1912 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1913 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1914 | .model_id = ATMEL_AT25DQ161, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1915 | .total_size = 2048, |
| 1916 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1917 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1918 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1919 | .tested = TEST_UNTESTED, |
| 1920 | .probe = probe_spi_rdid, |
| 1921 | .probe_timing = TIMING_ZERO, |
| 1922 | .block_erasers = |
| 1923 | { |
| 1924 | { |
| 1925 | .eraseblocks = { {4 * 1024, 512} }, |
| 1926 | .block_erase = spi_block_erase_20, |
| 1927 | }, { |
| 1928 | .eraseblocks = { {32 * 1024, 64} }, |
| 1929 | .block_erase = spi_block_erase_52, |
| 1930 | }, { |
| 1931 | .eraseblocks = { {64 * 1024, 32} }, |
| 1932 | .block_erase = spi_block_erase_d8, |
| 1933 | }, { |
| 1934 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1935 | .block_erase = spi_block_erase_60, |
| 1936 | }, { |
| 1937 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1938 | .block_erase = spi_block_erase_c7, |
| 1939 | } |
| 1940 | }, |
| 1941 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1942 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1943 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1944 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1945 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1946 | }, |
| 1947 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1948 | { |
| 1949 | .vendor = "Atmel", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 1950 | /* The A suffix indicates 33MHz instead of 20MHz clock rate. |
| 1951 | * All other properties seem to be the same.*/ |
| 1952 | .name = "AT25F1024(A)", |
| 1953 | .bustype = BUS_SPI, |
| 1954 | .manufacture_id = ATMEL_ID, |
| 1955 | .model_id = ATMEL_AT25F1024, |
| 1956 | .total_size = 128, |
| 1957 | .page_size = 256, |
| 1958 | .feature_bits = FEATURE_WRSR_WREN, |
| 1959 | .tested = TEST_OK_PREW, |
| 1960 | .probe = probe_spi_at25f, |
| 1961 | .probe_timing = TIMING_ZERO, |
| 1962 | .block_erasers = |
| 1963 | { |
| 1964 | { |
| 1965 | .eraseblocks = { {32 * 1024, 4} }, |
| 1966 | .block_erase = spi_block_erase_52, |
| 1967 | }, { |
| 1968 | .eraseblocks = { {128 * 1024, 1} }, |
| 1969 | .block_erase = spi_block_erase_62, |
| 1970 | } |
| 1971 | }, |
| 1972 | .printlock = spi_prettyprint_status_register_at25f, |
| 1973 | .unlock = spi_disable_blockprotect_at25f, |
| 1974 | .write = spi_chip_write_256, |
| 1975 | .read = spi_chip_read, |
| 1976 | .voltage = {2700, 3600}, |
| 1977 | }, |
| 1978 | |
| 1979 | { |
| 1980 | .vendor = "Atmel", |
| 1981 | .name = "AT25F2048", |
| 1982 | .bustype = BUS_SPI, |
| 1983 | .manufacture_id = ATMEL_ID, |
| 1984 | .model_id = ATMEL_AT25F2048, |
| 1985 | .total_size = 256, |
| 1986 | .page_size = 256, |
| 1987 | .feature_bits = FEATURE_WRSR_WREN, |
| 1988 | .tested = TEST_UNTESTED, |
| 1989 | .probe = probe_spi_at25f, |
| 1990 | .probe_timing = TIMING_ZERO, |
| 1991 | .block_erasers = |
| 1992 | { |
| 1993 | { |
| 1994 | .eraseblocks = { {64 * 1024, 4} }, |
| 1995 | .block_erase = spi_block_erase_52, |
| 1996 | }, { |
| 1997 | .eraseblocks = { {256 * 1024, 1} }, |
| 1998 | .block_erase = spi_block_erase_62, |
| 1999 | } |
| 2000 | }, |
| 2001 | .printlock = spi_prettyprint_status_register_at25f, |
| 2002 | .unlock = spi_disable_blockprotect_at25f, |
| 2003 | .write = spi_chip_write_256, |
| 2004 | .read = spi_chip_read, |
| 2005 | .voltage = {2700, 3600}, |
| 2006 | }, |
| 2007 | |
| 2008 | { |
| 2009 | .vendor = "Atmel", |
| 2010 | .name = "AT25F4096", |
| 2011 | .bustype = BUS_SPI, |
| 2012 | .manufacture_id = ATMEL_ID, |
| 2013 | .model_id = ATMEL_AT25F4096, |
| 2014 | .total_size = 512, |
| 2015 | .page_size = 256, |
| 2016 | .feature_bits = FEATURE_WRSR_WREN, |
| 2017 | .tested = TEST_OK_PREW, |
| 2018 | .probe = probe_spi_at25f, |
| 2019 | .probe_timing = TIMING_ZERO, |
| 2020 | .block_erasers = |
| 2021 | { |
| 2022 | { |
| 2023 | .eraseblocks = { {64 * 1024, 8} }, |
| 2024 | .block_erase = spi_block_erase_52, |
| 2025 | }, { |
| 2026 | .eraseblocks = { {512 * 1024, 1} }, |
| 2027 | .block_erase = spi_block_erase_62, |
| 2028 | } |
| 2029 | }, |
| 2030 | .printlock = spi_prettyprint_status_register_at25f4096, |
| 2031 | /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */ |
| 2032 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 2033 | .write = spi_chip_write_256, |
| 2034 | .read = spi_chip_read, |
| 2035 | .voltage = {2700, 3600}, |
| 2036 | }, |
| 2037 | |
| 2038 | { |
| 2039 | .vendor = "Atmel", |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 2040 | .name = "AT25F512", |
| 2041 | .bustype = BUS_SPI, |
| 2042 | .manufacture_id = ATMEL_ID, |
| 2043 | .model_id = ATMEL_AT25F512, |
| 2044 | .total_size = 64, |
| 2045 | .page_size = 256, |
| 2046 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 2047 | .tested = TEST_OK_PREW, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 2048 | .probe = probe_spi_at25f, |
| 2049 | .probe_timing = TIMING_ZERO, |
| 2050 | .block_erasers = |
| 2051 | { |
| 2052 | { |
| 2053 | .eraseblocks = { {32 * 1024, 2} }, |
| 2054 | .block_erase = spi_block_erase_52, |
| 2055 | }, { |
| 2056 | .eraseblocks = { {64 * 1024, 1} }, |
| 2057 | .block_erase = spi_block_erase_62, |
| 2058 | } |
| 2059 | }, |
| 2060 | .printlock = spi_prettyprint_status_register_at25f, |
| 2061 | .unlock = spi_disable_blockprotect_at25f, |
| 2062 | .write = spi_chip_write_256, |
| 2063 | .read = spi_chip_read, |
| 2064 | .voltage = {2700, 3600}, |
| 2065 | }, |
| 2066 | |
| 2067 | { |
| 2068 | .vendor = "Atmel", |
| 2069 | .name = "AT25F512A", |
| 2070 | .bustype = BUS_SPI, |
| 2071 | .manufacture_id = ATMEL_ID, |
| 2072 | .model_id = ATMEL_AT25F512A, |
| 2073 | .total_size = 64, |
| 2074 | .page_size = 128, |
| 2075 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 2076 | .tested = TEST_OK_PREW, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 2077 | .probe = probe_spi_at25f, |
| 2078 | .probe_timing = TIMING_ZERO, |
| 2079 | .block_erasers = |
| 2080 | { |
| 2081 | { |
| 2082 | .eraseblocks = { {32 * 1024, 2} }, |
| 2083 | .block_erase = spi_block_erase_52, |
| 2084 | }, { |
| 2085 | .eraseblocks = { {64 * 1024, 1} }, |
| 2086 | .block_erase = spi_block_erase_62, |
| 2087 | } |
| 2088 | }, |
| 2089 | .printlock = spi_prettyprint_status_register_at25f512a, |
| 2090 | /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */ |
| 2091 | .unlock = spi_disable_blockprotect_at25f512a, |
| 2092 | .write = spi_chip_write_256, |
| 2093 | .read = spi_chip_read, |
| 2094 | .voltage = {2700, 3600}, |
| 2095 | }, |
| 2096 | |
| 2097 | { |
| 2098 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2099 | .name = "AT25F512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2100 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2101 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2102 | .model_id = ATMEL_AT25F512B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2103 | .total_size = 64, |
| 2104 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 2105 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2106 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2107 | .tested = TEST_UNTESTED, |
| 2108 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2109 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2110 | .block_erasers = |
| 2111 | { |
| 2112 | { |
| 2113 | .eraseblocks = { {4 * 1024, 16} }, |
| 2114 | .block_erase = spi_block_erase_20, |
| 2115 | }, { |
| 2116 | .eraseblocks = { {32 * 1024, 2} }, |
| 2117 | .block_erase = spi_block_erase_52, |
| 2118 | }, { |
| 2119 | .eraseblocks = { {32 * 1024, 2} }, |
| 2120 | .block_erase = spi_block_erase_d8, |
| 2121 | }, { |
| 2122 | .eraseblocks = { {64 * 1024, 1} }, |
| 2123 | .block_erase = spi_block_erase_60, |
| 2124 | }, { |
| 2125 | .eraseblocks = { {64 * 1024, 1} }, |
| 2126 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | 3c0fcd0 | 2012-09-21 12:46:56 +0000 | [diff] [blame] | 2127 | }, { |
| 2128 | .eraseblocks = { {64 * 1024, 1} }, |
| 2129 | .block_erase = spi_block_erase_62, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2130 | } |
| 2131 | }, |
Stefan Tauner | 7bf4ed9 | 2012-08-26 21:04:27 +0000 | [diff] [blame] | 2132 | .printlock = spi_prettyprint_status_register_at25f512b, |
| 2133 | .unlock = spi_disable_blockprotect_at25f512b, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2134 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2135 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2136 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2137 | }, |
| 2138 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2139 | { |
| 2140 | .vendor = "Atmel", |
| 2141 | .name = "AT25FS010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2142 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2143 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2144 | .model_id = ATMEL_AT25FS010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2145 | .total_size = 128, |
| 2146 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2147 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 2148 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2149 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2150 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2151 | .block_erasers = |
| 2152 | { |
| 2153 | { |
| 2154 | .eraseblocks = { {4 * 1024, 32} }, |
| 2155 | .block_erase = spi_block_erase_20, |
| 2156 | }, { |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 2157 | .eraseblocks = { {4 * 1024, 32} }, |
| 2158 | .block_erase = spi_block_erase_d7, |
| 2159 | }, { |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2160 | .eraseblocks = { {32 * 1024, 4} }, |
| 2161 | .block_erase = spi_block_erase_52, |
| 2162 | }, { |
| 2163 | .eraseblocks = { {32 * 1024, 4} }, |
| 2164 | .block_erase = spi_block_erase_d8, |
| 2165 | }, { |
| 2166 | .eraseblocks = { {128 * 1024, 1} }, |
| 2167 | .block_erase = spi_block_erase_60, |
| 2168 | }, { |
| 2169 | .eraseblocks = { {128 * 1024, 1} }, |
| 2170 | .block_erase = spi_block_erase_c7, |
| 2171 | } |
| 2172 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 2173 | .printlock = spi_prettyprint_status_register_at25fs010, |
| 2174 | .unlock = spi_disable_blockprotect_at25fs010, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2175 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2176 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2177 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2178 | }, |
| 2179 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2180 | { |
| 2181 | .vendor = "Atmel", |
| 2182 | .name = "AT25FS040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2183 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2184 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2185 | .model_id = ATMEL_AT25FS040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2186 | .total_size = 512, |
| 2187 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2188 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2189 | .tested = TEST_UNTESTED, |
| 2190 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2191 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2192 | .block_erasers = |
| 2193 | { |
| 2194 | { |
| 2195 | .eraseblocks = { {4 * 1024, 128} }, |
| 2196 | .block_erase = spi_block_erase_20, |
| 2197 | }, { |
| 2198 | .eraseblocks = { {64 * 1024, 8} }, |
| 2199 | .block_erase = spi_block_erase_52, |
| 2200 | }, { |
| 2201 | .eraseblocks = { {64 * 1024, 8} }, |
| 2202 | .block_erase = spi_block_erase_d8, |
| 2203 | }, { |
| 2204 | .eraseblocks = { {512 * 1024, 1} }, |
| 2205 | .block_erase = spi_block_erase_60, |
| 2206 | }, { |
| 2207 | .eraseblocks = { {512 * 1024, 1} }, |
| 2208 | .block_erase = spi_block_erase_c7, |
| 2209 | } |
| 2210 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 2211 | .printlock = spi_prettyprint_status_register_at25fs040, |
| 2212 | .unlock = spi_disable_blockprotect_at25fs040, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2213 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2214 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2215 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2216 | }, |
| 2217 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2218 | { |
| 2219 | .vendor = "Atmel", |
jvm | a3ab6c6 | 2018-03-08 15:43:20 +0100 | [diff] [blame] | 2220 | .name = "AT25SF041", |
| 2221 | .bustype = BUS_SPI, |
| 2222 | .manufacture_id = ATMEL_ID, |
| 2223 | .model_id = ATMEL_AT25SF041, |
| 2224 | .total_size = 512, |
| 2225 | .page_size = 256, |
| 2226 | .feature_bits = FEATURE_WRSR_WREN, |
| 2227 | .tested = TEST_OK_PREW, |
| 2228 | .probe = probe_spi_rdid, |
| 2229 | .probe_timing = TIMING_ZERO, |
| 2230 | .block_erasers = |
| 2231 | { |
| 2232 | { |
| 2233 | .eraseblocks = { {4 * 1024, 128} }, |
| 2234 | .block_erase = spi_block_erase_20, |
| 2235 | }, { |
| 2236 | .eraseblocks = { {32 * 1024, 16} }, |
| 2237 | .block_erase = spi_block_erase_52, |
| 2238 | }, { |
| 2239 | .eraseblocks = { {64 * 1024, 8} }, |
| 2240 | .block_erase = spi_block_erase_d8, |
| 2241 | }, { |
| 2242 | .eraseblocks = { {512 * 1024, 1} }, |
| 2243 | .block_erase = spi_block_erase_60, |
| 2244 | }, { |
| 2245 | .eraseblocks = { {512 * 1024, 1} }, |
| 2246 | .block_erase = spi_block_erase_c7, |
| 2247 | } |
| 2248 | }, |
| 2249 | .printlock = spi_prettyprint_status_register_plain, |
| 2250 | .unlock = spi_disable_blockprotect, |
| 2251 | .write = spi_chip_write_256, |
| 2252 | .read = spi_chip_read, |
| 2253 | .voltage = {2500, 3600}, |
| 2254 | }, |
| 2255 | |
| 2256 | { |
| 2257 | .vendor = "Atmel", |
Evan Jensen | 291c101 | 2018-05-17 14:30:19 -0700 | [diff] [blame] | 2258 | .name = "AT25SF081", |
| 2259 | .bustype = BUS_SPI, |
| 2260 | .manufacture_id = ATMEL_ID, |
| 2261 | .model_id = ATMEL_AT25SF081, |
| 2262 | .total_size = 1024, |
| 2263 | .page_size = 256, |
| 2264 | .feature_bits = FEATURE_WRSR_WREN, |
| 2265 | .tested = TEST_OK_PREW, |
| 2266 | .probe = probe_spi_rdid, |
| 2267 | .probe_timing = TIMING_ZERO, |
| 2268 | .block_erasers = |
| 2269 | { |
| 2270 | { |
| 2271 | .eraseblocks = { {4 * 1024, 256} }, |
| 2272 | .block_erase = spi_block_erase_20, |
| 2273 | }, { |
| 2274 | .eraseblocks = { {32 * 1024, 32} }, |
| 2275 | .block_erase = spi_block_erase_52, |
| 2276 | }, { |
| 2277 | .eraseblocks = { {64 * 1024, 16} }, |
| 2278 | .block_erase = spi_block_erase_d8, |
| 2279 | }, { |
| 2280 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2281 | .block_erase = spi_block_erase_60, |
| 2282 | }, { |
| 2283 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2284 | .block_erase = spi_block_erase_c7, |
| 2285 | } |
| 2286 | }, |
| 2287 | .printlock = spi_prettyprint_status_register_plain, |
| 2288 | .unlock = spi_disable_blockprotect, |
| 2289 | .write = spi_chip_write_256, |
| 2290 | .read = spi_chip_read, |
| 2291 | .voltage = {2300, 3600}, |
| 2292 | }, |
| 2293 | |
| 2294 | { |
| 2295 | .vendor = "Atmel", |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 2296 | .name = "AT25SF161", |
| 2297 | .bustype = BUS_SPI, |
| 2298 | .manufacture_id = ATMEL_ID, |
| 2299 | .model_id = ATMEL_AT25SF161, |
| 2300 | .total_size = 2048, |
| 2301 | .page_size = 256, |
| 2302 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 2303 | .tested = TEST_OK_PREW, |
| 2304 | .probe = probe_spi_rdid, |
| 2305 | .probe_timing = TIMING_ZERO, |
| 2306 | .block_erasers = |
| 2307 | { |
| 2308 | { |
| 2309 | .eraseblocks = { {4 * 1024, 512} }, |
| 2310 | .block_erase = spi_block_erase_20, |
| 2311 | }, { |
| 2312 | .eraseblocks = { {32 * 1024, 64} }, |
| 2313 | .block_erase = spi_block_erase_52, |
| 2314 | }, { |
| 2315 | .eraseblocks = { {64 * 1024, 32} }, |
| 2316 | .block_erase = spi_block_erase_d8, |
| 2317 | }, { |
| 2318 | .eraseblocks = { {2048 * 1024, 1} }, |
| 2319 | .block_erase = spi_block_erase_60, |
| 2320 | }, { |
| 2321 | .eraseblocks = { {2048 * 1024, 1} }, |
| 2322 | .block_erase = spi_block_erase_c7, |
| 2323 | } |
| 2324 | }, |
| 2325 | .printlock = spi_prettyprint_status_register_plain, |
| 2326 | .unlock = spi_disable_blockprotect, |
| 2327 | .write = spi_chip_write_256, |
| 2328 | .read = spi_chip_read, |
| 2329 | .voltage = {2500, 3600}, |
| 2330 | }, |
| 2331 | |
| 2332 | { |
Alan Green | 57938f8 | 2019-06-27 15:06:43 +1000 | [diff] [blame] | 2333 | .vendor = "Atmel", |
darkarnium | 4139438 | 2019-11-04 20:06:48 +0000 | [diff] [blame] | 2334 | .name = "AT25SF321", |
| 2335 | .bustype = BUS_SPI, |
| 2336 | .manufacture_id = ATMEL_ID, |
| 2337 | .model_id = ATMEL_AT25SF321, |
| 2338 | .total_size = 4096, |
| 2339 | .page_size = 256, |
| 2340 | .feature_bits = FEATURE_WRSR_WREN, |
| 2341 | .tested = TEST_OK_PR, |
| 2342 | .probe = probe_spi_rdid, |
| 2343 | .probe_timing = TIMING_ZERO, |
| 2344 | .block_erasers = |
| 2345 | { |
| 2346 | { |
| 2347 | .eraseblocks = { {4 * 1024, 1024} }, |
| 2348 | .block_erase = spi_block_erase_20, |
| 2349 | }, { |
| 2350 | .eraseblocks = { {32 * 1024, 128} }, |
| 2351 | .block_erase = spi_block_erase_52, |
| 2352 | }, { |
| 2353 | .eraseblocks = { {64 * 1024, 64} }, |
| 2354 | .block_erase = spi_block_erase_d8, |
| 2355 | }, { |
| 2356 | .eraseblocks = { {4096 * 1024, 1} }, |
| 2357 | .block_erase = spi_block_erase_60, |
| 2358 | }, { |
| 2359 | .eraseblocks = { {4096 * 1024, 1} }, |
| 2360 | .block_erase = spi_block_erase_c7, |
| 2361 | } |
| 2362 | }, |
| 2363 | .printlock = spi_prettyprint_status_register_plain, |
| 2364 | .unlock = spi_disable_blockprotect, |
| 2365 | .write = spi_chip_write_256, |
| 2366 | .read = spi_chip_read, |
| 2367 | .voltage = {2500, 3600}, |
| 2368 | }, |
| 2369 | |
| 2370 | { |
| 2371 | .vendor = "Atmel", |
Hal Martin | 49e23d2 | 2018-05-27 14:18:43 +0200 | [diff] [blame] | 2372 | .name = "AT25SL128A", |
| 2373 | .bustype = BUS_SPI, |
| 2374 | .manufacture_id = ATMEL_ID, |
| 2375 | .model_id = ATMEL_AT25SL128A, |
| 2376 | .total_size = 16384, |
| 2377 | .page_size = 256, |
| 2378 | /* supports SFDP */ |
| 2379 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 2380 | .tested = TEST_OK_PREW, |
| 2381 | .probe = probe_spi_rdid, |
| 2382 | .probe_timing = TIMING_ZERO, |
| 2383 | .block_erasers = |
| 2384 | { |
| 2385 | { |
| 2386 | .eraseblocks = { {4 * 1024, 4096} }, |
| 2387 | .block_erase = spi_block_erase_20, |
| 2388 | }, { |
| 2389 | .eraseblocks = { {32 * 1024, 512} }, |
| 2390 | .block_erase = spi_block_erase_52, |
| 2391 | }, { |
| 2392 | .eraseblocks = { {64 * 1024, 256} }, |
| 2393 | .block_erase = spi_block_erase_d8, |
| 2394 | }, { |
| 2395 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 2396 | .block_erase = spi_block_erase_60, |
| 2397 | }, { |
| 2398 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 2399 | .block_erase = spi_block_erase_c7, |
| 2400 | } |
| 2401 | }, |
| 2402 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 2403 | .unlock = spi_disable_blockprotect, |
| 2404 | .write = spi_chip_write_256, |
| 2405 | .read = spi_chip_read, |
| 2406 | .voltage = {1700, 2000}, |
| 2407 | }, |
| 2408 | |
| 2409 | { |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 2410 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2411 | .name = "AT26DF041", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2412 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2413 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2414 | .model_id = ATMEL_AT26DF041, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2415 | .total_size = 512, |
| 2416 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2417 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Stefan Tauner | 94b39b4 | 2012-10-27 00:06:02 +0000 | [diff] [blame] | 2418 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2419 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2420 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2421 | .block_erasers = |
| 2422 | { |
| 2423 | { |
Stefan Tauner | 94b39b4 | 2012-10-27 00:06:02 +0000 | [diff] [blame] | 2424 | .eraseblocks = { {256, 2048} }, |
| 2425 | .block_erase = spi_block_erase_81, |
| 2426 | }, { |
| 2427 | .eraseblocks = { {2 * 1024, 256} }, |
| 2428 | .block_erase = spi_block_erase_50, |
| 2429 | }, { |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2430 | .eraseblocks = { {4 * 1024, 128} }, |
| 2431 | .block_erase = spi_block_erase_20, |
| 2432 | } |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2433 | }, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2434 | .printlock = spi_prettyprint_status_register_plain, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2435 | /* Supports also an incompatible page write (of exactly 256 B) and an auto-erasing write. */ |
Stefan Tauner | 94b39b4 | 2012-10-27 00:06:02 +0000 | [diff] [blame] | 2436 | .write = spi_chip_write_1, |
| 2437 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2438 | .voltage = {2700, 3600}, /* 3.0-3.6V for higher speed, 2.7-3.6V normal */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2439 | }, |
| 2440 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2441 | { |
| 2442 | .vendor = "Atmel", |
| 2443 | .name = "AT26DF081A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2444 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2445 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2446 | .model_id = ATMEL_AT26DF081A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2447 | .total_size = 1024, |
| 2448 | .page_size = 256, |
Mathias Krause | 2c3afa3 | 2011-01-17 07:45:54 +0000 | [diff] [blame] | 2449 | .feature_bits = FEATURE_WRSR_WREN, |
| 2450 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2451 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2452 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2453 | .block_erasers = |
| 2454 | { |
| 2455 | { |
| 2456 | .eraseblocks = { {4 * 1024, 256} }, |
| 2457 | .block_erase = spi_block_erase_20, |
| 2458 | }, { |
| 2459 | .eraseblocks = { {32 * 1024, 32} }, |
| 2460 | .block_erase = spi_block_erase_52, |
| 2461 | }, { |
| 2462 | .eraseblocks = { {64 * 1024, 16} }, |
| 2463 | .block_erase = spi_block_erase_d8, |
| 2464 | }, { |
| 2465 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2466 | .block_erase = spi_block_erase_60, |
| 2467 | }, { |
| 2468 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2469 | .block_erase = spi_block_erase_c7, |
| 2470 | } |
| 2471 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2472 | .printlock = spi_prettyprint_status_register_at26df081a, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2473 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2474 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2475 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2476 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2477 | }, |
| 2478 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2479 | { |
| 2480 | .vendor = "Atmel", |
| 2481 | .name = "AT26DF161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2482 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2483 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2484 | .model_id = ATMEL_AT26DF161, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2485 | .total_size = 2048, |
| 2486 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2487 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 2488 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2489 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2490 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2491 | .block_erasers = |
| 2492 | { |
| 2493 | { |
| 2494 | .eraseblocks = { {4 * 1024, 512} }, |
| 2495 | .block_erase = spi_block_erase_20, |
| 2496 | }, { |
| 2497 | .eraseblocks = { {32 * 1024, 64} }, |
| 2498 | .block_erase = spi_block_erase_52, |
| 2499 | }, { |
| 2500 | .eraseblocks = { {64 * 1024, 32} }, |
| 2501 | .block_erase = spi_block_erase_d8, |
| 2502 | }, { |
| 2503 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2504 | .block_erase = spi_block_erase_60, |
| 2505 | }, { |
| 2506 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2507 | .block_erase = spi_block_erase_c7, |
| 2508 | } |
| 2509 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 2510 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2511 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2512 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2513 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2514 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2515 | }, |
| 2516 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2517 | { |
| 2518 | .vendor = "Atmel", |
| 2519 | .name = "AT26DF161A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2520 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2521 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2522 | .model_id = ATMEL_AT26DF161A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2523 | .total_size = 2048, |
| 2524 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2525 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2526 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2527 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2528 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2529 | .block_erasers = |
| 2530 | { |
| 2531 | { |
| 2532 | .eraseblocks = { {4 * 1024, 512} }, |
| 2533 | .block_erase = spi_block_erase_20, |
| 2534 | }, { |
| 2535 | .eraseblocks = { {32 * 1024, 64} }, |
| 2536 | .block_erase = spi_block_erase_52, |
| 2537 | }, { |
| 2538 | .eraseblocks = { {64 * 1024, 32} }, |
| 2539 | .block_erase = spi_block_erase_d8, |
| 2540 | }, { |
| 2541 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2542 | .block_erase = spi_block_erase_60, |
| 2543 | }, { |
| 2544 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2545 | .block_erase = spi_block_erase_c7, |
| 2546 | } |
| 2547 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2548 | .printlock = spi_prettyprint_status_register_at26df081a, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2549 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2550 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2551 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2552 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2553 | }, |
| 2554 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2555 | { |
| 2556 | .vendor = "Atmel", |
| 2557 | .name = "AT26F004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2558 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2559 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2560 | .model_id = ATMEL_AT26F004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2561 | .total_size = 512, |
| 2562 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2563 | .feature_bits = FEATURE_WRSR_WREN, |
Alan Green | 908adf4 | 2019-07-03 15:34:06 +1000 | [diff] [blame] | 2564 | .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD}, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2565 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2566 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2567 | .block_erasers = |
| 2568 | { |
| 2569 | { |
| 2570 | .eraseblocks = { {4 * 1024, 128} }, |
| 2571 | .block_erase = spi_block_erase_20, |
| 2572 | }, { |
| 2573 | .eraseblocks = { {32 * 1024, 16} }, |
| 2574 | .block_erase = spi_block_erase_52, |
| 2575 | }, { |
| 2576 | .eraseblocks = { {64 * 1024, 8} }, |
| 2577 | .block_erase = spi_block_erase_d8, |
| 2578 | }, { |
| 2579 | .eraseblocks = { {512 * 1024, 1} }, |
| 2580 | .block_erase = spi_block_erase_60, |
| 2581 | }, { |
| 2582 | .eraseblocks = { {512 * 1024, 1} }, |
| 2583 | .block_erase = spi_block_erase_c7, |
| 2584 | } |
| 2585 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2586 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2587 | .write = NULL, /* Incompatible Page write */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2588 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2589 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2590 | }, |
| 2591 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2592 | { |
| 2593 | .vendor = "Atmel", |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2594 | .name = "AT29C010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2595 | .bustype = BUS_PARALLEL, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2596 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2597 | .model_id = ATMEL_AT29C010A, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2598 | .total_size = 128, |
| 2599 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2600 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 2601 | .tested = TEST_OK_PRE, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2602 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 2603 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2604 | .block_erasers = |
| 2605 | { |
| 2606 | { |
| 2607 | .eraseblocks = { {128 * 1024, 1} }, |
| 2608 | .block_erase = erase_chip_block_jedec, |
| 2609 | } |
| 2610 | }, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2611 | .write = write_jedec, /* FIXME */ |
| 2612 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2613 | .voltage = {4500, 5500}, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2614 | }, |
| 2615 | |
| 2616 | { |
| 2617 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2618 | .name = "AT29C020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2619 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2620 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2621 | .model_id = ATMEL_AT29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2622 | .total_size = 256, |
| 2623 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2624 | .feature_bits = FEATURE_LONG_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 2625 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2626 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 2627 | .probe_timing = 10000, /* 10ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2628 | .block_erasers = |
| 2629 | { |
| 2630 | { |
| 2631 | .eraseblocks = { {256 * 1024, 1} }, |
| 2632 | .block_erase = erase_chip_block_jedec, |
| 2633 | } |
| 2634 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2635 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2636 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2637 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2638 | }, |
| 2639 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2640 | { |
| 2641 | .vendor = "Atmel", |
| 2642 | .name = "AT29C040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2643 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2644 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2645 | .model_id = ATMEL_AT29C040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2646 | .total_size = 512, |
| 2647 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2648 | .feature_bits = FEATURE_LONG_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2649 | .tested = TEST_UNTESTED, |
| 2650 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 2651 | .probe_timing = 10000, /* 10 ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2652 | .block_erasers = |
| 2653 | { |
| 2654 | { |
| 2655 | .eraseblocks = { {512 * 1024, 1} }, |
| 2656 | .block_erase = erase_chip_block_jedec, |
| 2657 | } |
| 2658 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2659 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2660 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2661 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2662 | }, |
| 2663 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2664 | { |
| 2665 | .vendor = "Atmel", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 2666 | .name = "AT29C512", |
| 2667 | .bustype = BUS_PARALLEL, |
| 2668 | .manufacture_id = ATMEL_ID, |
| 2669 | .model_id = ATMEL_AT29C512, |
| 2670 | .total_size = 64, |
| 2671 | .page_size = 128, |
| 2672 | .feature_bits = FEATURE_LONG_RESET, |
| 2673 | .tested = TEST_OK_PREW, |
| 2674 | .probe = probe_jedec, |
| 2675 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
| 2676 | .block_erasers = |
| 2677 | { |
| 2678 | { |
| 2679 | .eraseblocks = { {64 * 1024, 1} }, |
| 2680 | .block_erase = erase_chip_block_jedec, |
| 2681 | } |
| 2682 | }, |
| 2683 | .write = write_jedec, |
| 2684 | .read = read_memmapped, |
| 2685 | .voltage = {4500, 5500}, |
| 2686 | }, |
| 2687 | |
| 2688 | { |
| 2689 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2690 | .name = "AT45CS1282", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2691 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2692 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2693 | .model_id = ATMEL_AT45CS1282, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2694 | .total_size = 16896, /* No power of two sizes */ |
| 2695 | .page_size = 1056, /* No power of two sizes */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2696 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Stefan Tauner | 1dd5d3a | 2013-08-27 18:02:19 +0000 | [diff] [blame] | 2697 | /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */ |
| 2698 | .feature_bits = FEATURE_OTP, |
| 2699 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2700 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2701 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | 1dd5d3a | 2013-08-27 18:02:19 +0000 | [diff] [blame] | 2702 | .block_erasers = |
| 2703 | { |
| 2704 | { |
| 2705 | .eraseblocks = { |
| 2706 | {8 * 1056, 1}, /* sector 0a: opcode 50h */ |
| 2707 | {248 * 1056, 1}, /* sector 0b: opcode 7Ch */ |
| 2708 | {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */ |
| 2709 | }, |
| 2710 | .block_erase = spi_erase_at45cs_sector, |
| 2711 | } |
| 2712 | }, |
| 2713 | .printlock = spi_prettyprint_status_register_plain, |
Stefan Tauner | 1dd5d3a | 2013-08-27 18:02:19 +0000 | [diff] [blame] | 2714 | .write = spi_write_at45db, |
| 2715 | .read = spi_read_at45db, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2716 | .voltage = {2700, 3600}, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2717 | .gran = write_gran_1056bytes, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2718 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2719 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2720 | { |
| 2721 | .vendor = "Atmel", |
| 2722 | .name = "AT45DB011D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2723 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2724 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2725 | .model_id = ATMEL_AT45DB011D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2726 | .total_size = 128, /* or 132, determined from status register */ |
| 2727 | .page_size = 256, /* or 264, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2728 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2729 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2730 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 2731 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2732 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2733 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2734 | .block_erasers = |
| 2735 | { |
| 2736 | { |
| 2737 | .eraseblocks = { {256, 512} }, |
| 2738 | .block_erase = spi_erase_at45db_page, |
| 2739 | }, { |
| 2740 | .eraseblocks = { {8 * 256, 512/8} }, |
| 2741 | .block_erase = spi_erase_at45db_block, |
| 2742 | }, { |
| 2743 | .eraseblocks = { |
| 2744 | {8 * 256, 1}, |
| 2745 | {120 * 256, 1}, |
| 2746 | {128 * 256, 3}, |
| 2747 | }, |
| 2748 | .block_erase = spi_erase_at45db_sector |
| 2749 | }, { |
| 2750 | .eraseblocks = { {128 * 1024, 1} }, |
| 2751 | .block_erase = spi_erase_at45db_chip, |
| 2752 | } |
| 2753 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2754 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2755 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2756 | /* granularity will be set by the probing function. */ |
| 2757 | .write = spi_write_at45db, |
| 2758 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2759 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2760 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2761 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2762 | { |
| 2763 | .vendor = "Atmel", |
| 2764 | .name = "AT45DB021D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2765 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2766 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2767 | .model_id = ATMEL_AT45DB021D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2768 | .total_size = 256, /* or 264, determined from status register */ |
| 2769 | .page_size = 256, /* or 264, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2770 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2771 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2772 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 2773 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2774 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2775 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2776 | .block_erasers = |
| 2777 | { |
| 2778 | { |
| 2779 | .eraseblocks = { {256, 1024} }, |
| 2780 | .block_erase = spi_erase_at45db_page, |
| 2781 | }, { |
| 2782 | .eraseblocks = { {8 * 256, 1024/8} }, |
| 2783 | .block_erase = spi_erase_at45db_block, |
| 2784 | }, { |
| 2785 | .eraseblocks = { |
| 2786 | {8 * 256, 1}, |
| 2787 | {120 * 256, 1}, |
| 2788 | {128 * 256, 7}, |
| 2789 | }, |
| 2790 | .block_erase = spi_erase_at45db_sector |
| 2791 | }, { |
| 2792 | .eraseblocks = { {256 * 1024, 1} }, |
| 2793 | .block_erase = spi_erase_at45db_chip, |
| 2794 | } |
| 2795 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2796 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2797 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2798 | /* granularity will be set by the probing function. */ |
| 2799 | .write = spi_write_at45db, |
| 2800 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2801 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2802 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2803 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2804 | { |
| 2805 | .vendor = "Atmel", |
| 2806 | .name = "AT45DB041D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2807 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2808 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2809 | .model_id = ATMEL_AT45DB041D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2810 | .total_size = 512, /* or 528, determined from status register */ |
| 2811 | .page_size = 256, /* or 264, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2812 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2813 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2814 | .feature_bits = FEATURE_OTP, |
| 2815 | .tested = TEST_OK_PREW, |
| 2816 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2817 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2818 | .block_erasers = |
| 2819 | { |
| 2820 | { |
| 2821 | .eraseblocks = { {256, 2048} }, |
| 2822 | .block_erase = spi_erase_at45db_page, |
| 2823 | }, { |
| 2824 | .eraseblocks = { {8 * 256, 2048/8} }, |
| 2825 | .block_erase = spi_erase_at45db_block, |
| 2826 | }, { |
| 2827 | .eraseblocks = { |
| 2828 | {8 * 256, 1}, |
| 2829 | {248 * 256, 1}, |
| 2830 | {256 * 256, 7}, |
| 2831 | }, |
| 2832 | .block_erase = spi_erase_at45db_sector |
| 2833 | }, { |
| 2834 | .eraseblocks = { {512 * 1024, 1} }, |
| 2835 | .block_erase = spi_erase_at45db_chip, |
| 2836 | } |
| 2837 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2838 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2839 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2840 | /* granularity will be set by the probing function. */ |
| 2841 | .write = spi_write_at45db, |
| 2842 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 2843 | .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */ |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2844 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2845 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2846 | { |
| 2847 | .vendor = "Atmel", |
| 2848 | .name = "AT45DB081D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2849 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2850 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2851 | .model_id = ATMEL_AT45DB081D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2852 | .total_size = 1024, /* or 1056, determined from status register */ |
| 2853 | .page_size = 256, /* or 264, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2854 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2855 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2856 | .feature_bits = FEATURE_OTP, |
Angel Pons | 250aeba | 2018-09-30 20:28:22 +0200 | [diff] [blame] | 2857 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2858 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2859 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2860 | .block_erasers = |
| 2861 | { |
| 2862 | { |
| 2863 | .eraseblocks = { {256, 4096} }, |
| 2864 | .block_erase = spi_erase_at45db_page, |
| 2865 | }, { |
| 2866 | .eraseblocks = { {8 * 256, 4096/8} }, |
| 2867 | .block_erase = spi_erase_at45db_block, |
| 2868 | }, { |
| 2869 | .eraseblocks = { |
| 2870 | {8 * 256, 1}, |
| 2871 | {248 * 256, 1}, |
| 2872 | {256 * 256, 15}, |
| 2873 | }, |
| 2874 | .block_erase = spi_erase_at45db_sector |
| 2875 | }, { |
| 2876 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2877 | .block_erase = spi_erase_at45db_chip, |
| 2878 | } |
| 2879 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2880 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2881 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2882 | /* granularity will be set by the probing function. */ |
| 2883 | .write = spi_write_at45db, |
| 2884 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2885 | .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */ |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2886 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2887 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2888 | { |
| 2889 | .vendor = "Atmel", |
| 2890 | .name = "AT45DB161D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2891 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2892 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2893 | .model_id = ATMEL_AT45DB161D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2894 | .total_size = 2048, /* or 2112, determined from status register */ |
| 2895 | .page_size = 512, /* or 528, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2896 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2897 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2898 | .feature_bits = FEATURE_OTP, |
| 2899 | .tested = TEST_OK_PREW, |
| 2900 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2901 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2902 | .block_erasers = |
| 2903 | { |
| 2904 | { |
| 2905 | .eraseblocks = { {512, 4096} }, |
| 2906 | .block_erase = spi_erase_at45db_page, |
| 2907 | }, { |
| 2908 | .eraseblocks = { {8 * 512, 4096/8} }, |
| 2909 | .block_erase = spi_erase_at45db_block, |
| 2910 | }, { |
| 2911 | .eraseblocks = { |
| 2912 | {8 * 512, 1}, |
| 2913 | {248 * 512, 1}, |
| 2914 | {256 * 512, 15}, |
| 2915 | }, |
| 2916 | .block_erase = spi_erase_at45db_sector |
| 2917 | }, { |
| 2918 | .eraseblocks = { {2048 * 1024, 1} }, |
| 2919 | .block_erase = spi_erase_at45db_chip, |
| 2920 | } |
| 2921 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2922 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2923 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2924 | /* granularity will be set by the probing function. */ |
| 2925 | .write = spi_write_at45db, |
| 2926 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2927 | .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */ |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2928 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2929 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2930 | { |
| 2931 | .vendor = "Atmel", |
| 2932 | .name = "AT45DB321C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2933 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2934 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2935 | .model_id = ATMEL_AT45DB321C, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2936 | .total_size = 4224, /* No power of two sizes */ |
| 2937 | .page_size = 528, /* No power of two sizes */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2938 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Stefan Tauner | fdc4f7e | 2013-08-27 18:02:12 +0000 | [diff] [blame] | 2939 | /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */ |
| 2940 | .feature_bits = FEATURE_OTP, |
| 2941 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2942 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2943 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | fdc4f7e | 2013-08-27 18:02:12 +0000 | [diff] [blame] | 2944 | .block_erasers = |
| 2945 | { |
| 2946 | { |
| 2947 | .eraseblocks = { {528, 8192} }, |
| 2948 | .block_erase = spi_erase_at45db_page, |
| 2949 | }, { |
| 2950 | .eraseblocks = { {8 * 528, 8192/8} }, |
| 2951 | .block_erase = spi_erase_at45db_block, |
| 2952 | }, /* Although the datasheets describes sectors (which can be write protected) |
| 2953 | * there seems to be no erase functions for them. |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 2954 | { |
Stefan Tauner | fdc4f7e | 2013-08-27 18:02:12 +0000 | [diff] [blame] | 2955 | .eraseblocks = { |
| 2956 | {8 * 528, 1}, |
| 2957 | {120 * 528, 1}, |
| 2958 | {128 * 528, 63}, |
| 2959 | }, |
| 2960 | .block_erase = spi_erase_at45db_sector |
| 2961 | }, */ { |
| 2962 | .eraseblocks = { {4224 * 1024, 1} }, |
| 2963 | .block_erase = spi_erase_at45db_chip, |
| 2964 | } |
| 2965 | }, |
| 2966 | .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */ |
Stefan Tauner | fdc4f7e | 2013-08-27 18:02:12 +0000 | [diff] [blame] | 2967 | .write = spi_write_at45db, |
| 2968 | .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2969 | .voltage = {2700, 3600}, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2970 | .gran = write_gran_528bytes, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2971 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2972 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2973 | { |
| 2974 | .vendor = "Atmel", |
| 2975 | .name = "AT45DB321D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2976 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2977 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2978 | .model_id = ATMEL_AT45DB321D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2979 | .total_size = 4096, /* or 4224, determined from status register */ |
| 2980 | .page_size = 512, /* or 528, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2981 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2982 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 2983 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 2984 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2985 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2986 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2987 | .block_erasers = |
| 2988 | { |
| 2989 | { |
| 2990 | .eraseblocks = { {512, 8192} }, |
| 2991 | .block_erase = spi_erase_at45db_page, |
| 2992 | }, { |
| 2993 | .eraseblocks = { {8 * 512, 8192/8} }, |
| 2994 | .block_erase = spi_erase_at45db_block, |
| 2995 | }, { |
| 2996 | .eraseblocks = { |
| 2997 | {8 * 512, 1}, |
| 2998 | {120 * 512, 1}, |
| 2999 | {128 * 512, 63}, |
| 3000 | }, |
| 3001 | .block_erase = spi_erase_at45db_sector |
| 3002 | }, { |
| 3003 | .eraseblocks = { {4096 * 1024, 1} }, |
| 3004 | .block_erase = spi_erase_at45db_chip, |
| 3005 | } |
| 3006 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3007 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3008 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3009 | /* granularity will be set by the probing function. */ |
| 3010 | .write = spi_write_at45db, |
| 3011 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 3012 | .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */ |
| 3013 | }, |
| 3014 | |
| 3015 | { |
| 3016 | .vendor = "Atmel", |
| 3017 | .name = "AT45DB321E", |
| 3018 | .bustype = BUS_SPI, |
| 3019 | .manufacture_id = ATMEL_ID, |
| 3020 | .model_id = ATMEL_AT45DB321C, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 3021 | .total_size = 4096, /* or 4224, determined from status register */ |
| 3022 | .page_size = 512, /* or 528, determined from status register */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3023 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
| 3024 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 3025 | .feature_bits = FEATURE_OTP, |
| 3026 | .tested = TEST_UNTESTED, |
| 3027 | .probe = probe_spi_at45db, |
| 3028 | .probe_timing = TIMING_ZERO, |
| 3029 | .block_erasers = |
| 3030 | { |
| 3031 | { |
| 3032 | .eraseblocks = { {512, 8192} }, |
| 3033 | .block_erase = spi_erase_at45db_page, |
| 3034 | }, { |
| 3035 | .eraseblocks = { {8 * 512, 8192/8} }, |
| 3036 | .block_erase = spi_erase_at45db_block, |
| 3037 | }, { |
| 3038 | .eraseblocks = { |
| 3039 | {8 * 512, 1}, |
| 3040 | {120 * 512, 1}, |
| 3041 | {128 * 512, 63}, |
| 3042 | }, |
| 3043 | .block_erase = spi_erase_at45db_sector |
| 3044 | }, { |
| 3045 | .eraseblocks = { {4096 * 1024, 1} }, |
| 3046 | .block_erase = spi_erase_at45db_chip, |
| 3047 | } |
| 3048 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3049 | .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */ |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3050 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3051 | /* granularity will be set by the probing function. */ |
| 3052 | .write = spi_write_at45db, |
| 3053 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 3054 | .voltage = {2500, 3600}, /* 2.3-3.6V & 2.5-3.6V models available */ |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 3055 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3056 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3057 | { |
| 3058 | .vendor = "Atmel", |
| 3059 | .name = "AT45DB642D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3060 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3061 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3062 | .model_id = ATMEL_AT45DB642D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 3063 | .total_size = 8192, /* or 8448, determined from status register */ |
| 3064 | .page_size = 1024, /* or 1056, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3065 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3066 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 3067 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 3068 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3069 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3070 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3071 | .block_erasers = |
| 3072 | { |
| 3073 | { |
| 3074 | .eraseblocks = { {1024, 8192} }, |
| 3075 | .block_erase = spi_erase_at45db_page, |
| 3076 | }, { |
| 3077 | .eraseblocks = { {8 * 1024, 8192/8} }, |
| 3078 | .block_erase = spi_erase_at45db_block, |
| 3079 | }, { |
| 3080 | .eraseblocks = { |
| 3081 | {8 * 1024, 1}, |
| 3082 | {248 * 1024, 1}, |
| 3083 | {256 * 1024, 31}, |
| 3084 | }, |
| 3085 | .block_erase = spi_erase_at45db_sector |
| 3086 | }, { |
| 3087 | .eraseblocks = { {8192 * 1024, 1} }, |
| 3088 | .block_erase = spi_erase_at45db_chip, |
| 3089 | } |
| 3090 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3091 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3092 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3093 | /* granularity will be set by the probing function. */ |
| 3094 | .write = spi_write_at45db, |
| 3095 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3096 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 3097 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3098 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3099 | { |
| 3100 | .vendor = "Atmel", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3101 | .name = "AT49(H)F010", |
| 3102 | .bustype = BUS_PARALLEL, |
| 3103 | .manufacture_id = ATMEL_ID, |
| 3104 | .model_id = ATMEL_AT49F010, |
| 3105 | .total_size = 128, |
| 3106 | .page_size = 0, /* unused */ |
| 3107 | .feature_bits = FEATURE_EITHER_RESET, |
| 3108 | .tested = TEST_OK_PREW, |
| 3109 | .probe = probe_jedec, |
| 3110 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3111 | .block_erasers = |
| 3112 | { |
| 3113 | { |
| 3114 | .eraseblocks = { {128 * 1024, 1} }, |
| 3115 | .block_erase = erase_chip_block_jedec, |
| 3116 | } |
| 3117 | }, |
| 3118 | .printlock = printlock_at49f, |
| 3119 | .write = write_jedec_1, |
| 3120 | .read = read_memmapped, |
| 3121 | .voltage = {4500, 5500}, |
| 3122 | }, |
| 3123 | |
| 3124 | { |
| 3125 | .vendor = "Atmel", |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3126 | .name = "AT49BV512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3127 | .bustype = BUS_PARALLEL, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3128 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3129 | .model_id = ATMEL_AT49BV512, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3130 | .total_size = 64, |
| 3131 | .page_size = 64, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3132 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 3133 | .tested = TEST_OK_PREW, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3134 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3135 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 3136 | .block_erasers = |
| 3137 | { |
| 3138 | { |
| 3139 | .eraseblocks = { {64 * 1024, 1} }, |
| 3140 | .block_erase = erase_chip_block_jedec, |
| 3141 | } |
| 3142 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3143 | .write = write_jedec_1, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3144 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3145 | .voltage = {2700, 3600}, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3146 | }, |
| 3147 | |
| 3148 | { |
| 3149 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3150 | .name = "AT49F002(N)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3151 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3152 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3153 | .model_id = ATMEL_AT49F002N, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3154 | .total_size = 256, |
| 3155 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3156 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3157 | .tested = TEST_UNTESTED, |
| 3158 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3159 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 3160 | .block_erasers = |
| 3161 | { |
| 3162 | { |
| 3163 | .eraseblocks = { |
| 3164 | {16 * 1024, 1}, |
| 3165 | {8 * 1024, 2}, |
| 3166 | {96 * 1024, 1}, |
| 3167 | {128 * 1024, 1}, |
| 3168 | }, |
| 3169 | .block_erase = erase_sector_jedec, |
| 3170 | }, { |
| 3171 | .eraseblocks = { {256 * 1024, 1} }, |
| 3172 | .block_erase = erase_chip_block_jedec, |
| 3173 | } |
| 3174 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3175 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3176 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3177 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3178 | }, |
| 3179 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3180 | { |
| 3181 | .vendor = "Atmel", |
| 3182 | .name = "AT49F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3183 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3184 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3185 | .model_id = ATMEL_AT49F002NT, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3186 | .total_size = 256, |
| 3187 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3188 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 3189 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3190 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3191 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 3192 | .block_erasers = |
| 3193 | { |
| 3194 | { |
| 3195 | .eraseblocks = { |
| 3196 | {128 * 1024, 1}, |
| 3197 | {96 * 1024, 1}, |
| 3198 | {8 * 1024, 2}, |
| 3199 | {16 * 1024, 1}, |
| 3200 | }, |
| 3201 | .block_erase = erase_sector_jedec, |
| 3202 | }, { |
| 3203 | .eraseblocks = { {256 * 1024, 1} }, |
| 3204 | .block_erase = erase_chip_block_jedec, |
| 3205 | } |
| 3206 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3207 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3208 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3209 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3210 | }, |
| 3211 | |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 3212 | { |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3213 | .vendor = "Atmel", |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 3214 | .name = "AT49F020", |
| 3215 | .bustype = BUS_PARALLEL, |
| 3216 | .manufacture_id = ATMEL_ID, |
| 3217 | .model_id = ATMEL_AT49F020, |
| 3218 | .total_size = 256, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3219 | .page_size = 0, /* unused */ |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 3220 | .feature_bits = FEATURE_EITHER_RESET, |
| 3221 | .tested = TEST_OK_PRE, |
| 3222 | .probe = probe_jedec, |
| 3223 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3224 | .block_erasers = |
| 3225 | { |
| 3226 | { |
| 3227 | .eraseblocks = { {256 * 1024, 1} }, |
| 3228 | .block_erase = erase_chip_block_jedec, |
| 3229 | } |
| 3230 | /* Chip features an optional permanent write protection |
| 3231 | * of the first 8 kB. The erase function is the same as |
| 3232 | * above, but 00000H to 01FFFH will not be erased. |
| 3233 | * FIXME: add another eraser when partial erasers are |
| 3234 | * supported. |
| 3235 | */ |
| 3236 | }, |
| 3237 | .printlock = printlock_at49f, |
| 3238 | .write = write_jedec_1, |
| 3239 | .read = read_memmapped, |
| 3240 | .voltage = {4500, 5500}, |
| 3241 | }, |
| 3242 | |
| 3243 | { |
| 3244 | .vendor = "Atmel", |
| 3245 | .name = "AT49F040", |
| 3246 | .bustype = BUS_PARALLEL, |
| 3247 | .manufacture_id = ATMEL_ID, |
| 3248 | .model_id = ATMEL_AT49F040, |
| 3249 | .total_size = 512, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3250 | .page_size = 0, /* unused */ |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 3251 | .feature_bits = FEATURE_EITHER_RESET, |
| 3252 | .tested = TEST_UNTESTED, |
| 3253 | .probe = probe_jedec, |
| 3254 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3255 | .block_erasers = |
| 3256 | { |
| 3257 | { |
| 3258 | .eraseblocks = { {512 * 1024, 1} }, |
| 3259 | .block_erase = erase_chip_block_jedec, |
| 3260 | } |
| 3261 | /* Chip features an optional permanent write protection |
| 3262 | * of the first 16 kB. The erase function is the same as |
| 3263 | * above, but 00000H to 03FFFH will not be erased. |
| 3264 | * FIXME: add another eraser when partial erasers are |
| 3265 | * supported. |
| 3266 | */ |
| 3267 | }, |
| 3268 | .printlock = printlock_at49f, |
| 3269 | .write = write_jedec_1, |
| 3270 | .read = read_memmapped, |
| 3271 | .voltage = {4500, 5500}, |
| 3272 | }, |
| 3273 | |
| 3274 | { |
| 3275 | .vendor = "Atmel", |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3276 | .name = "AT49F080", |
| 3277 | .bustype = BUS_PARALLEL, |
| 3278 | .manufacture_id = ATMEL_ID, |
| 3279 | .model_id = ATMEL_AT49F080, |
| 3280 | .total_size = 1024, |
| 3281 | .page_size = 0, /* unused */ |
| 3282 | .feature_bits = FEATURE_EITHER_RESET, |
| 3283 | .tested = TEST_UNTESTED, |
| 3284 | .probe = probe_jedec, |
| 3285 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3286 | .block_erasers = |
| 3287 | { |
| 3288 | { |
| 3289 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3290 | .block_erase = erase_chip_block_jedec, |
| 3291 | } |
| 3292 | /* Chip features an optional permanent write protection |
| 3293 | * of the first 16 kB. The erase function is the same as |
| 3294 | * above, but 00000H to 03FFFH will not be erased. |
| 3295 | * FIXME: add another eraser when partial erasers are |
| 3296 | * supported. |
| 3297 | */ |
| 3298 | }, |
| 3299 | .printlock = printlock_at49f, |
| 3300 | .write = write_jedec_1, |
| 3301 | .read = read_memmapped, |
| 3302 | .voltage = {4500, 5500}, |
| 3303 | }, |
| 3304 | |
| 3305 | { |
| 3306 | /* 'top' version of AT49F080. equal in all aspects but the boot block address */ |
| 3307 | .vendor = "Atmel", |
| 3308 | .name = "AT49F080T", |
| 3309 | .bustype = BUS_PARALLEL, |
| 3310 | .manufacture_id = ATMEL_ID, |
| 3311 | .model_id = ATMEL_AT49F080T, |
| 3312 | .total_size = 1024, |
| 3313 | .page_size = 0, /* unused */ |
| 3314 | .feature_bits = FEATURE_EITHER_RESET, |
| 3315 | .tested = TEST_UNTESTED, |
| 3316 | .probe = probe_jedec, |
| 3317 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3318 | .block_erasers = |
| 3319 | { |
| 3320 | { |
| 3321 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3322 | .block_erase = erase_chip_block_jedec, |
| 3323 | } |
| 3324 | /* Chip features an optional permanent write protection |
| 3325 | * of the first 16 kB. The erase function is the same as |
| 3326 | * above, but FC000H to FFFFFH will not be erased. |
| 3327 | * FIXME: add another eraser when partial erasers are |
| 3328 | * supported. |
| 3329 | */ |
| 3330 | }, |
| 3331 | .printlock = printlock_at49f, |
| 3332 | .write = write_jedec_1, |
| 3333 | .read = read_memmapped, |
| 3334 | .voltage = {4500, 5500}, |
| 3335 | }, |
| 3336 | |
| 3337 | { |
| 3338 | .vendor = "Atmel", |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3339 | .name = "AT49LH002", |
| 3340 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 3341 | .manufacture_id = ATMEL_ID, |
| 3342 | .model_id = ATMEL_AT49LH002, |
| 3343 | .total_size = 256, |
| 3344 | .page_size = 0, /* unused */ |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3345 | .feature_bits = FEATURE_REGISTERMAP, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3346 | .tested = TEST_UNTESTED, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3347 | .probe = probe_82802ab, |
| 3348 | .probe_timing = TIMING_ZERO, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3349 | .block_erasers = |
| 3350 | { |
| 3351 | { |
| 3352 | .eraseblocks = { |
| 3353 | {64 * 1024, 3}, |
| 3354 | {32 * 1024, 1}, |
| 3355 | {8 * 1024, 2}, |
| 3356 | {16 * 1024, 1}, |
| 3357 | }, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3358 | .block_erase = NULL, /* TODO: Implement. */ |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3359 | }, { |
| 3360 | .eraseblocks = { |
| 3361 | {64 * 1024, 4}, |
| 3362 | }, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3363 | .block_erase = erase_block_82802ab, |
| 3364 | }, |
| 3365 | }, |
| 3366 | .printlock = printlock_regspace2_block_eraser_0, |
| 3367 | .unlock = unlock_regspace2_block_eraser_0, |
| 3368 | .write = write_82802ab, |
| 3369 | .read = read_memmapped, |
| 3370 | .voltage = {3000, 3600}, |
| 3371 | }, |
| 3372 | |
| 3373 | { |
| 3374 | .vendor = "Atmel", |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3375 | .name = "AT49LH004", |
| 3376 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 3377 | .manufacture_id = ATMEL_ID, |
| 3378 | .model_id = ATMEL_AT49LH004, |
| 3379 | .total_size = 512, |
| 3380 | .page_size = 0, /* unused */ |
| 3381 | .feature_bits = FEATURE_REGISTERMAP, |
| 3382 | .tested = TEST_UNTESTED, |
| 3383 | .probe = probe_82802ab, |
| 3384 | .probe_timing = TIMING_ZERO, |
| 3385 | .block_erasers = |
| 3386 | { |
| 3387 | { |
| 3388 | .eraseblocks = { |
| 3389 | {64 * 1024, 7}, |
| 3390 | {32 * 1024, 1}, |
| 3391 | {8 * 1024, 2}, |
| 3392 | {16 * 1024, 1}, |
| 3393 | }, |
| 3394 | .block_erase = erase_block_82802ab, |
| 3395 | }, { |
| 3396 | .eraseblocks = { |
| 3397 | {64 * 1024, 8}, |
| 3398 | }, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3399 | .block_erase = NULL, /* TODO: Implement. */ |
| 3400 | }, |
| 3401 | }, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3402 | .printlock = printlock_regspace2_block_eraser_0, |
| 3403 | .unlock = unlock_regspace2_block_eraser_0, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3404 | .write = write_82802ab, |
| 3405 | .read = read_memmapped, |
| 3406 | .voltage = {3000, 3600}, |
| 3407 | }, |
| 3408 | |
| 3409 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3410 | .vendor = "Atmel", |
| 3411 | .name = "AT49LH00B4", |
| 3412 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 3413 | .manufacture_id = ATMEL_ID, |
| 3414 | .model_id = ATMEL_AT49LH00B4, |
| 3415 | .total_size = 512, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3416 | .page_size = 0, /* unused */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3417 | .feature_bits = FEATURE_REGISTERMAP, |
| 3418 | .tested = TEST_UNTESTED, |
| 3419 | .probe = probe_82802ab, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3420 | .probe_timing = TIMING_ZERO, |
| 3421 | .block_erasers = |
| 3422 | { |
| 3423 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3424 | .eraseblocks = { |
| 3425 | {8 * 1024, 2}, |
| 3426 | {16 * 1024, 1}, |
| 3427 | {32 * 1024, 1}, |
| 3428 | {64 * 1024, 7}, |
| 3429 | }, |
| 3430 | .block_erase = NULL, /* TODO: Implement. */ |
| 3431 | }, { |
| 3432 | .eraseblocks = { |
| 3433 | {64 * 1024, 8}, |
| 3434 | }, |
| 3435 | .block_erase = erase_block_82802ab, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3436 | }, |
| 3437 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3438 | .printlock = printlock_regspace2_block_eraser_0, |
| 3439 | .unlock = unlock_regspace2_block_eraser_0, |
| 3440 | .write = write_82802ab, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3441 | .read = read_memmapped, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3442 | .voltage = {3000, 3600}, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3443 | }, |
| 3444 | |
| 3445 | { |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3446 | .vendor = "Bright", |
| 3447 | .name = "BM29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3448 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3449 | .manufacture_id = BRIGHT_ID, |
| 3450 | .model_id = BRIGHT_BM29F040, |
| 3451 | .total_size = 512, |
| 3452 | .page_size = 64 * 1024, |
| 3453 | .feature_bits = FEATURE_EITHER_RESET, |
| 3454 | .tested = TEST_OK_PR, |
| 3455 | .probe = probe_jedec, |
| 3456 | .probe_timing = TIMING_ZERO, |
| 3457 | .block_erasers = |
| 3458 | { |
| 3459 | { |
| 3460 | .eraseblocks = { {64 * 1024, 8} }, |
| 3461 | .block_erase = erase_sector_jedec, |
| 3462 | }, { |
| 3463 | .eraseblocks = { {512 * 1024, 1} }, |
| 3464 | .block_erase = erase_chip_block_jedec, |
| 3465 | }, |
| 3466 | }, |
| 3467 | .write = write_jedec_1, |
| 3468 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 3469 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3470 | }, |
| 3471 | |
| 3472 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3473 | .vendor = "Catalyst", |
| 3474 | .name = "CAT28F512", |
| 3475 | .bustype = BUS_PARALLEL, |
| 3476 | .manufacture_id = CATALYST_ID, |
| 3477 | .model_id = CATALYST_CAT28F512, |
| 3478 | .total_size = 64, |
| 3479 | .page_size = 0, /* unused */ |
| 3480 | .feature_bits = 0, |
Alan Green | 908adf4 | 2019-07-03 15:34:06 +1000 | [diff] [blame] | 3481 | .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD}, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3482 | .probe = probe_jedec, /* FIXME! */ |
| 3483 | .probe_timing = TIMING_ZERO, |
| 3484 | .block_erasers = |
| 3485 | { |
| 3486 | { |
| 3487 | .eraseblocks = { {64 * 1024, 1} }, |
| 3488 | .block_erase = NULL, /* TODO */ |
| 3489 | }, |
| 3490 | }, |
| 3491 | .write = NULL, /* TODO */ |
| 3492 | .read = read_memmapped, |
| 3493 | .voltage = {4500, 5500}, |
| 3494 | }, |
| 3495 | |
| 3496 | { |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3497 | .vendor = "ENE", |
| 3498 | .name = "KB9012 (EDI)", |
| 3499 | .bustype = BUS_SPI, |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3500 | .total_size = 128, |
| 3501 | .page_size = 128, |
| 3502 | .feature_bits = FEATURE_ERASED_ZERO, |
| 3503 | .tested = TEST_OK_PREW, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3504 | .spi_cmd_set = SPI_EDI, |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3505 | .probe = edi_probe_kb9012, |
| 3506 | .probe_timing = TIMING_ZERO, |
| 3507 | .block_erasers = |
| 3508 | { |
| 3509 | { |
| 3510 | .eraseblocks = { {128, 1024} }, |
| 3511 | .block_erase = edi_chip_block_erase, |
| 3512 | }, |
| 3513 | }, |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3514 | .write = edi_chip_write, |
| 3515 | .read = edi_chip_read, |
| 3516 | .voltage = {2700, 3600}, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3517 | .gran = write_gran_128bytes, |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3518 | }, |
| 3519 | |
| 3520 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3521 | .vendor = "ESI", |
| 3522 | .name = "ES25P16", |
| 3523 | .bustype = BUS_SPI, |
| 3524 | .manufacture_id = EXCEL_ID_NOPREFIX, |
| 3525 | .model_id = EXCEL_ES25P16, |
| 3526 | .total_size = 2 * 1024, |
| 3527 | .page_size = 256, |
| 3528 | /* 256-byte parameter page separate from memory array: |
| 3529 | * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */ |
| 3530 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3531 | .tested = TEST_UNTESTED, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3532 | .probe = probe_spi_rdid, |
| 3533 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3534 | .block_erasers = |
| 3535 | { |
| 3536 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3537 | .eraseblocks = { {64 * 1024, 32} }, |
| 3538 | .block_erase = spi_block_erase_d8, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3539 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3540 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3541 | .block_erase = spi_block_erase_c7, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3542 | } |
| 3543 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3544 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 3545 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 3546 | .write = spi_chip_write_256, |
| 3547 | .read = spi_chip_read, /* Fast Read (0x0B) supported */ |
| 3548 | .voltage = {2700, 3600}, |
| 3549 | }, |
| 3550 | |
| 3551 | { |
| 3552 | .vendor = "ESI", |
| 3553 | .name = "ES25P40", |
| 3554 | .bustype = BUS_SPI, |
| 3555 | .manufacture_id = EXCEL_ID_NOPREFIX, |
| 3556 | .model_id = EXCEL_ES25P40, |
| 3557 | .total_size = 512, |
| 3558 | .page_size = 256, |
| 3559 | /* 256-byte parameter page separate from memory array: |
| 3560 | * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */ |
| 3561 | .feature_bits = FEATURE_WRSR_WREN, |
| 3562 | .tested = TEST_UNTESTED, |
| 3563 | .probe = probe_spi_rdid, |
| 3564 | .probe_timing = TIMING_ZERO, |
| 3565 | .block_erasers = |
| 3566 | { |
| 3567 | { |
| 3568 | .eraseblocks = { {64 * 1024, 8} }, |
| 3569 | .block_erase = spi_block_erase_d8, |
| 3570 | }, { |
| 3571 | .eraseblocks = { {512 * 1024, 1} }, |
| 3572 | .block_erase = spi_block_erase_c7, |
| 3573 | } |
| 3574 | }, |
| 3575 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 3576 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 3577 | .write = spi_chip_write_256, |
| 3578 | .read = spi_chip_read, /* Fast Read (0x0B) supported */ |
| 3579 | .voltage = {2700, 3600}, |
| 3580 | }, |
| 3581 | |
| 3582 | { |
| 3583 | .vendor = "ESI", |
| 3584 | .name = "ES25P80", |
| 3585 | .bustype = BUS_SPI, |
| 3586 | .manufacture_id = EXCEL_ID_NOPREFIX, |
| 3587 | .model_id = EXCEL_ES25P80, |
| 3588 | .total_size = 1024, |
| 3589 | .page_size = 256, |
| 3590 | /* 256-byte parameter page separate from memory array: |
| 3591 | * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */ |
| 3592 | .feature_bits = FEATURE_WRSR_WREN, |
| 3593 | .tested = TEST_UNTESTED, |
| 3594 | .probe = probe_spi_rdid, |
| 3595 | .probe_timing = TIMING_ZERO, |
| 3596 | .block_erasers = |
| 3597 | { |
| 3598 | { |
| 3599 | .eraseblocks = { {64 * 1024, 16} }, |
| 3600 | .block_erase = spi_block_erase_d8, |
| 3601 | }, { |
| 3602 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3603 | .block_erase = spi_block_erase_c7, |
| 3604 | } |
| 3605 | }, |
| 3606 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 3607 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 3608 | .write = spi_chip_write_256, |
| 3609 | .read = spi_chip_read, /* Fast Read (0x0B) supported */ |
| 3610 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3611 | }, |
| 3612 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3613 | { |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3614 | .vendor = "ESMT", |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3615 | .name = "F25L008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3616 | .bustype = BUS_SPI, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3617 | .manufacture_id = ESMT_ID, |
| 3618 | .model_id = ESMT_F25L008A, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3619 | .total_size = 1024, |
| 3620 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3621 | .feature_bits = FEATURE_WRSR_EITHER, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 3622 | .tested = TEST_OK_PREW, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3623 | .probe = probe_spi_rdid, |
| 3624 | .probe_timing = TIMING_ZERO, |
| 3625 | .block_erasers = |
| 3626 | { |
| 3627 | { |
| 3628 | .eraseblocks = { {4 * 1024, 256} }, |
| 3629 | .block_erase = spi_block_erase_20, |
| 3630 | }, { |
| 3631 | .eraseblocks = { {64 * 1024, 16} }, |
| 3632 | .block_erase = spi_block_erase_d8, |
| 3633 | }, { |
| 3634 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3635 | .block_erase = spi_block_erase_60, |
| 3636 | }, { |
| 3637 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3638 | .block_erase = spi_block_erase_c7, |
| 3639 | } |
| 3640 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3641 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3642 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 9a795d8 | 2010-07-14 16:19:05 +0000 | [diff] [blame] | 3643 | .write = spi_chip_write_1, |
Michael Karcher | 4497e86 | 2010-07-10 19:34:15 +0000 | [diff] [blame] | 3644 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3645 | .voltage = {2700, 3600}, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3646 | }, |
| 3647 | |
| 3648 | { |
Stefan Tauner | 85f09f7 | 2014-05-27 21:27:14 +0000 | [diff] [blame] | 3649 | .vendor = "ESMT", |
| 3650 | .name = "F25L32PA", |
| 3651 | .bustype = BUS_SPI, |
| 3652 | .manufacture_id = ESMT_ID, |
| 3653 | .model_id = ESMT_F25L32PA, |
| 3654 | .total_size = 4096, |
| 3655 | .page_size = 256, |
| 3656 | .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP, |
| 3657 | .tested = TEST_UNTESTED, |
| 3658 | .probe = probe_spi_rdid, |
| 3659 | .probe_timing = TIMING_ZERO, |
| 3660 | .block_erasers = |
| 3661 | { |
| 3662 | { |
| 3663 | .eraseblocks = { {4 * 1024, 1024} }, |
| 3664 | .block_erase = spi_block_erase_20, |
| 3665 | }, { |
| 3666 | .eraseblocks = { {64 * 1024, 64} }, |
| 3667 | .block_erase = spi_block_erase_d8, |
| 3668 | }, { |
| 3669 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3670 | .block_erase = spi_block_erase_60, |
| 3671 | }, { |
| 3672 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3673 | .block_erase = spi_block_erase_c7, |
| 3674 | } |
| 3675 | }, |
| 3676 | .printlock = spi_prettyprint_status_register_bp2_bpl, |
| 3677 | .unlock = spi_disable_blockprotect, |
| 3678 | .write = spi_chip_write_256, |
| 3679 | .read = spi_chip_read, |
| 3680 | .voltage = {2700, 3600}, |
| 3681 | }, |
| 3682 | |
| 3683 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3684 | .vendor = "ESMT", |
| 3685 | .name = "F49B002UA", |
| 3686 | .bustype = BUS_PARALLEL, |
| 3687 | .manufacture_id = ESMT_ID, |
| 3688 | .model_id = ESMT_F49B002UA, |
| 3689 | .total_size = 256, |
| 3690 | .page_size = 4096, |
| 3691 | .feature_bits = FEATURE_EITHER_RESET, |
| 3692 | .tested = TEST_UNTESTED, |
| 3693 | .probe = probe_jedec, |
| 3694 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3695 | .block_erasers = |
| 3696 | { |
| 3697 | { |
| 3698 | .eraseblocks = { |
| 3699 | {128 * 1024, 1}, |
| 3700 | {96 * 1024, 1}, |
| 3701 | {8 * 1024, 2}, |
| 3702 | {16 * 1024, 1}, |
| 3703 | }, |
| 3704 | .block_erase = erase_sector_jedec, |
| 3705 | }, { |
| 3706 | .eraseblocks = { {256 * 1024, 1} }, |
| 3707 | .block_erase = erase_chip_block_jedec, |
| 3708 | } |
| 3709 | }, |
| 3710 | .write = write_jedec_1, |
| 3711 | .read = read_memmapped, |
| 3712 | .voltage = {4500, 5500}, |
| 3713 | }, |
| 3714 | |
| 3715 | { |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3716 | .vendor = "Eon", |
| 3717 | .name = "EN25B05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3718 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3719 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3720 | .model_id = EON_EN25B05, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3721 | .total_size = 64, |
| 3722 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3723 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3724 | .tested = TEST_UNTESTED, |
| 3725 | .probe = probe_spi_rdid, |
| 3726 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3727 | .block_erasers = |
| 3728 | { |
| 3729 | { |
| 3730 | .eraseblocks = { |
| 3731 | {4 * 1024, 2}, |
| 3732 | {8 * 1024, 1}, |
| 3733 | {16 * 1024, 1}, |
| 3734 | {32 * 1024, 1}, |
| 3735 | }, |
| 3736 | .block_erase = spi_block_erase_d8, |
| 3737 | }, { |
| 3738 | .eraseblocks = { {64 * 1024, 1} }, |
| 3739 | .block_erase = spi_block_erase_c7, |
| 3740 | } |
| 3741 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3742 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3743 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3744 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3745 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3746 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3747 | }, |
| 3748 | |
| 3749 | { |
| 3750 | .vendor = "Eon", |
| 3751 | .name = "EN25B05T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3752 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3753 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3754 | .model_id = EON_EN25B05, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3755 | .total_size = 64, |
| 3756 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3757 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3758 | .tested = TEST_UNTESTED, |
| 3759 | .probe = probe_spi_rdid, |
| 3760 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3761 | .block_erasers = |
| 3762 | { |
| 3763 | { |
| 3764 | .eraseblocks = { |
| 3765 | {32 * 1024, 1}, |
| 3766 | {16 * 1024, 1}, |
| 3767 | {8 * 1024, 1}, |
| 3768 | {4 * 1024, 2}, |
| 3769 | }, |
| 3770 | .block_erase = spi_block_erase_d8, |
| 3771 | }, { |
| 3772 | .eraseblocks = { {64 * 1024, 1} }, |
| 3773 | .block_erase = spi_block_erase_c7, |
| 3774 | } |
| 3775 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3776 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3777 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3778 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3779 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3780 | .voltage = {2700, 3600}, |
| 3781 | }, |
| 3782 | |
| 3783 | { |
| 3784 | .vendor = "Eon", |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3785 | .name = "EN25B10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3786 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3787 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3788 | .model_id = EON_EN25B10, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3789 | .total_size = 128, |
| 3790 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3791 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3792 | .tested = TEST_UNTESTED, |
| 3793 | .probe = probe_spi_rdid, |
| 3794 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3795 | .block_erasers = |
| 3796 | { |
| 3797 | { |
| 3798 | .eraseblocks = { |
| 3799 | {4 * 1024, 2}, |
| 3800 | {8 * 1024, 1}, |
| 3801 | {16 * 1024, 1}, |
| 3802 | {32 * 1024, 3}, |
| 3803 | }, |
| 3804 | .block_erase = spi_block_erase_d8, |
| 3805 | }, { |
| 3806 | .eraseblocks = { {128 * 1024, 1} }, |
| 3807 | .block_erase = spi_block_erase_c7, |
| 3808 | } |
| 3809 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3810 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3811 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3812 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3813 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3814 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3815 | }, |
| 3816 | |
| 3817 | { |
| 3818 | .vendor = "Eon", |
| 3819 | .name = "EN25B10T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3820 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3821 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3822 | .model_id = EON_EN25B10, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3823 | .total_size = 128, |
| 3824 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3825 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 3826 | .tested = TEST_OK_PREW, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3827 | .probe = probe_spi_rdid, |
| 3828 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3829 | .block_erasers = |
| 3830 | { |
| 3831 | { |
| 3832 | .eraseblocks = { |
| 3833 | {32 * 1024, 3}, |
| 3834 | {16 * 1024, 1}, |
| 3835 | {8 * 1024, 1}, |
| 3836 | {4 * 1024, 2}, |
| 3837 | }, |
| 3838 | .block_erase = spi_block_erase_d8, |
| 3839 | }, { |
| 3840 | .eraseblocks = { {128 * 1024, 1} }, |
| 3841 | .block_erase = spi_block_erase_c7, |
| 3842 | } |
| 3843 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3844 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3845 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3846 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3847 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3848 | .voltage = {2700, 3600}, |
| 3849 | }, |
| 3850 | |
| 3851 | { |
| 3852 | .vendor = "Eon", |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3853 | .name = "EN25B16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3854 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3855 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3856 | .model_id = EON_EN25B16, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3857 | .total_size = 2048, |
| 3858 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3859 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3860 | .tested = TEST_UNTESTED, |
| 3861 | .probe = probe_spi_rdid, |
| 3862 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3863 | .block_erasers = |
| 3864 | { |
| 3865 | { |
| 3866 | .eraseblocks = { |
| 3867 | {4 * 1024, 2}, |
| 3868 | {8 * 1024, 1}, |
| 3869 | {16 * 1024, 1}, |
| 3870 | {32 * 1024, 1}, |
| 3871 | {64 * 1024, 31}, |
| 3872 | }, |
| 3873 | .block_erase = spi_block_erase_d8, |
| 3874 | }, { |
| 3875 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3876 | .block_erase = spi_block_erase_c7, |
| 3877 | } |
| 3878 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3879 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3880 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3881 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3882 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3883 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3884 | }, |
| 3885 | |
| 3886 | { |
| 3887 | .vendor = "Eon", |
| 3888 | .name = "EN25B16T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3889 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3890 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3891 | .model_id = EON_EN25B16, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3892 | .total_size = 2048, |
| 3893 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3894 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3895 | .tested = TEST_UNTESTED, |
| 3896 | .probe = probe_spi_rdid, |
| 3897 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3898 | .block_erasers = |
| 3899 | { |
| 3900 | { |
| 3901 | .eraseblocks = { |
| 3902 | {64 * 1024, 31}, |
| 3903 | {32 * 1024, 1}, |
| 3904 | {16 * 1024, 1}, |
| 3905 | {8 * 1024, 1}, |
| 3906 | {4 * 1024, 2}, |
| 3907 | }, |
| 3908 | .block_erase = spi_block_erase_d8, |
| 3909 | }, { |
| 3910 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3911 | .block_erase = spi_block_erase_c7, |
| 3912 | } |
| 3913 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3914 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3915 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3916 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3917 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3918 | .voltage = {2700, 3600}, |
| 3919 | }, |
| 3920 | |
| 3921 | { |
| 3922 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3923 | .name = "EN25B20", |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3924 | .bustype = BUS_SPI, |
| 3925 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3926 | .model_id = EON_EN25B20, |
| 3927 | .total_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3928 | .page_size = 256, |
| 3929 | .feature_bits = FEATURE_WRSR_WREN, |
| 3930 | .tested = TEST_UNTESTED, |
| 3931 | .probe = probe_spi_rdid, |
| 3932 | .probe_timing = TIMING_ZERO, |
| 3933 | .block_erasers = |
| 3934 | { |
| 3935 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3936 | .eraseblocks = { |
| 3937 | {4 * 1024, 2}, |
| 3938 | {8 * 1024, 1}, |
| 3939 | {16 * 1024, 1}, |
| 3940 | {32 * 1024, 1}, |
| 3941 | {64 * 1024, 3} |
| 3942 | }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3943 | .block_erase = spi_block_erase_d8, |
| 3944 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3945 | .eraseblocks = { {256 * 1024, 1} }, |
| 3946 | .block_erase = spi_block_erase_c7, |
| 3947 | } |
| 3948 | }, |
| 3949 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 3950 | .unlock = spi_disable_blockprotect, |
| 3951 | .write = spi_chip_write_256, |
| 3952 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3953 | .voltage = {2700, 3600}, |
| 3954 | }, |
| 3955 | |
| 3956 | { |
| 3957 | .vendor = "Eon", |
| 3958 | .name = "EN25B20T", |
| 3959 | .bustype = BUS_SPI, |
| 3960 | .manufacture_id = EON_ID_NOPREFIX, |
| 3961 | .model_id = EON_EN25B20, |
| 3962 | .total_size = 256, |
| 3963 | .page_size = 256, |
| 3964 | .feature_bits = FEATURE_WRSR_WREN, |
| 3965 | .tested = TEST_UNTESTED, |
| 3966 | .probe = probe_spi_rdid, |
| 3967 | .probe_timing = TIMING_ZERO, |
| 3968 | .block_erasers = |
| 3969 | { |
| 3970 | { |
| 3971 | .eraseblocks = { |
| 3972 | {64 * 1024, 3}, |
| 3973 | {32 * 1024, 1}, |
| 3974 | {16 * 1024, 1}, |
| 3975 | {8 * 1024, 1}, |
| 3976 | {4 * 1024, 2}, |
| 3977 | }, |
| 3978 | .block_erase = spi_block_erase_d8, |
| 3979 | }, { |
| 3980 | .eraseblocks = { {256 * 1024, 1} }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3981 | .block_erase = spi_block_erase_c7, |
| 3982 | } |
| 3983 | }, |
| 3984 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 3985 | .unlock = spi_disable_blockprotect, |
| 3986 | .write = spi_chip_write_256, |
| 3987 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3988 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3989 | }, |
| 3990 | |
| 3991 | { |
| 3992 | .vendor = "Eon", |
| 3993 | .name = "EN25B32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3994 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3995 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3996 | .model_id = EON_EN25B32, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3997 | .total_size = 4096, |
| 3998 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3999 | /* OTP: 512B total; enter 0x3A */ |
| 4000 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4001 | .tested = TEST_UNTESTED, |
| 4002 | .probe = probe_spi_rdid, |
| 4003 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4004 | .block_erasers = |
| 4005 | { |
| 4006 | { |
| 4007 | .eraseblocks = { |
| 4008 | {4 * 1024, 2}, |
| 4009 | {8 * 1024, 1}, |
| 4010 | {16 * 1024, 1}, |
| 4011 | {32 * 1024, 1}, |
| 4012 | {64 * 1024, 63}, |
| 4013 | }, |
| 4014 | .block_erase = spi_block_erase_d8, |
| 4015 | }, { |
| 4016 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4017 | .block_erase = spi_block_erase_c7, |
| 4018 | } |
| 4019 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4020 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4021 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4022 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4023 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4024 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4025 | }, |
| 4026 | |
| 4027 | { |
| 4028 | .vendor = "Eon", |
| 4029 | .name = "EN25B32T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4030 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4031 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4032 | .model_id = EON_EN25B32, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4033 | .total_size = 4096, |
| 4034 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4035 | /* OTP: 512B total; enter 0x3A */ |
| 4036 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4037 | .tested = TEST_UNTESTED, |
| 4038 | .probe = probe_spi_rdid, |
| 4039 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4040 | .block_erasers = |
| 4041 | { |
| 4042 | { |
| 4043 | .eraseblocks = { |
| 4044 | {64 * 1024, 63}, |
| 4045 | {32 * 1024, 1}, |
| 4046 | {16 * 1024, 1}, |
| 4047 | {8 * 1024, 1}, |
| 4048 | {4 * 1024, 2}, |
| 4049 | }, |
| 4050 | .block_erase = spi_block_erase_d8, |
| 4051 | }, { |
| 4052 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4053 | .block_erase = spi_block_erase_c7, |
| 4054 | } |
| 4055 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4056 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4057 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4058 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4059 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4060 | .voltage = {2700, 3600}, |
| 4061 | }, |
| 4062 | |
| 4063 | { |
| 4064 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4065 | .name = "EN25B40", |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4066 | .bustype = BUS_SPI, |
| 4067 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4068 | .model_id = EON_EN25B40, |
| 4069 | .total_size = 512, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4070 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4071 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4072 | .tested = TEST_UNTESTED, |
| 4073 | .probe = probe_spi_rdid, |
| 4074 | .probe_timing = TIMING_ZERO, |
| 4075 | .block_erasers = |
| 4076 | { |
| 4077 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4078 | .eraseblocks = { |
| 4079 | {4 * 1024, 2}, |
| 4080 | {8 * 1024, 1}, |
| 4081 | {16 * 1024, 1}, |
| 4082 | {32 * 1024, 1}, |
| 4083 | {64 * 1024, 7} |
| 4084 | }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4085 | .block_erase = spi_block_erase_d8, |
| 4086 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4087 | .eraseblocks = { {512 * 1024, 1} }, |
| 4088 | .block_erase = spi_block_erase_c7, |
| 4089 | } |
| 4090 | }, |
| 4091 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4092 | .unlock = spi_disable_blockprotect, |
| 4093 | .write = spi_chip_write_256, |
| 4094 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4095 | .voltage = {2700, 3600}, |
| 4096 | }, |
| 4097 | |
| 4098 | { |
| 4099 | .vendor = "Eon", |
| 4100 | .name = "EN25B40T", |
| 4101 | .bustype = BUS_SPI, |
| 4102 | .manufacture_id = EON_ID_NOPREFIX, |
| 4103 | .model_id = EON_EN25B40, |
| 4104 | .total_size = 512, |
| 4105 | .page_size = 256, |
| 4106 | .feature_bits = FEATURE_WRSR_WREN, |
| 4107 | .tested = TEST_UNTESTED, |
| 4108 | .probe = probe_spi_rdid, |
| 4109 | .probe_timing = TIMING_ZERO, |
| 4110 | .block_erasers = |
| 4111 | { |
| 4112 | { |
| 4113 | .eraseblocks = { |
| 4114 | {64 * 1024, 7}, |
| 4115 | {32 * 1024, 1}, |
| 4116 | {16 * 1024, 1}, |
| 4117 | {8 * 1024, 1}, |
| 4118 | {4 * 1024, 2}, |
| 4119 | }, |
| 4120 | .block_erase = spi_block_erase_d8, |
| 4121 | }, { |
| 4122 | .eraseblocks = { {512 * 1024, 1} }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4123 | .block_erase = spi_block_erase_c7, |
| 4124 | } |
| 4125 | }, |
| 4126 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4127 | .unlock = spi_disable_blockprotect, |
| 4128 | .write = spi_chip_write_256, |
| 4129 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4130 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4131 | }, |
| 4132 | |
| 4133 | { |
| 4134 | .vendor = "Eon", |
| 4135 | .name = "EN25B64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4136 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4137 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4138 | .model_id = EON_EN25B64, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4139 | .total_size = 8192, |
| 4140 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4141 | /* OTP: 512B total; enter 0x3A */ |
| 4142 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4143 | .tested = TEST_UNTESTED, |
| 4144 | .probe = probe_spi_rdid, |
| 4145 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4146 | .block_erasers = |
| 4147 | { |
| 4148 | { |
| 4149 | .eraseblocks = { |
| 4150 | {4 * 1024, 2}, |
| 4151 | {8 * 1024, 1}, |
| 4152 | {16 * 1024, 1}, |
| 4153 | {32 * 1024, 1}, |
| 4154 | {64 * 1024, 127}, |
| 4155 | }, |
| 4156 | .block_erase = spi_block_erase_d8, |
| 4157 | }, { |
| 4158 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4159 | .block_erase = spi_block_erase_c7, |
| 4160 | } |
| 4161 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4162 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4163 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4164 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4165 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4166 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4167 | }, |
| 4168 | |
| 4169 | { |
| 4170 | .vendor = "Eon", |
| 4171 | .name = "EN25B64T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4172 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4173 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4174 | .model_id = EON_EN25B64, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4175 | .total_size = 8192, |
| 4176 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4177 | /* OTP: 512B total; enter 0x3A */ |
| 4178 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4179 | .tested = TEST_UNTESTED, |
| 4180 | .probe = probe_spi_rdid, |
| 4181 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4182 | .block_erasers = |
| 4183 | { |
| 4184 | { |
| 4185 | .eraseblocks = { |
| 4186 | {64 * 1024, 127}, |
| 4187 | {32 * 1024, 1}, |
| 4188 | {16 * 1024, 1}, |
| 4189 | {8 * 1024, 1}, |
| 4190 | {4 * 1024, 2}, |
| 4191 | }, |
| 4192 | .block_erase = spi_block_erase_d8, |
| 4193 | }, { |
| 4194 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4195 | .block_erase = spi_block_erase_c7, |
| 4196 | } |
| 4197 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4198 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4199 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4200 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4201 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4202 | .voltage = {2700, 3600}, |
| 4203 | }, |
| 4204 | |
| 4205 | { |
| 4206 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4207 | .name = "EN25B80", |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4208 | .bustype = BUS_SPI, |
| 4209 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4210 | .model_id = EON_EN25B80, |
| 4211 | .total_size = 1024, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4212 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4213 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4214 | .tested = TEST_UNTESTED, |
| 4215 | .probe = probe_spi_rdid, |
| 4216 | .probe_timing = TIMING_ZERO, |
| 4217 | .block_erasers = |
| 4218 | { |
| 4219 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4220 | .eraseblocks = { |
| 4221 | {4 * 1024, 2}, |
| 4222 | {8 * 1024, 1}, |
| 4223 | {16 * 1024, 1}, |
| 4224 | {32 * 1024, 1}, |
| 4225 | {64 * 1024, 15} |
| 4226 | }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4227 | .block_erase = spi_block_erase_d8, |
| 4228 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4229 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4230 | .block_erase = spi_block_erase_c7, |
| 4231 | } |
| 4232 | }, |
| 4233 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4234 | .unlock = spi_disable_blockprotect, |
| 4235 | .write = spi_chip_write_256, |
| 4236 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4237 | .voltage = {2700, 3600}, |
| 4238 | }, |
| 4239 | |
| 4240 | { |
| 4241 | .vendor = "Eon", |
| 4242 | .name = "EN25B80T", |
| 4243 | .bustype = BUS_SPI, |
| 4244 | .manufacture_id = EON_ID_NOPREFIX, |
| 4245 | .model_id = EON_EN25B80, |
| 4246 | .total_size = 1024, |
| 4247 | .page_size = 256, |
| 4248 | .feature_bits = FEATURE_WRSR_WREN, |
| 4249 | .tested = TEST_UNTESTED, |
| 4250 | .probe = probe_spi_rdid, |
| 4251 | .probe_timing = TIMING_ZERO, |
| 4252 | .block_erasers = |
| 4253 | { |
| 4254 | { |
| 4255 | .eraseblocks = { |
| 4256 | {64 * 1024, 15}, |
| 4257 | {32 * 1024, 1}, |
| 4258 | {16 * 1024, 1}, |
| 4259 | {8 * 1024, 1}, |
| 4260 | {4 * 1024, 2}, |
| 4261 | }, |
| 4262 | .block_erase = spi_block_erase_d8, |
| 4263 | }, { |
| 4264 | .eraseblocks = { {1024 * 1024, 1} }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4265 | .block_erase = spi_block_erase_c7, |
| 4266 | } |
| 4267 | }, |
| 4268 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4269 | .unlock = spi_disable_blockprotect, |
| 4270 | .write = spi_chip_write_256, |
| 4271 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4272 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4273 | }, |
| 4274 | |
| 4275 | { |
| 4276 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4277 | .name = "EN25F05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4278 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4279 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4280 | .model_id = EON_EN25F05, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4281 | .total_size = 64, |
| 4282 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4283 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 4284 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4285 | .probe = probe_spi_rdid, |
| 4286 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4287 | .block_erasers = |
| 4288 | { |
| 4289 | { |
| 4290 | .eraseblocks = { {4 * 1024, 16} }, |
| 4291 | .block_erase = spi_block_erase_20, |
| 4292 | }, { |
| 4293 | .eraseblocks = { {32 * 1024, 2} }, |
| 4294 | .block_erase = spi_block_erase_d8, |
| 4295 | }, { |
| 4296 | .eraseblocks = { {32 * 1024, 2} }, |
| 4297 | .block_erase = spi_block_erase_52, |
| 4298 | }, { |
| 4299 | .eraseblocks = { {64 * 1024, 1} }, |
| 4300 | .block_erase = spi_block_erase_60, |
| 4301 | }, { |
| 4302 | .eraseblocks = { {64 * 1024, 1} }, |
| 4303 | .block_erase = spi_block_erase_c7, |
| 4304 | } |
| 4305 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4306 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4307 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4308 | .write = spi_chip_write_256, |
| 4309 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4310 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4311 | }, |
| 4312 | |
| 4313 | { |
| 4314 | .vendor = "Eon", |
| 4315 | .name = "EN25F10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4316 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4317 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4318 | .model_id = EON_EN25F10, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4319 | .total_size = 128, |
| 4320 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4321 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4322 | .tested = TEST_UNTESTED, |
| 4323 | .probe = probe_spi_rdid, |
| 4324 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4325 | .block_erasers = |
| 4326 | { |
| 4327 | { |
| 4328 | .eraseblocks = { {4 * 1024, 32} }, |
| 4329 | .block_erase = spi_block_erase_20, |
| 4330 | }, { |
| 4331 | .eraseblocks = { {32 * 1024, 4} }, |
| 4332 | .block_erase = spi_block_erase_d8, |
| 4333 | }, { |
| 4334 | .eraseblocks = { {32 * 1024, 4} }, |
| 4335 | .block_erase = spi_block_erase_52, |
| 4336 | }, { |
| 4337 | .eraseblocks = { {128 * 1024, 1} }, |
| 4338 | .block_erase = spi_block_erase_60, |
| 4339 | }, { |
| 4340 | .eraseblocks = { {128 * 1024, 1} }, |
| 4341 | .block_erase = spi_block_erase_c7, |
| 4342 | } |
| 4343 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4344 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4345 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4346 | .write = spi_chip_write_256, |
| 4347 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4348 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4349 | }, |
| 4350 | |
| 4351 | { |
| 4352 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4353 | .name = "EN25F16", |
| 4354 | .bustype = BUS_SPI, |
| 4355 | .manufacture_id = EON_ID_NOPREFIX, |
| 4356 | .model_id = EON_EN25F16, |
| 4357 | .total_size = 2048, |
| 4358 | .page_size = 256, |
| 4359 | .feature_bits = FEATURE_WRSR_WREN, |
| 4360 | .tested = TEST_OK_PREW, |
| 4361 | .probe = probe_spi_rdid, |
| 4362 | .probe_timing = TIMING_ZERO, |
| 4363 | .block_erasers = |
| 4364 | { |
| 4365 | { |
| 4366 | .eraseblocks = { {4 * 1024, 512} }, |
| 4367 | .block_erase = spi_block_erase_20, |
| 4368 | }, { |
| 4369 | .eraseblocks = { {64 * 1024, 32} }, |
| 4370 | .block_erase = spi_block_erase_d8, |
| 4371 | }, { |
| 4372 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4373 | .block_erase = spi_block_erase_60, |
| 4374 | }, { |
| 4375 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4376 | .block_erase = spi_block_erase_c7, |
| 4377 | } |
| 4378 | }, |
| 4379 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4380 | .unlock = spi_disable_blockprotect, |
| 4381 | .write = spi_chip_write_256, |
| 4382 | .read = spi_chip_read, |
| 4383 | .voltage = {2700, 3600}, |
| 4384 | }, |
| 4385 | |
| 4386 | { |
| 4387 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4388 | .name = "EN25F20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4389 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4390 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4391 | .model_id = EON_EN25F20, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4392 | .total_size = 256, |
| 4393 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4394 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4395 | .tested = TEST_UNTESTED, |
| 4396 | .probe = probe_spi_rdid, |
| 4397 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4398 | .block_erasers = |
| 4399 | { |
| 4400 | { |
| 4401 | .eraseblocks = { {4 * 1024, 64} }, |
| 4402 | .block_erase = spi_block_erase_20, |
| 4403 | }, { |
| 4404 | .eraseblocks = { {64 * 1024, 4} }, |
| 4405 | .block_erase = spi_block_erase_d8, |
| 4406 | }, { |
| 4407 | .eraseblocks = { {64 * 1024, 4} }, |
| 4408 | .block_erase = spi_block_erase_52, |
| 4409 | }, { |
| 4410 | .eraseblocks = { {256 * 1024, 1} }, |
| 4411 | .block_erase = spi_block_erase_60, |
| 4412 | }, { |
| 4413 | .eraseblocks = { {256 * 1024, 1} }, |
| 4414 | .block_erase = spi_block_erase_c7, |
| 4415 | } |
| 4416 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4417 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4418 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4419 | .write = spi_chip_write_256, |
| 4420 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4421 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4422 | }, |
| 4423 | |
| 4424 | { |
| 4425 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4426 | .name = "EN25F32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4427 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4428 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4429 | .model_id = EON_EN25F32, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4430 | .total_size = 4096, |
| 4431 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4432 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 4433 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4434 | .probe = probe_spi_rdid, |
| 4435 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4436 | .block_erasers = |
| 4437 | { |
| 4438 | { |
| 4439 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4440 | .block_erase = spi_block_erase_20, |
| 4441 | }, { |
| 4442 | .eraseblocks = { {64 * 1024, 64} }, |
| 4443 | .block_erase = spi_block_erase_d8, |
| 4444 | }, { |
| 4445 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4446 | .block_erase = spi_block_erase_60, |
| 4447 | }, { |
| 4448 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4449 | .block_erase = spi_block_erase_c7, |
| 4450 | } |
| 4451 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4452 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4453 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4454 | .write = spi_chip_write_256, |
| 4455 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4456 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4457 | }, |
| 4458 | |
| 4459 | { |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4460 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4461 | .name = "EN25F40", |
| 4462 | .bustype = BUS_SPI, |
| 4463 | .manufacture_id = EON_ID_NOPREFIX, |
| 4464 | .model_id = EON_EN25F40, |
| 4465 | .total_size = 512, |
| 4466 | .page_size = 256, |
| 4467 | .feature_bits = FEATURE_WRSR_WREN, |
| 4468 | .tested = TEST_OK_PREW, |
| 4469 | .probe = probe_spi_rdid, |
| 4470 | .probe_timing = TIMING_ZERO, |
| 4471 | .block_erasers = |
| 4472 | { |
| 4473 | { |
| 4474 | .eraseblocks = { {4 * 1024, 128} }, |
| 4475 | .block_erase = spi_block_erase_20, |
| 4476 | }, { |
| 4477 | .eraseblocks = { {64 * 1024, 8} }, |
| 4478 | .block_erase = spi_block_erase_d8, |
| 4479 | }, { |
| 4480 | .eraseblocks = { {512 * 1024, 1} }, |
| 4481 | .block_erase = spi_block_erase_60, |
| 4482 | }, { |
| 4483 | .eraseblocks = { {512 * 1024, 1} }, |
| 4484 | .block_erase = spi_block_erase_c7, |
| 4485 | }, |
| 4486 | }, |
| 4487 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4488 | .unlock = spi_disable_blockprotect, |
| 4489 | .write = spi_chip_write_256, |
| 4490 | .read = spi_chip_read, |
| 4491 | .voltage = {2700, 3600}, |
| 4492 | }, |
| 4493 | |
| 4494 | { |
| 4495 | .vendor = "Eon", |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4496 | .name = "EN25F64", |
| 4497 | .bustype = BUS_SPI, |
| 4498 | .manufacture_id = EON_ID_NOPREFIX, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 4499 | .model_id = EON_EN25F64, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4500 | .total_size = 8192, |
| 4501 | .page_size = 256, |
| 4502 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 4503 | .tested = TEST_OK_PREW, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4504 | .probe = probe_spi_rdid, |
| 4505 | .probe_timing = TIMING_ZERO, |
| 4506 | .block_erasers = |
| 4507 | { |
| 4508 | { |
| 4509 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4510 | .block_erase = spi_block_erase_20, |
| 4511 | }, { |
| 4512 | .eraseblocks = { {64 * 1024, 128} }, |
| 4513 | .block_erase = spi_block_erase_d8, |
| 4514 | }, { |
| 4515 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4516 | .block_erase = spi_block_erase_60, |
| 4517 | }, { |
| 4518 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4519 | .block_erase = spi_block_erase_c7, |
| 4520 | } |
| 4521 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4522 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4523 | .unlock = spi_disable_blockprotect, |
| 4524 | .write = spi_chip_write_256, |
| 4525 | .read = spi_chip_read, |
| 4526 | .voltage = {2700, 3600}, |
| 4527 | }, |
| 4528 | |
| 4529 | { |
| 4530 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4531 | .name = "EN25F80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4532 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4533 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4534 | .model_id = EON_EN25F80, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4535 | .total_size = 1024, |
| 4536 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4537 | .feature_bits = FEATURE_WRSR_WREN, |
| 4538 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4539 | .probe = probe_spi_rdid, |
| 4540 | .probe_timing = TIMING_ZERO, |
| 4541 | .block_erasers = |
| 4542 | { |
| 4543 | { |
| 4544 | .eraseblocks = { {4 * 1024, 256} }, |
| 4545 | .block_erase = spi_block_erase_20, |
| 4546 | }, { |
| 4547 | .eraseblocks = { {64 * 1024, 16} }, |
| 4548 | .block_erase = spi_block_erase_d8, |
| 4549 | }, { |
| 4550 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4551 | .block_erase = spi_block_erase_60, |
| 4552 | }, { |
| 4553 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4554 | .block_erase = spi_block_erase_c7, |
| 4555 | } |
| 4556 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4557 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4558 | .unlock = spi_disable_blockprotect, |
| 4559 | .write = spi_chip_write_256, |
| 4560 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4561 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4562 | }, |
| 4563 | |
| 4564 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4565 | .vendor = "Eon", |
| 4566 | .name = "EN25P05", |
| 4567 | .bustype = BUS_SPI, |
| 4568 | .manufacture_id = EON_ID_NOPREFIX, |
| 4569 | .model_id = EON_EN25B05, |
| 4570 | .total_size = 64, |
| 4571 | .page_size = 256, |
| 4572 | .feature_bits = FEATURE_WRSR_WREN, |
| 4573 | .tested = TEST_UNTESTED, |
| 4574 | .probe = probe_spi_rdid, |
| 4575 | .probe_timing = TIMING_ZERO, |
| 4576 | .block_erasers = |
| 4577 | { |
| 4578 | { |
| 4579 | .eraseblocks = { |
| 4580 | {32 * 1024, 2} }, |
| 4581 | .block_erase = spi_block_erase_d8, |
| 4582 | }, { |
| 4583 | .eraseblocks = { {64 * 1024, 1} }, |
| 4584 | .block_erase = spi_block_erase_c7, |
| 4585 | } |
| 4586 | }, |
| 4587 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4588 | .unlock = spi_disable_blockprotect, |
| 4589 | .write = spi_chip_write_256, |
| 4590 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4591 | .voltage = {2700, 3600}, |
| 4592 | }, |
| 4593 | |
| 4594 | { |
| 4595 | .vendor = "Eon", |
| 4596 | .name = "EN25P10", |
| 4597 | .bustype = BUS_SPI, |
| 4598 | .manufacture_id = EON_ID_NOPREFIX, |
| 4599 | .model_id = EON_EN25B10, |
| 4600 | .total_size = 128, |
| 4601 | .page_size = 256, |
| 4602 | .feature_bits = FEATURE_WRSR_WREN, |
| 4603 | .tested = TEST_UNTESTED, |
| 4604 | .probe = probe_spi_rdid, |
| 4605 | .probe_timing = TIMING_ZERO, |
| 4606 | .block_erasers = |
| 4607 | { |
| 4608 | { |
| 4609 | .eraseblocks = { {32 * 1024, 4} }, |
| 4610 | .block_erase = spi_block_erase_d8, |
| 4611 | }, { |
| 4612 | .eraseblocks = { {128 * 1024, 1} }, |
| 4613 | .block_erase = spi_block_erase_c7, |
| 4614 | } |
| 4615 | }, |
| 4616 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4617 | .unlock = spi_disable_blockprotect, |
| 4618 | .write = spi_chip_write_256, |
| 4619 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4620 | .voltage = {2700, 3600}, |
| 4621 | }, |
| 4622 | |
| 4623 | { |
| 4624 | .vendor = "Eon", |
| 4625 | .name = "EN25P16", |
| 4626 | .bustype = BUS_SPI, |
| 4627 | .manufacture_id = EON_ID_NOPREFIX, |
| 4628 | .model_id = EON_EN25B16, |
| 4629 | .total_size = 2048, |
| 4630 | .page_size = 256, |
| 4631 | .feature_bits = FEATURE_WRSR_WREN, |
| 4632 | .tested = TEST_UNTESTED, |
| 4633 | .probe = probe_spi_rdid, |
| 4634 | .probe_timing = TIMING_ZERO, |
| 4635 | .block_erasers = |
| 4636 | { |
| 4637 | { |
| 4638 | .eraseblocks = { {64 * 1024, 32} }, |
| 4639 | .block_erase = spi_block_erase_d8, |
| 4640 | }, { |
| 4641 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4642 | .block_erase = spi_block_erase_c7, |
| 4643 | } |
| 4644 | }, |
| 4645 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4646 | .unlock = spi_disable_blockprotect, |
| 4647 | .write = spi_chip_write_256, |
| 4648 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4649 | .voltage = {2700, 3600}, |
| 4650 | }, |
| 4651 | |
| 4652 | { |
| 4653 | .vendor = "Eon", |
| 4654 | .name = "EN25P20", |
| 4655 | .bustype = BUS_SPI, |
| 4656 | .manufacture_id = EON_ID_NOPREFIX, |
| 4657 | .model_id = EON_EN25B20, |
| 4658 | .total_size = 256, |
| 4659 | .page_size = 256, |
| 4660 | .feature_bits = FEATURE_WRSR_WREN, |
| 4661 | .tested = TEST_UNTESTED, |
| 4662 | .probe = probe_spi_rdid, |
| 4663 | .probe_timing = TIMING_ZERO, |
| 4664 | .block_erasers = |
| 4665 | { |
| 4666 | { |
| 4667 | .eraseblocks = { {64 * 1024, 4} }, |
| 4668 | .block_erase = spi_block_erase_d8, |
| 4669 | }, { |
| 4670 | .eraseblocks = { {256 * 1024, 1} }, |
| 4671 | .block_erase = spi_block_erase_c7, |
| 4672 | } |
| 4673 | }, |
| 4674 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4675 | .unlock = spi_disable_blockprotect, |
| 4676 | .write = spi_chip_write_256, |
| 4677 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4678 | .voltage = {2700, 3600}, |
| 4679 | }, |
| 4680 | |
| 4681 | { |
| 4682 | .vendor = "Eon", |
| 4683 | .name = "EN25P32", /* Uniform version of EN25B32 */ |
| 4684 | .bustype = BUS_SPI, |
| 4685 | .manufacture_id = EON_ID_NOPREFIX, |
| 4686 | .model_id = EON_EN25B32, |
| 4687 | .total_size = 4096, |
| 4688 | .page_size = 256, |
| 4689 | /* OTP: 512B total; enter 0x3A */ |
| 4690 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4691 | .tested = TEST_UNTESTED, |
| 4692 | .probe = probe_spi_rdid, |
| 4693 | .probe_timing = TIMING_ZERO, |
| 4694 | .block_erasers = |
| 4695 | { |
| 4696 | { |
| 4697 | .eraseblocks = { {64 * 1024, 64} }, |
| 4698 | .block_erase = spi_block_erase_d8, |
| 4699 | }, { |
| 4700 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4701 | .block_erase = spi_block_erase_c7, |
| 4702 | } |
| 4703 | }, |
| 4704 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4705 | .unlock = spi_disable_blockprotect, |
| 4706 | .write = spi_chip_write_256, |
| 4707 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4708 | .voltage = {2700, 3600}, |
| 4709 | }, |
| 4710 | |
| 4711 | { |
| 4712 | .vendor = "Eon", |
| 4713 | .name = "EN25P40", |
| 4714 | .bustype = BUS_SPI, |
| 4715 | .manufacture_id = EON_ID_NOPREFIX, |
| 4716 | .model_id = EON_EN25B40, |
| 4717 | .total_size = 512, |
| 4718 | .page_size = 256, |
| 4719 | .feature_bits = FEATURE_WRSR_WREN, |
| 4720 | .tested = TEST_UNTESTED, |
| 4721 | .probe = probe_spi_rdid, |
| 4722 | .probe_timing = TIMING_ZERO, |
| 4723 | .block_erasers = |
| 4724 | { |
| 4725 | { |
| 4726 | .eraseblocks = { {64 * 1024, 8} }, |
| 4727 | .block_erase = spi_block_erase_d8, |
| 4728 | }, { |
| 4729 | .eraseblocks = { {512 * 1024, 1} }, |
| 4730 | .block_erase = spi_block_erase_c7, |
| 4731 | } |
| 4732 | }, |
| 4733 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4734 | .unlock = spi_disable_blockprotect, |
| 4735 | .write = spi_chip_write_256, |
| 4736 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4737 | .voltage = {2700, 3600}, |
| 4738 | }, |
| 4739 | |
| 4740 | { |
| 4741 | .vendor = "Eon", |
| 4742 | .name = "EN25P64", |
| 4743 | .bustype = BUS_SPI, |
| 4744 | .manufacture_id = EON_ID_NOPREFIX, |
| 4745 | .model_id = EON_EN25B64, |
| 4746 | .total_size = 8192, |
| 4747 | .page_size = 256, |
| 4748 | /* OTP: 512B total; enter 0x3A */ |
| 4749 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4750 | .tested = TEST_UNTESTED, |
| 4751 | .probe = probe_spi_rdid, |
| 4752 | .probe_timing = TIMING_ZERO, |
| 4753 | .block_erasers = |
| 4754 | { |
| 4755 | { |
| 4756 | .eraseblocks = { {64 * 1024, 128} }, |
| 4757 | .block_erase = spi_block_erase_d8, |
| 4758 | }, { |
| 4759 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4760 | .block_erase = spi_block_erase_c7, |
| 4761 | } |
| 4762 | }, |
| 4763 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4764 | .unlock = spi_disable_blockprotect, |
| 4765 | .write = spi_chip_write_256, |
| 4766 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4767 | .voltage = {2700, 3600}, |
| 4768 | }, |
| 4769 | |
| 4770 | { |
| 4771 | .vendor = "Eon", |
| 4772 | .name = "EN25P80", |
| 4773 | .bustype = BUS_SPI, |
| 4774 | .manufacture_id = EON_ID_NOPREFIX, |
| 4775 | .model_id = EON_EN25B80, |
| 4776 | .total_size = 1024, |
| 4777 | .page_size = 256, |
| 4778 | .feature_bits = FEATURE_WRSR_WREN, |
| 4779 | .tested = TEST_UNTESTED, |
| 4780 | .probe = probe_spi_rdid, |
| 4781 | .probe_timing = TIMING_ZERO, |
| 4782 | .block_erasers = |
| 4783 | { |
| 4784 | { |
| 4785 | .eraseblocks = { {64 * 1024, 16} }, |
| 4786 | .block_erase = spi_block_erase_d8, |
| 4787 | }, { |
| 4788 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4789 | .block_erase = spi_block_erase_c7, |
| 4790 | } |
| 4791 | }, |
| 4792 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4793 | .unlock = spi_disable_blockprotect, |
| 4794 | .write = spi_chip_write_256, |
| 4795 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4796 | .voltage = {2700, 3600}, |
| 4797 | }, |
| 4798 | |
| 4799 | { |
| 4800 | .vendor = "Eon", |
| 4801 | .name = "EN25Q128", |
| 4802 | .bustype = BUS_SPI, |
| 4803 | .manufacture_id = EON_ID_NOPREFIX, |
| 4804 | .model_id = EON_EN25Q128, |
| 4805 | .total_size = 16384, |
| 4806 | .page_size = 256, |
| 4807 | /* OTP: 512B total; enter 0x3A */ |
| 4808 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4809 | .tested = TEST_OK_PREW, |
| 4810 | .probe = probe_spi_rdid, |
| 4811 | .probe_timing = TIMING_ZERO, |
| 4812 | .block_erasers = |
| 4813 | { |
| 4814 | { |
| 4815 | .eraseblocks = { {4 * 1024, 4096} }, |
| 4816 | .block_erase = spi_block_erase_20, |
| 4817 | }, { |
| 4818 | .eraseblocks = { {64 * 1024, 256} }, |
| 4819 | .block_erase = spi_block_erase_d8, |
| 4820 | }, { |
| 4821 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4822 | .block_erase = spi_block_erase_60, |
| 4823 | }, { |
| 4824 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4825 | .block_erase = spi_block_erase_c7, |
| 4826 | } |
| 4827 | }, |
| 4828 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4829 | .unlock = spi_disable_blockprotect, |
| 4830 | .write = spi_chip_write_256, |
| 4831 | .read = spi_chip_read, |
| 4832 | }, |
| 4833 | |
| 4834 | { |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4835 | /* Note: EN25D16 is an evil twin which shares the model ID |
| 4836 | but has different write protection capabilities */ |
| 4837 | .vendor = "Eon", |
| 4838 | .name = "EN25Q16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4839 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4840 | .manufacture_id = EON_ID_NOPREFIX, |
| 4841 | .model_id = EON_EN25Q16, |
| 4842 | .total_size = 2048, |
| 4843 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4844 | /* OTP: D16 512B/Q16 128B total; enter 0x3A */ |
| 4845 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4846 | .tested = TEST_UNTESTED, |
| 4847 | .probe = probe_spi_rdid, |
| 4848 | .probe_timing = TIMING_ZERO, |
| 4849 | .block_erasers = |
| 4850 | { |
| 4851 | { |
| 4852 | .eraseblocks = { {4 * 1024, 512} }, |
| 4853 | .block_erase = spi_block_erase_20, |
| 4854 | }, { |
| 4855 | .eraseblocks = { {64 * 1024, 32} }, |
| 4856 | .block_erase = spi_block_erase_d8, |
| 4857 | }, { |
| 4858 | /* not supported by Q16 version */ |
| 4859 | .eraseblocks = { {64 * 1024, 32} }, |
| 4860 | .block_erase = spi_block_erase_52, |
| 4861 | }, { |
| 4862 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4863 | .block_erase = spi_block_erase_60, |
| 4864 | }, { |
| 4865 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4866 | .block_erase = spi_block_erase_c7, |
| 4867 | } |
| 4868 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4869 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4870 | .unlock = spi_disable_blockprotect, |
| 4871 | .write = spi_chip_write_256, |
| 4872 | .read = spi_chip_read, |
| 4873 | .voltage = {2700, 3600}, |
| 4874 | }, |
| 4875 | |
| 4876 | { |
| 4877 | .vendor = "Eon", |
| 4878 | .name = "EN25Q32(A/B)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4879 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4880 | .manufacture_id = EON_ID_NOPREFIX, |
| 4881 | .model_id = EON_EN25Q32, |
| 4882 | .total_size = 4096, |
| 4883 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4884 | /* OTP: 512B total; enter 0x3A */ |
| 4885 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4886 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4887 | .probe = probe_spi_rdid, |
| 4888 | .probe_timing = TIMING_ZERO, |
| 4889 | .block_erasers = |
| 4890 | { |
| 4891 | { |
| 4892 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4893 | .block_erase = spi_block_erase_20, |
| 4894 | }, { |
| 4895 | .eraseblocks = { {64 * 1024, 64} }, |
| 4896 | .block_erase = spi_block_erase_d8, |
| 4897 | }, { |
| 4898 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4899 | .block_erase = spi_block_erase_60, |
| 4900 | }, { |
| 4901 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4902 | .block_erase = spi_block_erase_c7, |
| 4903 | } |
| 4904 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4905 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4906 | .unlock = spi_disable_blockprotect, |
| 4907 | .write = spi_chip_write_256, |
| 4908 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4909 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4910 | }, |
| 4911 | |
| 4912 | { |
| 4913 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4914 | .name = "EN25Q40", |
| 4915 | .bustype = BUS_SPI, |
| 4916 | .manufacture_id = EON_ID_NOPREFIX, |
| 4917 | .model_id = EON_EN25Q40, |
| 4918 | .total_size = 512, |
| 4919 | .page_size = 256, |
| 4920 | /* OTP: 256B total; enter 0x3A */ |
| 4921 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4922 | .tested = TEST_UNTESTED, |
| 4923 | .probe = probe_spi_rdid, |
| 4924 | .probe_timing = TIMING_ZERO, |
| 4925 | .block_erasers = |
| 4926 | { |
| 4927 | { |
| 4928 | .eraseblocks = { {4 * 1024, 128} }, |
| 4929 | .block_erase = spi_block_erase_20, |
| 4930 | }, { |
| 4931 | .eraseblocks = { {64 * 1024, 8} }, |
| 4932 | .block_erase = spi_block_erase_d8, |
| 4933 | }, { |
| 4934 | .eraseblocks = { {512 * 1024, 1} }, |
| 4935 | .block_erase = spi_block_erase_60, |
| 4936 | }, { |
| 4937 | .eraseblocks = { {512 * 1024, 1} }, |
| 4938 | .block_erase = spi_block_erase_c7, |
| 4939 | } |
| 4940 | }, |
| 4941 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4942 | .unlock = spi_disable_blockprotect, |
| 4943 | .write = spi_chip_write_256, |
| 4944 | .read = spi_chip_read, |
| 4945 | .voltage = {2700, 3600}, |
| 4946 | }, |
| 4947 | |
| 4948 | { |
| 4949 | .vendor = "Eon", |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4950 | .name = "EN25Q64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4951 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4952 | .manufacture_id = EON_ID_NOPREFIX, |
| 4953 | .model_id = EON_EN25Q64, |
| 4954 | .total_size = 8192, |
| 4955 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4956 | /* OTP: 512B total; enter 0x3A */ |
| 4957 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4958 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4959 | .probe = probe_spi_rdid, |
| 4960 | .probe_timing = TIMING_ZERO, |
| 4961 | .block_erasers = |
| 4962 | { |
| 4963 | { |
| 4964 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4965 | .block_erase = spi_block_erase_20, |
| 4966 | }, { |
| 4967 | .eraseblocks = { {64 * 1024, 128} }, |
| 4968 | .block_erase = spi_block_erase_d8, |
| 4969 | }, { |
| 4970 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4971 | .block_erase = spi_block_erase_60, |
| 4972 | }, { |
| 4973 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4974 | .block_erase = spi_block_erase_c7, |
| 4975 | } |
| 4976 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4977 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4978 | .unlock = spi_disable_blockprotect, |
| 4979 | .write = spi_chip_write_256, |
| 4980 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4981 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4982 | }, |
| 4983 | |
| 4984 | { |
| 4985 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4986 | .name = "EN25Q80(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4987 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4988 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4989 | .model_id = EON_EN25Q80, |
| 4990 | .total_size = 1024, |
| 4991 | .page_size = 256, |
| 4992 | /* OTP: 256B total; enter 0x3A */ |
| 4993 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4994 | .tested = TEST_UNTESTED, |
| 4995 | .probe = probe_spi_rdid, |
| 4996 | .probe_timing = TIMING_ZERO, |
| 4997 | .block_erasers = |
| 4998 | { |
| 4999 | { |
| 5000 | .eraseblocks = { {4 * 1024, 256} }, |
| 5001 | .block_erase = spi_block_erase_20, |
| 5002 | }, { |
| 5003 | .eraseblocks = { {64 * 1024, 16} }, |
| 5004 | .block_erase = spi_block_erase_d8, |
| 5005 | }, { |
| 5006 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5007 | .block_erase = spi_block_erase_60, |
| 5008 | }, { |
| 5009 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5010 | .block_erase = spi_block_erase_c7, |
| 5011 | } |
| 5012 | }, |
| 5013 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 5014 | .unlock = spi_disable_blockprotect, |
| 5015 | .write = spi_chip_write_256, |
| 5016 | .read = spi_chip_read, |
| 5017 | .voltage = {2700, 3600}, |
| 5018 | }, |
| 5019 | |
| 5020 | { |
| 5021 | .vendor = "Eon", |
| 5022 | .name = "EN25QH128", |
| 5023 | .bustype = BUS_SPI, |
| 5024 | .manufacture_id = EON_ID_NOPREFIX, |
| 5025 | .model_id = EON_EN25QH128, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5026 | .total_size = 16384, |
| 5027 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5028 | /* supports SFDP */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 5029 | /* OTP: 512B total; enter 0x3A */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5030 | /* QPI enable 0x38, disable 0xFF */ |
| 5031 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 5032 | .tested = TEST_UNTESTED, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5033 | .probe = probe_spi_rdid, |
| 5034 | .probe_timing = TIMING_ZERO, |
| 5035 | .block_erasers = |
| 5036 | { |
| 5037 | { |
| 5038 | .eraseblocks = { {4 * 1024, 4096} }, |
| 5039 | .block_erase = spi_block_erase_20, |
| 5040 | }, { |
| 5041 | .eraseblocks = { {64 * 1024, 256} }, |
| 5042 | .block_erase = spi_block_erase_d8, |
| 5043 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5044 | .eraseblocks = { { 16384 * 1024, 1} }, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5045 | .block_erase = spi_block_erase_60, |
| 5046 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5047 | .eraseblocks = { { 16384 * 1024, 1} }, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5048 | .block_erase = spi_block_erase_c7, |
| 5049 | } |
| 5050 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5051 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 5052 | .unlock = spi_disable_blockprotect_bp3_srwd, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5053 | .write = spi_chip_write_256, |
| 5054 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5055 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5056 | }, |
| 5057 | |
| 5058 | { |
| 5059 | .vendor = "Eon", |
| 5060 | .name = "EN25QH16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5061 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5062 | .manufacture_id = EON_ID_NOPREFIX, |
| 5063 | .model_id = EON_EN25QH16, |
| 5064 | .total_size = 2048, |
| 5065 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 5066 | /* supports SFDP */ |
| 5067 | /* OTP: 512B total; enter 0x3A */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5068 | /* QPI enable 0x38, disable 0xFF */ |
| 5069 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 5070 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5071 | .probe = probe_spi_rdid, |
| 5072 | .probe_timing = TIMING_ZERO, |
| 5073 | .block_erasers = |
| 5074 | { |
| 5075 | { |
| 5076 | .eraseblocks = { {4 * 1024, 512} }, |
| 5077 | .block_erase = spi_block_erase_20, |
| 5078 | }, { |
| 5079 | .eraseblocks = { {64 * 1024, 32} }, |
| 5080 | .block_erase = spi_block_erase_d8, |
| 5081 | }, { |
| 5082 | .eraseblocks = { {1024 * 2048, 1} }, |
| 5083 | .block_erase = spi_block_erase_60, |
| 5084 | }, { |
| 5085 | .eraseblocks = { {1024 * 2048, 1} }, |
| 5086 | .block_erase = spi_block_erase_c7, |
| 5087 | } |
| 5088 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5089 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5090 | .unlock = spi_disable_blockprotect_bp3_srwd, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5091 | .write = spi_chip_write_256, |
| 5092 | .read = spi_chip_read, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 5093 | .voltage = {2700, 3600}, |
| 5094 | }, |
| 5095 | |
| 5096 | { |
| 5097 | .vendor = "Eon", |
| 5098 | .name = "EN25QH32", |
| 5099 | .bustype = BUS_SPI, |
| 5100 | .manufacture_id = EON_ID_NOPREFIX, |
| 5101 | .model_id = EON_EN25QH32, |
| 5102 | .total_size = 4096, |
| 5103 | .page_size = 256, |
| 5104 | /* supports SFDP */ |
| 5105 | /* OTP: 512B total; enter 0x3A */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5106 | /* QPI enable 0x38, disable 0xFF */ |
| 5107 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 5108 | .tested = TEST_OK_PREW, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 5109 | .probe = probe_spi_rdid, |
| 5110 | .probe_timing = TIMING_ZERO, |
| 5111 | .block_erasers = |
| 5112 | { |
| 5113 | { |
| 5114 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5115 | .block_erase = spi_block_erase_20, |
| 5116 | }, { |
| 5117 | .eraseblocks = { {64 * 1024, 64} }, |
| 5118 | .block_erase = spi_block_erase_d8, |
| 5119 | }, { |
| 5120 | .eraseblocks = { {1024 * 4096, 1} }, |
| 5121 | .block_erase = spi_block_erase_60, |
| 5122 | }, { |
| 5123 | .eraseblocks = { {1024 * 4096, 1} }, |
| 5124 | .block_erase = spi_block_erase_c7, |
| 5125 | } |
| 5126 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5127 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5128 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5129 | .write = spi_chip_write_256, |
| 5130 | .read = spi_chip_read, |
| 5131 | .voltage = {2700, 3600}, |
| 5132 | }, |
| 5133 | |
| 5134 | { |
| 5135 | .vendor = "Eon", |
| 5136 | .name = "EN25QH64", |
| 5137 | .bustype = BUS_SPI, |
| 5138 | .manufacture_id = EON_ID_NOPREFIX, |
| 5139 | .model_id = EON_EN25QH64, |
| 5140 | .total_size = 8192, |
| 5141 | .page_size = 256, |
| 5142 | /* supports SFDP */ |
| 5143 | /* OTP: 512B total; enter 0x3A */ |
| 5144 | /* QPI enable 0x38, disable 0xFF */ |
| 5145 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 5146 | .tested = TEST_OK_PREW, |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5147 | .probe = probe_spi_rdid, |
| 5148 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5149 | .block_erasers = |
| 5150 | { |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5151 | { |
| 5152 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5153 | .block_erase = spi_block_erase_20, |
| 5154 | }, { |
| 5155 | .eraseblocks = { {64 * 1024, 128} }, |
| 5156 | .block_erase = spi_block_erase_d8, |
| 5157 | }, { |
| 5158 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 5159 | .block_erase = spi_block_erase_60, |
| 5160 | }, { |
| 5161 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 5162 | .block_erase = spi_block_erase_c7, |
| 5163 | } |
| 5164 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5165 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5166 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5167 | .write = spi_chip_write_256, |
| 5168 | .read = spi_chip_read, |
| 5169 | .voltage = {2700, 3600}, |
| 5170 | }, |
| 5171 | |
| 5172 | { |
| 5173 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5174 | .name = "EN25S10", |
| 5175 | .bustype = BUS_SPI, |
| 5176 | .manufacture_id = EON_ID_NOPREFIX, |
| 5177 | .model_id = EON_EN25S10, |
| 5178 | .total_size = 128, |
| 5179 | .page_size = 256, |
| 5180 | /* OTP: 256B total; enter 0x3A */ |
| 5181 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5182 | .tested = TEST_UNTESTED, |
| 5183 | .probe = probe_spi_rdid, |
| 5184 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5185 | .block_erasers = |
| 5186 | { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5187 | { |
| 5188 | .eraseblocks = { {4 * 1024, 32} }, |
| 5189 | .block_erase = spi_block_erase_20, |
| 5190 | }, { |
| 5191 | .eraseblocks = { {32 * 1024, 4} }, |
| 5192 | .block_erase = spi_block_erase_52, |
| 5193 | }, { |
| 5194 | .eraseblocks = { {128 * 1024, 1} }, |
| 5195 | .block_erase = spi_block_erase_60, |
| 5196 | }, { |
| 5197 | .eraseblocks = { {128 * 1024, 1} }, |
| 5198 | .block_erase = spi_block_erase_c7, |
| 5199 | } |
| 5200 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5201 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5202 | .unlock = spi_disable_blockprotect, |
| 5203 | .write = spi_chip_write_256, |
| 5204 | .read = spi_chip_read, |
| 5205 | .voltage = {1650, 1950}, |
| 5206 | }, |
| 5207 | |
| 5208 | { |
| 5209 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5210 | .name = "EN25S16", |
| 5211 | .bustype = BUS_SPI, |
| 5212 | .manufacture_id = EON_ID_NOPREFIX, |
| 5213 | .model_id = EON_EN25S16, |
| 5214 | .total_size = 2048, |
| 5215 | .page_size = 256, |
| 5216 | /* OTP: 512B total; enter 0x3A */ |
| 5217 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 5218 | .tested = TEST_UNTESTED, |
| 5219 | .probe = probe_spi_rdid, |
| 5220 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5221 | .block_erasers = |
| 5222 | { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5223 | { |
| 5224 | .eraseblocks = { {4 * 1024, 512} }, |
| 5225 | .block_erase = spi_block_erase_20, |
| 5226 | }, { |
| 5227 | .eraseblocks = { {64 * 1024, 32} }, |
| 5228 | .block_erase = spi_block_erase_52, |
| 5229 | }, { |
| 5230 | .eraseblocks = { {32 * 1024, 64} }, |
| 5231 | .block_erase = spi_block_erase_d8, |
| 5232 | }, { |
| 5233 | .eraseblocks = { {2048 * 1024, 1} }, |
| 5234 | .block_erase = spi_block_erase_60, |
| 5235 | }, { |
| 5236 | .eraseblocks = { {2048 * 1024, 1} }, |
| 5237 | .block_erase = spi_block_erase_c7, |
| 5238 | } |
| 5239 | }, |
| 5240 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 5241 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5242 | .write = spi_chip_write_256, |
| 5243 | .read = spi_chip_read, |
| 5244 | .voltage = {1650, 1950}, |
| 5245 | }, |
| 5246 | |
| 5247 | { |
| 5248 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5249 | .name = "EN25S20", |
| 5250 | .bustype = BUS_SPI, |
| 5251 | .manufacture_id = EON_ID_NOPREFIX, |
| 5252 | .model_id = EON_EN25S20, |
| 5253 | .total_size = 256, |
| 5254 | .page_size = 256, |
| 5255 | /* OTP: 256B total; enter 0x3A */ |
| 5256 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5257 | .tested = TEST_UNTESTED, |
| 5258 | .probe = probe_spi_rdid, |
| 5259 | .probe_timing = TIMING_ZERO, |
| 5260 | .block_erasers = |
| 5261 | { |
| 5262 | { |
| 5263 | .eraseblocks = { {4 * 1024, 64} }, |
| 5264 | .block_erase = spi_block_erase_20, |
| 5265 | }, { |
| 5266 | .eraseblocks = { {64 * 1024, 4} }, |
| 5267 | .block_erase = spi_block_erase_d8, |
| 5268 | }, { |
| 5269 | .eraseblocks = { {256 * 1024, 1} }, |
| 5270 | .block_erase = spi_block_erase_60, |
| 5271 | }, { |
| 5272 | .eraseblocks = { {256 * 1024, 1} }, |
| 5273 | .block_erase = spi_block_erase_c7, |
| 5274 | } |
| 5275 | }, |
| 5276 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 5277 | .unlock = spi_disable_blockprotect, |
| 5278 | .write = spi_chip_write_256, |
| 5279 | .read = spi_chip_read, |
| 5280 | .voltage = {1650, 1950}, |
| 5281 | }, |
| 5282 | |
| 5283 | { |
| 5284 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5285 | .name = "EN25S32", |
| 5286 | .bustype = BUS_SPI, |
| 5287 | .manufacture_id = EON_ID_NOPREFIX, |
| 5288 | .model_id = EON_EN25S32, |
| 5289 | .total_size = 4096, |
| 5290 | .page_size = 256, |
| 5291 | /* OTP: 512B total; enter 0x3A */ |
| 5292 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 5293 | .tested = TEST_UNTESTED, |
| 5294 | .probe = probe_spi_rdid, |
| 5295 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5296 | .block_erasers = |
| 5297 | { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5298 | { |
| 5299 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5300 | .block_erase = spi_block_erase_20, |
| 5301 | }, { |
| 5302 | .eraseblocks = { {32 * 1024, 128} }, |
| 5303 | .block_erase = spi_block_erase_52, |
| 5304 | }, { |
| 5305 | .eraseblocks = { {64 * 1024, 64} }, |
| 5306 | .block_erase = spi_block_erase_d8, |
| 5307 | }, { |
| 5308 | .eraseblocks = { {4096 * 1024, 1} }, |
| 5309 | .block_erase = spi_block_erase_60, |
| 5310 | }, { |
| 5311 | .eraseblocks = { {4096 * 1024, 1} }, |
| 5312 | .block_erase = spi_block_erase_c7, |
| 5313 | } |
| 5314 | }, |
| 5315 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 5316 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5317 | .write = spi_chip_write_256, |
| 5318 | .read = spi_chip_read, |
| 5319 | .voltage = {1650, 1950}, |
| 5320 | }, |
| 5321 | |
| 5322 | { |
| 5323 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5324 | .name = "EN25S40", |
| 5325 | .bustype = BUS_SPI, |
| 5326 | .manufacture_id = EON_ID_NOPREFIX, |
| 5327 | .model_id = EON_EN25S40, |
| 5328 | .total_size = 512, |
| 5329 | .page_size = 256, |
| 5330 | /* OTP: 256B total; enter 0x3A */ |
| 5331 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5332 | .tested = TEST_OK_PREW, |
| 5333 | .probe = probe_spi_rdid, |
| 5334 | .probe_timing = TIMING_ZERO, |
| 5335 | .block_erasers = |
| 5336 | { |
| 5337 | { |
| 5338 | .eraseblocks = { {4 * 1024, 128} }, |
| 5339 | .block_erase = spi_block_erase_20, |
| 5340 | }, { |
| 5341 | .eraseblocks = { {64 * 1024, 8} }, |
| 5342 | .block_erase = spi_block_erase_d8, |
| 5343 | }, { |
| 5344 | .eraseblocks = { {512 * 1024, 1} }, |
| 5345 | .block_erase = spi_block_erase_60, |
| 5346 | }, { |
| 5347 | .eraseblocks = { {512 * 1024, 1} }, |
| 5348 | .block_erase = spi_block_erase_c7, |
| 5349 | } |
| 5350 | }, |
| 5351 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 5352 | .unlock = spi_disable_blockprotect, |
| 5353 | .write = spi_chip_write_256, |
| 5354 | .read = spi_chip_read, |
| 5355 | .voltage = {1650, 1950}, |
| 5356 | }, |
| 5357 | |
| 5358 | { |
| 5359 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5360 | .name = "EN25S64", |
| 5361 | .bustype = BUS_SPI, |
| 5362 | .manufacture_id = EON_ID_NOPREFIX, |
| 5363 | .model_id = EON_EN25S64, |
| 5364 | .total_size = 8192, |
| 5365 | .page_size = 256, |
| 5366 | /* OTP: 512B total; enter 0x3A */ |
| 5367 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 5368 | .tested = TEST_UNTESTED, |
| 5369 | .probe = probe_spi_rdid, |
| 5370 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5371 | .block_erasers = |
| 5372 | { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5373 | { |
| 5374 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5375 | .block_erase = spi_block_erase_20, |
| 5376 | }, { |
| 5377 | .eraseblocks = { {64 * 1024, 128} }, |
| 5378 | .block_erase = spi_block_erase_d8, |
| 5379 | }, { |
| 5380 | .eraseblocks = { {8192 * 1024, 1} }, |
| 5381 | .block_erase = spi_block_erase_60, |
| 5382 | }, { |
| 5383 | .eraseblocks = { {8192 * 1024, 1} }, |
| 5384 | .block_erase = spi_block_erase_c7, |
| 5385 | } |
| 5386 | }, |
| 5387 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 5388 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5389 | .write = spi_chip_write_256, |
| 5390 | .read = spi_chip_read, |
| 5391 | .voltage = {1650, 1950}, |
| 5392 | }, |
| 5393 | |
| 5394 | { |
| 5395 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5396 | .name = "EN25S80", |
| 5397 | .bustype = BUS_SPI, |
| 5398 | .manufacture_id = EON_ID_NOPREFIX, |
| 5399 | .model_id = EON_EN25S80, |
| 5400 | .total_size = 1024, |
| 5401 | .page_size = 256, |
| 5402 | /* OTP: 256B total; enter 0x3A */ |
| 5403 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5404 | .tested = TEST_UNTESTED, |
| 5405 | .probe = probe_spi_rdid, |
| 5406 | .probe_timing = TIMING_ZERO, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5407 | .block_erasers = |
| 5408 | { |
| 5409 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5410 | .eraseblocks = { {4 * 1024, 256} }, |
| 5411 | .block_erase = spi_block_erase_20, |
| 5412 | }, { |
| 5413 | .eraseblocks = { {64 * 1024, 16} }, |
| 5414 | .block_erase = spi_block_erase_d8, |
| 5415 | }, { |
| 5416 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5417 | .block_erase = spi_block_erase_60, |
| 5418 | }, { |
| 5419 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5420 | .block_erase = spi_block_erase_c7, |
| 5421 | } |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5422 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5423 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 5424 | .unlock = spi_disable_blockprotect, |
| 5425 | .write = spi_chip_write_256, |
| 5426 | .read = spi_chip_read, |
| 5427 | .voltage = {1650, 1950}, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5428 | }, |
| 5429 | |
| 5430 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 5431 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5432 | .name = "EN29F002(A)(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5433 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5434 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5435 | .model_id = EON_EN29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5436 | .total_size = 256, |
| 5437 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5438 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Alan Green | 4362e62 | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 5439 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5440 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5441 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5442 | .block_erasers = |
| 5443 | { |
| 5444 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5445 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5446 | {16 * 1024, 1}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 5447 | {8 * 1024, 2}, |
| 5448 | {32 * 1024, 1}, |
| 5449 | {64 * 1024, 3}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5450 | }, |
| 5451 | .block_erase = erase_sector_jedec, |
| 5452 | }, { |
| 5453 | .eraseblocks = { {256 * 1024, 1} }, |
| 5454 | .block_erase = erase_chip_block_jedec, |
| 5455 | }, |
| 5456 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 5457 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5458 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5459 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5460 | }, |
| 5461 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5462 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 5463 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5464 | .name = "EN29F002(A)(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5465 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5466 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5467 | .model_id = EON_EN29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5468 | .total_size = 256, |
| 5469 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5470 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 5471 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5472 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5473 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5474 | .block_erasers = |
| 5475 | { |
| 5476 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5477 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5478 | {64 * 1024, 3}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 5479 | {32 * 1024, 1}, |
| 5480 | {8 * 1024, 2}, |
| 5481 | {16 * 1024, 1}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5482 | }, |
| 5483 | .block_erase = erase_sector_jedec, |
| 5484 | }, { |
| 5485 | .eraseblocks = { {256 * 1024, 1} }, |
| 5486 | .block_erase = erase_chip_block_jedec, |
| 5487 | }, |
| 5488 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 5489 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5490 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5491 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5492 | }, |
| 5493 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5494 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5495 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5496 | .name = "EN29F010", |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5497 | .bustype = BUS_PARALLEL, |
| 5498 | .manufacture_id = EON_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5499 | .model_id = EON_EN29F010, |
| 5500 | .total_size = 128, |
| 5501 | .page_size = 128, |
| 5502 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 5503 | .tested = TEST_OK_PRE, |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5504 | .probe = probe_jedec, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5505 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5506 | .block_erasers = |
| 5507 | { |
| 5508 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5509 | .eraseblocks = { {16 * 1024, 8} }, |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5510 | .block_erase = erase_sector_jedec, |
| 5511 | }, |
| 5512 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5513 | .eraseblocks = { {128 * 1024, 1} }, |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5514 | .block_erase = erase_chip_block_jedec, |
| 5515 | }, |
| 5516 | }, |
| 5517 | .write = write_jedec_1, |
| 5518 | .read = read_memmapped, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5519 | .voltage = {4500, 5500}, |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5520 | }, |
| 5521 | |
| 5522 | { |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 5523 | .vendor = "Eon", |
| 5524 | .name = "EN29GL064(A)B", |
| 5525 | .bustype = BUS_PARALLEL, |
| 5526 | .manufacture_id = EON_ID, |
| 5527 | .model_id = EON_EN29GL064B, |
| 5528 | .total_size = 8192, |
| 5529 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5530 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5531 | .tested = TEST_UNTESTED, |
| 5532 | .probe = probe_jedec_29gl, |
| 5533 | .probe_timing = TIMING_ZERO, |
| 5534 | .block_erasers = |
| 5535 | { |
| 5536 | { |
| 5537 | .eraseblocks = { |
| 5538 | {8 * 1024, 8}, |
| 5539 | {64 * 1024, 127}, |
| 5540 | }, |
| 5541 | .block_erase = erase_sector_jedec, |
| 5542 | }, { |
| 5543 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5544 | .block_erase = erase_chip_block_jedec, |
| 5545 | }, |
| 5546 | }, |
| 5547 | .write = write_jedec_1, |
| 5548 | .read = read_memmapped, |
| 5549 | .voltage = {2700, 3600}, |
| 5550 | }, |
| 5551 | |
| 5552 | { |
| 5553 | .vendor = "Eon", |
| 5554 | .name = "EN29GL064(A)T", |
| 5555 | .bustype = BUS_PARALLEL, |
| 5556 | .manufacture_id = EON_ID, |
| 5557 | .model_id = EON_EN29GL064T, |
| 5558 | .total_size = 8192, |
| 5559 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5560 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5561 | .tested = TEST_UNTESTED, |
| 5562 | .probe = probe_jedec_29gl, |
| 5563 | .probe_timing = TIMING_ZERO, |
| 5564 | .block_erasers = |
| 5565 | { |
| 5566 | { |
| 5567 | .eraseblocks = { |
| 5568 | {64 * 1024, 127}, |
| 5569 | {8 * 1024, 8}, |
| 5570 | }, |
| 5571 | .block_erase = erase_sector_jedec, |
| 5572 | }, { |
| 5573 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5574 | .block_erase = erase_chip_block_jedec, |
| 5575 | }, |
| 5576 | }, |
| 5577 | .write = write_jedec_1, |
| 5578 | .read = read_memmapped, |
| 5579 | .voltage = {2700, 3600}, |
| 5580 | }, |
| 5581 | |
| 5582 | { |
| 5583 | .vendor = "Eon", |
| 5584 | .name = "EN29GL064H/L", |
| 5585 | .bustype = BUS_PARALLEL, |
| 5586 | .manufacture_id = EON_ID, |
| 5587 | .model_id = EON_EN29GL064HL, |
| 5588 | .total_size = 8192, |
| 5589 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5590 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5591 | .tested = TEST_UNTESTED, |
| 5592 | .probe = probe_jedec_29gl, |
| 5593 | .probe_timing = TIMING_ZERO, |
| 5594 | .block_erasers = |
| 5595 | { |
| 5596 | { |
| 5597 | .eraseblocks = { {64 * 1024, 128} }, |
| 5598 | .block_erase = erase_sector_jedec, |
| 5599 | }, { |
| 5600 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5601 | .block_erase = erase_chip_block_jedec, |
| 5602 | }, |
| 5603 | }, |
| 5604 | .write = write_jedec_1, |
| 5605 | .read = read_memmapped, |
| 5606 | .voltage = {2700, 3600}, |
| 5607 | }, |
| 5608 | |
| 5609 | { |
| 5610 | .vendor = "Eon", |
| 5611 | .name = "EN29GL128", |
| 5612 | .bustype = BUS_PARALLEL, |
| 5613 | .manufacture_id = EON_ID, |
| 5614 | .model_id = EON_EN29GL128HL, |
| 5615 | .total_size = 16384, |
| 5616 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5617 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5618 | .tested = TEST_UNTESTED, |
| 5619 | .probe = probe_jedec_29gl, |
| 5620 | .probe_timing = TIMING_ZERO, |
| 5621 | .block_erasers = |
| 5622 | { |
| 5623 | { |
| 5624 | .eraseblocks = { {128 * 1024, 128} }, |
| 5625 | .block_erase = erase_sector_jedec, |
| 5626 | }, { |
| 5627 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 5628 | .block_erase = erase_chip_block_jedec, |
| 5629 | }, |
| 5630 | }, |
| 5631 | .write = write_jedec_1, |
| 5632 | .read = read_memmapped, |
| 5633 | .voltage = {2700, 3600}, |
| 5634 | }, |
| 5635 | |
| 5636 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5637 | .vendor = "Eon", |
| 5638 | .name = "EN29LV040(A)", |
| 5639 | .bustype = BUS_PARALLEL, |
| 5640 | .manufacture_id = EON_ID, |
| 5641 | .model_id = EON_EN29LV040, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5642 | .total_size = 512, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5643 | .page_size = 4 * 1024, |
| 5644 | .tested = TEST_OK_PREW, |
| 5645 | .probe = probe_jedec, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5646 | .probe_timing = TIMING_ZERO, |
| 5647 | .block_erasers = |
| 5648 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 5649 | { |
| 5650 | .eraseblocks = { {64 * 1024, 8} }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5651 | .block_erase = erase_sector_jedec, |
| 5652 | }, |
| 5653 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 5654 | .eraseblocks = { {512 * 1024, 1} }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5655 | .block_erase = erase_chip_block_jedec, |
| 5656 | }, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5657 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5658 | .write = write_jedec_1, |
| 5659 | .read = read_memmapped, |
| 5660 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */ |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5661 | }, |
| 5662 | |
| 5663 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5664 | .vendor = "Eon", |
| 5665 | .name = "EN29LV640B", |
| 5666 | .bustype = BUS_PARALLEL, |
| 5667 | .manufacture_id = EON_ID, |
| 5668 | .model_id = EON_EN29LV640B, |
| 5669 | .total_size = 8192, |
| 5670 | .page_size = 8192, |
| 5671 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 5672 | .tested = TEST_OK_PREW, |
| 5673 | .probe = probe_en29lv640b, |
| 5674 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5675 | .block_erasers = |
| 5676 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 5677 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5678 | .eraseblocks = { |
| 5679 | {8 * 1024, 8}, |
| 5680 | {64 * 1024, 127}, |
| 5681 | }, |
| 5682 | .block_erase = erase_block_jedec, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 5683 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5684 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5685 | .block_erase = erase_chip_block_jedec, |
| 5686 | }, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5687 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5688 | .write = write_en29lv640b, |
| 5689 | .read = read_memmapped, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5690 | .voltage = {2700, 3600}, |
| 5691 | }, |
| 5692 | |
| 5693 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5694 | .vendor = "Fujitsu", |
| 5695 | .name = "MBM29F004BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5696 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5697 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5698 | .model_id = FUJITSU_MBM29F004BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5699 | .total_size = 512, |
| 5700 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5701 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5702 | .tested = TEST_UNTESTED, |
| 5703 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5704 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5705 | .block_erasers = |
| 5706 | { |
| 5707 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5708 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5709 | {16 * 1024, 1}, |
| 5710 | {8 * 1024, 2}, |
| 5711 | {32 * 1024, 1}, |
| 5712 | {64 * 1024, 7}, |
| 5713 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5714 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5715 | }, { |
| 5716 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5717 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5718 | }, |
| 5719 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5720 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5721 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5722 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5723 | }, |
| 5724 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5725 | { |
| 5726 | .vendor = "Fujitsu", |
| 5727 | .name = "MBM29F004TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5728 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5729 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5730 | .model_id = FUJITSU_MBM29F004TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5731 | .total_size = 512, |
| 5732 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5733 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5734 | .tested = TEST_UNTESTED, |
| 5735 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5736 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5737 | .block_erasers = |
| 5738 | { |
| 5739 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5740 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5741 | {64 * 1024, 7}, |
| 5742 | {32 * 1024, 1}, |
| 5743 | {8 * 1024, 2}, |
| 5744 | {16 * 1024, 1}, |
| 5745 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5746 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5747 | }, { |
| 5748 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5749 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5750 | }, |
| 5751 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5752 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5753 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5754 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5755 | }, |
| 5756 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5757 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5758 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5759 | .vendor = "Fujitsu", |
| 5760 | .name = "MBM29F400BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5761 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5762 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5763 | .model_id = FUJITSU_MBM29F400BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5764 | .total_size = 512, |
| 5765 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5766 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 5767 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5768 | .probe = probe_jedec, |
| 5769 | .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5770 | .block_erasers = |
| 5771 | { |
| 5772 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5773 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5774 | {16 * 1024, 1}, |
| 5775 | {8 * 1024, 2}, |
| 5776 | {32 * 1024, 1}, |
| 5777 | {64 * 1024, 7}, |
| 5778 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5779 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5780 | }, { |
| 5781 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5782 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5783 | }, |
| 5784 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5785 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5786 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5787 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5788 | }, |
| 5789 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5790 | { |
| 5791 | .vendor = "Fujitsu", |
| 5792 | .name = "MBM29F400TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5793 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5794 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5795 | .model_id = FUJITSU_MBM29F400TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5796 | .total_size = 512, |
| 5797 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5798 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5799 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5800 | .probe = probe_jedec, |
| 5801 | .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5802 | .block_erasers = |
| 5803 | { |
| 5804 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5805 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5806 | {64 * 1024, 7}, |
| 5807 | {32 * 1024, 1}, |
| 5808 | {8 * 1024, 2}, |
| 5809 | {16 * 1024, 1}, |
| 5810 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5811 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5812 | }, { |
| 5813 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5814 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5815 | }, |
| 5816 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5817 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5818 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5819 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5820 | }, |
| 5821 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5822 | { |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5823 | .vendor = "Fujitsu", |
| 5824 | .name = "MBM29LV160BE", |
| 5825 | .bustype = BUS_PARALLEL, |
| 5826 | .manufacture_id = FUJITSU_ID, |
| 5827 | .model_id = FUJITSU_MBM29LV160BE, |
| 5828 | .total_size = 2 * 1024, |
| 5829 | .page_size = 0, |
| 5830 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET, |
| 5831 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5832 | .probe = probe_jedec, |
| 5833 | .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5834 | .block_erasers = |
| 5835 | { |
| 5836 | { |
| 5837 | .eraseblocks = { |
| 5838 | {16 * 1024, 1}, |
| 5839 | {8 * 1024, 2}, |
| 5840 | {32 * 1024, 1}, |
| 5841 | {64 * 1024, 31}, |
| 5842 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5843 | .block_erase = erase_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5844 | }, { |
| 5845 | .eraseblocks = { {2048 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5846 | .block_erase = erase_chip_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5847 | }, |
| 5848 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5849 | .write = write_jedec_1, /* Supports a fast mode too */ |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5850 | .read = read_memmapped, |
| 5851 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */ |
| 5852 | }, |
| 5853 | |
| 5854 | { |
| 5855 | .vendor = "Fujitsu", |
| 5856 | .name = "MBM29LV160TE", |
| 5857 | .bustype = BUS_PARALLEL, |
| 5858 | .manufacture_id = FUJITSU_ID, |
| 5859 | .model_id = FUJITSU_MBM29LV160TE, |
| 5860 | .total_size = 2 * 1024, |
| 5861 | .page_size = 0, |
| 5862 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET, |
| 5863 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5864 | .probe = probe_jedec, |
| 5865 | .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5866 | .block_erasers = |
| 5867 | { |
| 5868 | { |
| 5869 | .eraseblocks = { |
| 5870 | {64 * 1024, 31}, |
| 5871 | {32 * 1024, 1}, |
| 5872 | {8 * 1024, 2}, |
| 5873 | {16 * 1024, 1}, |
| 5874 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5875 | .block_erase = erase_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5876 | }, { |
| 5877 | .eraseblocks = { {2048 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5878 | .block_erase = erase_chip_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5879 | }, |
| 5880 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5881 | .write = write_jedec_1, /* Supports a fast mode too */ |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5882 | .read = read_memmapped, |
| 5883 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */ |
| 5884 | }, |
| 5885 | |
| 5886 | { |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5887 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5888 | .name = "GD25B128B/GD25Q128B", |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5889 | .bustype = BUS_SPI, |
| 5890 | .manufacture_id = GIGADEVICE_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5891 | .model_id = GIGADEVICE_GD25Q128, |
| 5892 | .total_size = 16384, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5893 | .page_size = 256, |
| 5894 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 5895 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5896 | .tested = TEST_OK_PREW, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5897 | .probe = probe_spi_rdid, |
| 5898 | .probe_timing = TIMING_ZERO, |
| 5899 | .block_erasers = |
| 5900 | { |
| 5901 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5902 | .eraseblocks = { {4 * 1024, 4096} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5903 | .block_erase = spi_block_erase_20, |
| 5904 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5905 | .eraseblocks = { {32 * 1024, 512} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5906 | .block_erase = spi_block_erase_52, |
| 5907 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5908 | .eraseblocks = { {64 * 1024, 256} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5909 | .block_erase = spi_block_erase_d8, |
| 5910 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5911 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5912 | .block_erase = spi_block_erase_60, |
| 5913 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5914 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5915 | .block_erase = spi_block_erase_c7, |
| 5916 | } |
| 5917 | }, |
| 5918 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 5919 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5920 | .write = spi_chip_write_256, |
| 5921 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5922 | .voltage = {2700, 3600}, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5923 | }, |
| 5924 | |
| 5925 | { |
| 5926 | .vendor = "GigaDevice", |
Alan Green | 188127e | 2019-08-06 16:10:34 +1000 | [diff] [blame] | 5927 | .name = "GD25LQ128C/GD25LQ128D", |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5928 | .bustype = BUS_SPI, |
| 5929 | .manufacture_id = GIGADEVICE_ID, |
Alan Green | 188127e | 2019-08-06 16:10:34 +1000 | [diff] [blame] | 5930 | .model_id = GIGADEVICE_GD25LQ128CD, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5931 | .total_size = 16384, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5932 | .page_size = 256, |
| 5933 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 5934 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5935 | .tested = TEST_UNTESTED, |
| 5936 | .probe = probe_spi_rdid, |
| 5937 | .probe_timing = TIMING_ZERO, |
| 5938 | .block_erasers = |
| 5939 | { |
| 5940 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5941 | .eraseblocks = { {4 * 1024, 4096} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5942 | .block_erase = spi_block_erase_20, |
| 5943 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5944 | .eraseblocks = { {32 * 1024, 512} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5945 | .block_erase = spi_block_erase_52, |
| 5946 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5947 | .eraseblocks = { {64 * 1024, 256} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5948 | .block_erase = spi_block_erase_d8, |
| 5949 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5950 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5951 | .block_erase = spi_block_erase_60, |
| 5952 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5953 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5954 | .block_erase = spi_block_erase_c7, |
| 5955 | } |
| 5956 | }, |
| 5957 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 5958 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5959 | .write = spi_chip_write_256, |
| 5960 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5961 | .voltage = {1695, 1950}, |
| 5962 | }, |
| 5963 | |
| 5964 | { |
| 5965 | .vendor = "GigaDevice", |
| 5966 | .name = "GD25LQ16", |
| 5967 | .bustype = BUS_SPI, |
| 5968 | .manufacture_id = GIGADEVICE_ID, |
| 5969 | .model_id = GIGADEVICE_GD25LQ16, |
| 5970 | .total_size = 2048, |
| 5971 | .page_size = 256, |
| 5972 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 5973 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5974 | .tested = TEST_UNTESTED, |
| 5975 | .probe = probe_spi_rdid, |
| 5976 | .probe_timing = TIMING_ZERO, |
| 5977 | .block_erasers = |
| 5978 | { |
| 5979 | { |
| 5980 | .eraseblocks = { {4 * 1024, 512} }, |
| 5981 | .block_erase = spi_block_erase_20, |
| 5982 | }, { |
| 5983 | .eraseblocks = { {32 * 1024, 64} }, |
| 5984 | .block_erase = spi_block_erase_52, |
| 5985 | }, { |
| 5986 | .eraseblocks = { {64 * 1024, 32} }, |
| 5987 | .block_erase = spi_block_erase_d8, |
| 5988 | }, { |
| 5989 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5990 | .block_erase = spi_block_erase_60, |
| 5991 | }, { |
| 5992 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5993 | .block_erase = spi_block_erase_c7, |
| 5994 | } |
| 5995 | }, |
| 5996 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 5997 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5998 | .write = spi_chip_write_256, |
| 5999 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6000 | .voltage = {1695, 1950}, |
| 6001 | }, |
| 6002 | |
| 6003 | { |
| 6004 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6005 | .name = "GD25LQ32", |
| 6006 | .bustype = BUS_SPI, |
| 6007 | .manufacture_id = GIGADEVICE_ID, |
| 6008 | .model_id = GIGADEVICE_GD25LQ32, |
| 6009 | .total_size = 4096, |
| 6010 | .page_size = 256, |
| 6011 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 6012 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6013 | .tested = TEST_OK_PREW, |
| 6014 | .probe = probe_spi_rdid, |
| 6015 | .probe_timing = TIMING_ZERO, |
| 6016 | .block_erasers = |
| 6017 | { |
| 6018 | { |
| 6019 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6020 | .block_erase = spi_block_erase_20, |
| 6021 | }, { |
| 6022 | .eraseblocks = { {32 * 1024, 128} }, |
| 6023 | .block_erase = spi_block_erase_52, |
| 6024 | }, { |
| 6025 | .eraseblocks = { {64 * 1024, 64} }, |
| 6026 | .block_erase = spi_block_erase_d8, |
| 6027 | }, { |
| 6028 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6029 | .block_erase = spi_block_erase_60, |
| 6030 | }, { |
| 6031 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6032 | .block_erase = spi_block_erase_c7, |
| 6033 | } |
| 6034 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6035 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6036 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6037 | .write = spi_chip_write_256, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6038 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6039 | .voltage = {1695, 1950}, |
| 6040 | }, |
| 6041 | |
| 6042 | { |
| 6043 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6044 | .name = "GD25LQ40", |
| 6045 | .bustype = BUS_SPI, |
| 6046 | .manufacture_id = GIGADEVICE_ID, |
| 6047 | .model_id = GIGADEVICE_GD25LQ40, |
| 6048 | .total_size = 512, |
| 6049 | .page_size = 256, |
| 6050 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 6051 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6052 | .tested = TEST_UNTESTED, |
| 6053 | .probe = probe_spi_rdid, |
| 6054 | .probe_timing = TIMING_ZERO, |
| 6055 | .block_erasers = |
| 6056 | { |
| 6057 | { |
| 6058 | .eraseblocks = { {4 * 1024, 128} }, |
| 6059 | .block_erase = spi_block_erase_20, |
| 6060 | }, { |
| 6061 | .eraseblocks = { {32 * 1024, 16} }, |
| 6062 | .block_erase = spi_block_erase_52, |
| 6063 | }, { |
| 6064 | .eraseblocks = { {64 * 1024, 8} }, |
| 6065 | .block_erase = spi_block_erase_d8, |
| 6066 | }, { |
| 6067 | .eraseblocks = { {512 * 1024, 1} }, |
| 6068 | .block_erase = spi_block_erase_60, |
| 6069 | }, { |
| 6070 | .eraseblocks = { {512 * 1024, 1} }, |
| 6071 | .block_erase = spi_block_erase_c7, |
| 6072 | } |
| 6073 | }, |
| 6074 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6075 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6076 | .write = spi_chip_write_256, |
| 6077 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6078 | .voltage = {1695, 1950}, |
| 6079 | }, |
| 6080 | |
| 6081 | { |
| 6082 | .vendor = "GigaDevice", |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6083 | .name = "GD25LQ64(B)", |
| 6084 | .bustype = BUS_SPI, |
| 6085 | .manufacture_id = GIGADEVICE_ID, |
| 6086 | .model_id = GIGADEVICE_GD25LQ64, |
| 6087 | .total_size = 8192, |
| 6088 | .page_size = 256, |
| 6089 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 6090 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 6091 | .tested = TEST_OK_PREW, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6092 | .probe = probe_spi_rdid, |
| 6093 | .probe_timing = TIMING_ZERO, |
| 6094 | .block_erasers = |
| 6095 | { |
| 6096 | { |
| 6097 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6098 | .block_erase = spi_block_erase_20, |
| 6099 | }, { |
| 6100 | .eraseblocks = { {32 * 1024, 256} }, |
| 6101 | .block_erase = spi_block_erase_52, |
| 6102 | }, { |
| 6103 | .eraseblocks = { {64 * 1024, 128} }, |
| 6104 | .block_erase = spi_block_erase_d8, |
| 6105 | }, { |
| 6106 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6107 | .block_erase = spi_block_erase_60, |
| 6108 | }, { |
| 6109 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6110 | .block_erase = spi_block_erase_c7, |
| 6111 | } |
| 6112 | }, |
| 6113 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6114 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6115 | .write = spi_chip_write_256, |
| 6116 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6117 | .voltage = {1695, 1950}, |
| 6118 | }, |
| 6119 | |
| 6120 | { |
| 6121 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6122 | .name = "GD25LQ80", |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6123 | .bustype = BUS_SPI, |
| 6124 | .manufacture_id = GIGADEVICE_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6125 | .model_id = GIGADEVICE_GD25LQ80, |
| 6126 | .total_size = 1024, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6127 | .page_size = 256, |
| 6128 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 6129 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6130 | .tested = TEST_UNTESTED, |
| 6131 | .probe = probe_spi_rdid, |
| 6132 | .probe_timing = TIMING_ZERO, |
| 6133 | .block_erasers = |
| 6134 | { |
| 6135 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6136 | .eraseblocks = { {4 * 1024, 256} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6137 | .block_erase = spi_block_erase_20, |
| 6138 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6139 | .eraseblocks = { {32 * 1024, 32} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6140 | .block_erase = spi_block_erase_52, |
| 6141 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6142 | .eraseblocks = { {64 * 1024, 16} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6143 | .block_erase = spi_block_erase_d8, |
| 6144 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6145 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6146 | .block_erase = spi_block_erase_60, |
| 6147 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6148 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6149 | .block_erase = spi_block_erase_c7, |
| 6150 | } |
| 6151 | }, |
| 6152 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6153 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6154 | .write = spi_chip_write_256, |
| 6155 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6156 | .voltage = {1695, 1950}, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6157 | }, |
| 6158 | |
| 6159 | { |
| 6160 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6161 | .name = "GD25Q10", |
| 6162 | .bustype = BUS_SPI, |
| 6163 | .manufacture_id = GIGADEVICE_ID, |
| 6164 | .model_id = GIGADEVICE_GD25Q10, |
| 6165 | .total_size = 128, |
| 6166 | .page_size = 256, |
| 6167 | .feature_bits = FEATURE_WRSR_WREN, |
| 6168 | .tested = TEST_UNTESTED, |
| 6169 | .probe = probe_spi_rdid, |
| 6170 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 6171 | .block_erasers = |
| 6172 | { |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6173 | { |
| 6174 | .eraseblocks = { {4 * 1024, 32} }, |
| 6175 | .block_erase = spi_block_erase_20, |
| 6176 | }, { |
| 6177 | .eraseblocks = { {32 * 1024, 4} }, |
| 6178 | .block_erase = spi_block_erase_52, |
| 6179 | }, { |
| 6180 | .eraseblocks = { {64 * 1024, 2} }, |
| 6181 | .block_erase = spi_block_erase_d8, |
| 6182 | }, { |
| 6183 | .eraseblocks = { {128 * 1024, 1} }, |
| 6184 | .block_erase = spi_block_erase_60, |
| 6185 | }, { |
| 6186 | .eraseblocks = { {128 * 1024, 1} }, |
| 6187 | .block_erase = spi_block_erase_c7, |
| 6188 | } |
| 6189 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6190 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6191 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6192 | .write = spi_chip_write_256, |
| 6193 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6194 | .voltage = {2700, 3600}, |
| 6195 | }, |
| 6196 | |
| 6197 | { |
| 6198 | .vendor = "GigaDevice", |
Alan Green | 4f00912 | 2019-08-26 10:45:18 +1000 | [diff] [blame] | 6199 | .name = "GD25Q127C/GD25Q128C", |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6200 | .bustype = BUS_SPI, |
| 6201 | .manufacture_id = GIGADEVICE_ID, |
| 6202 | .model_id = GIGADEVICE_GD25Q128, |
| 6203 | .total_size = 16384, |
| 6204 | .page_size = 256, |
| 6205 | /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */ |
| 6206 | /* QPI: enable 0x38, disable 0xFF */ |
| 6207 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Angel Pons | bce364c | 2018-09-30 20:04:14 +0200 | [diff] [blame] | 6208 | .tested = TEST_OK_PREW, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6209 | .probe = probe_spi_rdid, |
| 6210 | .probe_timing = TIMING_ZERO, |
| 6211 | .block_erasers = |
| 6212 | { |
| 6213 | { |
| 6214 | .eraseblocks = { {4 * 1024, 4096} }, |
| 6215 | .block_erase = spi_block_erase_20, |
| 6216 | }, { |
| 6217 | .eraseblocks = { {32 * 1024, 512} }, |
| 6218 | .block_erase = spi_block_erase_52, |
| 6219 | }, { |
| 6220 | .eraseblocks = { {64 * 1024, 256} }, |
| 6221 | .block_erase = spi_block_erase_d8, |
| 6222 | }, { |
| 6223 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6224 | .block_erase = spi_block_erase_60, |
| 6225 | }, { |
| 6226 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6227 | .block_erase = spi_block_erase_c7, |
| 6228 | } |
| 6229 | }, |
| 6230 | /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */ |
| 6231 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6232 | .unlock = spi_disable_blockprotect_bp4_srwd, |
| 6233 | .write = spi_chip_write_256, |
| 6234 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6235 | .voltage = {2700, 3600}, |
| 6236 | }, |
| 6237 | |
| 6238 | { |
| 6239 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6240 | .name = "GD25Q16(B)", |
| 6241 | .bustype = BUS_SPI, |
| 6242 | .manufacture_id = GIGADEVICE_ID, |
| 6243 | .model_id = GIGADEVICE_GD25Q16, |
| 6244 | .total_size = 2048, |
| 6245 | .page_size = 256, |
| 6246 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */ |
| 6247 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6248 | .tested = TEST_OK_PREW, |
| 6249 | .probe = probe_spi_rdid, |
| 6250 | .probe_timing = TIMING_ZERO, |
| 6251 | .block_erasers = |
| 6252 | { |
| 6253 | { |
| 6254 | .eraseblocks = { {4 * 1024, 512} }, |
| 6255 | .block_erase = spi_block_erase_20, |
| 6256 | }, { |
| 6257 | .eraseblocks = { {32 * 1024, 64} }, |
| 6258 | .block_erase = spi_block_erase_52, |
| 6259 | }, { |
| 6260 | .eraseblocks = { {64 * 1024, 32} }, |
| 6261 | .block_erase = spi_block_erase_d8, |
| 6262 | }, { |
| 6263 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6264 | .block_erase = spi_block_erase_60, |
| 6265 | }, { |
| 6266 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6267 | .block_erase = spi_block_erase_c7, |
| 6268 | } |
| 6269 | }, |
| 6270 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6271 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6272 | .write = spi_chip_write_256, |
| 6273 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6274 | .voltage = {2700, 3600}, |
| 6275 | }, |
| 6276 | |
| 6277 | { |
| 6278 | .vendor = "GigaDevice", |
| 6279 | .name = "GD25Q20(B)", |
| 6280 | .bustype = BUS_SPI, |
| 6281 | .manufacture_id = GIGADEVICE_ID, |
| 6282 | .model_id = GIGADEVICE_GD25Q20, |
| 6283 | .total_size = 256, |
| 6284 | .page_size = 256, |
| 6285 | .feature_bits = FEATURE_WRSR_WREN, |
| 6286 | .tested = TEST_OK_PREW, |
| 6287 | .probe = probe_spi_rdid, |
| 6288 | .probe_timing = TIMING_ZERO, |
| 6289 | .block_erasers = |
| 6290 | { |
| 6291 | { |
| 6292 | .eraseblocks = { {4 * 1024, 64} }, |
| 6293 | .block_erase = spi_block_erase_20, |
| 6294 | }, { |
| 6295 | .eraseblocks = { {32 * 1024, 8} }, |
| 6296 | .block_erase = spi_block_erase_52, |
| 6297 | }, { |
| 6298 | .eraseblocks = { {64 * 1024, 4} }, |
| 6299 | .block_erase = spi_block_erase_d8, |
| 6300 | }, { |
| 6301 | .eraseblocks = { {256 * 1024, 1} }, |
| 6302 | .block_erase = spi_block_erase_60, |
| 6303 | }, { |
| 6304 | .eraseblocks = { {256 * 1024, 1} }, |
| 6305 | .block_erase = spi_block_erase_c7, |
| 6306 | } |
| 6307 | }, |
| 6308 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6309 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6310 | .write = spi_chip_write_256, |
| 6311 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6312 | .voltage = {2700, 3600}, |
| 6313 | }, |
| 6314 | |
| 6315 | { |
| 6316 | .vendor = "GigaDevice", |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 6317 | .name = "GD25Q256D", |
| 6318 | .bustype = BUS_SPI, |
| 6319 | .manufacture_id = GIGADEVICE_ID, |
| 6320 | .model_id = GIGADEVICE_GD25Q256D, |
| 6321 | .total_size = 32768, |
| 6322 | .page_size = 256, |
| 6323 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 6324 | .tested = TEST_UNTESTED, |
| 6325 | .probe = probe_spi_rdid, |
| 6326 | .probe_timing = TIMING_ZERO, |
| 6327 | .block_erasers = |
| 6328 | { |
| 6329 | { |
| 6330 | .eraseblocks = { {4 * 1024, 8192} }, |
Nico Huber | 5374dc3 | 2019-10-04 16:16:15 +0200 | [diff] [blame] | 6331 | .block_erase = spi_block_erase_21, |
| 6332 | }, { |
| 6333 | .eraseblocks = { {4 * 1024, 8192} }, |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 6334 | .block_erase = spi_block_erase_20, |
| 6335 | }, { |
| 6336 | .eraseblocks = { {32 * 1024, 1024} }, |
Nico Huber | 5374dc3 | 2019-10-04 16:16:15 +0200 | [diff] [blame] | 6337 | .block_erase = spi_block_erase_5c, |
| 6338 | }, { |
| 6339 | .eraseblocks = { {32 * 1024, 1024} }, |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 6340 | .block_erase = spi_block_erase_52, |
| 6341 | }, { |
| 6342 | .eraseblocks = { {64 * 1024, 512} }, |
Nico Huber | 5374dc3 | 2019-10-04 16:16:15 +0200 | [diff] [blame] | 6343 | .block_erase = spi_block_erase_dc, |
| 6344 | }, { |
| 6345 | .eraseblocks = { {64 * 1024, 512} }, |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 6346 | .block_erase = spi_block_erase_d8, |
| 6347 | }, { |
| 6348 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 6349 | .block_erase = spi_block_erase_60, |
| 6350 | }, { |
| 6351 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 6352 | .block_erase = spi_block_erase_c7, |
| 6353 | } |
| 6354 | }, |
| 6355 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 6356 | .unlock = spi_disable_blockprotect, |
| 6357 | .write = spi_chip_write_256, |
| 6358 | .read = spi_chip_read, |
| 6359 | .voltage = {2700, 3600}, |
| 6360 | }, |
| 6361 | |
| 6362 | { |
| 6363 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6364 | .name = "GD25Q32(B)", |
| 6365 | .bustype = BUS_SPI, |
| 6366 | .manufacture_id = GIGADEVICE_ID, |
| 6367 | .model_id = GIGADEVICE_GD25Q32, |
| 6368 | .total_size = 4096, |
| 6369 | .page_size = 256, |
| 6370 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 6371 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6372 | .tested = TEST_OK_PREW, |
| 6373 | .probe = probe_spi_rdid, |
| 6374 | .probe_timing = TIMING_ZERO, |
| 6375 | .block_erasers = |
| 6376 | { |
| 6377 | { |
| 6378 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6379 | .block_erase = spi_block_erase_20, |
| 6380 | }, { |
| 6381 | .eraseblocks = { {32 * 1024, 128} }, |
| 6382 | .block_erase = spi_block_erase_52, |
| 6383 | }, { |
| 6384 | .eraseblocks = { {64 * 1024, 64} }, |
| 6385 | .block_erase = spi_block_erase_d8, |
| 6386 | }, { |
| 6387 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6388 | .block_erase = spi_block_erase_60, |
| 6389 | }, { |
| 6390 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6391 | .block_erase = spi_block_erase_c7, |
| 6392 | } |
| 6393 | }, |
| 6394 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6395 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6396 | .write = spi_chip_write_256, |
| 6397 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6398 | .voltage = {2700, 3600}, |
| 6399 | }, |
| 6400 | |
| 6401 | { |
| 6402 | .vendor = "GigaDevice", |
| 6403 | .name = "GD25Q40(B)", |
| 6404 | .bustype = BUS_SPI, |
| 6405 | .manufacture_id = GIGADEVICE_ID, |
| 6406 | .model_id = GIGADEVICE_GD25Q40, |
| 6407 | .total_size = 512, |
| 6408 | .page_size = 256, |
| 6409 | .feature_bits = FEATURE_WRSR_WREN, |
| 6410 | .tested = TEST_UNTESTED, |
| 6411 | .probe = probe_spi_rdid, |
| 6412 | .probe_timing = TIMING_ZERO, |
| 6413 | .block_erasers = |
| 6414 | { |
| 6415 | { |
| 6416 | .eraseblocks = { {4 * 1024, 128} }, |
| 6417 | .block_erase = spi_block_erase_20, |
| 6418 | }, { |
| 6419 | .eraseblocks = { {32 * 1024, 16} }, |
| 6420 | .block_erase = spi_block_erase_52, |
| 6421 | }, { |
| 6422 | .eraseblocks = { {64 * 1024, 8} }, |
| 6423 | .block_erase = spi_block_erase_d8, |
| 6424 | }, { |
| 6425 | .eraseblocks = { {512 * 1024, 1} }, |
| 6426 | .block_erase = spi_block_erase_60, |
| 6427 | }, { |
| 6428 | .eraseblocks = { {512 * 1024, 1} }, |
| 6429 | .block_erase = spi_block_erase_c7, |
| 6430 | } |
| 6431 | }, |
| 6432 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6433 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6434 | .write = spi_chip_write_256, |
| 6435 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6436 | .voltage = {2700, 3600}, |
| 6437 | }, |
| 6438 | |
| 6439 | { |
| 6440 | .vendor = "GigaDevice", |
| 6441 | .name = "GD25Q512", |
| 6442 | .bustype = BUS_SPI, |
| 6443 | .manufacture_id = GIGADEVICE_ID, |
| 6444 | .model_id = GIGADEVICE_GD25Q512, |
| 6445 | .total_size = 64, |
| 6446 | .page_size = 256, |
| 6447 | .feature_bits = FEATURE_WRSR_WREN, |
| 6448 | .tested = TEST_OK_PREW, |
| 6449 | .probe = probe_spi_rdid, |
| 6450 | .probe_timing = TIMING_ZERO, |
| 6451 | .block_erasers = |
| 6452 | { |
| 6453 | { |
| 6454 | .eraseblocks = { {4 * 1024, 16} }, |
| 6455 | .block_erase = spi_block_erase_20, |
| 6456 | }, { |
| 6457 | .eraseblocks = { {32 * 1024, 2} }, |
| 6458 | .block_erase = spi_block_erase_52, |
| 6459 | }, { |
| 6460 | .eraseblocks = { {64 * 1024, 1} }, |
| 6461 | .block_erase = spi_block_erase_60, |
| 6462 | }, { |
| 6463 | .eraseblocks = { {64 * 1024, 1} }, |
| 6464 | .block_erase = spi_block_erase_c7, |
| 6465 | } |
| 6466 | }, |
| 6467 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6468 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6469 | .write = spi_chip_write_256, |
| 6470 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6471 | .voltage = {2700, 3600}, |
| 6472 | }, |
| 6473 | |
| 6474 | { |
| 6475 | .vendor = "GigaDevice", |
| 6476 | .name = "GD25Q64(B)", |
| 6477 | .bustype = BUS_SPI, |
| 6478 | .manufacture_id = GIGADEVICE_ID, |
| 6479 | .model_id = GIGADEVICE_GD25Q64, |
| 6480 | .total_size = 8192, |
| 6481 | .page_size = 256, |
| 6482 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 6483 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6484 | .tested = TEST_OK_PREW, |
| 6485 | .probe = probe_spi_rdid, |
| 6486 | .probe_timing = TIMING_ZERO, |
| 6487 | .block_erasers = |
| 6488 | { |
| 6489 | { |
| 6490 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6491 | .block_erase = spi_block_erase_20, |
| 6492 | }, { |
| 6493 | .eraseblocks = { {32 * 1024, 256} }, |
| 6494 | .block_erase = spi_block_erase_52, |
| 6495 | }, { |
| 6496 | .eraseblocks = { {64 * 1024, 128} }, |
| 6497 | .block_erase = spi_block_erase_d8, |
| 6498 | }, { |
| 6499 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6500 | .block_erase = spi_block_erase_60, |
| 6501 | }, { |
| 6502 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6503 | .block_erase = spi_block_erase_c7, |
| 6504 | } |
| 6505 | }, |
| 6506 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6507 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6508 | .write = spi_chip_write_256, |
| 6509 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6510 | .voltage = {2700, 3600}, |
| 6511 | }, |
| 6512 | |
| 6513 | { |
| 6514 | .vendor = "GigaDevice", |
| 6515 | .name = "GD25Q80(B)", |
| 6516 | .bustype = BUS_SPI, |
| 6517 | .manufacture_id = GIGADEVICE_ID, |
| 6518 | .model_id = GIGADEVICE_GD25Q80, |
| 6519 | .total_size = 1024, |
| 6520 | .page_size = 256, |
| 6521 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */ |
| 6522 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6523 | .tested = TEST_OK_PREW, |
| 6524 | .probe = probe_spi_rdid, |
| 6525 | .probe_timing = TIMING_ZERO, |
| 6526 | .block_erasers = |
| 6527 | { |
| 6528 | { |
| 6529 | .eraseblocks = { {4 * 1024, 256} }, |
| 6530 | .block_erase = spi_block_erase_20, |
| 6531 | }, { |
| 6532 | .eraseblocks = { {32 * 1024, 32} }, |
| 6533 | .block_erase = spi_block_erase_52, |
| 6534 | }, { |
| 6535 | .eraseblocks = { {64 * 1024, 16} }, |
| 6536 | .block_erase = spi_block_erase_d8, |
| 6537 | }, { |
| 6538 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6539 | .block_erase = spi_block_erase_60, |
| 6540 | }, { |
| 6541 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6542 | .block_erase = spi_block_erase_c7, |
| 6543 | } |
| 6544 | }, |
| 6545 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6546 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6547 | .write = spi_chip_write_256, |
| 6548 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6549 | .voltage = {2700, 3600}, |
| 6550 | }, |
| 6551 | |
| 6552 | { |
| 6553 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6554 | .name = "GD25T80", |
| 6555 | .bustype = BUS_SPI, |
| 6556 | .manufacture_id = GIGADEVICE_ID, |
| 6557 | .model_id = GIGADEVICE_GD25T80, |
| 6558 | .total_size = 1024, |
| 6559 | .page_size = 256, |
| 6560 | /* OTP: 256B total; enter 0x3A */ |
| 6561 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6562 | .tested = TEST_UNTESTED, |
| 6563 | .probe = probe_spi_rdid, |
| 6564 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 6565 | .block_erasers = |
| 6566 | { |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6567 | { |
| 6568 | .eraseblocks = { {4 * 1024, 256} }, |
| 6569 | .block_erase = spi_block_erase_20, |
| 6570 | }, { |
| 6571 | .eraseblocks = { {64 * 1024, 16} }, |
| 6572 | .block_erase = spi_block_erase_52, |
| 6573 | }, { |
| 6574 | .eraseblocks = { {64 * 1024, 16} }, |
| 6575 | .block_erase = spi_block_erase_d8, |
| 6576 | }, { |
| 6577 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6578 | .block_erase = spi_block_erase_60, |
| 6579 | }, { |
| 6580 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6581 | .block_erase = spi_block_erase_c7, |
| 6582 | } |
| 6583 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 6584 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6585 | .unlock = spi_disable_blockprotect, |
| 6586 | .write = spi_chip_write_256, |
| 6587 | .read = spi_chip_read, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6588 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6589 | }, |
| 6590 | |
| 6591 | { |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6592 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6593 | .name = "GD25VQ16C", |
| 6594 | .bustype = BUS_SPI, |
| 6595 | .manufacture_id = GIGADEVICE_ID, |
| 6596 | .model_id = GIGADEVICE_GD25VQ16C, |
| 6597 | .total_size = 2 * 1024, |
| 6598 | .page_size = 256, |
| 6599 | /* Supports SFDP */ |
| 6600 | /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */ |
| 6601 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6602 | .tested = TEST_UNTESTED, |
| 6603 | .probe = probe_spi_rdid, |
| 6604 | .probe_timing = TIMING_ZERO, |
| 6605 | .block_erasers = |
| 6606 | { |
| 6607 | { |
| 6608 | .eraseblocks = { { 4 * 1024, 512} }, |
| 6609 | .block_erase = spi_block_erase_20, |
| 6610 | }, { |
| 6611 | .eraseblocks = { { 32 * 1024, 64} }, |
| 6612 | .block_erase = spi_block_erase_52, |
| 6613 | }, { |
| 6614 | .eraseblocks = { { 64 * 1024, 32} }, |
| 6615 | .block_erase = spi_block_erase_d8, |
| 6616 | }, { |
| 6617 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6618 | .block_erase = spi_block_erase_60, |
| 6619 | }, { |
| 6620 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6621 | .block_erase = spi_block_erase_c7, |
| 6622 | } |
| 6623 | }, |
| 6624 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6625 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6626 | .write = spi_chip_write_256, |
| 6627 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6628 | .voltage = {2300, 3600}, |
| 6629 | }, |
| 6630 | |
| 6631 | { |
| 6632 | .vendor = "GigaDevice", |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 6633 | .name = "GD25VQ21B", |
| 6634 | .bustype = BUS_SPI, |
| 6635 | .manufacture_id = GIGADEVICE_ID, |
| 6636 | .model_id = GIGADEVICE_GD25VQ21B, |
| 6637 | .total_size = 256, |
| 6638 | .page_size = 256, |
| 6639 | /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */ |
| 6640 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6641 | .tested = TEST_UNTESTED, |
| 6642 | .probe = probe_spi_rdid, |
| 6643 | .probe_timing = TIMING_ZERO, |
| 6644 | .block_erasers = |
| 6645 | { |
| 6646 | { |
| 6647 | .eraseblocks = { { 4 * 1024, 64} }, |
| 6648 | .block_erase = spi_block_erase_20, |
| 6649 | }, { |
| 6650 | .eraseblocks = { { 32 * 1024, 8} }, |
| 6651 | .block_erase = spi_block_erase_52, |
| 6652 | }, { |
| 6653 | .eraseblocks = { { 64 * 1024, 4} }, |
| 6654 | .block_erase = spi_block_erase_d8, |
| 6655 | }, { |
| 6656 | .eraseblocks = { {256 * 1024, 1} }, |
| 6657 | .block_erase = spi_block_erase_60, |
| 6658 | }, { |
| 6659 | .eraseblocks = { {256 * 1024, 1} }, |
| 6660 | .block_erase = spi_block_erase_c7, |
| 6661 | } |
| 6662 | }, |
| 6663 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6664 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6665 | .write = spi_chip_write_256, |
| 6666 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6667 | .voltage = {2300, 3600}, |
| 6668 | }, |
| 6669 | |
| 6670 | { |
| 6671 | .vendor = "GigaDevice", |
| 6672 | .name = "GD25VQ40C", |
| 6673 | .bustype = BUS_SPI, |
| 6674 | .manufacture_id = GIGADEVICE_ID, |
| 6675 | .model_id = GIGADEVICE_GD25VQ41B, |
| 6676 | .total_size = 512, |
| 6677 | .page_size = 256, |
| 6678 | /* Supports SFDP */ |
| 6679 | /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */ |
| 6680 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6681 | .tested = TEST_UNTESTED, |
| 6682 | .probe = probe_spi_rdid, |
| 6683 | .probe_timing = TIMING_ZERO, |
| 6684 | .block_erasers = |
| 6685 | { |
| 6686 | { |
| 6687 | .eraseblocks = { { 4 * 1024, 128} }, |
| 6688 | .block_erase = spi_block_erase_20, |
| 6689 | }, { |
| 6690 | .eraseblocks = { { 32 * 1024, 16} }, |
| 6691 | .block_erase = spi_block_erase_52, |
| 6692 | }, { |
| 6693 | .eraseblocks = { { 64 * 1024, 8} }, |
| 6694 | .block_erase = spi_block_erase_d8, |
| 6695 | }, { |
| 6696 | .eraseblocks = { {512 * 1024, 1} }, |
| 6697 | .block_erase = spi_block_erase_60, |
| 6698 | }, { |
| 6699 | .eraseblocks = { {512 * 1024, 1} }, |
| 6700 | .block_erase = spi_block_erase_c7, |
| 6701 | } |
| 6702 | }, |
| 6703 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6704 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6705 | .write = spi_chip_write_256, |
| 6706 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6707 | .voltage = {2300, 3600}, |
| 6708 | }, |
| 6709 | |
| 6710 | { |
| 6711 | .vendor = "GigaDevice", |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6712 | .name = "GD25VQ41B", |
| 6713 | .bustype = BUS_SPI, |
| 6714 | .manufacture_id = GIGADEVICE_ID, |
| 6715 | .model_id = GIGADEVICE_GD25VQ41B, |
| 6716 | .total_size = 512, |
| 6717 | .page_size = 256, |
| 6718 | /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */ |
| 6719 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 6720 | .tested = TEST_OK_PREW, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6721 | .probe = probe_spi_rdid, |
| 6722 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 6723 | .block_erasers = |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6724 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 6725 | { |
| 6726 | .eraseblocks = { { 4 * 1024, 128} }, |
| 6727 | .block_erase = spi_block_erase_20, |
| 6728 | }, { |
| 6729 | .eraseblocks = { { 32 * 1024, 16} }, |
| 6730 | .block_erase = spi_block_erase_52, |
| 6731 | }, { |
| 6732 | .eraseblocks = { { 64 * 1024, 8} }, |
| 6733 | .block_erase = spi_block_erase_d8, |
| 6734 | }, { |
| 6735 | .eraseblocks = { {512 * 1024, 1} }, |
| 6736 | .block_erase = spi_block_erase_60, |
| 6737 | }, { |
| 6738 | .eraseblocks = { {512 * 1024, 1} }, |
| 6739 | .block_erase = spi_block_erase_c7, |
| 6740 | } |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6741 | }, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6742 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 6743 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6744 | .write = spi_chip_write_256, |
| 6745 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6746 | .voltage = {2300, 3600}, |
| 6747 | }, |
| 6748 | |
| 6749 | { |
| 6750 | .vendor = "GigaDevice", |
| 6751 | .name = "GD25VQ80C", |
| 6752 | .bustype = BUS_SPI, |
| 6753 | .manufacture_id = GIGADEVICE_ID, |
| 6754 | .model_id = GIGADEVICE_GD25VQ80C, |
| 6755 | .total_size = 1024, |
| 6756 | .page_size = 256, |
| 6757 | /* Supports SFDP */ |
| 6758 | /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */ |
| 6759 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6760 | .tested = TEST_UNTESTED, |
| 6761 | .probe = probe_spi_rdid, |
| 6762 | .probe_timing = TIMING_ZERO, |
| 6763 | .block_erasers = |
| 6764 | { |
| 6765 | { |
| 6766 | .eraseblocks = { { 4 * 1024, 256} }, |
| 6767 | .block_erase = spi_block_erase_20, |
| 6768 | }, { |
| 6769 | .eraseblocks = { { 32 * 1024, 32} }, |
| 6770 | .block_erase = spi_block_erase_52, |
| 6771 | }, { |
| 6772 | .eraseblocks = { { 64 * 1024, 16} }, |
| 6773 | .block_erase = spi_block_erase_d8, |
| 6774 | }, { |
| 6775 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6776 | .block_erase = spi_block_erase_60, |
| 6777 | }, { |
| 6778 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6779 | .block_erase = spi_block_erase_c7, |
| 6780 | } |
| 6781 | }, |
| 6782 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6783 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6784 | .write = spi_chip_write_256, |
| 6785 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6786 | .voltage = {2300, 3600}, |
| 6787 | }, |
| 6788 | |
| 6789 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6790 | .vendor = "Hyundai", |
| 6791 | .name = "HY29F002B", |
| 6792 | .bustype = BUS_PARALLEL, |
| 6793 | .manufacture_id = HYUNDAI_ID, |
| 6794 | .model_id = HYUNDAI_HY29F002B, |
| 6795 | .total_size = 256, |
| 6796 | .page_size = 256 * 1024, |
| 6797 | .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */ |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 6798 | .tested = TEST_UNTESTED, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6799 | .probe = probe_jedec, |
| 6800 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 6801 | .block_erasers = |
| 6802 | { |
| 6803 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6804 | .eraseblocks = { |
| 6805 | {16 * 1024, 1}, |
| 6806 | {8 * 1024, 2}, |
| 6807 | {32 * 1024, 1}, |
| 6808 | {64 * 1024, 3}, |
| 6809 | }, |
| 6810 | .block_erase = erase_sector_jedec, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 6811 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6812 | .eraseblocks = { {256 * 1024, 1} }, |
| 6813 | .block_erase = erase_chip_block_jedec, |
| 6814 | }, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 6815 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6816 | .write = write_jedec_1, |
| 6817 | .read = read_memmapped, |
| 6818 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */ |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6819 | }, |
| 6820 | |
| 6821 | { |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6822 | .vendor = "Hyundai", |
| 6823 | .name = "HY29F002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6824 | .bustype = BUS_PARALLEL, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6825 | .manufacture_id = HYUNDAI_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6826 | .model_id = HYUNDAI_HY29F002T, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6827 | .total_size = 256, |
| 6828 | .page_size = 256 * 1024, |
| 6829 | .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */ |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 6830 | .tested = TEST_OK_PRE, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6831 | .probe = probe_jedec, |
| 6832 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 6833 | .block_erasers = |
| 6834 | { |
| 6835 | { |
| 6836 | .eraseblocks = { |
| 6837 | {64 * 1024, 3}, |
| 6838 | {32 * 1024, 1}, |
| 6839 | {8 * 1024, 2}, |
| 6840 | {16 * 1024, 1}, |
| 6841 | }, |
| 6842 | .block_erase = erase_sector_jedec, |
| 6843 | }, { |
| 6844 | .eraseblocks = { {256 * 1024, 1} }, |
| 6845 | .block_erase = erase_chip_block_jedec, |
| 6846 | }, |
| 6847 | }, |
| 6848 | .write = write_jedec_1, |
| 6849 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6850 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */ |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6851 | }, |
| 6852 | |
| 6853 | { |
| 6854 | .vendor = "Hyundai", |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6855 | .name = "HY29F040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6856 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6857 | .manufacture_id = HYUNDAI_ID, |
| 6858 | .model_id = HYUNDAI_HY29F040A, |
| 6859 | .total_size = 512, |
| 6860 | .page_size = 64 * 1024, |
| 6861 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 6862 | .tested = TEST_UNTESTED, |
| 6863 | .probe = probe_jedec, |
| 6864 | .probe_timing = TIMING_ZERO, |
| 6865 | .block_erasers = |
| 6866 | { |
| 6867 | { |
| 6868 | .eraseblocks = { {64 * 1024, 8} }, |
| 6869 | .block_erase = erase_sector_jedec, |
| 6870 | }, { |
| 6871 | .eraseblocks = { {512 * 1024, 1} }, |
| 6872 | .block_erase = erase_chip_block_jedec, |
| 6873 | }, |
| 6874 | }, |
| 6875 | .write = write_jedec_1, |
| 6876 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6877 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6878 | }, |
| 6879 | |
| 6880 | { |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 6881 | .vendor = "ISSI", |
Angel Pons | 2ef47f3 | 2018-09-30 16:47:30 +0200 | [diff] [blame] | 6882 | .name = "IS25LP064", |
| 6883 | .bustype = BUS_SPI, |
| 6884 | .manufacture_id = ISSI_ID_SPI, |
| 6885 | .model_id = ISSI_IS25LP064, |
| 6886 | .total_size = 8192, |
| 6887 | .page_size = 256, |
| 6888 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 6889 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6890 | .tested = TEST_UNTESTED, |
| 6891 | .probe = probe_spi_rdid, |
| 6892 | .probe_timing = TIMING_ZERO, |
| 6893 | .block_erasers = |
| 6894 | { |
| 6895 | { |
| 6896 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6897 | .block_erase = spi_block_erase_20, |
| 6898 | }, { |
| 6899 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6900 | .block_erase = spi_block_erase_d7, |
| 6901 | }, { |
| 6902 | .eraseblocks = { {32 * 1024, 256} }, |
| 6903 | .block_erase = spi_block_erase_52, |
| 6904 | }, { |
| 6905 | .eraseblocks = { {64 * 1024, 128} }, |
| 6906 | .block_erase = spi_block_erase_d8, |
| 6907 | }, { |
| 6908 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6909 | .block_erase = spi_block_erase_60, |
| 6910 | }, { |
| 6911 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6912 | .block_erase = spi_block_erase_c7, |
| 6913 | } |
| 6914 | }, |
| 6915 | .unlock = spi_disable_blockprotect, |
| 6916 | .write = spi_chip_write_256, |
| 6917 | .read = spi_chip_read, |
| 6918 | .voltage = {2300, 3600}, |
| 6919 | }, |
| 6920 | |
| 6921 | { |
| 6922 | .vendor = "ISSI", |
David Hendricks | 3083ed9 | 2017-05-02 13:25:56 -0700 | [diff] [blame] | 6923 | .name = "IS25LP128", |
| 6924 | .bustype = BUS_SPI, |
| 6925 | .manufacture_id = ISSI_ID_SPI, |
| 6926 | .model_id = ISSI_IS25LP128, |
| 6927 | .total_size = 16384, |
| 6928 | .page_size = 256, |
| 6929 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 6930 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6931 | .tested = TEST_OK_PREW, |
| 6932 | .probe = probe_spi_rdid, |
| 6933 | .probe_timing = TIMING_ZERO, |
| 6934 | .block_erasers = |
| 6935 | { |
| 6936 | { |
| 6937 | .eraseblocks = { {4 * 1024, 4096} }, |
| 6938 | .block_erase = spi_block_erase_20, |
| 6939 | }, { |
| 6940 | .eraseblocks = { {4 * 1024, 4096} }, |
| 6941 | .block_erase = spi_block_erase_d7, |
| 6942 | }, { |
| 6943 | .eraseblocks = { {32 * 1024, 512} }, |
| 6944 | .block_erase = spi_block_erase_52, |
| 6945 | }, { |
| 6946 | .eraseblocks = { {64 * 1024, 256} }, |
| 6947 | .block_erase = spi_block_erase_d8, |
| 6948 | }, { |
| 6949 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6950 | .block_erase = spi_block_erase_60, |
| 6951 | }, { |
| 6952 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6953 | .block_erase = spi_block_erase_c7, |
| 6954 | } |
| 6955 | }, |
| 6956 | .unlock = spi_disable_blockprotect, |
| 6957 | .write = spi_chip_write_256, |
| 6958 | .read = spi_chip_read, |
| 6959 | .voltage = {2300, 3600}, |
| 6960 | }, |
| 6961 | |
| 6962 | { |
| 6963 | .vendor = "ISSI", |
David Hendricks | 61818dc | 2018-10-28 01:02:21 +0000 | [diff] [blame] | 6964 | .name = "IS25LP256", |
| 6965 | .bustype = BUS_SPI, |
| 6966 | .manufacture_id = ISSI_ID_SPI, |
| 6967 | .model_id = ISSI_IS25LP256, |
| 6968 | .total_size = 32768, |
| 6969 | .page_size = 256, |
| 6970 | /* supports SFDP */ |
| 6971 | /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */ |
| 6972 | /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */ |
| 6973 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7, |
| 6974 | .tested = TEST_OK_PREW, |
| 6975 | .probe = probe_spi_rdid, |
| 6976 | .probe_timing = TIMING_ZERO, |
| 6977 | .block_erasers = |
| 6978 | { |
| 6979 | { |
| 6980 | .eraseblocks = { {4 * 1024, 8192} }, |
| 6981 | .block_erase = spi_block_erase_21, |
| 6982 | }, { |
| 6983 | .eraseblocks = { {4 * 1024, 8192} }, |
| 6984 | .block_erase = spi_block_erase_20, |
| 6985 | /* could also use spi_block_erase_d7 */ |
| 6986 | }, { |
| 6987 | .eraseblocks = { {32 * 1024, 1024} }, |
| 6988 | .block_erase = spi_block_erase_5c, |
| 6989 | }, { |
| 6990 | .eraseblocks = { {32 * 1024, 1024} }, |
| 6991 | .block_erase = spi_block_erase_52, |
| 6992 | }, { |
| 6993 | .eraseblocks = { {64 * 1024, 512} }, |
| 6994 | .block_erase = spi_block_erase_dc, |
| 6995 | }, { |
| 6996 | .eraseblocks = { {64 * 1024, 512} }, |
| 6997 | .block_erase = spi_block_erase_d8, |
| 6998 | }, { |
| 6999 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 7000 | .block_erase = spi_block_erase_60, |
| 7001 | }, { |
| 7002 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 7003 | .block_erase = spi_block_erase_c7, |
| 7004 | } |
| 7005 | }, |
| 7006 | .unlock = spi_disable_blockprotect, |
| 7007 | .write = spi_chip_write_256, |
| 7008 | .read = spi_chip_read, |
| 7009 | .voltage = {2300, 3600}, |
| 7010 | }, |
| 7011 | |
| 7012 | { |
| 7013 | .vendor = "ISSI", |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 7014 | .name = "IS25WP032", |
| 7015 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 7016 | .manufacture_id = ISSI_ID_SPI, |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 7017 | .model_id = ISSI_IS25WP032, |
| 7018 | .total_size = 4096, |
| 7019 | .page_size = 256, |
| 7020 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 7021 | /* QPI enable 0x35, disable 0xF5 */ |
| 7022 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 7023 | .tested = TEST_UNTESTED, |
| 7024 | .probe = probe_spi_rdid, |
| 7025 | .probe_timing = TIMING_ZERO, |
| 7026 | .block_erasers = |
| 7027 | { |
| 7028 | { |
| 7029 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7030 | .block_erase = spi_block_erase_20, |
| 7031 | }, { |
| 7032 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7033 | .block_erase = spi_block_erase_d7, |
| 7034 | }, { |
| 7035 | .eraseblocks = { {32 * 1024, 128} }, |
| 7036 | .block_erase = spi_block_erase_52, |
| 7037 | }, { |
| 7038 | .eraseblocks = { {64 * 1024, 64} }, |
| 7039 | .block_erase = spi_block_erase_d8, |
| 7040 | }, { |
| 7041 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7042 | .block_erase = spi_block_erase_60, |
| 7043 | }, { |
| 7044 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7045 | .block_erase = spi_block_erase_c7, |
| 7046 | } |
| 7047 | }, |
| 7048 | .unlock = spi_disable_blockprotect, |
| 7049 | .write = spi_chip_write_256, |
| 7050 | .read = spi_chip_read, |
| 7051 | .voltage = {1650, 1950}, |
| 7052 | }, |
| 7053 | |
| 7054 | { |
| 7055 | .vendor = "ISSI", |
| 7056 | .name = "IS25WP064", |
| 7057 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 7058 | .manufacture_id = ISSI_ID_SPI, |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 7059 | .model_id = ISSI_IS25WP064, |
| 7060 | .total_size = 8192, |
| 7061 | .page_size = 256, |
| 7062 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 7063 | /* QPI enable 0x35, disable 0xF5 */ |
| 7064 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 7065 | .tested = TEST_OK_PREW, |
| 7066 | .probe = probe_spi_rdid, |
| 7067 | .probe_timing = TIMING_ZERO, |
| 7068 | .block_erasers = |
| 7069 | { |
| 7070 | { |
| 7071 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7072 | .block_erase = spi_block_erase_20, |
| 7073 | }, { |
| 7074 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7075 | .block_erase = spi_block_erase_d7, |
| 7076 | }, { |
| 7077 | .eraseblocks = { {32 * 1024, 256} }, |
| 7078 | .block_erase = spi_block_erase_52, |
| 7079 | }, { |
| 7080 | .eraseblocks = { {64 * 1024, 128} }, |
| 7081 | .block_erase = spi_block_erase_d8, |
| 7082 | }, { |
| 7083 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7084 | .block_erase = spi_block_erase_60, |
| 7085 | }, { |
| 7086 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7087 | .block_erase = spi_block_erase_c7, |
| 7088 | } |
| 7089 | }, |
| 7090 | .unlock = spi_disable_blockprotect, |
| 7091 | .write = spi_chip_write_256, |
| 7092 | .read = spi_chip_read, |
| 7093 | .voltage = {1650, 1950}, |
| 7094 | }, |
| 7095 | |
| 7096 | { |
| 7097 | .vendor = "ISSI", |
David Hendricks | 3083ed9 | 2017-05-02 13:25:56 -0700 | [diff] [blame] | 7098 | .name = "IS25WP128", |
| 7099 | .bustype = BUS_SPI, |
| 7100 | .manufacture_id = ISSI_ID_SPI, |
| 7101 | .model_id = ISSI_IS25WP128, |
| 7102 | .total_size = 16384, |
| 7103 | .page_size = 256, |
| 7104 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 7105 | /* QPI enable 0x35, disable 0xF5 */ |
| 7106 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
David Hendricks | 3083ed9 | 2017-05-02 13:25:56 -0700 | [diff] [blame] | 7107 | .tested = TEST_OK_PREW, |
| 7108 | .probe = probe_spi_rdid, |
| 7109 | .probe_timing = TIMING_ZERO, |
| 7110 | .block_erasers = |
| 7111 | { |
| 7112 | { |
| 7113 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7114 | .block_erase = spi_block_erase_20, |
| 7115 | }, { |
| 7116 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7117 | .block_erase = spi_block_erase_d7, |
| 7118 | }, { |
| 7119 | .eraseblocks = { {32 * 1024, 512} }, |
| 7120 | .block_erase = spi_block_erase_52, |
| 7121 | }, { |
| 7122 | .eraseblocks = { {64 * 1024, 256} }, |
| 7123 | .block_erase = spi_block_erase_d8, |
| 7124 | }, { |
| 7125 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7126 | .block_erase = spi_block_erase_60, |
| 7127 | }, { |
| 7128 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7129 | .block_erase = spi_block_erase_c7, |
| 7130 | } |
| 7131 | }, |
| 7132 | .unlock = spi_disable_blockprotect, |
| 7133 | .write = spi_chip_write_256, |
| 7134 | .read = spi_chip_read, |
| 7135 | .voltage = {1650, 1950}, |
| 7136 | }, |
| 7137 | |
| 7138 | { |
| 7139 | .vendor = "ISSI", |
David Hendricks | 61818dc | 2018-10-28 01:02:21 +0000 | [diff] [blame] | 7140 | .name = "IS25WP256", |
| 7141 | .bustype = BUS_SPI, |
| 7142 | .manufacture_id = ISSI_ID_SPI, |
| 7143 | .model_id = ISSI_IS25WP256, |
| 7144 | .total_size = 32768, |
| 7145 | .page_size = 256, |
| 7146 | /* supports SFDP */ |
| 7147 | /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */ |
| 7148 | /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */ |
| 7149 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7, |
| 7150 | .tested = TEST_OK_PREW, |
| 7151 | .probe = probe_spi_rdid, |
| 7152 | .probe_timing = TIMING_ZERO, |
| 7153 | .block_erasers = |
| 7154 | { |
| 7155 | { |
| 7156 | .eraseblocks = { {4 * 1024, 8192} }, |
| 7157 | .block_erase = spi_block_erase_21, |
| 7158 | }, { |
| 7159 | .eraseblocks = { {4 * 1024, 8192} }, |
| 7160 | .block_erase = spi_block_erase_20, |
| 7161 | /* could also use spi_block_erase_d7 */ |
| 7162 | }, { |
| 7163 | .eraseblocks = { {32 * 1024, 1024} }, |
| 7164 | .block_erase = spi_block_erase_5c, |
| 7165 | }, { |
| 7166 | .eraseblocks = { {32 * 1024, 1024} }, |
| 7167 | .block_erase = spi_block_erase_52, |
| 7168 | }, { |
| 7169 | .eraseblocks = { {64 * 1024, 512} }, |
| 7170 | .block_erase = spi_block_erase_dc, |
| 7171 | }, { |
| 7172 | .eraseblocks = { {64 * 1024, 512} }, |
| 7173 | .block_erase = spi_block_erase_d8, |
| 7174 | }, { |
| 7175 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 7176 | .block_erase = spi_block_erase_60, |
| 7177 | }, { |
| 7178 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 7179 | .block_erase = spi_block_erase_c7, |
| 7180 | } |
| 7181 | }, |
| 7182 | .unlock = spi_disable_blockprotect, |
| 7183 | .write = spi_chip_write_256, |
| 7184 | .read = spi_chip_read, |
| 7185 | .voltage = {1650, 1950}, |
| 7186 | }, |
| 7187 | |
| 7188 | { |
| 7189 | .vendor = "ISSI", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 7190 | .name = "IS29GL064B", |
| 7191 | .bustype = BUS_PARALLEL, |
| 7192 | .manufacture_id = ISSI_ID, |
| 7193 | .model_id = ISSI_PMC_IS29GL064B, |
| 7194 | .total_size = 8192, |
| 7195 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7196 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7197 | .tested = TEST_UNTESTED, |
| 7198 | .probe = probe_jedec_29gl, |
| 7199 | .probe_timing = TIMING_ZERO, |
| 7200 | .block_erasers = |
| 7201 | { |
| 7202 | { |
| 7203 | .eraseblocks = { |
| 7204 | {8 * 1024, 8}, |
| 7205 | {64 * 1024, 127}, |
| 7206 | }, |
| 7207 | .block_erase = erase_sector_jedec, |
| 7208 | }, { |
| 7209 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7210 | .block_erase = erase_chip_block_jedec, |
| 7211 | }, |
| 7212 | }, |
| 7213 | .write = write_jedec_1, |
| 7214 | .read = read_memmapped, |
| 7215 | .voltage = {2700, 3600}, |
| 7216 | }, |
| 7217 | |
| 7218 | { |
| 7219 | .vendor = "ISSI", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7220 | .name = "IS29GL064H/L", |
| 7221 | .bustype = BUS_PARALLEL, |
| 7222 | .manufacture_id = ISSI_ID, |
| 7223 | .model_id = ISSI_PMC_IS29GL064HL, |
| 7224 | .total_size = 8192, |
| 7225 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7226 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7227 | .tested = TEST_UNTESTED, |
| 7228 | .probe = probe_jedec_29gl, |
| 7229 | .probe_timing = TIMING_ZERO, |
| 7230 | .block_erasers = |
| 7231 | { |
| 7232 | { |
| 7233 | .eraseblocks = { {64 * 1024, 128} }, |
| 7234 | .block_erase = erase_sector_jedec, |
| 7235 | }, { |
| 7236 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7237 | .block_erase = erase_chip_block_jedec, |
| 7238 | }, |
| 7239 | }, |
| 7240 | .write = write_jedec_1, |
| 7241 | .read = read_memmapped, |
| 7242 | .voltage = {2700, 3600}, |
| 7243 | }, |
| 7244 | |
| 7245 | { |
| 7246 | .vendor = "ISSI", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 7247 | .name = "IS29GL064T", |
| 7248 | .bustype = BUS_PARALLEL, |
| 7249 | .manufacture_id = ISSI_ID, |
| 7250 | .model_id = ISSI_PMC_IS29GL064T, |
| 7251 | .total_size = 8192, |
| 7252 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7253 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7254 | .tested = TEST_UNTESTED, |
| 7255 | .probe = probe_jedec_29gl, |
| 7256 | .probe_timing = TIMING_ZERO, |
| 7257 | .block_erasers = |
| 7258 | { |
| 7259 | { |
| 7260 | .eraseblocks = { |
| 7261 | {64 * 1024, 127}, |
| 7262 | {8 * 1024, 8}, |
| 7263 | }, |
| 7264 | .block_erase = erase_sector_jedec, |
| 7265 | }, { |
| 7266 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7267 | .block_erase = erase_chip_block_jedec, |
| 7268 | }, |
| 7269 | }, |
| 7270 | .write = write_jedec_1, |
| 7271 | .read = read_memmapped, |
| 7272 | .voltage = {2700, 3600}, |
| 7273 | }, |
| 7274 | |
| 7275 | { |
| 7276 | .vendor = "ISSI", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 7277 | .name = "IS29GL128H/L", |
| 7278 | .bustype = BUS_PARALLEL, |
| 7279 | .manufacture_id = ISSI_ID, |
| 7280 | .model_id = ISSI_PMC_IS29GL128HL, |
| 7281 | .total_size = 16384, |
| 7282 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7283 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7284 | .tested = TEST_UNTESTED, |
| 7285 | .probe = probe_jedec_29gl, |
| 7286 | .probe_timing = TIMING_ZERO, |
| 7287 | .block_erasers = |
| 7288 | { |
| 7289 | { |
| 7290 | .eraseblocks = { {128 * 1024, 128} }, |
| 7291 | .block_erase = erase_sector_jedec, |
| 7292 | }, { |
| 7293 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7294 | .block_erase = erase_chip_block_jedec, |
| 7295 | }, |
| 7296 | }, |
| 7297 | .write = write_jedec_1, |
| 7298 | .read = read_memmapped, |
| 7299 | .voltage = {2700, 3600}, |
| 7300 | }, |
| 7301 | |
| 7302 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7303 | .vendor = "Intel", |
| 7304 | .name = "25F160S33B8", |
| 7305 | .bustype = BUS_SPI, |
| 7306 | .manufacture_id = INTEL_ID, |
| 7307 | .model_id = INTEL_25F160S33B8, |
| 7308 | .total_size = 2048, |
| 7309 | .page_size = 256, |
| 7310 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 7311 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7312 | .tested = TEST_UNTESTED, |
| 7313 | .probe = probe_spi_rdid, |
| 7314 | .probe_timing = TIMING_ZERO, |
| 7315 | .block_erasers = |
| 7316 | { |
| 7317 | { |
| 7318 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 7319 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 7320 | * have no effect on the memory contents, but sets a flag in the SR. |
| 7321 | .eraseblocks = { |
| 7322 | {8 * 1024, 8}, |
| 7323 | {64 * 1024, 31} // inaccessible |
| 7324 | }, |
| 7325 | .block_erase = spi_block_erase_40, |
| 7326 | }, { */ |
| 7327 | .eraseblocks = { {64 * 1024, 32} }, |
| 7328 | .block_erase = spi_block_erase_d8, |
| 7329 | }, { |
| 7330 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7331 | .block_erase = spi_block_erase_c7, |
| 7332 | } |
| 7333 | }, |
| 7334 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 7335 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 7336 | .write = spi_chip_write_256, |
| 7337 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 7338 | .voltage = {2700, 3600}, |
| 7339 | }, |
| 7340 | |
| 7341 | { |
| 7342 | .vendor = "Intel", |
| 7343 | .name = "25F160S33T8", |
| 7344 | .bustype = BUS_SPI, |
| 7345 | .manufacture_id = INTEL_ID, |
| 7346 | .model_id = INTEL_25F160S33T8, |
| 7347 | .total_size = 2048, |
| 7348 | .page_size = 256, |
| 7349 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 7350 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7351 | .tested = TEST_UNTESTED, |
| 7352 | .probe = probe_spi_rdid, |
| 7353 | .probe_timing = TIMING_ZERO, |
| 7354 | .block_erasers = |
| 7355 | { |
| 7356 | { |
| 7357 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 7358 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 7359 | * have no effect on the memory contents, but sets a flag in the SR. |
| 7360 | .eraseblocks = { |
| 7361 | {64 * 1024, 31}, // inaccessible |
| 7362 | {8 * 1024, 8} |
| 7363 | }, |
| 7364 | .block_erase = spi_block_erase_40, |
| 7365 | }, { */ |
| 7366 | .eraseblocks = { {64 * 1024, 32} }, |
| 7367 | .block_erase = spi_block_erase_d8, |
| 7368 | }, { |
| 7369 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7370 | .block_erase = spi_block_erase_c7, |
| 7371 | } |
| 7372 | }, |
| 7373 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 7374 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 7375 | .write = spi_chip_write_256, |
| 7376 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 7377 | .voltage = {2700, 3600}, |
| 7378 | }, |
| 7379 | |
| 7380 | { |
| 7381 | .vendor = "Intel", |
| 7382 | .name = "25F320S33B8", |
| 7383 | .bustype = BUS_SPI, |
| 7384 | .manufacture_id = INTEL_ID, |
| 7385 | .model_id = INTEL_25F320S33B8, |
| 7386 | .total_size = 4096, |
| 7387 | .page_size = 256, |
| 7388 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 7389 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7390 | .tested = TEST_UNTESTED, |
| 7391 | .probe = probe_spi_rdid, |
| 7392 | .probe_timing = TIMING_ZERO, |
| 7393 | .block_erasers = |
| 7394 | { |
| 7395 | { |
| 7396 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 7397 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 7398 | * have no effect on the memory contents, but sets a flag in the SR. |
| 7399 | .eraseblocks = { |
| 7400 | {8 * 1024, 8}, |
| 7401 | {64 * 1024, 63} // inaccessible |
| 7402 | }, |
| 7403 | .block_erase = spi_block_erase_40, |
| 7404 | }, { */ |
| 7405 | .eraseblocks = { {64 * 1024, 64} }, |
| 7406 | .block_erase = spi_block_erase_d8, |
| 7407 | }, { |
| 7408 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7409 | .block_erase = spi_block_erase_c7, |
| 7410 | } |
| 7411 | }, |
| 7412 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 7413 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 7414 | .write = spi_chip_write_256, |
| 7415 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 7416 | .voltage = {2700, 3600}, |
| 7417 | }, |
| 7418 | |
| 7419 | { |
| 7420 | .vendor = "Intel", |
| 7421 | .name = "25F320S33T8", |
| 7422 | .bustype = BUS_SPI, |
| 7423 | .manufacture_id = INTEL_ID, |
| 7424 | .model_id = INTEL_25F320S33T8, |
| 7425 | .total_size = 4096, |
| 7426 | .page_size = 256, |
| 7427 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 7428 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7429 | .tested = TEST_UNTESTED, |
| 7430 | .probe = probe_spi_rdid, |
| 7431 | .probe_timing = TIMING_ZERO, |
| 7432 | .block_erasers = |
| 7433 | { |
| 7434 | { |
| 7435 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 7436 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 7437 | * have no effect on the memory contents, but sets a flag in the SR. |
| 7438 | .eraseblocks = { |
| 7439 | {64 * 1024, 63}, // inaccessible |
| 7440 | {8 * 1024, 8} |
| 7441 | }, |
| 7442 | .block_erase = spi_block_erase_40, |
| 7443 | }, { */ |
| 7444 | .eraseblocks = { {64 * 1024, 64} }, |
| 7445 | .block_erase = spi_block_erase_d8, |
| 7446 | }, { |
| 7447 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7448 | .block_erase = spi_block_erase_c7, |
| 7449 | } |
| 7450 | }, |
| 7451 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 7452 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 7453 | .write = spi_chip_write_256, |
| 7454 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 7455 | .voltage = {2700, 3600}, |
| 7456 | }, |
| 7457 | |
| 7458 | { |
| 7459 | .vendor = "Intel", |
| 7460 | .name = "25F640S33B8", |
| 7461 | .bustype = BUS_SPI, |
| 7462 | .manufacture_id = INTEL_ID, |
| 7463 | .model_id = INTEL_25F640S33B8, |
| 7464 | .total_size = 8192, |
| 7465 | .page_size = 256, |
| 7466 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 7467 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7468 | .tested = TEST_UNTESTED, |
| 7469 | .probe = probe_spi_rdid, |
| 7470 | .probe_timing = TIMING_ZERO, |
| 7471 | .block_erasers = |
| 7472 | { |
| 7473 | { |
| 7474 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 7475 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 7476 | * have no effect on the memory contents, but sets a flag in the SR. |
| 7477 | .eraseblocks = { |
| 7478 | {8 * 1024, 8}, |
| 7479 | {64 * 1024, 127} // inaccessible |
| 7480 | }, |
| 7481 | .block_erase = spi_block_erase_40, |
| 7482 | }, { */ |
| 7483 | .eraseblocks = { {64 * 1024, 128} }, |
| 7484 | .block_erase = spi_block_erase_d8, |
| 7485 | }, { |
| 7486 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7487 | .block_erase = spi_block_erase_c7, |
| 7488 | } |
| 7489 | }, |
| 7490 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 7491 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 7492 | .write = spi_chip_write_256, |
| 7493 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 7494 | .voltage = {2700, 3600}, |
| 7495 | }, |
| 7496 | |
| 7497 | { |
| 7498 | .vendor = "Intel", |
| 7499 | .name = "25F640S33T8", |
| 7500 | .bustype = BUS_SPI, |
| 7501 | .manufacture_id = INTEL_ID, |
| 7502 | .model_id = INTEL_25F640S33T8, |
| 7503 | .total_size = 8192, |
| 7504 | .page_size = 256, |
| 7505 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 7506 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7507 | .tested = TEST_UNTESTED, |
| 7508 | .probe = probe_spi_rdid, |
| 7509 | .probe_timing = TIMING_ZERO, |
| 7510 | .block_erasers = |
| 7511 | { |
| 7512 | { |
| 7513 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 7514 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 7515 | * have no effect on the memory contents, but sets a flag in the SR. |
| 7516 | .eraseblocks = { |
| 7517 | {64 * 1024, 127}, // inaccessible |
| 7518 | {8 * 1024, 8} |
| 7519 | }, |
| 7520 | .block_erase = spi_block_erase_40, |
| 7521 | }, { */ |
| 7522 | .eraseblocks = { {64 * 1024, 128} }, |
| 7523 | .block_erase = spi_block_erase_d8, |
| 7524 | }, { |
| 7525 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7526 | .block_erase = spi_block_erase_c7, |
| 7527 | } |
| 7528 | }, |
| 7529 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 7530 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 7531 | .write = spi_chip_write_256, |
| 7532 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 7533 | .voltage = {2700, 3600}, |
| 7534 | }, |
| 7535 | |
| 7536 | { |
| 7537 | .vendor = "Intel", |
| 7538 | .name = "28F001BN/BX-B", |
| 7539 | .bustype = BUS_PARALLEL, |
| 7540 | .manufacture_id = INTEL_ID, |
| 7541 | .model_id = INTEL_28F001B, |
| 7542 | .total_size = 128, |
| 7543 | .page_size = 128 * 1024, /* 8k + 2x4k + 112k */ |
| 7544 | .tested = TEST_UNTESTED, |
| 7545 | .probe = probe_jedec, |
| 7546 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7547 | .block_erasers = |
| 7548 | { |
| 7549 | { |
| 7550 | .eraseblocks = { |
| 7551 | {8 * 1024, 1}, |
| 7552 | {4 * 1024, 2}, |
| 7553 | {112 * 1024, 1}, |
| 7554 | }, |
| 7555 | .block_erase = erase_block_82802ab, |
| 7556 | }, |
| 7557 | }, |
| 7558 | .write = write_82802ab, |
| 7559 | .read = read_memmapped, |
| 7560 | .voltage = {4500, 5500}, |
| 7561 | }, |
| 7562 | |
| 7563 | { |
| 7564 | .vendor = "Intel", |
| 7565 | .name = "28F001BN/BX-T", |
| 7566 | .bustype = BUS_PARALLEL, |
| 7567 | .manufacture_id = INTEL_ID, |
| 7568 | .model_id = INTEL_28F001T, |
| 7569 | .total_size = 128, |
| 7570 | .page_size = 128 * 1024, /* 112k + 2x4k + 8k */ |
| 7571 | .tested = TEST_OK_PREW, |
| 7572 | .probe = probe_jedec, |
| 7573 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7574 | .block_erasers = |
| 7575 | { |
| 7576 | { |
| 7577 | .eraseblocks = { |
| 7578 | {112 * 1024, 1}, |
| 7579 | {4 * 1024, 2}, |
| 7580 | {8 * 1024, 1}, |
| 7581 | }, |
| 7582 | .block_erase = erase_block_82802ab, |
| 7583 | }, |
| 7584 | }, |
| 7585 | .write = write_82802ab, |
| 7586 | .read = read_memmapped, |
| 7587 | .voltage = {4500, 5500}, |
| 7588 | }, |
| 7589 | |
| 7590 | { |
| 7591 | .vendor = "Intel", |
| 7592 | .name = "28F002BC/BL/BV/BX-T", |
| 7593 | .bustype = BUS_PARALLEL, |
| 7594 | .manufacture_id = INTEL_ID, |
| 7595 | .model_id = INTEL_28F002T, |
| 7596 | .total_size = 256, |
| 7597 | .page_size = 256 * 1024, |
| 7598 | .tested = TEST_OK_PRE, |
| 7599 | .probe = probe_82802ab, |
| 7600 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7601 | .block_erasers = |
| 7602 | { |
| 7603 | { |
| 7604 | .eraseblocks = { |
| 7605 | {128 * 1024, 1}, |
| 7606 | {96 * 1024, 1}, |
| 7607 | {8 * 1024, 2}, |
| 7608 | {16 * 1024, 1}, |
| 7609 | }, |
| 7610 | .block_erase = erase_block_82802ab, |
| 7611 | }, |
| 7612 | }, |
| 7613 | .write = write_82802ab, |
| 7614 | .read = read_memmapped, |
| 7615 | }, |
| 7616 | |
| 7617 | { |
| 7618 | .vendor = "Intel", |
| 7619 | .name = "28F004B5/BE/BV/BX-B", |
| 7620 | .bustype = BUS_PARALLEL, |
| 7621 | .manufacture_id = INTEL_ID, |
| 7622 | .model_id = INTEL_28F004B, |
| 7623 | .total_size = 512, |
| 7624 | .page_size = 128 * 1024, /* maximal block size */ |
| 7625 | .tested = TEST_UNTESTED, |
| 7626 | .probe = probe_82802ab, |
| 7627 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7628 | .block_erasers = |
| 7629 | { |
| 7630 | { |
| 7631 | .eraseblocks = { |
| 7632 | {16 * 1024, 1}, |
| 7633 | {8 * 1024, 2}, |
| 7634 | {96 * 1024, 1}, |
| 7635 | {128 * 1024, 3}, |
| 7636 | }, |
| 7637 | .block_erase = erase_block_82802ab, |
| 7638 | }, |
| 7639 | }, |
| 7640 | .write = write_82802ab, |
| 7641 | .read = read_memmapped, |
| 7642 | }, |
| 7643 | |
| 7644 | { |
| 7645 | .vendor = "Intel", |
| 7646 | .name = "28F004B5/BE/BV/BX-T", |
| 7647 | .bustype = BUS_PARALLEL, |
| 7648 | .manufacture_id = INTEL_ID, |
| 7649 | .model_id = INTEL_28F004T, |
| 7650 | .total_size = 512, |
| 7651 | .page_size = 128 * 1024, /* maximal block size */ |
| 7652 | .tested = TEST_UNTESTED, |
| 7653 | .probe = probe_82802ab, |
| 7654 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7655 | .block_erasers = |
| 7656 | { |
| 7657 | { |
| 7658 | .eraseblocks = { |
| 7659 | {128 * 1024, 3}, |
| 7660 | {96 * 1024, 1}, |
| 7661 | {8 * 1024, 2}, |
| 7662 | {16 * 1024, 1}, |
| 7663 | }, |
| 7664 | .block_erase = erase_block_82802ab, |
| 7665 | }, |
| 7666 | }, |
| 7667 | .write = write_82802ab, |
| 7668 | .read = read_memmapped, |
| 7669 | }, |
| 7670 | |
| 7671 | { |
| 7672 | .vendor = "Intel", |
| 7673 | .name = "28F008S3/S5/SC", |
| 7674 | .bustype = BUS_PARALLEL, |
| 7675 | .manufacture_id = INTEL_ID, |
| 7676 | .model_id = INTEL_28F004S3, |
| 7677 | .total_size = 512, |
| 7678 | .page_size = 256, |
| 7679 | .tested = TEST_UNTESTED, |
| 7680 | .probe = probe_82802ab, |
| 7681 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7682 | .block_erasers = |
| 7683 | { |
| 7684 | { |
| 7685 | .eraseblocks = { {64 * 1024, 8} }, |
| 7686 | .block_erase = erase_block_82802ab, |
| 7687 | }, |
| 7688 | }, |
| 7689 | .unlock = unlock_28f004s5, |
| 7690 | .write = write_82802ab, |
| 7691 | .read = read_memmapped, |
| 7692 | }, |
| 7693 | |
| 7694 | { |
| 7695 | .vendor = "Intel", |
| 7696 | .name = "28F400BV/BX/CE/CV-B", |
| 7697 | .bustype = BUS_PARALLEL, |
| 7698 | .manufacture_id = INTEL_ID, |
| 7699 | .model_id = INTEL_28F400B, |
| 7700 | .total_size = 512, |
| 7701 | .page_size = 128 * 1024, /* maximal block size */ |
| 7702 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 7703 | .tested = TEST_UNTESTED, |
| 7704 | .probe = probe_82802ab, |
| 7705 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7706 | .block_erasers = |
| 7707 | { |
| 7708 | { |
| 7709 | .eraseblocks = { |
| 7710 | {16 * 1024, 1}, |
| 7711 | {8 * 1024, 2}, |
| 7712 | {96 * 1024, 1}, |
| 7713 | {128 * 1024, 3}, |
| 7714 | }, |
| 7715 | .block_erase = erase_block_82802ab, |
| 7716 | }, |
| 7717 | }, |
| 7718 | .write = write_82802ab, |
| 7719 | .read = read_memmapped, |
| 7720 | }, |
| 7721 | |
| 7722 | { |
| 7723 | .vendor = "Intel", |
| 7724 | .name = "28F400BV/BX/CE/CV-T", |
| 7725 | .bustype = BUS_PARALLEL, |
| 7726 | .manufacture_id = INTEL_ID, |
| 7727 | .model_id = INTEL_28F400T, |
| 7728 | .total_size = 512, |
| 7729 | .page_size = 128 * 1024, /* maximal block size */ |
| 7730 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 7731 | .tested = TEST_UNTESTED, |
| 7732 | .probe = probe_82802ab, |
| 7733 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7734 | .block_erasers = |
| 7735 | { |
| 7736 | { |
| 7737 | .eraseblocks = { |
| 7738 | {128 * 1024, 3}, |
| 7739 | {96 * 1024, 1}, |
| 7740 | {8 * 1024, 2}, |
| 7741 | {16 * 1024, 1}, |
| 7742 | }, |
| 7743 | .block_erase = erase_block_82802ab, |
| 7744 | }, |
| 7745 | }, |
| 7746 | .write = write_82802ab, |
| 7747 | .read = read_memmapped, |
| 7748 | }, |
| 7749 | |
| 7750 | { |
| 7751 | .vendor = "Intel", |
| 7752 | .name = "82802AB", |
| 7753 | .bustype = BUS_FWH, |
| 7754 | .manufacture_id = INTEL_ID, |
| 7755 | .model_id = INTEL_82802AB, |
| 7756 | .total_size = 512, |
| 7757 | .page_size = 64 * 1024, |
| 7758 | .feature_bits = FEATURE_REGISTERMAP, |
Alan Green | 8855257 | 2019-07-24 13:56:06 +1000 | [diff] [blame] | 7759 | .tested = TEST_OK_PREW, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7760 | .probe = probe_82802ab, |
| 7761 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
| 7762 | .block_erasers = |
| 7763 | { |
| 7764 | { |
| 7765 | .eraseblocks = { {64 * 1024, 8} }, |
| 7766 | .block_erase = erase_block_82802ab, |
| 7767 | }, |
| 7768 | }, |
| 7769 | .unlock = unlock_regspace2_uniform_64k, |
| 7770 | .write = write_82802ab, |
| 7771 | .read = read_memmapped, |
| 7772 | .voltage = {3000, 3600}, |
| 7773 | }, |
| 7774 | |
| 7775 | { |
| 7776 | .vendor = "Intel", |
| 7777 | .name = "82802AC", |
| 7778 | .bustype = BUS_FWH, |
| 7779 | .manufacture_id = INTEL_ID, |
| 7780 | .model_id = INTEL_82802AC, |
| 7781 | .total_size = 1024, |
| 7782 | .page_size = 64 * 1024, |
| 7783 | .feature_bits = FEATURE_REGISTERMAP, |
| 7784 | .tested = TEST_OK_PR, |
| 7785 | .probe = probe_82802ab, |
| 7786 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
| 7787 | .block_erasers = |
| 7788 | { |
| 7789 | { |
| 7790 | .eraseblocks = { {64 * 1024, 16} }, |
| 7791 | .block_erase = erase_block_82802ab, |
| 7792 | }, |
| 7793 | }, |
| 7794 | .unlock = unlock_regspace2_uniform_64k, |
| 7795 | .write = write_82802ab, |
| 7796 | .read = read_memmapped, |
| 7797 | .voltage = {3000, 3600}, |
| 7798 | }, |
| 7799 | |
| 7800 | { |
| 7801 | .vendor = "Macronix", |
| 7802 | .name = "MX23L12854", |
| 7803 | .bustype = BUS_SPI, |
| 7804 | .manufacture_id = MACRONIX_ID, |
| 7805 | .model_id = MACRONIX_MX23L12854, |
| 7806 | .total_size = 16384, |
| 7807 | .page_size = 256, |
| 7808 | .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA}, |
| 7809 | .probe = probe_spi_rdid, |
| 7810 | .probe_timing = TIMING_ZERO, |
| 7811 | .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */ |
| 7812 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7813 | .voltage = {3000, 3600}, |
| 7814 | }, |
| 7815 | |
| 7816 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7817 | .vendor = "Macronix", |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 7818 | .name = "MX23L1654", |
| 7819 | .bustype = BUS_SPI, |
| 7820 | .manufacture_id = MACRONIX_ID, |
| 7821 | .model_id = MACRONIX_MX23L1654, |
| 7822 | .total_size = 2048, |
| 7823 | .page_size = 256, |
| 7824 | .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA}, |
| 7825 | .probe = probe_spi_rdid, |
| 7826 | .probe_timing = TIMING_ZERO, |
| 7827 | .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */ |
| 7828 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7829 | .voltage = {3000, 3600}, |
| 7830 | }, |
| 7831 | |
| 7832 | { |
| 7833 | .vendor = "Macronix", |
Michael Coppola | 4e7f36e | 2014-05-03 23:01:18 +0000 | [diff] [blame] | 7834 | .name = "MX23L3254", |
| 7835 | .bustype = BUS_SPI, |
| 7836 | .manufacture_id = MACRONIX_ID, |
| 7837 | .model_id = MACRONIX_MX23L3254, |
| 7838 | .total_size = 4096, |
| 7839 | .page_size = 256, |
Stefan Tauner | 6455dff | 2014-05-26 00:36:24 +0000 | [diff] [blame] | 7840 | .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA}, |
Michael Coppola | 4e7f36e | 2014-05-03 23:01:18 +0000 | [diff] [blame] | 7841 | .probe = probe_spi_rdid, |
| 7842 | .probe_timing = TIMING_ZERO, |
| 7843 | .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */ |
| 7844 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7845 | .voltage = {3000, 3600}, |
| 7846 | }, |
| 7847 | |
| 7848 | { |
| 7849 | .vendor = "Macronix", |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 7850 | .name = "MX23L6454", |
| 7851 | .bustype = BUS_SPI, |
| 7852 | .manufacture_id = MACRONIX_ID, |
| 7853 | .model_id = MACRONIX_MX23L6454, |
| 7854 | .total_size = 8192, |
| 7855 | .page_size = 256, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 7856 | .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA}, |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 7857 | .probe = probe_spi_rdid, |
| 7858 | .probe_timing = TIMING_ZERO, |
| 7859 | .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */ |
| 7860 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7861 | .voltage = {3000, 3600}, |
| 7862 | }, |
| 7863 | |
| 7864 | { |
| 7865 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7866 | .name = "MX25L1005(C)/MX25L1006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7867 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7868 | .manufacture_id = MACRONIX_ID, |
| 7869 | .model_id = MACRONIX_MX25L1005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7870 | .total_size = 128, |
| 7871 | .page_size = 256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7872 | /* MX25L1006E supports SFDP */ |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 7873 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 7874 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7875 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7876 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7877 | .block_erasers = |
| 7878 | { |
| 7879 | { |
| 7880 | .eraseblocks = { {4 * 1024, 32} }, |
| 7881 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7882 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7883 | .eraseblocks = { {64 * 1024, 2} }, |
| 7884 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7885 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7886 | .eraseblocks = { {128 * 1024, 1} }, |
| 7887 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7888 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7889 | .eraseblocks = { {128 * 1024, 1} }, |
| 7890 | .block_erase = spi_block_erase_c7, |
| 7891 | }, |
| 7892 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7893 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7894 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7895 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7896 | .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7897 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7898 | }, |
| 7899 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7900 | { |
| 7901 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7902 | .name = "MX25L12805D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7903 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7904 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7905 | .model_id = MACRONIX_MX25L12805D, |
| 7906 | .total_size = 16384, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7907 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7908 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 7909 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7910 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7911 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7912 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7913 | .block_erasers = |
| 7914 | { |
| 7915 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7916 | .eraseblocks = { {4 * 1024, 4096} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7917 | .block_erase = spi_block_erase_20, |
| 7918 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7919 | .eraseblocks = { {64 * 1024, 256} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7920 | .block_erase = spi_block_erase_d8, |
| 7921 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7922 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7923 | .block_erase = spi_block_erase_60, |
| 7924 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7925 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7926 | .block_erase = spi_block_erase_c7, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7927 | } |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7928 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7929 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 7930 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7931 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7932 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7933 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7934 | }, |
| 7935 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7936 | { |
| 7937 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7938 | .name = "MX25L12835F/MX25L12845E/MX25L12865E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7939 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7940 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7941 | .model_id = MACRONIX_MX25L12805D, |
| 7942 | .total_size = 16384, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7943 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7944 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 7945 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 7946 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7947 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7948 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7949 | .block_erasers = |
| 7950 | { |
| 7951 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7952 | .eraseblocks = { {4 * 1024, 4096} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7953 | .block_erase = spi_block_erase_20, |
| 7954 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7955 | .eraseblocks = { {32 * 1024, 512} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7956 | .block_erase = spi_block_erase_52, |
| 7957 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7958 | .eraseblocks = { {64 * 1024, 256} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7959 | .block_erase = spi_block_erase_d8, |
| 7960 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7961 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7962 | .block_erase = spi_block_erase_60, |
| 7963 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7964 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7965 | .block_erase = spi_block_erase_c7, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7966 | } |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7967 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7968 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
| 7969 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 7970 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7971 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7972 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7973 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7974 | }, |
| 7975 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7976 | { |
| 7977 | .vendor = "Macronix", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7978 | .name = "MX25L1605", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7979 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7980 | .manufacture_id = MACRONIX_ID, |
| 7981 | .model_id = MACRONIX_MX25L1605, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7982 | .total_size = 2048, |
| 7983 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 7984 | .feature_bits = FEATURE_WRSR_WREN, |
Sven Schnelle | 4bd8a40 | 2011-03-07 10:59:06 +0000 | [diff] [blame] | 7985 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7986 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7987 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7988 | .block_erasers = |
| 7989 | { |
| 7990 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7991 | .eraseblocks = { {64 * 1024, 32} }, |
| 7992 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7993 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7994 | .eraseblocks = { {64 * 1024, 32} }, |
| 7995 | .block_erase = spi_block_erase_d8, |
| 7996 | }, { |
| 7997 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7998 | .block_erase = spi_block_erase_60, |
| 7999 | }, { |
| 8000 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8001 | .block_erase = spi_block_erase_c7, |
| 8002 | }, |
| 8003 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8004 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8005 | .unlock = spi_disable_blockprotect, |
| 8006 | .write = spi_chip_write_256, |
| 8007 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8008 | .voltage = {2700, 3600}, |
| 8009 | }, |
| 8010 | |
| 8011 | { |
| 8012 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8013 | .name = "MX25L1605A/MX25L1606E/MX25L1608E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8014 | .bustype = BUS_SPI, |
| 8015 | .manufacture_id = MACRONIX_ID, |
| 8016 | .model_id = MACRONIX_MX25L1605, |
| 8017 | .total_size = 2048, |
| 8018 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8019 | /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8020 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8021 | .tested = TEST_OK_PREW, |
| 8022 | .probe = probe_spi_rdid, |
| 8023 | .probe_timing = TIMING_ZERO, |
| 8024 | .block_erasers = |
| 8025 | { |
| 8026 | { |
| 8027 | .eraseblocks = { {4 * 1024, 512} }, |
| 8028 | .block_erase = spi_block_erase_20, |
| 8029 | }, { |
| 8030 | .eraseblocks = { {64 * 1024, 32} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8031 | .block_erase = spi_block_erase_52, |
| 8032 | }, { |
| 8033 | .eraseblocks = { {64 * 1024, 32} }, |
| 8034 | .block_erase = spi_block_erase_d8, |
| 8035 | }, { |
| 8036 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8037 | .block_erase = spi_block_erase_60, |
| 8038 | }, { |
| 8039 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8040 | .block_erase = spi_block_erase_c7, |
| 8041 | }, |
| 8042 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8043 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8044 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8045 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8046 | .read = spi_chip_read, /* Fast read (0x0B) supported (MX25L1608E supports dual-I/O read) */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8047 | .voltage = {2700, 3600}, |
| 8048 | }, |
| 8049 | |
| 8050 | { |
| 8051 | .vendor = "Macronix", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8052 | .name = "MX25L1605D/MX25L1608D/MX25L1673E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8053 | .bustype = BUS_SPI, |
| 8054 | .manufacture_id = MACRONIX_ID, |
| 8055 | .model_id = MACRONIX_MX25L1605, |
| 8056 | .total_size = 2048, |
| 8057 | .page_size = 256, |
| 8058 | .feature_bits = FEATURE_WRSR_WREN, |
| 8059 | .tested = TEST_OK_PREW, |
| 8060 | .probe = probe_spi_rdid, |
| 8061 | .probe_timing = TIMING_ZERO, |
| 8062 | .block_erasers = |
| 8063 | { |
| 8064 | { |
| 8065 | .eraseblocks = { {4 * 1024, 512} }, |
| 8066 | .block_erase = spi_block_erase_20, |
| 8067 | }, { |
| 8068 | .eraseblocks = { {64 * 1024, 32} }, |
| 8069 | .block_erase = spi_block_erase_d8, |
| 8070 | }, { |
| 8071 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8072 | .block_erase = spi_block_erase_60, |
| 8073 | }, { |
| 8074 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8075 | .block_erase = spi_block_erase_c7, |
| 8076 | }, |
| 8077 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8078 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode, for 73E is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8079 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8080 | .write = spi_chip_write_256, |
| 8081 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8082 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8083 | }, |
| 8084 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8085 | { |
| 8086 | .vendor = "Macronix", |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8087 | .name = "MX25L1635D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8088 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8089 | .manufacture_id = MACRONIX_ID, |
| 8090 | .model_id = MACRONIX_MX25L1635D, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8091 | .total_size = 2048, |
| 8092 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8093 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8094 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8095 | .tested = TEST_UNTESTED, |
| 8096 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8097 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8098 | .block_erasers = |
| 8099 | { |
| 8100 | { |
| 8101 | .eraseblocks = { {4 * 1024, 512} }, |
| 8102 | .block_erase = spi_block_erase_20, |
| 8103 | }, { |
| 8104 | .eraseblocks = { {64 * 1024, 32} }, |
| 8105 | .block_erase = spi_block_erase_d8, |
| 8106 | }, { |
| 8107 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8108 | .block_erase = spi_block_erase_60, |
| 8109 | }, { |
| 8110 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8111 | .block_erase = spi_block_erase_c7, |
| 8112 | } |
| 8113 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8114 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8115 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8116 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8117 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8118 | .voltage = {2700, 3600}, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8119 | }, |
Stephan Guilloux | fd31550 | 2009-04-20 22:54:13 +0000 | [diff] [blame] | 8120 | |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8121 | { |
| 8122 | .vendor = "Macronix", |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8123 | .name = "MX25L1635E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8124 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8125 | .manufacture_id = MACRONIX_ID, |
| 8126 | .model_id = MACRONIX_MX25L1635E, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8127 | .total_size = 2048, |
| 8128 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8129 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8130 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8131 | .tested = TEST_UNTESTED, |
| 8132 | .probe = probe_spi_rdid, |
| 8133 | .probe_timing = TIMING_ZERO, |
| 8134 | .block_erasers = |
| 8135 | { |
| 8136 | { |
| 8137 | .eraseblocks = { {4 * 1024, 512} }, |
| 8138 | .block_erase = spi_block_erase_20, |
| 8139 | }, { |
| 8140 | .eraseblocks = { {64 * 1024, 32} }, |
| 8141 | .block_erase = spi_block_erase_d8, |
| 8142 | }, { |
| 8143 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8144 | .block_erase = spi_block_erase_60, |
| 8145 | }, { |
| 8146 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8147 | .block_erase = spi_block_erase_c7, |
| 8148 | } |
| 8149 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8150 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8151 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8152 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8153 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 8154 | .voltage = {2700, 3600}, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8155 | }, |
| 8156 | |
| 8157 | { |
| 8158 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8159 | .name = "MX25L2005(C)/MX25L2006E", |
| 8160 | .bustype = BUS_SPI, |
| 8161 | .manufacture_id = MACRONIX_ID, |
| 8162 | .model_id = MACRONIX_MX25L2005, |
| 8163 | .total_size = 256, |
| 8164 | .page_size = 256, |
| 8165 | .feature_bits = FEATURE_WRSR_WREN, |
| 8166 | .tested = TEST_OK_PREW, |
| 8167 | .probe = probe_spi_rdid, |
| 8168 | .probe_timing = TIMING_ZERO, |
| 8169 | .block_erasers = |
| 8170 | { |
| 8171 | { |
| 8172 | .eraseblocks = { {4 * 1024, 64} }, |
| 8173 | .block_erase = spi_block_erase_20, |
| 8174 | }, { |
| 8175 | .eraseblocks = { {64 * 1024, 4} }, |
| 8176 | .block_erase = spi_block_erase_52, |
| 8177 | }, { |
| 8178 | .eraseblocks = { {64 * 1024, 4} }, |
| 8179 | .block_erase = spi_block_erase_d8, |
| 8180 | }, { |
| 8181 | .eraseblocks = { {256 * 1024, 1} }, |
| 8182 | .block_erase = spi_block_erase_60, |
| 8183 | }, { |
| 8184 | .eraseblocks = { {256 * 1024, 1} }, |
| 8185 | .block_erase = spi_block_erase_c7, |
| 8186 | }, |
| 8187 | }, |
| 8188 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 8189 | .unlock = spi_disable_blockprotect, |
| 8190 | .write = spi_chip_write_256, |
| 8191 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8192 | .voltage = {2700, 3600}, |
| 8193 | }, |
| 8194 | |
| 8195 | { |
| 8196 | .vendor = "Macronix", |
Alan Green | 0370730 | 2019-08-26 12:50:43 +1000 | [diff] [blame] | 8197 | .name = "MX25L25635F/MX25L25645G", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8198 | .bustype = BUS_SPI, |
| 8199 | .manufacture_id = MACRONIX_ID, |
| 8200 | .model_id = MACRONIX_MX25L25635F, |
| 8201 | .total_size = 32768, |
| 8202 | .page_size = 256, |
| 8203 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8204 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
| 8205 | .tested = TEST_OK_PREW, |
| 8206 | .probe = probe_spi_rdid, |
| 8207 | .probe_timing = TIMING_ZERO, |
| 8208 | .block_erasers = |
| 8209 | { |
| 8210 | { |
| 8211 | .eraseblocks = { {4 * 1024, 8192} }, |
| 8212 | .block_erase = spi_block_erase_21, |
| 8213 | }, { |
| 8214 | .eraseblocks = { {4 * 1024, 8192} }, |
| 8215 | .block_erase = spi_block_erase_20, |
| 8216 | }, { |
| 8217 | .eraseblocks = { {32 * 1024, 1024} }, |
| 8218 | .block_erase = spi_block_erase_5c, |
| 8219 | }, { |
| 8220 | .eraseblocks = { {32 * 1024, 1024} }, |
| 8221 | .block_erase = spi_block_erase_52, |
| 8222 | }, { |
| 8223 | .eraseblocks = { {64 * 1024, 512} }, |
| 8224 | .block_erase = spi_block_erase_dc, |
| 8225 | }, { |
| 8226 | .eraseblocks = { {64 * 1024, 512} }, |
| 8227 | .block_erase = spi_block_erase_d8, |
| 8228 | }, { |
| 8229 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 8230 | .block_erase = spi_block_erase_60, |
| 8231 | }, { |
| 8232 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 8233 | .block_erase = spi_block_erase_c7, |
| 8234 | } |
| 8235 | }, |
| 8236 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
| 8237 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8238 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8239 | .write = spi_chip_write_256, |
| 8240 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8241 | .voltage = {2700, 3600}, |
| 8242 | }, |
| 8243 | |
| 8244 | { |
| 8245 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8246 | .name = "MX25L3205(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8247 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8248 | .manufacture_id = MACRONIX_ID, |
| 8249 | .model_id = MACRONIX_MX25L3205, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8250 | .total_size = 4096, |
| 8251 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 8252 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 8253 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8254 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8255 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8256 | .block_erasers = |
| 8257 | { |
| 8258 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8259 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8260 | .block_erase = spi_block_erase_20, |
| 8261 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8262 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8263 | .block_erase = spi_block_erase_d8, |
| 8264 | }, { |
| 8265 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8266 | .block_erase = spi_block_erase_60, |
| 8267 | }, { |
| 8268 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8269 | .block_erase = spi_block_erase_c7, |
| 8270 | }, |
| 8271 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8272 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8273 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8274 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8275 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8276 | .voltage = {2700, 3600}, |
| 8277 | }, |
| 8278 | |
| 8279 | { |
| 8280 | .vendor = "Macronix", |
| 8281 | .name = "MX25L3205D/MX25L3208D", |
| 8282 | .bustype = BUS_SPI, |
| 8283 | .manufacture_id = MACRONIX_ID, |
| 8284 | .model_id = MACRONIX_MX25L3205, |
| 8285 | .total_size = 4096, |
| 8286 | .page_size = 256, |
| 8287 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8288 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8289 | .tested = TEST_OK_PREW, |
| 8290 | .probe = probe_spi_rdid, |
| 8291 | .probe_timing = TIMING_ZERO, |
| 8292 | .block_erasers = |
| 8293 | { |
| 8294 | { |
| 8295 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8296 | .block_erase = spi_block_erase_20, |
| 8297 | }, { |
| 8298 | .eraseblocks = { {64 * 1024, 64} }, |
| 8299 | .block_erase = spi_block_erase_d8, |
| 8300 | }, { |
| 8301 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8302 | .block_erase = spi_block_erase_60, |
| 8303 | }, { |
| 8304 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8305 | .block_erase = spi_block_erase_c7, |
| 8306 | }, |
| 8307 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8308 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8309 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8310 | .write = spi_chip_write_256, |
| 8311 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
| 8312 | .voltage = {2700, 3600}, |
| 8313 | }, |
| 8314 | |
| 8315 | { |
| 8316 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8317 | .name = "MX25L3206E/MX25L3208E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8318 | .bustype = BUS_SPI, |
| 8319 | .manufacture_id = MACRONIX_ID, |
| 8320 | .model_id = MACRONIX_MX25L3205, |
| 8321 | .total_size = 4096, |
| 8322 | .page_size = 256, |
| 8323 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8324 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8325 | .tested = TEST_OK_PREW, |
| 8326 | .probe = probe_spi_rdid, |
| 8327 | .probe_timing = TIMING_ZERO, |
| 8328 | .block_erasers = |
| 8329 | { |
| 8330 | { |
| 8331 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8332 | .block_erase = spi_block_erase_20, |
| 8333 | }, { |
| 8334 | .eraseblocks = { {64 * 1024, 64} }, |
| 8335 | .block_erase = spi_block_erase_d8, |
| 8336 | }, { |
| 8337 | .eraseblocks = { {64 * 1024, 64} }, |
| 8338 | .block_erase = spi_block_erase_52, |
| 8339 | }, { |
| 8340 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8341 | .block_erase = spi_block_erase_60, |
| 8342 | }, { |
| 8343 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8344 | .block_erase = spi_block_erase_c7, |
| 8345 | }, |
| 8346 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8347 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8348 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8349 | .write = spi_chip_write_256, |
| 8350 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8351 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8352 | }, |
| 8353 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8354 | { |
| 8355 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8356 | .name = "MX25L3235D", |
| 8357 | .bustype = BUS_SPI, |
| 8358 | .manufacture_id = MACRONIX_ID, |
| 8359 | .model_id = MACRONIX_MX25L3235D, |
| 8360 | .total_size = 4096, |
| 8361 | .page_size = 256, |
| 8362 | /* OTP: 256B total; enter 0xB1, exit 0xC1 */ |
| 8363 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8364 | .tested = TEST_UNTESTED, |
| 8365 | .probe = probe_spi_rdid, |
| 8366 | .probe_timing = TIMING_ZERO, |
| 8367 | .block_erasers = |
| 8368 | { |
| 8369 | { |
| 8370 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8371 | .block_erase = spi_block_erase_20, |
| 8372 | }, { |
| 8373 | .eraseblocks = { {64 * 1024, 64} }, |
| 8374 | .block_erase = spi_block_erase_d8, |
| 8375 | }, { |
| 8376 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8377 | .block_erase = spi_block_erase_60, |
| 8378 | }, { |
| 8379 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8380 | .block_erase = spi_block_erase_c7, |
| 8381 | } |
| 8382 | }, |
| 8383 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8384 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8385 | .write = spi_chip_write_256, |
| 8386 | .read = spi_chip_read, |
| 8387 | .voltage = {2700, 3600}, |
| 8388 | }, |
| 8389 | |
| 8390 | { |
| 8391 | .vendor = "Macronix", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8392 | .name = "MX25L3273E", |
| 8393 | .bustype = BUS_SPI, |
| 8394 | .manufacture_id = MACRONIX_ID, |
| 8395 | .model_id = MACRONIX_MX25L3205, |
| 8396 | .total_size = 4096, |
| 8397 | .page_size = 256, |
| 8398 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8399 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 8400 | .tested = TEST_OK_PREW, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8401 | .probe = probe_spi_rdid, |
| 8402 | .probe_timing = TIMING_ZERO, |
| 8403 | .block_erasers = |
| 8404 | { |
| 8405 | { |
| 8406 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8407 | .block_erase = spi_block_erase_20, |
| 8408 | }, { |
| 8409 | .eraseblocks = { {32 * 1024, 128} }, |
| 8410 | .block_erase = spi_block_erase_52, |
| 8411 | }, { |
| 8412 | .eraseblocks = { {64 * 1024, 64} }, |
| 8413 | .block_erase = spi_block_erase_d8, |
| 8414 | }, { |
| 8415 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8416 | .block_erase = spi_block_erase_60, |
| 8417 | }, { |
| 8418 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8419 | .block_erase = spi_block_erase_c7, |
| 8420 | }, |
| 8421 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8422 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8423 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8424 | .write = spi_chip_write_256, |
| 8425 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
| 8426 | .voltage = {2700, 3600}, |
| 8427 | }, |
| 8428 | |
| 8429 | { |
| 8430 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8431 | .name = "MX25L4005(A/C)/MX25L4006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8432 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8433 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8434 | .model_id = MACRONIX_MX25L4005, |
| 8435 | .total_size = 512, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 8436 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8437 | .feature_bits = FEATURE_WRSR_WREN, |
| 8438 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 8439 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8440 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8441 | .block_erasers = |
| 8442 | { |
| 8443 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8444 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8445 | .block_erase = spi_block_erase_20, |
| 8446 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8447 | .eraseblocks = { {64 * 1024, 8} }, |
| 8448 | .block_erase = spi_block_erase_52, |
| 8449 | }, { |
| 8450 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8451 | .block_erase = spi_block_erase_d8, |
| 8452 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8453 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8454 | .block_erase = spi_block_erase_60, |
| 8455 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8456 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8457 | .block_erase = spi_block_erase_c7, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8458 | }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8459 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8460 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 8461 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8462 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8463 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8464 | .voltage = {2700, 3600}, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 8465 | }, |
| 8466 | |
| 8467 | { |
| 8468 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8469 | .name = "MX25L512(E)/MX25V512(C)", |
| 8470 | .bustype = BUS_SPI, |
| 8471 | .manufacture_id = MACRONIX_ID, |
| 8472 | .model_id = MACRONIX_MX25L512, |
| 8473 | .total_size = 64, |
| 8474 | .page_size = 256, |
| 8475 | /* MX25L512E supports SFDP */ |
| 8476 | .feature_bits = FEATURE_WRSR_WREN, |
| 8477 | .tested = TEST_OK_PREW, |
| 8478 | .probe = probe_spi_rdid, |
| 8479 | .probe_timing = TIMING_ZERO, |
| 8480 | .block_erasers = |
| 8481 | { |
| 8482 | { |
| 8483 | .eraseblocks = { {4 * 1024, 16} }, |
| 8484 | .block_erase = spi_block_erase_20, |
| 8485 | }, { |
| 8486 | .eraseblocks = { {64 * 1024, 1} }, |
| 8487 | .block_erase = spi_block_erase_52, |
| 8488 | }, { |
| 8489 | .eraseblocks = { {64 * 1024, 1} }, |
| 8490 | .block_erase = spi_block_erase_d8, |
| 8491 | }, { |
| 8492 | .eraseblocks = { {64 * 1024, 1} }, |
| 8493 | .block_erase = spi_block_erase_60, |
| 8494 | }, { |
| 8495 | .eraseblocks = { {64 * 1024, 1} }, |
| 8496 | .block_erase = spi_block_erase_c7, |
| 8497 | }, |
| 8498 | }, |
| 8499 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 8500 | .unlock = spi_disable_blockprotect, |
| 8501 | .write = spi_chip_write_256, |
| 8502 | .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */ |
| 8503 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */ |
| 8504 | }, |
| 8505 | |
| 8506 | { |
| 8507 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8508 | .name = "MX25L6405", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8509 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8510 | .manufacture_id = MACRONIX_ID, |
| 8511 | .model_id = MACRONIX_MX25L6405, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8512 | .total_size = 8192, |
| 8513 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8514 | /* Has an additional 512B EEPROM sector */ |
| 8515 | .feature_bits = FEATURE_WRSR_WREN, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 8516 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8517 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8518 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8519 | .block_erasers = |
| 8520 | { |
| 8521 | { |
| 8522 | .eraseblocks = { {64 * 1024, 128} }, |
| 8523 | .block_erase = spi_block_erase_20, |
| 8524 | }, { |
| 8525 | .eraseblocks = { {64 * 1024, 128} }, |
| 8526 | .block_erase = spi_block_erase_d8, |
| 8527 | }, { |
| 8528 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8529 | .block_erase = spi_block_erase_60, |
| 8530 | }, { |
| 8531 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8532 | .block_erase = spi_block_erase_c7, |
| 8533 | } |
| 8534 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8535 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8536 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8537 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8538 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8539 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8540 | }, |
| 8541 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8542 | { |
| 8543 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8544 | .name = "MX25L6405D", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8545 | .bustype = BUS_SPI, |
| 8546 | .manufacture_id = MACRONIX_ID, |
| 8547 | .model_id = MACRONIX_MX25L6405, |
| 8548 | .total_size = 8192, |
| 8549 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8550 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8551 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8552 | .tested = TEST_OK_PREW, |
| 8553 | .probe = probe_spi_rdid, |
| 8554 | .probe_timing = TIMING_ZERO, |
| 8555 | .block_erasers = |
| 8556 | { |
| 8557 | { |
| 8558 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8559 | .block_erase = spi_block_erase_20, |
| 8560 | }, { |
| 8561 | .eraseblocks = { {64 * 1024, 128} }, |
| 8562 | .block_erase = spi_block_erase_d8, |
| 8563 | }, { |
| 8564 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8565 | .block_erase = spi_block_erase_60, |
| 8566 | }, { |
| 8567 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8568 | .block_erase = spi_block_erase_c7, |
| 8569 | } |
| 8570 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8571 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8572 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8573 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8574 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0xBB) supported */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8575 | .voltage = {2700, 3600}, |
| 8576 | }, |
| 8577 | |
| 8578 | { |
| 8579 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8580 | .name = "MX25L6406E/MX25L6408E", |
| 8581 | .bustype = BUS_SPI, |
| 8582 | .manufacture_id = MACRONIX_ID, |
| 8583 | .model_id = MACRONIX_MX25L6405, |
| 8584 | .total_size = 8192, |
| 8585 | .page_size = 256, |
| 8586 | /* MX25L6406E supports SFDP */ |
| 8587 | /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */ |
| 8588 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8589 | .tested = TEST_OK_PREW, |
| 8590 | .probe = probe_spi_rdid, |
| 8591 | .probe_timing = TIMING_ZERO, |
| 8592 | .block_erasers = |
| 8593 | { |
| 8594 | { |
| 8595 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8596 | .block_erase = spi_block_erase_20, |
| 8597 | }, { |
| 8598 | .eraseblocks = { {64 * 1024, 128} }, |
| 8599 | .block_erase = spi_block_erase_52, |
| 8600 | }, { |
| 8601 | .eraseblocks = { {64 * 1024, 128} }, |
| 8602 | .block_erase = spi_block_erase_d8, |
| 8603 | }, { |
| 8604 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8605 | .block_erase = spi_block_erase_60, |
| 8606 | }, { |
| 8607 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8608 | .block_erase = spi_block_erase_c7, |
| 8609 | } |
| 8610 | }, |
| 8611 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 8612 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8613 | .write = spi_chip_write_256, |
| 8614 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */ |
| 8615 | .voltage = {2700, 3600}, |
| 8616 | }, |
| 8617 | |
| 8618 | { |
| 8619 | .vendor = "Macronix", |
Nico Huber | b007278 | 2017-12-06 21:02:57 +0100 | [diff] [blame] | 8620 | .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8621 | .bustype = BUS_SPI, |
| 8622 | .manufacture_id = MACRONIX_ID, |
| 8623 | .model_id = MACRONIX_MX25L6405, |
| 8624 | .total_size = 8192, |
| 8625 | .page_size = 256, |
| 8626 | /* supports SFDP */ |
| 8627 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8628 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8629 | .tested = TEST_OK_PREW, |
| 8630 | .probe = probe_spi_rdid, |
| 8631 | .probe_timing = TIMING_ZERO, |
| 8632 | .block_erasers = |
| 8633 | { |
| 8634 | { |
| 8635 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8636 | .block_erase = spi_block_erase_20, |
| 8637 | }, { |
| 8638 | .eraseblocks = { {32 * 1024, 256} }, |
| 8639 | .block_erase = spi_block_erase_52, |
| 8640 | }, { |
| 8641 | .eraseblocks = { {64 * 1024, 128} }, |
| 8642 | .block_erase = spi_block_erase_d8, |
| 8643 | }, { |
| 8644 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8645 | .block_erase = spi_block_erase_60, |
| 8646 | }, { |
| 8647 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8648 | .block_erase = spi_block_erase_c7, |
| 8649 | } |
| 8650 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8651 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8652 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8653 | .write = spi_chip_write_256, |
| 8654 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8655 | .voltage = {2700, 3600}, |
| 8656 | }, |
| 8657 | |
| 8658 | { |
| 8659 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8660 | .name = "MX25L6495F", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8661 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8662 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8663 | .model_id = MACRONIX_MX25L6495F, |
| 8664 | .total_size = 8192, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 8665 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8666 | /* OTP: 1024B total; enter 0xB1, exit 0xC1 */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8667 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 8668 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 8669 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8670 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8671 | .block_erasers = |
| 8672 | { |
| 8673 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8674 | .eraseblocks = { {4 * 1024, 2048} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8675 | .block_erase = spi_block_erase_20, |
| 8676 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8677 | .eraseblocks = { {64 * 1024, 128} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8678 | .block_erase = spi_block_erase_d8, |
| 8679 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8680 | .eraseblocks = { {32 * 1024, 256} }, |
| 8681 | .block_erase = spi_block_erase_52, |
| 8682 | }, { |
| 8683 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8684 | .block_erase = spi_block_erase_60, |
| 8685 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8686 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8687 | .block_erase = spi_block_erase_c7, |
| 8688 | } |
| 8689 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8690 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8691 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8692 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8693 | .voltage = {2700, 3600}, |
| 8694 | }, |
| 8695 | |
| 8696 | { |
| 8697 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8698 | .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005", |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8699 | .bustype = BUS_SPI, |
| 8700 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8701 | .model_id = MACRONIX_MX25L8005, |
| 8702 | .total_size = 1024, |
| 8703 | .page_size = 256, |
| 8704 | /* MX25L8006E, MX25L8008E support SFDP */ |
| 8705 | /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */ |
| 8706 | .feature_bits = FEATURE_WRSR_WREN, |
| 8707 | .tested = TEST_OK_PREW, |
| 8708 | .probe = probe_spi_rdid, |
| 8709 | .probe_timing = TIMING_ZERO, |
| 8710 | .block_erasers = |
| 8711 | { |
| 8712 | { |
| 8713 | .eraseblocks = { {4 * 1024, 256} }, |
| 8714 | .block_erase = spi_block_erase_20, |
| 8715 | }, { |
| 8716 | .eraseblocks = { {64 * 1024, 16} }, |
| 8717 | .block_erase = spi_block_erase_52, |
| 8718 | }, { |
| 8719 | .eraseblocks = { {64 * 1024, 16} }, |
| 8720 | .block_erase = spi_block_erase_d8, |
| 8721 | }, { |
| 8722 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8723 | .block_erase = spi_block_erase_60, |
| 8724 | }, { |
| 8725 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8726 | .block_erase = spi_block_erase_c7, |
| 8727 | }, |
| 8728 | }, |
| 8729 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 8730 | .unlock = spi_disable_blockprotect, |
| 8731 | .write = spi_chip_write_256, |
| 8732 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8733 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */ |
| 8734 | }, |
| 8735 | |
| 8736 | { |
| 8737 | .vendor = "Macronix", |
| 8738 | .name = "MX25R6435F", |
| 8739 | .bustype = BUS_SPI, |
| 8740 | .manufacture_id = MACRONIX_ID, |
| 8741 | .model_id = MACRONIX_MX25R6435F, |
| 8742 | .total_size = 8192, |
| 8743 | .page_size = 256, |
| 8744 | /* OTP: 1024B total; enter 0xB1, exit 0xC1 */ |
| 8745 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8746 | .tested = TEST_OK_PREW, |
| 8747 | .probe = probe_spi_rdid, |
| 8748 | .probe_timing = TIMING_ZERO, |
| 8749 | .block_erasers = |
| 8750 | { |
| 8751 | { |
| 8752 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8753 | .block_erase = spi_block_erase_20, |
| 8754 | }, { |
| 8755 | .eraseblocks = { {64 * 1024, 128} }, |
| 8756 | .block_erase = spi_block_erase_d8, |
| 8757 | }, { |
| 8758 | .eraseblocks = { {32 * 1024, 256} }, |
| 8759 | .block_erase = spi_block_erase_52, |
| 8760 | }, { |
| 8761 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8762 | .block_erase = spi_block_erase_60, |
| 8763 | }, { |
| 8764 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8765 | .block_erase = spi_block_erase_c7, |
| 8766 | } |
| 8767 | }, |
| 8768 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8769 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8770 | .write = spi_chip_write_256, |
| 8771 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8772 | .voltage = {1650, 3600}, |
| 8773 | }, |
| 8774 | |
| 8775 | { |
| 8776 | .vendor = "Macronix", |
| 8777 | .name = "MX25U12835F", |
| 8778 | .bustype = BUS_SPI, |
| 8779 | .manufacture_id = MACRONIX_ID, |
| 8780 | .model_id = MACRONIX_MX25U12835E, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8781 | .total_size = 16384, |
| 8782 | .page_size = 256, |
| 8783 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8784 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8785 | .tested = TEST_OK_PREW, |
| 8786 | .probe = probe_spi_rdid, |
| 8787 | .probe_timing = TIMING_ZERO, |
| 8788 | .block_erasers = |
| 8789 | { |
| 8790 | { |
| 8791 | .eraseblocks = { {4 * 1024, 4096} }, |
| 8792 | .block_erase = spi_block_erase_20, |
| 8793 | }, { |
| 8794 | .eraseblocks = { {32 * 1024, 512} }, |
| 8795 | .block_erase = spi_block_erase_52, |
| 8796 | }, { |
| 8797 | .eraseblocks = { {64 * 1024, 256} }, |
| 8798 | .block_erase = spi_block_erase_d8, |
| 8799 | }, { |
| 8800 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 8801 | .block_erase = spi_block_erase_60, |
| 8802 | }, { |
| 8803 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 8804 | .block_erase = spi_block_erase_c7, |
| 8805 | } |
| 8806 | }, |
Angel Pons | f112e24 | 2018-09-30 20:14:17 +0200 | [diff] [blame] | 8807 | /* TODO: security register */ |
| 8808 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8809 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8810 | .write = spi_chip_write_256, /* Multi I/O supported */ |
Angel Pons | f112e24 | 2018-09-30 20:14:17 +0200 | [diff] [blame] | 8811 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8812 | .voltage = {1650, 2000}, |
| 8813 | }, |
| 8814 | |
| 8815 | { |
| 8816 | .vendor = "Macronix", |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 8817 | .name = "MX25U1635E", |
| 8818 | .bustype = BUS_SPI, |
| 8819 | .manufacture_id = MACRONIX_ID, |
| 8820 | .model_id = MACRONIX_MX25U1635E, |
| 8821 | .total_size = 2048, |
| 8822 | .page_size = 256, |
| 8823 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8824 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 8825 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8826 | .tested = TEST_OK_PR, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 8827 | .probe = probe_spi_rdid, |
| 8828 | .probe_timing = TIMING_ZERO, |
| 8829 | .block_erasers = |
| 8830 | { |
| 8831 | { |
| 8832 | .eraseblocks = { {4 * 1024, 512} }, |
| 8833 | .block_erase = spi_block_erase_20, |
| 8834 | }, { |
| 8835 | .eraseblocks = { {32 * 1024, 64} }, |
| 8836 | .block_erase = spi_block_erase_52, |
| 8837 | }, { |
| 8838 | .eraseblocks = { {64 * 1024, 32} }, |
| 8839 | .block_erase = spi_block_erase_d8, |
| 8840 | }, { |
| 8841 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8842 | .block_erase = spi_block_erase_60, |
| 8843 | }, { |
| 8844 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8845 | .block_erase = spi_block_erase_c7, |
| 8846 | } |
| 8847 | }, |
| 8848 | /* TODO: security register */ |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8849 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8850 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 8851 | .write = spi_chip_write_256, |
| 8852 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8853 | .voltage = {1650, 2000}, |
| 8854 | }, |
| 8855 | |
| 8856 | { |
| 8857 | .vendor = "Macronix", |
David Tomaschik | f75d8c5 | 2019-06-20 09:49:01 -0700 | [diff] [blame] | 8858 | .name = "MX25U25635F", |
| 8859 | .bustype = BUS_SPI, |
| 8860 | .manufacture_id = MACRONIX_ID, |
| 8861 | .model_id = MACRONIX_MX25U25635F, |
| 8862 | .total_size = 32768, |
| 8863 | .page_size = 256, |
| 8864 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8865 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA, |
| 8866 | .tested = TEST_OK_PR, |
| 8867 | .probe = probe_spi_rdid, |
| 8868 | .probe_timing = TIMING_ZERO, |
| 8869 | .block_erasers = |
| 8870 | { |
| 8871 | { |
| 8872 | .eraseblocks = { {4 * 1024, 8192} }, |
| 8873 | .block_erase = spi_block_erase_21, |
| 8874 | }, { |
| 8875 | .eraseblocks = { {4 * 1024, 8192} }, |
| 8876 | .block_erase = spi_block_erase_20, |
| 8877 | }, { |
| 8878 | .eraseblocks = { {32 * 1024, 1024} }, |
| 8879 | .block_erase = spi_block_erase_5c, |
| 8880 | }, { |
| 8881 | .eraseblocks = { {32 * 1024, 1024} }, |
| 8882 | .block_erase = spi_block_erase_52, |
| 8883 | }, { |
| 8884 | .eraseblocks = { {64 * 1024, 512} }, |
| 8885 | .block_erase = spi_block_erase_dc, |
| 8886 | }, { |
| 8887 | .eraseblocks = { {64 * 1024, 512} }, |
| 8888 | .block_erase = spi_block_erase_d8, |
| 8889 | }, { |
| 8890 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 8891 | .block_erase = spi_block_erase_60, |
| 8892 | }, { |
| 8893 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 8894 | .block_erase = spi_block_erase_c7, |
| 8895 | } |
| 8896 | }, |
| 8897 | /* TODO: security register */ |
| 8898 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8899 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8900 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 8901 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8902 | .voltage = {1650, 2000}, |
| 8903 | }, |
| 8904 | |
| 8905 | { |
| 8906 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8907 | .name = "MX25U3235E/F", |
| 8908 | .bustype = BUS_SPI, |
| 8909 | .manufacture_id = MACRONIX_ID, |
| 8910 | .model_id = MACRONIX_MX25U3235E, |
| 8911 | .total_size = 4096, |
| 8912 | .page_size = 256, |
| 8913 | /* F model supports SFDP */ |
| 8914 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8915 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 8916 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 8917 | .tested = TEST_OK_PREW, |
| 8918 | .probe = probe_spi_rdid, |
| 8919 | .probe_timing = TIMING_ZERO, |
| 8920 | .block_erasers = |
| 8921 | { |
| 8922 | { |
| 8923 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8924 | .block_erase = spi_block_erase_20, |
| 8925 | }, { |
| 8926 | .eraseblocks = { {32 * 1024, 128} }, |
| 8927 | .block_erase = spi_block_erase_52, |
| 8928 | }, { |
| 8929 | .eraseblocks = { {64 * 1024, 64} }, |
| 8930 | .block_erase = spi_block_erase_d8, |
| 8931 | }, { |
| 8932 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8933 | .block_erase = spi_block_erase_60, |
| 8934 | }, { |
| 8935 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8936 | .block_erase = spi_block_erase_c7, |
| 8937 | } |
| 8938 | }, |
| 8939 | /* TODO: security register */ |
| 8940 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8941 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8942 | .write = spi_chip_write_256, |
| 8943 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8944 | .voltage = {1650, 2000}, |
| 8945 | }, |
| 8946 | |
| 8947 | { |
| 8948 | .vendor = "Macronix", |
Daniel Thompson | cadd420 | 2018-06-04 13:52:22 +0100 | [diff] [blame] | 8949 | .name = "MX25U51245G", |
| 8950 | .bustype = BUS_SPI, |
| 8951 | .manufacture_id = MACRONIX_ID, |
| 8952 | .model_id = MACRONIX_MX25U51245G, |
| 8953 | .total_size = 65536, |
| 8954 | .page_size = 256, |
| 8955 | /* OTP: 512B factory programmed and 512B customer programmed; enter 0xB1, exit 0xC1 */ |
| 8956 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA, |
| 8957 | .tested = TEST_OK_PREW, |
| 8958 | .probe = probe_spi_rdid, |
| 8959 | .probe_timing = TIMING_ZERO, |
| 8960 | .block_erasers = |
| 8961 | { |
| 8962 | { |
| 8963 | .eraseblocks = { {4 * 1024, 16384} }, |
| 8964 | .block_erase = spi_block_erase_21, |
| 8965 | }, { |
| 8966 | .eraseblocks = { {4 * 1024, 16384} }, |
| 8967 | .block_erase = spi_block_erase_20, |
| 8968 | }, { |
| 8969 | .eraseblocks = { {32 * 1024, 2048} }, |
| 8970 | .block_erase = spi_block_erase_5c, |
| 8971 | }, { |
| 8972 | .eraseblocks = { {32 * 1024, 2048} }, |
| 8973 | .block_erase = spi_block_erase_52, |
| 8974 | }, { |
| 8975 | .eraseblocks = { {64 * 1024, 1024} }, |
| 8976 | .block_erase = spi_block_erase_dc, |
| 8977 | }, { |
| 8978 | .eraseblocks = { {64 * 1024, 1024} }, |
| 8979 | .block_erase = spi_block_erase_d8, |
| 8980 | }, { |
| 8981 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 8982 | .block_erase = spi_block_erase_60, |
| 8983 | }, { |
| 8984 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 8985 | .block_erase = spi_block_erase_c7, |
| 8986 | } |
| 8987 | }, |
| 8988 | /* TODO: security register */ |
| 8989 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8990 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8991 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 8992 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8993 | .voltage = {1650, 2000}, |
| 8994 | }, |
| 8995 | |
| 8996 | { |
| 8997 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8998 | .name = "MX25U6435E/F", |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 8999 | .bustype = BUS_SPI, |
| 9000 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9001 | .model_id = MACRONIX_MX25U6435E, |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 9002 | .total_size = 8192, |
| 9003 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9004 | /* F model supports SFDP */ |
| 9005 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 9006 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 9007 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 9008 | .tested = TEST_OK_PREW, |
| 9009 | .probe = probe_spi_rdid, |
| 9010 | .probe_timing = TIMING_ZERO, |
| 9011 | .block_erasers = |
| 9012 | { |
| 9013 | { |
| 9014 | .eraseblocks = { {4 * 1024, 2048} }, |
| 9015 | .block_erase = spi_block_erase_20, |
| 9016 | }, { |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 9017 | .eraseblocks = { {32 * 1024, 256} }, |
| 9018 | .block_erase = spi_block_erase_52, |
| 9019 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9020 | .eraseblocks = { {64 * 1024, 128} }, |
| 9021 | .block_erase = spi_block_erase_d8, |
| 9022 | }, { |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 9023 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9024 | .block_erase = spi_block_erase_60, |
| 9025 | }, { |
| 9026 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9027 | .block_erase = spi_block_erase_c7, |
| 9028 | } |
| 9029 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9030 | /* TODO: security register */ |
Nathan Rennie-Waldock | 5a7f942 | 2018-08-10 15:35:23 +0100 | [diff] [blame] | 9031 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9032 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9033 | .write = spi_chip_write_256, |
| 9034 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9035 | .voltage = {1650, 2000}, |
| 9036 | }, |
| 9037 | |
| 9038 | { |
| 9039 | .vendor = "Macronix", |
| 9040 | .name = "MX25U8032E", |
| 9041 | .bustype = BUS_SPI, |
| 9042 | .manufacture_id = MACRONIX_ID, |
| 9043 | .model_id = MACRONIX_MX25U8032E, |
| 9044 | .total_size = 1024, |
| 9045 | .page_size = 256, |
| 9046 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 9047 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9048 | .tested = TEST_OK_PREW, |
| 9049 | .probe = probe_spi_rdid, |
| 9050 | .probe_timing = TIMING_ZERO, |
| 9051 | .block_erasers = |
| 9052 | { |
| 9053 | { |
| 9054 | .eraseblocks = { {4 * 1024, 256} }, |
| 9055 | .block_erase = spi_block_erase_20, |
| 9056 | }, { |
| 9057 | .eraseblocks = { {32 * 1024, 32} }, |
| 9058 | .block_erase = spi_block_erase_52, |
| 9059 | }, { |
| 9060 | .eraseblocks = { {64 * 1024, 16} }, |
| 9061 | .block_erase = spi_block_erase_d8, |
| 9062 | }, { |
| 9063 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9064 | .block_erase = spi_block_erase_60, |
| 9065 | }, { |
| 9066 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9067 | .block_erase = spi_block_erase_c7, |
| 9068 | } |
| 9069 | }, |
| 9070 | /* TODO: security register */ |
| 9071 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9072 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9073 | .write = spi_chip_write_256, |
| 9074 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9075 | .voltage = {1650, 2000}, |
Nathan Rennie-Waldock | 5a7f942 | 2018-08-10 15:35:23 +0100 | [diff] [blame] | 9076 | }, |
| 9077 | |
| 9078 | { |
| 9079 | .vendor = "Macronix", |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9080 | .name = "MX29F001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9081 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9082 | .manufacture_id = MACRONIX_ID, |
| 9083 | .model_id = MACRONIX_MX29F001B, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9084 | .total_size = 128, |
| 9085 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9086 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9087 | .tested = TEST_UNTESTED, |
| 9088 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 9089 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9090 | .block_erasers = |
| 9091 | { |
| 9092 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 9093 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9094 | {8 * 1024, 1}, |
| 9095 | {4 * 1024, 2}, |
| 9096 | {8 * 1024, 2}, |
| 9097 | {32 * 1024, 1}, |
| 9098 | {64 * 1024, 1}, |
| 9099 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9100 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9101 | }, { |
| 9102 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9103 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9104 | } |
| 9105 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 9106 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9107 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9108 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9109 | }, |
| 9110 | |
| 9111 | { |
| 9112 | .vendor = "Macronix", |
| 9113 | .name = "MX29F001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9114 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9115 | .manufacture_id = MACRONIX_ID, |
| 9116 | .model_id = MACRONIX_MX29F001T, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9117 | .total_size = 128, |
| 9118 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9119 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stefan Tauner | 74c6ec6 | 2011-05-18 01:31:46 +0000 | [diff] [blame] | 9120 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9121 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 9122 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9123 | .block_erasers = |
| 9124 | { |
| 9125 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 9126 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9127 | {64 * 1024, 1}, |
| 9128 | {32 * 1024, 1}, |
| 9129 | {8 * 1024, 2}, |
| 9130 | {4 * 1024, 2}, |
| 9131 | {8 * 1024, 1}, |
| 9132 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9133 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9134 | }, { |
| 9135 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9136 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9137 | } |
| 9138 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 9139 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9140 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9141 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9142 | }, |
| 9143 | |
| 9144 | { |
| 9145 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 9146 | .name = "MX29F002(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9147 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9148 | .manufacture_id = MACRONIX_ID, |
| 9149 | .model_id = MACRONIX_MX29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9150 | .total_size = 256, |
| 9151 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9152 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9153 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9154 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 9155 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9156 | .block_erasers = |
| 9157 | { |
| 9158 | { |
| 9159 | .eraseblocks = { |
| 9160 | {16 * 1024, 1}, |
| 9161 | {8 * 1024, 2}, |
| 9162 | {32 * 1024, 1}, |
| 9163 | {64 * 1024, 3}, |
| 9164 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9165 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9166 | }, { |
| 9167 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9168 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9169 | }, |
| 9170 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 9171 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9172 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9173 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9174 | }, |
| 9175 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9176 | { |
| 9177 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 9178 | .name = "MX29F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9179 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9180 | .manufacture_id = MACRONIX_ID, |
| 9181 | .model_id = MACRONIX_MX29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9182 | .total_size = 256, |
| 9183 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9184 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 9185 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9186 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 9187 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9188 | .block_erasers = |
| 9189 | { |
| 9190 | { |
| 9191 | .eraseblocks = { |
| 9192 | {64 * 1024, 3}, |
| 9193 | {32 * 1024, 1}, |
| 9194 | {8 * 1024, 2}, |
| 9195 | {16 * 1024, 1}, |
| 9196 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9197 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9198 | }, { |
| 9199 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9200 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9201 | }, |
| 9202 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 9203 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9204 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9205 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9206 | }, |
| 9207 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9208 | { |
| 9209 | .vendor = "Macronix", |
Daniele Forsi | 6a18a93 | 2014-07-13 14:53:45 +0000 | [diff] [blame] | 9210 | .name = "MX29F022(N)B", |
| 9211 | .bustype = BUS_PARALLEL, |
| 9212 | .manufacture_id = MACRONIX_ID, |
| 9213 | .model_id = MACRONIX_MX29F022B, |
| 9214 | .total_size = 256, |
| 9215 | .page_size = 0, /* unused */ |
| 9216 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9217 | .tested = TEST_UNTESTED, |
| 9218 | .probe = probe_jedec, |
| 9219 | .probe_timing = TIMING_ZERO, |
| 9220 | .block_erasers = |
| 9221 | { |
| 9222 | { |
| 9223 | .eraseblocks = { |
| 9224 | {16 * 1024, 1}, |
| 9225 | {8 * 1024, 2}, |
| 9226 | {32 * 1024, 1}, |
| 9227 | {64 * 1024, 3}, |
| 9228 | }, |
| 9229 | .block_erase = erase_sector_jedec, |
| 9230 | }, { |
| 9231 | .eraseblocks = { {256 * 1024, 1} }, |
| 9232 | .block_erase = erase_chip_block_jedec, |
| 9233 | } |
| 9234 | }, |
| 9235 | .write = write_jedec_1, |
| 9236 | .read = read_memmapped, |
| 9237 | .voltage = {4500, 5500}, |
| 9238 | }, |
| 9239 | |
| 9240 | { |
| 9241 | .vendor = "Macronix", |
| 9242 | .name = "MX29F022(N)T", |
| 9243 | .bustype = BUS_PARALLEL, |
| 9244 | .manufacture_id = MACRONIX_ID, |
| 9245 | .model_id = MACRONIX_MX29F022T, |
| 9246 | .total_size = 256, |
| 9247 | .page_size = 0, /* unused */ |
| 9248 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9249 | .tested = TEST_OK_PREW, |
| 9250 | .probe = probe_jedec, |
| 9251 | .probe_timing = TIMING_ZERO, |
| 9252 | .block_erasers = |
| 9253 | { |
| 9254 | { |
| 9255 | .eraseblocks = { |
| 9256 | {64 * 1024, 3}, |
| 9257 | {32 * 1024, 1}, |
| 9258 | {8 * 1024, 2}, |
| 9259 | {16 * 1024, 1}, |
| 9260 | }, |
| 9261 | .block_erase = erase_sector_jedec, |
| 9262 | }, { |
| 9263 | .eraseblocks = { {256 * 1024, 1} }, |
| 9264 | .block_erase = erase_chip_block_jedec, |
| 9265 | } |
| 9266 | }, |
| 9267 | .write = write_jedec_1, |
| 9268 | .read = read_memmapped, |
| 9269 | .voltage = {4500, 5500}, |
| 9270 | }, |
| 9271 | |
| 9272 | { |
| 9273 | .vendor = "Macronix", |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 9274 | .name = "MX29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9275 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 9276 | .manufacture_id = MACRONIX_ID, |
| 9277 | .model_id = MACRONIX_MX29F040, |
| 9278 | .total_size = 512, |
| 9279 | .page_size = 64 * 1024, |
| 9280 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9281 | .tested = TEST_UNTESTED, |
| 9282 | .probe = probe_jedec, |
| 9283 | .probe_timing = TIMING_ZERO, |
| 9284 | .block_erasers = |
| 9285 | { |
| 9286 | { |
| 9287 | .eraseblocks = { {64 * 1024, 8} }, |
| 9288 | .block_erase = erase_sector_jedec, |
| 9289 | }, { |
| 9290 | .eraseblocks = { {512 * 1024, 1} }, |
| 9291 | .block_erase = erase_chip_block_jedec, |
| 9292 | }, |
| 9293 | }, |
| 9294 | .write = write_jedec_1, |
| 9295 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 9296 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 9297 | }, |
| 9298 | |
| 9299 | { |
| 9300 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9301 | .name = "MX29GL128F", |
| 9302 | .bustype = BUS_PARALLEL, |
| 9303 | .manufacture_id = MACRONIX_ID, |
| 9304 | .model_id = MACRONIX_MX29GL128F, |
| 9305 | .total_size = 16384, |
| 9306 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9307 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9308 | .tested = TEST_UNTESTED, |
| 9309 | .probe = probe_jedec_29gl, |
| 9310 | .probe_timing = TIMING_ZERO, |
| 9311 | .block_erasers = |
| 9312 | { |
| 9313 | { |
| 9314 | .eraseblocks = { {128 * 1024, 128} }, |
| 9315 | .block_erase = erase_sector_jedec, |
| 9316 | }, { |
| 9317 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 9318 | .block_erase = erase_chip_block_jedec, |
| 9319 | }, |
| 9320 | }, |
| 9321 | .write = write_jedec_1, |
| 9322 | .read = read_memmapped, |
| 9323 | .voltage = {2700, 3600}, |
| 9324 | }, |
| 9325 | |
| 9326 | { |
| 9327 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 9328 | .name = "MX29GL320EB", |
| 9329 | .bustype = BUS_PARALLEL, |
| 9330 | .manufacture_id = MACRONIX_ID, |
| 9331 | .model_id = MACRONIX_MX29GL320EB, |
| 9332 | .total_size = 4096, |
| 9333 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9334 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9335 | .tested = TEST_UNTESTED, |
| 9336 | .probe = probe_jedec_29gl, |
| 9337 | .probe_timing = TIMING_ZERO, |
| 9338 | .block_erasers = |
| 9339 | { |
| 9340 | { |
| 9341 | .eraseblocks = { |
| 9342 | {8 * 1024, 8}, |
| 9343 | {64 * 1024, 63}, |
| 9344 | }, |
| 9345 | .block_erase = erase_sector_jedec, |
| 9346 | }, { |
| 9347 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9348 | .block_erase = erase_chip_block_jedec, |
| 9349 | }, |
| 9350 | }, |
| 9351 | .write = write_jedec_1, |
| 9352 | .read = read_memmapped, |
| 9353 | .voltage = {2700, 3600}, |
| 9354 | }, |
| 9355 | |
| 9356 | { |
| 9357 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9358 | .name = "MX29GL320EH/L", |
| 9359 | .bustype = BUS_PARALLEL, |
| 9360 | .manufacture_id = MACRONIX_ID, |
| 9361 | .model_id = MACRONIX_MX29GL320EHL, |
| 9362 | .total_size = 4096, |
| 9363 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9364 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9365 | .tested = TEST_UNTESTED, |
| 9366 | .probe = probe_jedec_29gl, |
| 9367 | .probe_timing = TIMING_ZERO, |
| 9368 | .block_erasers = |
| 9369 | { |
| 9370 | { |
| 9371 | .eraseblocks = { {64 * 1024, 64} }, |
| 9372 | .block_erase = erase_sector_jedec, |
| 9373 | }, { |
| 9374 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9375 | .block_erase = erase_chip_block_jedec, |
| 9376 | }, |
| 9377 | }, |
| 9378 | .write = write_jedec_1, |
| 9379 | .read = read_memmapped, |
| 9380 | .voltage = {2700, 3600}, |
| 9381 | }, |
| 9382 | |
| 9383 | { |
| 9384 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 9385 | .name = "MX29GL320ET", |
| 9386 | .bustype = BUS_PARALLEL, |
| 9387 | .manufacture_id = MACRONIX_ID, |
| 9388 | .model_id = MACRONIX_MX29GL320ET, |
| 9389 | .total_size = 4096, |
| 9390 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9391 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9392 | .tested = TEST_UNTESTED, |
| 9393 | .probe = probe_jedec_29gl, |
| 9394 | .probe_timing = TIMING_ZERO, |
| 9395 | .block_erasers = |
| 9396 | { |
| 9397 | { |
| 9398 | .eraseblocks = { |
| 9399 | {64 * 1024, 63}, |
| 9400 | {8 * 1024, 8}, |
| 9401 | }, |
| 9402 | .block_erase = erase_sector_jedec, |
| 9403 | }, { |
| 9404 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9405 | .block_erase = erase_chip_block_jedec, |
| 9406 | }, |
| 9407 | }, |
| 9408 | .write = write_jedec_1, |
| 9409 | .read = read_memmapped, |
| 9410 | .voltage = {2700, 3600}, |
| 9411 | }, |
| 9412 | |
| 9413 | { |
| 9414 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 9415 | .name = "MX29GL640EB", |
| 9416 | .bustype = BUS_PARALLEL, |
| 9417 | .manufacture_id = MACRONIX_ID, |
| 9418 | .model_id = MACRONIX_MX29GL640EB, |
| 9419 | .total_size = 8192, |
| 9420 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9421 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9422 | .tested = TEST_UNTESTED, |
| 9423 | .probe = probe_jedec_29gl, |
| 9424 | .probe_timing = TIMING_ZERO, |
| 9425 | .block_erasers = |
| 9426 | { |
| 9427 | { |
| 9428 | .eraseblocks = { |
| 9429 | {8 * 1024, 8}, |
| 9430 | {64 * 1024, 127}, |
| 9431 | }, |
| 9432 | .block_erase = erase_sector_jedec, |
| 9433 | }, { |
| 9434 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9435 | .block_erase = erase_chip_block_jedec, |
| 9436 | }, |
| 9437 | }, |
| 9438 | .write = write_jedec_1, |
| 9439 | .read = read_memmapped, |
| 9440 | .voltage = {2700, 3600}, |
| 9441 | }, |
| 9442 | |
| 9443 | { |
| 9444 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9445 | .name = "MX29GL640EH/L", |
| 9446 | .bustype = BUS_PARALLEL, |
| 9447 | .manufacture_id = MACRONIX_ID, |
| 9448 | .model_id = MACRONIX_MX29GL640EHL, |
| 9449 | .total_size = 8192, |
| 9450 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9451 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9452 | .tested = TEST_UNTESTED, |
| 9453 | .probe = probe_jedec_29gl, |
| 9454 | .probe_timing = TIMING_ZERO, |
| 9455 | .block_erasers = |
| 9456 | { |
| 9457 | { |
| 9458 | .eraseblocks = { {64 * 1024, 128} }, |
| 9459 | .block_erase = erase_sector_jedec, |
| 9460 | }, { |
| 9461 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9462 | .block_erase = erase_chip_block_jedec, |
| 9463 | }, |
| 9464 | }, |
| 9465 | .write = write_jedec_1, |
| 9466 | .read = read_memmapped, |
| 9467 | .voltage = {2700, 3600}, |
| 9468 | }, |
| 9469 | |
| 9470 | { |
| 9471 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 9472 | .name = "MX29GL640ET", |
| 9473 | .bustype = BUS_PARALLEL, |
| 9474 | .manufacture_id = MACRONIX_ID, |
| 9475 | .model_id = MACRONIX_MX29GL640ET, |
| 9476 | .total_size = 8192, |
| 9477 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9478 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9479 | .tested = TEST_UNTESTED, |
| 9480 | .probe = probe_jedec_29gl, |
| 9481 | .probe_timing = TIMING_ZERO, |
| 9482 | .block_erasers = |
| 9483 | { |
| 9484 | { |
| 9485 | .eraseblocks = { |
| 9486 | {64 * 1024, 127}, |
| 9487 | {8 * 1024, 8}, |
| 9488 | }, |
| 9489 | .block_erase = erase_sector_jedec, |
| 9490 | }, { |
| 9491 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9492 | .block_erase = erase_chip_block_jedec, |
| 9493 | }, |
| 9494 | }, |
| 9495 | .write = write_jedec_1, |
| 9496 | .read = read_memmapped, |
| 9497 | .voltage = {2700, 3600}, |
| 9498 | }, |
| 9499 | |
| 9500 | { |
| 9501 | .vendor = "Macronix", |
Carl-Daniel Hailfinger | 350a0c3 | 2009-07-24 13:59:27 +0000 | [diff] [blame] | 9502 | .name = "MX29LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9503 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9504 | .manufacture_id = MACRONIX_ID, |
| 9505 | .model_id = MACRONIX_MX29LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9506 | .total_size = 512, |
| 9507 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9508 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9509 | .tested = TEST_UNTESTED, |
| 9510 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 9511 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9512 | .block_erasers = |
| 9513 | { |
| 9514 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 9515 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9516 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9517 | }, { |
| 9518 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9519 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9520 | }, |
| 9521 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 9522 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9523 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9524 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 7de8639 | 2008-12-10 10:32:05 +0000 | [diff] [blame] | 9525 | }, |
| 9526 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9527 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9528 | .vendor = "Macronix", |
Hemanth Guruva Reddy | a136d42 | 2019-07-11 11:08:27 +0200 | [diff] [blame] | 9529 | .name = "MX66L51235F/MX25L51245G", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9530 | .bustype = BUS_SPI, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9531 | .manufacture_id = MACRONIX_ID, |
| 9532 | .model_id = MACRONIX_MX66L51235F, |
| 9533 | .total_size = 65536, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9534 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9535 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 9536 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9537 | .tested = TEST_OK_PREW, |
| 9538 | .probe = probe_spi_rdid, |
| 9539 | .probe_timing = TIMING_ZERO, |
| 9540 | .block_erasers = |
| 9541 | { |
| 9542 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9543 | .eraseblocks = { {4 * 1024, 16384} }, |
| 9544 | .block_erase = spi_block_erase_21, |
| 9545 | }, { |
| 9546 | .eraseblocks = { {4 * 1024, 16384} }, |
| 9547 | .block_erase = spi_block_erase_20, |
| 9548 | }, { |
| 9549 | .eraseblocks = { {32 * 1024, 2048} }, |
| 9550 | .block_erase = spi_block_erase_5c, |
| 9551 | }, { |
| 9552 | .eraseblocks = { {32 * 1024, 2048} }, |
| 9553 | .block_erase = spi_block_erase_52, |
| 9554 | }, { |
| 9555 | .eraseblocks = { {64 * 1024, 1024} }, |
| 9556 | .block_erase = spi_block_erase_dc, |
| 9557 | }, { |
| 9558 | .eraseblocks = { {64 * 1024, 1024} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9559 | .block_erase = spi_block_erase_d8, |
| 9560 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9561 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 9562 | .block_erase = spi_block_erase_60, |
| 9563 | }, { |
| 9564 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9565 | .block_erase = spi_block_erase_c7, |
| 9566 | } |
| 9567 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9568 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
| 9569 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9570 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9571 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9572 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9573 | .voltage = {2700, 3600}, |
| 9574 | }, |
| 9575 | |
| 9576 | /* The ST M25P05 is a bit of a problem. It has the same ID as the |
| 9577 | * ST M25P05-A in RES mode, but supports only 128 byte writes instead |
| 9578 | * of 256 byte writes. We rely heavily on the fact that probe_spi_res1 |
| 9579 | * only is successful if RDID does not work. |
| 9580 | */ |
| 9581 | { |
| 9582 | .vendor = "Micron/Numonyx/ST", |
| 9583 | .name = "M25P05", |
| 9584 | .bustype = BUS_SPI, |
| 9585 | .manufacture_id = 0, /* Not used. */ |
| 9586 | .model_id = ST_M25P05_RES, |
| 9587 | .total_size = 64, |
| 9588 | .page_size = 256, |
| 9589 | .feature_bits = FEATURE_WRSR_WREN, |
| 9590 | .tested = TEST_UNTESTED, |
| 9591 | .probe = probe_spi_res1, |
| 9592 | .probe_timing = TIMING_ZERO, |
| 9593 | .block_erasers = |
| 9594 | { |
| 9595 | { |
| 9596 | .eraseblocks = { {32 * 1024, 2} }, |
| 9597 | .block_erase = spi_block_erase_d8, |
| 9598 | }, { |
| 9599 | .eraseblocks = { {64 * 1024, 1} }, |
| 9600 | .block_erase = spi_block_erase_c7, |
| 9601 | } |
| 9602 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9603 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9604 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9605 | .write = spi_chip_write_1, /* 128 */ |
| 9606 | .read = spi_chip_read, |
| 9607 | .voltage = {2700, 3600}, |
| 9608 | }, |
| 9609 | |
| 9610 | { |
| 9611 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9612 | .name = "M25P05-A", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9613 | .bustype = BUS_SPI, |
| 9614 | .manufacture_id = ST_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9615 | .model_id = ST_M25P05A, |
| 9616 | .total_size = 64, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9617 | .page_size = 256, |
| 9618 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 9619 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9620 | .probe = probe_spi_rdid, |
| 9621 | .probe_timing = TIMING_ZERO, |
| 9622 | .block_erasers = |
| 9623 | { |
| 9624 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9625 | .eraseblocks = { {32 * 1024, 2} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9626 | .block_erase = spi_block_erase_d8, |
| 9627 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9628 | .eraseblocks = { {64 * 1024, 1} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9629 | .block_erase = spi_block_erase_c7, |
| 9630 | } |
| 9631 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9632 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9633 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9634 | .write = spi_chip_write_256, |
| 9635 | .read = spi_chip_read, |
| 9636 | .voltage = {2700, 3600}, |
| 9637 | }, |
| 9638 | |
| 9639 | /* The ST M25P10 has the same problem as the M25P05. */ |
| 9640 | { |
| 9641 | .vendor = "Micron/Numonyx/ST", |
| 9642 | .name = "M25P10", |
| 9643 | .bustype = BUS_SPI, |
| 9644 | .manufacture_id = 0, /* Not used. */ |
| 9645 | .model_id = ST_M25P10_RES, |
| 9646 | .total_size = 128, |
| 9647 | .page_size = 256, |
| 9648 | .feature_bits = FEATURE_WRSR_WREN, |
| 9649 | .tested = TEST_UNTESTED, |
| 9650 | .probe = probe_spi_res1, |
| 9651 | .probe_timing = TIMING_ZERO, |
| 9652 | .block_erasers = |
| 9653 | { |
| 9654 | { |
| 9655 | .eraseblocks = { {32 * 1024, 4} }, |
| 9656 | .block_erase = spi_block_erase_d8, |
| 9657 | }, { |
| 9658 | .eraseblocks = { {128 * 1024, 1} }, |
| 9659 | .block_erase = spi_block_erase_c7, |
| 9660 | } |
| 9661 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9662 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9663 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9664 | .write = spi_chip_write_1, /* 128 */ |
| 9665 | .read = spi_chip_read, |
| 9666 | .voltage = {2700, 3600}, |
| 9667 | }, |
| 9668 | |
| 9669 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9670 | .vendor = "Micron/Numonyx/ST", |
| 9671 | .name = "M25P10-A", |
| 9672 | .bustype = BUS_SPI, |
| 9673 | .manufacture_id = ST_ID, |
| 9674 | .model_id = ST_M25P10A, |
| 9675 | .total_size = 128, |
| 9676 | .page_size = 256, |
| 9677 | .feature_bits = FEATURE_WRSR_WREN, |
| 9678 | .tested = TEST_OK_PREW, |
| 9679 | .probe = probe_spi_rdid, |
| 9680 | .probe_timing = TIMING_ZERO, |
| 9681 | .block_erasers = |
| 9682 | { |
| 9683 | { |
| 9684 | .eraseblocks = { {32 * 1024, 4} }, |
| 9685 | .block_erase = spi_block_erase_d8, |
| 9686 | }, { |
| 9687 | .eraseblocks = { {128 * 1024, 1} }, |
| 9688 | .block_erase = spi_block_erase_c7, |
| 9689 | } |
| 9690 | }, |
| 9691 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
| 9692 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9693 | .write = spi_chip_write_256, |
| 9694 | .read = spi_chip_read, |
| 9695 | .voltage = {2700, 3600}, |
| 9696 | }, |
| 9697 | |
| 9698 | { |
| 9699 | .vendor = "Micron/Numonyx/ST", |
| 9700 | .name = "M25P128", |
| 9701 | .bustype = BUS_SPI, |
| 9702 | .manufacture_id = ST_ID, |
| 9703 | .model_id = ST_M25P128, |
| 9704 | .total_size = 16384, |
| 9705 | .page_size = 256, |
| 9706 | .feature_bits = FEATURE_WRSR_WREN, |
| 9707 | .tested = TEST_OK_PREW, |
| 9708 | .probe = probe_spi_rdid, |
| 9709 | .probe_timing = TIMING_ZERO, |
| 9710 | .block_erasers = |
| 9711 | { |
| 9712 | { |
| 9713 | .eraseblocks = { {256 * 1024, 64} }, |
| 9714 | .block_erase = spi_block_erase_d8, |
| 9715 | }, { |
| 9716 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 9717 | .block_erase = spi_block_erase_c7, |
| 9718 | } |
| 9719 | }, |
| 9720 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
| 9721 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9722 | .write = spi_chip_write_256, |
| 9723 | .read = spi_chip_read, |
| 9724 | .voltage = {2700, 3600}, |
| 9725 | }, |
| 9726 | |
| 9727 | { |
| 9728 | .vendor = "Micron/Numonyx/ST", |
| 9729 | .name = "M25P16", |
| 9730 | .bustype = BUS_SPI, |
| 9731 | .manufacture_id = ST_ID, |
| 9732 | .model_id = ST_M25P16, |
| 9733 | .total_size = 2048, |
| 9734 | .page_size = 256, |
| 9735 | .feature_bits = FEATURE_WRSR_WREN, |
| 9736 | .tested = TEST_OK_PREW, |
| 9737 | .probe = probe_spi_rdid, |
| 9738 | .probe_timing = TIMING_ZERO, |
| 9739 | .block_erasers = |
| 9740 | { |
| 9741 | { |
| 9742 | .eraseblocks = { {64 * 1024, 32} }, |
| 9743 | .block_erase = spi_block_erase_d8, |
| 9744 | }, { |
| 9745 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9746 | .block_erase = spi_block_erase_c7, |
| 9747 | } |
| 9748 | }, |
| 9749 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
| 9750 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9751 | .write = spi_chip_write_256, |
| 9752 | .read = spi_chip_read, |
| 9753 | .voltage = {2700, 3600}, |
| 9754 | }, |
| 9755 | |
| 9756 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9757 | .vendor = "Micron/Numonyx/ST", /* Numonyx */ |
| 9758 | .name = "M25P20", |
| 9759 | .bustype = BUS_SPI, |
| 9760 | .manufacture_id = ST_ID, |
| 9761 | .model_id = ST_M25P20, |
| 9762 | .total_size = 256, |
| 9763 | .page_size = 256, |
| 9764 | .feature_bits = FEATURE_WRSR_WREN, |
| 9765 | .tested = TEST_UNTESTED, |
| 9766 | .probe = probe_spi_rdid, |
| 9767 | .probe_timing = TIMING_ZERO, |
| 9768 | .block_erasers = |
| 9769 | { |
| 9770 | { |
| 9771 | .eraseblocks = { {64 * 1024, 4} }, |
| 9772 | .block_erase = spi_block_erase_d8, |
| 9773 | }, { |
| 9774 | .eraseblocks = { {256 * 1024, 1} }, |
| 9775 | .block_erase = spi_block_erase_c7, |
| 9776 | } |
| 9777 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9778 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9779 | .unlock = spi_disable_blockprotect, |
| 9780 | .write = spi_chip_write_256, |
| 9781 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9782 | .voltage = {2700, 3600}, |
| 9783 | }, |
| 9784 | |
| 9785 | { |
| 9786 | .vendor = "Micron/Numonyx/ST", |
| 9787 | .name = "M25P20-old", |
| 9788 | .bustype = BUS_SPI, |
| 9789 | .manufacture_id = 0, /* Not used. */ |
| 9790 | .model_id = ST_M25P20_RES, |
| 9791 | .total_size = 256, |
| 9792 | .page_size = 256, |
| 9793 | .feature_bits = FEATURE_WRSR_WREN, |
| 9794 | .tested = TEST_OK_PREW, |
| 9795 | .probe = probe_spi_res1, |
| 9796 | .probe_timing = TIMING_ZERO, |
| 9797 | .block_erasers = |
| 9798 | { |
| 9799 | { |
| 9800 | .eraseblocks = { {64 * 1024, 4} }, |
| 9801 | .block_erase = spi_block_erase_d8, |
| 9802 | }, { |
| 9803 | .eraseblocks = { {256 * 1024, 1} }, |
| 9804 | .block_erase = spi_block_erase_c7, |
| 9805 | } |
| 9806 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9807 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9808 | .unlock = spi_disable_blockprotect, |
| 9809 | .write = spi_chip_write_256, |
| 9810 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9811 | .voltage = {2700, 3600}, |
| 9812 | }, |
| 9813 | |
| 9814 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9815 | .vendor = "Micron/Numonyx/ST", |
| 9816 | .name = "M25P32", |
| 9817 | .bustype = BUS_SPI, |
| 9818 | .manufacture_id = ST_ID, |
| 9819 | .model_id = ST_M25P32, |
| 9820 | .total_size = 4096, |
| 9821 | .page_size = 256, |
| 9822 | .feature_bits = FEATURE_WRSR_WREN, |
| 9823 | .tested = TEST_OK_PREW, |
| 9824 | .probe = probe_spi_rdid, |
| 9825 | .probe_timing = TIMING_ZERO, |
| 9826 | .block_erasers = |
| 9827 | { |
| 9828 | { |
| 9829 | .eraseblocks = { {64 * 1024, 64} }, |
| 9830 | .block_erase = spi_block_erase_d8, |
| 9831 | }, { |
| 9832 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9833 | .block_erase = spi_block_erase_c7, |
| 9834 | } |
| 9835 | }, |
| 9836 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
| 9837 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9838 | .write = spi_chip_write_256, |
| 9839 | .read = spi_chip_read, |
| 9840 | .voltage = {2700, 3600}, |
| 9841 | }, |
| 9842 | |
| 9843 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9844 | .vendor = "Micron/Numonyx/ST", /* Numonyx */ |
| 9845 | .name = "M25P40", |
| 9846 | .bustype = BUS_SPI, |
| 9847 | .manufacture_id = ST_ID, |
| 9848 | .model_id = ST_M25P40, |
| 9849 | .total_size = 512, |
| 9850 | .page_size = 256, |
| 9851 | .feature_bits = FEATURE_WRSR_WREN, |
| 9852 | .tested = TEST_OK_PREW, |
| 9853 | .probe = probe_spi_rdid, |
| 9854 | .probe_timing = TIMING_ZERO, |
| 9855 | .block_erasers = |
| 9856 | { |
| 9857 | { |
| 9858 | .eraseblocks = { {64 * 1024, 8} }, |
| 9859 | .block_erase = spi_block_erase_d8, |
| 9860 | }, { |
| 9861 | .eraseblocks = { {512 * 1024, 1} }, |
| 9862 | .block_erase = spi_block_erase_c7, |
| 9863 | } |
| 9864 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9865 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9866 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9867 | .write = spi_chip_write_256, |
| 9868 | .read = spi_chip_read, |
| 9869 | .voltage = {2700, 3600}, |
| 9870 | }, |
| 9871 | |
| 9872 | { |
| 9873 | .vendor = "Micron/Numonyx/ST", |
| 9874 | .name = "M25P40-old", |
| 9875 | .bustype = BUS_SPI, |
| 9876 | .manufacture_id = 0, /* Not used. */ |
| 9877 | .model_id = ST_M25P40_RES, |
| 9878 | .total_size = 512, |
| 9879 | .page_size = 256, |
| 9880 | .feature_bits = FEATURE_WRSR_WREN, |
| 9881 | .tested = TEST_UNTESTED, |
| 9882 | .probe = probe_spi_res1, |
| 9883 | .probe_timing = TIMING_ZERO, |
| 9884 | .block_erasers = |
| 9885 | { |
| 9886 | { |
| 9887 | .eraseblocks = { {64 * 1024, 8} }, |
| 9888 | .block_erase = spi_block_erase_d8, |
| 9889 | }, { |
| 9890 | .eraseblocks = { {512 * 1024, 1} }, |
| 9891 | .block_erase = spi_block_erase_c7, |
| 9892 | } |
| 9893 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9894 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9895 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9896 | .write = spi_chip_write_256, |
| 9897 | .read = spi_chip_read, |
| 9898 | }, |
| 9899 | |
| 9900 | { |
| 9901 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9902 | .name = "M25P64", |
| 9903 | .bustype = BUS_SPI, |
| 9904 | .manufacture_id = ST_ID, |
| 9905 | .model_id = ST_M25P64, |
| 9906 | .total_size = 8192, |
| 9907 | .page_size = 256, |
| 9908 | .feature_bits = FEATURE_WRSR_WREN, |
| 9909 | .tested = TEST_OK_PREW, |
| 9910 | .probe = probe_spi_rdid, |
| 9911 | .probe_timing = TIMING_ZERO, |
| 9912 | .block_erasers = |
| 9913 | { |
| 9914 | { |
| 9915 | .eraseblocks = { {64 * 1024, 128} }, |
| 9916 | .block_erase = spi_block_erase_d8, |
| 9917 | }, { |
| 9918 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9919 | .block_erase = spi_block_erase_c7, |
| 9920 | } |
| 9921 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9922 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9923 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9924 | .write = spi_chip_write_256, |
| 9925 | .read = spi_chip_read, |
| 9926 | .voltage = {2700, 3600}, |
| 9927 | }, |
| 9928 | |
| 9929 | { |
| 9930 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9931 | .name = "M25P80", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9932 | .bustype = BUS_SPI, |
| 9933 | .manufacture_id = ST_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9934 | .model_id = ST_M25P80, |
| 9935 | .total_size = 1024, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9936 | .page_size = 256, |
| 9937 | .feature_bits = FEATURE_WRSR_WREN, |
| 9938 | .tested = TEST_OK_PREW, |
| 9939 | .probe = probe_spi_rdid, |
| 9940 | .probe_timing = TIMING_ZERO, |
| 9941 | .block_erasers = |
| 9942 | { |
| 9943 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9944 | .eraseblocks = { {64 * 1024, 16} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9945 | .block_erase = spi_block_erase_d8, |
| 9946 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9947 | .eraseblocks = { {1024 * 1024, 1} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9948 | .block_erase = spi_block_erase_c7, |
| 9949 | } |
| 9950 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9951 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9952 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9953 | .write = spi_chip_write_256, |
| 9954 | .read = spi_chip_read, |
| 9955 | .voltage = {2700, 3600}, |
| 9956 | }, |
| 9957 | |
| 9958 | { |
| 9959 | .vendor = "Micron/Numonyx/ST", |
| 9960 | .name = "M25PE10", |
| 9961 | .bustype = BUS_SPI, |
| 9962 | .manufacture_id = ST_ID, |
| 9963 | .model_id = ST_M25PE10, |
| 9964 | .total_size = 128, |
| 9965 | .page_size = 256, |
| 9966 | .feature_bits = FEATURE_WRSR_WREN, |
| 9967 | .tested = TEST_UNTESTED, |
| 9968 | .probe = probe_spi_rdid, |
| 9969 | .probe_timing = TIMING_ZERO, |
| 9970 | .block_erasers = |
| 9971 | { |
| 9972 | { |
| 9973 | .eraseblocks = { {4 * 1024, 32} }, |
| 9974 | .block_erase = spi_block_erase_20, |
| 9975 | }, { |
| 9976 | .eraseblocks = { {64 * 1024, 2} }, |
| 9977 | .block_erase = spi_block_erase_d8, |
| 9978 | }, { |
| 9979 | .eraseblocks = { {128 * 1024, 1} }, |
| 9980 | .block_erase = spi_block_erase_c7, |
| 9981 | } |
| 9982 | }, |
| 9983 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 9984 | .unlock = spi_disable_blockprotect, |
| 9985 | .write = spi_chip_write_256, |
| 9986 | .read = spi_chip_read, |
| 9987 | .voltage = {2700, 3600}, |
| 9988 | }, |
| 9989 | |
| 9990 | { |
| 9991 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9992 | .name = "M25PE16", |
| 9993 | .bustype = BUS_SPI, |
| 9994 | .manufacture_id = ST_ID, |
| 9995 | .model_id = ST_M25PE16, |
| 9996 | .total_size = 2048, |
| 9997 | .page_size = 256, |
| 9998 | .feature_bits = FEATURE_WRSR_WREN, |
| 9999 | .tested = TEST_UNTESTED, |
| 10000 | .probe = probe_spi_rdid, |
| 10001 | .probe_timing = TIMING_ZERO, |
| 10002 | .block_erasers = |
| 10003 | { |
| 10004 | { |
| 10005 | .eraseblocks = { {4 * 1024, 512} }, |
| 10006 | .block_erase = spi_block_erase_20, |
| 10007 | }, { |
| 10008 | .eraseblocks = { {64 * 1024, 32} }, |
| 10009 | .block_erase = spi_block_erase_d8, |
| 10010 | }, { |
| 10011 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10012 | .block_erase = spi_block_erase_c7, |
| 10013 | } |
| 10014 | }, |
| 10015 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 10016 | .unlock = spi_disable_blockprotect, |
| 10017 | .write = spi_chip_write_256, |
| 10018 | .read = spi_chip_read, |
| 10019 | .voltage = {2700, 3600}, |
| 10020 | }, |
| 10021 | |
| 10022 | { |
| 10023 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10024 | .name = "M25PE20", |
| 10025 | .bustype = BUS_SPI, |
| 10026 | .manufacture_id = ST_ID, |
| 10027 | .model_id = ST_M25PE20, |
| 10028 | .total_size = 256, |
| 10029 | .page_size = 256, |
| 10030 | .feature_bits = FEATURE_WRSR_WREN, |
| 10031 | .tested = TEST_UNTESTED, |
| 10032 | .probe = probe_spi_rdid, |
| 10033 | .probe_timing = TIMING_ZERO, |
| 10034 | .block_erasers = |
| 10035 | { |
| 10036 | { |
| 10037 | .eraseblocks = { {4 * 1024, 64} }, |
| 10038 | .block_erase = spi_block_erase_20, |
| 10039 | }, { |
| 10040 | .eraseblocks = { {64 * 1024, 4} }, |
| 10041 | .block_erase = spi_block_erase_d8, |
| 10042 | }, { |
| 10043 | .eraseblocks = { {256 * 1024, 1} }, |
| 10044 | .block_erase = spi_block_erase_c7, |
| 10045 | } |
| 10046 | }, |
| 10047 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 10048 | .unlock = spi_disable_blockprotect, |
| 10049 | .write = spi_chip_write_256, |
| 10050 | .read = spi_chip_read, |
| 10051 | .voltage = {2700, 3600}, |
| 10052 | }, |
| 10053 | |
| 10054 | { |
| 10055 | .vendor = "Micron/Numonyx/ST", |
| 10056 | .name = "M25PE40", |
| 10057 | .bustype = BUS_SPI, |
| 10058 | .manufacture_id = ST_ID, |
| 10059 | .model_id = ST_M25PE40, |
| 10060 | .total_size = 512, |
| 10061 | .page_size = 256, |
| 10062 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 10063 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10064 | .probe = probe_spi_rdid, |
| 10065 | .probe_timing = TIMING_ZERO, |
| 10066 | .block_erasers = |
| 10067 | { |
| 10068 | { |
| 10069 | .eraseblocks = { {4 * 1024, 128} }, |
| 10070 | .block_erase = spi_block_erase_20, |
| 10071 | }, { |
| 10072 | .eraseblocks = { {64 * 1024, 8} }, |
| 10073 | .block_erase = spi_block_erase_d8, |
| 10074 | }, { |
| 10075 | .eraseblocks = { {512 * 1024, 1} }, |
| 10076 | .block_erase = spi_block_erase_c7, |
| 10077 | } |
| 10078 | }, |
| 10079 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 10080 | .unlock = spi_disable_blockprotect, |
| 10081 | .write = spi_chip_write_256, |
| 10082 | .read = spi_chip_read, |
| 10083 | .voltage = {2700, 3600}, |
| 10084 | }, |
| 10085 | |
| 10086 | { |
| 10087 | .vendor = "Micron/Numonyx/ST", |
| 10088 | .name = "M25PE80", |
| 10089 | .bustype = BUS_SPI, |
| 10090 | .manufacture_id = ST_ID, |
| 10091 | .model_id = ST_M25PE80, |
| 10092 | .total_size = 1024, |
| 10093 | .page_size = 256, |
| 10094 | .feature_bits = FEATURE_WRSR_WREN, |
| 10095 | .tested = TEST_OK_PREW, |
| 10096 | .probe = probe_spi_rdid, |
| 10097 | .probe_timing = TIMING_ZERO, |
| 10098 | .block_erasers = |
| 10099 | { |
| 10100 | { |
| 10101 | .eraseblocks = { {4 * 1024, 256} }, |
| 10102 | .block_erase = spi_block_erase_20, |
| 10103 | }, { |
| 10104 | .eraseblocks = { {64 * 1024, 16} }, |
| 10105 | .block_erase = spi_block_erase_d8, |
| 10106 | }, { |
| 10107 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10108 | .block_erase = spi_block_erase_c7, |
| 10109 | } |
| 10110 | }, |
| 10111 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 10112 | .unlock = spi_disable_blockprotect, |
| 10113 | .write = spi_chip_write_256, |
| 10114 | .read = spi_chip_read, |
| 10115 | .voltage = {2700, 3600}, |
| 10116 | }, |
| 10117 | |
| 10118 | { |
| 10119 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10120 | .name = "M25PX16", |
| 10121 | .bustype = BUS_SPI, |
| 10122 | .manufacture_id = ST_ID, |
| 10123 | .model_id = ST_M25PX16, |
| 10124 | .total_size = 2048, |
| 10125 | .page_size = 256, |
| 10126 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 10127 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10128 | .tested = TEST_OK_PREW, |
| 10129 | .probe = probe_spi_rdid, |
| 10130 | .probe_timing = TIMING_ZERO, |
| 10131 | .block_erasers = |
| 10132 | { |
| 10133 | { |
| 10134 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 10135 | .block_erase = spi_block_erase_20, |
| 10136 | }, { |
| 10137 | .eraseblocks = { {64 * 1024, 32} }, |
| 10138 | .block_erase = spi_block_erase_d8, |
| 10139 | }, { |
| 10140 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10141 | .block_erase = spi_block_erase_c7, |
| 10142 | } |
| 10143 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10144 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10145 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 10146 | .write = spi_chip_write_256, |
| 10147 | .read = spi_chip_read, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 10148 | .voltage = {2300, 3600}, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10149 | }, |
| 10150 | |
| 10151 | { |
| 10152 | .vendor = "Micron/Numonyx/ST", |
| 10153 | .name = "M25PX32", |
| 10154 | .bustype = BUS_SPI, |
| 10155 | .manufacture_id = ST_ID, |
| 10156 | .model_id = ST_M25PX32, |
| 10157 | .total_size = 4096, |
| 10158 | .page_size = 256, |
| 10159 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 10160 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10161 | .tested = TEST_OK_PRE, |
| 10162 | .probe = probe_spi_rdid, |
| 10163 | .probe_timing = TIMING_ZERO, |
| 10164 | .block_erasers = |
| 10165 | { |
| 10166 | { |
| 10167 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 10168 | .block_erase = spi_block_erase_20, |
| 10169 | }, { |
| 10170 | .eraseblocks = { {64 * 1024, 64} }, |
| 10171 | .block_erase = spi_block_erase_d8, |
| 10172 | }, { |
| 10173 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10174 | .block_erase = spi_block_erase_c7, |
| 10175 | } |
| 10176 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10177 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10178 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 10179 | .write = spi_chip_write_256, |
| 10180 | .read = spi_chip_read, |
| 10181 | .voltage = {2700, 3600}, |
| 10182 | }, |
| 10183 | |
| 10184 | { |
| 10185 | .vendor = "Micron/Numonyx/ST", |
| 10186 | .name = "M25PX64", |
| 10187 | .bustype = BUS_SPI, |
| 10188 | .manufacture_id = ST_ID, |
| 10189 | .model_id = ST_M25PX64, |
| 10190 | .total_size = 8192, |
| 10191 | .page_size = 256, |
| 10192 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 10193 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 10194 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10195 | .probe = probe_spi_rdid, |
| 10196 | .probe_timing = TIMING_ZERO, |
| 10197 | .block_erasers = |
| 10198 | { |
| 10199 | { |
| 10200 | .eraseblocks = { { 4 * 1024, 2048 } }, |
| 10201 | .block_erase = spi_block_erase_20, |
| 10202 | }, { |
| 10203 | .eraseblocks = { {64 * 1024, 128} }, |
| 10204 | .block_erase = spi_block_erase_d8, |
| 10205 | }, { |
| 10206 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10207 | .block_erase = spi_block_erase_c7, |
| 10208 | } |
| 10209 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10210 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10211 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 10212 | .write = spi_chip_write_256, |
| 10213 | .read = spi_chip_read, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 10214 | .voltage = {2700, 3600}, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10215 | }, |
| 10216 | |
| 10217 | { |
| 10218 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10219 | .name = "M25PX80", |
| 10220 | .bustype = BUS_SPI, |
| 10221 | .manufacture_id = ST_ID, |
| 10222 | .model_id = ST_M25PX80, |
| 10223 | .total_size = 1024, |
| 10224 | .page_size = 256, |
| 10225 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10226 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10227 | .tested = TEST_OK_PREW, |
| 10228 | .probe = probe_spi_rdid, |
| 10229 | .probe_timing = TIMING_ZERO, |
| 10230 | .block_erasers = |
| 10231 | { |
| 10232 | { |
| 10233 | .eraseblocks = { { 4 * 1024, 256 } }, |
| 10234 | .block_erase = spi_block_erase_20, |
| 10235 | }, { |
| 10236 | .eraseblocks = { {64 * 1024, 16} }, |
| 10237 | .block_erase = spi_block_erase_d8, |
| 10238 | }, { |
| 10239 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10240 | .block_erase = spi_block_erase_c7, |
| 10241 | } |
| 10242 | }, |
| 10243 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
| 10244 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 10245 | .write = spi_chip_write_256, |
| 10246 | .read = spi_chip_read, |
| 10247 | .voltage = {2700, 3600}, |
| 10248 | }, |
| 10249 | |
| 10250 | { |
| 10251 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10252 | .name = "M45PE10", |
| 10253 | .bustype = BUS_SPI, |
| 10254 | .manufacture_id = ST_ID, |
| 10255 | .model_id = ST_M45PE10, |
| 10256 | .total_size = 128, |
| 10257 | .page_size = 256, |
| 10258 | .tested = TEST_UNTESTED, |
| 10259 | .probe = probe_spi_rdid, |
| 10260 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 10261 | .block_erasers = |
| 10262 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10263 | { |
| 10264 | .eraseblocks = { {256, 512} }, |
| 10265 | .block_erase = spi_block_erase_db, |
| 10266 | }, { |
| 10267 | .eraseblocks = { {64 * 1024, 2} }, |
| 10268 | .block_erase = spi_block_erase_d8, |
| 10269 | } |
| 10270 | }, |
| 10271 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 10272 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 10273 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 10274 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10275 | .voltage = {2700, 3600}, |
| 10276 | }, |
| 10277 | |
| 10278 | { |
| 10279 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10280 | .name = "M45PE16", |
| 10281 | .bustype = BUS_SPI, |
| 10282 | .manufacture_id = ST_ID, |
| 10283 | .model_id = ST_M45PE16, |
| 10284 | .total_size = 2048, |
| 10285 | .page_size = 256, |
| 10286 | .tested = TEST_UNTESTED, |
| 10287 | .probe = probe_spi_rdid, |
| 10288 | .probe_timing = TIMING_ZERO, |
| 10289 | .block_erasers = |
| 10290 | { |
| 10291 | { |
| 10292 | .eraseblocks = { {256, 8192} }, |
| 10293 | .block_erase = spi_block_erase_db, |
| 10294 | }, { |
| 10295 | .eraseblocks = { {64 * 1024, 32} }, |
| 10296 | .block_erase = spi_block_erase_d8, |
| 10297 | } |
| 10298 | }, |
| 10299 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 10300 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 10301 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 10302 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10303 | .voltage = {2700, 3600}, |
| 10304 | }, |
| 10305 | |
| 10306 | { |
| 10307 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10308 | .name = "M45PE20", |
| 10309 | .bustype = BUS_SPI, |
| 10310 | .manufacture_id = ST_ID, |
| 10311 | .model_id = ST_M45PE20, |
| 10312 | .total_size = 256, |
| 10313 | .page_size = 256, |
| 10314 | .tested = TEST_UNTESTED, |
| 10315 | .probe = probe_spi_rdid, |
| 10316 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 10317 | .block_erasers = |
| 10318 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10319 | { |
| 10320 | .eraseblocks = { {256, 1024} }, |
| 10321 | .block_erase = spi_block_erase_db, |
| 10322 | }, { |
| 10323 | .eraseblocks = { {64 * 1024, 4} }, |
| 10324 | .block_erase = spi_block_erase_d8, |
| 10325 | } |
| 10326 | }, |
| 10327 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 10328 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 10329 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 10330 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10331 | .voltage = {2700, 3600}, |
| 10332 | }, |
| 10333 | |
| 10334 | { |
| 10335 | .vendor = "Micron/Numonyx/ST", |
| 10336 | .name = "M45PE40", |
| 10337 | .bustype = BUS_SPI, |
| 10338 | .manufacture_id = ST_ID, |
| 10339 | .model_id = ST_M45PE40, |
| 10340 | .total_size = 512, |
| 10341 | .page_size = 256, |
| 10342 | .tested = TEST_UNTESTED, |
| 10343 | .probe = probe_spi_rdid, |
| 10344 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 10345 | .block_erasers = |
| 10346 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10347 | { |
| 10348 | .eraseblocks = { {256, 2048} }, |
| 10349 | .block_erase = spi_block_erase_db, |
| 10350 | }, { |
| 10351 | .eraseblocks = { {64 * 1024, 8} }, |
| 10352 | .block_erase = spi_block_erase_d8, |
| 10353 | } |
| 10354 | }, |
| 10355 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 10356 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 10357 | .write = spi_chip_write_256, /* Page write supported (similar to PP but allows 0->1 changes) */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10358 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10359 | .voltage = {2700, 3600}, |
| 10360 | }, |
| 10361 | |
| 10362 | { |
| 10363 | .vendor = "Micron/Numonyx/ST", |
| 10364 | .name = "M45PE80", |
| 10365 | .bustype = BUS_SPI, |
| 10366 | .manufacture_id = ST_ID, |
| 10367 | .model_id = ST_M45PE80, |
| 10368 | .total_size = 1024, |
| 10369 | .page_size = 256, |
| 10370 | .tested = TEST_UNTESTED, |
| 10371 | .probe = probe_spi_rdid, |
| 10372 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 10373 | .block_erasers = |
| 10374 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10375 | { |
| 10376 | .eraseblocks = { {256, 4096} }, |
| 10377 | .block_erase = spi_block_erase_db, |
| 10378 | }, { |
| 10379 | .eraseblocks = { {64 * 1024, 16} }, |
| 10380 | .block_erase = spi_block_erase_d8, |
| 10381 | } |
| 10382 | }, |
| 10383 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 10384 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 10385 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 10386 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10387 | .voltage = {2700, 3600}, |
| 10388 | }, |
| 10389 | |
| 10390 | { |
| 10391 | .vendor = "Micron/Numonyx/ST", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 10392 | .name = "N25Q00A..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 10393 | .bustype = BUS_SPI, |
| 10394 | .manufacture_id = ST_ID, |
| 10395 | .model_id = ST_N25Q00A__1G, |
| 10396 | .total_size = 131072, |
| 10397 | .page_size = 256, |
| 10398 | /* supports SFDP */ |
| 10399 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10400 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 10401 | .tested = TEST_UNTESTED, |
| 10402 | .probe = probe_spi_rdid, |
| 10403 | .probe_timing = TIMING_ZERO, |
| 10404 | .block_erasers = |
| 10405 | { |
| 10406 | { |
| 10407 | .eraseblocks = { {4 * 1024, 32768} }, |
| 10408 | .block_erase = spi_block_erase_21, |
| 10409 | }, { |
| 10410 | .eraseblocks = { {4 * 1024, 32768} }, |
| 10411 | .block_erase = spi_block_erase_20, |
| 10412 | }, { |
| 10413 | .eraseblocks = { {64 * 1024, 2048} }, |
| 10414 | .block_erase = spi_block_erase_dc, |
| 10415 | }, { |
| 10416 | .eraseblocks = { {64 * 1024, 2048} }, |
| 10417 | .block_erase = spi_block_erase_d8, |
| 10418 | }, { |
| 10419 | .eraseblocks = { {32768 * 1024, 4} }, |
| 10420 | .block_erase = spi_block_erase_c4, |
| 10421 | } |
| 10422 | }, |
| 10423 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10424 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10425 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10426 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10427 | .voltage = {1700, 2000}, |
| 10428 | }, |
| 10429 | |
| 10430 | { |
| 10431 | .vendor = "Micron/Numonyx/ST", |
| 10432 | .name = "N25Q00A..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */ |
| 10433 | .bustype = BUS_SPI, |
| 10434 | .manufacture_id = ST_ID, |
| 10435 | .model_id = ST_N25Q00A__3G, |
| 10436 | .total_size = 131072, |
| 10437 | .page_size = 256, |
| 10438 | /* supports SFDP */ |
| 10439 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10440 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 10441 | .tested = TEST_UNTESTED, |
| 10442 | .probe = probe_spi_rdid, |
| 10443 | .probe_timing = TIMING_ZERO, |
| 10444 | .block_erasers = |
| 10445 | { |
| 10446 | { |
| 10447 | .eraseblocks = { {4 * 1024, 32768} }, |
| 10448 | .block_erase = spi_block_erase_21, |
| 10449 | }, { |
| 10450 | .eraseblocks = { {4 * 1024, 32768} }, |
| 10451 | .block_erase = spi_block_erase_20, |
| 10452 | }, { |
| 10453 | .eraseblocks = { {64 * 1024, 2048} }, |
| 10454 | .block_erase = spi_block_erase_dc, |
| 10455 | }, { |
| 10456 | .eraseblocks = { {64 * 1024, 2048} }, |
| 10457 | .block_erase = spi_block_erase_d8, |
| 10458 | }, { |
| 10459 | .eraseblocks = { {32768 * 1024, 4} }, |
| 10460 | .block_erase = spi_block_erase_c4, |
| 10461 | } |
| 10462 | }, |
| 10463 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10464 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10465 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10466 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10467 | .voltage = {2700, 3600}, |
| 10468 | }, |
| 10469 | |
| 10470 | { |
| 10471 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10472 | .name = "N25Q016", |
| 10473 | .bustype = BUS_SPI, |
| 10474 | .manufacture_id = ST_ID, |
| 10475 | .model_id = ST_N25Q016__1E, |
| 10476 | .total_size = 2048, |
| 10477 | .page_size = 256, |
| 10478 | /* supports SFDP */ |
| 10479 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10480 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10481 | .tested = TEST_UNTESTED, |
| 10482 | .probe = probe_spi_rdid, |
| 10483 | .probe_timing = TIMING_ZERO, |
| 10484 | .block_erasers = |
| 10485 | { |
| 10486 | { |
| 10487 | .eraseblocks = { {4 * 1024, 512} }, |
| 10488 | .block_erase = spi_block_erase_20, |
| 10489 | }, { |
| 10490 | .eraseblocks = { {32 * 1024, 64} }, |
| 10491 | .block_erase = spi_block_erase_52, |
| 10492 | }, { |
| 10493 | .eraseblocks = { {64 * 1024, 32} }, |
| 10494 | .block_erase = spi_block_erase_d8, |
| 10495 | }, { |
| 10496 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10497 | .block_erase = spi_block_erase_c7, |
| 10498 | } |
| 10499 | }, |
| 10500 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10501 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10502 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10503 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10504 | .voltage = {1700, 2000}, |
| 10505 | }, |
| 10506 | |
| 10507 | { |
| 10508 | .vendor = "Micron/Numonyx/ST", |
| 10509 | .name = "N25Q032..1E", |
| 10510 | .bustype = BUS_SPI, |
| 10511 | .manufacture_id = ST_ID, |
| 10512 | .model_id = ST_N25Q032__1E, |
| 10513 | .total_size = 4096, |
| 10514 | .page_size = 256, |
| 10515 | /* supports SFDP */ |
| 10516 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10517 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10518 | .tested = TEST_UNTESTED, |
| 10519 | .probe = probe_spi_rdid, |
| 10520 | .probe_timing = TIMING_ZERO, |
| 10521 | .block_erasers = |
| 10522 | { |
| 10523 | { |
| 10524 | .eraseblocks = { {4 * 1024, 1024} }, |
| 10525 | .block_erase = spi_block_erase_20, |
| 10526 | }, { |
| 10527 | .eraseblocks = { {64 * 1024, 64} }, |
| 10528 | .block_erase = spi_block_erase_d8, |
| 10529 | }, { |
| 10530 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10531 | .block_erase = spi_block_erase_c7, |
| 10532 | } |
| 10533 | }, |
| 10534 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10535 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10536 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10537 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10538 | .voltage = {1700, 2000}, |
| 10539 | }, |
| 10540 | |
| 10541 | { |
| 10542 | .vendor = "Micron/Numonyx/ST", |
| 10543 | .name = "N25Q032..3E", |
| 10544 | .bustype = BUS_SPI, |
| 10545 | .manufacture_id = ST_ID, |
| 10546 | .model_id = ST_N25Q032__3E, |
| 10547 | .total_size = 4096, |
| 10548 | .page_size = 256, |
| 10549 | /* supports SFDP */ |
| 10550 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10551 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10552 | .tested = TEST_OK_PREW, |
| 10553 | .probe = probe_spi_rdid, |
| 10554 | .probe_timing = TIMING_ZERO, |
| 10555 | .block_erasers = |
| 10556 | { |
| 10557 | { |
| 10558 | .eraseblocks = { {4 * 1024, 1024} }, |
| 10559 | .block_erase = spi_block_erase_20, |
| 10560 | }, { |
| 10561 | .eraseblocks = { {64 * 1024, 64} }, |
| 10562 | .block_erase = spi_block_erase_d8, |
| 10563 | }, { |
| 10564 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10565 | .block_erase = spi_block_erase_c7, |
| 10566 | } |
| 10567 | }, |
| 10568 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10569 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10570 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10571 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10572 | .voltage = {2700, 3600}, |
| 10573 | }, |
| 10574 | |
| 10575 | { |
| 10576 | .vendor = "Micron/Numonyx/ST", |
| 10577 | .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 10578 | .bustype = BUS_SPI, |
| 10579 | .manufacture_id = ST_ID, |
| 10580 | .model_id = ST_N25Q064__1E, |
| 10581 | .total_size = 8192, |
| 10582 | .page_size = 256, |
| 10583 | /* supports SFDP */ |
| 10584 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10585 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 10586 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10587 | .probe = probe_spi_rdid, |
| 10588 | .probe_timing = TIMING_ZERO, |
| 10589 | .block_erasers = |
| 10590 | { |
| 10591 | { |
| 10592 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 10593 | .block_erase = spi_block_erase_20, |
| 10594 | }, { |
| 10595 | .eraseblocks = { {64 * 1024, 128} }, |
| 10596 | .block_erase = spi_block_erase_d8, |
| 10597 | }, { |
| 10598 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10599 | .block_erase = spi_block_erase_c7, |
| 10600 | } |
| 10601 | }, |
| 10602 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10603 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10604 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10605 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10606 | .voltage = {1700, 2000}, |
| 10607 | }, |
| 10608 | |
| 10609 | { |
| 10610 | .vendor = "Micron/Numonyx/ST", |
| 10611 | .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 10612 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 10613 | .manufacture_id = ST_ID, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10614 | .model_id = ST_N25Q064__3E, |
| 10615 | .total_size = 8192, |
| 10616 | .page_size = 256, |
| 10617 | /* supports SFDP */ |
| 10618 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10619 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10620 | .tested = TEST_OK_PREW, |
| 10621 | .probe = probe_spi_rdid, |
| 10622 | .probe_timing = TIMING_ZERO, |
| 10623 | .block_erasers = |
| 10624 | { |
| 10625 | { |
| 10626 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 10627 | .block_erase = spi_block_erase_20, |
| 10628 | }, { |
| 10629 | .eraseblocks = { {64 * 1024, 128} }, |
| 10630 | .block_erase = spi_block_erase_d8, |
| 10631 | }, { |
| 10632 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10633 | .block_erase = spi_block_erase_c7, |
| 10634 | } |
| 10635 | }, |
| 10636 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10637 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10638 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10639 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10640 | .voltage = {2700, 3600}, |
| 10641 | }, |
| 10642 | |
| 10643 | { |
| 10644 | .vendor = "Micron/Numonyx/ST", |
| 10645 | .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 10646 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 10647 | .manufacture_id = ST_ID, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10648 | .model_id = ST_N25Q128__1E, |
| 10649 | .total_size = 16384, |
| 10650 | .page_size = 256, |
| 10651 | /* supports SFDP */ |
| 10652 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10653 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 10654 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10655 | .probe = probe_spi_rdid, |
| 10656 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 10657 | .block_erasers = |
| 10658 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10659 | { |
| 10660 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 10661 | .block_erase = spi_block_erase_20, |
| 10662 | }, { |
| 10663 | .eraseblocks = { {64 * 1024, 256} }, |
| 10664 | .block_erase = spi_block_erase_d8, |
| 10665 | }, { |
| 10666 | .eraseblocks = { {16384 * 1024, 1} }, |
| 10667 | .block_erase = spi_block_erase_c7, |
| 10668 | } |
| 10669 | }, |
| 10670 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10671 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10672 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10673 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10674 | .voltage = {1700, 2000}, |
| 10675 | }, |
| 10676 | |
| 10677 | { |
| 10678 | .vendor = "Micron/Numonyx/ST", |
| 10679 | .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 10680 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 10681 | .manufacture_id = ST_ID, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10682 | .model_id = ST_N25Q128__3E, |
| 10683 | .total_size = 16384, |
| 10684 | .page_size = 256, |
| 10685 | /* supports SFDP */ |
| 10686 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10687 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10688 | .tested = TEST_OK_PREW, |
| 10689 | .probe = probe_spi_rdid, |
| 10690 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 10691 | .block_erasers = |
| 10692 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10693 | { |
| 10694 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 10695 | .block_erase = spi_block_erase_20, |
| 10696 | }, { |
| 10697 | .eraseblocks = { {64 * 1024, 256} }, |
| 10698 | .block_erase = spi_block_erase_d8, |
| 10699 | }, { |
| 10700 | .eraseblocks = { {16384 * 1024, 1} }, |
| 10701 | .block_erase = spi_block_erase_c7, |
| 10702 | } |
| 10703 | }, |
| 10704 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10705 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10706 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10707 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10708 | .voltage = {2700, 3600}, |
| 10709 | }, |
| 10710 | |
| 10711 | { |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 10712 | .vendor = "Micron/Numonyx/ST", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 10713 | .name = "N25Q256..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 10714 | .bustype = BUS_SPI, |
| 10715 | .manufacture_id = ST_ID, |
| 10716 | .model_id = ST_N25Q256__1E, |
| 10717 | .total_size = 32768, |
| 10718 | .page_size = 256, |
| 10719 | /* supports SFDP */ |
| 10720 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10721 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 10722 | .tested = TEST_UNTESTED, |
| 10723 | .probe = probe_spi_rdid, |
| 10724 | .probe_timing = TIMING_ZERO, |
| 10725 | .block_erasers = |
| 10726 | { |
| 10727 | { |
| 10728 | .eraseblocks = { {4 * 1024, 8192} }, |
| 10729 | .block_erase = spi_block_erase_21, |
| 10730 | }, { |
| 10731 | .eraseblocks = { {4 * 1024, 8192} }, |
| 10732 | .block_erase = spi_block_erase_20, |
| 10733 | }, { |
| 10734 | .eraseblocks = { {64 * 1024, 512} }, |
| 10735 | .block_erase = spi_block_erase_dc, |
| 10736 | }, { |
| 10737 | .eraseblocks = { {64 * 1024, 512} }, |
| 10738 | .block_erase = spi_block_erase_d8, |
| 10739 | }, { |
| 10740 | .eraseblocks = { {32768 * 1024, 1} }, |
| 10741 | .block_erase = spi_block_erase_c7, |
| 10742 | } |
| 10743 | }, |
| 10744 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10745 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10746 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10747 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10748 | .voltage = {1700, 2000}, |
| 10749 | }, |
| 10750 | |
| 10751 | { |
| 10752 | .vendor = "Micron/Numonyx/ST", |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 10753 | .name = "N25Q256..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 10754 | .bustype = BUS_SPI, |
| 10755 | .manufacture_id = ST_ID, |
| 10756 | .model_id = ST_N25Q256__3E, |
| 10757 | .total_size = 32768, |
| 10758 | .page_size = 256, |
| 10759 | /* supports SFDP */ |
| 10760 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10761 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 10762 | .tested = TEST_UNTESTED, |
| 10763 | .probe = probe_spi_rdid, |
| 10764 | .probe_timing = TIMING_ZERO, |
| 10765 | .block_erasers = |
| 10766 | { |
| 10767 | { |
| 10768 | .eraseblocks = { {4 * 1024, 8192} }, |
| 10769 | .block_erase = spi_block_erase_21, |
| 10770 | }, { |
| 10771 | .eraseblocks = { {4 * 1024, 8192} }, |
| 10772 | .block_erase = spi_block_erase_20, |
| 10773 | }, { |
| 10774 | .eraseblocks = { {64 * 1024, 512} }, |
| 10775 | .block_erase = spi_block_erase_dc, |
| 10776 | }, { |
| 10777 | .eraseblocks = { {64 * 1024, 512} }, |
| 10778 | .block_erase = spi_block_erase_d8, |
| 10779 | }, { |
| 10780 | .eraseblocks = { {32768 * 1024, 1} }, |
| 10781 | .block_erase = spi_block_erase_c7, |
| 10782 | } |
| 10783 | }, |
| 10784 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10785 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10786 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10787 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10788 | .voltage = {2700, 3600}, |
| 10789 | }, |
| 10790 | |
| 10791 | { |
| 10792 | .vendor = "Micron/Numonyx/ST", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 10793 | .name = "N25Q512..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */ |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 10794 | .bustype = BUS_SPI, |
| 10795 | .manufacture_id = ST_ID, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 10796 | .model_id = ST_N25Q512__1G, |
| 10797 | .total_size = 65536, |
| 10798 | .page_size = 256, |
| 10799 | /* supports SFDP */ |
| 10800 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10801 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 10802 | .tested = TEST_UNTESTED, |
| 10803 | .probe = probe_spi_rdid, |
| 10804 | .probe_timing = TIMING_ZERO, |
| 10805 | .block_erasers = |
| 10806 | { |
| 10807 | { |
| 10808 | .eraseblocks = { {4 * 1024, 16384} }, |
| 10809 | .block_erase = spi_block_erase_21, |
| 10810 | }, { |
| 10811 | .eraseblocks = { {4 * 1024, 16384} }, |
| 10812 | .block_erase = spi_block_erase_20, |
| 10813 | }, { |
| 10814 | .eraseblocks = { {64 * 1024, 1024} }, |
| 10815 | .block_erase = spi_block_erase_dc, |
| 10816 | }, { |
| 10817 | .eraseblocks = { {64 * 1024, 1024} }, |
| 10818 | .block_erase = spi_block_erase_d8, |
| 10819 | }, { |
| 10820 | .eraseblocks = { {32768 * 1024, 2} }, |
| 10821 | .block_erase = spi_block_erase_c4, |
| 10822 | } |
| 10823 | }, |
| 10824 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10825 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10826 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10827 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10828 | .voltage = {1700, 2000}, |
| 10829 | }, |
| 10830 | |
| 10831 | { |
| 10832 | .vendor = "Micron/Numonyx/ST", |
| 10833 | .name = "N25Q512..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */ |
| 10834 | .bustype = BUS_SPI, |
| 10835 | .manufacture_id = ST_ID, |
| 10836 | .model_id = ST_N25Q512__3G, |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 10837 | .total_size = 65536, |
| 10838 | .page_size = 256, |
| 10839 | /* supports SFDP */ |
| 10840 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10841 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 10842 | .tested = TEST_OK_PREW, |
| 10843 | .probe = probe_spi_rdid, |
| 10844 | .probe_timing = TIMING_ZERO, |
| 10845 | .block_erasers = |
| 10846 | { |
| 10847 | { |
| 10848 | .eraseblocks = { {4 * 1024, 16384} }, |
| 10849 | .block_erase = spi_block_erase_21, |
| 10850 | }, { |
| 10851 | .eraseblocks = { {4 * 1024, 16384} }, |
| 10852 | .block_erase = spi_block_erase_20, |
| 10853 | }, { |
| 10854 | .eraseblocks = { {64 * 1024, 1024} }, |
| 10855 | .block_erase = spi_block_erase_dc, |
| 10856 | }, { |
| 10857 | .eraseblocks = { {64 * 1024, 1024} }, |
| 10858 | .block_erase = spi_block_erase_d8, |
| 10859 | }, { |
Jacob Creedon | e8e7b0e | 2019-07-22 12:21:22 -0700 | [diff] [blame] | 10860 | .eraseblocks = { {32768 * 1024, 2} }, |
| 10861 | .block_erase = spi_block_erase_c4, |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 10862 | } |
| 10863 | }, |
| 10864 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10865 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10866 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10867 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10868 | .voltage = {2700, 3600}, |
| 10869 | }, |
| 10870 | |
| 10871 | { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10872 | .vendor = "Micron", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 10873 | .name = "MT25QL01G", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
| 10874 | .bustype = BUS_SPI, |
| 10875 | .manufacture_id = ST_ID, |
| 10876 | .model_id = ST_N25Q00A__3G, |
| 10877 | .total_size = 131072, |
| 10878 | .page_size = 256, |
| 10879 | /* supports SFDP */ |
| 10880 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10881 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 10882 | .tested = TEST_OK_PREW, |
| 10883 | .probe = probe_spi_rdid, |
| 10884 | .probe_timing = TIMING_ZERO, |
| 10885 | .block_erasers = |
| 10886 | { |
| 10887 | { |
| 10888 | .eraseblocks = { {4 * 1024, 32768} }, |
| 10889 | .block_erase = spi_block_erase_21, |
| 10890 | }, { |
| 10891 | .eraseblocks = { {4 * 1024, 32768} }, |
| 10892 | .block_erase = spi_block_erase_20, |
| 10893 | }, { |
| 10894 | .eraseblocks = { {32 * 1024, 4096} }, |
| 10895 | .block_erase = spi_block_erase_5c, |
| 10896 | }, { |
| 10897 | .eraseblocks = { {32 * 1024, 4096} }, |
| 10898 | .block_erase = spi_block_erase_52, |
| 10899 | }, { |
| 10900 | .eraseblocks = { {64 * 1024, 2048} }, |
| 10901 | .block_erase = spi_block_erase_dc, |
| 10902 | }, { |
| 10903 | .eraseblocks = { {64 * 1024, 2048} }, |
| 10904 | .block_erase = spi_block_erase_d8, |
| 10905 | }, { |
| 10906 | .eraseblocks = { {65536 * 1024, 2} }, |
| 10907 | .block_erase = spi_block_erase_c4, |
| 10908 | } |
| 10909 | }, |
| 10910 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10911 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10912 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10913 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10914 | .voltage = {2700, 3600}, |
| 10915 | }, |
| 10916 | |
| 10917 | { |
| 10918 | .vendor = "Micron", |
| 10919 | .name = "MT25QU01G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 10920 | .bustype = BUS_SPI, |
| 10921 | .manufacture_id = ST_ID, |
| 10922 | .model_id = ST_N25Q00A__1G, |
| 10923 | .total_size = 131072, |
| 10924 | .page_size = 256, |
| 10925 | /* supports SFDP */ |
| 10926 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10927 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 10928 | .tested = TEST_UNTESTED, |
| 10929 | .probe = probe_spi_rdid, |
| 10930 | .probe_timing = TIMING_ZERO, |
| 10931 | .block_erasers = |
| 10932 | { |
| 10933 | { |
| 10934 | .eraseblocks = { {4 * 1024, 32768} }, |
| 10935 | .block_erase = spi_block_erase_21, |
| 10936 | }, { |
| 10937 | .eraseblocks = { {4 * 1024, 32768} }, |
| 10938 | .block_erase = spi_block_erase_20, |
| 10939 | }, { |
| 10940 | .eraseblocks = { {32 * 1024, 4096} }, |
| 10941 | .block_erase = spi_block_erase_5c, |
| 10942 | }, { |
| 10943 | .eraseblocks = { {32 * 1024, 4096} }, |
| 10944 | .block_erase = spi_block_erase_52, |
| 10945 | }, { |
| 10946 | .eraseblocks = { {64 * 1024, 2048} }, |
| 10947 | .block_erase = spi_block_erase_dc, |
| 10948 | }, { |
| 10949 | .eraseblocks = { {64 * 1024, 2048} }, |
| 10950 | .block_erase = spi_block_erase_d8, |
| 10951 | }, { |
| 10952 | .eraseblocks = { {65536 * 1024, 2} }, |
| 10953 | .block_erase = spi_block_erase_c4, |
| 10954 | } |
| 10955 | }, |
| 10956 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10957 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10958 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10959 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10960 | .voltage = {1700, 2000}, |
| 10961 | }, |
| 10962 | |
| 10963 | { |
| 10964 | .vendor = "Micron", |
| 10965 | .name = "MT25QL02G", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
| 10966 | .bustype = BUS_SPI, |
| 10967 | .manufacture_id = ST_ID, |
| 10968 | .model_id = ST_MT25QL02G, |
| 10969 | .total_size = 262144, |
| 10970 | .page_size = 256, |
| 10971 | /* supports SFDP */ |
| 10972 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10973 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 10974 | .tested = TEST_UNTESTED, |
| 10975 | .probe = probe_spi_rdid, |
| 10976 | .probe_timing = TIMING_ZERO, |
| 10977 | .block_erasers = |
| 10978 | { |
| 10979 | { |
| 10980 | .eraseblocks = { {4 * 1024, 65536} }, |
| 10981 | .block_erase = spi_block_erase_21, |
| 10982 | }, { |
| 10983 | .eraseblocks = { {4 * 1024, 65536} }, |
| 10984 | .block_erase = spi_block_erase_20, |
| 10985 | }, { |
| 10986 | .eraseblocks = { {32 * 1024, 8192} }, |
| 10987 | .block_erase = spi_block_erase_5c, |
| 10988 | }, { |
| 10989 | .eraseblocks = { {32 * 1024, 8192} }, |
| 10990 | .block_erase = spi_block_erase_52, |
| 10991 | }, { |
| 10992 | .eraseblocks = { {64 * 1024, 4096} }, |
| 10993 | .block_erase = spi_block_erase_dc, |
| 10994 | }, { |
| 10995 | .eraseblocks = { {64 * 1024, 4096} }, |
| 10996 | .block_erase = spi_block_erase_d8, |
| 10997 | }, { |
| 10998 | .eraseblocks = { {65536 * 1024, 4} }, |
| 10999 | .block_erase = spi_block_erase_c4, |
| 11000 | } |
| 11001 | }, |
| 11002 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11003 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11004 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11005 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11006 | .voltage = {2700, 3600}, |
| 11007 | }, |
| 11008 | |
| 11009 | { |
| 11010 | .vendor = "Micron", |
| 11011 | .name = "MT25QU02G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11012 | .bustype = BUS_SPI, |
| 11013 | .manufacture_id = ST_ID, |
| 11014 | .model_id = ST_MT25QU02G, |
| 11015 | .total_size = 262144, |
| 11016 | .page_size = 256, |
| 11017 | /* supports SFDP */ |
| 11018 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11019 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11020 | .tested = TEST_UNTESTED, |
| 11021 | .probe = probe_spi_rdid, |
| 11022 | .probe_timing = TIMING_ZERO, |
| 11023 | .block_erasers = |
| 11024 | { |
| 11025 | { |
| 11026 | .eraseblocks = { {4 * 1024, 65536} }, |
| 11027 | .block_erase = spi_block_erase_21, |
| 11028 | }, { |
| 11029 | .eraseblocks = { {4 * 1024, 65536} }, |
| 11030 | .block_erase = spi_block_erase_20, |
| 11031 | }, { |
| 11032 | .eraseblocks = { {32 * 1024, 8192} }, |
| 11033 | .block_erase = spi_block_erase_5c, |
| 11034 | }, { |
| 11035 | .eraseblocks = { {32 * 1024, 8192} }, |
| 11036 | .block_erase = spi_block_erase_52, |
| 11037 | }, { |
| 11038 | .eraseblocks = { {64 * 1024, 4096} }, |
| 11039 | .block_erase = spi_block_erase_dc, |
| 11040 | }, { |
| 11041 | .eraseblocks = { {64 * 1024, 4096} }, |
| 11042 | .block_erase = spi_block_erase_d8, |
| 11043 | }, { |
| 11044 | .eraseblocks = { {65536 * 1024, 4} }, |
| 11045 | .block_erase = spi_block_erase_c4, |
| 11046 | } |
| 11047 | }, |
| 11048 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11049 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11050 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11051 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11052 | .voltage = {1700, 2000}, |
| 11053 | }, |
| 11054 | |
| 11055 | { |
| 11056 | .vendor = "Micron", |
| 11057 | .name = "MT25QU128", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11058 | .bustype = BUS_SPI, |
| 11059 | .manufacture_id = ST_ID, |
| 11060 | .model_id = ST_N25Q128__1E, |
| 11061 | .total_size = 16384, |
| 11062 | .page_size = 256, |
| 11063 | /* supports SFDP */ |
| 11064 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11065 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11066 | .tested = TEST_UNTESTED, |
| 11067 | .probe = probe_spi_rdid, |
| 11068 | .probe_timing = TIMING_ZERO, |
| 11069 | .block_erasers = |
| 11070 | { |
| 11071 | { |
| 11072 | .eraseblocks = { {4 * 1024, 4096} }, |
| 11073 | .block_erase = spi_block_erase_20, |
| 11074 | }, { |
| 11075 | .eraseblocks = { {32 * 1024, 512} }, |
| 11076 | .block_erase = spi_block_erase_52, |
| 11077 | }, { |
| 11078 | .eraseblocks = { {64 * 1024, 256} }, |
| 11079 | .block_erase = spi_block_erase_d8, |
| 11080 | }, { |
| 11081 | .eraseblocks = { {16384 * 1024, 1} }, |
| 11082 | .block_erase = spi_block_erase_c7, |
| 11083 | }, { |
| 11084 | .eraseblocks = { {16384 * 1024, 1} }, |
| 11085 | .block_erase = spi_block_erase_60, |
| 11086 | } |
| 11087 | }, |
| 11088 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11089 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11090 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11091 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11092 | .voltage = {1700, 2000}, |
| 11093 | }, |
| 11094 | |
| 11095 | { |
| 11096 | .vendor = "Micron", |
| 11097 | .name = "MT25QL128", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
| 11098 | .bustype = BUS_SPI, |
| 11099 | .manufacture_id = ST_ID, |
| 11100 | .model_id = ST_N25Q128__3E, |
| 11101 | .total_size = 16384, |
| 11102 | .page_size = 256, |
| 11103 | /* supports SFDP */ |
| 11104 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11105 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11106 | .tested = TEST_UNTESTED, |
| 11107 | .probe = probe_spi_rdid, |
| 11108 | .probe_timing = TIMING_ZERO, |
| 11109 | .block_erasers = |
| 11110 | { |
| 11111 | { |
| 11112 | .eraseblocks = { {4 * 1024, 4096} }, |
| 11113 | .block_erase = spi_block_erase_20, |
| 11114 | }, { |
| 11115 | .eraseblocks = { {32 * 1024, 512} }, |
| 11116 | .block_erase = spi_block_erase_52, |
| 11117 | }, { |
| 11118 | .eraseblocks = { {64 * 1024, 256} }, |
| 11119 | .block_erase = spi_block_erase_d8, |
| 11120 | }, { |
| 11121 | .eraseblocks = { {16384 * 1024, 1} }, |
| 11122 | .block_erase = spi_block_erase_c7, |
| 11123 | }, { |
| 11124 | .eraseblocks = { {16384 * 1024, 1} }, |
| 11125 | .block_erase = spi_block_erase_60, |
| 11126 | } |
| 11127 | }, |
| 11128 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11129 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11130 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11131 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11132 | .voltage = {2700, 3600}, |
| 11133 | }, |
| 11134 | |
| 11135 | { |
| 11136 | .vendor = "Micron", |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 11137 | .name = "MT25QL256", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11138 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 11139 | .manufacture_id = ST_ID, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11140 | .model_id = ST_N25Q256__3E, |
| 11141 | .total_size = 32768, |
| 11142 | .page_size = 256, |
| 11143 | /* supports SFDP */ |
| 11144 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 11145 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11146 | .tested = TEST_UNTESTED, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11147 | .probe = probe_spi_rdid, |
| 11148 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 11149 | .block_erasers = |
| 11150 | { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11151 | { |
| 11152 | .eraseblocks = { {4 * 1024, 8192} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 11153 | .block_erase = spi_block_erase_21, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11154 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 11155 | .eraseblocks = { {4 * 1024, 8192} }, |
| 11156 | .block_erase = spi_block_erase_20, |
| 11157 | }, { |
Jacob Creedon | 045b97e | 2019-07-22 12:26:56 -0700 | [diff] [blame] | 11158 | .eraseblocks = { {32 * 1024, 1024} }, |
| 11159 | .block_erase = spi_block_erase_5c, |
| 11160 | }, { |
| 11161 | .eraseblocks = { {32 * 1024, 1024} }, |
| 11162 | .block_erase = spi_block_erase_52, |
| 11163 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11164 | .eraseblocks = { {64 * 1024, 512} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 11165 | .block_erase = spi_block_erase_dc, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11166 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 11167 | .eraseblocks = { {64 * 1024, 512} }, |
| 11168 | .block_erase = spi_block_erase_d8, |
| 11169 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11170 | .eraseblocks = { {32768 * 1024, 1} }, |
| 11171 | .block_erase = spi_block_erase_c7, |
Jacob Creedon | 045b97e | 2019-07-22 12:26:56 -0700 | [diff] [blame] | 11172 | }, { |
| 11173 | .eraseblocks = { {32768 * 1024, 1} }, |
| 11174 | .block_erase = spi_block_erase_60, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11175 | } |
| 11176 | }, |
| 11177 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11178 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11179 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11180 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11181 | .voltage = {2700, 3600}, |
| 11182 | }, |
| 11183 | |
| 11184 | { |
| 11185 | .vendor = "Micron", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11186 | .name = "MT25QU256", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11187 | .bustype = BUS_SPI, |
| 11188 | .manufacture_id = ST_ID, |
| 11189 | .model_id = ST_N25Q256__1E, |
| 11190 | .total_size = 32768, |
| 11191 | .page_size = 256, |
| 11192 | /* supports SFDP */ |
| 11193 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11194 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11195 | .tested = TEST_UNTESTED, |
| 11196 | .probe = probe_spi_rdid, |
| 11197 | .probe_timing = TIMING_ZERO, |
| 11198 | .block_erasers = |
| 11199 | { |
| 11200 | { |
| 11201 | .eraseblocks = { {4 * 1024, 8192} }, |
| 11202 | .block_erase = spi_block_erase_21, |
| 11203 | }, { |
| 11204 | .eraseblocks = { {4 * 1024, 8192} }, |
| 11205 | .block_erase = spi_block_erase_20, |
| 11206 | }, { |
| 11207 | .eraseblocks = { {32 * 1024, 1024} }, |
| 11208 | .block_erase = spi_block_erase_5c, |
| 11209 | }, { |
| 11210 | .eraseblocks = { {32 * 1024, 1024} }, |
| 11211 | .block_erase = spi_block_erase_52, |
| 11212 | }, { |
| 11213 | .eraseblocks = { {64 * 1024, 512} }, |
| 11214 | .block_erase = spi_block_erase_dc, |
| 11215 | }, { |
| 11216 | .eraseblocks = { {64 * 1024, 512} }, |
| 11217 | .block_erase = spi_block_erase_d8, |
| 11218 | }, { |
| 11219 | .eraseblocks = { {32768 * 1024, 1} }, |
| 11220 | .block_erase = spi_block_erase_c7, |
| 11221 | }, { |
| 11222 | .eraseblocks = { {32768 * 1024, 1} }, |
| 11223 | .block_erase = spi_block_erase_60, |
| 11224 | } |
| 11225 | }, |
| 11226 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11227 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11228 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11229 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11230 | .voltage = {1700, 2000}, |
| 11231 | }, |
| 11232 | |
| 11233 | { |
| 11234 | .vendor = "Micron", |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 11235 | .name = "MT25QL512", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11236 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 11237 | .manufacture_id = ST_ID, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11238 | .model_id = ST_N25Q512__3G, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11239 | .total_size = 65536, |
| 11240 | .page_size = 256, |
| 11241 | /* supports SFDP */ |
| 11242 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 11243 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
Angel Pons | 3ed5a35 | 2018-09-30 16:31:09 +0200 | [diff] [blame] | 11244 | .tested = TEST_OK_PREW, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11245 | .probe = probe_spi_rdid, |
| 11246 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 11247 | .block_erasers = |
| 11248 | { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11249 | { |
| 11250 | .eraseblocks = { {4 * 1024, 16384} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 11251 | .block_erase = spi_block_erase_21, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11252 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 11253 | .eraseblocks = { {4 * 1024, 16384} }, |
| 11254 | .block_erase = spi_block_erase_20, |
| 11255 | }, { |
Jacob Creedon | 045b97e | 2019-07-22 12:26:56 -0700 | [diff] [blame] | 11256 | .eraseblocks = { {32 * 1024, 2048} }, |
| 11257 | .block_erase = spi_block_erase_5c, |
| 11258 | }, { |
| 11259 | .eraseblocks = { {32 * 1024, 2048} }, |
| 11260 | .block_erase = spi_block_erase_52, |
| 11261 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11262 | .eraseblocks = { {64 * 1024, 1024} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 11263 | .block_erase = spi_block_erase_dc, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11264 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 11265 | .eraseblocks = { {64 * 1024, 1024} }, |
| 11266 | .block_erase = spi_block_erase_d8, |
| 11267 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11268 | .eraseblocks = { {65536 * 1024, 1} }, |
| 11269 | .block_erase = spi_block_erase_c7, |
Jacob Creedon | 045b97e | 2019-07-22 12:26:56 -0700 | [diff] [blame] | 11270 | }, { |
| 11271 | .eraseblocks = { {65536 * 1024, 1} }, |
| 11272 | .block_erase = spi_block_erase_60, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11273 | } |
| 11274 | }, |
| 11275 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11276 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11277 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11278 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11279 | .voltage = {2700, 3600}, |
| 11280 | }, |
| 11281 | |
| 11282 | { |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11283 | .vendor = "Micron", |
| 11284 | .name = "MT25QU512", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11285 | .bustype = BUS_SPI, |
| 11286 | .manufacture_id = ST_ID, |
| 11287 | .model_id = ST_N25Q512__1G, |
| 11288 | .total_size = 65536, |
| 11289 | .page_size = 256, |
| 11290 | /* supports SFDP */ |
| 11291 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11292 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11293 | .tested = TEST_OK_PREW, |
| 11294 | .probe = probe_spi_rdid, |
| 11295 | .probe_timing = TIMING_ZERO, |
| 11296 | .block_erasers = |
| 11297 | { |
| 11298 | { |
| 11299 | .eraseblocks = { {4 * 1024, 16384} }, |
| 11300 | .block_erase = spi_block_erase_21, |
| 11301 | }, { |
| 11302 | .eraseblocks = { {4 * 1024, 16384} }, |
| 11303 | .block_erase = spi_block_erase_20, |
| 11304 | }, { |
| 11305 | .eraseblocks = { {32 * 1024, 2048} }, |
| 11306 | .block_erase = spi_block_erase_5c, |
| 11307 | }, { |
| 11308 | .eraseblocks = { {32 * 1024, 2048} }, |
| 11309 | .block_erase = spi_block_erase_52, |
| 11310 | }, { |
| 11311 | .eraseblocks = { {64 * 1024, 1024} }, |
| 11312 | .block_erase = spi_block_erase_dc, |
| 11313 | }, { |
| 11314 | .eraseblocks = { {64 * 1024, 1024} }, |
| 11315 | .block_erase = spi_block_erase_d8, |
| 11316 | }, { |
| 11317 | .eraseblocks = { {65536 * 1024, 1} }, |
| 11318 | .block_erase = spi_block_erase_c7, |
| 11319 | }, { |
| 11320 | .eraseblocks = { {65536 * 1024, 1} }, |
| 11321 | .block_erase = spi_block_erase_60, |
| 11322 | } |
| 11323 | }, |
| 11324 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11325 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11326 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11327 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11328 | .voltage = {1700, 2000}, |
| 11329 | }, |
| 11330 | |
| 11331 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11332 | .vendor = "MoselVitelic", |
| 11333 | .name = "V29C51000B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11334 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11335 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11336 | .model_id = MVC_V29C51000B, |
| 11337 | .total_size = 64, |
| 11338 | .page_size = 512, |
| 11339 | .feature_bits = FEATURE_EITHER_RESET, |
| 11340 | .tested = TEST_UNTESTED, |
| 11341 | .probe = probe_jedec, |
| 11342 | .probe_timing = TIMING_ZERO, |
| 11343 | .block_erasers = |
| 11344 | { |
| 11345 | { |
| 11346 | .eraseblocks = { {512, 128} }, |
| 11347 | .block_erase = erase_sector_jedec, |
| 11348 | }, { |
| 11349 | .eraseblocks = { {64 * 1024, 1} }, |
| 11350 | .block_erase = erase_chip_block_jedec, |
| 11351 | }, |
| 11352 | }, |
| 11353 | .write = write_jedec_1, |
| 11354 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11355 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11356 | }, |
| 11357 | |
| 11358 | { |
| 11359 | .vendor = "MoselVitelic", |
| 11360 | .name = "V29C51000T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11361 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11362 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11363 | .model_id = MVC_V29C51000T, |
| 11364 | .total_size = 64, |
| 11365 | .page_size = 512, |
| 11366 | .feature_bits = FEATURE_EITHER_RESET, |
| 11367 | .tested = TEST_UNTESTED, |
| 11368 | .probe = probe_jedec, |
| 11369 | .probe_timing = TIMING_ZERO, |
| 11370 | .block_erasers = |
| 11371 | { |
| 11372 | { |
| 11373 | .eraseblocks = { {512, 128} }, |
| 11374 | .block_erase = erase_sector_jedec, |
| 11375 | }, { |
| 11376 | .eraseblocks = { {64 * 1024, 1} }, |
| 11377 | .block_erase = erase_chip_block_jedec, |
| 11378 | }, |
| 11379 | }, |
| 11380 | .write = write_jedec_1, |
| 11381 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11382 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11383 | }, |
| 11384 | |
| 11385 | { |
| 11386 | .vendor = "MoselVitelic", |
| 11387 | .name = "V29C51400B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11388 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11389 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11390 | .model_id = MVC_V29C51400B, |
| 11391 | .total_size = 512, |
| 11392 | .page_size = 1024, |
| 11393 | .feature_bits = FEATURE_EITHER_RESET, |
| 11394 | .tested = TEST_UNTESTED, |
| 11395 | .probe = probe_jedec, |
| 11396 | .probe_timing = TIMING_ZERO, |
| 11397 | .block_erasers = |
| 11398 | { |
| 11399 | { |
| 11400 | .eraseblocks = { {1024, 512} }, |
| 11401 | .block_erase = erase_sector_jedec, |
| 11402 | }, { |
| 11403 | .eraseblocks = { {512 * 1024, 1} }, |
| 11404 | .block_erase = erase_chip_block_jedec, |
| 11405 | }, |
| 11406 | }, |
| 11407 | .write = write_jedec_1, |
| 11408 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11409 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11410 | }, |
| 11411 | |
| 11412 | { |
| 11413 | .vendor = "MoselVitelic", |
| 11414 | .name = "V29C51400T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11415 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11416 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11417 | .model_id = MVC_V29C51400T, |
| 11418 | .total_size = 512, |
| 11419 | .page_size = 1024, |
| 11420 | .feature_bits = FEATURE_EITHER_RESET, |
| 11421 | .tested = TEST_UNTESTED, |
| 11422 | .probe = probe_jedec, |
| 11423 | .probe_timing = TIMING_ZERO, |
| 11424 | .block_erasers = |
| 11425 | { |
| 11426 | { |
| 11427 | .eraseblocks = { {1024, 512} }, |
| 11428 | .block_erase = erase_sector_jedec, |
| 11429 | }, { |
| 11430 | .eraseblocks = { {512 * 1024, 1} }, |
| 11431 | .block_erase = erase_chip_block_jedec, |
| 11432 | }, |
| 11433 | }, |
| 11434 | .write = write_jedec_1, |
| 11435 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11436 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11437 | }, |
| 11438 | |
| 11439 | { |
| 11440 | .vendor = "MoselVitelic", |
| 11441 | .name = "V29LC51000", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11442 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11443 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11444 | .model_id = MVC_V29LC51000, |
| 11445 | .total_size = 64, |
| 11446 | .page_size = 512, |
| 11447 | .feature_bits = FEATURE_EITHER_RESET, |
| 11448 | .tested = TEST_UNTESTED, |
| 11449 | .probe = probe_jedec, |
| 11450 | .probe_timing = TIMING_ZERO, |
| 11451 | .block_erasers = |
| 11452 | { |
| 11453 | { |
| 11454 | .eraseblocks = { {512, 128} }, |
| 11455 | .block_erase = erase_sector_jedec, |
| 11456 | }, { |
| 11457 | .eraseblocks = { {64 * 1024, 1} }, |
| 11458 | .block_erase = erase_chip_block_jedec, |
| 11459 | }, |
| 11460 | }, |
| 11461 | .write = write_jedec_1, |
| 11462 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11463 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11464 | }, |
| 11465 | |
| 11466 | { |
| 11467 | .vendor = "MoselVitelic", |
| 11468 | .name = "V29LC51001", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11469 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11470 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11471 | .model_id = MVC_V29LC51001, |
| 11472 | .total_size = 128, |
| 11473 | .page_size = 512, |
| 11474 | .feature_bits = FEATURE_EITHER_RESET, |
| 11475 | .tested = TEST_UNTESTED, |
| 11476 | .probe = probe_jedec, |
| 11477 | .probe_timing = TIMING_ZERO, |
| 11478 | .block_erasers = |
| 11479 | { |
| 11480 | { |
| 11481 | .eraseblocks = { {512, 256} }, |
| 11482 | .block_erase = erase_sector_jedec, |
| 11483 | }, { |
| 11484 | .eraseblocks = { {128 * 1024, 1} }, |
| 11485 | .block_erase = erase_chip_block_jedec, |
| 11486 | }, |
| 11487 | }, |
| 11488 | .write = write_jedec_1, |
| 11489 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11490 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11491 | }, |
| 11492 | |
| 11493 | { |
| 11494 | .vendor = "MoselVitelic", |
| 11495 | .name = "V29LC51002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11496 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11497 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11498 | .model_id = MVC_V29LC51002, |
| 11499 | .total_size = 256, |
| 11500 | .page_size = 512, |
| 11501 | .feature_bits = FEATURE_EITHER_RESET, |
| 11502 | .tested = TEST_UNTESTED, |
| 11503 | .probe = probe_jedec, |
| 11504 | .probe_timing = TIMING_ZERO, |
| 11505 | .block_erasers = |
| 11506 | { |
| 11507 | { |
| 11508 | .eraseblocks = { {512, 512} }, |
| 11509 | .block_erase = erase_sector_jedec, |
| 11510 | }, { |
| 11511 | .eraseblocks = { {256 * 1024, 1} }, |
| 11512 | .block_erase = erase_chip_block_jedec, |
| 11513 | }, |
| 11514 | }, |
| 11515 | .write = write_jedec_1, |
| 11516 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11517 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11518 | }, |
| 11519 | |
| 11520 | { |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 11521 | .vendor = "Nantronics", |
| 11522 | .name = "N25S10", |
| 11523 | .bustype = BUS_SPI, |
| 11524 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 11525 | .model_id = NANTRONICS_N25S10, |
| 11526 | .total_size = 128, |
| 11527 | .page_size = 256, |
| 11528 | .feature_bits = FEATURE_WRSR_WREN, |
| 11529 | .tested = TEST_UNTESTED, |
| 11530 | .probe = probe_spi_rdid, |
| 11531 | .probe_timing = TIMING_ZERO, |
| 11532 | .block_erasers = |
| 11533 | { |
| 11534 | { |
| 11535 | .eraseblocks = { {4 * 1024, 32} }, |
| 11536 | .block_erase = spi_block_erase_20, |
| 11537 | }, { |
| 11538 | .eraseblocks = { {4 * 1024, 32} }, |
| 11539 | .block_erase = spi_block_erase_d7, |
| 11540 | }, { |
| 11541 | .eraseblocks = { {32 * 1024, 4} }, |
| 11542 | .block_erase = spi_block_erase_52, |
| 11543 | }, { |
| 11544 | .eraseblocks = { {64 * 1024, 2} }, |
| 11545 | .block_erase = spi_block_erase_d8, |
| 11546 | }, { |
| 11547 | .eraseblocks = { {128 * 1024, 1} }, |
| 11548 | .block_erase = spi_block_erase_60, |
| 11549 | }, { |
| 11550 | .eraseblocks = { {128 * 1024, 1} }, |
| 11551 | .block_erase = spi_block_erase_c7, |
| 11552 | } |
| 11553 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11554 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 11555 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11556 | .write = spi_chip_write_256, |
| 11557 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 11558 | .voltage = {2700, 3600}, |
| 11559 | }, |
| 11560 | |
| 11561 | { |
| 11562 | .vendor = "Nantronics", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11563 | .name = "N25S16", |
| 11564 | .bustype = BUS_SPI, |
| 11565 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 11566 | .model_id = NANTRONICS_N25S16, |
| 11567 | .total_size = 2048, |
| 11568 | .page_size = 256, |
| 11569 | .feature_bits = FEATURE_WRSR_WREN, |
| 11570 | .tested = TEST_UNTESTED, |
| 11571 | .probe = probe_spi_rdid, |
| 11572 | .probe_timing = TIMING_ZERO, |
| 11573 | .block_erasers = |
| 11574 | { |
| 11575 | { |
| 11576 | .eraseblocks = { {4 * 1024, 512} }, |
| 11577 | .block_erase = spi_block_erase_20, |
| 11578 | }, { |
| 11579 | .eraseblocks = { {64 * 1024, 32} }, |
| 11580 | .block_erase = spi_block_erase_d8, |
| 11581 | }, { |
| 11582 | .eraseblocks = { {2048 * 1024, 1} }, |
| 11583 | .block_erase = spi_block_erase_60, |
| 11584 | }, { |
| 11585 | .eraseblocks = { {2048 * 1024, 1} }, |
| 11586 | .block_erase = spi_block_erase_c7, |
| 11587 | } |
| 11588 | }, |
| 11589 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 11590 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11591 | .write = spi_chip_write_256, |
| 11592 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 11593 | .voltage = {2700, 3600}, |
| 11594 | }, |
| 11595 | |
| 11596 | { |
| 11597 | .vendor = "Nantronics", |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 11598 | .name = "N25S20", |
| 11599 | .bustype = BUS_SPI, |
| 11600 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 11601 | .model_id = NANTRONICS_N25S20, |
| 11602 | .total_size = 256, |
| 11603 | .page_size = 256, |
| 11604 | .feature_bits = FEATURE_WRSR_WREN, |
| 11605 | .tested = TEST_UNTESTED, |
| 11606 | .probe = probe_spi_rdid, |
| 11607 | .probe_timing = TIMING_ZERO, |
| 11608 | .block_erasers = |
| 11609 | { |
| 11610 | { |
| 11611 | .eraseblocks = { {4 * 1024, 64} }, |
| 11612 | .block_erase = spi_block_erase_20, |
| 11613 | }, { |
| 11614 | .eraseblocks = { {4 * 1024, 64} }, |
| 11615 | .block_erase = spi_block_erase_d7, |
| 11616 | }, { |
| 11617 | .eraseblocks = { {32 * 1024, 8} }, |
| 11618 | .block_erase = spi_block_erase_52, |
| 11619 | }, { |
| 11620 | .eraseblocks = { {64 * 1024, 4} }, |
| 11621 | .block_erase = spi_block_erase_d8, |
| 11622 | }, { |
| 11623 | .eraseblocks = { {256 * 1024, 1} }, |
| 11624 | .block_erase = spi_block_erase_60, |
| 11625 | }, { |
| 11626 | .eraseblocks = { {256 * 1024, 1} }, |
| 11627 | .block_erase = spi_block_erase_c7, |
| 11628 | } |
| 11629 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11630 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 11631 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11632 | .write = spi_chip_write_256, |
| 11633 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 11634 | .voltage = {2700, 3600}, |
| 11635 | }, |
| 11636 | |
| 11637 | { |
| 11638 | .vendor = "Nantronics", |
| 11639 | .name = "N25S40", |
| 11640 | .bustype = BUS_SPI, |
| 11641 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 11642 | .model_id = NANTRONICS_N25S40, |
| 11643 | .total_size = 512, |
| 11644 | .page_size = 256, |
| 11645 | .feature_bits = FEATURE_WRSR_WREN, |
| 11646 | .tested = TEST_UNTESTED, |
| 11647 | .probe = probe_spi_rdid, |
| 11648 | .probe_timing = TIMING_ZERO, |
| 11649 | .block_erasers = |
| 11650 | { |
| 11651 | { |
| 11652 | .eraseblocks = { {4 * 1024, 128} }, |
| 11653 | .block_erase = spi_block_erase_20, |
| 11654 | }, { |
| 11655 | .eraseblocks = { {4 * 1024, 128} }, |
| 11656 | .block_erase = spi_block_erase_d7, |
| 11657 | }, { |
| 11658 | .eraseblocks = { {32 * 1024, 16} }, |
| 11659 | .block_erase = spi_block_erase_52, |
| 11660 | }, { |
| 11661 | .eraseblocks = { {64 * 1024, 8} }, |
| 11662 | .block_erase = spi_block_erase_d8, |
| 11663 | }, { |
| 11664 | .eraseblocks = { {512 * 1024, 1} }, |
| 11665 | .block_erase = spi_block_erase_60, |
| 11666 | }, { |
| 11667 | .eraseblocks = { {512 * 1024, 1} }, |
| 11668 | .block_erase = spi_block_erase_c7, |
| 11669 | } |
| 11670 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11671 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 11672 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11673 | .write = spi_chip_write_256, |
| 11674 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 11675 | .voltage = {2700, 3600}, |
| 11676 | }, |
| 11677 | |
| 11678 | { |
| 11679 | .vendor = "Nantronics", |
| 11680 | .name = "N25S80", |
| 11681 | .bustype = BUS_SPI, |
| 11682 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 11683 | .model_id = NANTRONICS_N25S80, |
| 11684 | .total_size = 1024, |
| 11685 | .page_size = 256, |
| 11686 | .feature_bits = FEATURE_WRSR_WREN, |
| 11687 | .tested = TEST_UNTESTED, |
| 11688 | .probe = probe_spi_rdid, |
| 11689 | .probe_timing = TIMING_ZERO, |
| 11690 | .block_erasers = |
| 11691 | { |
| 11692 | { |
| 11693 | .eraseblocks = { {4 * 1024, 256} }, |
| 11694 | .block_erase = spi_block_erase_20, |
| 11695 | }, { |
| 11696 | .eraseblocks = { {32 * 1024, 32} }, |
| 11697 | .block_erase = spi_block_erase_52, |
| 11698 | }, { |
| 11699 | .eraseblocks = { {64 * 1024, 16} }, |
| 11700 | .block_erase = spi_block_erase_d8, |
| 11701 | }, { |
| 11702 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11703 | .block_erase = spi_block_erase_60, |
| 11704 | }, { |
| 11705 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11706 | .block_erase = spi_block_erase_c7, |
| 11707 | } |
| 11708 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11709 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 11710 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11711 | .write = spi_chip_write_256, |
| 11712 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 11713 | .voltage = {2700, 3600}, |
| 11714 | }, |
| 11715 | |
| 11716 | { |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 11717 | .vendor = "PMC", |
| 11718 | .name = "Pm25LD010(C)", |
| 11719 | .bustype = BUS_SPI, |
| 11720 | .manufacture_id = PMC_ID, |
| 11721 | .model_id = PMC_PM25LD010, |
| 11722 | .total_size = 128, |
| 11723 | .page_size = 256, |
| 11724 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 11725 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 11726 | .probe = probe_spi_rdid, |
| 11727 | .probe_timing = TIMING_ZERO, |
| 11728 | .block_erasers = |
| 11729 | { |
| 11730 | { |
| 11731 | .eraseblocks = { {4 * 1024, 32} }, |
| 11732 | .block_erase = spi_block_erase_20, |
| 11733 | }, { |
| 11734 | .eraseblocks = { {4 * 1024, 32} }, |
| 11735 | .block_erase = spi_block_erase_d7, |
| 11736 | }, { |
| 11737 | .eraseblocks = { {32 * 1024, 4} }, |
| 11738 | .block_erase = spi_block_erase_d8, |
| 11739 | }, { |
| 11740 | .eraseblocks = { {128 * 1024, 1} }, |
| 11741 | .block_erase = spi_block_erase_60, |
| 11742 | }, { |
| 11743 | .eraseblocks = { {128 * 1024, 1} }, |
| 11744 | .block_erase = spi_block_erase_c7, |
| 11745 | } |
| 11746 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11747 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 11748 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 11749 | .write = spi_chip_write_256, |
| 11750 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 11751 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */ |
| 11752 | }, |
| 11753 | |
| 11754 | { |
| 11755 | .vendor = "PMC", |
| 11756 | .name = "Pm25LD020(C)", |
| 11757 | .bustype = BUS_SPI, |
| 11758 | .manufacture_id = PMC_ID, |
| 11759 | .model_id = PMC_PM25LD020, |
| 11760 | .total_size = 256, |
| 11761 | .page_size = 256, |
| 11762 | .feature_bits = FEATURE_WRSR_WREN, |
Angel Pons | f5822a8 | 2018-09-30 20:09:58 +0200 | [diff] [blame] | 11763 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 11764 | .probe = probe_spi_rdid, |
| 11765 | .probe_timing = TIMING_ZERO, |
| 11766 | .block_erasers = |
| 11767 | { |
| 11768 | { |
| 11769 | .eraseblocks = { {4 * 1024, 64} }, |
| 11770 | .block_erase = spi_block_erase_20, |
| 11771 | }, { |
| 11772 | .eraseblocks = { {4 * 1024, 64} }, |
| 11773 | .block_erase = spi_block_erase_d7, |
| 11774 | }, { |
| 11775 | .eraseblocks = { {64 * 1024, 4} }, |
| 11776 | .block_erase = spi_block_erase_d8, |
| 11777 | }, { |
| 11778 | .eraseblocks = { {256 * 1024, 1} }, |
| 11779 | .block_erase = spi_block_erase_60, |
| 11780 | }, { |
| 11781 | .eraseblocks = { {256 * 1024, 1} }, |
| 11782 | .block_erase = spi_block_erase_c7, |
| 11783 | } |
| 11784 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11785 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 11786 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 11787 | .write = spi_chip_write_256, |
| 11788 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 11789 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */ |
| 11790 | }, |
| 11791 | |
| 11792 | { |
| 11793 | .vendor = "PMC", |
| 11794 | .name = "Pm25LD040(C)", |
| 11795 | .bustype = BUS_SPI, |
| 11796 | .manufacture_id = PMC_ID, |
| 11797 | .model_id = PMC_PM25LV040, |
| 11798 | .total_size = 512, |
| 11799 | .page_size = 256, |
| 11800 | .feature_bits = FEATURE_WRSR_WREN, |
Angel Pons | 05127bf | 2018-09-30 20:23:24 +0200 | [diff] [blame] | 11801 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 11802 | .probe = probe_spi_rdid, |
| 11803 | .probe_timing = TIMING_ZERO, |
| 11804 | .block_erasers = |
| 11805 | { |
| 11806 | { |
| 11807 | .eraseblocks = { {4 * 1024, 128} }, |
| 11808 | .block_erase = spi_block_erase_20, |
| 11809 | }, { |
| 11810 | .eraseblocks = { {4 * 1024, 128} }, |
| 11811 | .block_erase = spi_block_erase_d7, |
| 11812 | }, { |
| 11813 | .eraseblocks = { {64 * 1024, 8} }, |
| 11814 | .block_erase = spi_block_erase_d8, |
| 11815 | }, { |
| 11816 | .eraseblocks = { {512 * 1024, 1} }, |
| 11817 | .block_erase = spi_block_erase_60, |
| 11818 | }, { |
| 11819 | .eraseblocks = { {512 * 1024, 1} }, |
| 11820 | .block_erase = spi_block_erase_c7, |
| 11821 | } |
| 11822 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11823 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 11824 | .unlock = spi_disable_blockprotect, |
| 11825 | .write = spi_chip_write_256, |
| 11826 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 11827 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */ |
| 11828 | }, |
| 11829 | |
Steven Honeyman | 81a8fb7 | 2015-06-02 22:32:24 +0000 | [diff] [blame] | 11830 | { |
| 11831 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11832 | .name = "Pm25LD256C", |
| 11833 | .bustype = BUS_SPI, |
| 11834 | .manufacture_id = PMC_ID, |
| 11835 | .model_id = PMC_PM25LD256C, |
| 11836 | .total_size = 32, |
| 11837 | .page_size = 256, |
| 11838 | .feature_bits = FEATURE_WRSR_WREN, |
| 11839 | .tested = TEST_UNTESTED, |
| 11840 | .probe = probe_spi_rdid, |
| 11841 | .probe_timing = TIMING_ZERO, |
| 11842 | .block_erasers = |
| 11843 | { |
| 11844 | { |
| 11845 | .eraseblocks = { {4 * 1024, 8} }, |
| 11846 | .block_erase = spi_block_erase_20, |
| 11847 | }, { |
| 11848 | .eraseblocks = { {4 * 1024, 8} }, |
| 11849 | .block_erase = spi_block_erase_d7, |
| 11850 | }, { |
| 11851 | .eraseblocks = { {32 * 1024, 1} }, |
| 11852 | .block_erase = spi_block_erase_d8, |
| 11853 | }, { |
| 11854 | .eraseblocks = { {32 * 1024, 1} }, |
| 11855 | .block_erase = spi_block_erase_60, |
| 11856 | }, { |
| 11857 | .eraseblocks = { {32 * 1024, 1} }, |
| 11858 | .block_erase = spi_block_erase_c7, |
| 11859 | } |
| 11860 | }, |
| 11861 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 11862 | .unlock = spi_disable_blockprotect, |
| 11863 | .write = spi_chip_write_256, |
| 11864 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 11865 | .voltage = {2700, 3600}, |
| 11866 | }, |
| 11867 | |
| 11868 | { |
| 11869 | .vendor = "PMC", |
| 11870 | .name = "Pm25LD512(C)", |
| 11871 | .bustype = BUS_SPI, |
| 11872 | .manufacture_id = PMC_ID, |
| 11873 | .model_id = PMC_PM25LD512, |
| 11874 | .total_size = 64, |
| 11875 | .page_size = 256, |
| 11876 | .feature_bits = FEATURE_WRSR_WREN, |
| 11877 | .tested = TEST_OK_PREW, |
| 11878 | .probe = probe_spi_rdid, |
| 11879 | .probe_timing = TIMING_ZERO, |
| 11880 | .block_erasers = |
| 11881 | { |
| 11882 | { |
| 11883 | .eraseblocks = { {4 * 1024, 16} }, |
| 11884 | .block_erase = spi_block_erase_20, |
| 11885 | }, { |
| 11886 | .eraseblocks = { {4 * 1024, 16} }, |
| 11887 | .block_erase = spi_block_erase_d7, |
| 11888 | }, { |
| 11889 | .eraseblocks = { {32 * 1024, 2} }, |
| 11890 | .block_erase = spi_block_erase_d8, |
| 11891 | }, { |
| 11892 | .eraseblocks = { {64 * 1024, 1} }, |
| 11893 | .block_erase = spi_block_erase_60, |
| 11894 | }, { |
| 11895 | .eraseblocks = { {64 * 1024, 1} }, |
| 11896 | .block_erase = spi_block_erase_c7, |
| 11897 | } |
| 11898 | }, |
| 11899 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 11900 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 11901 | .write = spi_chip_write_256, |
| 11902 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 11903 | .voltage = {2300, 3600}, |
| 11904 | }, |
| 11905 | |
| 11906 | { |
| 11907 | .vendor = "PMC", |
| 11908 | .name = "Pm25LQ016", |
| 11909 | .bustype = BUS_SPI, |
| 11910 | .manufacture_id = PMC_ID, |
| 11911 | .model_id = PMC_PM25LQ016, |
| 11912 | .total_size = 2048, |
| 11913 | .page_size = 256, |
| 11914 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 11915 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11916 | .tested = TEST_UNTESTED, |
| 11917 | .probe = probe_spi_rdid, |
| 11918 | .probe_timing = TIMING_ZERO, |
| 11919 | .block_erasers = |
| 11920 | { |
| 11921 | { |
| 11922 | .eraseblocks = { {4 * 1024, 512} }, |
| 11923 | .block_erase = spi_block_erase_20, |
| 11924 | }, { |
| 11925 | .eraseblocks = { {4 * 1024, 512} }, |
| 11926 | .block_erase = spi_block_erase_d7, |
| 11927 | }, { |
| 11928 | .eraseblocks = { {64 * 1024, 32} }, |
| 11929 | .block_erase = spi_block_erase_d8, |
| 11930 | }, { |
| 11931 | .eraseblocks = { {2048 * 1024, 1} }, |
| 11932 | .block_erase = spi_block_erase_60, |
| 11933 | }, { |
| 11934 | .eraseblocks = { {2048 * 1024, 1} }, |
| 11935 | .block_erase = spi_block_erase_c7, |
| 11936 | } |
| 11937 | }, |
| 11938 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 11939 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11940 | .write = spi_chip_write_256, |
| 11941 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11942 | .voltage = {2300, 3600}, |
| 11943 | }, |
| 11944 | |
| 11945 | { |
| 11946 | .vendor = "PMC", |
Steven Honeyman | 81a8fb7 | 2015-06-02 22:32:24 +0000 | [diff] [blame] | 11947 | .name = "Pm25LQ020", |
| 11948 | .bustype = BUS_SPI, |
| 11949 | .manufacture_id = PMC_ID, |
| 11950 | .model_id = PMC_PM25LQ020, |
| 11951 | .total_size = 256, |
| 11952 | .page_size = 256, |
| 11953 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 11954 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11955 | .tested = TEST_UNTESTED, |
| 11956 | .probe = probe_spi_rdid, |
| 11957 | .probe_timing = TIMING_ZERO, |
| 11958 | .block_erasers = |
| 11959 | { |
| 11960 | { |
| 11961 | .eraseblocks = { {4 * 1024, 64} }, |
| 11962 | .block_erase = spi_block_erase_20, |
| 11963 | }, { |
| 11964 | .eraseblocks = { {4 * 1024, 64} }, |
| 11965 | .block_erase = spi_block_erase_d7, |
| 11966 | }, { |
| 11967 | .eraseblocks = { {64 * 1024, 4} }, |
| 11968 | .block_erase = spi_block_erase_d8, |
| 11969 | }, { |
| 11970 | .eraseblocks = { {256 * 1024, 1} }, |
| 11971 | .block_erase = spi_block_erase_60, |
| 11972 | }, { |
| 11973 | .eraseblocks = { {256 * 1024, 1} }, |
| 11974 | .block_erase = spi_block_erase_c7, |
| 11975 | } |
| 11976 | }, |
| 11977 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 11978 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11979 | .write = spi_chip_write_256, |
| 11980 | .read = spi_chip_read, |
| 11981 | .voltage = {2300, 3600}, |
| 11982 | }, |
| 11983 | |
| 11984 | { |
| 11985 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11986 | .name = "Pm25LQ032C", |
| 11987 | .bustype = BUS_SPI, |
| 11988 | .manufacture_id = PMC_ID, |
| 11989 | .model_id = PMC_PM25LQ032C, |
| 11990 | .total_size = 4096, |
| 11991 | .page_size = 256, |
| 11992 | /* OTP: 64B total; read 0x4B, write 0xB1 */ |
| 11993 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11994 | .tested = TEST_OK_PREW, |
| 11995 | .probe = probe_spi_rdid, |
| 11996 | .probe_timing = TIMING_ZERO, |
| 11997 | .block_erasers = |
| 11998 | { |
| 11999 | { |
| 12000 | .eraseblocks = { {4 * 1024, 1024} }, |
| 12001 | .block_erase = spi_block_erase_20, |
| 12002 | }, { |
| 12003 | .eraseblocks = { {4 * 1024, 1024} }, |
| 12004 | .block_erase = spi_block_erase_d7, |
| 12005 | }, { |
| 12006 | .eraseblocks = { {64 * 1024, 64} }, |
| 12007 | .block_erase = spi_block_erase_d8, |
| 12008 | }, { |
| 12009 | .eraseblocks = { {4096 * 1024, 1} }, |
| 12010 | .block_erase = spi_block_erase_60, |
| 12011 | }, { |
| 12012 | .eraseblocks = { {4096 * 1024, 1} }, |
| 12013 | .block_erase = spi_block_erase_c7, |
| 12014 | } |
| 12015 | }, |
| 12016 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 12017 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12018 | .write = spi_chip_write_256, |
| 12019 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12020 | .voltage = {2700, 3600}, |
| 12021 | }, |
| 12022 | |
| 12023 | { |
| 12024 | .vendor = "PMC", |
Steven Honeyman | 81a8fb7 | 2015-06-02 22:32:24 +0000 | [diff] [blame] | 12025 | .name = "Pm25LQ040", |
| 12026 | .bustype = BUS_SPI, |
| 12027 | .manufacture_id = PMC_ID, |
| 12028 | .model_id = PMC_PM25LQ040, |
| 12029 | .total_size = 512, |
| 12030 | .page_size = 256, |
| 12031 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 12032 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12033 | .tested = TEST_UNTESTED, |
| 12034 | .probe = probe_spi_rdid, |
| 12035 | .probe_timing = TIMING_ZERO, |
| 12036 | .block_erasers = |
| 12037 | { |
| 12038 | { |
| 12039 | .eraseblocks = { {4 * 1024, 128} }, |
| 12040 | .block_erase = spi_block_erase_20, |
| 12041 | }, { |
| 12042 | .eraseblocks = { {4 * 1024, 128} }, |
| 12043 | .block_erase = spi_block_erase_d7, |
| 12044 | }, { |
| 12045 | .eraseblocks = { {64 * 1024, 8} }, |
| 12046 | .block_erase = spi_block_erase_d8, |
| 12047 | }, { |
| 12048 | .eraseblocks = { {512 * 1024, 1} }, |
| 12049 | .block_erase = spi_block_erase_60, |
| 12050 | }, { |
| 12051 | .eraseblocks = { {512 * 1024, 1} }, |
| 12052 | .block_erase = spi_block_erase_c7, |
| 12053 | } |
| 12054 | }, |
| 12055 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 12056 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12057 | .write = spi_chip_write_256, |
| 12058 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12059 | .voltage = {2300, 3600}, |
| 12060 | }, |
| 12061 | |
| 12062 | { |
| 12063 | .vendor = "PMC", |
| 12064 | .name = "Pm25LQ080", |
| 12065 | .bustype = BUS_SPI, |
| 12066 | .manufacture_id = PMC_ID, |
| 12067 | .model_id = PMC_PM25LQ080, |
| 12068 | .total_size = 1024, |
| 12069 | .page_size = 256, |
| 12070 | /* OTP: 64B total; read 0x4B, write 0xB1 */ |
| 12071 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12072 | .tested = TEST_UNTESTED, |
| 12073 | .probe = probe_spi_rdid, |
| 12074 | .probe_timing = TIMING_ZERO, |
| 12075 | .block_erasers = |
| 12076 | { |
| 12077 | { |
| 12078 | .eraseblocks = { {4 * 1024, 256} }, |
| 12079 | .block_erase = spi_block_erase_20, |
| 12080 | }, { |
| 12081 | .eraseblocks = { {4 * 1024, 256} }, |
| 12082 | .block_erase = spi_block_erase_d7, |
| 12083 | }, { |
| 12084 | .eraseblocks = { {64 * 1024, 16} }, |
| 12085 | .block_erase = spi_block_erase_d8, |
| 12086 | }, { |
| 12087 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12088 | .block_erase = spi_block_erase_60, |
| 12089 | }, { |
| 12090 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12091 | .block_erase = spi_block_erase_c7, |
| 12092 | } |
| 12093 | }, |
| 12094 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 12095 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12096 | .write = spi_chip_write_256, |
| 12097 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12098 | .voltage = {2300, 3600}, |
| 12099 | }, |
| 12100 | |
| 12101 | { |
| 12102 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12103 | .name = "Pm25LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12104 | .bustype = BUS_SPI, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 12105 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12106 | .model_id = PMC_PM25LV010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12107 | .total_size = 128, |
| 12108 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12109 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 12110 | .tested = TEST_OK_PREW, |
| 12111 | .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */ |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 12112 | .probe_timing = TIMING_ZERO, |
| 12113 | .block_erasers = |
| 12114 | { |
| 12115 | { |
| 12116 | .eraseblocks = { {4 * 1024, 32} }, |
| 12117 | .block_erase = spi_block_erase_d7, |
| 12118 | }, { |
| 12119 | .eraseblocks = { {32 * 1024, 4} }, |
| 12120 | .block_erase = spi_block_erase_d8, |
| 12121 | }, { |
| 12122 | .eraseblocks = { {128 * 1024, 1} }, |
| 12123 | .block_erase = spi_block_erase_c7, |
| 12124 | } |
| 12125 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12126 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 12127 | .unlock = spi_disable_blockprotect, |
| 12128 | .write = spi_chip_write_256, |
| 12129 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12130 | .voltage = {2700, 3600}, |
| 12131 | }, |
| 12132 | |
| 12133 | { |
| 12134 | .vendor = "PMC", |
| 12135 | .name = "Pm25LV010A", |
| 12136 | .bustype = BUS_SPI, |
| 12137 | .manufacture_id = PMC_ID, |
| 12138 | .model_id = PMC_PM25LV010, |
| 12139 | .total_size = 128, |
| 12140 | .page_size = 256, |
| 12141 | .feature_bits = FEATURE_WRSR_WREN, |
| 12142 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12143 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12144 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12145 | .block_erasers = |
| 12146 | { |
| 12147 | { |
| 12148 | .eraseblocks = { {4 * 1024, 32} }, |
| 12149 | .block_erase = spi_block_erase_d7, |
| 12150 | }, { |
| 12151 | .eraseblocks = { {32 * 1024, 4} }, |
| 12152 | .block_erase = spi_block_erase_d8, |
| 12153 | }, { |
| 12154 | .eraseblocks = { {128 * 1024, 1} }, |
| 12155 | .block_erase = spi_block_erase_c7, |
| 12156 | } |
| 12157 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12158 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12159 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12160 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 12161 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 12162 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12163 | }, |
| 12164 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12165 | { |
| 12166 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12167 | .name = "Pm25LV016B", |
| 12168 | .bustype = BUS_SPI, |
| 12169 | .manufacture_id = PMC_ID, |
| 12170 | .model_id = PMC_PM25LV016B, |
| 12171 | .total_size = 2048, |
| 12172 | .page_size = 256, |
| 12173 | .feature_bits = FEATURE_WRSR_WREN, |
| 12174 | .tested = TEST_UNTESTED, |
| 12175 | .probe = probe_spi_rdid, |
| 12176 | .probe_timing = TIMING_ZERO, |
| 12177 | .block_erasers = |
| 12178 | { |
| 12179 | { |
| 12180 | .eraseblocks = { {4 * 1024, 512} }, |
| 12181 | .block_erase = spi_block_erase_d7, |
| 12182 | }, { |
| 12183 | .eraseblocks = { {4 * 1024, 512} }, |
| 12184 | .block_erase = spi_block_erase_20, |
| 12185 | }, { |
| 12186 | .eraseblocks = { {64 * 1024, 32} }, |
| 12187 | .block_erase = spi_block_erase_d8, |
| 12188 | }, { |
| 12189 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12190 | .block_erase = spi_block_erase_60, |
| 12191 | }, { |
| 12192 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12193 | .block_erase = spi_block_erase_c7, |
| 12194 | } |
| 12195 | }, |
| 12196 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 12197 | .unlock = spi_disable_blockprotect, |
| 12198 | .write = spi_chip_write_256, |
| 12199 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12200 | .voltage = {2700, 3600}, |
| 12201 | }, |
| 12202 | |
| 12203 | { |
| 12204 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12205 | .name = "Pm25LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12206 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12207 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12208 | .model_id = PMC_PM25LV020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12209 | .total_size = 256, |
| 12210 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12211 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12212 | .tested = TEST_UNTESTED, |
| 12213 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12214 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12215 | .block_erasers = |
| 12216 | { |
| 12217 | { |
| 12218 | .eraseblocks = { {4 * 1024, 64} }, |
| 12219 | .block_erase = spi_block_erase_d7, |
| 12220 | }, { |
| 12221 | .eraseblocks = { {64 * 1024, 4} }, |
| 12222 | .block_erase = spi_block_erase_d8, |
| 12223 | }, { |
| 12224 | .eraseblocks = { {256 * 1024, 1} }, |
| 12225 | .block_erase = spi_block_erase_c7, |
| 12226 | } |
| 12227 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12228 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12229 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12230 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12231 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12232 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12233 | }, |
| 12234 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12235 | { |
| 12236 | .vendor = "PMC", |
| 12237 | .name = "Pm25LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12238 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12239 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12240 | .model_id = PMC_PM25LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12241 | .total_size = 512, |
| 12242 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12243 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 12244 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12245 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12246 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12247 | .block_erasers = |
| 12248 | { |
| 12249 | { |
| 12250 | .eraseblocks = { {4 * 1024, 128} }, |
| 12251 | .block_erase = spi_block_erase_d7, |
| 12252 | }, { |
| 12253 | .eraseblocks = { {64 * 1024, 8} }, |
| 12254 | .block_erase = spi_block_erase_d8, |
| 12255 | }, { |
| 12256 | .eraseblocks = { {512 * 1024, 1} }, |
| 12257 | .block_erase = spi_block_erase_c7, |
| 12258 | } |
| 12259 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12260 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12261 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12262 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 12263 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12264 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12265 | }, |
| 12266 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12267 | { |
| 12268 | .vendor = "PMC", |
| 12269 | .name = "Pm25LV080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12270 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12271 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12272 | .model_id = PMC_PM25LV080B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12273 | .total_size = 1024, |
| 12274 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12275 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12276 | .tested = TEST_UNTESTED, |
| 12277 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12278 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12279 | .block_erasers = |
| 12280 | { |
| 12281 | { |
| 12282 | .eraseblocks = { {4 * 1024, 256} }, |
| 12283 | .block_erase = spi_block_erase_d7, |
| 12284 | }, { |
| 12285 | .eraseblocks = { {4 * 1024, 256} }, |
| 12286 | .block_erase = spi_block_erase_20, |
| 12287 | }, { |
| 12288 | .eraseblocks = { {64 * 1024, 16} }, |
| 12289 | .block_erase = spi_block_erase_d8, |
| 12290 | }, { |
| 12291 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12292 | .block_erase = spi_block_erase_60, |
| 12293 | }, { |
| 12294 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12295 | .block_erase = spi_block_erase_c7, |
| 12296 | } |
| 12297 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12298 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12299 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12300 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 12301 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12302 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12303 | }, |
| 12304 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12305 | { |
| 12306 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12307 | .name = "Pm25LV512(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12308 | .bustype = BUS_SPI, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12309 | .manufacture_id = PMC_ID_NOPREFIX, |
| 12310 | .model_id = PMC_PM25LV512, |
| 12311 | .total_size = 64, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12312 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12313 | .feature_bits = FEATURE_WRSR_WREN, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12314 | .tested = TEST_OK_PREW, |
| 12315 | .probe = probe_spi_res2, /* The continuation code is transferred as the 3rd byte m( */ |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12316 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12317 | .block_erasers = |
| 12318 | { |
| 12319 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12320 | .eraseblocks = { {4 * 1024, 16} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12321 | .block_erase = spi_block_erase_d7, |
| 12322 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12323 | .eraseblocks = { {32 * 1024, 2} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12324 | .block_erase = spi_block_erase_d8, |
| 12325 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12326 | .eraseblocks = { {64 * 1024, 1} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12327 | .block_erase = spi_block_erase_c7, |
| 12328 | } |
| 12329 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12330 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12331 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12332 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 12333 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 12334 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12335 | }, |
| 12336 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12337 | { |
| 12338 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12339 | .name = "Pm29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12340 | .bustype = BUS_PARALLEL, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 12341 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12342 | .model_id = PMC_PM29F002B, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 12343 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12344 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12345 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 12346 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12347 | .probe = probe_jedec, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 12348 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12349 | .block_erasers = |
| 12350 | { |
| 12351 | { |
| 12352 | .eraseblocks = { |
| 12353 | {16 * 1024, 1}, |
| 12354 | {8 * 1024, 2}, |
| 12355 | {96 * 1024, 1}, |
| 12356 | {128 * 1024, 1}, |
| 12357 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12358 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12359 | }, { |
| 12360 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12361 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12362 | }, |
| 12363 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12364 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 12365 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12366 | .voltage = {4500, 5500}, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 12367 | }, |
| 12368 | |
| 12369 | { |
| 12370 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12371 | .name = "Pm29F002T", |
| 12372 | .bustype = BUS_PARALLEL, |
| 12373 | .manufacture_id = PMC_ID_NOPREFIX, |
| 12374 | .model_id = PMC_PM29F002T, |
| 12375 | .total_size = 256, |
| 12376 | .page_size = 8 * 1024, |
| 12377 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 12378 | .tested = TEST_OK_PREW, |
| 12379 | .probe = probe_jedec, |
| 12380 | .probe_timing = TIMING_FIXME, |
| 12381 | .block_erasers = |
| 12382 | { |
| 12383 | { |
| 12384 | .eraseblocks = { |
| 12385 | {128 * 1024, 1}, |
| 12386 | {96 * 1024, 1}, |
| 12387 | {8 * 1024, 2}, |
| 12388 | {16 * 1024, 1}, |
| 12389 | }, |
| 12390 | .block_erase = erase_sector_jedec, |
| 12391 | }, { |
| 12392 | .eraseblocks = { {256 * 1024, 1} }, |
| 12393 | .block_erase = erase_chip_block_jedec, |
| 12394 | }, |
| 12395 | }, |
| 12396 | .write = write_jedec_1, |
| 12397 | .read = read_memmapped, |
| 12398 | .voltage = {4500, 5500}, |
| 12399 | }, |
| 12400 | |
| 12401 | { |
| 12402 | .vendor = "PMC", |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 12403 | .name = "Pm39LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12404 | .bustype = BUS_PARALLEL, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 12405 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12406 | .model_id = PMC_PM39F010, /* Pm39LV010 and Pm39F010 have identical IDs but different voltage */ |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 12407 | .total_size = 128, |
| 12408 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12409 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 12410 | .tested = TEST_OK_PREW, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 12411 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 12412 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12413 | .block_erasers = |
| 12414 | { |
| 12415 | { |
| 12416 | .eraseblocks = { {4 * 1024, 32} }, |
| 12417 | .block_erase = erase_sector_jedec, |
| 12418 | }, { |
| 12419 | .eraseblocks = { {64 * 1024, 2} }, |
| 12420 | .block_erase = erase_block_jedec, |
| 12421 | }, { |
| 12422 | .eraseblocks = { {128 * 1024, 1} }, |
| 12423 | .block_erase = erase_chip_block_jedec, |
| 12424 | } |
| 12425 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12426 | .write = write_jedec_1, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 12427 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12428 | .voltage = {2700, 3600}, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 12429 | }, |
| 12430 | |
| 12431 | { |
| 12432 | .vendor = "PMC", |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12433 | .name = "Pm39LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12434 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12435 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12436 | .model_id = PMC_PM39LV020, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12437 | .total_size = 256, |
| 12438 | .page_size = 4096, |
| 12439 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 12440 | .tested = TEST_UNTESTED, |
| 12441 | .probe = probe_jedec, |
| 12442 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 12443 | .block_erasers = |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12444 | { |
| 12445 | { |
| 12446 | .eraseblocks = { {4 * 1024, 64} }, |
| 12447 | .block_erase = erase_sector_jedec, |
| 12448 | }, { |
| 12449 | .eraseblocks = { {64 * 1024, 4} }, |
| 12450 | .block_erase = erase_block_jedec, |
| 12451 | }, { |
| 12452 | .eraseblocks = { {256 * 1024, 1} }, |
| 12453 | .block_erase = erase_chip_block_jedec, |
| 12454 | } |
| 12455 | }, |
| 12456 | .write = write_jedec_1, |
| 12457 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12458 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12459 | }, |
| 12460 | |
| 12461 | { |
| 12462 | .vendor = "PMC", |
| 12463 | .name = "Pm39LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12464 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12465 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12466 | .model_id = PMC_PM39LV040, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12467 | .total_size = 512, |
| 12468 | .page_size = 4096, |
| 12469 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 12470 | .tested = TEST_OK_PR, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12471 | .probe = probe_jedec, |
| 12472 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 12473 | .block_erasers = |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12474 | { |
| 12475 | { |
| 12476 | .eraseblocks = { {4 * 1024, 128} }, |
| 12477 | .block_erase = erase_sector_jedec, |
| 12478 | }, { |
| 12479 | .eraseblocks = { {64 * 1024, 8} }, |
| 12480 | .block_erase = erase_block_jedec, |
| 12481 | }, { |
| 12482 | .eraseblocks = { {512 * 1024, 1} }, |
| 12483 | .block_erase = erase_chip_block_jedec, |
| 12484 | } |
| 12485 | }, |
| 12486 | .write = write_jedec_1, |
| 12487 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12488 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12489 | }, |
Kyösti Mälkki | edab1d2 | 2012-05-20 23:32:33 +0000 | [diff] [blame] | 12490 | |
| 12491 | { |
| 12492 | .vendor = "PMC", |
| 12493 | .name = "Pm39LV512", |
| 12494 | .bustype = BUS_PARALLEL, |
| 12495 | .manufacture_id = PMC_ID_NOPREFIX, |
| 12496 | .model_id = PMC_PM39LV512, |
| 12497 | .total_size = 64, |
| 12498 | .page_size = 4096, |
| 12499 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 12500 | .tested = TEST_OK_PREW, |
| 12501 | .probe = probe_jedec, |
| 12502 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 12503 | .block_erasers = |
| 12504 | { |
| 12505 | { |
| 12506 | .eraseblocks = { {4 * 1024, 16} }, |
| 12507 | .block_erase = erase_sector_jedec, |
| 12508 | }, { |
| 12509 | .eraseblocks = { {64 * 1024, 1} }, |
| 12510 | .block_erase = erase_block_jedec, |
| 12511 | }, { |
| 12512 | .eraseblocks = { {64 * 1024, 1} }, |
| 12513 | .block_erase = erase_chip_block_jedec, |
| 12514 | } |
| 12515 | }, |
| 12516 | .write = write_jedec_1, |
| 12517 | .read = read_memmapped, |
| 12518 | .voltage = {2700, 3600}, |
| 12519 | }, |
| 12520 | |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12521 | { |
| 12522 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12523 | .name = "Pm49FL002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12524 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12525 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12526 | .model_id = PMC_PM49FL002, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12527 | .total_size = 256, |
| 12528 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12529 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12530 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 12531 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 12532 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12533 | .block_erasers = |
| 12534 | { |
| 12535 | { |
| 12536 | .eraseblocks = { {4 * 1024, 64} }, |
| 12537 | .block_erase = erase_sector_jedec, |
| 12538 | }, { |
| 12539 | .eraseblocks = { {16 * 1024, 16} }, |
| 12540 | .block_erase = erase_block_jedec, |
| 12541 | }, { |
| 12542 | .eraseblocks = { {256 * 1024, 1} }, |
| 12543 | .block_erase = erase_chip_block_jedec, |
| 12544 | } |
| 12545 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12546 | .unlock = unlock_regspace2_uniform_32k, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 12547 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12548 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12549 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12550 | }, |
| 12551 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12552 | { |
| 12553 | .vendor = "PMC", |
| 12554 | .name = "Pm49FL004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12555 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12556 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12557 | .model_id = PMC_PM49FL004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12558 | .total_size = 512, |
| 12559 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12560 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 12561 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 12562 | .probe = probe_jedec, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 12563 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12564 | .block_erasers = |
| 12565 | { |
| 12566 | { |
| 12567 | .eraseblocks = { {4 * 1024, 128} }, |
| 12568 | .block_erase = erase_sector_jedec, |
| 12569 | }, { |
| 12570 | .eraseblocks = { {64 * 1024, 8} }, |
| 12571 | .block_erase = erase_block_jedec, |
| 12572 | }, { |
| 12573 | .eraseblocks = { {512 * 1024, 1} }, |
| 12574 | .block_erase = erase_chip_block_jedec, |
| 12575 | } |
| 12576 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12577 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 12578 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12579 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12580 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12581 | }, |
| 12582 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12583 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12584 | .vendor = "SST", |
Idwer Vollering | f3607d1 | 2014-05-07 15:25:04 +0000 | [diff] [blame] | 12585 | .name = "SST25LF020A", |
| 12586 | .bustype = BUS_SPI, |
| 12587 | .manufacture_id = SST_ID, |
| 12588 | .model_id = SST_SST25VF020_REMS, |
| 12589 | .total_size = 256, |
| 12590 | .page_size = 256, |
| 12591 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12592 | .tested = TEST_OK_PREW, |
| 12593 | .probe = probe_spi_rems, |
| 12594 | .probe_timing = TIMING_ZERO, |
| 12595 | .block_erasers = |
| 12596 | { |
| 12597 | { |
| 12598 | .eraseblocks = { {4 * 1024, 64} }, |
| 12599 | .block_erase = spi_block_erase_20, |
| 12600 | }, { |
| 12601 | .eraseblocks = { {32 * 1024, 8} }, |
| 12602 | .block_erase = spi_block_erase_52, |
| 12603 | }, { |
| 12604 | .eraseblocks = { {256 * 1024, 1} }, |
| 12605 | .block_erase = spi_block_erase_60, |
| 12606 | }, |
| 12607 | }, |
| 12608 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 12609 | .unlock = spi_disable_blockprotect, |
| 12610 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 12611 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12612 | .voltage = {2700, 3600}, |
| 12613 | }, |
| 12614 | |
| 12615 | { |
| 12616 | .vendor = "SST", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12617 | .name = "SST25LF040A", |
| 12618 | .bustype = BUS_SPI, |
| 12619 | .manufacture_id = SST_ID, |
| 12620 | .model_id = SST_SST25VF040_REMS, |
| 12621 | .total_size = 512, |
| 12622 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12623 | .feature_bits = FEATURE_WRSR_EWSR, |
Uwe Hermann | 4335ec8 | 2011-09-07 20:20:25 +0000 | [diff] [blame] | 12624 | .tested = TEST_OK_PREW, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12625 | .probe = probe_spi_res2, |
| 12626 | .probe_timing = TIMING_ZERO, |
| 12627 | .block_erasers = |
| 12628 | { |
| 12629 | { |
| 12630 | .eraseblocks = { {4 * 1024, 128} }, |
| 12631 | .block_erase = spi_block_erase_20, |
| 12632 | }, { |
| 12633 | .eraseblocks = { {32 * 1024, 16} }, |
| 12634 | .block_erase = spi_block_erase_52, |
| 12635 | }, { |
| 12636 | .eraseblocks = { {512 * 1024, 1} }, |
| 12637 | .block_erase = spi_block_erase_60, |
| 12638 | }, |
| 12639 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12640 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12641 | .unlock = spi_disable_blockprotect, |
| 12642 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 12643 | .read = spi_chip_read, |
| 12644 | .voltage = {3000, 3600}, |
| 12645 | }, |
| 12646 | |
| 12647 | { |
| 12648 | .vendor = "SST", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 12649 | .name = "SST25LF080(A)", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12650 | .bustype = BUS_SPI, |
| 12651 | .manufacture_id = SST_ID, |
| 12652 | .model_id = SST_SST25VF080_REMS, |
| 12653 | .total_size = 1024, |
| 12654 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 12655 | .feature_bits = FEATURE_WRSR_EITHER, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12656 | .tested = TEST_UNTESTED, |
| 12657 | .probe = probe_spi_res2, |
| 12658 | .probe_timing = TIMING_ZERO, |
| 12659 | .block_erasers = |
| 12660 | { |
| 12661 | { |
| 12662 | .eraseblocks = { {4 * 1024, 256} }, |
| 12663 | .block_erase = spi_block_erase_20, |
| 12664 | }, { |
| 12665 | .eraseblocks = { {32 * 1024, 32} }, |
| 12666 | .block_erase = spi_block_erase_52, |
| 12667 | }, { |
| 12668 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12669 | .block_erase = spi_block_erase_60, |
| 12670 | }, |
| 12671 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12672 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12673 | .unlock = spi_disable_blockprotect, |
| 12674 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 12675 | .read = spi_chip_read, |
| 12676 | .voltage = {3000, 3600}, |
| 12677 | }, |
| 12678 | |
| 12679 | { |
| 12680 | .vendor = "SST", |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12681 | .name = "SST25VF010(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12682 | .bustype = BUS_SPI, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12683 | .manufacture_id = SST_ID, |
| 12684 | .model_id = SST_SST25VF010_REMS, |
| 12685 | .total_size = 128, |
| 12686 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12687 | .feature_bits = FEATURE_WRSR_EWSR, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12688 | .tested = TEST_OK_PREW, |
| 12689 | .probe = probe_spi_rems, |
| 12690 | .probe_timing = TIMING_ZERO, |
| 12691 | .block_erasers = |
| 12692 | { |
| 12693 | { |
| 12694 | .eraseblocks = { {4 * 1024, 32} }, |
| 12695 | .block_erase = spi_block_erase_20, |
| 12696 | }, { |
| 12697 | .eraseblocks = { {32 * 1024, 4} }, |
| 12698 | .block_erase = spi_block_erase_52, |
| 12699 | }, { |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12700 | .eraseblocks = { {32 * 1024, 4} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12701 | .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12702 | }, { |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12703 | .eraseblocks = { {128 * 1024, 1} }, |
| 12704 | .block_erase = spi_block_erase_60, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12705 | }, { |
| 12706 | .eraseblocks = { {128 * 1024, 1} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12707 | .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12708 | }, |
| 12709 | }, |
| 12710 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 12711 | .unlock = spi_disable_blockprotect, |
| 12712 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12713 | .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12714 | .voltage = {2700, 3600}, |
| 12715 | }, |
| 12716 | |
| 12717 | { |
| 12718 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12719 | .name = "SST25VF016B", |
| 12720 | .bustype = BUS_SPI, |
| 12721 | .manufacture_id = SST_ID, |
| 12722 | .model_id = SST_SST25VF016B, |
| 12723 | .total_size = 2048, |
| 12724 | .page_size = 256, |
| 12725 | .feature_bits = FEATURE_WRSR_EITHER, |
| 12726 | .tested = TEST_OK_PREW, |
| 12727 | .probe = probe_spi_rdid, |
| 12728 | .probe_timing = TIMING_ZERO, |
| 12729 | .block_erasers = |
| 12730 | { |
| 12731 | { |
| 12732 | .eraseblocks = { {4 * 1024, 512} }, |
| 12733 | .block_erase = spi_block_erase_20, |
| 12734 | }, { |
| 12735 | .eraseblocks = { {32 * 1024, 64} }, |
| 12736 | .block_erase = spi_block_erase_52, |
| 12737 | }, { |
| 12738 | .eraseblocks = { {64 * 1024, 32} }, |
| 12739 | .block_erase = spi_block_erase_d8, |
| 12740 | }, { |
| 12741 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12742 | .block_erase = spi_block_erase_60, |
| 12743 | }, { |
| 12744 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12745 | .block_erase = spi_block_erase_c7, |
| 12746 | }, |
| 12747 | }, |
| 12748 | .printlock = spi_prettyprint_status_register_sst25vf016, |
| 12749 | .unlock = spi_disable_blockprotect, |
| 12750 | .write = spi_aai_write, |
| 12751 | .read = spi_chip_read, |
| 12752 | .voltage = {2700, 3600}, |
| 12753 | }, |
| 12754 | |
| 12755 | { |
| 12756 | .vendor = "SST", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12757 | .name = "SST25VF020", |
| 12758 | .bustype = BUS_SPI, |
| 12759 | .manufacture_id = SST_ID, |
| 12760 | .model_id = SST_SST25VF020_REMS, |
| 12761 | .total_size = 256, |
| 12762 | .page_size = 256, |
| 12763 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12764 | .tested = TEST_UNTESTED, |
| 12765 | .probe = probe_spi_rems, |
| 12766 | .probe_timing = TIMING_ZERO, |
| 12767 | .block_erasers = |
| 12768 | { |
| 12769 | { |
| 12770 | .eraseblocks = { {4 * 1024, 64} }, |
| 12771 | .block_erase = spi_block_erase_20, |
| 12772 | }, { |
| 12773 | .eraseblocks = { {32 * 1024, 8} }, |
| 12774 | .block_erase = spi_block_erase_52, |
| 12775 | }, { |
| 12776 | .eraseblocks = { {256 * 1024, 1} }, |
| 12777 | .block_erase = spi_block_erase_60, |
| 12778 | }, |
| 12779 | }, |
| 12780 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 12781 | .unlock = spi_disable_blockprotect, |
| 12782 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 12783 | .read = spi_chip_read, /* only */ |
| 12784 | .voltage = {2700, 3600}, |
| 12785 | }, |
| 12786 | |
| 12787 | { |
| 12788 | .vendor = "SST", |
| 12789 | .name = "SST25VF020B", |
| 12790 | .bustype = BUS_SPI, |
| 12791 | .manufacture_id = SST_ID, |
| 12792 | .model_id = SST_SST25VF020B, |
| 12793 | .total_size = 256, |
| 12794 | .page_size = 256, |
| 12795 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 12796 | .tested = TEST_OK_PREW, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12797 | .probe = probe_spi_rdid, |
| 12798 | .probe_timing = TIMING_ZERO, |
| 12799 | .block_erasers = |
| 12800 | { |
| 12801 | { |
| 12802 | .eraseblocks = { {4 * 1024, 64} }, |
| 12803 | .block_erase = spi_block_erase_20, |
| 12804 | }, { |
| 12805 | .eraseblocks = { {32 * 1024, 8} }, |
| 12806 | .block_erase = spi_block_erase_52, |
| 12807 | }, { |
| 12808 | .eraseblocks = { {64 * 1024, 4} }, |
| 12809 | .block_erase = spi_block_erase_d8, |
| 12810 | }, { |
| 12811 | .eraseblocks = { {256 * 1024, 1} }, |
| 12812 | .block_erase = spi_block_erase_60, |
| 12813 | }, { |
| 12814 | .eraseblocks = { {256 * 1024, 1} }, |
| 12815 | .block_erase = spi_block_erase_c7, |
| 12816 | }, |
| 12817 | }, |
| 12818 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */ |
| 12819 | .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */ |
| 12820 | .write = spi_aai_write, /* AAI supported (0xAD) */ |
| 12821 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12822 | .voltage = {2700, 3600}, |
| 12823 | }, |
| 12824 | |
| 12825 | { |
| 12826 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12827 | .name = "SST25VF032B", |
| 12828 | .bustype = BUS_SPI, |
| 12829 | .manufacture_id = SST_ID, |
| 12830 | .model_id = SST_SST25VF032B, |
| 12831 | .total_size = 4096, |
| 12832 | .page_size = 256, |
| 12833 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12834 | .tested = TEST_OK_PREW, |
| 12835 | .probe = probe_spi_rdid, |
| 12836 | .probe_timing = TIMING_ZERO, |
| 12837 | .block_erasers = |
| 12838 | { |
| 12839 | { |
| 12840 | .eraseblocks = { {4 * 1024, 1024} }, |
| 12841 | .block_erase = spi_block_erase_20, |
| 12842 | }, { |
| 12843 | .eraseblocks = { {32 * 1024, 128} }, |
| 12844 | .block_erase = spi_block_erase_52, |
| 12845 | }, { |
| 12846 | .eraseblocks = { {64 * 1024, 64} }, |
| 12847 | .block_erase = spi_block_erase_d8, |
| 12848 | }, { |
| 12849 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12850 | .block_erase = spi_block_erase_60, |
| 12851 | }, { |
| 12852 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12853 | .block_erase = spi_block_erase_c7, |
| 12854 | }, |
| 12855 | }, |
| 12856 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
| 12857 | .unlock = spi_disable_blockprotect, |
| 12858 | .write = spi_aai_write, |
| 12859 | .read = spi_chip_read, |
| 12860 | .voltage = {2700, 3600}, |
| 12861 | }, |
| 12862 | |
| 12863 | { |
| 12864 | .vendor = "SST", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12865 | .name = "SST25VF040", |
| 12866 | .bustype = BUS_SPI, |
| 12867 | .manufacture_id = SST_ID, |
| 12868 | .model_id = SST_SST25VF040_REMS, |
| 12869 | .total_size = 512, |
| 12870 | .page_size = 256, |
| 12871 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12872 | .tested = TEST_OK_PR, |
| 12873 | .probe = probe_spi_rems, |
| 12874 | .probe_timing = TIMING_ZERO, |
| 12875 | .block_erasers = |
| 12876 | { |
| 12877 | { |
| 12878 | .eraseblocks = { {4 * 1024, 128} }, |
| 12879 | .block_erase = spi_block_erase_20, |
| 12880 | }, { |
| 12881 | .eraseblocks = { {32 * 1024, 16} }, |
| 12882 | .block_erase = spi_block_erase_52, |
| 12883 | }, { |
| 12884 | .eraseblocks = { {512 * 1024, 1} }, |
| 12885 | .block_erase = spi_block_erase_60, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12886 | }, |
| 12887 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12888 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12889 | .unlock = spi_disable_blockprotect, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12890 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 12891 | .read = spi_chip_read, |
| 12892 | .voltage = {2700, 3600}, |
| 12893 | }, |
| 12894 | |
| 12895 | { |
| 12896 | .vendor = "SST", |
| 12897 | .name = "SST25VF040B", |
| 12898 | .bustype = BUS_SPI, |
| 12899 | .manufacture_id = SST_ID, |
| 12900 | .model_id = SST_SST25VF040B, |
| 12901 | .total_size = 512, |
| 12902 | .page_size = 256, |
| 12903 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12904 | .tested = TEST_OK_PREW, |
| 12905 | .probe = probe_spi_rdid, |
| 12906 | .probe_timing = TIMING_ZERO, |
| 12907 | .block_erasers = |
| 12908 | { |
| 12909 | { |
| 12910 | .eraseblocks = { {4 * 1024, 128} }, |
| 12911 | .block_erase = spi_block_erase_20, |
| 12912 | }, { |
| 12913 | .eraseblocks = { {32 * 1024, 16} }, |
| 12914 | .block_erase = spi_block_erase_52, |
| 12915 | }, { |
| 12916 | .eraseblocks = { {64 * 1024, 8} }, |
| 12917 | .block_erase = spi_block_erase_d8, |
| 12918 | }, { |
| 12919 | .eraseblocks = { {512 * 1024, 1} }, |
| 12920 | .block_erase = spi_block_erase_60, |
| 12921 | }, { |
| 12922 | .eraseblocks = { {512 * 1024, 1} }, |
| 12923 | .block_erase = spi_block_erase_c7, |
| 12924 | }, |
| 12925 | }, |
| 12926 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
| 12927 | .unlock = spi_disable_blockprotect, |
| 12928 | .write = spi_aai_write, /* AAI supported (0xAD) */ |
| 12929 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12930 | .voltage = {2700, 3600}, |
| 12931 | }, |
| 12932 | |
| 12933 | { |
| 12934 | .vendor = "SST", |
| 12935 | .name = "SST25VF040B.REMS", |
| 12936 | .bustype = BUS_SPI, |
| 12937 | .manufacture_id = SST_ID, |
| 12938 | .model_id = SST_SST25VF040B_REMS, |
| 12939 | .total_size = 512, |
| 12940 | .page_size = 256, |
| 12941 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12942 | .tested = TEST_OK_PREW, |
| 12943 | .probe = probe_spi_rems, |
| 12944 | .probe_timing = TIMING_ZERO, |
| 12945 | .block_erasers = |
| 12946 | { |
| 12947 | { |
| 12948 | .eraseblocks = { {4 * 1024, 128} }, |
| 12949 | .block_erase = spi_block_erase_20, |
| 12950 | }, { |
| 12951 | .eraseblocks = { {32 * 1024, 16} }, |
| 12952 | .block_erase = spi_block_erase_52, |
| 12953 | }, { |
| 12954 | .eraseblocks = { {64 * 1024, 8} }, |
| 12955 | .block_erase = spi_block_erase_d8, |
| 12956 | }, { |
| 12957 | .eraseblocks = { {512 * 1024, 1} }, |
| 12958 | .block_erase = spi_block_erase_60, |
| 12959 | }, { |
| 12960 | .eraseblocks = { {512 * 1024, 1} }, |
| 12961 | .block_erase = spi_block_erase_c7, |
| 12962 | }, |
| 12963 | }, |
| 12964 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
| 12965 | .unlock = spi_disable_blockprotect, |
| 12966 | .write = spi_aai_write, |
| 12967 | .read = spi_chip_read, |
| 12968 | .voltage = {2700, 3600}, |
| 12969 | }, |
| 12970 | |
| 12971 | { |
| 12972 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12973 | .name = "SST25VF064C", |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 12974 | .bustype = BUS_SPI, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12975 | .manufacture_id = SST_ID, |
| 12976 | .model_id = SST_SST25VF064C, |
| 12977 | .total_size = 8192, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 12978 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12979 | .feature_bits = FEATURE_WRSR_EWSR, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 12980 | .tested = TEST_OK_PREW, |
| 12981 | .probe = probe_spi_rdid, |
| 12982 | .probe_timing = TIMING_ZERO, |
| 12983 | .block_erasers = |
| 12984 | { |
| 12985 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12986 | .eraseblocks = { {4 * 1024, 2048} }, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 12987 | .block_erase = spi_block_erase_20, |
| 12988 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12989 | .eraseblocks = { {32 * 1024, 256} }, |
| 12990 | .block_erase = spi_block_erase_52, |
| 12991 | }, { |
| 12992 | .eraseblocks = { {64 * 1024, 128} }, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 12993 | .block_erase = spi_block_erase_d8, |
| 12994 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12995 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 12996 | .block_erase = spi_block_erase_60, |
| 12997 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12998 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 12999 | .block_erase = spi_block_erase_c7, |
| 13000 | }, |
| 13001 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13002 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
| 13003 | .unlock = spi_disable_blockprotect, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13004 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13005 | .read = spi_chip_read, |
| 13006 | .voltage = {2700, 3600}, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13007 | }, |
| 13008 | |
| 13009 | { |
| 13010 | .vendor = "SST", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13011 | .name = "SST25VF080B", |
| 13012 | .bustype = BUS_SPI, |
| 13013 | .manufacture_id = SST_ID, |
| 13014 | .model_id = SST_SST25VF080B, |
| 13015 | .total_size = 1024, |
| 13016 | .page_size = 256, |
| 13017 | .feature_bits = FEATURE_WRSR_EWSR, |
| 13018 | .tested = TEST_OK_PREW, |
| 13019 | .probe = probe_spi_rdid, |
| 13020 | .probe_timing = TIMING_ZERO, |
| 13021 | .block_erasers = |
| 13022 | { |
| 13023 | { |
| 13024 | .eraseblocks = { {4 * 1024, 256} }, |
| 13025 | .block_erase = spi_block_erase_20, |
| 13026 | }, { |
| 13027 | .eraseblocks = { {32 * 1024, 32} }, |
| 13028 | .block_erase = spi_block_erase_52, |
| 13029 | }, { |
| 13030 | .eraseblocks = { {64 * 1024, 16} }, |
| 13031 | .block_erase = spi_block_erase_d8, |
| 13032 | }, { |
| 13033 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13034 | .block_erase = spi_block_erase_60, |
| 13035 | }, { |
| 13036 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13037 | .block_erase = spi_block_erase_c7, |
| 13038 | }, |
| 13039 | }, |
| 13040 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
| 13041 | .unlock = spi_disable_blockprotect, |
| 13042 | .write = spi_aai_write, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 13043 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 13044 | .voltage = {2700, 3600}, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 13045 | }, |
| 13046 | |
| 13047 | { |
| 13048 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13049 | .name = "SST25VF512(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13050 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13051 | .manufacture_id = SST_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13052 | .model_id = SST_SST25VF512_REMS, |
| 13053 | .total_size = 64, |
| 13054 | .page_size = 256, |
| 13055 | .feature_bits = FEATURE_WRSR_EWSR, |
| 13056 | .tested = TEST_OK_PREW, |
| 13057 | .probe = probe_spi_rems, |
| 13058 | .probe_timing = TIMING_ZERO, |
| 13059 | .block_erasers = |
| 13060 | { |
| 13061 | { |
| 13062 | .eraseblocks = { {4 * 1024, 16} }, |
| 13063 | .block_erase = spi_block_erase_20, |
| 13064 | }, { |
| 13065 | .eraseblocks = { {32 * 1024, 2} }, |
| 13066 | .block_erase = spi_block_erase_52, |
| 13067 | }, { |
| 13068 | .eraseblocks = { {32 * 1024, 2} }, |
| 13069 | .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */ |
| 13070 | }, { |
| 13071 | .eraseblocks = { {64 * 1024, 1} }, |
| 13072 | .block_erase = spi_block_erase_60, |
| 13073 | }, { |
| 13074 | .eraseblocks = { {64 * 1024, 1} }, |
| 13075 | .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */ |
| 13076 | }, |
| 13077 | }, |
| 13078 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 13079 | .unlock = spi_disable_blockprotect, |
| 13080 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 13081 | .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */ |
| 13082 | .voltage = {2700, 3600}, |
| 13083 | }, |
| 13084 | |
| 13085 | { |
| 13086 | .vendor = "SST", |
| 13087 | .name = "SST25WF010", |
| 13088 | .bustype = BUS_SPI, |
| 13089 | .manufacture_id = SST_ID, |
| 13090 | .model_id = SST_SST25WF010, |
| 13091 | .total_size = 128, |
| 13092 | .page_size = 256, |
| 13093 | .feature_bits = FEATURE_WRSR_EITHER, |
| 13094 | .tested = TEST_UNTESTED, |
| 13095 | .probe = probe_spi_rdid, |
| 13096 | .probe_timing = TIMING_ZERO, |
| 13097 | .block_erasers = |
| 13098 | { |
| 13099 | { |
| 13100 | .eraseblocks = { {4 * 1024, 32} }, |
| 13101 | .block_erase = spi_block_erase_20, |
| 13102 | }, { |
| 13103 | .eraseblocks = { {32 * 1024, 4} }, |
| 13104 | .block_erase = spi_block_erase_52, |
| 13105 | }, { |
| 13106 | .eraseblocks = { {1024 * 128, 1} }, |
| 13107 | .block_erase = spi_block_erase_60, |
| 13108 | }, { |
| 13109 | .eraseblocks = { {1024 * 128, 1} }, |
| 13110 | .block_erase = spi_block_erase_c7, |
| 13111 | }, |
| 13112 | }, |
| 13113 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 13114 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 13115 | .write = spi_aai_write, |
| 13116 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13117 | .voltage = {1650, 1950}, |
| 13118 | }, |
| 13119 | |
| 13120 | { |
| 13121 | .vendor = "SST", |
| 13122 | .name = "SST25WF020", |
| 13123 | .bustype = BUS_SPI, |
| 13124 | .manufacture_id = SST_ID, |
| 13125 | .model_id = SST_SST25WF020, |
| 13126 | .total_size = 256, |
| 13127 | .page_size = 256, |
| 13128 | .feature_bits = FEATURE_WRSR_EITHER, |
| 13129 | .tested = TEST_UNTESTED, |
| 13130 | .probe = probe_spi_rdid, |
| 13131 | .probe_timing = TIMING_ZERO, |
| 13132 | .block_erasers = |
| 13133 | { |
| 13134 | { |
| 13135 | .eraseblocks = { {4 * 1024, 64} }, |
| 13136 | .block_erase = spi_block_erase_20, |
| 13137 | }, { |
| 13138 | .eraseblocks = { {32 * 1024, 8} }, |
| 13139 | .block_erase = spi_block_erase_52, |
| 13140 | }, { |
| 13141 | .eraseblocks = { {64 * 1024, 4} }, |
| 13142 | .block_erase = spi_block_erase_d8, |
| 13143 | }, { |
| 13144 | .eraseblocks = { {1024 * 256, 1} }, |
| 13145 | .block_erase = spi_block_erase_60, |
| 13146 | }, { |
| 13147 | .eraseblocks = { {1024 * 256, 1} }, |
| 13148 | .block_erase = spi_block_erase_c7, |
| 13149 | }, |
| 13150 | }, |
| 13151 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 13152 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 13153 | .write = spi_aai_write, |
| 13154 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13155 | .voltage = {1650, 1950}, |
| 13156 | }, |
| 13157 | |
| 13158 | { |
| 13159 | .vendor = "SST", |
| 13160 | .name = "SST25WF020A", |
| 13161 | .bustype = BUS_SPI, |
| 13162 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 13163 | .model_id = SST_SST25WF020A, |
| 13164 | .total_size = 256, |
| 13165 | .page_size = 256, |
| 13166 | .feature_bits = FEATURE_WRSR_WREN, |
| 13167 | .tested = TEST_UNTESTED, |
| 13168 | .probe = probe_spi_rdid, |
| 13169 | .probe_timing = TIMING_ZERO, |
| 13170 | .block_erasers = |
| 13171 | { |
| 13172 | { |
| 13173 | .eraseblocks = { {4 * 1024, 64} }, |
| 13174 | .block_erase = spi_block_erase_20, |
| 13175 | }, { |
| 13176 | .eraseblocks = { {64 * 1024, 4} }, |
| 13177 | .block_erase = spi_block_erase_d8, |
| 13178 | }, { |
| 13179 | .eraseblocks = { {256 * 1024, 1} }, |
| 13180 | .block_erase = spi_block_erase_60, |
| 13181 | }, { |
| 13182 | .eraseblocks = { {256 * 1024, 1} }, |
| 13183 | .block_erase = spi_block_erase_c7, |
| 13184 | }, |
| 13185 | }, |
| 13186 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 13187 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 13188 | .write = spi_chip_write_256, |
| 13189 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13190 | .voltage = {1650, 1950}, |
| 13191 | }, |
| 13192 | |
| 13193 | { |
| 13194 | .vendor = "SST", |
| 13195 | .name = "SST25WF040", |
| 13196 | .bustype = BUS_SPI, |
| 13197 | .manufacture_id = SST_ID, |
| 13198 | .model_id = SST_SST25WF040, |
| 13199 | .total_size = 512, |
| 13200 | .page_size = 256, |
| 13201 | .feature_bits = FEATURE_WRSR_EITHER, |
| 13202 | .tested = TEST_UNTESTED, |
| 13203 | .probe = probe_spi_rdid, |
| 13204 | .probe_timing = TIMING_ZERO, |
| 13205 | .block_erasers = |
| 13206 | { |
| 13207 | { |
| 13208 | .eraseblocks = { {4 * 1024, 128} }, |
| 13209 | .block_erase = spi_block_erase_20, |
| 13210 | }, { |
| 13211 | .eraseblocks = { {32 * 1024, 16} }, |
| 13212 | .block_erase = spi_block_erase_52, |
| 13213 | }, { |
| 13214 | .eraseblocks = { {64 * 1024, 8} }, |
| 13215 | .block_erase = spi_block_erase_d8, |
| 13216 | }, { |
| 13217 | .eraseblocks = { {1024 * 512, 1} }, |
| 13218 | .block_erase = spi_block_erase_60, |
| 13219 | }, { |
| 13220 | .eraseblocks = { {1024 * 512, 1} }, |
| 13221 | .block_erase = spi_block_erase_c7, |
| 13222 | }, |
| 13223 | }, |
| 13224 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 13225 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 13226 | .write = spi_aai_write, |
| 13227 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13228 | .voltage = {1650, 1950}, |
| 13229 | }, |
| 13230 | |
| 13231 | { |
| 13232 | .vendor = "SST", |
| 13233 | .name = "SST25WF040B", |
| 13234 | .bustype = BUS_SPI, |
| 13235 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 13236 | .model_id = SST_SST25WF040B, |
| 13237 | .total_size = 512, |
| 13238 | .page_size = 256, |
| 13239 | .feature_bits = FEATURE_WRSR_WREN, |
| 13240 | .tested = TEST_UNTESTED, |
| 13241 | .probe = probe_spi_rdid, |
| 13242 | .probe_timing = TIMING_ZERO, |
| 13243 | .block_erasers = |
| 13244 | { |
| 13245 | { |
| 13246 | .eraseblocks = { {4 * 1024, 128} }, |
| 13247 | .block_erase = spi_block_erase_20, |
| 13248 | }, { |
| 13249 | .eraseblocks = { {64 * 1024, 8} }, |
| 13250 | .block_erase = spi_block_erase_d8, |
| 13251 | }, { |
| 13252 | .eraseblocks = { {512 * 1024, 1} }, |
| 13253 | .block_erase = spi_block_erase_60, |
| 13254 | }, { |
| 13255 | .eraseblocks = { {512 * 1024, 1} }, |
| 13256 | .block_erase = spi_block_erase_c7, |
| 13257 | }, |
| 13258 | }, |
| 13259 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 13260 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 13261 | .write = spi_chip_write_256, |
| 13262 | .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */ |
| 13263 | .voltage = {1650, 1950}, |
| 13264 | }, |
| 13265 | |
| 13266 | { |
| 13267 | .vendor = "SST", |
| 13268 | .name = "SST25WF080", |
| 13269 | .bustype = BUS_SPI, |
| 13270 | .manufacture_id = SST_ID, |
| 13271 | .model_id = SST_SST25WF080, |
| 13272 | .total_size = 1024, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13273 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 13274 | .feature_bits = FEATURE_WRSR_EITHER, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 13275 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13276 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13277 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13278 | .block_erasers = |
| 13279 | { |
| 13280 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13281 | .eraseblocks = { {4 * 1024, 256} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13282 | .block_erase = spi_block_erase_20, |
| 13283 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13284 | .eraseblocks = { {32 * 1024, 32} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13285 | .block_erase = spi_block_erase_52, |
| 13286 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13287 | .eraseblocks = { {64 * 1024, 16} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13288 | .block_erase = spi_block_erase_d8, |
| 13289 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13290 | .eraseblocks = { {1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13291 | .block_erase = spi_block_erase_60, |
| 13292 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13293 | .eraseblocks = { {1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13294 | .block_erase = spi_block_erase_c7, |
| 13295 | }, |
| 13296 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13297 | .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */ |
| 13298 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 13299 | .write = spi_aai_write, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13300 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13301 | .voltage = {1650, 1950}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13302 | }, |
| 13303 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13304 | { |
| 13305 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13306 | .name = "SST25WF080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13307 | .bustype = BUS_SPI, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13308 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 13309 | .model_id = SST_SST25WF080B, |
| 13310 | .total_size = 1024, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13311 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13312 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | fcf6a8c | 2011-05-18 01:32:00 +0000 | [diff] [blame] | 13313 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13314 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13315 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13316 | .block_erasers = |
| 13317 | { |
| 13318 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13319 | .eraseblocks = { {4 * 1024, 256} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13320 | .block_erase = spi_block_erase_20, |
| 13321 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13322 | .eraseblocks = { {64 * 1024, 16} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13323 | .block_erase = spi_block_erase_d8, |
| 13324 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13325 | .eraseblocks = { {1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13326 | .block_erase = spi_block_erase_60, |
| 13327 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13328 | .eraseblocks = { {1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13329 | .block_erase = spi_block_erase_c7, |
| 13330 | }, |
| 13331 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13332 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 13333 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 13334 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13335 | .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */ |
| 13336 | .voltage = {1650, 1950}, |
| 13337 | }, |
| 13338 | |
| 13339 | { |
| 13340 | .vendor = "SST", |
| 13341 | .name = "SST25WF512", |
| 13342 | .bustype = BUS_SPI, |
| 13343 | .manufacture_id = SST_ID, |
| 13344 | .model_id = SST_SST25WF512, |
| 13345 | .total_size = 64, |
| 13346 | .page_size = 256, |
| 13347 | .feature_bits = FEATURE_WRSR_EITHER, |
| 13348 | .tested = TEST_UNTESTED, |
| 13349 | .probe = probe_spi_rdid, |
| 13350 | .probe_timing = TIMING_ZERO, |
| 13351 | .block_erasers = |
| 13352 | { |
| 13353 | { |
| 13354 | .eraseblocks = { {4 * 1024, 16} }, |
| 13355 | .block_erase = spi_block_erase_20, |
| 13356 | }, { |
| 13357 | .eraseblocks = { {32 * 1024, 2} }, |
| 13358 | .block_erase = spi_block_erase_52, |
| 13359 | }, { |
| 13360 | .eraseblocks = { {1024 * 64, 1} }, |
| 13361 | .block_erase = spi_block_erase_60, |
| 13362 | }, { |
| 13363 | .eraseblocks = { {1024 * 64, 1} }, |
| 13364 | .block_erase = spi_block_erase_c7, |
| 13365 | }, |
| 13366 | }, |
| 13367 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 13368 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 13369 | .write = spi_aai_write, |
| 13370 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13371 | .voltage = {1650, 1950}, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 13372 | }, |
| 13373 | |
| 13374 | { |
| 13375 | .vendor = "SST", |
Wei Hu | 25584de | 2018-04-30 14:02:08 -0700 | [diff] [blame] | 13376 | .name = "SST26VF016B(A)", |
| 13377 | .bustype = BUS_SPI, |
| 13378 | .manufacture_id = SST_ID, |
| 13379 | .model_id = SST_SST26VF016B, |
| 13380 | .total_size = 2048, |
| 13381 | .page_size = 256, |
| 13382 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 13383 | .tested = TEST_OK_PREW, |
| 13384 | .probe = probe_spi_rdid, |
| 13385 | .probe_timing = TIMING_ZERO, |
| 13386 | .block_erasers = |
| 13387 | { |
| 13388 | { |
| 13389 | .eraseblocks = { {4 * 1024, 512} }, |
| 13390 | .block_erase = spi_block_erase_20, |
| 13391 | }, { |
| 13392 | .eraseblocks = { |
| 13393 | {8 * 1024, 4}, |
| 13394 | {32 * 1024, 1}, |
| 13395 | {64 * 1024, 30}, |
| 13396 | {32 * 1024, 1}, |
| 13397 | {8 * 1024, 4}, |
| 13398 | }, |
| 13399 | .block_erase = spi_block_erase_d8, |
| 13400 | }, { |
| 13401 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 13402 | .block_erase = spi_block_erase_c7, |
| 13403 | }, |
| 13404 | }, |
| 13405 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 13406 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 13407 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 13408 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 13409 | .voltage = {2700, 3600}, |
| 13410 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 13411 | |
Wei Hu | 25584de | 2018-04-30 14:02:08 -0700 | [diff] [blame] | 13412 | { |
| 13413 | .vendor = "SST", |
| 13414 | .name = "SST26VF032B(A)", |
| 13415 | .bustype = BUS_SPI, |
| 13416 | .manufacture_id = SST_ID, |
| 13417 | .model_id = SST_SST26VF032B, |
| 13418 | .total_size = 4096, |
| 13419 | .page_size = 256, |
| 13420 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 13421 | .tested = TEST_UNTESTED, |
| 13422 | .probe = probe_spi_rdid, |
| 13423 | .probe_timing = TIMING_ZERO, |
| 13424 | .block_erasers = |
| 13425 | { |
| 13426 | { |
| 13427 | .eraseblocks = { {4 * 1024, 1024} }, |
| 13428 | .block_erase = spi_block_erase_20, |
| 13429 | }, { |
| 13430 | .eraseblocks = { |
| 13431 | {8 * 1024, 4}, |
| 13432 | {32 * 1024, 1}, |
| 13433 | {64 * 1024, 62}, |
| 13434 | {32 * 1024, 1}, |
| 13435 | {8 * 1024, 4}, |
| 13436 | }, |
| 13437 | .block_erase = spi_block_erase_d8, |
| 13438 | }, { |
| 13439 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 13440 | .block_erase = spi_block_erase_c7, |
| 13441 | }, |
| 13442 | }, |
| 13443 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 13444 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 13445 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 13446 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 13447 | .voltage = {2700, 3600}, |
| 13448 | }, |
| 13449 | |
Wei Hu | 25584de | 2018-04-30 14:02:08 -0700 | [diff] [blame] | 13450 | { |
| 13451 | .vendor = "SST", |
| 13452 | .name = "SST26VF064B(A)", |
| 13453 | .bustype = BUS_SPI, |
| 13454 | .manufacture_id = SST_ID, |
| 13455 | .model_id = SST_SST26VF064B, |
| 13456 | .total_size = 8192, |
| 13457 | .page_size = 256, |
| 13458 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 13459 | .tested = TEST_OK_PREW, |
| 13460 | .probe = probe_spi_rdid, |
| 13461 | .probe_timing = TIMING_ZERO, |
| 13462 | .block_erasers = |
| 13463 | { |
| 13464 | { |
| 13465 | .eraseblocks = { {4 * 1024, 2048} }, |
| 13466 | .block_erase = spi_block_erase_20, |
| 13467 | }, { |
| 13468 | .eraseblocks = { |
| 13469 | {8 * 1024, 4}, |
| 13470 | {32 * 1024, 1}, |
| 13471 | {64 * 1024, 126}, |
| 13472 | {32 * 1024, 1}, |
| 13473 | {8 * 1024, 4}, |
| 13474 | }, |
| 13475 | .block_erase = spi_block_erase_d8, |
| 13476 | }, { |
| 13477 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 13478 | .block_erase = spi_block_erase_c7, |
| 13479 | }, |
| 13480 | }, |
| 13481 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 13482 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 13483 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 13484 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 13485 | .voltage = {2700, 3600}, |
| 13486 | }, |
| 13487 | |
| 13488 | { |
| 13489 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13490 | .name = "SST28SF040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13491 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13492 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13493 | .model_id = SST_SST28SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13494 | .total_size = 512, |
| 13495 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13496 | .feature_bits = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13497 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13498 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 13499 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13500 | .block_erasers = |
| 13501 | { |
| 13502 | { |
| 13503 | .eraseblocks = { {128, 4096} }, |
| 13504 | .block_erase = erase_sector_28sf040, |
| 13505 | }, { |
| 13506 | .eraseblocks = { {512 * 1024, 1} }, |
| 13507 | .block_erase = erase_chip_28sf040, |
| 13508 | } |
| 13509 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 13510 | .unlock = unprotect_28sf040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13511 | .write = write_28sf040, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13512 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13513 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13514 | }, |
| 13515 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13516 | { |
| 13517 | .vendor = "SST", |
| 13518 | .name = "SST29EE010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13519 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13520 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13521 | .model_id = SST_SST29EE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13522 | .total_size = 128, |
| 13523 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13524 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 13525 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13526 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13527 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13528 | .block_erasers = |
| 13529 | { |
| 13530 | { |
| 13531 | .eraseblocks = { {128 * 1024, 1} }, |
| 13532 | .block_erase = erase_chip_block_jedec, |
| 13533 | } |
| 13534 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13535 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13536 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13537 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13538 | }, |
| 13539 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13540 | { |
| 13541 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13542 | .name = "SST29EE020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13543 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13544 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13545 | .model_id = SST_SST29EE020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13546 | .total_size = 256, |
| 13547 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13548 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 13549 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13550 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13551 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13552 | .block_erasers = |
| 13553 | { |
| 13554 | { |
| 13555 | .eraseblocks = { {256 * 1024, 1} }, |
| 13556 | .block_erase = erase_chip_block_jedec, |
| 13557 | } |
| 13558 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13559 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13560 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13561 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13562 | }, |
| 13563 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13564 | { |
| 13565 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13566 | .name = "SST29LE010", |
| 13567 | .bustype = BUS_PARALLEL, |
| 13568 | .manufacture_id = SST_ID, |
| 13569 | .model_id = SST_SST29LE010, |
| 13570 | .total_size = 128, |
| 13571 | .page_size = 128, |
| 13572 | .feature_bits = FEATURE_LONG_RESET, |
| 13573 | .tested = TEST_UNTESTED, |
| 13574 | .probe = probe_jedec, |
| 13575 | .probe_timing = 10, |
| 13576 | .block_erasers = |
| 13577 | { |
| 13578 | { |
| 13579 | .eraseblocks = { {128 * 1024, 1} }, |
| 13580 | .block_erase = erase_chip_block_jedec, |
| 13581 | } |
| 13582 | }, |
| 13583 | .write = write_jedec, |
| 13584 | .read = read_memmapped, |
| 13585 | .voltage = {3000, 3600}, |
| 13586 | }, |
| 13587 | |
| 13588 | { |
| 13589 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13590 | .name = "SST29LE020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13591 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13592 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13593 | .model_id = SST_SST29LE020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13594 | .total_size = 256, |
| 13595 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13596 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 13597 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13598 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13599 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13600 | .block_erasers = |
| 13601 | { |
| 13602 | { |
| 13603 | .eraseblocks = { {256 * 1024, 1} }, |
| 13604 | .block_erase = erase_chip_block_jedec, |
| 13605 | } |
| 13606 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13607 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13608 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13609 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13610 | }, |
| 13611 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13612 | { |
| 13613 | .vendor = "SST", |
| 13614 | .name = "SST39SF010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13615 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13616 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13617 | .model_id = SST_SST39SF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13618 | .total_size = 128, |
| 13619 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13620 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 13621 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13622 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 13623 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13624 | .block_erasers = |
| 13625 | { |
| 13626 | { |
| 13627 | .eraseblocks = { {4 * 1024, 32} }, |
| 13628 | .block_erase = erase_sector_jedec, |
| 13629 | }, { |
| 13630 | .eraseblocks = { {128 * 1024, 1} }, |
| 13631 | .block_erase = erase_chip_block_jedec, |
| 13632 | } |
| 13633 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13634 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13635 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13636 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13637 | }, |
| 13638 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13639 | { |
| 13640 | .vendor = "SST", |
| 13641 | .name = "SST39SF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13642 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13643 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13644 | .model_id = SST_SST39SF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13645 | .total_size = 256, |
| 13646 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13647 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 19f46f2 | 2011-06-18 22:56:14 +0000 | [diff] [blame] | 13648 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13649 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13650 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13651 | .block_erasers = |
| 13652 | { |
| 13653 | { |
| 13654 | .eraseblocks = { {4 * 1024, 64} }, |
| 13655 | .block_erase = erase_sector_jedec, |
| 13656 | }, { |
| 13657 | .eraseblocks = { {256 * 1024, 1} }, |
| 13658 | .block_erase = erase_chip_block_jedec, |
| 13659 | } |
| 13660 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13661 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13662 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13663 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13664 | }, |
| 13665 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13666 | { |
| 13667 | .vendor = "SST", |
| 13668 | .name = "SST39SF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13669 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13670 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13671 | .model_id = SST_SST39SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13672 | .total_size = 512, |
| 13673 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13674 | .feature_bits = FEATURE_EITHER_RESET, |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 13675 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13676 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13677 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13678 | .block_erasers = |
| 13679 | { |
| 13680 | { |
| 13681 | .eraseblocks = { {4 * 1024, 128} }, |
| 13682 | .block_erase = erase_sector_jedec, |
| 13683 | }, { |
| 13684 | .eraseblocks = { {512 * 1024, 1} }, |
| 13685 | .block_erase = erase_chip_block_jedec, |
| 13686 | } |
| 13687 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13688 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13689 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13690 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13691 | }, |
| 13692 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13693 | { |
| 13694 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13695 | .name = "SST39SF512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13696 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13697 | .manufacture_id = SST_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13698 | .model_id = SST_SST39SF512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13699 | .total_size = 64, |
| 13700 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13701 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 13702 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13703 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13704 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13705 | .block_erasers = |
| 13706 | { |
| 13707 | { |
| 13708 | .eraseblocks = { {4 * 1024, 16} }, |
| 13709 | .block_erase = erase_sector_jedec, |
| 13710 | }, { |
| 13711 | .eraseblocks = { {64 * 1024, 1} }, |
| 13712 | .block_erase = erase_chip_block_jedec, |
| 13713 | } |
| 13714 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13715 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13716 | .read = read_memmapped, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13717 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13718 | }, |
| 13719 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13720 | { |
| 13721 | .vendor = "SST", |
| 13722 | .name = "SST39VF010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13723 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13724 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13725 | .model_id = SST_SST39VF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13726 | .total_size = 128, |
| 13727 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13728 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 13729 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13730 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13731 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13732 | .block_erasers = |
| 13733 | { |
| 13734 | { |
| 13735 | .eraseblocks = { {4 * 1024, 32} }, |
| 13736 | .block_erase = erase_sector_jedec, |
| 13737 | }, { |
| 13738 | .eraseblocks = { {128 * 1024, 1} }, |
| 13739 | .block_erase = erase_chip_block_jedec, |
| 13740 | } |
| 13741 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13742 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13743 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13744 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13745 | }, |
| 13746 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13747 | { |
| 13748 | .vendor = "SST", |
| 13749 | .name = "SST39VF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13750 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13751 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13752 | .model_id = SST_SST39VF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13753 | .total_size = 256, |
| 13754 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13755 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 13756 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13757 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13758 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13759 | .block_erasers = |
| 13760 | { |
| 13761 | { |
| 13762 | .eraseblocks = { {4 * 1024, 64} }, |
| 13763 | .block_erase = erase_sector_jedec, |
| 13764 | }, { |
| 13765 | .eraseblocks = { {256 * 1024, 1} }, |
| 13766 | .block_erase = erase_chip_block_jedec, |
| 13767 | } |
| 13768 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13769 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13770 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13771 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13772 | }, |
| 13773 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13774 | { |
| 13775 | .vendor = "SST", |
| 13776 | .name = "SST39VF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13777 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13778 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13779 | .model_id = SST_SST39VF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13780 | .total_size = 512, |
| 13781 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13782 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 13783 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13784 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13785 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13786 | .block_erasers = |
| 13787 | { |
| 13788 | { |
| 13789 | .eraseblocks = { {4 * 1024, 128} }, |
| 13790 | .block_erase = erase_sector_jedec, |
| 13791 | }, { |
| 13792 | .eraseblocks = { {512 * 1024, 1} }, |
| 13793 | .block_erase = erase_chip_block_jedec, |
| 13794 | } |
| 13795 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13796 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13797 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13798 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 90eff15 | 2008-12-08 23:51:45 +0000 | [diff] [blame] | 13799 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13800 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13801 | { |
| 13802 | .vendor = "SST", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 13803 | .name = "SST39VF080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13804 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 13805 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13806 | .model_id = SST_SST39VF080, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 13807 | .total_size = 1024, |
| 13808 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13809 | .feature_bits = FEATURE_EITHER_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 13810 | .tested = TEST_UNTESTED, |
| 13811 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13812 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13813 | .block_erasers = |
| 13814 | { |
| 13815 | { |
| 13816 | .eraseblocks = { {4 * 1024, 256} }, |
| 13817 | .block_erase = erase_sector_jedec, |
| 13818 | }, { |
| 13819 | .eraseblocks = { {64 * 1024, 16} }, |
| 13820 | .block_erase = erase_block_jedec, |
| 13821 | }, { |
| 13822 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13823 | .block_erase = erase_chip_block_jedec, |
| 13824 | } |
| 13825 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13826 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13827 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13828 | .voltage = {2700, 3600}, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 13829 | }, |
| 13830 | |
| 13831 | { |
| 13832 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13833 | .name = "SST39VF512", |
| 13834 | .bustype = BUS_PARALLEL, |
| 13835 | .manufacture_id = SST_ID, |
| 13836 | .model_id = SST_SST39VF512, |
| 13837 | .total_size = 64, |
| 13838 | .page_size = 4096, |
| 13839 | .feature_bits = FEATURE_EITHER_RESET, |
| 13840 | .tested = TEST_OK_PREW, |
| 13841 | .probe = probe_jedec, |
| 13842 | .probe_timing = 1, /* 150 ns */ |
| 13843 | .block_erasers = |
| 13844 | { |
| 13845 | { |
| 13846 | .eraseblocks = { {4 * 1024, 16} }, |
| 13847 | .block_erase = erase_sector_jedec, |
| 13848 | }, { |
| 13849 | .eraseblocks = { {64 * 1024, 1} }, |
| 13850 | .block_erase = erase_chip_block_jedec, |
| 13851 | } |
| 13852 | }, |
| 13853 | .write = write_jedec_1, |
| 13854 | .read = read_memmapped, |
| 13855 | .voltage = {2700, 3600}, |
| 13856 | }, |
| 13857 | |
| 13858 | { |
| 13859 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13860 | .name = "SST49LF002A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13861 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13862 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13863 | .model_id = SST_SST49LF002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13864 | .total_size = 256, |
| 13865 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13866 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 13867 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13868 | .probe = probe_jedec, |
| 13869 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13870 | .block_erasers = |
| 13871 | { |
| 13872 | { |
| 13873 | .eraseblocks = { {4 * 1024, 64} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13874 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13875 | }, { |
| 13876 | .eraseblocks = { {16 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13877 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13878 | }, { |
| 13879 | .eraseblocks = { {256 * 1024, 1} }, |
| 13880 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 13881 | } |
| 13882 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13883 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13884 | .unlock = unlock_sst_fwhub, |
| 13885 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13886 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13887 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13888 | }, |
| 13889 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13890 | { |
| 13891 | .vendor = "SST", |
| 13892 | .name = "SST49LF003A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13893 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13894 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13895 | .model_id = SST_SST49LF003A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13896 | .total_size = 384, |
| 13897 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13898 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 13899 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13900 | .probe = probe_jedec, |
| 13901 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13902 | .block_erasers = |
| 13903 | { |
| 13904 | { |
| 13905 | .eraseblocks = { {4 * 1024, 96} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13906 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13907 | }, { |
| 13908 | .eraseblocks = { {64 * 1024, 6} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13909 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13910 | }, { |
| 13911 | .eraseblocks = { {384 * 1024, 1} }, |
| 13912 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 13913 | } |
| 13914 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13915 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13916 | .unlock = unlock_sst_fwhub, |
| 13917 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13918 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13919 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13920 | }, |
| 13921 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13922 | { |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 13923 | /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB) |
| 13924 | * and is only honored for 64k block erase, but not 4k sector erase. |
| 13925 | */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13926 | .vendor = "SST", |
| 13927 | .name = "SST49LF004A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13928 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13929 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13930 | .model_id = SST_SST49LF004A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13931 | .total_size = 512, |
| 13932 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13933 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 13934 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13935 | .probe = probe_jedec, |
| 13936 | .probe_timing = 1, /* 150 ns */ |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 13937 | .block_erasers = |
| 13938 | { |
| 13939 | { |
| 13940 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13941 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 13942 | }, { |
| 13943 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13944 | .block_erase = erase_block_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 13945 | }, { |
| 13946 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13947 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 13948 | }, |
| 13949 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13950 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13951 | .unlock = unlock_sst_fwhub, |
| 13952 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13953 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13954 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13955 | }, |
| 13956 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13957 | { |
| 13958 | .vendor = "SST", |
| 13959 | .name = "SST49LF004C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13960 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13961 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13962 | .model_id = SST_SST49LF004C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13963 | .total_size = 512, |
| 13964 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13965 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13966 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13967 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 13968 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13969 | .block_erasers = |
| 13970 | { |
| 13971 | { |
| 13972 | .eraseblocks = { {4 * 1024, 128} }, |
| 13973 | .block_erase = erase_sector_49lfxxxc, |
| 13974 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13975 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13976 | {64 * 1024, 7}, |
| 13977 | {32 * 1024, 1}, |
| 13978 | {8 * 1024, 2}, |
| 13979 | {16 * 1024, 1}, |
| 13980 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 13981 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13982 | } |
| 13983 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13984 | .printlock = printlock_regspace2_block_eraser_1, |
| 13985 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 13986 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13987 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13988 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13989 | }, |
| 13990 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13991 | { |
| 13992 | .vendor = "SST", |
| 13993 | .name = "SST49LF008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13994 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13995 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13996 | .model_id = SST_SST49LF008A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13997 | .total_size = 1024, |
| 13998 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13999 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 14000 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14001 | .probe = probe_jedec, |
| 14002 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14003 | .block_erasers = |
| 14004 | { |
| 14005 | { |
| 14006 | .eraseblocks = { {4 * 1024, 256} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14007 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14008 | }, { |
| 14009 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14010 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14011 | }, { |
| 14012 | .eraseblocks = { {1024 * 1024, 1} }, |
| 14013 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 14014 | } |
| 14015 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14016 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14017 | .unlock = unlock_sst_fwhub, |
| 14018 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14019 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14020 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14021 | }, |
| 14022 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14023 | { |
| 14024 | .vendor = "SST", |
| 14025 | .name = "SST49LF008C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14026 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14027 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14028 | .model_id = SST_SST49LF008C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14029 | .total_size = 1024, |
| 14030 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14031 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14032 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14033 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14034 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14035 | .block_erasers = |
| 14036 | { |
| 14037 | { |
| 14038 | .eraseblocks = { {4 * 1024, 256} }, |
| 14039 | .block_erase = erase_sector_49lfxxxc, |
| 14040 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14041 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14042 | {64 * 1024, 15}, |
| 14043 | {32 * 1024, 1}, |
| 14044 | {8 * 1024, 2}, |
| 14045 | {16 * 1024, 1}, |
| 14046 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 14047 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14048 | } |
| 14049 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14050 | .printlock = printlock_regspace2_block_eraser_1, |
| 14051 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 14052 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14053 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14054 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14055 | }, |
| 14056 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14057 | { |
| 14058 | .vendor = "SST", |
| 14059 | .name = "SST49LF016C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14060 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14061 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14062 | .model_id = SST_SST49LF016C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14063 | .total_size = 2048, |
| 14064 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14065 | .feature_bits = FEATURE_REGISTERMAP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 14066 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14067 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14068 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14069 | .block_erasers = |
| 14070 | { |
| 14071 | { |
| 14072 | .eraseblocks = { {4 * 1024, 512} }, |
| 14073 | .block_erase = erase_sector_49lfxxxc, |
| 14074 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14075 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14076 | {64 * 1024, 31}, |
| 14077 | {32 * 1024, 1}, |
| 14078 | {8 * 1024, 2}, |
| 14079 | {16 * 1024, 1}, |
| 14080 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 14081 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14082 | } |
| 14083 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14084 | .printlock = printlock_regspace2_block_eraser_1, |
| 14085 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 14086 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14087 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14088 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14089 | }, |
| 14090 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14091 | { |
| 14092 | .vendor = "SST", |
| 14093 | .name = "SST49LF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14094 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14095 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14096 | .model_id = SST_SST49LF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14097 | .total_size = 256, |
| 14098 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14099 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 14100 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14101 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14102 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14103 | .block_erasers = |
| 14104 | { |
| 14105 | { |
| 14106 | .eraseblocks = { {4 * 1024, 64} }, |
| 14107 | .block_erase = erase_sector_jedec, |
| 14108 | }, { |
| 14109 | .eraseblocks = { {16 * 1024, 16} }, |
| 14110 | .block_erase = erase_block_jedec, |
| 14111 | }, { |
| 14112 | .eraseblocks = { {256 * 1024, 1} }, |
| 14113 | .block_erase = NULL, |
| 14114 | } |
| 14115 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14116 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14117 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14118 | .voltage = {3000, 3600}, |
Sven Schnelle | c208dfb | 2009-01-07 12:35:09 +0000 | [diff] [blame] | 14119 | }, |
| 14120 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14121 | { |
| 14122 | .vendor = "SST", |
| 14123 | .name = "SST49LF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14124 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14125 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14126 | .model_id = SST_SST49LF020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14127 | .total_size = 256, |
Carl-Daniel Hailfinger | da65432 | 2009-07-23 01:44:38 +0000 | [diff] [blame] | 14128 | .page_size = 4 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14129 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 14130 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14131 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14132 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14133 | .block_erasers = |
| 14134 | { |
| 14135 | { |
| 14136 | .eraseblocks = { {4 * 1024, 64} }, |
| 14137 | .block_erase = erase_sector_jedec, |
| 14138 | }, { |
| 14139 | .eraseblocks = { {16 * 1024, 16} }, |
| 14140 | .block_erase = erase_block_jedec, |
| 14141 | }, { |
| 14142 | .eraseblocks = { {256 * 1024, 1} }, |
| 14143 | .block_erase = NULL, |
| 14144 | } |
| 14145 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14146 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14147 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14148 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14149 | }, |
| 14150 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14151 | { |
| 14152 | .vendor = "SST", |
| 14153 | .name = "SST49LF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14154 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14155 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14156 | .model_id = SST_SST49LF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14157 | .total_size = 512, |
| 14158 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14159 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 14160 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14161 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14162 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14163 | .block_erasers = |
| 14164 | { |
| 14165 | { |
| 14166 | .eraseblocks = { {4 * 1024, 128} }, |
| 14167 | .block_erase = erase_sector_jedec, |
| 14168 | }, { |
| 14169 | .eraseblocks = { {64 * 1024, 8} }, |
| 14170 | .block_erase = erase_block_jedec, |
| 14171 | }, { |
| 14172 | .eraseblocks = { {512 * 1024, 1} }, |
| 14173 | .block_erase = NULL, |
| 14174 | } |
| 14175 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14176 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14177 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14178 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14179 | }, |
| 14180 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14181 | { |
| 14182 | .vendor = "SST", |
| 14183 | .name = "SST49LF040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14184 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14185 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14186 | .model_id = SST_SST49LF040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14187 | .total_size = 512, |
| 14188 | .page_size = 64 * 1024, |
Joshua Roys | a84b0bd | 2010-08-16 22:12:39 +0000 | [diff] [blame] | 14189 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 14190 | .tested = TEST_OK_PREW, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14191 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14192 | .probe_timing = 1, /* 150ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14193 | .block_erasers = |
| 14194 | { |
| 14195 | { |
| 14196 | .eraseblocks = { {4 * 1024, 128} }, |
| 14197 | .block_erase = erase_sector_jedec, |
| 14198 | }, { |
| 14199 | .eraseblocks = { {64 * 1024, 8} }, |
| 14200 | .block_erase = erase_block_jedec, |
| 14201 | }, { |
| 14202 | .eraseblocks = { {512 * 1024, 1} }, |
| 14203 | .block_erase = NULL, |
| 14204 | } |
| 14205 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14206 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14207 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14208 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14209 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14210 | }, |
| 14211 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14212 | { |
| 14213 | .vendor = "SST", |
| 14214 | .name = "SST49LF080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14215 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14216 | .manufacture_id = SST_ID, |
Elyes HAOUAS | 124ef38 | 2018-03-27 12:15:09 +0200 | [diff] [blame] | 14217 | .model_id = SST_SST49LF080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14218 | .total_size = 1024, |
| 14219 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14220 | .feature_bits = FEATURE_EITHER_RESET, |
Brandon Dowdy | f07bf32 | 2011-03-06 18:31:11 +0000 | [diff] [blame] | 14221 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14222 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14223 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14224 | .block_erasers = |
| 14225 | { |
| 14226 | { |
| 14227 | .eraseblocks = { {4 * 1024, 256} }, |
| 14228 | .block_erase = erase_sector_jedec, |
| 14229 | }, { |
| 14230 | .eraseblocks = { {64 * 1024, 16} }, |
| 14231 | .block_erase = erase_block_jedec, |
| 14232 | }, { |
| 14233 | .eraseblocks = { {1024 * 1024, 1} }, |
| 14234 | .block_erase = NULL, |
| 14235 | } |
| 14236 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14237 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14238 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14239 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14240 | }, |
| 14241 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14242 | { |
| 14243 | .vendor = "SST", |
| 14244 | .name = "SST49LF160C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14245 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14246 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14247 | .model_id = SST_SST49LF160C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14248 | .total_size = 2048, |
| 14249 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14250 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14251 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14252 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14253 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14254 | .block_erasers = |
| 14255 | { |
| 14256 | { |
| 14257 | .eraseblocks = { {4 * 1024, 512} }, |
| 14258 | .block_erase = erase_sector_49lfxxxc, |
| 14259 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14260 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14261 | {64 * 1024, 31}, |
| 14262 | {32 * 1024, 1}, |
| 14263 | {8 * 1024, 2}, |
| 14264 | {16 * 1024, 1}, |
| 14265 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 14266 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14267 | } |
| 14268 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14269 | .printlock = printlock_regspace2_block_eraser_1, |
| 14270 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 14271 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14272 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14273 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14274 | }, |
| 14275 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14276 | { |
| 14277 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14278 | .name = "M29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14279 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14280 | .manufacture_id = ST_ID, |
| 14281 | .model_id = ST_M29F002B, |
| 14282 | .total_size = 256, |
| 14283 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14284 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14285 | .tested = TEST_UNTESTED, |
| 14286 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14287 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14288 | .block_erasers = |
| 14289 | { |
| 14290 | { |
| 14291 | .eraseblocks = { |
| 14292 | {16 * 1024, 1}, |
| 14293 | {8 * 1024, 2}, |
| 14294 | {32 * 1024, 1}, |
| 14295 | {64 * 1024, 3}, |
| 14296 | }, |
| 14297 | .block_erase = erase_sector_jedec, |
| 14298 | }, { |
| 14299 | .eraseblocks = { {256 * 1024, 1} }, |
| 14300 | .block_erase = erase_chip_block_jedec, |
| 14301 | } |
| 14302 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14303 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14304 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 14305 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14306 | }, |
| 14307 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14308 | { |
| 14309 | .vendor = "ST", |
| 14310 | .name = "M29F002T/NT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14311 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14312 | .manufacture_id = ST_ID, |
| 14313 | .model_id = ST_M29F002T, |
| 14314 | .total_size = 256, |
| 14315 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14316 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 14317 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14318 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14319 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14320 | .block_erasers = |
| 14321 | { |
| 14322 | { |
| 14323 | .eraseblocks = { |
| 14324 | {64 * 1024, 3}, |
| 14325 | {32 * 1024, 1}, |
| 14326 | {8 * 1024, 2}, |
| 14327 | {16 * 1024, 1}, |
| 14328 | }, |
| 14329 | .block_erase = erase_sector_jedec, |
| 14330 | }, { |
| 14331 | .eraseblocks = { {256 * 1024, 1} }, |
| 14332 | .block_erase = erase_chip_block_jedec, |
| 14333 | } |
| 14334 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14335 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14336 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 14337 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14338 | }, |
| 14339 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14340 | { |
| 14341 | .vendor = "ST", |
| 14342 | .name = "M29F040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14343 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14344 | .manufacture_id = ST_ID, |
| 14345 | .model_id = ST_M29F040B, |
| 14346 | .total_size = 512, |
| 14347 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14348 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 14349 | .tested = TEST_UNTESTED, |
| 14350 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 14351 | .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14352 | .block_erasers = |
| 14353 | { |
| 14354 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14355 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14356 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14357 | }, { |
| 14358 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14359 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14360 | } |
| 14361 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14362 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14363 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14364 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14365 | }, |
| 14366 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14367 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14368 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14369 | .vendor = "ST", |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 14370 | .name = "M29F400BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14371 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 14372 | .manufacture_id = ST_ID, |
| 14373 | .model_id = ST_M29F400BB, |
| 14374 | .total_size = 512, |
| 14375 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14376 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 14377 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14378 | .probe = probe_jedec, |
| 14379 | .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 14380 | .block_erasers = |
| 14381 | { |
| 14382 | { |
| 14383 | .eraseblocks = { |
| 14384 | {16 * 1024, 1}, |
| 14385 | {8 * 1024, 2}, |
| 14386 | {32 * 1024, 1}, |
| 14387 | {64 * 1024, 7}, |
| 14388 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14389 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 14390 | }, { |
| 14391 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14392 | .block_erase = erase_chip_block_jedec, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 14393 | } |
| 14394 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14395 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 14396 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14397 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 14398 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 14399 | |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 14400 | { |
| 14401 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
| 14402 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14403 | .name = "M29F400BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14404 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14405 | .manufacture_id = ST_ID, |
| 14406 | .model_id = ST_M29F400BT, |
| 14407 | .total_size = 512, |
| 14408 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14409 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14410 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14411 | .probe = probe_jedec, |
| 14412 | .probe_timing = 10, // FIXME: check datasheet. Using the 10 us from probe_m29f400bt |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14413 | .block_erasers = |
| 14414 | { |
| 14415 | { |
| 14416 | .eraseblocks = { |
| 14417 | {64 * 1024, 7}, |
| 14418 | {32 * 1024, 1}, |
| 14419 | {8 * 1024, 2}, |
| 14420 | {16 * 1024, 1}, |
| 14421 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14422 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14423 | }, { |
| 14424 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14425 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14426 | } |
| 14427 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14428 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14429 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14430 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14431 | }, |
| 14432 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14433 | { |
| 14434 | .vendor = "ST", |
| 14435 | .name = "M29W010B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14436 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14437 | .manufacture_id = ST_ID, |
| 14438 | .model_id = ST_M29W010B, |
| 14439 | .total_size = 128, |
| 14440 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14441 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14442 | .tested = TEST_UNTESTED, |
| 14443 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14444 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14445 | .block_erasers = |
| 14446 | { |
| 14447 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14448 | .eraseblocks = { {16 * 1024, 8} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14449 | .block_erase = erase_sector_jedec, |
| 14450 | }, { |
| 14451 | .eraseblocks = { {128 * 1024, 1} }, |
| 14452 | .block_erase = erase_chip_block_jedec, |
| 14453 | } |
| 14454 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14455 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14456 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14457 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14458 | }, |
| 14459 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14460 | { |
| 14461 | .vendor = "ST", |
| 14462 | .name = "M29W040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14463 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14464 | .manufacture_id = ST_ID, |
| 14465 | .model_id = ST_M29W040B, |
| 14466 | .total_size = 512, |
| 14467 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14468 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14469 | .tested = TEST_UNTESTED, |
| 14470 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14471 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14472 | .block_erasers = |
| 14473 | { |
| 14474 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14475 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14476 | .block_erase = erase_sector_jedec, |
| 14477 | }, { |
| 14478 | .eraseblocks = { {512 * 1024, 1} }, |
| 14479 | .block_erase = erase_chip_block_jedec, |
| 14480 | } |
| 14481 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14482 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14483 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14484 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14485 | }, |
| 14486 | |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 14487 | { |
| 14488 | .vendor = "ST", |
| 14489 | .name = "M29W512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14490 | .bustype = BUS_PARALLEL, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 14491 | .manufacture_id = ST_ID, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 14492 | .model_id = ST_M29W512B, |
| 14493 | .total_size = 64, |
| 14494 | .page_size = 64 * 1024, |
| 14495 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14496 | .tested = TEST_OK_PREW, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 14497 | .probe = probe_jedec, |
| 14498 | .probe_timing = TIMING_ZERO, |
| 14499 | .block_erasers = |
| 14500 | { |
| 14501 | { |
| 14502 | .eraseblocks = { {64 * 1024, 1} }, |
| 14503 | .block_erase = erase_chip_block_jedec, |
| 14504 | } |
| 14505 | }, |
| 14506 | .write = write_jedec_1, |
| 14507 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14508 | .voltage = {2700, 3600}, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 14509 | }, |
Jeffrey A. Kent | ba7c922 | 2010-02-01 05:49:46 +0000 | [diff] [blame] | 14510 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14511 | { |
| 14512 | .vendor = "ST", |
| 14513 | .name = "M50FLW040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14514 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14515 | .manufacture_id = ST_ID, |
| 14516 | .model_id = ST_M50FLW040A, |
| 14517 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14518 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14519 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14520 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14521 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 14522 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14523 | .block_erasers = |
| 14524 | { |
| 14525 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14526 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14527 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14528 | {64 * 1024, 5}, /* block */ |
| 14529 | {4 * 1024, 16}, /* sector */ |
| 14530 | {4 * 1024, 16}, /* sector */ |
| 14531 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 14532 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14533 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14534 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14535 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14536 | } |
| 14537 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14538 | .unlock = unlock_regspace2_uniform_64k, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 14539 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14540 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14541 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14542 | }, |
| 14543 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14544 | { |
| 14545 | .vendor = "ST", |
| 14546 | .name = "M50FLW040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14547 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14548 | .manufacture_id = ST_ID, |
| 14549 | .model_id = ST_M50FLW040B, |
| 14550 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14551 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14552 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14553 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14554 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 14555 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14556 | .block_erasers = |
| 14557 | { |
| 14558 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14559 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14560 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14561 | {4 * 1024, 16}, /* sector */ |
| 14562 | {64 * 1024, 5}, /* block */ |
| 14563 | {4 * 1024, 16}, /* sector */ |
| 14564 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 14565 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14566 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14567 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14568 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14569 | } |
| 14570 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14571 | .unlock = unlock_regspace2_uniform_64k, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 14572 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14573 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14574 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14575 | }, |
| 14576 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14577 | { |
| 14578 | .vendor = "ST", |
| 14579 | .name = "M50FLW080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14580 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14581 | .manufacture_id = ST_ID, |
| 14582 | .model_id = ST_M50FLW080A, |
| 14583 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14584 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14585 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14586 | .tested = TEST_OK_PR, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14587 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 14588 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14589 | .block_erasers = |
| 14590 | { |
| 14591 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14592 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14593 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14594 | {64 * 1024, 13}, /* block */ |
| 14595 | {4 * 1024, 16}, /* sector */ |
| 14596 | {4 * 1024, 16}, /* sector */ |
| 14597 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 14598 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14599 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14600 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14601 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14602 | } |
| 14603 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14604 | .printlock = printlock_regspace2_block_eraser_0, |
| 14605 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14606 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14607 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14608 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14609 | }, |
| 14610 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14611 | { |
| 14612 | .vendor = "ST", |
| 14613 | .name = "M50FLW080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14614 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14615 | .manufacture_id = ST_ID, |
| 14616 | .model_id = ST_M50FLW080B, |
| 14617 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14618 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14619 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14620 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14621 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 14622 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14623 | .block_erasers = |
| 14624 | { |
| 14625 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14626 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14627 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14628 | {4 * 1024, 16}, /* sector */ |
| 14629 | {64 * 1024, 13}, /* block */ |
| 14630 | {4 * 1024, 16}, /* sector */ |
| 14631 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 14632 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14633 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14634 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14635 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14636 | } |
| 14637 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14638 | .printlock = printlock_regspace2_block_eraser_0, |
| 14639 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14640 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14641 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14642 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14643 | }, |
| 14644 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14645 | { |
| 14646 | .vendor = "ST", |
| 14647 | .name = "M50FW002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14648 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14649 | .manufacture_id = ST_ID, |
| 14650 | .model_id = ST_M50FW002, |
| 14651 | .total_size = 256, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14652 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14653 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14654 | .tested = TEST_OK_PR, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14655 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14656 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14657 | .block_erasers = |
| 14658 | { |
| 14659 | { |
| 14660 | .eraseblocks = { |
| 14661 | {64 * 1024, 3}, |
| 14662 | {32 * 1024, 1}, |
| 14663 | {8 * 1024, 2}, |
| 14664 | {16 * 1024, 1}, |
| 14665 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14666 | .block_erase = erase_block_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14667 | }, { |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 14668 | .eraseblocks = { {256 * 1024, 1} }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14669 | .block_erase = NULL, /* Only in A/A mux mode */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14670 | } |
| 14671 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14672 | .printlock = printlock_regspace2_block_eraser_0, |
| 14673 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14674 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14675 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14676 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14677 | }, |
| 14678 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14679 | { |
| 14680 | .vendor = "ST", |
| 14681 | .name = "M50FW016", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14682 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14683 | .manufacture_id = ST_ID, |
| 14684 | .model_id = ST_M50FW016, |
| 14685 | .total_size = 2048, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14686 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14687 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14688 | .tested = TEST_UNTESTED, |
| 14689 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14690 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14691 | .block_erasers = |
| 14692 | { |
| 14693 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14694 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14695 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14696 | } |
| 14697 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14698 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14699 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14700 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14701 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14702 | }, |
| 14703 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14704 | { |
| 14705 | .vendor = "ST", |
| 14706 | .name = "M50FW040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14707 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14708 | .manufacture_id = ST_ID, |
| 14709 | .model_id = ST_M50FW040, |
| 14710 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14711 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14712 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14713 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14714 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14715 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14716 | .block_erasers = |
| 14717 | { |
| 14718 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14719 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14720 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14721 | } |
| 14722 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14723 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14724 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14725 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14726 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14727 | }, |
| 14728 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14729 | { |
| 14730 | .vendor = "ST", |
| 14731 | .name = "M50FW080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14732 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14733 | .manufacture_id = ST_ID, |
| 14734 | .model_id = ST_M50FW080, |
| 14735 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14736 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14737 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14738 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14739 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14740 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14741 | .block_erasers = |
| 14742 | { |
| 14743 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14744 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14745 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14746 | } |
| 14747 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14748 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14749 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14750 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14751 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14752 | }, |
| 14753 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14754 | { |
| 14755 | .vendor = "ST", |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 14756 | .name = "M50LPW080", |
| 14757 | .bustype = BUS_LPC, /* A/A Mux */ |
| 14758 | .manufacture_id = ST_ID, |
| 14759 | .model_id = ST_M50LPW080, |
| 14760 | .total_size = 1024, |
| 14761 | .page_size = 0, |
| 14762 | .feature_bits = FEATURE_REGISTERMAP, |
| 14763 | .tested = TEST_UNTESTED, |
| 14764 | .probe = probe_82802ab, |
| 14765 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 14766 | .block_erasers = |
| 14767 | { |
| 14768 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14769 | .eraseblocks = { {64 * 1024, 16} }, |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 14770 | .block_erase = erase_block_82802ab, |
| 14771 | } |
| 14772 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14773 | .unlock = unlock_regspace2_uniform_64k, |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 14774 | .write = write_82802ab, |
| 14775 | .read = read_memmapped, |
| 14776 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
| 14777 | }, |
| 14778 | |
| 14779 | { |
| 14780 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14781 | .name = "M50LPW116", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14782 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14783 | .manufacture_id = ST_ID, |
| 14784 | .model_id = ST_M50LPW116, |
| 14785 | .total_size = 2048, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14786 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14787 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14788 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14789 | .probe = probe_82802ab, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14790 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14791 | .block_erasers = |
| 14792 | { |
| 14793 | { |
| 14794 | .eraseblocks = { |
| 14795 | {4 * 1024, 16}, |
| 14796 | {64 * 1024, 30}, |
| 14797 | {32 * 1024, 1}, |
| 14798 | {8 * 1024, 2}, |
| 14799 | {16 * 1024, 1}, |
| 14800 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14801 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14802 | } |
| 14803 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14804 | .printlock = printlock_regspace2_block_eraser_0, |
| 14805 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14806 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14807 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14808 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14809 | }, |
| 14810 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14811 | { |
Konstantin Grudnev | 3d8868c | 2019-07-23 00:48:54 +0300 | [diff] [blame] | 14812 | .vendor = "ST", |
| 14813 | .name = "M95M02", |
| 14814 | .bustype = BUS_SPI, |
| 14815 | .manufacture_id = ST_ID, |
| 14816 | .model_id = ST_M95M02, |
| 14817 | .total_size = 256, |
| 14818 | .page_size = 256, |
| 14819 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_NO_ERASE | FEATURE_ERASED_ZERO, |
| 14820 | .tested = TEST_OK_PREW, |
| 14821 | .probe = probe_spi_st95, |
| 14822 | .probe_timing = TIMING_ZERO, |
| 14823 | .block_erasers = |
| 14824 | { |
| 14825 | { |
| 14826 | .eraseblocks = { {256 * 1024, 1} }, |
| 14827 | .block_erase = spi_block_erase_emulation, |
| 14828 | } |
| 14829 | }, |
| 14830 | |
| 14831 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 14832 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 14833 | .write = spi_chip_write_256, |
| 14834 | .read = spi_chip_read, |
| 14835 | .voltage = {2500, 5500}, |
| 14836 | }, |
| 14837 | |
| 14838 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14839 | .vendor = "Sanyo", |
| 14840 | .name = "LE25FU106B", |
| 14841 | .bustype = BUS_SPI, |
| 14842 | .manufacture_id = SANYO_ID, |
| 14843 | .model_id = SANYO_LE25FU106B, |
| 14844 | .total_size = 128, |
| 14845 | .page_size = 256, |
| 14846 | .feature_bits = FEATURE_WRSR_WREN, |
| 14847 | .tested = TEST_UNTESTED, |
| 14848 | .probe = probe_spi_res2, |
| 14849 | .probe_timing = TIMING_ZERO, |
| 14850 | .block_erasers = |
| 14851 | { |
| 14852 | /* FIXME: Is this correct? |
| 14853 | { |
| 14854 | .eraseblocks = { {2 * 1024, 64} }, |
| 14855 | .block_erase = spi_block_erase_d7, |
| 14856 | },*/ |
| 14857 | { |
| 14858 | .eraseblocks = { {32 * 1024, 4} }, |
| 14859 | .block_erase = spi_block_erase_d8, |
| 14860 | }, { |
| 14861 | .eraseblocks = { {128 * 1024, 1} }, |
| 14862 | .block_erase = spi_block_erase_c7, |
| 14863 | } |
| 14864 | }, |
| 14865 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 14866 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 14867 | .write = spi_chip_write_256, |
| 14868 | .read = spi_chip_read, |
| 14869 | .voltage = {2300, 3600}, |
| 14870 | }, |
| 14871 | |
| 14872 | { |
| 14873 | .vendor = "Sanyo", |
| 14874 | .name = "LE25FU206", |
| 14875 | .bustype = BUS_SPI, |
| 14876 | .manufacture_id = SANYO_ID, |
| 14877 | .model_id = SANYO_LE25FU206, |
| 14878 | .total_size = 256, |
| 14879 | .page_size = 256, |
| 14880 | .feature_bits = FEATURE_WRSR_WREN, |
| 14881 | .tested = TEST_UNTESTED, |
| 14882 | .probe = probe_spi_res2, |
| 14883 | .probe_timing = TIMING_ZERO, |
| 14884 | .block_erasers = |
| 14885 | { |
| 14886 | { |
| 14887 | .eraseblocks = { {4 * 1024, 64} }, |
| 14888 | .block_erase = spi_block_erase_d7, |
| 14889 | }, { |
| 14890 | .eraseblocks = { {64 * 1024, 4} }, |
| 14891 | .block_erase = spi_block_erase_d8, |
| 14892 | }, { |
| 14893 | .eraseblocks = { {256 * 1024, 1} }, |
| 14894 | .block_erase = spi_block_erase_c7, |
| 14895 | } |
| 14896 | }, |
| 14897 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 14898 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 14899 | .write = spi_chip_write_256, |
| 14900 | .read = spi_chip_read, |
| 14901 | .voltage = {2300, 3600}, |
| 14902 | }, |
| 14903 | |
| 14904 | { |
| 14905 | .vendor = "Sanyo", |
| 14906 | .name = "LE25FU206A", |
| 14907 | .bustype = BUS_SPI, |
| 14908 | .manufacture_id = SANYO_ID, |
| 14909 | .model_id = SANYO_LE25FU206A, |
| 14910 | .total_size = 256, |
| 14911 | .page_size = 256, |
| 14912 | .tested = TEST_UNTESTED, |
| 14913 | .probe = probe_spi_rdid, |
| 14914 | .probe_timing = TIMING_ZERO, |
| 14915 | .block_erasers = |
| 14916 | { |
| 14917 | { |
| 14918 | .eraseblocks = { {4 * 1024, 64} }, |
| 14919 | .block_erase = spi_block_erase_20, |
| 14920 | }, { |
| 14921 | .eraseblocks = { {4 * 1024, 64} }, |
| 14922 | .block_erase = spi_block_erase_d7, |
| 14923 | }, { |
| 14924 | .eraseblocks = { {64 * 1024, 4} }, |
| 14925 | .block_erase = spi_block_erase_d8, |
| 14926 | }, { |
| 14927 | .eraseblocks = { {256 * 1024, 1} }, |
| 14928 | .block_erase = spi_block_erase_60, |
| 14929 | }, { |
| 14930 | .eraseblocks = { {256 * 1024, 1} }, |
| 14931 | .block_erase = spi_block_erase_c7, |
| 14932 | } |
| 14933 | }, |
| 14934 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 14935 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 14936 | .write = spi_chip_write_256, |
| 14937 | .read = spi_chip_read, |
| 14938 | .voltage = {2300, 3600}, |
| 14939 | }, |
| 14940 | |
| 14941 | { |
| 14942 | .vendor = "Sanyo", |
| 14943 | .name = "LE25FU406B", |
| 14944 | .bustype = BUS_SPI, |
| 14945 | .manufacture_id = SANYO_ID, |
| 14946 | .model_id = SANYO_LE25FU406B, |
| 14947 | .total_size = 512, |
| 14948 | .page_size = 256, |
| 14949 | .feature_bits = FEATURE_WRSR_WREN, |
| 14950 | .tested = TEST_OK_PREW, |
| 14951 | .probe = probe_spi_res2, |
| 14952 | .probe_timing = TIMING_ZERO, |
| 14953 | .block_erasers = |
| 14954 | { |
| 14955 | { |
| 14956 | .eraseblocks = { {4 * 1024, 128} }, |
| 14957 | .block_erase = spi_block_erase_d7, |
| 14958 | }, { |
| 14959 | .eraseblocks = { {64 * 1024, 8} }, |
| 14960 | .block_erase = spi_block_erase_d8, |
| 14961 | }, { |
| 14962 | .eraseblocks = { {512 * 1024, 1} }, |
| 14963 | .block_erase = spi_block_erase_c7, |
| 14964 | } |
| 14965 | }, |
| 14966 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 14967 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 14968 | .write = spi_chip_write_256, |
| 14969 | .read = spi_chip_read, |
| 14970 | .voltage = {2300, 3600}, |
| 14971 | }, |
| 14972 | |
| 14973 | { |
| 14974 | .vendor = "Sanyo", |
| 14975 | .name = "LE25FU406C/LE25U40CMC", |
| 14976 | .bustype = BUS_SPI, |
| 14977 | .manufacture_id = SANYO_ID, |
| 14978 | .model_id = SANYO_LE25FU406C, |
| 14979 | .total_size = 512, |
| 14980 | .page_size = 256, |
| 14981 | .feature_bits = FEATURE_WRSR_WREN, |
| 14982 | .tested = TEST_OK_PREW, |
| 14983 | .probe = probe_spi_rdid, |
| 14984 | .probe_timing = TIMING_ZERO, |
| 14985 | .block_erasers = |
| 14986 | { |
| 14987 | { |
| 14988 | .eraseblocks = { {4 * 1024, 128} }, |
| 14989 | .block_erase = spi_block_erase_20, |
| 14990 | }, { |
| 14991 | .eraseblocks = { {4 * 1024, 128} }, |
| 14992 | .block_erase = spi_block_erase_d7, |
| 14993 | }, { |
| 14994 | .eraseblocks = { {64 * 1024, 8} }, |
| 14995 | .block_erase = spi_block_erase_d8, |
| 14996 | }, { |
| 14997 | .eraseblocks = { {512 * 1024, 1} }, |
| 14998 | .block_erase = spi_block_erase_60, |
| 14999 | }, { |
| 15000 | .eraseblocks = { {512 * 1024, 1} }, |
| 15001 | .block_erase = spi_block_erase_c7, |
| 15002 | } |
| 15003 | }, |
| 15004 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 15005 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 15006 | .write = spi_chip_write_256, |
| 15007 | .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */ |
| 15008 | .voltage = {2300, 3600}, |
| 15009 | }, |
| 15010 | |
| 15011 | { |
| 15012 | .vendor = "Sanyo", |
| 15013 | .name = "LE25FW106", |
| 15014 | .bustype = BUS_SPI, |
| 15015 | .manufacture_id = SANYO_ID, |
| 15016 | .model_id = SANYO_LE25FW106, |
| 15017 | .total_size = 128, |
| 15018 | .page_size = 256, |
| 15019 | .feature_bits = FEATURE_WRSR_WREN, |
| 15020 | .tested = TEST_OK_PREW, |
| 15021 | .probe = probe_spi_res2, |
| 15022 | .probe_timing = TIMING_ZERO, |
| 15023 | .block_erasers = |
| 15024 | { |
| 15025 | { |
| 15026 | .eraseblocks = { {2 * 1024, 64} }, |
| 15027 | .block_erase = spi_block_erase_d7, |
| 15028 | }, { |
| 15029 | .eraseblocks = { {32 * 1024, 4} }, |
| 15030 | .block_erase = spi_block_erase_d8, |
| 15031 | }, { |
| 15032 | .eraseblocks = { {128 * 1024, 1} }, |
| 15033 | .block_erase = spi_block_erase_c7, |
| 15034 | } |
| 15035 | }, |
| 15036 | .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */ |
| 15037 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 15038 | .write = spi_chip_write_256, |
| 15039 | .read = spi_chip_read, |
| 15040 | .voltage = {2700, 3600}, |
| 15041 | }, |
| 15042 | |
| 15043 | { |
| 15044 | .vendor = "Sanyo", |
| 15045 | .name = "LE25FW203A", |
| 15046 | .bustype = BUS_SPI, |
| 15047 | .manufacture_id = SANYO_ID, |
| 15048 | .model_id = SANYO_LE25FW203A, |
| 15049 | .total_size = 256, |
| 15050 | .page_size = 256, |
| 15051 | .tested = TEST_UNTESTED, |
| 15052 | .probe = probe_spi_rdid, |
| 15053 | .probe_timing = TIMING_ZERO, |
| 15054 | .block_erasers = |
| 15055 | { |
| 15056 | { |
| 15057 | .eraseblocks = { {256, 1024} }, |
| 15058 | .block_erase = spi_block_erase_db, |
| 15059 | }, { |
| 15060 | .eraseblocks = { {64 * 1024, 4} }, |
| 15061 | .block_erase = spi_block_erase_d8, |
| 15062 | }, { |
| 15063 | .eraseblocks = { {256 * 1024, 1} }, |
| 15064 | .block_erase = spi_block_erase_c7, |
| 15065 | } |
| 15066 | }, |
| 15067 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 15068 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 15069 | .write = spi_chip_write_256, |
| 15070 | .read = spi_chip_read, |
| 15071 | .voltage = {2700, 3600}, |
| 15072 | }, |
| 15073 | |
| 15074 | { |
| 15075 | .vendor = "Sanyo", |
| 15076 | .name = "LE25FW403A", |
| 15077 | .bustype = BUS_SPI, |
| 15078 | .manufacture_id = SANYO_ID, |
| 15079 | .model_id = SANYO_LE25FW403A, |
| 15080 | .total_size = 512, |
| 15081 | .page_size = 256, |
| 15082 | .tested = TEST_UNTESTED, |
| 15083 | .probe = probe_spi_rdid, |
| 15084 | .probe_timing = TIMING_ZERO, |
| 15085 | .block_erasers = |
| 15086 | { |
| 15087 | { |
| 15088 | .eraseblocks = { {256, 2 * 1024} }, |
| 15089 | .block_erase = spi_block_erase_db, |
| 15090 | }, { |
| 15091 | .eraseblocks = { {64 * 1024, 8} }, |
| 15092 | .block_erase = spi_block_erase_d8, |
| 15093 | }, { |
| 15094 | .eraseblocks = { {512 * 1024, 1} }, |
| 15095 | .block_erase = spi_block_erase_c7, |
| 15096 | } |
| 15097 | }, |
| 15098 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 15099 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 15100 | .write = spi_chip_write_256, |
| 15101 | .read = spi_chip_read, |
| 15102 | .voltage = {2700, 3600}, |
| 15103 | }, |
| 15104 | |
| 15105 | { |
| 15106 | .vendor = "Sanyo", |
| 15107 | .name = "LE25FW406A", |
| 15108 | .bustype = BUS_SPI, |
| 15109 | .manufacture_id = SANYO_ID, |
| 15110 | .model_id = SANYO_LE25FW406A, |
| 15111 | .total_size = 512, |
| 15112 | .page_size = 256, |
| 15113 | .feature_bits = FEATURE_WRSR_WREN, |
| 15114 | .tested = TEST_OK_PREW, |
| 15115 | .probe = probe_spi_res2, |
| 15116 | .probe_timing = TIMING_ZERO, |
| 15117 | .block_erasers = |
| 15118 | { |
| 15119 | { |
| 15120 | .eraseblocks = { {4 * 1024, 128} }, |
| 15121 | .block_erase = spi_block_erase_d7, |
| 15122 | }, { |
| 15123 | .eraseblocks = { {64 * 1024, 8} }, |
| 15124 | .block_erase = spi_block_erase_d8, |
| 15125 | }, { |
| 15126 | .eraseblocks = { {512 * 1024, 1} }, |
| 15127 | .block_erase = spi_block_erase_c7, |
| 15128 | } |
| 15129 | }, |
| 15130 | .printlock = spi_prettyprint_status_register_plain, |
| 15131 | .unlock = spi_disable_blockprotect, |
| 15132 | .write = spi_chip_write_256, |
| 15133 | .read = spi_chip_read, |
| 15134 | .voltage = {2700, 3600}, |
| 15135 | }, |
| 15136 | |
| 15137 | { |
| 15138 | .vendor = "Sanyo", |
| 15139 | .name = "LE25FW418A", |
| 15140 | .bustype = BUS_SPI, |
| 15141 | .manufacture_id = SANYO_ID, |
| 15142 | .model_id = SANYO_LE25FW418A, |
| 15143 | .total_size = 512, |
| 15144 | .page_size = 256, |
| 15145 | .feature_bits = FEATURE_WRSR_WREN, |
| 15146 | .tested = TEST_UNTESTED, |
| 15147 | .probe = probe_spi_res2, |
| 15148 | .probe_timing = TIMING_ZERO, |
| 15149 | .block_erasers = |
| 15150 | { |
| 15151 | { |
| 15152 | .eraseblocks = { {4 * 1024, 128} }, |
| 15153 | .block_erase = spi_block_erase_d7, |
| 15154 | }, { |
| 15155 | .eraseblocks = { {64 * 1024, 8} }, |
| 15156 | .block_erase = spi_block_erase_d8, |
| 15157 | }, { |
| 15158 | .eraseblocks = { {512 * 1024, 1} }, |
| 15159 | .block_erase = spi_block_erase_c7, |
| 15160 | } |
| 15161 | }, |
| 15162 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 15163 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 15164 | .write = spi_chip_write_256, |
| 15165 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 15166 | .voltage = {2700, 3600}, |
| 15167 | }, |
| 15168 | |
| 15169 | { |
| 15170 | .vendor = "Sanyo", |
| 15171 | .name = "LE25FW806", |
| 15172 | .bustype = BUS_SPI, |
| 15173 | .manufacture_id = SANYO_ID, |
| 15174 | .model_id = SANYO_LE25FW806, |
| 15175 | .total_size = 1024, |
| 15176 | .page_size = 256, |
| 15177 | .feature_bits = FEATURE_WRSR_WREN, |
| 15178 | .tested = TEST_UNTESTED, |
| 15179 | .probe = probe_spi_res2, |
| 15180 | .probe_timing = TIMING_ZERO, |
| 15181 | .block_erasers = |
| 15182 | { |
| 15183 | { |
| 15184 | .eraseblocks = { {4 * 1024, 256} }, |
| 15185 | .block_erase = spi_block_erase_20, |
| 15186 | }, { |
| 15187 | .eraseblocks = { {4 * 1024, 256} }, |
| 15188 | .block_erase = spi_block_erase_d7, |
| 15189 | }, { |
| 15190 | .eraseblocks = { {64 * 1024, 16} }, |
| 15191 | .block_erase = spi_block_erase_d8, |
| 15192 | }, { |
| 15193 | .eraseblocks = { {1024 * 1024, 1} }, |
| 15194 | .block_erase = spi_block_erase_c7, |
| 15195 | } |
| 15196 | }, |
| 15197 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 15198 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 15199 | .write = spi_chip_write_256, |
| 15200 | .read = spi_chip_read, |
| 15201 | .voltage = {2700, 3600}, |
| 15202 | }, |
| 15203 | |
| 15204 | { |
| 15205 | .vendor = "Sanyo", |
| 15206 | .name = "LE25FW808", |
| 15207 | .bustype = BUS_SPI, |
| 15208 | .manufacture_id = SANYO_ID, |
| 15209 | .model_id = SANYO_LE25FW808, |
| 15210 | .total_size = 1024, |
| 15211 | .page_size = 256, |
| 15212 | .feature_bits = FEATURE_WRSR_WREN, |
| 15213 | .tested = TEST_UNTESTED, |
| 15214 | .probe = probe_spi_res2, |
| 15215 | .probe_timing = TIMING_ZERO, |
| 15216 | .block_erasers = |
| 15217 | { |
| 15218 | { |
| 15219 | .eraseblocks = { {8 * 1024, 128} }, |
| 15220 | .block_erase = spi_block_erase_d7, |
| 15221 | }, { |
| 15222 | .eraseblocks = { {64 * 1024, 16} }, |
| 15223 | .block_erase = spi_block_erase_d8, |
| 15224 | }, { |
| 15225 | .eraseblocks = { {1024 * 1024, 1} }, |
| 15226 | .block_erase = spi_block_erase_c7, |
| 15227 | } |
| 15228 | }, |
| 15229 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 15230 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 15231 | .write = spi_chip_write_256, |
| 15232 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 15233 | .voltage = {2700, 3600}, |
| 15234 | }, |
| 15235 | |
| 15236 | { |
| 15237 | .vendor = "Sharp", |
| 15238 | .name = "LH28F008BJT-BTLZ1", |
| 15239 | .bustype = BUS_PARALLEL, |
| 15240 | .manufacture_id = SHARP_ID, |
| 15241 | .model_id = SHARP_LH28F008BJ__PB, |
| 15242 | .total_size = 1024, |
| 15243 | .page_size = 64 * 1024, |
| 15244 | .tested = TEST_OK_PREW, |
| 15245 | .probe = probe_82802ab, |
| 15246 | .probe_timing = TIMING_ZERO, |
| 15247 | .block_erasers = |
| 15248 | { |
| 15249 | { |
| 15250 | .eraseblocks = { |
| 15251 | {8 * 1024, 8}, |
| 15252 | {64 * 1024, 15} |
| 15253 | }, |
| 15254 | .block_erase = erase_block_82802ab, |
| 15255 | }, { |
| 15256 | .eraseblocks = { {1024 * 1024, 1} }, |
| 15257 | .block_erase = erase_sector_49lfxxxc, |
| 15258 | } |
| 15259 | }, |
| 15260 | .unlock = unlock_lh28f008bjt, |
| 15261 | .write = write_82802ab, |
| 15262 | .read = read_memmapped, |
| 15263 | .voltage = {2700, 3600}, |
| 15264 | }, |
| 15265 | |
| 15266 | { |
| 15267 | .vendor = "Sharp", |
| 15268 | .name = "LHF00L04", |
| 15269 | .bustype = BUS_FWH, /* A/A Mux */ |
| 15270 | .manufacture_id = SHARP_ID, |
| 15271 | .model_id = SHARP_LHF00L04, |
| 15272 | .total_size = 1024, |
| 15273 | .page_size = 64 * 1024, |
| 15274 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
| 15275 | .tested = TEST_UNTESTED, |
| 15276 | .probe = probe_82802ab, |
| 15277 | .probe_timing = TIMING_ZERO, |
| 15278 | .block_erasers = |
| 15279 | { |
| 15280 | { |
| 15281 | .eraseblocks = { |
| 15282 | {64 * 1024, 15}, |
| 15283 | {8 * 1024, 8} |
| 15284 | }, |
| 15285 | .block_erase = erase_block_82802ab, |
| 15286 | }, { |
| 15287 | .eraseblocks = { |
| 15288 | {1024 * 1024, 1} |
| 15289 | }, |
| 15290 | .block_erase = NULL, /* 30 D0, only in A/A mux mode */ |
| 15291 | }, |
| 15292 | }, |
| 15293 | .unlock = unlock_regspace2_uniform_64k, |
| 15294 | .write = write_82802ab, |
| 15295 | .read = read_memmapped, |
| 15296 | .voltage = {3000, 3600}, |
| 15297 | }, |
| 15298 | |
| 15299 | { |
| 15300 | .vendor = "Spansion", |
| 15301 | .name = "S25FL004A", |
| 15302 | .bustype = BUS_SPI, |
| 15303 | .manufacture_id = SPANSION_ID, |
| 15304 | .model_id = SPANSION_S25FL004A, |
| 15305 | .total_size = 512, |
| 15306 | .page_size = 256, |
| 15307 | .feature_bits = FEATURE_WRSR_WREN, |
| 15308 | .tested = TEST_UNTESTED, |
| 15309 | .probe = probe_spi_rdid, |
| 15310 | .probe_timing = TIMING_ZERO, |
| 15311 | .block_erasers = |
| 15312 | { |
| 15313 | { |
| 15314 | .eraseblocks = { {64 * 1024, 8} }, |
| 15315 | .block_erase = spi_block_erase_d8, |
| 15316 | }, { |
| 15317 | .eraseblocks = { {512 * 1024, 1} }, |
| 15318 | .block_erase = spi_block_erase_c7, |
| 15319 | } |
| 15320 | }, |
| 15321 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15322 | .unlock = spi_disable_blockprotect, |
| 15323 | .write = spi_chip_write_256, |
| 15324 | .read = spi_chip_read, |
| 15325 | .voltage = {2700, 3600}, |
| 15326 | }, |
| 15327 | |
| 15328 | { |
| 15329 | .vendor = "Spansion", |
| 15330 | .name = "S25FL008A", |
| 15331 | .bustype = BUS_SPI, |
| 15332 | .manufacture_id = SPANSION_ID, |
| 15333 | .model_id = SPANSION_S25FL008A, |
| 15334 | .total_size = 1024, |
| 15335 | .page_size = 256, |
| 15336 | .feature_bits = FEATURE_WRSR_WREN, |
| 15337 | .tested = TEST_OK_PRE, |
| 15338 | .probe = probe_spi_rdid, |
| 15339 | .probe_timing = TIMING_ZERO, |
| 15340 | .block_erasers = |
| 15341 | { |
| 15342 | { |
| 15343 | .eraseblocks = { {64 * 1024, 16} }, |
| 15344 | .block_erase = spi_block_erase_d8, |
| 15345 | }, { |
| 15346 | .eraseblocks = { {1024 * 1024, 1} }, |
| 15347 | .block_erase = spi_block_erase_c7, |
| 15348 | } |
| 15349 | }, |
| 15350 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15351 | .unlock = spi_disable_blockprotect, |
| 15352 | .write = spi_chip_write_256, |
| 15353 | .read = spi_chip_read, |
| 15354 | .voltage = {2700, 3600}, |
| 15355 | }, |
| 15356 | |
| 15357 | { |
| 15358 | .vendor = "Spansion", |
| 15359 | .name = "S25FL016A", |
| 15360 | .bustype = BUS_SPI, |
| 15361 | .manufacture_id = SPANSION_ID, |
| 15362 | .model_id = SPANSION_S25FL016A, |
| 15363 | .total_size = 2048, |
| 15364 | .page_size = 256, |
| 15365 | .feature_bits = FEATURE_WRSR_WREN, |
| 15366 | .tested = TEST_OK_PREW, |
| 15367 | .probe = probe_spi_rdid, |
| 15368 | .probe_timing = TIMING_ZERO, |
| 15369 | .block_erasers = |
| 15370 | { |
| 15371 | { |
| 15372 | .eraseblocks = { {64 * 1024, 32} }, |
| 15373 | .block_erase = spi_block_erase_d8, |
| 15374 | }, { |
| 15375 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 15376 | .block_erase = spi_block_erase_c7, |
| 15377 | } |
| 15378 | }, |
| 15379 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15380 | .unlock = spi_disable_blockprotect, |
| 15381 | .write = spi_chip_write_256, |
| 15382 | .read = spi_chip_read, |
| 15383 | .voltage = {2700, 3600}, |
| 15384 | }, |
| 15385 | |
| 15386 | { |
| 15387 | .vendor = "Spansion", |
| 15388 | .name = "S25FL032A/P", |
| 15389 | .bustype = BUS_SPI, |
| 15390 | .manufacture_id = SPANSION_ID, |
| 15391 | .model_id = SPANSION_S25FL032A, |
| 15392 | .total_size = 4096, |
| 15393 | .page_size = 256, |
| 15394 | .feature_bits = FEATURE_WRSR_WREN, |
| 15395 | .tested = TEST_OK_PREW, |
| 15396 | .probe = probe_spi_rdid, |
| 15397 | .probe_timing = TIMING_ZERO, |
| 15398 | .block_erasers = |
| 15399 | { |
| 15400 | { |
| 15401 | .eraseblocks = { {64 * 1024, 64} }, |
| 15402 | .block_erase = spi_block_erase_d8, |
| 15403 | }, { |
| 15404 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 15405 | .block_erase = spi_block_erase_c7, |
| 15406 | } |
| 15407 | }, |
| 15408 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15409 | .unlock = spi_disable_blockprotect, |
| 15410 | .write = spi_chip_write_256, |
| 15411 | .read = spi_chip_read, |
| 15412 | .voltage = {2700, 3600}, |
| 15413 | }, |
| 15414 | |
| 15415 | { |
| 15416 | .vendor = "Spansion", |
| 15417 | .name = "S25FL064A/P", |
| 15418 | .bustype = BUS_SPI, |
| 15419 | .manufacture_id = SPANSION_ID, |
| 15420 | .model_id = SPANSION_S25FL064A, |
| 15421 | .total_size = 8192, |
| 15422 | .page_size = 256, |
| 15423 | .feature_bits = FEATURE_WRSR_WREN, |
| 15424 | .tested = TEST_OK_PREW, |
| 15425 | .probe = probe_spi_rdid, |
| 15426 | .probe_timing = TIMING_ZERO, |
| 15427 | .block_erasers = |
| 15428 | { |
| 15429 | { |
| 15430 | .eraseblocks = { {64 * 1024, 128} }, |
| 15431 | .block_erase = spi_block_erase_d8, |
| 15432 | }, { |
| 15433 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 15434 | .block_erase = spi_block_erase_c7, |
| 15435 | } |
| 15436 | }, |
| 15437 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15438 | .unlock = spi_disable_blockprotect, |
| 15439 | .write = spi_chip_write_256, |
| 15440 | .read = spi_chip_read, |
| 15441 | .voltage = {2700, 3600}, |
| 15442 | }, |
| 15443 | |
| 15444 | { |
| 15445 | .vendor = "Spansion", |
| 15446 | .name = "S25FL116K/S25FL216K", /* FIXME: separate them */ |
| 15447 | .bustype = BUS_SPI, |
| 15448 | .manufacture_id = SPANSION_ID, |
| 15449 | .model_id = SPANSION_S25FL216, |
| 15450 | .total_size = 2048, |
| 15451 | .page_size = 256, |
| 15452 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */ |
| 15453 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15454 | .tested = TEST_UNTESTED, |
| 15455 | .probe = probe_spi_rdid, |
| 15456 | .probe_timing = TIMING_ZERO, |
| 15457 | .block_erasers = |
| 15458 | { |
| 15459 | { |
| 15460 | .eraseblocks = { {4 * 1024, 512} }, |
| 15461 | .block_erase = spi_block_erase_20, |
| 15462 | }, { |
| 15463 | .eraseblocks = { {64 * 1024, 32} }, |
| 15464 | .block_erase = spi_block_erase_d8, |
| 15465 | }, { |
| 15466 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 15467 | .block_erase = spi_block_erase_60, |
| 15468 | }, { |
| 15469 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 15470 | .block_erase = spi_block_erase_c7, |
| 15471 | } |
| 15472 | }, |
| 15473 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 15474 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 15475 | .write = spi_chip_write_256, |
| 15476 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
| 15477 | .voltage = {2700, 3600}, |
| 15478 | }, |
| 15479 | |
| 15480 | { |
| 15481 | .vendor = "Spansion", |
| 15482 | .name = "S25FL127S-256kB", /* uniform 256kB sectors */ |
| 15483 | .bustype = BUS_SPI, |
| 15484 | .manufacture_id = SPANSION_ID, |
| 15485 | .model_id = SPANSION_S25FL128, |
| 15486 | .total_size = 16384, |
| 15487 | .page_size = 512, |
| 15488 | /* supports 4B addressing */ |
| 15489 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 15490 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15491 | .tested = TEST_UNTESTED, |
| 15492 | .probe = probe_spi_rdid, |
| 15493 | .probe_timing = TIMING_ZERO, |
| 15494 | .block_erasers = |
| 15495 | { |
| 15496 | { |
| 15497 | .eraseblocks = { {256 * 1024, 64} }, |
| 15498 | .block_erase = spi_block_erase_d8, |
| 15499 | }, { |
| 15500 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15501 | .block_erase = spi_block_erase_60, |
| 15502 | }, { |
| 15503 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15504 | .block_erase = spi_block_erase_c7, |
| 15505 | } |
| 15506 | }, |
| 15507 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 15508 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 15509 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 15510 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15511 | .voltage = {2700, 3600}, |
| 15512 | }, |
| 15513 | |
| 15514 | { |
| 15515 | .vendor = "Spansion", |
| 15516 | .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 15517 | .bustype = BUS_SPI, |
| 15518 | .manufacture_id = SPANSION_ID, |
| 15519 | .model_id = SPANSION_S25FL128, |
| 15520 | .total_size = 16384, |
| 15521 | .page_size = 256, |
| 15522 | /* supports 4B addressing */ |
| 15523 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 15524 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15525 | .tested = TEST_OK_PREW, |
| 15526 | /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */ |
| 15527 | .probe = probe_spi_rdid, |
| 15528 | .probe_timing = TIMING_ZERO, |
| 15529 | .block_erasers = |
| 15530 | { |
| 15531 | { |
| 15532 | /* This chip supports erasing of 32 so-called "parameter sectors" with |
| 15533 | * opcode 0x20 which may be configured to be on top or bottom of the address |
| 15534 | * space. Trying to access an address outside these 4kB blocks does have no |
| 15535 | * effect on the memory contents, e.g. |
| 15536 | .eraseblocks = { |
| 15537 | {4 * 1024, 32}, |
| 15538 | {64 * 1024, 254} // inaccessible |
| 15539 | }, |
| 15540 | .block_erase = spi_block_erase_20, |
| 15541 | }, { */ |
| 15542 | .eraseblocks = { { 64 * 1024, 256} }, |
| 15543 | .block_erase = spi_block_erase_d8, |
| 15544 | }, { |
| 15545 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15546 | .block_erase = spi_block_erase_60, |
| 15547 | }, { |
| 15548 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15549 | .block_erase = spi_block_erase_c7, |
| 15550 | } |
| 15551 | }, |
| 15552 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 15553 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 15554 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 15555 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15556 | .voltage = {2700, 3600}, |
| 15557 | }, |
| 15558 | |
| 15559 | { |
| 15560 | .vendor = "Spansion", |
| 15561 | .name = "S25FL128P......0", /* uniform 64 kB sectors */ |
| 15562 | .bustype = BUS_SPI, |
| 15563 | .manufacture_id = SPANSION_ID, |
| 15564 | .model_id = SPANSION_S25FL128, |
| 15565 | .total_size = 16384, |
| 15566 | .page_size = 256, |
| 15567 | .feature_bits = FEATURE_WRSR_WREN, |
| 15568 | .tested = TEST_OK_PREW, |
| 15569 | .probe = probe_spi_rdid, |
| 15570 | .probe_timing = TIMING_ZERO, |
| 15571 | .block_erasers = |
| 15572 | { |
| 15573 | { |
| 15574 | .eraseblocks = { {64 * 1024, 256} }, |
| 15575 | .block_erase = spi_block_erase_20, |
| 15576 | }, { |
| 15577 | .eraseblocks = { {64 * 1024, 256} }, |
| 15578 | .block_erase = spi_block_erase_d8, |
| 15579 | }, { |
| 15580 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15581 | .block_erase = spi_block_erase_60, |
| 15582 | }, { |
| 15583 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15584 | .block_erase = spi_block_erase_c7, |
| 15585 | } |
| 15586 | }, |
| 15587 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 15588 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 15589 | .write = spi_chip_write_256, |
| 15590 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 15591 | .voltage = {2700, 3600}, |
| 15592 | }, |
| 15593 | |
| 15594 | { |
| 15595 | .vendor = "Spansion", |
| 15596 | .name = "S25FL128P......1", /* uniform 256kB sectors */ |
| 15597 | .bustype = BUS_SPI, |
| 15598 | .manufacture_id = SPANSION_ID, |
| 15599 | .model_id = SPANSION_S25FL128, |
| 15600 | .total_size = 16384, |
| 15601 | .page_size = 256, |
| 15602 | .feature_bits = FEATURE_WRSR_WREN, |
| 15603 | .tested = TEST_UNTESTED, |
| 15604 | .probe = probe_spi_rdid, |
| 15605 | .probe_timing = TIMING_ZERO, |
| 15606 | .block_erasers = |
| 15607 | { |
| 15608 | { |
| 15609 | .eraseblocks = { {256 * 1024, 64} }, |
| 15610 | .block_erase = spi_block_erase_d8, |
| 15611 | }, { |
| 15612 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15613 | .block_erase = spi_block_erase_c7, |
| 15614 | } |
| 15615 | }, |
| 15616 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 15617 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 15618 | .write = spi_chip_write_256, |
| 15619 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 15620 | .voltage = {2700, 3600}, |
| 15621 | }, |
| 15622 | |
| 15623 | { |
| 15624 | .vendor = "Spansion", |
| 15625 | .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 15626 | .bustype = BUS_SPI, |
| 15627 | .manufacture_id = SPANSION_ID, |
| 15628 | .model_id = SPANSION_S25FL128, |
| 15629 | .total_size = 16384, |
| 15630 | .page_size = 256, |
| 15631 | /* supports 4B addressing */ |
| 15632 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 15633 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15634 | .tested = TEST_OK_PREW, |
| 15635 | .probe = probe_spi_rdid, |
| 15636 | .probe_timing = TIMING_ZERO, |
| 15637 | .block_erasers = |
| 15638 | { |
| 15639 | { |
| 15640 | /* This chip supports erasing of the 32 so-called "parameter sectors" with |
| 15641 | * opcode 0x20. Trying to access an address outside these 4kB blocks does |
| 15642 | * have no effect on the memory contents, but sets a flag in the SR. |
| 15643 | .eraseblocks = { |
| 15644 | {4 * 1024, 32}, |
| 15645 | {64 * 1024, 254} // inaccessible |
| 15646 | }, |
| 15647 | .block_erase = spi_block_erase_20, |
| 15648 | }, { */ |
| 15649 | .eraseblocks = { { 64 * 1024, 256} }, |
| 15650 | .block_erase = spi_block_erase_d8, |
| 15651 | }, { |
| 15652 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15653 | .block_erase = spi_block_erase_60, |
| 15654 | }, { |
| 15655 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15656 | .block_erase = spi_block_erase_c7, |
| 15657 | } |
| 15658 | }, |
| 15659 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 15660 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 15661 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 15662 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15663 | .voltage = {2700, 3600}, |
| 15664 | }, |
| 15665 | |
| 15666 | { |
| 15667 | .vendor = "Spansion", |
| 15668 | .name = "S25FL128S......1", /* uniform 256 kB sectors */ |
| 15669 | .bustype = BUS_SPI, |
| 15670 | .manufacture_id = SPANSION_ID, |
| 15671 | .model_id = SPANSION_S25FL128, |
| 15672 | .total_size = 16384, |
| 15673 | .page_size = 512, |
| 15674 | /* supports 4B addressing */ |
| 15675 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 15676 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15677 | .tested = TEST_UNTESTED, |
| 15678 | .probe = probe_spi_rdid, |
| 15679 | .probe_timing = TIMING_ZERO, |
| 15680 | .block_erasers = |
| 15681 | { |
| 15682 | { |
| 15683 | .eraseblocks = { {256 * 1024, 64} }, |
| 15684 | .block_erase = spi_block_erase_d8, |
| 15685 | }, { |
| 15686 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15687 | .block_erase = spi_block_erase_60, |
| 15688 | }, { |
| 15689 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15690 | .block_erase = spi_block_erase_c7, |
| 15691 | } |
| 15692 | }, |
| 15693 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 15694 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 15695 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 15696 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15697 | .voltage = {2700, 3600}, |
| 15698 | }, |
| 15699 | |
| 15700 | { |
| 15701 | .vendor = "Spansion", |
| 15702 | .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 15703 | .bustype = BUS_SPI, |
| 15704 | .manufacture_id = SPANSION_ID, |
| 15705 | .model_id = SPANSION_S25FL128, |
| 15706 | .total_size = 16384, |
| 15707 | .page_size = 256, |
| 15708 | /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */ |
| 15709 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15710 | .tested = TEST_OK_PREW, |
| 15711 | .probe = probe_spi_rdid, |
| 15712 | .probe_timing = TIMING_ZERO, |
| 15713 | .block_erasers = |
| 15714 | { |
| 15715 | { |
| 15716 | /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with |
| 15717 | * opcode 0x20. Trying to access an address outside these 4kB blocks does have no |
| 15718 | * effect on the memory contents, but sets a flag in the SR. |
| 15719 | .eraseblocks = { |
| 15720 | {4 * 1024, 32}, |
| 15721 | {64 * 1024, 254} // inaccessible |
| 15722 | }, |
| 15723 | .block_erase = spi_block_erase_20, |
| 15724 | }, { */ |
| 15725 | /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs |
| 15726 | .eraseblocks = { |
| 15727 | {8 * 1024, 16}, |
| 15728 | {64 * 1024, 254} // inaccessible |
| 15729 | }, |
| 15730 | .block_erase = spi_block_erase_40, |
| 15731 | }, { */ |
| 15732 | .eraseblocks = { { 64 * 1024, 256} }, |
| 15733 | .block_erase = spi_block_erase_d8, |
| 15734 | }, { |
| 15735 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15736 | .block_erase = spi_block_erase_60, |
| 15737 | }, { |
| 15738 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15739 | .block_erase = spi_block_erase_c7, |
| 15740 | } |
| 15741 | }, |
| 15742 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */ |
| 15743 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 15744 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 15745 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15746 | .voltage = {2700, 3600}, |
| 15747 | }, |
| 15748 | |
| 15749 | { |
| 15750 | .vendor = "Spansion", |
| 15751 | .name = "S25FL129P......1", /* uniform 256 kB sectors */ |
| 15752 | .bustype = BUS_SPI, |
| 15753 | .manufacture_id = SPANSION_ID, |
| 15754 | .model_id = SPANSION_S25FL128, |
| 15755 | .total_size = 16384, |
| 15756 | .page_size = 256, |
| 15757 | /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */ |
| 15758 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15759 | .tested = TEST_UNTESTED, |
| 15760 | .probe = probe_spi_rdid, |
| 15761 | .probe_timing = TIMING_ZERO, |
| 15762 | .block_erasers = |
| 15763 | { |
| 15764 | { |
| 15765 | .eraseblocks = { {256 * 1024, 64} }, |
| 15766 | .block_erase = spi_block_erase_d8, |
| 15767 | }, { |
| 15768 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15769 | .block_erase = spi_block_erase_60, |
| 15770 | }, { |
| 15771 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15772 | .block_erase = spi_block_erase_c7, |
| 15773 | } |
| 15774 | }, |
| 15775 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */ |
| 15776 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 15777 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 15778 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15779 | .voltage = {2700, 3600}, |
| 15780 | }, |
| 15781 | |
| 15782 | { |
| 15783 | .vendor = "Spansion", |
| 15784 | .name = "S25FL132K", |
| 15785 | .bustype = BUS_SPI, |
| 15786 | .manufacture_id = SPANSION_ID, |
| 15787 | .model_id = SPANSION_S25FL132K, |
| 15788 | .total_size = 4096, |
| 15789 | .page_size = 256, |
| 15790 | /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 15791 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15792 | .tested = TEST_UNTESTED, |
| 15793 | .probe = probe_spi_rdid, |
| 15794 | .probe_timing = TIMING_ZERO, |
| 15795 | .block_erasers = |
| 15796 | { |
| 15797 | { |
| 15798 | .eraseblocks = { {4 * 1024, 1024} }, |
| 15799 | .block_erase = spi_block_erase_20, |
| 15800 | }, { |
| 15801 | .eraseblocks = { {64 * 1024, 64} }, |
| 15802 | .block_erase = spi_block_erase_d8, |
| 15803 | }, { |
| 15804 | .eraseblocks = { { 4096 * 1024, 1} }, |
| 15805 | .block_erase = spi_block_erase_60, |
| 15806 | }, { |
| 15807 | .eraseblocks = { { 4096 * 1024, 1} }, |
| 15808 | .block_erase = spi_block_erase_c7, |
| 15809 | } |
| 15810 | }, |
| 15811 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */ |
| 15812 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 15813 | .write = spi_chip_write_256, |
| 15814 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15815 | .voltage = {2700, 3600}, |
| 15816 | }, |
| 15817 | |
| 15818 | { |
| 15819 | .vendor = "Spansion", |
| 15820 | .name = "S25FL164K", |
| 15821 | .bustype = BUS_SPI, |
| 15822 | .manufacture_id = SPANSION_ID, |
| 15823 | .model_id = SPANSION_S25FL164K, |
| 15824 | .total_size = 8192, |
| 15825 | .page_size = 256, |
| 15826 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 15827 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15828 | .tested = TEST_OK_PREW, |
| 15829 | .probe = probe_spi_rdid, |
| 15830 | .probe_timing = TIMING_ZERO, |
| 15831 | .block_erasers = |
| 15832 | { |
| 15833 | { |
| 15834 | .eraseblocks = { {4 * 1024, 2048} }, |
| 15835 | .block_erase = spi_block_erase_20, |
| 15836 | }, { |
| 15837 | .eraseblocks = { {64 * 1024, 128} }, |
| 15838 | .block_erase = spi_block_erase_d8, |
| 15839 | }, { |
| 15840 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 15841 | .block_erase = spi_block_erase_60, |
| 15842 | }, { |
| 15843 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 15844 | .block_erase = spi_block_erase_c7, |
| 15845 | } |
| 15846 | }, |
| 15847 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */ |
| 15848 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 15849 | .write = spi_chip_write_256, |
| 15850 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15851 | .voltage = {2700, 3600}, |
| 15852 | }, |
| 15853 | |
| 15854 | { |
| 15855 | .vendor = "Spansion", |
| 15856 | .name = "S25FL204K", |
| 15857 | .bustype = BUS_SPI, |
| 15858 | .manufacture_id = SPANSION_ID, |
| 15859 | .model_id = SPANSION_S25FL204, |
| 15860 | .total_size = 512, |
| 15861 | .page_size = 256, |
| 15862 | .feature_bits = FEATURE_WRSR_WREN, |
| 15863 | .tested = TEST_OK_PR, |
| 15864 | .probe = probe_spi_rdid, |
| 15865 | .probe_timing = TIMING_ZERO, |
| 15866 | .block_erasers = |
| 15867 | { |
| 15868 | { |
| 15869 | .eraseblocks = { {4 * 1024, 128} }, |
| 15870 | .block_erase = spi_block_erase_20, |
| 15871 | }, { |
| 15872 | .eraseblocks = { {64 * 1024, 8} }, |
| 15873 | .block_erase = spi_block_erase_d8, |
| 15874 | }, { |
| 15875 | .eraseblocks = { { 512 * 1024, 1} }, |
| 15876 | .block_erase = spi_block_erase_60, |
| 15877 | }, { |
| 15878 | .eraseblocks = { { 512 * 1024, 1} }, |
| 15879 | .block_erase = spi_block_erase_c7, |
| 15880 | } |
| 15881 | }, |
| 15882 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 15883 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 15884 | .write = spi_chip_write_256, |
| 15885 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
| 15886 | .voltage = {2700, 3600}, |
| 15887 | }, |
| 15888 | |
| 15889 | { |
| 15890 | .vendor = "Spansion", |
| 15891 | .name = "S25FL208K", |
| 15892 | .bustype = BUS_SPI, |
| 15893 | .manufacture_id = SPANSION_ID, |
| 15894 | .model_id = SPANSION_S25FL208, |
| 15895 | .total_size = 1024, |
| 15896 | .page_size = 256, |
| 15897 | .feature_bits = FEATURE_WRSR_WREN, |
| 15898 | .tested = TEST_OK_PREW, |
| 15899 | .probe = probe_spi_rdid, |
| 15900 | .probe_timing = TIMING_ZERO, |
| 15901 | .block_erasers = |
| 15902 | { |
| 15903 | { |
| 15904 | .eraseblocks = { {4 * 1024, 256} }, |
| 15905 | .block_erase = spi_block_erase_20, |
| 15906 | }, { |
| 15907 | .eraseblocks = { {64 * 1024, 16} }, |
| 15908 | .block_erase = spi_block_erase_d8, |
| 15909 | }, { |
| 15910 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 15911 | .block_erase = spi_block_erase_60, |
| 15912 | }, { |
| 15913 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 15914 | .block_erase = spi_block_erase_c7, |
| 15915 | } |
| 15916 | }, |
| 15917 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 15918 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 15919 | .write = spi_chip_write_256, |
| 15920 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
| 15921 | .voltage = {2700, 3600}, |
| 15922 | }, |
| 15923 | |
| 15924 | { |
| 15925 | .vendor = "Spansion", |
| 15926 | .name = "S25FL256S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 15927 | .bustype = BUS_SPI, |
| 15928 | .manufacture_id = SPANSION_ID, |
| 15929 | .model_id = SPANSION_S25FL256, |
| 15930 | .total_size = 32768, |
| 15931 | .page_size = 256, |
| 15932 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 15933 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_EAR7, |
| 15934 | .tested = TEST_OK_PREW, |
| 15935 | .probe = probe_spi_rdid, |
| 15936 | .probe_timing = TIMING_ZERO, |
| 15937 | .block_erasers = |
| 15938 | { |
| 15939 | { |
| 15940 | /* This chip supports erasing of the 32 so-called "parameter sectors" with |
| 15941 | * opcode 0x20. Trying to access an address outside these 4kB blocks does |
| 15942 | * have no effect on the memory contents, but sets a flag in the SR. |
| 15943 | .eraseblocks = { |
| 15944 | {4 * 1024, 32}, |
| 15945 | {64 * 1024, 254} // inaccessible |
| 15946 | }, |
| 15947 | .block_erase = spi_block_erase_20, |
| 15948 | }, { */ |
| 15949 | .eraseblocks = { { 64 * 1024, 512} }, |
| 15950 | .block_erase = spi_block_erase_dc, |
| 15951 | }, { |
| 15952 | .eraseblocks = { { 64 * 1024, 512} }, |
| 15953 | .block_erase = spi_block_erase_d8, |
| 15954 | }, { |
| 15955 | .eraseblocks = { { 32768 * 1024, 1} }, |
| 15956 | .block_erase = spi_block_erase_60, |
| 15957 | }, { |
| 15958 | .eraseblocks = { { 32768 * 1024, 1} }, |
| 15959 | .block_erase = spi_block_erase_c7, |
| 15960 | } |
| 15961 | }, |
| 15962 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 15963 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 15964 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 15965 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15966 | .voltage = {2700, 3600}, |
| 15967 | .wrea_override = 0x17, |
| 15968 | }, |
| 15969 | |
| 15970 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 15971 | .vendor = "SyncMOS/MoselVitelic", |
| 15972 | .name = "{F,S,V}29C51001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15973 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 15974 | .manufacture_id = SYNCMOS_MVC_ID, |
| 15975 | .model_id = SM_MVC_29C51001B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15976 | .total_size = 128, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 15977 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15978 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15979 | .tested = TEST_UNTESTED, |
| 15980 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 15981 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15982 | .block_erasers = |
| 15983 | { |
| 15984 | { |
| 15985 | .eraseblocks = { {512, 256} }, |
| 15986 | .block_erase = erase_sector_jedec, |
| 15987 | }, { |
| 15988 | .eraseblocks = { {128 * 1024, 1} }, |
| 15989 | .block_erase = erase_chip_block_jedec, |
| 15990 | }, |
| 15991 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15992 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15993 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15994 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15995 | }, |
| 15996 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15997 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 15998 | .vendor = "SyncMOS/MoselVitelic", |
| 15999 | .name = "{F,S,V}29C51001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16000 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16001 | .manufacture_id = SYNCMOS_MVC_ID, |
| 16002 | .model_id = SM_MVC_29C51001T, |
| 16003 | .total_size = 128, |
| 16004 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16005 | .feature_bits = FEATURE_EITHER_RESET, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16006 | .tested = TEST_UNTESTED, |
| 16007 | .probe = probe_jedec, |
| 16008 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 16009 | .block_erasers = |
| 16010 | { |
| 16011 | { |
| 16012 | .eraseblocks = { {512, 256} }, |
| 16013 | .block_erase = erase_sector_jedec, |
| 16014 | }, { |
| 16015 | .eraseblocks = { {128 * 1024, 1} }, |
| 16016 | .block_erase = erase_chip_block_jedec, |
| 16017 | }, |
| 16018 | }, |
| 16019 | .write = write_jedec_1, |
| 16020 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16021 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16022 | }, |
| 16023 | |
| 16024 | { |
| 16025 | .vendor = "SyncMOS/MoselVitelic", |
| 16026 | .name = "{F,S,V}29C51002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16027 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16028 | .manufacture_id = SYNCMOS_MVC_ID, |
| 16029 | .model_id = SM_MVC_29C51002B, |
| 16030 | .total_size = 256, |
| 16031 | .page_size = 512, |
| 16032 | .feature_bits = FEATURE_EITHER_RESET, |
| 16033 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16034 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 16035 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16036 | .block_erasers = |
| 16037 | { |
| 16038 | { |
| 16039 | .eraseblocks = { {512, 512} }, |
| 16040 | .block_erase = erase_sector_jedec, |
| 16041 | }, { |
| 16042 | .eraseblocks = { {256 * 1024, 1} }, |
| 16043 | .block_erase = erase_chip_block_jedec, |
| 16044 | }, |
| 16045 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16046 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16047 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16048 | }, |
| 16049 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16050 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16051 | .vendor = "SyncMOS/MoselVitelic", |
| 16052 | .name = "{F,S,V}29C51002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16053 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16054 | .manufacture_id = SYNCMOS_MVC_ID, |
| 16055 | .model_id = SM_MVC_29C51002T, |
| 16056 | .total_size = 256, |
| 16057 | .page_size = 512, |
| 16058 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 16059 | .tested = TEST_OK_PREW, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16060 | .probe = probe_jedec, |
| 16061 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 16062 | .block_erasers = |
| 16063 | { |
| 16064 | { |
| 16065 | .eraseblocks = { {512, 512} }, |
| 16066 | .block_erase = erase_sector_jedec, |
| 16067 | }, { |
| 16068 | .eraseblocks = { {256 * 1024, 1} }, |
| 16069 | .block_erase = erase_chip_block_jedec, |
| 16070 | }, |
| 16071 | }, |
| 16072 | .write = write_jedec_1, |
| 16073 | .read = read_memmapped, |
| 16074 | }, |
| 16075 | |
| 16076 | { |
| 16077 | .vendor = "SyncMOS/MoselVitelic", |
| 16078 | .name = "{F,S,V}29C51004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16079 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16080 | .manufacture_id = SYNCMOS_MVC_ID, |
| 16081 | .model_id = SM_MVC_29C51004B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16082 | .total_size = 512, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16083 | .page_size = 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16084 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16085 | .tested = TEST_UNTESTED, |
| 16086 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 16087 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16088 | .block_erasers = |
| 16089 | { |
| 16090 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16091 | .eraseblocks = { {1024, 512} }, |
| 16092 | .block_erase = erase_sector_jedec, |
| 16093 | }, { |
| 16094 | .eraseblocks = { {512 * 1024, 1} }, |
| 16095 | .block_erase = erase_chip_block_jedec, |
| 16096 | }, |
| 16097 | }, |
| 16098 | .write = write_jedec_1, |
| 16099 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16100 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16101 | }, |
| 16102 | |
| 16103 | { |
| 16104 | .vendor = "SyncMOS/MoselVitelic", |
| 16105 | .name = "{F,S,V}29C51004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16106 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16107 | .manufacture_id = SYNCMOS_MVC_ID, |
| 16108 | .model_id = SM_MVC_29C51004T, |
| 16109 | .total_size = 512, |
| 16110 | .page_size = 1024, |
| 16111 | .feature_bits = FEATURE_EITHER_RESET, |
| 16112 | .tested = TEST_UNTESTED, |
| 16113 | .probe = probe_jedec, |
| 16114 | .probe_timing = TIMING_ZERO, |
| 16115 | .block_erasers = |
| 16116 | { |
| 16117 | { |
| 16118 | .eraseblocks = { {1024, 512} }, |
| 16119 | .block_erase = erase_sector_jedec, |
| 16120 | }, { |
| 16121 | .eraseblocks = { {512 * 1024, 1} }, |
| 16122 | .block_erase = erase_chip_block_jedec, |
| 16123 | }, |
| 16124 | }, |
| 16125 | .write = write_jedec_1, |
| 16126 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16127 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16128 | }, |
| 16129 | |
| 16130 | { |
| 16131 | .vendor = "SyncMOS/MoselVitelic", |
| 16132 | .name = "{S,V}29C31004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16133 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16134 | .manufacture_id = SYNCMOS_MVC_ID, |
| 16135 | .model_id = SM_MVC_29C31004B, |
| 16136 | .total_size = 512, |
| 16137 | .page_size = 1024, |
| 16138 | .feature_bits = FEATURE_EITHER_RESET, |
| 16139 | .tested = TEST_UNTESTED, |
| 16140 | .probe = probe_jedec, |
| 16141 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 16142 | .block_erasers = |
| 16143 | { |
| 16144 | { |
| 16145 | .eraseblocks = { {1024, 512} }, |
| 16146 | .block_erase = erase_sector_jedec, |
| 16147 | }, { |
| 16148 | .eraseblocks = { {512 * 1024, 1} }, |
| 16149 | .block_erase = erase_chip_block_jedec, |
| 16150 | }, |
| 16151 | }, |
| 16152 | .write = write_jedec_1, |
| 16153 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16154 | .voltage = {3000, 3600}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16155 | }, |
| 16156 | |
| 16157 | { |
| 16158 | .vendor = "SyncMOS/MoselVitelic", |
| 16159 | .name = "{S,V}29C31004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16160 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16161 | .manufacture_id = SYNCMOS_MVC_ID, |
| 16162 | .model_id = SM_MVC_29C31004T, |
| 16163 | .total_size = 512, |
| 16164 | .page_size = 1024, |
| 16165 | .feature_bits = FEATURE_EITHER_RESET, |
| 16166 | .tested = TEST_UNTESTED, |
| 16167 | .probe = probe_jedec, |
| 16168 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 16169 | .block_erasers = |
| 16170 | { |
| 16171 | { |
| 16172 | .eraseblocks = { {1024, 512} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16173 | .block_erase = erase_sector_jedec, |
| 16174 | }, { |
| 16175 | .eraseblocks = { {512 * 1024, 1} }, |
| 16176 | .block_erase = erase_chip_block_jedec, |
| 16177 | }, |
| 16178 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16179 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16180 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16181 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16182 | }, |
| 16183 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16184 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 16185 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16186 | .name = "TMS29F002RB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16187 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16188 | .manufacture_id = TI_OLD_ID, |
| 16189 | .model_id = TI_TMS29F002RB, |
| 16190 | .total_size = 256, |
| 16191 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16192 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16193 | .tested = TEST_UNTESTED, |
| 16194 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 16195 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16196 | .block_erasers = |
| 16197 | { |
| 16198 | { |
| 16199 | .eraseblocks = { |
| 16200 | {16 * 1024, 1}, |
| 16201 | {8 * 1024, 2}, |
| 16202 | {32 * 1024, 1}, |
| 16203 | {64 * 1024, 3}, |
| 16204 | }, |
| 16205 | .block_erase = erase_sector_jedec, |
| 16206 | }, { |
| 16207 | .eraseblocks = { {256 * 1024, 1} }, |
| 16208 | .block_erase = erase_chip_block_jedec, |
| 16209 | }, |
| 16210 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16211 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16212 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16213 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16214 | }, |
| 16215 | |
| 16216 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 16217 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16218 | .name = "TMS29F002RT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16219 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16220 | .manufacture_id = TI_OLD_ID, |
| 16221 | .model_id = TI_TMS29F002RT, |
| 16222 | .total_size = 256, |
| 16223 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16224 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16225 | .tested = TEST_UNTESTED, |
| 16226 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 16227 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16228 | .block_erasers = |
| 16229 | { |
| 16230 | { |
| 16231 | .eraseblocks = { |
| 16232 | {64 * 1024, 3}, |
| 16233 | {32 * 1024, 1}, |
| 16234 | {8 * 1024, 2}, |
| 16235 | {16 * 1024, 1}, |
| 16236 | }, |
| 16237 | .block_erase = erase_sector_jedec, |
| 16238 | }, { |
| 16239 | .eraseblocks = { {256 * 1024, 1} }, |
| 16240 | .block_erase = erase_chip_block_jedec, |
| 16241 | }, |
| 16242 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16243 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16244 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16245 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16246 | }, |
| 16247 | |
| 16248 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16249 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16250 | .name = "W25P16", |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 16251 | .bustype = BUS_SPI, |
| 16252 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16253 | .model_id = WINBOND_NEX_W25P16, |
| 16254 | .total_size = 2048, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 16255 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16256 | .feature_bits = FEATURE_WRSR_WREN, |
| 16257 | .tested = TEST_UNTESTED, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 16258 | .probe = probe_spi_rdid, |
| 16259 | .probe_timing = TIMING_ZERO, |
| 16260 | .block_erasers = |
| 16261 | { |
| 16262 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16263 | .eraseblocks = { {64 * 1024, 32} }, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 16264 | .block_erase = spi_block_erase_d8, |
| 16265 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16266 | .eraseblocks = { {2048 * 1024, 1} }, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 16267 | .block_erase = spi_block_erase_c7, |
| 16268 | } |
| 16269 | }, |
| 16270 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16271 | .unlock = spi_disable_blockprotect, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16272 | .write = spi_chip_write_256, |
| 16273 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 16274 | .voltage = {2700, 3600}, |
| 16275 | }, |
| 16276 | |
| 16277 | { |
| 16278 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16279 | .name = "W25P32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16280 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 16281 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16282 | .model_id = WINBOND_NEX_W25P32, |
| 16283 | .total_size = 4096, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 16284 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16285 | .feature_bits = FEATURE_WRSR_WREN, |
| 16286 | .tested = TEST_UNTESTED, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 16287 | .probe = probe_spi_rdid, |
| 16288 | .probe_timing = TIMING_ZERO, |
| 16289 | .block_erasers = |
| 16290 | { |
| 16291 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16292 | .eraseblocks = { {64 * 1024, 64} }, |
| 16293 | .block_erase = spi_block_erase_d8, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 16294 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16295 | .eraseblocks = { {4096 * 1024, 1} }, |
| 16296 | .block_erase = spi_block_erase_c7, |
| 16297 | } |
| 16298 | }, |
| 16299 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16300 | .unlock = spi_disable_blockprotect, |
| 16301 | .write = spi_chip_write_256, |
| 16302 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 16303 | .voltage = {2700, 3600}, |
| 16304 | }, |
| 16305 | |
| 16306 | { |
| 16307 | .vendor = "Winbond", |
| 16308 | .name = "W25P80", |
| 16309 | .bustype = BUS_SPI, |
| 16310 | .manufacture_id = WINBOND_NEX_ID, |
| 16311 | .model_id = WINBOND_NEX_W25P80, |
| 16312 | .total_size = 1024, |
| 16313 | .page_size = 256, |
| 16314 | .feature_bits = FEATURE_WRSR_WREN, |
| 16315 | .tested = TEST_UNTESTED, |
| 16316 | .probe = probe_spi_rdid, |
| 16317 | .probe_timing = TIMING_ZERO, |
| 16318 | .block_erasers = |
| 16319 | { |
| 16320 | { |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 16321 | .eraseblocks = { {64 * 1024, 16} }, |
| 16322 | .block_erase = spi_block_erase_d8, |
| 16323 | }, { |
| 16324 | .eraseblocks = { {1024 * 1024, 1} }, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 16325 | .block_erase = spi_block_erase_c7, |
| 16326 | } |
| 16327 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 16328 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 16329 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 16330 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16331 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16332 | .voltage = {2700, 3600}, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 16333 | }, |
| 16334 | |
| 16335 | { |
| 16336 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16337 | .name = "W25Q128.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16338 | .bustype = BUS_SPI, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 16339 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16340 | .model_id = WINBOND_NEX_W25Q128_V, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 16341 | .total_size = 16384, |
| 16342 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16343 | /* supports SFDP */ |
| 16344 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 16345 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 16346 | .tested = TEST_OK_PREW, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 16347 | .probe = probe_spi_rdid, |
| 16348 | .probe_timing = TIMING_ZERO, |
| 16349 | .block_erasers = |
| 16350 | { |
| 16351 | { |
| 16352 | .eraseblocks = { {4 * 1024, 4096} }, |
| 16353 | .block_erase = spi_block_erase_20, |
| 16354 | }, { |
| 16355 | .eraseblocks = { {32 * 1024, 512} }, |
| 16356 | .block_erase = spi_block_erase_52, |
| 16357 | }, { |
| 16358 | .eraseblocks = { {64 * 1024, 256} }, |
| 16359 | .block_erase = spi_block_erase_d8, |
| 16360 | }, { |
| 16361 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 16362 | .block_erase = spi_block_erase_60, |
| 16363 | }, { |
| 16364 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 16365 | .block_erase = spi_block_erase_c7, |
| 16366 | } |
| 16367 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 16368 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 16369 | .unlock = spi_disable_blockprotect, |
| 16370 | .write = spi_chip_write_256, |
| 16371 | .read = spi_chip_read, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16372 | .voltage = {2700, 3600}, |
| 16373 | }, |
| 16374 | |
| 16375 | { |
| 16376 | .vendor = "Winbond", |
Patrick Rudolph | 3432349 | 2018-10-04 14:59:40 +0200 | [diff] [blame] | 16377 | .name = "W25Q128.V..M", |
| 16378 | .bustype = BUS_SPI, |
| 16379 | .manufacture_id = WINBOND_NEX_ID, |
| 16380 | .model_id = WINBOND_NEX_W25Q128_V_M, |
| 16381 | .total_size = 16384, |
| 16382 | .page_size = 256, |
| 16383 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 16384 | .tested = TEST_OK_PREW, |
| 16385 | .probe = probe_spi_rdid, |
| 16386 | .probe_timing = TIMING_ZERO, |
| 16387 | .block_erasers = |
| 16388 | { |
| 16389 | { |
| 16390 | .eraseblocks = { {4 * 1024, 4096} }, |
| 16391 | .block_erase = spi_block_erase_20, |
| 16392 | }, { |
| 16393 | .eraseblocks = { {32 * 1024, 512} }, |
| 16394 | .block_erase = spi_block_erase_52, |
| 16395 | }, { |
| 16396 | .eraseblocks = { {64 * 1024, 256} }, |
| 16397 | .block_erase = spi_block_erase_d8, |
| 16398 | }, { |
| 16399 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 16400 | .block_erase = spi_block_erase_60, |
| 16401 | }, { |
| 16402 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 16403 | .block_erase = spi_block_erase_c7, |
| 16404 | } |
| 16405 | }, |
Alan Green | a1fc01d | 2019-09-23 17:12:44 +1000 | [diff] [blame] | 16406 | .printlock = spi_prettyprint_status_register_plain, |
Patrick Rudolph | 3432349 | 2018-10-04 14:59:40 +0200 | [diff] [blame] | 16407 | .unlock = spi_disable_blockprotect, |
| 16408 | .write = spi_chip_write_256, |
| 16409 | .read = spi_chip_read, |
| 16410 | .voltage = {2700, 3600}, |
| 16411 | }, |
| 16412 | |
| 16413 | { |
| 16414 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16415 | .name = "W25Q128.W", |
| 16416 | .bustype = BUS_SPI, |
| 16417 | .manufacture_id = WINBOND_NEX_ID, |
| 16418 | .model_id = WINBOND_NEX_W25Q128_W, |
| 16419 | .total_size = 16384, |
| 16420 | .page_size = 256, |
| 16421 | /* supports SFDP */ |
| 16422 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16423 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 16424 | .tested = TEST_OK_PREW, |
| 16425 | .probe = probe_spi_rdid, |
| 16426 | .probe_timing = TIMING_ZERO, |
| 16427 | .block_erasers = |
| 16428 | { |
| 16429 | { |
| 16430 | .eraseblocks = { {4 * 1024, 4096} }, |
| 16431 | .block_erase = spi_block_erase_20, |
| 16432 | }, { |
| 16433 | .eraseblocks = { {32 * 1024, 512} }, |
| 16434 | .block_erase = spi_block_erase_52, |
| 16435 | }, { |
| 16436 | .eraseblocks = { {64 * 1024, 256} }, |
| 16437 | .block_erase = spi_block_erase_d8, |
| 16438 | }, { |
| 16439 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 16440 | .block_erase = spi_block_erase_60, |
| 16441 | }, { |
| 16442 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 16443 | .block_erase = spi_block_erase_c7, |
| 16444 | } |
| 16445 | }, |
| 16446 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16447 | .unlock = spi_disable_blockprotect, |
| 16448 | .write = spi_chip_write_256, |
| 16449 | .read = spi_chip_read, |
| 16450 | .voltage = {1650, 1950}, |
| 16451 | }, |
| 16452 | |
| 16453 | { |
| 16454 | .vendor = "Winbond", |
Peichao Wang | 1a11949 | 2019-11-11 15:26:41 +0800 | [diff] [blame] | 16455 | .name = "W25Q128.JW.DTR", |
| 16456 | .bustype = BUS_SPI, |
| 16457 | .manufacture_id = WINBOND_NEX_ID, |
| 16458 | .model_id = WINBOND_NEX_W25Q128_DTR, |
| 16459 | .total_size = 16384, |
| 16460 | .page_size = 256, |
| 16461 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 16462 | .tested = TEST_OK_PREW, |
| 16463 | .probe = probe_spi_rdid, |
| 16464 | .probe_timing = TIMING_ZERO, |
| 16465 | .block_erasers = |
| 16466 | { |
| 16467 | { |
| 16468 | .eraseblocks = { {4 * 1024, 4096} }, |
| 16469 | .block_erase = spi_block_erase_20, |
| 16470 | }, { |
| 16471 | .eraseblocks = { {32 * 1024, 512} }, |
| 16472 | .block_erase = spi_block_erase_52, |
| 16473 | }, { |
| 16474 | .eraseblocks = { {64 * 1024, 256} }, |
| 16475 | .block_erase = spi_block_erase_d8, |
| 16476 | }, { |
| 16477 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 16478 | .block_erase = spi_block_erase_60, |
| 16479 | }, { |
| 16480 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 16481 | .block_erase = spi_block_erase_c7, |
| 16482 | } |
| 16483 | }, |
| 16484 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16485 | .unlock = spi_disable_blockprotect, |
| 16486 | .write = spi_chip_write_256, |
| 16487 | .read = spi_chip_read, |
| 16488 | .voltage = {1650, 1950}, |
| 16489 | }, |
| 16490 | |
| 16491 | { |
| 16492 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16493 | .name = "W25Q16.V", |
| 16494 | .bustype = BUS_SPI, |
| 16495 | .manufacture_id = WINBOND_NEX_ID, |
| 16496 | .model_id = WINBOND_NEX_W25Q16_V, |
| 16497 | .total_size = 2048, |
| 16498 | .page_size = 256, |
| 16499 | /* supports SFDP */ |
| 16500 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16501 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16502 | .tested = TEST_OK_PREW, |
| 16503 | .probe = probe_spi_rdid, |
| 16504 | .probe_timing = TIMING_ZERO, |
| 16505 | .block_erasers = |
| 16506 | { |
| 16507 | { |
| 16508 | .eraseblocks = { {4 * 1024, 512} }, |
| 16509 | .block_erase = spi_block_erase_20, |
| 16510 | }, { |
| 16511 | .eraseblocks = { {32 * 1024, 64} }, |
| 16512 | .block_erase = spi_block_erase_52, |
| 16513 | }, { |
| 16514 | .eraseblocks = { {64 * 1024, 32} }, |
| 16515 | .block_erase = spi_block_erase_d8, |
| 16516 | }, { |
| 16517 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 16518 | .block_erase = spi_block_erase_60, |
| 16519 | }, { |
| 16520 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 16521 | .block_erase = spi_block_erase_c7, |
| 16522 | } |
| 16523 | }, |
| 16524 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16525 | .unlock = spi_disable_blockprotect, |
| 16526 | .write = spi_chip_write_256, |
| 16527 | .read = spi_chip_read, |
| 16528 | .voltage = {2700, 3600}, |
| 16529 | }, |
| 16530 | |
| 16531 | { |
| 16532 | .vendor = "Winbond", |
| 16533 | .name = "W25Q16.W", |
| 16534 | .bustype = BUS_SPI, |
| 16535 | .manufacture_id = WINBOND_NEX_ID, |
| 16536 | .model_id = WINBOND_NEX_W25Q16_W, |
| 16537 | .total_size = 2048, |
| 16538 | .page_size = 256, |
| 16539 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16540 | /* QPI enable 0x38, disable 0xFF */ |
| 16541 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 16542 | .tested = TEST_UNTESTED, |
| 16543 | .probe = probe_spi_rdid, |
| 16544 | .probe_timing = TIMING_ZERO, |
| 16545 | .block_erasers = |
| 16546 | { |
| 16547 | { |
| 16548 | .eraseblocks = { {4 * 1024, 512} }, |
| 16549 | .block_erase = spi_block_erase_20, |
| 16550 | }, { |
| 16551 | .eraseblocks = { {32 * 1024, 64} }, |
| 16552 | .block_erase = spi_block_erase_52, |
| 16553 | }, { |
| 16554 | .eraseblocks = { {64 * 1024, 32} }, |
| 16555 | .block_erase = spi_block_erase_d8, |
| 16556 | }, { |
| 16557 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 16558 | .block_erase = spi_block_erase_60, |
| 16559 | }, { |
| 16560 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 16561 | .block_erase = spi_block_erase_c7, |
| 16562 | } |
| 16563 | }, |
| 16564 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16565 | .unlock = spi_disable_blockprotect, |
| 16566 | .write = spi_chip_write_256, |
| 16567 | .read = spi_chip_read, |
| 16568 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 16569 | }, |
| 16570 | |
| 16571 | { |
| 16572 | .vendor = "Winbond", |
| 16573 | .name = "W25Q20.W", |
| 16574 | .bustype = BUS_SPI, |
| 16575 | .manufacture_id = WINBOND_NEX_ID, |
| 16576 | .model_id = WINBOND_NEX_W25Q20_W, |
| 16577 | .total_size = 256, |
| 16578 | .page_size = 256, |
| 16579 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16580 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16581 | .tested = TEST_UNTESTED, |
| 16582 | .probe = probe_spi_rdid, |
| 16583 | .probe_timing = TIMING_ZERO, |
| 16584 | .block_erasers = |
| 16585 | { |
| 16586 | { |
| 16587 | .eraseblocks = { {4 * 1024, 64} }, |
| 16588 | .block_erase = spi_block_erase_20, |
| 16589 | }, { |
| 16590 | .eraseblocks = { {32 * 1024, 8} }, |
| 16591 | .block_erase = spi_block_erase_52, |
| 16592 | }, { |
| 16593 | .eraseblocks = { {64 * 1024, 4} }, |
| 16594 | .block_erase = spi_block_erase_d8, |
| 16595 | }, { |
| 16596 | .eraseblocks = { {256 * 1024, 1} }, |
| 16597 | .block_erase = spi_block_erase_60, |
| 16598 | }, { |
| 16599 | .eraseblocks = { {256 * 1024, 1} }, |
| 16600 | .block_erase = spi_block_erase_c7, |
| 16601 | } |
| 16602 | }, |
| 16603 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16604 | .unlock = spi_disable_blockprotect, |
| 16605 | .write = spi_chip_write_256, |
| 16606 | .read = spi_chip_read, |
| 16607 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 16608 | }, |
| 16609 | |
| 16610 | { |
| 16611 | .vendor = "Winbond", |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 16612 | .name = "W25Q256.V", |
| 16613 | .bustype = BUS_SPI, |
| 16614 | .manufacture_id = WINBOND_NEX_ID, |
| 16615 | .model_id = WINBOND_NEX_W25Q256_V, |
| 16616 | .total_size = 32768, |
| 16617 | .page_size = 256, |
| 16618 | /* supports SFDP */ |
| 16619 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16620 | /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */ |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 16621 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN |
| 16622 | | FEATURE_4BA_EXT_ADDR | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ, |
Angel Pons | 3130cbd | 2018-09-30 19:32:30 +0200 | [diff] [blame] | 16623 | .tested = TEST_OK_PREW, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 16624 | .probe = probe_spi_rdid, |
| 16625 | .probe_timing = TIMING_ZERO, |
| 16626 | .block_erasers = |
| 16627 | { |
| 16628 | { |
| 16629 | .eraseblocks = { {4 * 1024, 8192} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 16630 | .block_erase = spi_block_erase_20, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 16631 | }, { |
| 16632 | .eraseblocks = { {32 * 1024, 1024} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 16633 | .block_erase = spi_block_erase_52, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 16634 | }, { |
| 16635 | .eraseblocks = { {64 * 1024, 512} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 16636 | .block_erase = spi_block_erase_d8, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 16637 | }, { |
| 16638 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 16639 | .block_erase = spi_block_erase_60, |
| 16640 | }, { |
| 16641 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 16642 | .block_erase = spi_block_erase_c7, |
| 16643 | } |
| 16644 | }, |
| 16645 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16646 | .unlock = spi_disable_blockprotect, |
| 16647 | .write = spi_chip_write_256, |
| 16648 | .read = spi_chip_read, |
| 16649 | .voltage = {2700, 3600}, |
| 16650 | }, |
| 16651 | |
| 16652 | { |
| 16653 | .vendor = "Winbond", |
David Hendricks | 4987679 | 2018-10-27 20:19:42 +0000 | [diff] [blame] | 16654 | .name = "W25Q256JV_M", |
| 16655 | .bustype = BUS_SPI, |
| 16656 | .manufacture_id = WINBOND_NEX_ID, |
| 16657 | .model_id = WINBOND_NEX_W25Q256JV_M, |
| 16658 | .total_size = 32768, |
| 16659 | .page_size = 256, |
| 16660 | /* supports SFDP */ |
| 16661 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16662 | /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */ |
| 16663 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
| 16664 | .tested = TEST_OK_PREW, |
| 16665 | .probe = probe_spi_rdid, |
| 16666 | .probe_timing = TIMING_ZERO, |
| 16667 | .block_erasers = |
| 16668 | { |
| 16669 | { |
| 16670 | .eraseblocks = { {4 * 1024, 8192} }, |
| 16671 | .block_erase = spi_block_erase_21, |
| 16672 | }, { |
| 16673 | .eraseblocks = { {4 * 1024, 8192} }, |
| 16674 | .block_erase = spi_block_erase_20, |
| 16675 | }, { |
| 16676 | .eraseblocks = { {32 * 1024, 1024} }, |
| 16677 | .block_erase = spi_block_erase_52, |
| 16678 | }, { |
| 16679 | .eraseblocks = { {64 * 1024, 512} }, |
| 16680 | .block_erase = spi_block_erase_dc, |
| 16681 | }, { |
| 16682 | .eraseblocks = { {64 * 1024, 512} }, |
| 16683 | .block_erase = spi_block_erase_d8, |
| 16684 | }, { |
| 16685 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 16686 | .block_erase = spi_block_erase_60, |
| 16687 | }, { |
| 16688 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 16689 | .block_erase = spi_block_erase_c7, |
| 16690 | } |
| 16691 | }, |
| 16692 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16693 | .unlock = spi_disable_blockprotect, |
| 16694 | .write = spi_chip_write_256, |
| 16695 | .read = spi_chip_read, |
| 16696 | .voltage = {2700, 3600}, |
| 16697 | }, |
| 16698 | |
| 16699 | { |
| 16700 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16701 | .name = "W25Q32.V", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16702 | .bustype = BUS_SPI, |
| 16703 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16704 | .model_id = WINBOND_NEX_W25Q32_V, |
| 16705 | .total_size = 4096, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16706 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16707 | /* supports SFDP */ |
| 16708 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16709 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16710 | .tested = TEST_OK_PREW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16711 | .probe = probe_spi_rdid, |
| 16712 | .probe_timing = TIMING_ZERO, |
| 16713 | .block_erasers = |
| 16714 | { |
| 16715 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16716 | .eraseblocks = { {4 * 1024, 1024} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16717 | .block_erase = spi_block_erase_20, |
| 16718 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16719 | .eraseblocks = { {32 * 1024, 128} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16720 | .block_erase = spi_block_erase_52, |
| 16721 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16722 | .eraseblocks = { {64 * 1024, 64} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16723 | .block_erase = spi_block_erase_d8, |
| 16724 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16725 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16726 | .block_erase = spi_block_erase_60, |
| 16727 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16728 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 16729 | .block_erase = spi_block_erase_c7, |
| 16730 | } |
| 16731 | }, |
| 16732 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16733 | .unlock = spi_disable_blockprotect, |
| 16734 | .write = spi_chip_write_256, |
| 16735 | .read = spi_chip_read, |
| 16736 | .voltage = {2700, 3600}, |
| 16737 | }, |
| 16738 | |
| 16739 | { |
| 16740 | .vendor = "Winbond", |
| 16741 | .name = "W25Q32.W", |
| 16742 | .bustype = BUS_SPI, |
| 16743 | .manufacture_id = WINBOND_NEX_ID, |
| 16744 | .model_id = WINBOND_NEX_W25Q32_W, |
| 16745 | .total_size = 4096, |
| 16746 | .page_size = 256, |
| 16747 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16748 | /* QPI enable 0x38, disable 0xFF */ |
| 16749 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 16750 | .tested = TEST_OK_PREW, |
| 16751 | .probe = probe_spi_rdid, |
| 16752 | .probe_timing = TIMING_ZERO, |
| 16753 | .block_erasers = |
| 16754 | { |
| 16755 | { |
| 16756 | .eraseblocks = { {4 * 1024, 1024} }, |
| 16757 | .block_erase = spi_block_erase_20, |
| 16758 | }, { |
| 16759 | .eraseblocks = { {32 * 1024, 128} }, |
| 16760 | .block_erase = spi_block_erase_52, |
| 16761 | }, { |
| 16762 | .eraseblocks = { {64 * 1024, 64} }, |
| 16763 | .block_erase = spi_block_erase_d8, |
| 16764 | }, { |
| 16765 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 16766 | .block_erase = spi_block_erase_60, |
| 16767 | }, { |
| 16768 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16769 | .block_erase = spi_block_erase_c7, |
| 16770 | } |
| 16771 | }, |
| 16772 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16773 | .unlock = spi_disable_blockprotect, |
| 16774 | .write = spi_chip_write_256, |
| 16775 | .read = spi_chip_read, |
| 16776 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 16777 | }, |
| 16778 | |
| 16779 | { |
| 16780 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16781 | .name = "W25Q40.V", |
| 16782 | .bustype = BUS_SPI, |
| 16783 | .manufacture_id = WINBOND_NEX_ID, |
| 16784 | .model_id = WINBOND_NEX_W25Q40_V, |
| 16785 | .total_size = 512, |
| 16786 | .page_size = 256, |
| 16787 | /* supports SFDP */ |
| 16788 | /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16789 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16790 | .tested = TEST_OK_PREW, |
| 16791 | .probe = probe_spi_rdid, |
| 16792 | .probe_timing = TIMING_ZERO, |
| 16793 | .block_erasers = |
| 16794 | { |
| 16795 | { |
| 16796 | .eraseblocks = { {4 * 1024, 128} }, |
| 16797 | .block_erase = spi_block_erase_20, |
| 16798 | }, { |
| 16799 | .eraseblocks = { {32 * 1024, 16} }, |
| 16800 | .block_erase = spi_block_erase_52, |
| 16801 | }, { |
| 16802 | .eraseblocks = { {64 * 1024, 8} }, |
| 16803 | .block_erase = spi_block_erase_d8, |
| 16804 | }, { |
| 16805 | .eraseblocks = { {512 * 1024, 1} }, |
| 16806 | .block_erase = spi_block_erase_60, |
| 16807 | }, { |
| 16808 | .eraseblocks = { {512 * 1024, 1} }, |
| 16809 | .block_erase = spi_block_erase_c7, |
| 16810 | } |
| 16811 | }, |
| 16812 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16813 | .unlock = spi_disable_blockprotect, |
| 16814 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 16815 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 16816 | .voltage = {2700, 3600}, |
| 16817 | }, |
| 16818 | |
| 16819 | { |
| 16820 | .vendor = "Winbond", |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 16821 | .name = "W25Q40BW", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16822 | .bustype = BUS_SPI, |
| 16823 | .manufacture_id = WINBOND_NEX_ID, |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 16824 | .model_id = WINBOND_NEX_W25Q40BW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16825 | .total_size = 512, |
| 16826 | .page_size = 256, |
| 16827 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16828 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Angel Pons | 3164a0c | 2018-09-30 20:26:06 +0200 | [diff] [blame] | 16829 | .tested = TEST_OK_PREW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16830 | .probe = probe_spi_rdid, |
| 16831 | .probe_timing = TIMING_ZERO, |
| 16832 | .block_erasers = |
| 16833 | { |
| 16834 | { |
| 16835 | .eraseblocks = { {4 * 1024, 128} }, |
| 16836 | .block_erase = spi_block_erase_20, |
| 16837 | }, { |
| 16838 | .eraseblocks = { {32 * 1024, 16} }, |
| 16839 | .block_erase = spi_block_erase_52, |
| 16840 | }, { |
| 16841 | .eraseblocks = { {64 * 1024, 8} }, |
| 16842 | .block_erase = spi_block_erase_d8, |
| 16843 | }, { |
| 16844 | .eraseblocks = { {512 * 1024, 1} }, |
| 16845 | .block_erase = spi_block_erase_60, |
| 16846 | }, { |
| 16847 | .eraseblocks = { {512 * 1024, 1} }, |
| 16848 | .block_erase = spi_block_erase_c7, |
| 16849 | } |
| 16850 | }, |
| 16851 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16852 | .unlock = spi_disable_blockprotect, |
| 16853 | .write = spi_chip_write_256, |
| 16854 | .read = spi_chip_read, |
| 16855 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 16856 | }, |
| 16857 | |
| 16858 | { |
| 16859 | .vendor = "Winbond", |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 16860 | .name = "W25Q40EW", |
| 16861 | .bustype = BUS_SPI, |
| 16862 | .manufacture_id = WINBOND_NEX_ID, |
| 16863 | .model_id = WINBOND_NEX_W25Q40EW, |
| 16864 | .total_size = 512, |
| 16865 | .page_size = 256, |
| 16866 | /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16867 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Alan Green | 07b8a17 | 2019-09-23 16:47:05 +1000 | [diff] [blame] | 16868 | .tested = TEST_OK_PREW, |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 16869 | .probe = probe_spi_rdid, |
| 16870 | .probe_timing = TIMING_ZERO, |
| 16871 | .block_erasers = |
| 16872 | { |
| 16873 | { |
| 16874 | .eraseblocks = { {4 * 1024, 128} }, |
| 16875 | .block_erase = spi_block_erase_20, |
| 16876 | }, { |
| 16877 | .eraseblocks = { {32 * 1024, 16} }, |
| 16878 | .block_erase = spi_block_erase_52, |
| 16879 | }, { |
| 16880 | .eraseblocks = { {64 * 1024, 8} }, |
| 16881 | .block_erase = spi_block_erase_d8, |
| 16882 | }, { |
| 16883 | .eraseblocks = { {512 * 1024, 1} }, |
| 16884 | .block_erase = spi_block_erase_60, |
| 16885 | }, { |
| 16886 | .eraseblocks = { {512 * 1024, 1} }, |
| 16887 | .block_erase = spi_block_erase_c7, |
| 16888 | } |
| 16889 | }, |
| 16890 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16891 | .unlock = spi_disable_blockprotect, |
| 16892 | .write = spi_chip_write_256, |
| 16893 | .read = spi_chip_read, |
| 16894 | .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 16895 | }, |
| 16896 | |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 16897 | { |
| 16898 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16899 | .name = "W25Q64.V", |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 16900 | .bustype = BUS_SPI, |
| 16901 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16902 | .model_id = WINBOND_NEX_W25Q64_V, |
| 16903 | .total_size = 8192, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 16904 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16905 | /* supports SFDP */ |
| 16906 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 16907 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16908 | .tested = TEST_OK_PREW, |
| 16909 | .probe = probe_spi_rdid, |
| 16910 | .probe_timing = TIMING_ZERO, |
| 16911 | .block_erasers = |
| 16912 | { |
| 16913 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16914 | .eraseblocks = { {4 * 1024, 2048} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 16915 | .block_erase = spi_block_erase_20, |
| 16916 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16917 | .eraseblocks = { {32 * 1024, 256} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 16918 | .block_erase = spi_block_erase_52, |
| 16919 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16920 | .eraseblocks = { {64 * 1024, 128} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 16921 | .block_erase = spi_block_erase_d8, |
| 16922 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16923 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 16924 | .block_erase = spi_block_erase_60, |
| 16925 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16926 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 16927 | .block_erase = spi_block_erase_c7, |
| 16928 | } |
| 16929 | }, |
| 16930 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16931 | .unlock = spi_disable_blockprotect, |
| 16932 | .write = spi_chip_write_256, |
| 16933 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16934 | .voltage = {2700, 3600}, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16935 | }, |
| 16936 | |
| 16937 | { |
| 16938 | .vendor = "Winbond", |
| 16939 | .name = "W25Q64.W", |
| 16940 | .bustype = BUS_SPI, |
| 16941 | .manufacture_id = WINBOND_NEX_ID, |
| 16942 | .model_id = WINBOND_NEX_W25Q64_W, |
| 16943 | .total_size = 8192, |
| 16944 | .page_size = 256, |
| 16945 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16946 | /* QPI enable 0x38, disable 0xFF */ |
| 16947 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 16948 | .tested = TEST_OK_PREW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16949 | .probe = probe_spi_rdid, |
| 16950 | .probe_timing = TIMING_ZERO, |
| 16951 | .block_erasers = |
| 16952 | { |
| 16953 | { |
| 16954 | .eraseblocks = { {4 * 1024, 2048} }, |
| 16955 | .block_erase = spi_block_erase_20, |
| 16956 | }, { |
| 16957 | .eraseblocks = { {32 * 1024, 256} }, |
| 16958 | .block_erase = spi_block_erase_52, |
| 16959 | }, { |
| 16960 | .eraseblocks = { {64 * 1024, 128} }, |
| 16961 | .block_erase = spi_block_erase_d8, |
| 16962 | }, { |
| 16963 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 16964 | .block_erase = spi_block_erase_60, |
| 16965 | }, { |
| 16966 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 16967 | .block_erase = spi_block_erase_c7, |
| 16968 | } |
| 16969 | }, |
| 16970 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16971 | .unlock = spi_disable_blockprotect, |
| 16972 | .write = spi_chip_write_256, |
| 16973 | .read = spi_chip_read, |
| 16974 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 16975 | }, |
| 16976 | |
| 16977 | { |
| 16978 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16979 | .name = "W25Q80.V", |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 16980 | .bustype = BUS_SPI, |
| 16981 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16982 | .model_id = WINBOND_NEX_W25Q80_V, |
| 16983 | .total_size = 1024, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 16984 | .page_size = 256, |
| 16985 | /* supports SFDP */ |
| 16986 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16987 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 48729d3 | 2017-12-08 14:44:07 -0800 | [diff] [blame] | 16988 | .tested = TEST_OK_PREW, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 16989 | .probe = probe_spi_rdid, |
| 16990 | .probe_timing = TIMING_ZERO, |
| 16991 | .block_erasers = |
| 16992 | { |
| 16993 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16994 | .eraseblocks = { {4 * 1024, 256} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 16995 | .block_erase = spi_block_erase_20, |
| 16996 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16997 | .eraseblocks = { {32 * 1024, 32} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 16998 | .block_erase = spi_block_erase_52, |
| 16999 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17000 | .eraseblocks = { {64 * 1024, 16} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 17001 | .block_erase = spi_block_erase_d8, |
| 17002 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17003 | .eraseblocks = { {1024 * 1024, 1} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 17004 | .block_erase = spi_block_erase_60, |
| 17005 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17006 | .eraseblocks = { {1024 * 1024, 1} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 17007 | .block_erase = spi_block_erase_c7, |
| 17008 | } |
| 17009 | }, |
| 17010 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17011 | .unlock = spi_disable_blockprotect, |
| 17012 | .write = spi_chip_write_256, |
| 17013 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17014 | .voltage = {2700, 3600}, |
| 17015 | }, |
| 17016 | |
| 17017 | { |
| 17018 | .vendor = "Winbond", |
| 17019 | .name = "W25Q80BW", |
| 17020 | .bustype = BUS_SPI, |
| 17021 | .manufacture_id = WINBOND_NEX_ID, |
| 17022 | .model_id = WINBOND_NEX_W25Q80BW, |
| 17023 | .total_size = 1024, |
| 17024 | .page_size = 256, |
| 17025 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 17026 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 17027 | .tested = TEST_OK_PREW, |
| 17028 | .probe = probe_spi_rdid, |
| 17029 | .probe_timing = TIMING_ZERO, |
| 17030 | .block_erasers = |
| 17031 | { |
| 17032 | { |
| 17033 | .eraseblocks = { {4 * 1024, 256} }, |
| 17034 | .block_erase = spi_block_erase_20, |
| 17035 | }, { |
| 17036 | .eraseblocks = { {32 * 1024, 32} }, |
| 17037 | .block_erase = spi_block_erase_52, |
| 17038 | }, { |
| 17039 | .eraseblocks = { {64 * 1024, 16} }, |
| 17040 | .block_erase = spi_block_erase_d8, |
| 17041 | }, { |
| 17042 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 17043 | .block_erase = spi_block_erase_60, |
| 17044 | }, { |
| 17045 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 17046 | .block_erase = spi_block_erase_c7, |
| 17047 | } |
| 17048 | }, |
| 17049 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17050 | .unlock = spi_disable_blockprotect, |
| 17051 | .write = spi_chip_write_256, |
| 17052 | .read = spi_chip_read, |
| 17053 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 17054 | }, |
| 17055 | |
| 17056 | { |
| 17057 | .vendor = "Winbond", |
| 17058 | .name = "W25Q80EW", |
| 17059 | .bustype = BUS_SPI, |
| 17060 | .manufacture_id = WINBOND_NEX_ID, |
| 17061 | .model_id = WINBOND_NEX_W25Q80EW, |
| 17062 | .total_size = 1024, |
| 17063 | .page_size = 256, |
| 17064 | /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 17065 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 17066 | .tested = TEST_OK_PREW, |
| 17067 | .probe = probe_spi_rdid, |
| 17068 | .probe_timing = TIMING_ZERO, |
| 17069 | .block_erasers = |
| 17070 | { |
| 17071 | { |
| 17072 | .eraseblocks = { {4 * 1024, 256} }, |
| 17073 | .block_erase = spi_block_erase_20, |
| 17074 | }, { |
| 17075 | .eraseblocks = { {32 * 1024, 32} }, |
| 17076 | .block_erase = spi_block_erase_52, |
| 17077 | }, { |
| 17078 | .eraseblocks = { {64 * 1024, 16} }, |
| 17079 | .block_erase = spi_block_erase_d8, |
| 17080 | }, { |
| 17081 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 17082 | .block_erase = spi_block_erase_60, |
| 17083 | }, { |
| 17084 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 17085 | .block_erase = spi_block_erase_c7, |
| 17086 | } |
| 17087 | }, |
| 17088 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17089 | .unlock = spi_disable_blockprotect, |
| 17090 | .write = spi_chip_write_256, |
| 17091 | .read = spi_chip_read, |
| 17092 | .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 17093 | }, |
| 17094 | |
| 17095 | { |
| 17096 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 17097 | .name = "W25X10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17098 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17099 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17100 | .model_id = WINBOND_NEX_W25X10, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17101 | .total_size = 128, |
| 17102 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 17103 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 17104 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17105 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 17106 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17107 | .block_erasers = |
| 17108 | { |
| 17109 | { |
| 17110 | .eraseblocks = { {4 * 1024, 32} }, |
| 17111 | .block_erase = spi_block_erase_20, |
| 17112 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17113 | .eraseblocks = { {64 * 1024, 2} }, |
| 17114 | .block_erase = spi_block_erase_d8, |
| 17115 | }, { |
| 17116 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17117 | .block_erase = spi_block_erase_c7, |
| 17118 | } |
| 17119 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 17120 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 17121 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 17122 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17123 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17124 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17125 | }, |
| 17126 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17127 | { |
| 17128 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 17129 | .name = "W25X16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17130 | .bustype = BUS_SPI, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 17131 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17132 | .model_id = WINBOND_NEX_W25X16, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 17133 | .total_size = 2048, |
| 17134 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 17135 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 17136 | .tested = TEST_OK_PREW, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 17137 | .probe = probe_spi_rdid, |
| 17138 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17139 | .block_erasers = |
| 17140 | { |
| 17141 | { |
| 17142 | .eraseblocks = { {4 * 1024, 512} }, |
| 17143 | .block_erase = spi_block_erase_20, |
| 17144 | }, { |
| 17145 | .eraseblocks = { {32 * 1024, 64} }, |
| 17146 | .block_erase = spi_block_erase_52, |
| 17147 | }, { |
| 17148 | .eraseblocks = { {64 * 1024, 32} }, |
| 17149 | .block_erase = spi_block_erase_d8, |
| 17150 | }, { |
| 17151 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 17152 | .block_erase = spi_block_erase_60, |
| 17153 | }, { |
| 17154 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 17155 | .block_erase = spi_block_erase_c7, |
| 17156 | } |
| 17157 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 17158 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 17159 | .unlock = spi_disable_blockprotect, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 17160 | .write = spi_chip_write_256, |
| 17161 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17162 | .voltage = {2700, 3600}, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 17163 | }, |
| 17164 | |
| 17165 | { |
| 17166 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17167 | .name = "W25X20", |
| 17168 | .bustype = BUS_SPI, |
| 17169 | .manufacture_id = WINBOND_NEX_ID, |
| 17170 | .model_id = WINBOND_NEX_W25X20, |
| 17171 | .total_size = 256, |
| 17172 | .page_size = 256, |
| 17173 | .feature_bits = FEATURE_WRSR_WREN, |
| 17174 | .tested = TEST_OK_PREW, |
| 17175 | .probe = probe_spi_rdid, |
| 17176 | .probe_timing = TIMING_ZERO, |
| 17177 | .block_erasers = |
| 17178 | { |
| 17179 | { |
| 17180 | .eraseblocks = { {4 * 1024, 64} }, |
| 17181 | .block_erase = spi_block_erase_20, |
| 17182 | }, { |
| 17183 | .eraseblocks = { {64 * 1024, 4} }, |
| 17184 | .block_erase = spi_block_erase_d8, |
| 17185 | }, { |
| 17186 | .eraseblocks = { {256 * 1024, 1} }, |
| 17187 | .block_erase = spi_block_erase_c7, |
| 17188 | } |
| 17189 | }, |
| 17190 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17191 | .unlock = spi_disable_blockprotect, |
| 17192 | .write = spi_chip_write_256, |
| 17193 | .read = spi_chip_read, |
| 17194 | .voltage = {2700, 3600}, |
| 17195 | }, |
| 17196 | |
| 17197 | { |
| 17198 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 17199 | .name = "W25X32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17200 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17201 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17202 | .model_id = WINBOND_NEX_W25X32, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17203 | .total_size = 4096, |
| 17204 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 17205 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 17206 | .tested = TEST_OK_PREW, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17207 | .probe = probe_spi_rdid, |
| 17208 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17209 | .block_erasers = |
| 17210 | { |
| 17211 | { |
| 17212 | .eraseblocks = { {4 * 1024, 1024} }, |
| 17213 | .block_erase = spi_block_erase_20, |
| 17214 | }, { |
| 17215 | .eraseblocks = { {32 * 1024, 128} }, |
| 17216 | .block_erase = spi_block_erase_52, |
| 17217 | }, { |
| 17218 | .eraseblocks = { {64 * 1024, 64} }, |
| 17219 | .block_erase = spi_block_erase_d8, |
| 17220 | }, { |
| 17221 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 17222 | .block_erase = spi_block_erase_60, |
| 17223 | }, { |
| 17224 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 17225 | .block_erase = spi_block_erase_c7, |
| 17226 | } |
| 17227 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 17228 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 17229 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17230 | .write = spi_chip_write_256, |
| 17231 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17232 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17233 | }, |
| 17234 | |
| 17235 | { |
| 17236 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17237 | .name = "W25X40", |
| 17238 | .bustype = BUS_SPI, |
| 17239 | .manufacture_id = WINBOND_NEX_ID, |
| 17240 | .model_id = WINBOND_NEX_W25X40, |
| 17241 | .total_size = 512, |
| 17242 | .page_size = 256, |
| 17243 | .feature_bits = FEATURE_WRSR_WREN, |
| 17244 | .tested = TEST_OK_PREW, |
| 17245 | .probe = probe_spi_rdid, |
| 17246 | .probe_timing = TIMING_ZERO, |
| 17247 | .block_erasers = |
| 17248 | { |
| 17249 | { |
| 17250 | .eraseblocks = { {4 * 1024, 128} }, |
| 17251 | .block_erase = spi_block_erase_20, |
| 17252 | }, { |
| 17253 | .eraseblocks = { {64 * 1024, 8} }, |
| 17254 | .block_erase = spi_block_erase_d8, |
| 17255 | }, { |
| 17256 | .eraseblocks = { {512 * 1024, 1} }, |
| 17257 | .block_erase = spi_block_erase_c7, |
| 17258 | } |
| 17259 | }, |
| 17260 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17261 | .unlock = spi_disable_blockprotect, |
| 17262 | .write = spi_chip_write_256, |
| 17263 | .read = spi_chip_read, |
| 17264 | .voltage = {2700, 3600}, |
| 17265 | }, |
| 17266 | |
| 17267 | { |
| 17268 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 17269 | .name = "W25X64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17270 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17271 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17272 | .model_id = WINBOND_NEX_W25X64, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17273 | .total_size = 8192, |
| 17274 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 17275 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 17276 | .tested = TEST_OK_PREW, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17277 | .probe = probe_spi_rdid, |
| 17278 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17279 | .block_erasers = |
| 17280 | { |
| 17281 | { |
| 17282 | .eraseblocks = { {4 * 1024, 2048} }, |
| 17283 | .block_erase = spi_block_erase_20, |
| 17284 | }, { |
| 17285 | .eraseblocks = { {32 * 1024, 256} }, |
| 17286 | .block_erase = spi_block_erase_52, |
| 17287 | }, { |
| 17288 | .eraseblocks = { {64 * 1024, 128} }, |
| 17289 | .block_erase = spi_block_erase_d8, |
| 17290 | }, { |
| 17291 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 17292 | .block_erase = spi_block_erase_60, |
| 17293 | }, { |
| 17294 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 17295 | .block_erase = spi_block_erase_c7, |
| 17296 | } |
| 17297 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 17298 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 17299 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17300 | .write = spi_chip_write_256, |
| 17301 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17302 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17303 | }, |
| 17304 | |
| 17305 | { |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 17306 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17307 | .name = "W25X80", |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 17308 | .bustype = BUS_SPI, |
| 17309 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17310 | .model_id = WINBOND_NEX_W25X80, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 17311 | .total_size = 1024, |
| 17312 | .page_size = 256, |
| 17313 | .feature_bits = FEATURE_WRSR_WREN, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17314 | .tested = TEST_OK_PREW, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 17315 | .probe = probe_spi_rdid, |
| 17316 | .probe_timing = TIMING_ZERO, |
| 17317 | .block_erasers = |
David Hendricks | c9ee0ed | 2018-02-11 17:40:53 -0800 | [diff] [blame] | 17318 | { |
| 17319 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17320 | .eraseblocks = { {4 * 1024, 256} }, |
| 17321 | .block_erase = spi_block_erase_20, |
| 17322 | }, { |
David Hendricks | c9ee0ed | 2018-02-11 17:40:53 -0800 | [diff] [blame] | 17323 | .eraseblocks = { {64 * 1024, 16} }, |
| 17324 | .block_erase = spi_block_erase_d8, |
| 17325 | }, { |
| 17326 | .eraseblocks = { {1024 * 1024, 1} }, |
| 17327 | .block_erase = spi_block_erase_c7, |
| 17328 | } |
| 17329 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 17330 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17331 | .unlock = spi_disable_blockprotect, |
| 17332 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17333 | .read = spi_chip_read, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 17334 | .voltage = {2700, 3600}, |
David Hendricks | c9ee0ed | 2018-02-11 17:40:53 -0800 | [diff] [blame] | 17335 | }, |
| 17336 | |
Alan Green | f29ea36 | 2019-06-27 17:14:02 +1000 | [diff] [blame] | 17337 | /* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */ |
| 17338 | { |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 17339 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17340 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17341 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17342 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17343 | .model_id = WINBOND_W29C010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17344 | .total_size = 128, |
| 17345 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17346 | .feature_bits = FEATURE_LONG_RESET, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 17347 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17348 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 17349 | .probe_timing = 10, /* used datasheet for the W29C011A */ |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17350 | .block_erasers = |
| 17351 | { |
| 17352 | { |
| 17353 | .eraseblocks = { {128 * 1024, 1} }, |
| 17354 | .block_erase = erase_chip_block_jedec, |
| 17355 | } |
| 17356 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17357 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17358 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17359 | }, |
| 17360 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17361 | { |
| 17362 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17363 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old", |
| 17364 | .bustype = BUS_PARALLEL, |
| 17365 | .manufacture_id = WINBOND_ID, |
| 17366 | .model_id = WINBOND_W29C010, |
| 17367 | .total_size = 128, |
| 17368 | .page_size = 128, |
| 17369 | .feature_bits = FEATURE_LONG_RESET, |
| 17370 | .tested = TEST_OK_PREW, |
| 17371 | .probe = probe_w29ee011, |
| 17372 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */ |
| 17373 | .block_erasers = |
| 17374 | { |
| 17375 | { |
| 17376 | .eraseblocks = { {128 * 1024, 1} }, |
| 17377 | .block_erase = erase_chip_block_jedec, |
| 17378 | } |
| 17379 | }, |
| 17380 | .write = write_jedec, |
| 17381 | .read = read_memmapped, |
| 17382 | }, |
| 17383 | |
| 17384 | { |
| 17385 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17386 | .name = "W29C020(C)/W29C022", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17387 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17388 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17389 | .model_id = WINBOND_W29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17390 | .total_size = 256, |
| 17391 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17392 | .feature_bits = FEATURE_LONG_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 17393 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17394 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 17395 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17396 | .block_erasers = |
| 17397 | { |
| 17398 | { |
| 17399 | .eraseblocks = { {256 * 1024, 1} }, |
| 17400 | .block_erase = erase_chip_block_jedec, |
| 17401 | } |
| 17402 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17403 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17404 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17405 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17406 | }, |
| 17407 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17408 | { |
| 17409 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17410 | .name = "W29C040/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17411 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17412 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17413 | .model_id = WINBOND_W29C040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17414 | .total_size = 512, |
| 17415 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17416 | .feature_bits = FEATURE_LONG_RESET, |
| 17417 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17418 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 17419 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17420 | .block_erasers = |
| 17421 | { |
| 17422 | { |
| 17423 | .eraseblocks = { {512 * 1024, 1} }, |
| 17424 | .block_erase = erase_chip_block_jedec, |
| 17425 | } |
| 17426 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17427 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17428 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17429 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17430 | }, |
| 17431 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17432 | { |
| 17433 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17434 | .name = "W29C512A/W29EE512", |
| 17435 | .bustype = BUS_PARALLEL, |
| 17436 | .manufacture_id = WINBOND_ID, |
| 17437 | .model_id = WINBOND_W29C512A, |
| 17438 | .total_size = 64, |
| 17439 | .page_size = 128, |
| 17440 | .feature_bits = FEATURE_LONG_RESET, |
| 17441 | .tested = TEST_OK_PREW, |
| 17442 | .probe = probe_jedec, |
| 17443 | .probe_timing = 10, |
| 17444 | .block_erasers = |
| 17445 | { |
| 17446 | { |
| 17447 | .eraseblocks = { {64 * 1024, 1} }, |
| 17448 | .block_erase = erase_chip_block_jedec, |
| 17449 | } |
| 17450 | }, |
| 17451 | .write = write_jedec, |
| 17452 | .read = read_memmapped, |
| 17453 | .voltage = {4500, 5500}, |
| 17454 | }, |
| 17455 | |
| 17456 | { |
| 17457 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 17458 | .name = "W29GL032CB", |
| 17459 | .bustype = BUS_PARALLEL, |
| 17460 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 17461 | .model_id = WINBOND_W29GL032CB, |
| 17462 | .total_size = 4096, |
| 17463 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 17464 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 17465 | .tested = TEST_UNTESTED, |
| 17466 | .probe = probe_jedec_29gl, |
| 17467 | .probe_timing = TIMING_ZERO, |
| 17468 | .block_erasers = |
| 17469 | { |
| 17470 | { |
| 17471 | .eraseblocks = { |
| 17472 | {8 * 1024, 8}, |
| 17473 | {64 * 1024, 63}, |
| 17474 | }, |
| 17475 | .block_erase = erase_sector_jedec, |
| 17476 | }, { |
| 17477 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 17478 | .block_erase = erase_chip_block_jedec, |
| 17479 | }, |
| 17480 | }, |
| 17481 | .write = write_jedec_1, |
| 17482 | .read = read_memmapped, |
| 17483 | .voltage = {2700, 3600}, |
| 17484 | }, |
| 17485 | |
| 17486 | { |
| 17487 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17488 | .name = "W29GL032CH/L", |
| 17489 | .bustype = BUS_PARALLEL, |
| 17490 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 17491 | .model_id = WINBOND_W29GL032CHL, |
| 17492 | .total_size = 4096, |
| 17493 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 17494 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 17495 | .tested = TEST_UNTESTED, |
| 17496 | .probe = probe_jedec_29gl, |
| 17497 | .probe_timing = TIMING_ZERO, |
| 17498 | .block_erasers = |
| 17499 | { |
| 17500 | { |
| 17501 | .eraseblocks = { {64 * 1024, 64} }, |
| 17502 | .block_erase = erase_sector_jedec, |
| 17503 | }, { |
| 17504 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 17505 | .block_erase = erase_chip_block_jedec, |
| 17506 | }, |
| 17507 | }, |
| 17508 | .write = write_jedec_1, |
| 17509 | .read = read_memmapped, |
| 17510 | .voltage = {2700, 3600}, |
| 17511 | }, |
| 17512 | |
| 17513 | { |
| 17514 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 17515 | .name = "W29GL032CT", |
| 17516 | .bustype = BUS_PARALLEL, |
| 17517 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 17518 | .model_id = WINBOND_W29GL032CT, |
| 17519 | .total_size = 4096, |
| 17520 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 17521 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 17522 | .tested = TEST_UNTESTED, |
| 17523 | .probe = probe_jedec_29gl, |
| 17524 | .probe_timing = TIMING_ZERO, |
| 17525 | .block_erasers = |
| 17526 | { |
| 17527 | { |
| 17528 | .eraseblocks = { |
| 17529 | {64 * 1024, 63}, |
| 17530 | {8 * 1024, 8}, |
| 17531 | }, |
| 17532 | .block_erase = erase_sector_jedec, |
| 17533 | }, { |
| 17534 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 17535 | .block_erase = erase_chip_block_jedec, |
| 17536 | }, |
| 17537 | }, |
| 17538 | .write = write_jedec_1, |
| 17539 | .read = read_memmapped, |
| 17540 | .voltage = {2700, 3600}, |
| 17541 | }, |
| 17542 | |
| 17543 | { |
| 17544 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 17545 | .name = "W29GL064CB", |
| 17546 | .bustype = BUS_PARALLEL, |
| 17547 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 17548 | .model_id = WINBOND_W29GL064CB, |
| 17549 | .total_size = 8192, |
| 17550 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 17551 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 17552 | .tested = TEST_UNTESTED, |
| 17553 | .probe = probe_jedec_29gl, |
| 17554 | .probe_timing = TIMING_ZERO, |
| 17555 | .block_erasers = |
| 17556 | { |
| 17557 | { |
| 17558 | .eraseblocks = { |
| 17559 | {8 * 1024, 8}, |
| 17560 | {64 * 1024, 127}, |
| 17561 | }, |
| 17562 | .block_erase = erase_sector_jedec, |
| 17563 | }, { |
| 17564 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 17565 | .block_erase = erase_chip_block_jedec, |
| 17566 | }, |
| 17567 | }, |
| 17568 | .write = write_jedec_1, |
| 17569 | .read = read_memmapped, |
| 17570 | .voltage = {2700, 3600}, |
| 17571 | }, |
| 17572 | |
| 17573 | { |
| 17574 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17575 | .name = "W29GL064CH/L", |
| 17576 | .bustype = BUS_PARALLEL, |
| 17577 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 17578 | .model_id = WINBOND_W29GL064CHL, |
| 17579 | .total_size = 8192, |
| 17580 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 17581 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 17582 | .tested = TEST_UNTESTED, |
| 17583 | .probe = probe_jedec_29gl, |
| 17584 | .probe_timing = TIMING_ZERO, |
| 17585 | .block_erasers = |
| 17586 | { |
| 17587 | { |
| 17588 | .eraseblocks = { {64 * 1024, 128} }, |
| 17589 | .block_erase = erase_sector_jedec, |
| 17590 | }, { |
| 17591 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 17592 | .block_erase = erase_chip_block_jedec, |
| 17593 | }, |
| 17594 | }, |
| 17595 | .write = write_jedec_1, |
| 17596 | .read = read_memmapped, |
| 17597 | .voltage = {2700, 3600}, |
| 17598 | }, |
| 17599 | |
| 17600 | { |
| 17601 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 17602 | .name = "W29GL064CT", |
| 17603 | .bustype = BUS_PARALLEL, |
| 17604 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 17605 | .model_id = WINBOND_W29GL064CT, |
| 17606 | .total_size = 8192, |
| 17607 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 17608 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 17609 | .tested = TEST_UNTESTED, |
| 17610 | .probe = probe_jedec_29gl, |
| 17611 | .probe_timing = TIMING_ZERO, |
| 17612 | .block_erasers = |
| 17613 | { |
| 17614 | { |
| 17615 | .eraseblocks = { |
| 17616 | {64 * 1024, 127}, |
| 17617 | {8 * 1024, 8}, |
| 17618 | }, |
| 17619 | .block_erase = erase_sector_jedec, |
| 17620 | }, { |
| 17621 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 17622 | .block_erase = erase_chip_block_jedec, |
| 17623 | }, |
| 17624 | }, |
| 17625 | .write = write_jedec_1, |
| 17626 | .read = read_memmapped, |
| 17627 | .voltage = {2700, 3600}, |
| 17628 | }, |
| 17629 | |
| 17630 | { |
| 17631 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 17632 | .name = "W29GL128C", |
| 17633 | .bustype = BUS_PARALLEL, |
| 17634 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 17635 | .model_id = WINBOND_W29GL128CHL, |
| 17636 | .total_size = 16384, |
| 17637 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 17638 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 17639 | .tested = TEST_UNTESTED, |
| 17640 | .probe = probe_jedec_29gl, |
| 17641 | .probe_timing = TIMING_ZERO, |
| 17642 | .block_erasers = |
| 17643 | { |
| 17644 | { |
| 17645 | .eraseblocks = { {128 * 1024, 128} }, |
| 17646 | .block_erase = erase_sector_jedec, |
| 17647 | }, { |
| 17648 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 17649 | .block_erase = erase_chip_block_jedec, |
| 17650 | }, |
| 17651 | }, |
| 17652 | .write = write_jedec_1, |
| 17653 | .read = read_memmapped, |
| 17654 | .voltage = {2700, 3600}, |
| 17655 | }, |
| 17656 | |
| 17657 | { |
| 17658 | .vendor = "Winbond", |
Kyösti Mälkki | c31243e | 2012-10-28 01:50:08 +0000 | [diff] [blame] | 17659 | .name = "W39F010", |
| 17660 | .bustype = BUS_PARALLEL, |
| 17661 | .manufacture_id = WINBOND_ID, |
| 17662 | .model_id = WINBOND_W39F010, |
| 17663 | .total_size = 128, |
| 17664 | .page_size = 4 * 1024, |
| 17665 | .feature_bits = FEATURE_EITHER_RESET, |
| 17666 | .tested = TEST_OK_PREW, |
| 17667 | .probe = probe_jedec, |
| 17668 | .probe_timing = 10, |
| 17669 | .block_erasers = |
| 17670 | { |
| 17671 | { |
| 17672 | .eraseblocks = { {4 * 1024, 32} }, |
| 17673 | .block_erase = erase_block_jedec, |
| 17674 | }, { |
| 17675 | .eraseblocks = { {128 * 1024, 1} }, |
| 17676 | .block_erase = erase_chip_block_jedec, |
| 17677 | } |
| 17678 | }, |
| 17679 | .printlock = printlock_w39f010, |
| 17680 | .write = write_jedec_1, |
| 17681 | .read = read_memmapped, |
| 17682 | .voltage = {4500, 5500}, |
| 17683 | }, |
| 17684 | |
| 17685 | { |
| 17686 | .vendor = "Winbond", |
| 17687 | .name = "W39L010", |
| 17688 | .bustype = BUS_PARALLEL, |
| 17689 | .manufacture_id = WINBOND_ID, |
| 17690 | .model_id = WINBOND_W39L010, |
| 17691 | .total_size = 128, |
| 17692 | .page_size = 4 * 1024, |
| 17693 | .feature_bits = FEATURE_EITHER_RESET, |
| 17694 | .tested = TEST_UNTESTED, |
| 17695 | .probe = probe_jedec, |
| 17696 | .probe_timing = 10, |
| 17697 | .block_erasers = |
| 17698 | { |
| 17699 | { |
| 17700 | .eraseblocks = { {4 * 1024, 32} }, |
| 17701 | .block_erase = erase_block_jedec, |
| 17702 | }, { |
| 17703 | .eraseblocks = { {128 * 1024, 1} }, |
| 17704 | .block_erase = erase_chip_block_jedec, |
| 17705 | } |
| 17706 | }, |
| 17707 | .printlock = printlock_w39l010, |
| 17708 | .write = write_jedec_1, |
| 17709 | .read = read_memmapped, |
| 17710 | .voltage = {3000, 3600}, |
| 17711 | }, |
| 17712 | |
| 17713 | { |
| 17714 | .vendor = "Winbond", |
| 17715 | .name = "W39L020", |
| 17716 | .bustype = BUS_PARALLEL, |
| 17717 | .manufacture_id = WINBOND_ID, |
| 17718 | .model_id = WINBOND_W39L020, |
| 17719 | .total_size = 256, |
| 17720 | .page_size = 4 * 1024, |
| 17721 | .feature_bits = FEATURE_EITHER_RESET, |
| 17722 | .tested = TEST_UNTESTED, |
| 17723 | .probe = probe_jedec, |
| 17724 | .probe_timing = 10, |
| 17725 | .block_erasers = |
| 17726 | { |
| 17727 | { |
| 17728 | .eraseblocks = { {4 * 1024, 64} }, |
| 17729 | .block_erase = erase_block_jedec, |
| 17730 | }, { |
| 17731 | .eraseblocks = { {64 * 1024, 4} }, |
| 17732 | .block_erase = erase_sector_jedec, |
| 17733 | }, { |
| 17734 | .eraseblocks = { {256 * 1024, 1} }, |
| 17735 | .block_erase = erase_chip_block_jedec, |
| 17736 | } |
| 17737 | }, |
| 17738 | .printlock = printlock_w39l020, |
| 17739 | .write = write_jedec_1, |
| 17740 | .read = read_memmapped, |
| 17741 | .voltage = {3000, 3600}, |
| 17742 | }, |
| 17743 | |
| 17744 | { |
| 17745 | .vendor = "Winbond", |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 17746 | .name = "W39L040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17747 | .bustype = BUS_PARALLEL, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 17748 | .manufacture_id = WINBOND_ID, |
| 17749 | .model_id = WINBOND_W39L040, |
| 17750 | .total_size = 512, |
| 17751 | .page_size = 64 * 1024, |
| 17752 | .feature_bits = FEATURE_EITHER_RESET, |
| 17753 | .tested = TEST_OK_PR, |
| 17754 | .probe = probe_jedec, |
| 17755 | .probe_timing = 10, |
| 17756 | .block_erasers = |
| 17757 | { |
| 17758 | { |
| 17759 | .eraseblocks = { {4 * 1024, 128} }, |
| 17760 | .block_erase = erase_block_jedec, |
| 17761 | }, { |
| 17762 | .eraseblocks = { {64 * 1024, 8} }, |
| 17763 | .block_erase = erase_sector_jedec, |
| 17764 | }, { |
| 17765 | .eraseblocks = { {512 * 1024, 1} }, |
| 17766 | .block_erase = erase_chip_block_jedec, |
| 17767 | } |
| 17768 | }, |
| 17769 | .printlock = printlock_w39l040, |
| 17770 | .write = write_jedec_1, |
| 17771 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 17772 | .voltage = {3000, 3600}, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 17773 | }, |
| 17774 | |
| 17775 | { |
| 17776 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17777 | .name = "W39V040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17778 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17779 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17780 | .model_id = WINBOND_W39V040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17781 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 17782 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17783 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 17784 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17785 | .probe = probe_jedec, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 17786 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17787 | .block_erasers = |
| 17788 | { |
| 17789 | { |
| 17790 | .eraseblocks = { {64 * 1024, 8} }, |
| 17791 | .block_erase = erase_sector_jedec, |
| 17792 | }, { |
| 17793 | .eraseblocks = { {512 * 1024, 1} }, |
| 17794 | .block_erase = erase_chip_block_jedec, |
| 17795 | } |
| 17796 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17797 | .printlock = printlock_w39v040a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17798 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17799 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17800 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17801 | }, |
| 17802 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17803 | { |
| 17804 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17805 | .name = "W39V040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17806 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17807 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17808 | .model_id = WINBOND_W39V040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17809 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 17810 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17811 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 17812 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17813 | .probe = probe_jedec, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 17814 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17815 | .block_erasers = |
| 17816 | { |
| 17817 | { |
| 17818 | .eraseblocks = { {64 * 1024, 8} }, |
| 17819 | .block_erase = erase_sector_jedec, |
| 17820 | }, { |
| 17821 | .eraseblocks = { {512 * 1024, 1} }, |
| 17822 | .block_erase = erase_chip_block_jedec, |
| 17823 | } |
| 17824 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17825 | .printlock = printlock_w39v040b, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17826 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17827 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17828 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17829 | }, |
| 17830 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17831 | { |
| 17832 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17833 | .name = "W39V040C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17834 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17835 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17836 | .model_id = WINBOND_W39V040C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17837 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 17838 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17839 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 17840 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17841 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17842 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17843 | .block_erasers = |
| 17844 | { |
| 17845 | { |
| 17846 | .eraseblocks = { {64 * 1024, 8} }, |
| 17847 | .block_erase = erase_sector_jedec, |
| 17848 | }, { |
| 17849 | .eraseblocks = { {512 * 1024, 1} }, |
| 17850 | .block_erase = erase_chip_block_jedec, |
| 17851 | } |
| 17852 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 17853 | .printlock = printlock_w39v040c, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17854 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17855 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17856 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17857 | }, |
| 17858 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17859 | { |
| 17860 | .vendor = "Winbond", |
| 17861 | .name = "W39V040FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17862 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17863 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17864 | .model_id = WINBOND_W39V040FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17865 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 17866 | .page_size = 64 * 1024, |
Michael Karcher | c9b6341 | 2010-05-30 16:55:18 +0000 | [diff] [blame] | 17867 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 17868 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17869 | .probe = probe_jedec, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 17870 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17871 | .block_erasers = |
| 17872 | { |
| 17873 | { |
| 17874 | .eraseblocks = { {4 * 1024, 128} }, |
| 17875 | .block_erase = erase_block_jedec, |
| 17876 | }, { |
| 17877 | .eraseblocks = { {64 * 1024, 8} }, |
| 17878 | .block_erase = erase_sector_jedec, |
| 17879 | }, { |
| 17880 | .eraseblocks = { {512 * 1024, 1} }, |
| 17881 | .block_erase = erase_chip_block_jedec, |
| 17882 | } |
| 17883 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17884 | .printlock = printlock_w39v040fa, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 17885 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17886 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17887 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17888 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17889 | }, |
| 17890 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17891 | { |
| 17892 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17893 | .name = "W39V040FB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17894 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17895 | .manufacture_id = WINBOND_ID, |
| 17896 | .model_id = WINBOND_W39V040B, |
| 17897 | .total_size = 512, |
| 17898 | .page_size = 64 * 1024, |
| 17899 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 17900 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17901 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 17902 | .probe_timing = 10, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17903 | .block_erasers = |
| 17904 | { |
| 17905 | { |
| 17906 | .eraseblocks = { {64 * 1024, 8} }, |
| 17907 | .block_erase = erase_sector_jedec, |
| 17908 | }, { |
| 17909 | .eraseblocks = { {512 * 1024, 1} }, |
| 17910 | .block_erase = erase_chip_block_jedec, |
| 17911 | } |
| 17912 | }, |
| 17913 | .printlock = printlock_w39v040fb, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 17914 | .unlock = unlock_regspace2_uniform_64k, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17915 | .write = write_jedec_1, |
| 17916 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 17917 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17918 | }, |
| 17919 | |
| 17920 | { |
| 17921 | .vendor = "Winbond", |
| 17922 | .name = "W39V040FC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17923 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17924 | .manufacture_id = WINBOND_ID, |
| 17925 | .model_id = WINBOND_W39V040C, |
| 17926 | .total_size = 512, |
| 17927 | .page_size = 64 * 1024, |
| 17928 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 17929 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17930 | .probe = probe_jedec, |
| 17931 | .probe_timing = 10, |
| 17932 | .block_erasers = |
| 17933 | { |
| 17934 | { |
| 17935 | .eraseblocks = { {64 * 1024, 8} }, |
| 17936 | .block_erase = erase_sector_jedec, |
| 17937 | }, { |
| 17938 | .eraseblocks = { {512 * 1024, 1} }, |
| 17939 | .block_erase = erase_chip_block_jedec, |
| 17940 | } |
| 17941 | }, |
| 17942 | .printlock = printlock_w39v040fc, |
| 17943 | .write = write_jedec_1, |
| 17944 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 17945 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17946 | }, |
| 17947 | |
| 17948 | { |
| 17949 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17950 | .name = "W39V080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17951 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17952 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17953 | .model_id = WINBOND_W39V080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17954 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 17955 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17956 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 17957 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17958 | .probe = probe_jedec, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 17959 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17960 | .block_erasers = |
| 17961 | { |
| 17962 | { |
| 17963 | .eraseblocks = { {64 * 1024, 16} }, |
| 17964 | .block_erase = erase_sector_jedec, |
| 17965 | }, { |
| 17966 | .eraseblocks = { {1024 * 1024, 1} }, |
| 17967 | .block_erase = erase_chip_block_jedec, |
| 17968 | } |
| 17969 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17970 | .printlock = printlock_w39v080a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17971 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17972 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17973 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17974 | }, |
| 17975 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17976 | { |
| 17977 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17978 | .name = "W39V080FA", |
| 17979 | .bustype = BUS_FWH, |
| 17980 | .manufacture_id = WINBOND_ID, |
| 17981 | .model_id = WINBOND_W39V080FA, |
| 17982 | .total_size = 1024, |
| 17983 | .page_size = 64 * 1024, |
| 17984 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
| 17985 | .tested = TEST_OK_PREW, |
| 17986 | .probe = probe_jedec, |
| 17987 | .probe_timing = 10, |
| 17988 | .block_erasers = |
| 17989 | { |
| 17990 | { |
| 17991 | .eraseblocks = { {64 * 1024, 16} }, |
| 17992 | .block_erase = erase_sector_jedec, |
| 17993 | }, { |
| 17994 | .eraseblocks = { {1024 * 1024, 1} }, |
| 17995 | .block_erase = erase_chip_block_jedec, |
| 17996 | } |
| 17997 | }, |
| 17998 | .printlock = printlock_w39v080fa, |
| 17999 | .unlock = unlock_regspace2_uniform_64k, |
| 18000 | .write = write_jedec_1, |
| 18001 | .read = read_memmapped, |
| 18002 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
| 18003 | }, |
| 18004 | |
| 18005 | { |
| 18006 | .vendor = "Winbond", |
| 18007 | .name = "W39V080FA (dual mode)", |
| 18008 | .bustype = BUS_FWH, |
| 18009 | .manufacture_id = WINBOND_ID, |
| 18010 | .model_id = WINBOND_W39V080FA_DM, |
| 18011 | .total_size = 512, |
| 18012 | .page_size = 64 * 1024, |
| 18013 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
| 18014 | .tested = TEST_UNTESTED, |
| 18015 | .probe = probe_jedec, |
| 18016 | .probe_timing = 10, |
| 18017 | .block_erasers = |
| 18018 | { |
| 18019 | { |
| 18020 | .eraseblocks = { {64 * 1024, 8} }, |
| 18021 | .block_erase = erase_sector_jedec, |
| 18022 | }, { |
| 18023 | .eraseblocks = { {512 * 1024, 1} }, |
| 18024 | .block_erase = erase_chip_block_jedec, |
| 18025 | } |
| 18026 | }, |
| 18027 | .printlock = printlock_w39v080fa_dual, |
| 18028 | .write = write_jedec_1, |
| 18029 | .read = read_memmapped, |
| 18030 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
| 18031 | }, |
| 18032 | |
| 18033 | { |
| 18034 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18035 | .name = "W49F002U/N", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18036 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18037 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18038 | .model_id = WINBOND_W49F002U, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18039 | .total_size = 256, |
| 18040 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18041 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 18042 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18043 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 18044 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 18045 | .block_erasers = |
| 18046 | { |
| 18047 | { |
| 18048 | .eraseblocks = { |
| 18049 | {128 * 1024, 1}, |
| 18050 | {96 * 1024, 1}, |
| 18051 | {8 * 1024, 2}, |
| 18052 | {16 * 1024, 1}, |
| 18053 | }, |
| 18054 | .block_erase = erase_sector_jedec, |
| 18055 | }, { |
| 18056 | .eraseblocks = { {256 * 1024, 1} }, |
| 18057 | .block_erase = erase_chip_block_jedec, |
| 18058 | } |
| 18059 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18060 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18061 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 18062 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18063 | }, |
| 18064 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18065 | { |
| 18066 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 18067 | .name = "W49F020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18068 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 18069 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18070 | .model_id = WINBOND_W49F020, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 18071 | .total_size = 256, |
| 18072 | .page_size = 128, |
| 18073 | .feature_bits = FEATURE_EITHER_RESET, |
| 18074 | .tested = TEST_OK_PROBE, |
| 18075 | .probe = probe_jedec, |
| 18076 | .probe_timing = 10, |
| 18077 | .block_erasers = |
| 18078 | { |
| 18079 | { |
| 18080 | .eraseblocks = { {256 * 1024, 1} }, |
| 18081 | .block_erase = erase_chip_block_jedec, |
| 18082 | } |
| 18083 | }, |
| 18084 | .write = write_jedec_1, |
| 18085 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 18086 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 18087 | }, |
| 18088 | |
| 18089 | { |
| 18090 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18091 | .name = "W49V002A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18092 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18093 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18094 | .model_id = WINBOND_W49V002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18095 | .total_size = 256, |
| 18096 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18097 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 18098 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18099 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 18100 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 18101 | .block_erasers = |
| 18102 | { |
| 18103 | { |
| 18104 | .eraseblocks = { |
| 18105 | {64 * 1024, 3}, |
| 18106 | {32 * 1024, 1}, |
| 18107 | {8 * 1024, 2}, |
| 18108 | {16 * 1024, 1}, |
| 18109 | }, |
| 18110 | .block_erase = erase_sector_jedec, |
| 18111 | }, { |
| 18112 | .eraseblocks = { {256 * 1024, 1} }, |
| 18113 | .block_erase = erase_chip_block_jedec, |
| 18114 | } |
| 18115 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18116 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18117 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 18118 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18119 | }, |
| 18120 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18121 | { |
| 18122 | .vendor = "Winbond", |
| 18123 | .name = "W49V002FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18124 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18125 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18126 | .model_id = WINBOND_W49V002FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18127 | .total_size = 256, |
| 18128 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18129 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 18130 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18131 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 18132 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 18133 | .block_erasers = |
| 18134 | { |
| 18135 | { |
| 18136 | .eraseblocks = { |
| 18137 | {64 * 1024, 3}, |
| 18138 | {32 * 1024, 1}, |
| 18139 | {8 * 1024, 2}, |
| 18140 | {16 * 1024, 1}, |
| 18141 | }, |
| 18142 | .block_erase = erase_sector_jedec, |
| 18143 | }, { |
| 18144 | .eraseblocks = { {256 * 1024, 1} }, |
| 18145 | .block_erase = erase_chip_block_jedec, |
| 18146 | } |
| 18147 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18148 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18149 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 18150 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18151 | }, |
| 18152 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18153 | { |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 18154 | .vendor = "Zetta Device", |
| 18155 | .name = "ZD25D20", |
| 18156 | .bustype = BUS_SPI, |
| 18157 | .manufacture_id = ZETTADEVICE_ID, |
| 18158 | .model_id = ZETTADEVICE_ZD25D20, |
| 18159 | .total_size = 256, |
| 18160 | .page_size = 256, |
| 18161 | .feature_bits = FEATURE_WRSR_WREN, |
| 18162 | .tested = TEST_UNTESTED, |
| 18163 | .probe = probe_spi_rdid, |
| 18164 | .probe_timing = TIMING_ZERO, |
| 18165 | .block_erasers = |
David Hendricks | a72d5a9 | 2018-02-11 17:58:44 -0800 | [diff] [blame] | 18166 | { |
| 18167 | { |
| 18168 | .eraseblocks = { {4 * 1024, 64} }, |
| 18169 | .block_erase = spi_block_erase_20, |
| 18170 | }, { |
| 18171 | .eraseblocks = { {32 * 1024, 8} }, |
| 18172 | .block_erase = spi_block_erase_52, |
| 18173 | }, { |
| 18174 | .eraseblocks = { {64 * 1024, 4} }, |
| 18175 | .block_erase = spi_block_erase_d8, |
| 18176 | }, { |
| 18177 | .eraseblocks = { {256 * 1024, 1} }, |
| 18178 | .block_erase = spi_block_erase_60, |
| 18179 | }, { |
| 18180 | .eraseblocks = { {256 * 1024, 1} }, |
| 18181 | .block_erase = spi_block_erase_c7, |
| 18182 | } |
| 18183 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 18184 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18185 | .unlock = spi_disable_blockprotect, |
| 18186 | .write = spi_chip_write_256, |
| 18187 | .read = spi_chip_read, |
| 18188 | .voltage = {2700, 3600}, |
David Hendricks | a72d5a9 | 2018-02-11 17:58:44 -0800 | [diff] [blame] | 18189 | }, |
| 18190 | |
| 18191 | { |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 18192 | .vendor = "Zetta Device", |
| 18193 | .name = "ZD25D40", |
| 18194 | .bustype = BUS_SPI, |
| 18195 | .manufacture_id = ZETTADEVICE_ID, |
| 18196 | .model_id = ZETTADEVICE_ZD25D40, |
| 18197 | .total_size = 512, |
| 18198 | .page_size = 256, |
| 18199 | .feature_bits = FEATURE_WRSR_WREN, |
| 18200 | .tested = TEST_UNTESTED, |
| 18201 | .probe = probe_spi_rdid, |
| 18202 | .probe_timing = TIMING_ZERO, |
| 18203 | .block_erasers = |
nybash | cbb46e2 | 2018-02-11 17:53:49 -0800 | [diff] [blame] | 18204 | { |
| 18205 | { |
| 18206 | .eraseblocks = { {4 * 1024, 128} }, |
| 18207 | .block_erase = spi_block_erase_20, |
| 18208 | }, { |
| 18209 | .eraseblocks = { {32 * 1024, 16} }, |
| 18210 | .block_erase = spi_block_erase_52, |
| 18211 | }, { |
| 18212 | .eraseblocks = { {64 * 1024, 8} }, |
| 18213 | .block_erase = spi_block_erase_d8, |
| 18214 | }, { |
| 18215 | .eraseblocks = { {512 * 1024, 1} }, |
| 18216 | .block_erase = spi_block_erase_60, |
| 18217 | }, { |
| 18218 | .eraseblocks = { {512 * 1024, 1} }, |
| 18219 | .block_erase = spi_block_erase_c7, |
| 18220 | } |
| 18221 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 18222 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18223 | .unlock = spi_disable_blockprotect, |
| 18224 | .write = spi_chip_write_256, |
| 18225 | .read = spi_chip_read, |
| 18226 | .voltage = {2700, 3600}, |
nybash | cbb46e2 | 2018-02-11 17:53:49 -0800 | [diff] [blame] | 18227 | }, |
| 18228 | |
Stefan Tauner | ac1b4c8 | 2012-02-17 14:51:04 +0000 | [diff] [blame] | 18229 | { |
Alan Green | dd59220 | 2019-08-23 10:11:37 +1000 | [diff] [blame] | 18230 | .vendor = "Unknown", |
| 18231 | .name = "SFDP-capable chip", |
| 18232 | .bustype = BUS_SPI, |
| 18233 | .manufacture_id = GENERIC_MANUF_ID, |
| 18234 | .model_id = SFDP_DEVICE_ID, |
| 18235 | .total_size = 0, /* set by probing function */ |
| 18236 | .page_size = 0, /* set by probing function */ |
| 18237 | .feature_bits = 0, /* set by probing function */ |
| 18238 | /* We present our own "report this" text hence we do not */ |
| 18239 | /* want the default "This flash part has status UNTESTED..." */ |
| 18240 | /* text to be printed. */ |
| 18241 | .tested = TEST_OK_PREW, |
| 18242 | .probe = probe_spi_sfdp, |
| 18243 | .block_erasers = {}, /* set by probing function */ |
| 18244 | .unlock = spi_disable_blockprotect, /* is this safe? */ |
| 18245 | .write = NULL, /* set by probing function */ |
| 18246 | .read = spi_chip_read, |
| 18247 | /* FIXME: some vendor extensions define this */ |
| 18248 | .voltage = {0}, |
| 18249 | }, |
| 18250 | |
| 18251 | { |
Carl-Daniel Hailfinger | 532c717 | 2011-11-04 21:35:26 +0000 | [diff] [blame] | 18252 | .vendor = "Programmer", |
| 18253 | .name = "Opaque flash chip", |
| 18254 | .bustype = BUS_PROG, |
| 18255 | .manufacture_id = PROGMANUF_ID, |
| 18256 | .model_id = PROGDEV_ID, |
| 18257 | .total_size = 0, |
| 18258 | .page_size = 256, |
| 18259 | /* probe is assumed to work, rest will be filled in by probe */ |
| 18260 | .tested = TEST_OK_PROBE, |
| 18261 | .probe = probe_opaque, |
| 18262 | /* eraseblock sizes will be set by the probing function */ |
| 18263 | .block_erasers = |
| 18264 | { |
| 18265 | { |
| 18266 | .block_erase = erase_opaque, |
| 18267 | } |
| 18268 | }, |
| 18269 | .write = write_opaque, |
| 18270 | .read = read_opaque, |
| 18271 | }, |
| 18272 | |
| 18273 | { |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 18274 | .vendor = "AMIC", |
| 18275 | .name = "unknown AMIC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18276 | .bustype = BUS_SPI, |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 18277 | .manufacture_id = AMIC_ID, |
| 18278 | .model_id = GENERIC_DEVICE_ID, |
| 18279 | .total_size = 0, |
| 18280 | .page_size = 256, |
| 18281 | .tested = TEST_BAD_PREW, |
| 18282 | .probe = probe_spi_rdid4, |
| 18283 | .probe_timing = TIMING_ZERO, |
| 18284 | .write = NULL, |
| 18285 | .read = NULL, |
| 18286 | }, |
| 18287 | |
| 18288 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18289 | .vendor = "Atmel", |
| 18290 | .name = "unknown Atmel SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18291 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18292 | .manufacture_id = ATMEL_ID, |
| 18293 | .model_id = GENERIC_DEVICE_ID, |
| 18294 | .total_size = 0, |
| 18295 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 18296 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18297 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 18298 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18299 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18300 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18301 | }, |
| 18302 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18303 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 18304 | .vendor = "Eon", |
| 18305 | .name = "unknown Eon SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18306 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18307 | .manufacture_id = EON_ID_NOPREFIX, |
| 18308 | .model_id = GENERIC_DEVICE_ID, |
| 18309 | .total_size = 0, |
| 18310 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 18311 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18312 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 18313 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18314 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18315 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18316 | }, |
| 18317 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18318 | { |
| 18319 | .vendor = "Macronix", |
| 18320 | .name = "unknown Macronix SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18321 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 18322 | .manufacture_id = MACRONIX_ID, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18323 | .model_id = GENERIC_DEVICE_ID, |
| 18324 | .total_size = 0, |
| 18325 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 18326 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18327 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 18328 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18329 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18330 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18331 | }, |
| 18332 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18333 | { |
| 18334 | .vendor = "PMC", |
| 18335 | .name = "unknown PMC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18336 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18337 | .manufacture_id = PMC_ID, |
| 18338 | .model_id = GENERIC_DEVICE_ID, |
| 18339 | .total_size = 0, |
| 18340 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 18341 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18342 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 18343 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18344 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18345 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18346 | }, |
| 18347 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18348 | { |
| 18349 | .vendor = "SST", |
| 18350 | .name = "unknown SST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18351 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18352 | .manufacture_id = SST_ID, |
| 18353 | .model_id = GENERIC_DEVICE_ID, |
| 18354 | .total_size = 0, |
| 18355 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 18356 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18357 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 18358 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18359 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18360 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18361 | }, |
| 18362 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18363 | { |
| 18364 | .vendor = "ST", |
| 18365 | .name = "unknown ST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18366 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18367 | .manufacture_id = ST_ID, |
| 18368 | .model_id = GENERIC_DEVICE_ID, |
| 18369 | .total_size = 0, |
| 18370 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 18371 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18372 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 18373 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18374 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18375 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18376 | }, |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 18377 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 18378 | { |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 18379 | .vendor = "Sanyo", |
| 18380 | .name = "unknown Sanyo SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18381 | .bustype = BUS_SPI, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 18382 | .manufacture_id = SANYO_ID, |
| 18383 | .model_id = GENERIC_DEVICE_ID, |
| 18384 | .total_size = 0, |
| 18385 | .page_size = 256, |
| 18386 | .tested = TEST_BAD_PREW, |
| 18387 | .probe = probe_spi_rdid, |
| 18388 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 18389 | .write = NULL, |
| 18390 | .read = NULL, |
| 18391 | }, |
| 18392 | |
| 18393 | { |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 18394 | .vendor = "Winbond", |
| 18395 | .name = "unknown Winbond (ex Nexcom) SPI chip", |
| 18396 | .bustype = BUS_SPI, |
| 18397 | .manufacture_id = WINBOND_NEX_ID, |
| 18398 | .model_id = GENERIC_DEVICE_ID, |
| 18399 | .total_size = 0, |
| 18400 | .page_size = 256, |
| 18401 | .tested = TEST_BAD_PREW, |
| 18402 | .probe = probe_spi_rdid, |
| 18403 | .probe_timing = TIMING_ZERO, |
| 18404 | .write = NULL, |
| 18405 | .read = NULL, |
| 18406 | }, |
| 18407 | |
| 18408 | { |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 18409 | .vendor = "Generic", |
| 18410 | .name = "unknown SPI chip (RDID)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18411 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 18412 | .manufacture_id = GENERIC_MANUF_ID, |
| 18413 | .model_id = GENERIC_DEVICE_ID, |
| 18414 | .total_size = 0, |
| 18415 | .page_size = 256, |
| 18416 | .tested = TEST_BAD_PREW, |
| 18417 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 18418 | .write = NULL, |
| 18419 | }, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 18420 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 18421 | { |
| 18422 | .vendor = "Generic", |
| 18423 | .name = "unknown SPI chip (REMS)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18424 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 18425 | .manufacture_id = GENERIC_MANUF_ID, |
| 18426 | .model_id = GENERIC_DEVICE_ID, |
| 18427 | .total_size = 0, |
| 18428 | .page_size = 256, |
| 18429 | .tested = TEST_BAD_PREW, |
| 18430 | .probe = probe_spi_rems, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 18431 | .write = NULL, |
| 18432 | }, |
| 18433 | |
Stefan Tauner | 96658be | 2014-05-26 22:05:31 +0000 | [diff] [blame] | 18434 | {0} |
Stephan Guilloux | 72cf565 | 2009-04-21 01:46:07 +0000 | [diff] [blame] | 18435 | }; |
Stefan Tauner | 96658be | 2014-05-26 22:05:31 +0000 | [diff] [blame] | 18436 | |
| 18437 | const unsigned int flashchips_size = ARRAY_SIZE(flashchips); |