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 | { |
Dino Li | 3214f58 | 2020-03-25 17:39:53 +0800 | [diff] [blame] | 6790 | .vendor = "GigaDevice", |
| 6791 | .name = "GD25WQ80E", |
| 6792 | .bustype = BUS_SPI, |
| 6793 | .manufacture_id = GIGADEVICE_ID, |
| 6794 | .model_id = GIGADEVICE_GD25WQ80E, |
| 6795 | .total_size = 1024, |
| 6796 | .page_size = 256, |
| 6797 | .feature_bits = FEATURE_WRSR_WREN, |
| 6798 | .tested = TEST_OK_PREW, |
| 6799 | .probe = probe_spi_rdid, |
| 6800 | .probe_timing = TIMING_ZERO, |
| 6801 | .block_erasers = |
| 6802 | { |
| 6803 | { |
| 6804 | .eraseblocks = { {4 * 1024, 256} }, |
| 6805 | .block_erase = spi_block_erase_20, |
| 6806 | }, { |
| 6807 | .eraseblocks = { {32 * 1024, 32} }, |
| 6808 | .block_erase = spi_block_erase_52, |
| 6809 | }, { |
| 6810 | .eraseblocks = { {64 * 1024, 16} }, |
| 6811 | .block_erase = spi_block_erase_d8, |
| 6812 | }, { |
| 6813 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 6814 | .block_erase = spi_block_erase_60, |
| 6815 | }, { |
| 6816 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 6817 | .block_erase = spi_block_erase_c7, |
| 6818 | } |
| 6819 | }, |
| 6820 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6821 | .unlock = spi_disable_blockprotect_bp4_srwd, |
| 6822 | .write = spi_chip_write_256, |
| 6823 | .read = spi_chip_read, |
| 6824 | .voltage = {1650, 3600}, |
| 6825 | }, |
| 6826 | |
| 6827 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6828 | .vendor = "Hyundai", |
| 6829 | .name = "HY29F002B", |
| 6830 | .bustype = BUS_PARALLEL, |
| 6831 | .manufacture_id = HYUNDAI_ID, |
| 6832 | .model_id = HYUNDAI_HY29F002B, |
| 6833 | .total_size = 256, |
| 6834 | .page_size = 256 * 1024, |
| 6835 | .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */ |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 6836 | .tested = TEST_UNTESTED, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6837 | .probe = probe_jedec, |
| 6838 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 6839 | .block_erasers = |
| 6840 | { |
| 6841 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6842 | .eraseblocks = { |
| 6843 | {16 * 1024, 1}, |
| 6844 | {8 * 1024, 2}, |
| 6845 | {32 * 1024, 1}, |
| 6846 | {64 * 1024, 3}, |
| 6847 | }, |
| 6848 | .block_erase = erase_sector_jedec, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 6849 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6850 | .eraseblocks = { {256 * 1024, 1} }, |
| 6851 | .block_erase = erase_chip_block_jedec, |
| 6852 | }, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 6853 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6854 | .write = write_jedec_1, |
| 6855 | .read = read_memmapped, |
| 6856 | .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] | 6857 | }, |
| 6858 | |
| 6859 | { |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6860 | .vendor = "Hyundai", |
| 6861 | .name = "HY29F002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6862 | .bustype = BUS_PARALLEL, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6863 | .manufacture_id = HYUNDAI_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6864 | .model_id = HYUNDAI_HY29F002T, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6865 | .total_size = 256, |
| 6866 | .page_size = 256 * 1024, |
| 6867 | .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] | 6868 | .tested = TEST_OK_PRE, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6869 | .probe = probe_jedec, |
| 6870 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 6871 | .block_erasers = |
| 6872 | { |
| 6873 | { |
| 6874 | .eraseblocks = { |
| 6875 | {64 * 1024, 3}, |
| 6876 | {32 * 1024, 1}, |
| 6877 | {8 * 1024, 2}, |
| 6878 | {16 * 1024, 1}, |
| 6879 | }, |
| 6880 | .block_erase = erase_sector_jedec, |
| 6881 | }, { |
| 6882 | .eraseblocks = { {256 * 1024, 1} }, |
| 6883 | .block_erase = erase_chip_block_jedec, |
| 6884 | }, |
| 6885 | }, |
| 6886 | .write = write_jedec_1, |
| 6887 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6888 | .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] | 6889 | }, |
| 6890 | |
| 6891 | { |
| 6892 | .vendor = "Hyundai", |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6893 | .name = "HY29F040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6894 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6895 | .manufacture_id = HYUNDAI_ID, |
| 6896 | .model_id = HYUNDAI_HY29F040A, |
| 6897 | .total_size = 512, |
| 6898 | .page_size = 64 * 1024, |
| 6899 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 6900 | .tested = TEST_UNTESTED, |
| 6901 | .probe = probe_jedec, |
| 6902 | .probe_timing = TIMING_ZERO, |
| 6903 | .block_erasers = |
| 6904 | { |
| 6905 | { |
| 6906 | .eraseblocks = { {64 * 1024, 8} }, |
| 6907 | .block_erase = erase_sector_jedec, |
| 6908 | }, { |
| 6909 | .eraseblocks = { {512 * 1024, 1} }, |
| 6910 | .block_erase = erase_chip_block_jedec, |
| 6911 | }, |
| 6912 | }, |
| 6913 | .write = write_jedec_1, |
| 6914 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6915 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6916 | }, |
| 6917 | |
| 6918 | { |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 6919 | .vendor = "ISSI", |
Angel Pons | 2ef47f3 | 2018-09-30 16:47:30 +0200 | [diff] [blame] | 6920 | .name = "IS25LP064", |
| 6921 | .bustype = BUS_SPI, |
| 6922 | .manufacture_id = ISSI_ID_SPI, |
| 6923 | .model_id = ISSI_IS25LP064, |
| 6924 | .total_size = 8192, |
| 6925 | .page_size = 256, |
| 6926 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 6927 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6928 | .tested = TEST_UNTESTED, |
| 6929 | .probe = probe_spi_rdid, |
| 6930 | .probe_timing = TIMING_ZERO, |
| 6931 | .block_erasers = |
| 6932 | { |
| 6933 | { |
| 6934 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6935 | .block_erase = spi_block_erase_20, |
| 6936 | }, { |
| 6937 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6938 | .block_erase = spi_block_erase_d7, |
| 6939 | }, { |
| 6940 | .eraseblocks = { {32 * 1024, 256} }, |
| 6941 | .block_erase = spi_block_erase_52, |
| 6942 | }, { |
| 6943 | .eraseblocks = { {64 * 1024, 128} }, |
| 6944 | .block_erase = spi_block_erase_d8, |
| 6945 | }, { |
| 6946 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6947 | .block_erase = spi_block_erase_60, |
| 6948 | }, { |
| 6949 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6950 | .block_erase = spi_block_erase_c7, |
| 6951 | } |
| 6952 | }, |
| 6953 | .unlock = spi_disable_blockprotect, |
| 6954 | .write = spi_chip_write_256, |
| 6955 | .read = spi_chip_read, |
| 6956 | .voltage = {2300, 3600}, |
| 6957 | }, |
| 6958 | |
| 6959 | { |
| 6960 | .vendor = "ISSI", |
David Hendricks | 3083ed9 | 2017-05-02 13:25:56 -0700 | [diff] [blame] | 6961 | .name = "IS25LP128", |
| 6962 | .bustype = BUS_SPI, |
| 6963 | .manufacture_id = ISSI_ID_SPI, |
| 6964 | .model_id = ISSI_IS25LP128, |
| 6965 | .total_size = 16384, |
| 6966 | .page_size = 256, |
| 6967 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 6968 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6969 | .tested = TEST_OK_PREW, |
| 6970 | .probe = probe_spi_rdid, |
| 6971 | .probe_timing = TIMING_ZERO, |
| 6972 | .block_erasers = |
| 6973 | { |
| 6974 | { |
| 6975 | .eraseblocks = { {4 * 1024, 4096} }, |
| 6976 | .block_erase = spi_block_erase_20, |
| 6977 | }, { |
| 6978 | .eraseblocks = { {4 * 1024, 4096} }, |
| 6979 | .block_erase = spi_block_erase_d7, |
| 6980 | }, { |
| 6981 | .eraseblocks = { {32 * 1024, 512} }, |
| 6982 | .block_erase = spi_block_erase_52, |
| 6983 | }, { |
| 6984 | .eraseblocks = { {64 * 1024, 256} }, |
| 6985 | .block_erase = spi_block_erase_d8, |
| 6986 | }, { |
| 6987 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6988 | .block_erase = spi_block_erase_60, |
| 6989 | }, { |
| 6990 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6991 | .block_erase = spi_block_erase_c7, |
| 6992 | } |
| 6993 | }, |
| 6994 | .unlock = spi_disable_blockprotect, |
| 6995 | .write = spi_chip_write_256, |
| 6996 | .read = spi_chip_read, |
| 6997 | .voltage = {2300, 3600}, |
| 6998 | }, |
| 6999 | |
| 7000 | { |
| 7001 | .vendor = "ISSI", |
David Hendricks | 61818dc | 2018-10-28 01:02:21 +0000 | [diff] [blame] | 7002 | .name = "IS25LP256", |
| 7003 | .bustype = BUS_SPI, |
| 7004 | .manufacture_id = ISSI_ID_SPI, |
| 7005 | .model_id = ISSI_IS25LP256, |
| 7006 | .total_size = 32768, |
| 7007 | .page_size = 256, |
| 7008 | /* supports SFDP */ |
| 7009 | /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */ |
| 7010 | /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */ |
| 7011 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7, |
| 7012 | .tested = TEST_OK_PREW, |
| 7013 | .probe = probe_spi_rdid, |
| 7014 | .probe_timing = TIMING_ZERO, |
| 7015 | .block_erasers = |
| 7016 | { |
| 7017 | { |
| 7018 | .eraseblocks = { {4 * 1024, 8192} }, |
| 7019 | .block_erase = spi_block_erase_21, |
| 7020 | }, { |
| 7021 | .eraseblocks = { {4 * 1024, 8192} }, |
| 7022 | .block_erase = spi_block_erase_20, |
| 7023 | /* could also use spi_block_erase_d7 */ |
| 7024 | }, { |
| 7025 | .eraseblocks = { {32 * 1024, 1024} }, |
| 7026 | .block_erase = spi_block_erase_5c, |
| 7027 | }, { |
| 7028 | .eraseblocks = { {32 * 1024, 1024} }, |
| 7029 | .block_erase = spi_block_erase_52, |
| 7030 | }, { |
| 7031 | .eraseblocks = { {64 * 1024, 512} }, |
| 7032 | .block_erase = spi_block_erase_dc, |
| 7033 | }, { |
| 7034 | .eraseblocks = { {64 * 1024, 512} }, |
| 7035 | .block_erase = spi_block_erase_d8, |
| 7036 | }, { |
| 7037 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 7038 | .block_erase = spi_block_erase_60, |
| 7039 | }, { |
| 7040 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 7041 | .block_erase = spi_block_erase_c7, |
| 7042 | } |
| 7043 | }, |
| 7044 | .unlock = spi_disable_blockprotect, |
| 7045 | .write = spi_chip_write_256, |
| 7046 | .read = spi_chip_read, |
| 7047 | .voltage = {2300, 3600}, |
| 7048 | }, |
| 7049 | |
| 7050 | { |
| 7051 | .vendor = "ISSI", |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 7052 | .name = "IS25WP032", |
| 7053 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 7054 | .manufacture_id = ISSI_ID_SPI, |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 7055 | .model_id = ISSI_IS25WP032, |
| 7056 | .total_size = 4096, |
| 7057 | .page_size = 256, |
| 7058 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 7059 | /* QPI enable 0x35, disable 0xF5 */ |
| 7060 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 7061 | .tested = TEST_UNTESTED, |
| 7062 | .probe = probe_spi_rdid, |
| 7063 | .probe_timing = TIMING_ZERO, |
| 7064 | .block_erasers = |
| 7065 | { |
| 7066 | { |
| 7067 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7068 | .block_erase = spi_block_erase_20, |
| 7069 | }, { |
| 7070 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7071 | .block_erase = spi_block_erase_d7, |
| 7072 | }, { |
| 7073 | .eraseblocks = { {32 * 1024, 128} }, |
| 7074 | .block_erase = spi_block_erase_52, |
| 7075 | }, { |
| 7076 | .eraseblocks = { {64 * 1024, 64} }, |
| 7077 | .block_erase = spi_block_erase_d8, |
| 7078 | }, { |
| 7079 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7080 | .block_erase = spi_block_erase_60, |
| 7081 | }, { |
| 7082 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7083 | .block_erase = spi_block_erase_c7, |
| 7084 | } |
| 7085 | }, |
| 7086 | .unlock = spi_disable_blockprotect, |
| 7087 | .write = spi_chip_write_256, |
| 7088 | .read = spi_chip_read, |
| 7089 | .voltage = {1650, 1950}, |
| 7090 | }, |
| 7091 | |
| 7092 | { |
| 7093 | .vendor = "ISSI", |
| 7094 | .name = "IS25WP064", |
| 7095 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 7096 | .manufacture_id = ISSI_ID_SPI, |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 7097 | .model_id = ISSI_IS25WP064, |
| 7098 | .total_size = 8192, |
| 7099 | .page_size = 256, |
| 7100 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 7101 | /* QPI enable 0x35, disable 0xF5 */ |
| 7102 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 7103 | .tested = TEST_OK_PREW, |
| 7104 | .probe = probe_spi_rdid, |
| 7105 | .probe_timing = TIMING_ZERO, |
| 7106 | .block_erasers = |
| 7107 | { |
| 7108 | { |
| 7109 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7110 | .block_erase = spi_block_erase_20, |
| 7111 | }, { |
| 7112 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7113 | .block_erase = spi_block_erase_d7, |
| 7114 | }, { |
| 7115 | .eraseblocks = { {32 * 1024, 256} }, |
| 7116 | .block_erase = spi_block_erase_52, |
| 7117 | }, { |
| 7118 | .eraseblocks = { {64 * 1024, 128} }, |
| 7119 | .block_erase = spi_block_erase_d8, |
| 7120 | }, { |
| 7121 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7122 | .block_erase = spi_block_erase_60, |
| 7123 | }, { |
| 7124 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7125 | .block_erase = spi_block_erase_c7, |
| 7126 | } |
| 7127 | }, |
| 7128 | .unlock = spi_disable_blockprotect, |
| 7129 | .write = spi_chip_write_256, |
| 7130 | .read = spi_chip_read, |
| 7131 | .voltage = {1650, 1950}, |
| 7132 | }, |
| 7133 | |
| 7134 | { |
| 7135 | .vendor = "ISSI", |
David Hendricks | 3083ed9 | 2017-05-02 13:25:56 -0700 | [diff] [blame] | 7136 | .name = "IS25WP128", |
| 7137 | .bustype = BUS_SPI, |
| 7138 | .manufacture_id = ISSI_ID_SPI, |
| 7139 | .model_id = ISSI_IS25WP128, |
| 7140 | .total_size = 16384, |
| 7141 | .page_size = 256, |
| 7142 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 7143 | /* QPI enable 0x35, disable 0xF5 */ |
| 7144 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
David Hendricks | 3083ed9 | 2017-05-02 13:25:56 -0700 | [diff] [blame] | 7145 | .tested = TEST_OK_PREW, |
| 7146 | .probe = probe_spi_rdid, |
| 7147 | .probe_timing = TIMING_ZERO, |
| 7148 | .block_erasers = |
| 7149 | { |
| 7150 | { |
| 7151 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7152 | .block_erase = spi_block_erase_20, |
| 7153 | }, { |
| 7154 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7155 | .block_erase = spi_block_erase_d7, |
| 7156 | }, { |
| 7157 | .eraseblocks = { {32 * 1024, 512} }, |
| 7158 | .block_erase = spi_block_erase_52, |
| 7159 | }, { |
| 7160 | .eraseblocks = { {64 * 1024, 256} }, |
| 7161 | .block_erase = spi_block_erase_d8, |
| 7162 | }, { |
| 7163 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7164 | .block_erase = spi_block_erase_60, |
| 7165 | }, { |
| 7166 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7167 | .block_erase = spi_block_erase_c7, |
| 7168 | } |
| 7169 | }, |
| 7170 | .unlock = spi_disable_blockprotect, |
| 7171 | .write = spi_chip_write_256, |
| 7172 | .read = spi_chip_read, |
| 7173 | .voltage = {1650, 1950}, |
| 7174 | }, |
| 7175 | |
| 7176 | { |
| 7177 | .vendor = "ISSI", |
David Hendricks | 61818dc | 2018-10-28 01:02:21 +0000 | [diff] [blame] | 7178 | .name = "IS25WP256", |
| 7179 | .bustype = BUS_SPI, |
| 7180 | .manufacture_id = ISSI_ID_SPI, |
| 7181 | .model_id = ISSI_IS25WP256, |
| 7182 | .total_size = 32768, |
| 7183 | .page_size = 256, |
| 7184 | /* supports SFDP */ |
| 7185 | /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */ |
| 7186 | /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */ |
| 7187 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7, |
| 7188 | .tested = TEST_OK_PREW, |
| 7189 | .probe = probe_spi_rdid, |
| 7190 | .probe_timing = TIMING_ZERO, |
| 7191 | .block_erasers = |
| 7192 | { |
| 7193 | { |
| 7194 | .eraseblocks = { {4 * 1024, 8192} }, |
| 7195 | .block_erase = spi_block_erase_21, |
| 7196 | }, { |
| 7197 | .eraseblocks = { {4 * 1024, 8192} }, |
| 7198 | .block_erase = spi_block_erase_20, |
| 7199 | /* could also use spi_block_erase_d7 */ |
| 7200 | }, { |
| 7201 | .eraseblocks = { {32 * 1024, 1024} }, |
| 7202 | .block_erase = spi_block_erase_5c, |
| 7203 | }, { |
| 7204 | .eraseblocks = { {32 * 1024, 1024} }, |
| 7205 | .block_erase = spi_block_erase_52, |
| 7206 | }, { |
| 7207 | .eraseblocks = { {64 * 1024, 512} }, |
| 7208 | .block_erase = spi_block_erase_dc, |
| 7209 | }, { |
| 7210 | .eraseblocks = { {64 * 1024, 512} }, |
| 7211 | .block_erase = spi_block_erase_d8, |
| 7212 | }, { |
| 7213 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 7214 | .block_erase = spi_block_erase_60, |
| 7215 | }, { |
| 7216 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 7217 | .block_erase = spi_block_erase_c7, |
| 7218 | } |
| 7219 | }, |
| 7220 | .unlock = spi_disable_blockprotect, |
| 7221 | .write = spi_chip_write_256, |
| 7222 | .read = spi_chip_read, |
| 7223 | .voltage = {1650, 1950}, |
| 7224 | }, |
| 7225 | |
| 7226 | { |
| 7227 | .vendor = "ISSI", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 7228 | .name = "IS29GL064B", |
| 7229 | .bustype = BUS_PARALLEL, |
| 7230 | .manufacture_id = ISSI_ID, |
| 7231 | .model_id = ISSI_PMC_IS29GL064B, |
| 7232 | .total_size = 8192, |
| 7233 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7234 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7235 | .tested = TEST_UNTESTED, |
| 7236 | .probe = probe_jedec_29gl, |
| 7237 | .probe_timing = TIMING_ZERO, |
| 7238 | .block_erasers = |
| 7239 | { |
| 7240 | { |
| 7241 | .eraseblocks = { |
| 7242 | {8 * 1024, 8}, |
| 7243 | {64 * 1024, 127}, |
| 7244 | }, |
| 7245 | .block_erase = erase_sector_jedec, |
| 7246 | }, { |
| 7247 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7248 | .block_erase = erase_chip_block_jedec, |
| 7249 | }, |
| 7250 | }, |
| 7251 | .write = write_jedec_1, |
| 7252 | .read = read_memmapped, |
| 7253 | .voltage = {2700, 3600}, |
| 7254 | }, |
| 7255 | |
| 7256 | { |
| 7257 | .vendor = "ISSI", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7258 | .name = "IS29GL064H/L", |
| 7259 | .bustype = BUS_PARALLEL, |
| 7260 | .manufacture_id = ISSI_ID, |
| 7261 | .model_id = ISSI_PMC_IS29GL064HL, |
| 7262 | .total_size = 8192, |
| 7263 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7264 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7265 | .tested = TEST_UNTESTED, |
| 7266 | .probe = probe_jedec_29gl, |
| 7267 | .probe_timing = TIMING_ZERO, |
| 7268 | .block_erasers = |
| 7269 | { |
| 7270 | { |
| 7271 | .eraseblocks = { {64 * 1024, 128} }, |
| 7272 | .block_erase = erase_sector_jedec, |
| 7273 | }, { |
| 7274 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7275 | .block_erase = erase_chip_block_jedec, |
| 7276 | }, |
| 7277 | }, |
| 7278 | .write = write_jedec_1, |
| 7279 | .read = read_memmapped, |
| 7280 | .voltage = {2700, 3600}, |
| 7281 | }, |
| 7282 | |
| 7283 | { |
| 7284 | .vendor = "ISSI", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 7285 | .name = "IS29GL064T", |
| 7286 | .bustype = BUS_PARALLEL, |
| 7287 | .manufacture_id = ISSI_ID, |
| 7288 | .model_id = ISSI_PMC_IS29GL064T, |
| 7289 | .total_size = 8192, |
| 7290 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7291 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7292 | .tested = TEST_UNTESTED, |
| 7293 | .probe = probe_jedec_29gl, |
| 7294 | .probe_timing = TIMING_ZERO, |
| 7295 | .block_erasers = |
| 7296 | { |
| 7297 | { |
| 7298 | .eraseblocks = { |
| 7299 | {64 * 1024, 127}, |
| 7300 | {8 * 1024, 8}, |
| 7301 | }, |
| 7302 | .block_erase = erase_sector_jedec, |
| 7303 | }, { |
| 7304 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7305 | .block_erase = erase_chip_block_jedec, |
| 7306 | }, |
| 7307 | }, |
| 7308 | .write = write_jedec_1, |
| 7309 | .read = read_memmapped, |
| 7310 | .voltage = {2700, 3600}, |
| 7311 | }, |
| 7312 | |
| 7313 | { |
| 7314 | .vendor = "ISSI", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 7315 | .name = "IS29GL128H/L", |
| 7316 | .bustype = BUS_PARALLEL, |
| 7317 | .manufacture_id = ISSI_ID, |
| 7318 | .model_id = ISSI_PMC_IS29GL128HL, |
| 7319 | .total_size = 16384, |
| 7320 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7321 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7322 | .tested = TEST_UNTESTED, |
| 7323 | .probe = probe_jedec_29gl, |
| 7324 | .probe_timing = TIMING_ZERO, |
| 7325 | .block_erasers = |
| 7326 | { |
| 7327 | { |
| 7328 | .eraseblocks = { {128 * 1024, 128} }, |
| 7329 | .block_erase = erase_sector_jedec, |
| 7330 | }, { |
| 7331 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7332 | .block_erase = erase_chip_block_jedec, |
| 7333 | }, |
| 7334 | }, |
| 7335 | .write = write_jedec_1, |
| 7336 | .read = read_memmapped, |
| 7337 | .voltage = {2700, 3600}, |
| 7338 | }, |
| 7339 | |
| 7340 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7341 | .vendor = "Intel", |
| 7342 | .name = "25F160S33B8", |
| 7343 | .bustype = BUS_SPI, |
| 7344 | .manufacture_id = INTEL_ID, |
| 7345 | .model_id = INTEL_25F160S33B8, |
| 7346 | .total_size = 2048, |
| 7347 | .page_size = 256, |
| 7348 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 7349 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7350 | .tested = TEST_UNTESTED, |
| 7351 | .probe = probe_spi_rdid, |
| 7352 | .probe_timing = TIMING_ZERO, |
| 7353 | .block_erasers = |
| 7354 | { |
| 7355 | { |
| 7356 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 7357 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 7358 | * have no effect on the memory contents, but sets a flag in the SR. |
| 7359 | .eraseblocks = { |
| 7360 | {8 * 1024, 8}, |
| 7361 | {64 * 1024, 31} // inaccessible |
| 7362 | }, |
| 7363 | .block_erase = spi_block_erase_40, |
| 7364 | }, { */ |
| 7365 | .eraseblocks = { {64 * 1024, 32} }, |
| 7366 | .block_erase = spi_block_erase_d8, |
| 7367 | }, { |
| 7368 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7369 | .block_erase = spi_block_erase_c7, |
| 7370 | } |
| 7371 | }, |
| 7372 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 7373 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 7374 | .write = spi_chip_write_256, |
| 7375 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 7376 | .voltage = {2700, 3600}, |
| 7377 | }, |
| 7378 | |
| 7379 | { |
| 7380 | .vendor = "Intel", |
| 7381 | .name = "25F160S33T8", |
| 7382 | .bustype = BUS_SPI, |
| 7383 | .manufacture_id = INTEL_ID, |
| 7384 | .model_id = INTEL_25F160S33T8, |
| 7385 | .total_size = 2048, |
| 7386 | .page_size = 256, |
| 7387 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 7388 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7389 | .tested = TEST_UNTESTED, |
| 7390 | .probe = probe_spi_rdid, |
| 7391 | .probe_timing = TIMING_ZERO, |
| 7392 | .block_erasers = |
| 7393 | { |
| 7394 | { |
| 7395 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 7396 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 7397 | * have no effect on the memory contents, but sets a flag in the SR. |
| 7398 | .eraseblocks = { |
| 7399 | {64 * 1024, 31}, // inaccessible |
| 7400 | {8 * 1024, 8} |
| 7401 | }, |
| 7402 | .block_erase = spi_block_erase_40, |
| 7403 | }, { */ |
| 7404 | .eraseblocks = { {64 * 1024, 32} }, |
| 7405 | .block_erase = spi_block_erase_d8, |
| 7406 | }, { |
| 7407 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7408 | .block_erase = spi_block_erase_c7, |
| 7409 | } |
| 7410 | }, |
| 7411 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 7412 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 7413 | .write = spi_chip_write_256, |
| 7414 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 7415 | .voltage = {2700, 3600}, |
| 7416 | }, |
| 7417 | |
| 7418 | { |
| 7419 | .vendor = "Intel", |
| 7420 | .name = "25F320S33B8", |
| 7421 | .bustype = BUS_SPI, |
| 7422 | .manufacture_id = INTEL_ID, |
| 7423 | .model_id = INTEL_25F320S33B8, |
| 7424 | .total_size = 4096, |
| 7425 | .page_size = 256, |
| 7426 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 7427 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7428 | .tested = TEST_UNTESTED, |
| 7429 | .probe = probe_spi_rdid, |
| 7430 | .probe_timing = TIMING_ZERO, |
| 7431 | .block_erasers = |
| 7432 | { |
| 7433 | { |
| 7434 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 7435 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 7436 | * have no effect on the memory contents, but sets a flag in the SR. |
| 7437 | .eraseblocks = { |
| 7438 | {8 * 1024, 8}, |
| 7439 | {64 * 1024, 63} // inaccessible |
| 7440 | }, |
| 7441 | .block_erase = spi_block_erase_40, |
| 7442 | }, { */ |
| 7443 | .eraseblocks = { {64 * 1024, 64} }, |
| 7444 | .block_erase = spi_block_erase_d8, |
| 7445 | }, { |
| 7446 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7447 | .block_erase = spi_block_erase_c7, |
| 7448 | } |
| 7449 | }, |
| 7450 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 7451 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 7452 | .write = spi_chip_write_256, |
| 7453 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 7454 | .voltage = {2700, 3600}, |
| 7455 | }, |
| 7456 | |
| 7457 | { |
| 7458 | .vendor = "Intel", |
| 7459 | .name = "25F320S33T8", |
| 7460 | .bustype = BUS_SPI, |
| 7461 | .manufacture_id = INTEL_ID, |
| 7462 | .model_id = INTEL_25F320S33T8, |
| 7463 | .total_size = 4096, |
| 7464 | .page_size = 256, |
| 7465 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 7466 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7467 | .tested = TEST_UNTESTED, |
| 7468 | .probe = probe_spi_rdid, |
| 7469 | .probe_timing = TIMING_ZERO, |
| 7470 | .block_erasers = |
| 7471 | { |
| 7472 | { |
| 7473 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 7474 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 7475 | * have no effect on the memory contents, but sets a flag in the SR. |
| 7476 | .eraseblocks = { |
| 7477 | {64 * 1024, 63}, // inaccessible |
| 7478 | {8 * 1024, 8} |
| 7479 | }, |
| 7480 | .block_erase = spi_block_erase_40, |
| 7481 | }, { */ |
| 7482 | .eraseblocks = { {64 * 1024, 64} }, |
| 7483 | .block_erase = spi_block_erase_d8, |
| 7484 | }, { |
| 7485 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7486 | .block_erase = spi_block_erase_c7, |
| 7487 | } |
| 7488 | }, |
| 7489 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 7490 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 7491 | .write = spi_chip_write_256, |
| 7492 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 7493 | .voltage = {2700, 3600}, |
| 7494 | }, |
| 7495 | |
| 7496 | { |
| 7497 | .vendor = "Intel", |
| 7498 | .name = "25F640S33B8", |
| 7499 | .bustype = BUS_SPI, |
| 7500 | .manufacture_id = INTEL_ID, |
| 7501 | .model_id = INTEL_25F640S33B8, |
| 7502 | .total_size = 8192, |
| 7503 | .page_size = 256, |
| 7504 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 7505 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7506 | .tested = TEST_UNTESTED, |
| 7507 | .probe = probe_spi_rdid, |
| 7508 | .probe_timing = TIMING_ZERO, |
| 7509 | .block_erasers = |
| 7510 | { |
| 7511 | { |
| 7512 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 7513 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 7514 | * have no effect on the memory contents, but sets a flag in the SR. |
| 7515 | .eraseblocks = { |
| 7516 | {8 * 1024, 8}, |
| 7517 | {64 * 1024, 127} // inaccessible |
| 7518 | }, |
| 7519 | .block_erase = spi_block_erase_40, |
| 7520 | }, { */ |
| 7521 | .eraseblocks = { {64 * 1024, 128} }, |
| 7522 | .block_erase = spi_block_erase_d8, |
| 7523 | }, { |
| 7524 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7525 | .block_erase = spi_block_erase_c7, |
| 7526 | } |
| 7527 | }, |
| 7528 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 7529 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 7530 | .write = spi_chip_write_256, |
| 7531 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 7532 | .voltage = {2700, 3600}, |
| 7533 | }, |
| 7534 | |
| 7535 | { |
| 7536 | .vendor = "Intel", |
| 7537 | .name = "25F640S33T8", |
| 7538 | .bustype = BUS_SPI, |
| 7539 | .manufacture_id = INTEL_ID, |
| 7540 | .model_id = INTEL_25F640S33T8, |
| 7541 | .total_size = 8192, |
| 7542 | .page_size = 256, |
| 7543 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 7544 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7545 | .tested = TEST_UNTESTED, |
| 7546 | .probe = probe_spi_rdid, |
| 7547 | .probe_timing = TIMING_ZERO, |
| 7548 | .block_erasers = |
| 7549 | { |
| 7550 | { |
| 7551 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 7552 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 7553 | * have no effect on the memory contents, but sets a flag in the SR. |
| 7554 | .eraseblocks = { |
| 7555 | {64 * 1024, 127}, // inaccessible |
| 7556 | {8 * 1024, 8} |
| 7557 | }, |
| 7558 | .block_erase = spi_block_erase_40, |
| 7559 | }, { */ |
| 7560 | .eraseblocks = { {64 * 1024, 128} }, |
| 7561 | .block_erase = spi_block_erase_d8, |
| 7562 | }, { |
| 7563 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7564 | .block_erase = spi_block_erase_c7, |
| 7565 | } |
| 7566 | }, |
| 7567 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 7568 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 7569 | .write = spi_chip_write_256, |
| 7570 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 7571 | .voltage = {2700, 3600}, |
| 7572 | }, |
| 7573 | |
| 7574 | { |
| 7575 | .vendor = "Intel", |
| 7576 | .name = "28F001BN/BX-B", |
| 7577 | .bustype = BUS_PARALLEL, |
| 7578 | .manufacture_id = INTEL_ID, |
| 7579 | .model_id = INTEL_28F001B, |
| 7580 | .total_size = 128, |
| 7581 | .page_size = 128 * 1024, /* 8k + 2x4k + 112k */ |
| 7582 | .tested = TEST_UNTESTED, |
| 7583 | .probe = probe_jedec, |
| 7584 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7585 | .block_erasers = |
| 7586 | { |
| 7587 | { |
| 7588 | .eraseblocks = { |
| 7589 | {8 * 1024, 1}, |
| 7590 | {4 * 1024, 2}, |
| 7591 | {112 * 1024, 1}, |
| 7592 | }, |
| 7593 | .block_erase = erase_block_82802ab, |
| 7594 | }, |
| 7595 | }, |
| 7596 | .write = write_82802ab, |
| 7597 | .read = read_memmapped, |
| 7598 | .voltage = {4500, 5500}, |
| 7599 | }, |
| 7600 | |
| 7601 | { |
| 7602 | .vendor = "Intel", |
| 7603 | .name = "28F001BN/BX-T", |
| 7604 | .bustype = BUS_PARALLEL, |
| 7605 | .manufacture_id = INTEL_ID, |
| 7606 | .model_id = INTEL_28F001T, |
| 7607 | .total_size = 128, |
| 7608 | .page_size = 128 * 1024, /* 112k + 2x4k + 8k */ |
| 7609 | .tested = TEST_OK_PREW, |
| 7610 | .probe = probe_jedec, |
| 7611 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7612 | .block_erasers = |
| 7613 | { |
| 7614 | { |
| 7615 | .eraseblocks = { |
| 7616 | {112 * 1024, 1}, |
| 7617 | {4 * 1024, 2}, |
| 7618 | {8 * 1024, 1}, |
| 7619 | }, |
| 7620 | .block_erase = erase_block_82802ab, |
| 7621 | }, |
| 7622 | }, |
| 7623 | .write = write_82802ab, |
| 7624 | .read = read_memmapped, |
| 7625 | .voltage = {4500, 5500}, |
| 7626 | }, |
| 7627 | |
| 7628 | { |
| 7629 | .vendor = "Intel", |
| 7630 | .name = "28F002BC/BL/BV/BX-T", |
| 7631 | .bustype = BUS_PARALLEL, |
| 7632 | .manufacture_id = INTEL_ID, |
| 7633 | .model_id = INTEL_28F002T, |
| 7634 | .total_size = 256, |
| 7635 | .page_size = 256 * 1024, |
| 7636 | .tested = TEST_OK_PRE, |
| 7637 | .probe = probe_82802ab, |
| 7638 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7639 | .block_erasers = |
| 7640 | { |
| 7641 | { |
| 7642 | .eraseblocks = { |
| 7643 | {128 * 1024, 1}, |
| 7644 | {96 * 1024, 1}, |
| 7645 | {8 * 1024, 2}, |
| 7646 | {16 * 1024, 1}, |
| 7647 | }, |
| 7648 | .block_erase = erase_block_82802ab, |
| 7649 | }, |
| 7650 | }, |
| 7651 | .write = write_82802ab, |
| 7652 | .read = read_memmapped, |
| 7653 | }, |
| 7654 | |
| 7655 | { |
| 7656 | .vendor = "Intel", |
| 7657 | .name = "28F004B5/BE/BV/BX-B", |
| 7658 | .bustype = BUS_PARALLEL, |
| 7659 | .manufacture_id = INTEL_ID, |
| 7660 | .model_id = INTEL_28F004B, |
| 7661 | .total_size = 512, |
| 7662 | .page_size = 128 * 1024, /* maximal block size */ |
| 7663 | .tested = TEST_UNTESTED, |
| 7664 | .probe = probe_82802ab, |
| 7665 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7666 | .block_erasers = |
| 7667 | { |
| 7668 | { |
| 7669 | .eraseblocks = { |
| 7670 | {16 * 1024, 1}, |
| 7671 | {8 * 1024, 2}, |
| 7672 | {96 * 1024, 1}, |
| 7673 | {128 * 1024, 3}, |
| 7674 | }, |
| 7675 | .block_erase = erase_block_82802ab, |
| 7676 | }, |
| 7677 | }, |
| 7678 | .write = write_82802ab, |
| 7679 | .read = read_memmapped, |
| 7680 | }, |
| 7681 | |
| 7682 | { |
| 7683 | .vendor = "Intel", |
| 7684 | .name = "28F004B5/BE/BV/BX-T", |
| 7685 | .bustype = BUS_PARALLEL, |
| 7686 | .manufacture_id = INTEL_ID, |
| 7687 | .model_id = INTEL_28F004T, |
| 7688 | .total_size = 512, |
| 7689 | .page_size = 128 * 1024, /* maximal block size */ |
| 7690 | .tested = TEST_UNTESTED, |
| 7691 | .probe = probe_82802ab, |
| 7692 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7693 | .block_erasers = |
| 7694 | { |
| 7695 | { |
| 7696 | .eraseblocks = { |
| 7697 | {128 * 1024, 3}, |
| 7698 | {96 * 1024, 1}, |
| 7699 | {8 * 1024, 2}, |
| 7700 | {16 * 1024, 1}, |
| 7701 | }, |
| 7702 | .block_erase = erase_block_82802ab, |
| 7703 | }, |
| 7704 | }, |
| 7705 | .write = write_82802ab, |
| 7706 | .read = read_memmapped, |
| 7707 | }, |
| 7708 | |
| 7709 | { |
| 7710 | .vendor = "Intel", |
| 7711 | .name = "28F008S3/S5/SC", |
| 7712 | .bustype = BUS_PARALLEL, |
| 7713 | .manufacture_id = INTEL_ID, |
| 7714 | .model_id = INTEL_28F004S3, |
| 7715 | .total_size = 512, |
| 7716 | .page_size = 256, |
| 7717 | .tested = TEST_UNTESTED, |
| 7718 | .probe = probe_82802ab, |
| 7719 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7720 | .block_erasers = |
| 7721 | { |
| 7722 | { |
| 7723 | .eraseblocks = { {64 * 1024, 8} }, |
| 7724 | .block_erase = erase_block_82802ab, |
| 7725 | }, |
| 7726 | }, |
| 7727 | .unlock = unlock_28f004s5, |
| 7728 | .write = write_82802ab, |
| 7729 | .read = read_memmapped, |
| 7730 | }, |
| 7731 | |
| 7732 | { |
| 7733 | .vendor = "Intel", |
| 7734 | .name = "28F400BV/BX/CE/CV-B", |
| 7735 | .bustype = BUS_PARALLEL, |
| 7736 | .manufacture_id = INTEL_ID, |
| 7737 | .model_id = INTEL_28F400B, |
| 7738 | .total_size = 512, |
| 7739 | .page_size = 128 * 1024, /* maximal block size */ |
| 7740 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 7741 | .tested = TEST_UNTESTED, |
| 7742 | .probe = probe_82802ab, |
| 7743 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7744 | .block_erasers = |
| 7745 | { |
| 7746 | { |
| 7747 | .eraseblocks = { |
| 7748 | {16 * 1024, 1}, |
| 7749 | {8 * 1024, 2}, |
| 7750 | {96 * 1024, 1}, |
| 7751 | {128 * 1024, 3}, |
| 7752 | }, |
| 7753 | .block_erase = erase_block_82802ab, |
| 7754 | }, |
| 7755 | }, |
| 7756 | .write = write_82802ab, |
| 7757 | .read = read_memmapped, |
| 7758 | }, |
| 7759 | |
| 7760 | { |
| 7761 | .vendor = "Intel", |
| 7762 | .name = "28F400BV/BX/CE/CV-T", |
| 7763 | .bustype = BUS_PARALLEL, |
| 7764 | .manufacture_id = INTEL_ID, |
| 7765 | .model_id = INTEL_28F400T, |
| 7766 | .total_size = 512, |
| 7767 | .page_size = 128 * 1024, /* maximal block size */ |
| 7768 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 7769 | .tested = TEST_UNTESTED, |
| 7770 | .probe = probe_82802ab, |
| 7771 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7772 | .block_erasers = |
| 7773 | { |
| 7774 | { |
| 7775 | .eraseblocks = { |
| 7776 | {128 * 1024, 3}, |
| 7777 | {96 * 1024, 1}, |
| 7778 | {8 * 1024, 2}, |
| 7779 | {16 * 1024, 1}, |
| 7780 | }, |
| 7781 | .block_erase = erase_block_82802ab, |
| 7782 | }, |
| 7783 | }, |
| 7784 | .write = write_82802ab, |
| 7785 | .read = read_memmapped, |
| 7786 | }, |
| 7787 | |
| 7788 | { |
| 7789 | .vendor = "Intel", |
| 7790 | .name = "82802AB", |
| 7791 | .bustype = BUS_FWH, |
| 7792 | .manufacture_id = INTEL_ID, |
| 7793 | .model_id = INTEL_82802AB, |
| 7794 | .total_size = 512, |
| 7795 | .page_size = 64 * 1024, |
| 7796 | .feature_bits = FEATURE_REGISTERMAP, |
Alan Green | 8855257 | 2019-07-24 13:56:06 +1000 | [diff] [blame] | 7797 | .tested = TEST_OK_PREW, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7798 | .probe = probe_82802ab, |
| 7799 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
| 7800 | .block_erasers = |
| 7801 | { |
| 7802 | { |
| 7803 | .eraseblocks = { {64 * 1024, 8} }, |
| 7804 | .block_erase = erase_block_82802ab, |
| 7805 | }, |
| 7806 | }, |
| 7807 | .unlock = unlock_regspace2_uniform_64k, |
| 7808 | .write = write_82802ab, |
| 7809 | .read = read_memmapped, |
| 7810 | .voltage = {3000, 3600}, |
| 7811 | }, |
| 7812 | |
| 7813 | { |
| 7814 | .vendor = "Intel", |
| 7815 | .name = "82802AC", |
| 7816 | .bustype = BUS_FWH, |
| 7817 | .manufacture_id = INTEL_ID, |
| 7818 | .model_id = INTEL_82802AC, |
| 7819 | .total_size = 1024, |
| 7820 | .page_size = 64 * 1024, |
| 7821 | .feature_bits = FEATURE_REGISTERMAP, |
| 7822 | .tested = TEST_OK_PR, |
| 7823 | .probe = probe_82802ab, |
| 7824 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
| 7825 | .block_erasers = |
| 7826 | { |
| 7827 | { |
| 7828 | .eraseblocks = { {64 * 1024, 16} }, |
| 7829 | .block_erase = erase_block_82802ab, |
| 7830 | }, |
| 7831 | }, |
| 7832 | .unlock = unlock_regspace2_uniform_64k, |
| 7833 | .write = write_82802ab, |
| 7834 | .read = read_memmapped, |
| 7835 | .voltage = {3000, 3600}, |
| 7836 | }, |
| 7837 | |
| 7838 | { |
| 7839 | .vendor = "Macronix", |
| 7840 | .name = "MX23L12854", |
| 7841 | .bustype = BUS_SPI, |
| 7842 | .manufacture_id = MACRONIX_ID, |
| 7843 | .model_id = MACRONIX_MX23L12854, |
| 7844 | .total_size = 16384, |
| 7845 | .page_size = 256, |
| 7846 | .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA}, |
| 7847 | .probe = probe_spi_rdid, |
| 7848 | .probe_timing = TIMING_ZERO, |
| 7849 | .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */ |
| 7850 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7851 | .voltage = {3000, 3600}, |
| 7852 | }, |
| 7853 | |
| 7854 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7855 | .vendor = "Macronix", |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 7856 | .name = "MX23L1654", |
| 7857 | .bustype = BUS_SPI, |
| 7858 | .manufacture_id = MACRONIX_ID, |
| 7859 | .model_id = MACRONIX_MX23L1654, |
| 7860 | .total_size = 2048, |
| 7861 | .page_size = 256, |
| 7862 | .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA}, |
| 7863 | .probe = probe_spi_rdid, |
| 7864 | .probe_timing = TIMING_ZERO, |
| 7865 | .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */ |
| 7866 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7867 | .voltage = {3000, 3600}, |
| 7868 | }, |
| 7869 | |
| 7870 | { |
| 7871 | .vendor = "Macronix", |
Michael Coppola | 4e7f36e | 2014-05-03 23:01:18 +0000 | [diff] [blame] | 7872 | .name = "MX23L3254", |
| 7873 | .bustype = BUS_SPI, |
| 7874 | .manufacture_id = MACRONIX_ID, |
| 7875 | .model_id = MACRONIX_MX23L3254, |
| 7876 | .total_size = 4096, |
| 7877 | .page_size = 256, |
Stefan Tauner | 6455dff | 2014-05-26 00:36:24 +0000 | [diff] [blame] | 7878 | .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA}, |
Michael Coppola | 4e7f36e | 2014-05-03 23:01:18 +0000 | [diff] [blame] | 7879 | .probe = probe_spi_rdid, |
| 7880 | .probe_timing = TIMING_ZERO, |
| 7881 | .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */ |
| 7882 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7883 | .voltage = {3000, 3600}, |
| 7884 | }, |
| 7885 | |
| 7886 | { |
| 7887 | .vendor = "Macronix", |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 7888 | .name = "MX23L6454", |
| 7889 | .bustype = BUS_SPI, |
| 7890 | .manufacture_id = MACRONIX_ID, |
| 7891 | .model_id = MACRONIX_MX23L6454, |
| 7892 | .total_size = 8192, |
| 7893 | .page_size = 256, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 7894 | .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA}, |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 7895 | .probe = probe_spi_rdid, |
| 7896 | .probe_timing = TIMING_ZERO, |
| 7897 | .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */ |
| 7898 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7899 | .voltage = {3000, 3600}, |
| 7900 | }, |
| 7901 | |
| 7902 | { |
| 7903 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7904 | .name = "MX25L1005(C)/MX25L1006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7905 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7906 | .manufacture_id = MACRONIX_ID, |
| 7907 | .model_id = MACRONIX_MX25L1005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7908 | .total_size = 128, |
| 7909 | .page_size = 256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7910 | /* MX25L1006E supports SFDP */ |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 7911 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 7912 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7913 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7914 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7915 | .block_erasers = |
| 7916 | { |
| 7917 | { |
| 7918 | .eraseblocks = { {4 * 1024, 32} }, |
| 7919 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7920 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7921 | .eraseblocks = { {64 * 1024, 2} }, |
| 7922 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7923 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7924 | .eraseblocks = { {128 * 1024, 1} }, |
| 7925 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7926 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7927 | .eraseblocks = { {128 * 1024, 1} }, |
| 7928 | .block_erase = spi_block_erase_c7, |
| 7929 | }, |
| 7930 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7931 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7932 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7933 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7934 | .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] | 7935 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7936 | }, |
| 7937 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7938 | { |
| 7939 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7940 | .name = "MX25L12805D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7941 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7942 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7943 | .model_id = MACRONIX_MX25L12805D, |
| 7944 | .total_size = 16384, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7945 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7946 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 7947 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7948 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7949 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7950 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7951 | .block_erasers = |
| 7952 | { |
| 7953 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7954 | .eraseblocks = { {4 * 1024, 4096} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7955 | .block_erase = spi_block_erase_20, |
| 7956 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7957 | .eraseblocks = { {64 * 1024, 256} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7958 | .block_erase = spi_block_erase_d8, |
| 7959 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7960 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7961 | .block_erase = spi_block_erase_60, |
| 7962 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7963 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7964 | .block_erase = spi_block_erase_c7, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7965 | } |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7966 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7967 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 7968 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7969 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7970 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7971 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7972 | }, |
| 7973 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7974 | { |
| 7975 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7976 | .name = "MX25L12835F/MX25L12845E/MX25L12865E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7977 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7978 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7979 | .model_id = MACRONIX_MX25L12805D, |
| 7980 | .total_size = 16384, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7981 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7982 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 7983 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 7984 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7985 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7986 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7987 | .block_erasers = |
| 7988 | { |
| 7989 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7990 | .eraseblocks = { {4 * 1024, 4096} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7991 | .block_erase = spi_block_erase_20, |
| 7992 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7993 | .eraseblocks = { {32 * 1024, 512} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7994 | .block_erase = spi_block_erase_52, |
| 7995 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7996 | .eraseblocks = { {64 * 1024, 256} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7997 | .block_erase = spi_block_erase_d8, |
| 7998 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7999 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8000 | .block_erase = spi_block_erase_60, |
| 8001 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8002 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8003 | .block_erase = spi_block_erase_c7, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8004 | } |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8005 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8006 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
| 8007 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8008 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8009 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 8010 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8011 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8012 | }, |
| 8013 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8014 | { |
| 8015 | .vendor = "Macronix", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8016 | .name = "MX25L1605", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8017 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8018 | .manufacture_id = MACRONIX_ID, |
| 8019 | .model_id = MACRONIX_MX25L1605, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8020 | .total_size = 2048, |
| 8021 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 8022 | .feature_bits = FEATURE_WRSR_WREN, |
Sven Schnelle | 4bd8a40 | 2011-03-07 10:59:06 +0000 | [diff] [blame] | 8023 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8024 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8025 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8026 | .block_erasers = |
| 8027 | { |
| 8028 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8029 | .eraseblocks = { {64 * 1024, 32} }, |
| 8030 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8031 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8032 | .eraseblocks = { {64 * 1024, 32} }, |
| 8033 | .block_erase = spi_block_erase_d8, |
| 8034 | }, { |
| 8035 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8036 | .block_erase = spi_block_erase_60, |
| 8037 | }, { |
| 8038 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8039 | .block_erase = spi_block_erase_c7, |
| 8040 | }, |
| 8041 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8042 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8043 | .unlock = spi_disable_blockprotect, |
| 8044 | .write = spi_chip_write_256, |
| 8045 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8046 | .voltage = {2700, 3600}, |
| 8047 | }, |
| 8048 | |
| 8049 | { |
| 8050 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8051 | .name = "MX25L1605A/MX25L1606E/MX25L1608E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8052 | .bustype = BUS_SPI, |
| 8053 | .manufacture_id = MACRONIX_ID, |
| 8054 | .model_id = MACRONIX_MX25L1605, |
| 8055 | .total_size = 2048, |
| 8056 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8057 | /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8058 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 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} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8069 | .block_erase = spi_block_erase_52, |
| 8070 | }, { |
| 8071 | .eraseblocks = { {64 * 1024, 32} }, |
| 8072 | .block_erase = spi_block_erase_d8, |
| 8073 | }, { |
| 8074 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8075 | .block_erase = spi_block_erase_60, |
| 8076 | }, { |
| 8077 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8078 | .block_erase = spi_block_erase_c7, |
| 8079 | }, |
| 8080 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8081 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8082 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8083 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8084 | .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] | 8085 | .voltage = {2700, 3600}, |
| 8086 | }, |
| 8087 | |
| 8088 | { |
| 8089 | .vendor = "Macronix", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8090 | .name = "MX25L1605D/MX25L1608D/MX25L1673E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8091 | .bustype = BUS_SPI, |
| 8092 | .manufacture_id = MACRONIX_ID, |
| 8093 | .model_id = MACRONIX_MX25L1605, |
| 8094 | .total_size = 2048, |
| 8095 | .page_size = 256, |
| 8096 | .feature_bits = FEATURE_WRSR_WREN, |
| 8097 | .tested = TEST_OK_PREW, |
| 8098 | .probe = probe_spi_rdid, |
| 8099 | .probe_timing = TIMING_ZERO, |
| 8100 | .block_erasers = |
| 8101 | { |
| 8102 | { |
| 8103 | .eraseblocks = { {4 * 1024, 512} }, |
| 8104 | .block_erase = spi_block_erase_20, |
| 8105 | }, { |
| 8106 | .eraseblocks = { {64 * 1024, 32} }, |
| 8107 | .block_erase = spi_block_erase_d8, |
| 8108 | }, { |
| 8109 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8110 | .block_erase = spi_block_erase_60, |
| 8111 | }, { |
| 8112 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8113 | .block_erase = spi_block_erase_c7, |
| 8114 | }, |
| 8115 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8116 | .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] | 8117 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8118 | .write = spi_chip_write_256, |
| 8119 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8120 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8121 | }, |
| 8122 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8123 | { |
| 8124 | .vendor = "Macronix", |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8125 | .name = "MX25L1635D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8126 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8127 | .manufacture_id = MACRONIX_ID, |
| 8128 | .model_id = MACRONIX_MX25L1635D, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8129 | .total_size = 2048, |
| 8130 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8131 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8132 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8133 | .tested = TEST_UNTESTED, |
| 8134 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8135 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8136 | .block_erasers = |
| 8137 | { |
| 8138 | { |
| 8139 | .eraseblocks = { {4 * 1024, 512} }, |
| 8140 | .block_erase = spi_block_erase_20, |
| 8141 | }, { |
| 8142 | .eraseblocks = { {64 * 1024, 32} }, |
| 8143 | .block_erase = spi_block_erase_d8, |
| 8144 | }, { |
| 8145 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8146 | .block_erase = spi_block_erase_60, |
| 8147 | }, { |
| 8148 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8149 | .block_erase = spi_block_erase_c7, |
| 8150 | } |
| 8151 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8152 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8153 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8154 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8155 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8156 | .voltage = {2700, 3600}, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8157 | }, |
Stephan Guilloux | fd31550 | 2009-04-20 22:54:13 +0000 | [diff] [blame] | 8158 | |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8159 | { |
| 8160 | .vendor = "Macronix", |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8161 | .name = "MX25L1635E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8162 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8163 | .manufacture_id = MACRONIX_ID, |
| 8164 | .model_id = MACRONIX_MX25L1635E, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8165 | .total_size = 2048, |
| 8166 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8167 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8168 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8169 | .tested = TEST_UNTESTED, |
| 8170 | .probe = probe_spi_rdid, |
| 8171 | .probe_timing = TIMING_ZERO, |
| 8172 | .block_erasers = |
| 8173 | { |
| 8174 | { |
| 8175 | .eraseblocks = { {4 * 1024, 512} }, |
| 8176 | .block_erase = spi_block_erase_20, |
| 8177 | }, { |
| 8178 | .eraseblocks = { {64 * 1024, 32} }, |
| 8179 | .block_erase = spi_block_erase_d8, |
| 8180 | }, { |
| 8181 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8182 | .block_erase = spi_block_erase_60, |
| 8183 | }, { |
| 8184 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8185 | .block_erase = spi_block_erase_c7, |
| 8186 | } |
| 8187 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8188 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8189 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8190 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8191 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 8192 | .voltage = {2700, 3600}, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8193 | }, |
| 8194 | |
| 8195 | { |
| 8196 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8197 | .name = "MX25L2005(C)/MX25L2006E", |
| 8198 | .bustype = BUS_SPI, |
| 8199 | .manufacture_id = MACRONIX_ID, |
| 8200 | .model_id = MACRONIX_MX25L2005, |
| 8201 | .total_size = 256, |
| 8202 | .page_size = 256, |
| 8203 | .feature_bits = FEATURE_WRSR_WREN, |
| 8204 | .tested = TEST_OK_PREW, |
| 8205 | .probe = probe_spi_rdid, |
| 8206 | .probe_timing = TIMING_ZERO, |
| 8207 | .block_erasers = |
| 8208 | { |
| 8209 | { |
| 8210 | .eraseblocks = { {4 * 1024, 64} }, |
| 8211 | .block_erase = spi_block_erase_20, |
| 8212 | }, { |
| 8213 | .eraseblocks = { {64 * 1024, 4} }, |
| 8214 | .block_erase = spi_block_erase_52, |
| 8215 | }, { |
| 8216 | .eraseblocks = { {64 * 1024, 4} }, |
| 8217 | .block_erase = spi_block_erase_d8, |
| 8218 | }, { |
| 8219 | .eraseblocks = { {256 * 1024, 1} }, |
| 8220 | .block_erase = spi_block_erase_60, |
| 8221 | }, { |
| 8222 | .eraseblocks = { {256 * 1024, 1} }, |
| 8223 | .block_erase = spi_block_erase_c7, |
| 8224 | }, |
| 8225 | }, |
| 8226 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 8227 | .unlock = spi_disable_blockprotect, |
| 8228 | .write = spi_chip_write_256, |
| 8229 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8230 | .voltage = {2700, 3600}, |
| 8231 | }, |
| 8232 | |
| 8233 | { |
| 8234 | .vendor = "Macronix", |
Alan Green | 0370730 | 2019-08-26 12:50:43 +1000 | [diff] [blame] | 8235 | .name = "MX25L25635F/MX25L25645G", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8236 | .bustype = BUS_SPI, |
| 8237 | .manufacture_id = MACRONIX_ID, |
| 8238 | .model_id = MACRONIX_MX25L25635F, |
| 8239 | .total_size = 32768, |
| 8240 | .page_size = 256, |
| 8241 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8242 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
| 8243 | .tested = TEST_OK_PREW, |
| 8244 | .probe = probe_spi_rdid, |
| 8245 | .probe_timing = TIMING_ZERO, |
| 8246 | .block_erasers = |
| 8247 | { |
| 8248 | { |
| 8249 | .eraseblocks = { {4 * 1024, 8192} }, |
| 8250 | .block_erase = spi_block_erase_21, |
| 8251 | }, { |
| 8252 | .eraseblocks = { {4 * 1024, 8192} }, |
| 8253 | .block_erase = spi_block_erase_20, |
| 8254 | }, { |
| 8255 | .eraseblocks = { {32 * 1024, 1024} }, |
| 8256 | .block_erase = spi_block_erase_5c, |
| 8257 | }, { |
| 8258 | .eraseblocks = { {32 * 1024, 1024} }, |
| 8259 | .block_erase = spi_block_erase_52, |
| 8260 | }, { |
| 8261 | .eraseblocks = { {64 * 1024, 512} }, |
| 8262 | .block_erase = spi_block_erase_dc, |
| 8263 | }, { |
| 8264 | .eraseblocks = { {64 * 1024, 512} }, |
| 8265 | .block_erase = spi_block_erase_d8, |
| 8266 | }, { |
| 8267 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 8268 | .block_erase = spi_block_erase_60, |
| 8269 | }, { |
| 8270 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 8271 | .block_erase = spi_block_erase_c7, |
| 8272 | } |
| 8273 | }, |
| 8274 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
| 8275 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8276 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8277 | .write = spi_chip_write_256, |
| 8278 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8279 | .voltage = {2700, 3600}, |
| 8280 | }, |
| 8281 | |
| 8282 | { |
| 8283 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8284 | .name = "MX25L3205(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8285 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8286 | .manufacture_id = MACRONIX_ID, |
| 8287 | .model_id = MACRONIX_MX25L3205, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8288 | .total_size = 4096, |
| 8289 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 8290 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 8291 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8292 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8293 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8294 | .block_erasers = |
| 8295 | { |
| 8296 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8297 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8298 | .block_erase = spi_block_erase_20, |
| 8299 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8300 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8301 | .block_erase = spi_block_erase_d8, |
| 8302 | }, { |
| 8303 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8304 | .block_erase = spi_block_erase_60, |
| 8305 | }, { |
| 8306 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8307 | .block_erase = spi_block_erase_c7, |
| 8308 | }, |
| 8309 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8310 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8311 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8312 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8313 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8314 | .voltage = {2700, 3600}, |
| 8315 | }, |
| 8316 | |
| 8317 | { |
| 8318 | .vendor = "Macronix", |
| 8319 | .name = "MX25L3205D/MX25L3208D", |
| 8320 | .bustype = BUS_SPI, |
| 8321 | .manufacture_id = MACRONIX_ID, |
| 8322 | .model_id = MACRONIX_MX25L3205, |
| 8323 | .total_size = 4096, |
| 8324 | .page_size = 256, |
| 8325 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8326 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8327 | .tested = TEST_OK_PREW, |
| 8328 | .probe = probe_spi_rdid, |
| 8329 | .probe_timing = TIMING_ZERO, |
| 8330 | .block_erasers = |
| 8331 | { |
| 8332 | { |
| 8333 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8334 | .block_erase = spi_block_erase_20, |
| 8335 | }, { |
| 8336 | .eraseblocks = { {64 * 1024, 64} }, |
| 8337 | .block_erase = spi_block_erase_d8, |
| 8338 | }, { |
| 8339 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8340 | .block_erase = spi_block_erase_60, |
| 8341 | }, { |
| 8342 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8343 | .block_erase = spi_block_erase_c7, |
| 8344 | }, |
| 8345 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8346 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8347 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8348 | .write = spi_chip_write_256, |
| 8349 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
| 8350 | .voltage = {2700, 3600}, |
| 8351 | }, |
| 8352 | |
| 8353 | { |
| 8354 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8355 | .name = "MX25L3206E/MX25L3208E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8356 | .bustype = BUS_SPI, |
| 8357 | .manufacture_id = MACRONIX_ID, |
| 8358 | .model_id = MACRONIX_MX25L3205, |
| 8359 | .total_size = 4096, |
| 8360 | .page_size = 256, |
| 8361 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8362 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8363 | .tested = TEST_OK_PREW, |
| 8364 | .probe = probe_spi_rdid, |
| 8365 | .probe_timing = TIMING_ZERO, |
| 8366 | .block_erasers = |
| 8367 | { |
| 8368 | { |
| 8369 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8370 | .block_erase = spi_block_erase_20, |
| 8371 | }, { |
| 8372 | .eraseblocks = { {64 * 1024, 64} }, |
| 8373 | .block_erase = spi_block_erase_d8, |
| 8374 | }, { |
| 8375 | .eraseblocks = { {64 * 1024, 64} }, |
| 8376 | .block_erase = spi_block_erase_52, |
| 8377 | }, { |
| 8378 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8379 | .block_erase = spi_block_erase_60, |
| 8380 | }, { |
| 8381 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8382 | .block_erase = spi_block_erase_c7, |
| 8383 | }, |
| 8384 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8385 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8386 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8387 | .write = spi_chip_write_256, |
| 8388 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8389 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8390 | }, |
| 8391 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8392 | { |
| 8393 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8394 | .name = "MX25L3235D", |
| 8395 | .bustype = BUS_SPI, |
| 8396 | .manufacture_id = MACRONIX_ID, |
| 8397 | .model_id = MACRONIX_MX25L3235D, |
| 8398 | .total_size = 4096, |
| 8399 | .page_size = 256, |
| 8400 | /* OTP: 256B total; enter 0xB1, exit 0xC1 */ |
| 8401 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8402 | .tested = TEST_UNTESTED, |
| 8403 | .probe = probe_spi_rdid, |
| 8404 | .probe_timing = TIMING_ZERO, |
| 8405 | .block_erasers = |
| 8406 | { |
| 8407 | { |
| 8408 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8409 | .block_erase = spi_block_erase_20, |
| 8410 | }, { |
| 8411 | .eraseblocks = { {64 * 1024, 64} }, |
| 8412 | .block_erase = spi_block_erase_d8, |
| 8413 | }, { |
| 8414 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8415 | .block_erase = spi_block_erase_60, |
| 8416 | }, { |
| 8417 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8418 | .block_erase = spi_block_erase_c7, |
| 8419 | } |
| 8420 | }, |
| 8421 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8422 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8423 | .write = spi_chip_write_256, |
| 8424 | .read = spi_chip_read, |
| 8425 | .voltage = {2700, 3600}, |
| 8426 | }, |
| 8427 | |
| 8428 | { |
| 8429 | .vendor = "Macronix", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8430 | .name = "MX25L3273E", |
| 8431 | .bustype = BUS_SPI, |
| 8432 | .manufacture_id = MACRONIX_ID, |
| 8433 | .model_id = MACRONIX_MX25L3205, |
| 8434 | .total_size = 4096, |
| 8435 | .page_size = 256, |
| 8436 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8437 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 8438 | .tested = TEST_OK_PREW, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8439 | .probe = probe_spi_rdid, |
| 8440 | .probe_timing = TIMING_ZERO, |
| 8441 | .block_erasers = |
| 8442 | { |
| 8443 | { |
| 8444 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8445 | .block_erase = spi_block_erase_20, |
| 8446 | }, { |
| 8447 | .eraseblocks = { {32 * 1024, 128} }, |
| 8448 | .block_erase = spi_block_erase_52, |
| 8449 | }, { |
| 8450 | .eraseblocks = { {64 * 1024, 64} }, |
| 8451 | .block_erase = spi_block_erase_d8, |
| 8452 | }, { |
| 8453 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8454 | .block_erase = spi_block_erase_60, |
| 8455 | }, { |
| 8456 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8457 | .block_erase = spi_block_erase_c7, |
| 8458 | }, |
| 8459 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8460 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8461 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8462 | .write = spi_chip_write_256, |
| 8463 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
| 8464 | .voltage = {2700, 3600}, |
| 8465 | }, |
| 8466 | |
| 8467 | { |
| 8468 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8469 | .name = "MX25L4005(A/C)/MX25L4006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8470 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8471 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8472 | .model_id = MACRONIX_MX25L4005, |
| 8473 | .total_size = 512, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 8474 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8475 | .feature_bits = FEATURE_WRSR_WREN, |
| 8476 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 8477 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8478 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8479 | .block_erasers = |
| 8480 | { |
| 8481 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8482 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8483 | .block_erase = spi_block_erase_20, |
| 8484 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8485 | .eraseblocks = { {64 * 1024, 8} }, |
| 8486 | .block_erase = spi_block_erase_52, |
| 8487 | }, { |
| 8488 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8489 | .block_erase = spi_block_erase_d8, |
| 8490 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8491 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8492 | .block_erase = spi_block_erase_60, |
| 8493 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8494 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8495 | .block_erase = spi_block_erase_c7, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8496 | }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8497 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8498 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 8499 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8500 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8501 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8502 | .voltage = {2700, 3600}, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 8503 | }, |
| 8504 | |
| 8505 | { |
| 8506 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8507 | .name = "MX25L512(E)/MX25V512(C)", |
| 8508 | .bustype = BUS_SPI, |
| 8509 | .manufacture_id = MACRONIX_ID, |
| 8510 | .model_id = MACRONIX_MX25L512, |
| 8511 | .total_size = 64, |
| 8512 | .page_size = 256, |
| 8513 | /* MX25L512E supports SFDP */ |
| 8514 | .feature_bits = FEATURE_WRSR_WREN, |
| 8515 | .tested = TEST_OK_PREW, |
| 8516 | .probe = probe_spi_rdid, |
| 8517 | .probe_timing = TIMING_ZERO, |
| 8518 | .block_erasers = |
| 8519 | { |
| 8520 | { |
| 8521 | .eraseblocks = { {4 * 1024, 16} }, |
| 8522 | .block_erase = spi_block_erase_20, |
| 8523 | }, { |
| 8524 | .eraseblocks = { {64 * 1024, 1} }, |
| 8525 | .block_erase = spi_block_erase_52, |
| 8526 | }, { |
| 8527 | .eraseblocks = { {64 * 1024, 1} }, |
| 8528 | .block_erase = spi_block_erase_d8, |
| 8529 | }, { |
| 8530 | .eraseblocks = { {64 * 1024, 1} }, |
| 8531 | .block_erase = spi_block_erase_60, |
| 8532 | }, { |
| 8533 | .eraseblocks = { {64 * 1024, 1} }, |
| 8534 | .block_erase = spi_block_erase_c7, |
| 8535 | }, |
| 8536 | }, |
| 8537 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 8538 | .unlock = spi_disable_blockprotect, |
| 8539 | .write = spi_chip_write_256, |
| 8540 | .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */ |
| 8541 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */ |
| 8542 | }, |
| 8543 | |
| 8544 | { |
| 8545 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8546 | .name = "MX25L6405", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8547 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8548 | .manufacture_id = MACRONIX_ID, |
| 8549 | .model_id = MACRONIX_MX25L6405, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8550 | .total_size = 8192, |
| 8551 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8552 | /* Has an additional 512B EEPROM sector */ |
| 8553 | .feature_bits = FEATURE_WRSR_WREN, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 8554 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8555 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8556 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8557 | .block_erasers = |
| 8558 | { |
| 8559 | { |
| 8560 | .eraseblocks = { {64 * 1024, 128} }, |
| 8561 | .block_erase = spi_block_erase_20, |
| 8562 | }, { |
| 8563 | .eraseblocks = { {64 * 1024, 128} }, |
| 8564 | .block_erase = spi_block_erase_d8, |
| 8565 | }, { |
| 8566 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8567 | .block_erase = spi_block_erase_60, |
| 8568 | }, { |
| 8569 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8570 | .block_erase = spi_block_erase_c7, |
| 8571 | } |
| 8572 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8573 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8574 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8575 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8576 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8577 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8578 | }, |
| 8579 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8580 | { |
| 8581 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8582 | .name = "MX25L6405D", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8583 | .bustype = BUS_SPI, |
| 8584 | .manufacture_id = MACRONIX_ID, |
| 8585 | .model_id = MACRONIX_MX25L6405, |
| 8586 | .total_size = 8192, |
| 8587 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8588 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8589 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8590 | .tested = TEST_OK_PREW, |
| 8591 | .probe = probe_spi_rdid, |
| 8592 | .probe_timing = TIMING_ZERO, |
| 8593 | .block_erasers = |
| 8594 | { |
| 8595 | { |
| 8596 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8597 | .block_erase = spi_block_erase_20, |
| 8598 | }, { |
| 8599 | .eraseblocks = { {64 * 1024, 128} }, |
| 8600 | .block_erase = spi_block_erase_d8, |
| 8601 | }, { |
| 8602 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8603 | .block_erase = spi_block_erase_60, |
| 8604 | }, { |
| 8605 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8606 | .block_erase = spi_block_erase_c7, |
| 8607 | } |
| 8608 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8609 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8610 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8611 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8612 | .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] | 8613 | .voltage = {2700, 3600}, |
| 8614 | }, |
| 8615 | |
| 8616 | { |
| 8617 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8618 | .name = "MX25L6406E/MX25L6408E", |
| 8619 | .bustype = BUS_SPI, |
| 8620 | .manufacture_id = MACRONIX_ID, |
| 8621 | .model_id = MACRONIX_MX25L6405, |
| 8622 | .total_size = 8192, |
| 8623 | .page_size = 256, |
| 8624 | /* MX25L6406E supports SFDP */ |
| 8625 | /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */ |
| 8626 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8627 | .tested = TEST_OK_PREW, |
| 8628 | .probe = probe_spi_rdid, |
| 8629 | .probe_timing = TIMING_ZERO, |
| 8630 | .block_erasers = |
| 8631 | { |
| 8632 | { |
| 8633 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8634 | .block_erase = spi_block_erase_20, |
| 8635 | }, { |
| 8636 | .eraseblocks = { {64 * 1024, 128} }, |
| 8637 | .block_erase = spi_block_erase_52, |
| 8638 | }, { |
| 8639 | .eraseblocks = { {64 * 1024, 128} }, |
| 8640 | .block_erase = spi_block_erase_d8, |
| 8641 | }, { |
| 8642 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8643 | .block_erase = spi_block_erase_60, |
| 8644 | }, { |
| 8645 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8646 | .block_erase = spi_block_erase_c7, |
| 8647 | } |
| 8648 | }, |
| 8649 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 8650 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8651 | .write = spi_chip_write_256, |
| 8652 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */ |
| 8653 | .voltage = {2700, 3600}, |
| 8654 | }, |
| 8655 | |
| 8656 | { |
| 8657 | .vendor = "Macronix", |
Nico Huber | b007278 | 2017-12-06 21:02:57 +0100 | [diff] [blame] | 8658 | .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8659 | .bustype = BUS_SPI, |
| 8660 | .manufacture_id = MACRONIX_ID, |
| 8661 | .model_id = MACRONIX_MX25L6405, |
| 8662 | .total_size = 8192, |
| 8663 | .page_size = 256, |
| 8664 | /* supports SFDP */ |
| 8665 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8666 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8667 | .tested = TEST_OK_PREW, |
| 8668 | .probe = probe_spi_rdid, |
| 8669 | .probe_timing = TIMING_ZERO, |
| 8670 | .block_erasers = |
| 8671 | { |
| 8672 | { |
| 8673 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8674 | .block_erase = spi_block_erase_20, |
| 8675 | }, { |
| 8676 | .eraseblocks = { {32 * 1024, 256} }, |
| 8677 | .block_erase = spi_block_erase_52, |
| 8678 | }, { |
| 8679 | .eraseblocks = { {64 * 1024, 128} }, |
| 8680 | .block_erase = spi_block_erase_d8, |
| 8681 | }, { |
| 8682 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8683 | .block_erase = spi_block_erase_60, |
| 8684 | }, { |
| 8685 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8686 | .block_erase = spi_block_erase_c7, |
| 8687 | } |
| 8688 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8689 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8690 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8691 | .write = spi_chip_write_256, |
| 8692 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8693 | .voltage = {2700, 3600}, |
| 8694 | }, |
| 8695 | |
| 8696 | { |
| 8697 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8698 | .name = "MX25L6495F", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8699 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8700 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8701 | .model_id = MACRONIX_MX25L6495F, |
| 8702 | .total_size = 8192, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 8703 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8704 | /* OTP: 1024B total; enter 0xB1, exit 0xC1 */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8705 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 8706 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 8707 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8708 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8709 | .block_erasers = |
| 8710 | { |
| 8711 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8712 | .eraseblocks = { {4 * 1024, 2048} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8713 | .block_erase = spi_block_erase_20, |
| 8714 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8715 | .eraseblocks = { {64 * 1024, 128} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8716 | .block_erase = spi_block_erase_d8, |
| 8717 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8718 | .eraseblocks = { {32 * 1024, 256} }, |
| 8719 | .block_erase = spi_block_erase_52, |
| 8720 | }, { |
| 8721 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8722 | .block_erase = spi_block_erase_60, |
| 8723 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8724 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8725 | .block_erase = spi_block_erase_c7, |
| 8726 | } |
| 8727 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8728 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8729 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8730 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8731 | .voltage = {2700, 3600}, |
| 8732 | }, |
| 8733 | |
| 8734 | { |
| 8735 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8736 | .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005", |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8737 | .bustype = BUS_SPI, |
| 8738 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8739 | .model_id = MACRONIX_MX25L8005, |
| 8740 | .total_size = 1024, |
| 8741 | .page_size = 256, |
| 8742 | /* MX25L8006E, MX25L8008E support SFDP */ |
| 8743 | /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */ |
| 8744 | .feature_bits = FEATURE_WRSR_WREN, |
| 8745 | .tested = TEST_OK_PREW, |
| 8746 | .probe = probe_spi_rdid, |
| 8747 | .probe_timing = TIMING_ZERO, |
| 8748 | .block_erasers = |
| 8749 | { |
| 8750 | { |
| 8751 | .eraseblocks = { {4 * 1024, 256} }, |
| 8752 | .block_erase = spi_block_erase_20, |
| 8753 | }, { |
| 8754 | .eraseblocks = { {64 * 1024, 16} }, |
| 8755 | .block_erase = spi_block_erase_52, |
| 8756 | }, { |
| 8757 | .eraseblocks = { {64 * 1024, 16} }, |
| 8758 | .block_erase = spi_block_erase_d8, |
| 8759 | }, { |
| 8760 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8761 | .block_erase = spi_block_erase_60, |
| 8762 | }, { |
| 8763 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8764 | .block_erase = spi_block_erase_c7, |
| 8765 | }, |
| 8766 | }, |
| 8767 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 8768 | .unlock = spi_disable_blockprotect, |
| 8769 | .write = spi_chip_write_256, |
| 8770 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8771 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */ |
| 8772 | }, |
| 8773 | |
| 8774 | { |
| 8775 | .vendor = "Macronix", |
sibradzic | f62623c | 2020-03-14 17:21:34 +0900 | [diff] [blame] | 8776 | .name = "MX25R3235F", |
| 8777 | .bustype = BUS_SPI, |
| 8778 | .manufacture_id = MACRONIX_ID, |
| 8779 | .model_id = MACRONIX_MX25R3235F, |
| 8780 | .total_size = 4096, |
| 8781 | .page_size = 256, |
| 8782 | /* OTP: 1024B total; enter 0xB1, exit 0xC1 */ |
| 8783 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8784 | .tested = TEST_OK_PREW, |
| 8785 | .probe = probe_spi_rdid, |
| 8786 | .probe_timing = TIMING_ZERO, |
| 8787 | .block_erasers = |
| 8788 | { |
| 8789 | { |
| 8790 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8791 | .block_erase = spi_block_erase_20, |
| 8792 | }, { |
| 8793 | .eraseblocks = { {64 * 1024, 64} }, |
| 8794 | .block_erase = spi_block_erase_d8, |
| 8795 | }, { |
| 8796 | .eraseblocks = { {32 * 1024, 128} }, |
| 8797 | .block_erase = spi_block_erase_52, |
| 8798 | }, { |
| 8799 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8800 | .block_erase = spi_block_erase_60, |
| 8801 | }, { |
| 8802 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8803 | .block_erase = spi_block_erase_c7, |
| 8804 | } |
| 8805 | }, |
| 8806 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit 6 is quad enable */ |
| 8807 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8808 | .write = spi_chip_write_256, |
| 8809 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8810 | .voltage = {1650, 3600}, |
| 8811 | }, |
| 8812 | |
| 8813 | { |
| 8814 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8815 | .name = "MX25R6435F", |
| 8816 | .bustype = BUS_SPI, |
| 8817 | .manufacture_id = MACRONIX_ID, |
| 8818 | .model_id = MACRONIX_MX25R6435F, |
| 8819 | .total_size = 8192, |
| 8820 | .page_size = 256, |
| 8821 | /* OTP: 1024B total; enter 0xB1, exit 0xC1 */ |
| 8822 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8823 | .tested = TEST_OK_PREW, |
| 8824 | .probe = probe_spi_rdid, |
| 8825 | .probe_timing = TIMING_ZERO, |
| 8826 | .block_erasers = |
| 8827 | { |
| 8828 | { |
| 8829 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8830 | .block_erase = spi_block_erase_20, |
| 8831 | }, { |
| 8832 | .eraseblocks = { {64 * 1024, 128} }, |
| 8833 | .block_erase = spi_block_erase_d8, |
| 8834 | }, { |
| 8835 | .eraseblocks = { {32 * 1024, 256} }, |
| 8836 | .block_erase = spi_block_erase_52, |
| 8837 | }, { |
| 8838 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8839 | .block_erase = spi_block_erase_60, |
| 8840 | }, { |
| 8841 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8842 | .block_erase = spi_block_erase_c7, |
| 8843 | } |
| 8844 | }, |
| 8845 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8846 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8847 | .write = spi_chip_write_256, |
| 8848 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8849 | .voltage = {1650, 3600}, |
| 8850 | }, |
| 8851 | |
| 8852 | { |
| 8853 | .vendor = "Macronix", |
| 8854 | .name = "MX25U12835F", |
| 8855 | .bustype = BUS_SPI, |
| 8856 | .manufacture_id = MACRONIX_ID, |
| 8857 | .model_id = MACRONIX_MX25U12835E, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8858 | .total_size = 16384, |
| 8859 | .page_size = 256, |
| 8860 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8861 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8862 | .tested = TEST_OK_PREW, |
| 8863 | .probe = probe_spi_rdid, |
| 8864 | .probe_timing = TIMING_ZERO, |
| 8865 | .block_erasers = |
| 8866 | { |
| 8867 | { |
| 8868 | .eraseblocks = { {4 * 1024, 4096} }, |
| 8869 | .block_erase = spi_block_erase_20, |
| 8870 | }, { |
| 8871 | .eraseblocks = { {32 * 1024, 512} }, |
| 8872 | .block_erase = spi_block_erase_52, |
| 8873 | }, { |
| 8874 | .eraseblocks = { {64 * 1024, 256} }, |
| 8875 | .block_erase = spi_block_erase_d8, |
| 8876 | }, { |
| 8877 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 8878 | .block_erase = spi_block_erase_60, |
| 8879 | }, { |
| 8880 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 8881 | .block_erase = spi_block_erase_c7, |
| 8882 | } |
| 8883 | }, |
Angel Pons | f112e24 | 2018-09-30 20:14:17 +0200 | [diff] [blame] | 8884 | /* TODO: security register */ |
| 8885 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8886 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8887 | .write = spi_chip_write_256, /* Multi I/O supported */ |
Angel Pons | f112e24 | 2018-09-30 20:14:17 +0200 | [diff] [blame] | 8888 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8889 | .voltage = {1650, 2000}, |
| 8890 | }, |
| 8891 | |
| 8892 | { |
| 8893 | .vendor = "Macronix", |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 8894 | .name = "MX25U1635E", |
| 8895 | .bustype = BUS_SPI, |
| 8896 | .manufacture_id = MACRONIX_ID, |
| 8897 | .model_id = MACRONIX_MX25U1635E, |
| 8898 | .total_size = 2048, |
| 8899 | .page_size = 256, |
| 8900 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8901 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 8902 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8903 | .tested = TEST_OK_PR, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 8904 | .probe = probe_spi_rdid, |
| 8905 | .probe_timing = TIMING_ZERO, |
| 8906 | .block_erasers = |
| 8907 | { |
| 8908 | { |
| 8909 | .eraseblocks = { {4 * 1024, 512} }, |
| 8910 | .block_erase = spi_block_erase_20, |
| 8911 | }, { |
| 8912 | .eraseblocks = { {32 * 1024, 64} }, |
| 8913 | .block_erase = spi_block_erase_52, |
| 8914 | }, { |
| 8915 | .eraseblocks = { {64 * 1024, 32} }, |
| 8916 | .block_erase = spi_block_erase_d8, |
| 8917 | }, { |
| 8918 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8919 | .block_erase = spi_block_erase_60, |
| 8920 | }, { |
| 8921 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8922 | .block_erase = spi_block_erase_c7, |
| 8923 | } |
| 8924 | }, |
| 8925 | /* TODO: security register */ |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8926 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8927 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 8928 | .write = spi_chip_write_256, |
| 8929 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8930 | .voltage = {1650, 2000}, |
| 8931 | }, |
| 8932 | |
| 8933 | { |
| 8934 | .vendor = "Macronix", |
David Tomaschik | f75d8c5 | 2019-06-20 09:49:01 -0700 | [diff] [blame] | 8935 | .name = "MX25U25635F", |
| 8936 | .bustype = BUS_SPI, |
| 8937 | .manufacture_id = MACRONIX_ID, |
| 8938 | .model_id = MACRONIX_MX25U25635F, |
| 8939 | .total_size = 32768, |
| 8940 | .page_size = 256, |
| 8941 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8942 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA, |
| 8943 | .tested = TEST_OK_PR, |
| 8944 | .probe = probe_spi_rdid, |
| 8945 | .probe_timing = TIMING_ZERO, |
| 8946 | .block_erasers = |
| 8947 | { |
| 8948 | { |
| 8949 | .eraseblocks = { {4 * 1024, 8192} }, |
| 8950 | .block_erase = spi_block_erase_21, |
| 8951 | }, { |
| 8952 | .eraseblocks = { {4 * 1024, 8192} }, |
| 8953 | .block_erase = spi_block_erase_20, |
| 8954 | }, { |
| 8955 | .eraseblocks = { {32 * 1024, 1024} }, |
| 8956 | .block_erase = spi_block_erase_5c, |
| 8957 | }, { |
| 8958 | .eraseblocks = { {32 * 1024, 1024} }, |
| 8959 | .block_erase = spi_block_erase_52, |
| 8960 | }, { |
| 8961 | .eraseblocks = { {64 * 1024, 512} }, |
| 8962 | .block_erase = spi_block_erase_dc, |
| 8963 | }, { |
| 8964 | .eraseblocks = { {64 * 1024, 512} }, |
| 8965 | .block_erase = spi_block_erase_d8, |
| 8966 | }, { |
| 8967 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 8968 | .block_erase = spi_block_erase_60, |
| 8969 | }, { |
| 8970 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 8971 | .block_erase = spi_block_erase_c7, |
| 8972 | } |
| 8973 | }, |
| 8974 | /* TODO: security register */ |
| 8975 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8976 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8977 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 8978 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8979 | .voltage = {1650, 2000}, |
| 8980 | }, |
| 8981 | |
| 8982 | { |
| 8983 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8984 | .name = "MX25U3235E/F", |
| 8985 | .bustype = BUS_SPI, |
| 8986 | .manufacture_id = MACRONIX_ID, |
| 8987 | .model_id = MACRONIX_MX25U3235E, |
| 8988 | .total_size = 4096, |
| 8989 | .page_size = 256, |
| 8990 | /* F model supports SFDP */ |
| 8991 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8992 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 8993 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 8994 | .tested = TEST_OK_PREW, |
| 8995 | .probe = probe_spi_rdid, |
| 8996 | .probe_timing = TIMING_ZERO, |
| 8997 | .block_erasers = |
| 8998 | { |
| 8999 | { |
| 9000 | .eraseblocks = { {4 * 1024, 1024} }, |
| 9001 | .block_erase = spi_block_erase_20, |
| 9002 | }, { |
| 9003 | .eraseblocks = { {32 * 1024, 128} }, |
| 9004 | .block_erase = spi_block_erase_52, |
| 9005 | }, { |
| 9006 | .eraseblocks = { {64 * 1024, 64} }, |
| 9007 | .block_erase = spi_block_erase_d8, |
| 9008 | }, { |
| 9009 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9010 | .block_erase = spi_block_erase_60, |
| 9011 | }, { |
| 9012 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9013 | .block_erase = spi_block_erase_c7, |
| 9014 | } |
| 9015 | }, |
| 9016 | /* TODO: security register */ |
| 9017 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9018 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9019 | .write = spi_chip_write_256, |
| 9020 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9021 | .voltage = {1650, 2000}, |
| 9022 | }, |
| 9023 | |
| 9024 | { |
| 9025 | .vendor = "Macronix", |
Daniel Thompson | cadd420 | 2018-06-04 13:52:22 +0100 | [diff] [blame] | 9026 | .name = "MX25U51245G", |
| 9027 | .bustype = BUS_SPI, |
| 9028 | .manufacture_id = MACRONIX_ID, |
| 9029 | .model_id = MACRONIX_MX25U51245G, |
| 9030 | .total_size = 65536, |
| 9031 | .page_size = 256, |
| 9032 | /* OTP: 512B factory programmed and 512B customer programmed; enter 0xB1, exit 0xC1 */ |
| 9033 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA, |
| 9034 | .tested = TEST_OK_PREW, |
| 9035 | .probe = probe_spi_rdid, |
| 9036 | .probe_timing = TIMING_ZERO, |
| 9037 | .block_erasers = |
| 9038 | { |
| 9039 | { |
| 9040 | .eraseblocks = { {4 * 1024, 16384} }, |
| 9041 | .block_erase = spi_block_erase_21, |
| 9042 | }, { |
| 9043 | .eraseblocks = { {4 * 1024, 16384} }, |
| 9044 | .block_erase = spi_block_erase_20, |
| 9045 | }, { |
| 9046 | .eraseblocks = { {32 * 1024, 2048} }, |
| 9047 | .block_erase = spi_block_erase_5c, |
| 9048 | }, { |
| 9049 | .eraseblocks = { {32 * 1024, 2048} }, |
| 9050 | .block_erase = spi_block_erase_52, |
| 9051 | }, { |
| 9052 | .eraseblocks = { {64 * 1024, 1024} }, |
| 9053 | .block_erase = spi_block_erase_dc, |
| 9054 | }, { |
| 9055 | .eraseblocks = { {64 * 1024, 1024} }, |
| 9056 | .block_erase = spi_block_erase_d8, |
| 9057 | }, { |
| 9058 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 9059 | .block_erase = spi_block_erase_60, |
| 9060 | }, { |
| 9061 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 9062 | .block_erase = spi_block_erase_c7, |
| 9063 | } |
| 9064 | }, |
| 9065 | /* TODO: security register */ |
| 9066 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9067 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9068 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 9069 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9070 | .voltage = {1650, 2000}, |
| 9071 | }, |
| 9072 | |
| 9073 | { |
| 9074 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9075 | .name = "MX25U6435E/F", |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 9076 | .bustype = BUS_SPI, |
| 9077 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9078 | .model_id = MACRONIX_MX25U6435E, |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 9079 | .total_size = 8192, |
| 9080 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9081 | /* F model supports SFDP */ |
| 9082 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 9083 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 9084 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 9085 | .tested = TEST_OK_PREW, |
| 9086 | .probe = probe_spi_rdid, |
| 9087 | .probe_timing = TIMING_ZERO, |
| 9088 | .block_erasers = |
| 9089 | { |
| 9090 | { |
| 9091 | .eraseblocks = { {4 * 1024, 2048} }, |
| 9092 | .block_erase = spi_block_erase_20, |
| 9093 | }, { |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 9094 | .eraseblocks = { {32 * 1024, 256} }, |
| 9095 | .block_erase = spi_block_erase_52, |
| 9096 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9097 | .eraseblocks = { {64 * 1024, 128} }, |
| 9098 | .block_erase = spi_block_erase_d8, |
| 9099 | }, { |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 9100 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9101 | .block_erase = spi_block_erase_60, |
| 9102 | }, { |
| 9103 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9104 | .block_erase = spi_block_erase_c7, |
| 9105 | } |
| 9106 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9107 | /* TODO: security register */ |
Nathan Rennie-Waldock | 5a7f942 | 2018-08-10 15:35:23 +0100 | [diff] [blame] | 9108 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9109 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9110 | .write = spi_chip_write_256, |
| 9111 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9112 | .voltage = {1650, 2000}, |
| 9113 | }, |
| 9114 | |
| 9115 | { |
| 9116 | .vendor = "Macronix", |
| 9117 | .name = "MX25U8032E", |
| 9118 | .bustype = BUS_SPI, |
| 9119 | .manufacture_id = MACRONIX_ID, |
| 9120 | .model_id = MACRONIX_MX25U8032E, |
| 9121 | .total_size = 1024, |
| 9122 | .page_size = 256, |
| 9123 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 9124 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9125 | .tested = TEST_OK_PREW, |
| 9126 | .probe = probe_spi_rdid, |
| 9127 | .probe_timing = TIMING_ZERO, |
| 9128 | .block_erasers = |
| 9129 | { |
| 9130 | { |
| 9131 | .eraseblocks = { {4 * 1024, 256} }, |
| 9132 | .block_erase = spi_block_erase_20, |
| 9133 | }, { |
| 9134 | .eraseblocks = { {32 * 1024, 32} }, |
| 9135 | .block_erase = spi_block_erase_52, |
| 9136 | }, { |
| 9137 | .eraseblocks = { {64 * 1024, 16} }, |
| 9138 | .block_erase = spi_block_erase_d8, |
| 9139 | }, { |
| 9140 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9141 | .block_erase = spi_block_erase_60, |
| 9142 | }, { |
| 9143 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9144 | .block_erase = spi_block_erase_c7, |
| 9145 | } |
| 9146 | }, |
| 9147 | /* TODO: security register */ |
| 9148 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9149 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9150 | .write = spi_chip_write_256, |
| 9151 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9152 | .voltage = {1650, 2000}, |
Nathan Rennie-Waldock | 5a7f942 | 2018-08-10 15:35:23 +0100 | [diff] [blame] | 9153 | }, |
| 9154 | |
| 9155 | { |
| 9156 | .vendor = "Macronix", |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9157 | .name = "MX29F001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9158 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9159 | .manufacture_id = MACRONIX_ID, |
| 9160 | .model_id = MACRONIX_MX29F001B, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9161 | .total_size = 128, |
| 9162 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9163 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9164 | .tested = TEST_UNTESTED, |
| 9165 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 9166 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9167 | .block_erasers = |
| 9168 | { |
| 9169 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 9170 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9171 | {8 * 1024, 1}, |
| 9172 | {4 * 1024, 2}, |
| 9173 | {8 * 1024, 2}, |
| 9174 | {32 * 1024, 1}, |
| 9175 | {64 * 1024, 1}, |
| 9176 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9177 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9178 | }, { |
| 9179 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9180 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9181 | } |
| 9182 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 9183 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9184 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9185 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9186 | }, |
| 9187 | |
| 9188 | { |
| 9189 | .vendor = "Macronix", |
| 9190 | .name = "MX29F001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9191 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9192 | .manufacture_id = MACRONIX_ID, |
| 9193 | .model_id = MACRONIX_MX29F001T, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9194 | .total_size = 128, |
| 9195 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9196 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stefan Tauner | 74c6ec6 | 2011-05-18 01:31:46 +0000 | [diff] [blame] | 9197 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9198 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 9199 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9200 | .block_erasers = |
| 9201 | { |
| 9202 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 9203 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9204 | {64 * 1024, 1}, |
| 9205 | {32 * 1024, 1}, |
| 9206 | {8 * 1024, 2}, |
| 9207 | {4 * 1024, 2}, |
| 9208 | {8 * 1024, 1}, |
| 9209 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9210 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9211 | }, { |
| 9212 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9213 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9214 | } |
| 9215 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 9216 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9217 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9218 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9219 | }, |
| 9220 | |
| 9221 | { |
| 9222 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 9223 | .name = "MX29F002(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9224 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9225 | .manufacture_id = MACRONIX_ID, |
| 9226 | .model_id = MACRONIX_MX29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9227 | .total_size = 256, |
| 9228 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9229 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9230 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9231 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 9232 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9233 | .block_erasers = |
| 9234 | { |
| 9235 | { |
| 9236 | .eraseblocks = { |
| 9237 | {16 * 1024, 1}, |
| 9238 | {8 * 1024, 2}, |
| 9239 | {32 * 1024, 1}, |
| 9240 | {64 * 1024, 3}, |
| 9241 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9242 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9243 | }, { |
| 9244 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9245 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9246 | }, |
| 9247 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 9248 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9249 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9250 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9251 | }, |
| 9252 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9253 | { |
| 9254 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 9255 | .name = "MX29F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9256 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9257 | .manufacture_id = MACRONIX_ID, |
| 9258 | .model_id = MACRONIX_MX29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9259 | .total_size = 256, |
| 9260 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9261 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 9262 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9263 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 9264 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9265 | .block_erasers = |
| 9266 | { |
| 9267 | { |
| 9268 | .eraseblocks = { |
| 9269 | {64 * 1024, 3}, |
| 9270 | {32 * 1024, 1}, |
| 9271 | {8 * 1024, 2}, |
| 9272 | {16 * 1024, 1}, |
| 9273 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9274 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9275 | }, { |
| 9276 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9277 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9278 | }, |
| 9279 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 9280 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9281 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9282 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9283 | }, |
| 9284 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9285 | { |
| 9286 | .vendor = "Macronix", |
Daniele Forsi | 6a18a93 | 2014-07-13 14:53:45 +0000 | [diff] [blame] | 9287 | .name = "MX29F022(N)B", |
| 9288 | .bustype = BUS_PARALLEL, |
| 9289 | .manufacture_id = MACRONIX_ID, |
| 9290 | .model_id = MACRONIX_MX29F022B, |
| 9291 | .total_size = 256, |
| 9292 | .page_size = 0, /* unused */ |
| 9293 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9294 | .tested = TEST_UNTESTED, |
| 9295 | .probe = probe_jedec, |
| 9296 | .probe_timing = TIMING_ZERO, |
| 9297 | .block_erasers = |
| 9298 | { |
| 9299 | { |
| 9300 | .eraseblocks = { |
| 9301 | {16 * 1024, 1}, |
| 9302 | {8 * 1024, 2}, |
| 9303 | {32 * 1024, 1}, |
| 9304 | {64 * 1024, 3}, |
| 9305 | }, |
| 9306 | .block_erase = erase_sector_jedec, |
| 9307 | }, { |
| 9308 | .eraseblocks = { {256 * 1024, 1} }, |
| 9309 | .block_erase = erase_chip_block_jedec, |
| 9310 | } |
| 9311 | }, |
| 9312 | .write = write_jedec_1, |
| 9313 | .read = read_memmapped, |
| 9314 | .voltage = {4500, 5500}, |
| 9315 | }, |
| 9316 | |
| 9317 | { |
| 9318 | .vendor = "Macronix", |
| 9319 | .name = "MX29F022(N)T", |
| 9320 | .bustype = BUS_PARALLEL, |
| 9321 | .manufacture_id = MACRONIX_ID, |
| 9322 | .model_id = MACRONIX_MX29F022T, |
| 9323 | .total_size = 256, |
| 9324 | .page_size = 0, /* unused */ |
| 9325 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9326 | .tested = TEST_OK_PREW, |
| 9327 | .probe = probe_jedec, |
| 9328 | .probe_timing = TIMING_ZERO, |
| 9329 | .block_erasers = |
| 9330 | { |
| 9331 | { |
| 9332 | .eraseblocks = { |
| 9333 | {64 * 1024, 3}, |
| 9334 | {32 * 1024, 1}, |
| 9335 | {8 * 1024, 2}, |
| 9336 | {16 * 1024, 1}, |
| 9337 | }, |
| 9338 | .block_erase = erase_sector_jedec, |
| 9339 | }, { |
| 9340 | .eraseblocks = { {256 * 1024, 1} }, |
| 9341 | .block_erase = erase_chip_block_jedec, |
| 9342 | } |
| 9343 | }, |
| 9344 | .write = write_jedec_1, |
| 9345 | .read = read_memmapped, |
| 9346 | .voltage = {4500, 5500}, |
| 9347 | }, |
| 9348 | |
| 9349 | { |
| 9350 | .vendor = "Macronix", |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 9351 | .name = "MX29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9352 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 9353 | .manufacture_id = MACRONIX_ID, |
| 9354 | .model_id = MACRONIX_MX29F040, |
| 9355 | .total_size = 512, |
| 9356 | .page_size = 64 * 1024, |
| 9357 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9358 | .tested = TEST_UNTESTED, |
| 9359 | .probe = probe_jedec, |
| 9360 | .probe_timing = TIMING_ZERO, |
| 9361 | .block_erasers = |
| 9362 | { |
| 9363 | { |
| 9364 | .eraseblocks = { {64 * 1024, 8} }, |
| 9365 | .block_erase = erase_sector_jedec, |
| 9366 | }, { |
| 9367 | .eraseblocks = { {512 * 1024, 1} }, |
| 9368 | .block_erase = erase_chip_block_jedec, |
| 9369 | }, |
| 9370 | }, |
| 9371 | .write = write_jedec_1, |
| 9372 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 9373 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 9374 | }, |
| 9375 | |
| 9376 | { |
| 9377 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9378 | .name = "MX29GL128F", |
| 9379 | .bustype = BUS_PARALLEL, |
| 9380 | .manufacture_id = MACRONIX_ID, |
| 9381 | .model_id = MACRONIX_MX29GL128F, |
| 9382 | .total_size = 16384, |
| 9383 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9384 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9385 | .tested = TEST_UNTESTED, |
| 9386 | .probe = probe_jedec_29gl, |
| 9387 | .probe_timing = TIMING_ZERO, |
| 9388 | .block_erasers = |
| 9389 | { |
| 9390 | { |
| 9391 | .eraseblocks = { {128 * 1024, 128} }, |
| 9392 | .block_erase = erase_sector_jedec, |
| 9393 | }, { |
| 9394 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 9395 | .block_erase = erase_chip_block_jedec, |
| 9396 | }, |
| 9397 | }, |
| 9398 | .write = write_jedec_1, |
| 9399 | .read = read_memmapped, |
| 9400 | .voltage = {2700, 3600}, |
| 9401 | }, |
| 9402 | |
| 9403 | { |
| 9404 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 9405 | .name = "MX29GL320EB", |
| 9406 | .bustype = BUS_PARALLEL, |
| 9407 | .manufacture_id = MACRONIX_ID, |
| 9408 | .model_id = MACRONIX_MX29GL320EB, |
| 9409 | .total_size = 4096, |
| 9410 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9411 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9412 | .tested = TEST_UNTESTED, |
| 9413 | .probe = probe_jedec_29gl, |
| 9414 | .probe_timing = TIMING_ZERO, |
| 9415 | .block_erasers = |
| 9416 | { |
| 9417 | { |
| 9418 | .eraseblocks = { |
| 9419 | {8 * 1024, 8}, |
| 9420 | {64 * 1024, 63}, |
| 9421 | }, |
| 9422 | .block_erase = erase_sector_jedec, |
| 9423 | }, { |
| 9424 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9425 | .block_erase = erase_chip_block_jedec, |
| 9426 | }, |
| 9427 | }, |
| 9428 | .write = write_jedec_1, |
| 9429 | .read = read_memmapped, |
| 9430 | .voltage = {2700, 3600}, |
| 9431 | }, |
| 9432 | |
| 9433 | { |
| 9434 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9435 | .name = "MX29GL320EH/L", |
| 9436 | .bustype = BUS_PARALLEL, |
| 9437 | .manufacture_id = MACRONIX_ID, |
| 9438 | .model_id = MACRONIX_MX29GL320EHL, |
| 9439 | .total_size = 4096, |
| 9440 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9441 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9442 | .tested = TEST_UNTESTED, |
| 9443 | .probe = probe_jedec_29gl, |
| 9444 | .probe_timing = TIMING_ZERO, |
| 9445 | .block_erasers = |
| 9446 | { |
| 9447 | { |
| 9448 | .eraseblocks = { {64 * 1024, 64} }, |
| 9449 | .block_erase = erase_sector_jedec, |
| 9450 | }, { |
| 9451 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9452 | .block_erase = erase_chip_block_jedec, |
| 9453 | }, |
| 9454 | }, |
| 9455 | .write = write_jedec_1, |
| 9456 | .read = read_memmapped, |
| 9457 | .voltage = {2700, 3600}, |
| 9458 | }, |
| 9459 | |
| 9460 | { |
| 9461 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 9462 | .name = "MX29GL320ET", |
| 9463 | .bustype = BUS_PARALLEL, |
| 9464 | .manufacture_id = MACRONIX_ID, |
| 9465 | .model_id = MACRONIX_MX29GL320ET, |
| 9466 | .total_size = 4096, |
| 9467 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9468 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9469 | .tested = TEST_UNTESTED, |
| 9470 | .probe = probe_jedec_29gl, |
| 9471 | .probe_timing = TIMING_ZERO, |
| 9472 | .block_erasers = |
| 9473 | { |
| 9474 | { |
| 9475 | .eraseblocks = { |
| 9476 | {64 * 1024, 63}, |
| 9477 | {8 * 1024, 8}, |
| 9478 | }, |
| 9479 | .block_erase = erase_sector_jedec, |
| 9480 | }, { |
| 9481 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9482 | .block_erase = erase_chip_block_jedec, |
| 9483 | }, |
| 9484 | }, |
| 9485 | .write = write_jedec_1, |
| 9486 | .read = read_memmapped, |
| 9487 | .voltage = {2700, 3600}, |
| 9488 | }, |
| 9489 | |
| 9490 | { |
| 9491 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 9492 | .name = "MX29GL640EB", |
| 9493 | .bustype = BUS_PARALLEL, |
| 9494 | .manufacture_id = MACRONIX_ID, |
| 9495 | .model_id = MACRONIX_MX29GL640EB, |
| 9496 | .total_size = 8192, |
| 9497 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9498 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9499 | .tested = TEST_UNTESTED, |
| 9500 | .probe = probe_jedec_29gl, |
| 9501 | .probe_timing = TIMING_ZERO, |
| 9502 | .block_erasers = |
| 9503 | { |
| 9504 | { |
| 9505 | .eraseblocks = { |
| 9506 | {8 * 1024, 8}, |
| 9507 | {64 * 1024, 127}, |
| 9508 | }, |
| 9509 | .block_erase = erase_sector_jedec, |
| 9510 | }, { |
| 9511 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9512 | .block_erase = erase_chip_block_jedec, |
| 9513 | }, |
| 9514 | }, |
| 9515 | .write = write_jedec_1, |
| 9516 | .read = read_memmapped, |
| 9517 | .voltage = {2700, 3600}, |
| 9518 | }, |
| 9519 | |
| 9520 | { |
| 9521 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9522 | .name = "MX29GL640EH/L", |
| 9523 | .bustype = BUS_PARALLEL, |
| 9524 | .manufacture_id = MACRONIX_ID, |
| 9525 | .model_id = MACRONIX_MX29GL640EHL, |
| 9526 | .total_size = 8192, |
| 9527 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9528 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9529 | .tested = TEST_UNTESTED, |
| 9530 | .probe = probe_jedec_29gl, |
| 9531 | .probe_timing = TIMING_ZERO, |
| 9532 | .block_erasers = |
| 9533 | { |
| 9534 | { |
| 9535 | .eraseblocks = { {64 * 1024, 128} }, |
| 9536 | .block_erase = erase_sector_jedec, |
| 9537 | }, { |
| 9538 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9539 | .block_erase = erase_chip_block_jedec, |
| 9540 | }, |
| 9541 | }, |
| 9542 | .write = write_jedec_1, |
| 9543 | .read = read_memmapped, |
| 9544 | .voltage = {2700, 3600}, |
| 9545 | }, |
| 9546 | |
| 9547 | { |
| 9548 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 9549 | .name = "MX29GL640ET", |
| 9550 | .bustype = BUS_PARALLEL, |
| 9551 | .manufacture_id = MACRONIX_ID, |
| 9552 | .model_id = MACRONIX_MX29GL640ET, |
| 9553 | .total_size = 8192, |
| 9554 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9555 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9556 | .tested = TEST_UNTESTED, |
| 9557 | .probe = probe_jedec_29gl, |
| 9558 | .probe_timing = TIMING_ZERO, |
| 9559 | .block_erasers = |
| 9560 | { |
| 9561 | { |
| 9562 | .eraseblocks = { |
| 9563 | {64 * 1024, 127}, |
| 9564 | {8 * 1024, 8}, |
| 9565 | }, |
| 9566 | .block_erase = erase_sector_jedec, |
| 9567 | }, { |
| 9568 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9569 | .block_erase = erase_chip_block_jedec, |
| 9570 | }, |
| 9571 | }, |
| 9572 | .write = write_jedec_1, |
| 9573 | .read = read_memmapped, |
| 9574 | .voltage = {2700, 3600}, |
| 9575 | }, |
| 9576 | |
| 9577 | { |
| 9578 | .vendor = "Macronix", |
Carl-Daniel Hailfinger | 350a0c3 | 2009-07-24 13:59:27 +0000 | [diff] [blame] | 9579 | .name = "MX29LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9580 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9581 | .manufacture_id = MACRONIX_ID, |
| 9582 | .model_id = MACRONIX_MX29LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9583 | .total_size = 512, |
| 9584 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9585 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9586 | .tested = TEST_UNTESTED, |
| 9587 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 9588 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9589 | .block_erasers = |
| 9590 | { |
| 9591 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 9592 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9593 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9594 | }, { |
| 9595 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9596 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9597 | }, |
| 9598 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 9599 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9600 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9601 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 7de8639 | 2008-12-10 10:32:05 +0000 | [diff] [blame] | 9602 | }, |
| 9603 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9604 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9605 | .vendor = "Macronix", |
Hemanth Guruva Reddy | a136d42 | 2019-07-11 11:08:27 +0200 | [diff] [blame] | 9606 | .name = "MX66L51235F/MX25L51245G", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9607 | .bustype = BUS_SPI, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9608 | .manufacture_id = MACRONIX_ID, |
| 9609 | .model_id = MACRONIX_MX66L51235F, |
| 9610 | .total_size = 65536, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9611 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9612 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 9613 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9614 | .tested = TEST_OK_PREW, |
| 9615 | .probe = probe_spi_rdid, |
| 9616 | .probe_timing = TIMING_ZERO, |
| 9617 | .block_erasers = |
| 9618 | { |
| 9619 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9620 | .eraseblocks = { {4 * 1024, 16384} }, |
| 9621 | .block_erase = spi_block_erase_21, |
| 9622 | }, { |
| 9623 | .eraseblocks = { {4 * 1024, 16384} }, |
| 9624 | .block_erase = spi_block_erase_20, |
| 9625 | }, { |
| 9626 | .eraseblocks = { {32 * 1024, 2048} }, |
| 9627 | .block_erase = spi_block_erase_5c, |
| 9628 | }, { |
| 9629 | .eraseblocks = { {32 * 1024, 2048} }, |
| 9630 | .block_erase = spi_block_erase_52, |
| 9631 | }, { |
| 9632 | .eraseblocks = { {64 * 1024, 1024} }, |
| 9633 | .block_erase = spi_block_erase_dc, |
| 9634 | }, { |
| 9635 | .eraseblocks = { {64 * 1024, 1024} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9636 | .block_erase = spi_block_erase_d8, |
| 9637 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9638 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 9639 | .block_erase = spi_block_erase_60, |
| 9640 | }, { |
| 9641 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9642 | .block_erase = spi_block_erase_c7, |
| 9643 | } |
| 9644 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9645 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
| 9646 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9647 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9648 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9649 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9650 | .voltage = {2700, 3600}, |
| 9651 | }, |
| 9652 | |
| 9653 | /* The ST M25P05 is a bit of a problem. It has the same ID as the |
| 9654 | * ST M25P05-A in RES mode, but supports only 128 byte writes instead |
| 9655 | * of 256 byte writes. We rely heavily on the fact that probe_spi_res1 |
| 9656 | * only is successful if RDID does not work. |
| 9657 | */ |
| 9658 | { |
| 9659 | .vendor = "Micron/Numonyx/ST", |
| 9660 | .name = "M25P05", |
| 9661 | .bustype = BUS_SPI, |
| 9662 | .manufacture_id = 0, /* Not used. */ |
| 9663 | .model_id = ST_M25P05_RES, |
| 9664 | .total_size = 64, |
| 9665 | .page_size = 256, |
| 9666 | .feature_bits = FEATURE_WRSR_WREN, |
| 9667 | .tested = TEST_UNTESTED, |
| 9668 | .probe = probe_spi_res1, |
| 9669 | .probe_timing = TIMING_ZERO, |
| 9670 | .block_erasers = |
| 9671 | { |
| 9672 | { |
| 9673 | .eraseblocks = { {32 * 1024, 2} }, |
| 9674 | .block_erase = spi_block_erase_d8, |
| 9675 | }, { |
| 9676 | .eraseblocks = { {64 * 1024, 1} }, |
| 9677 | .block_erase = spi_block_erase_c7, |
| 9678 | } |
| 9679 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9680 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9681 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9682 | .write = spi_chip_write_1, /* 128 */ |
| 9683 | .read = spi_chip_read, |
| 9684 | .voltage = {2700, 3600}, |
| 9685 | }, |
| 9686 | |
| 9687 | { |
| 9688 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9689 | .name = "M25P05-A", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9690 | .bustype = BUS_SPI, |
| 9691 | .manufacture_id = ST_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9692 | .model_id = ST_M25P05A, |
| 9693 | .total_size = 64, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9694 | .page_size = 256, |
| 9695 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 9696 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9697 | .probe = probe_spi_rdid, |
| 9698 | .probe_timing = TIMING_ZERO, |
| 9699 | .block_erasers = |
| 9700 | { |
| 9701 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9702 | .eraseblocks = { {32 * 1024, 2} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9703 | .block_erase = spi_block_erase_d8, |
| 9704 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9705 | .eraseblocks = { {64 * 1024, 1} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9706 | .block_erase = spi_block_erase_c7, |
| 9707 | } |
| 9708 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9709 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9710 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9711 | .write = spi_chip_write_256, |
| 9712 | .read = spi_chip_read, |
| 9713 | .voltage = {2700, 3600}, |
| 9714 | }, |
| 9715 | |
| 9716 | /* The ST M25P10 has the same problem as the M25P05. */ |
| 9717 | { |
| 9718 | .vendor = "Micron/Numonyx/ST", |
| 9719 | .name = "M25P10", |
| 9720 | .bustype = BUS_SPI, |
| 9721 | .manufacture_id = 0, /* Not used. */ |
| 9722 | .model_id = ST_M25P10_RES, |
| 9723 | .total_size = 128, |
| 9724 | .page_size = 256, |
| 9725 | .feature_bits = FEATURE_WRSR_WREN, |
| 9726 | .tested = TEST_UNTESTED, |
| 9727 | .probe = probe_spi_res1, |
| 9728 | .probe_timing = TIMING_ZERO, |
| 9729 | .block_erasers = |
| 9730 | { |
| 9731 | { |
| 9732 | .eraseblocks = { {32 * 1024, 4} }, |
| 9733 | .block_erase = spi_block_erase_d8, |
| 9734 | }, { |
| 9735 | .eraseblocks = { {128 * 1024, 1} }, |
| 9736 | .block_erase = spi_block_erase_c7, |
| 9737 | } |
| 9738 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9739 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9740 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9741 | .write = spi_chip_write_1, /* 128 */ |
| 9742 | .read = spi_chip_read, |
| 9743 | .voltage = {2700, 3600}, |
| 9744 | }, |
| 9745 | |
| 9746 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9747 | .vendor = "Micron/Numonyx/ST", |
| 9748 | .name = "M25P10-A", |
| 9749 | .bustype = BUS_SPI, |
| 9750 | .manufacture_id = ST_ID, |
| 9751 | .model_id = ST_M25P10A, |
| 9752 | .total_size = 128, |
| 9753 | .page_size = 256, |
| 9754 | .feature_bits = FEATURE_WRSR_WREN, |
| 9755 | .tested = TEST_OK_PREW, |
| 9756 | .probe = probe_spi_rdid, |
| 9757 | .probe_timing = TIMING_ZERO, |
| 9758 | .block_erasers = |
| 9759 | { |
| 9760 | { |
| 9761 | .eraseblocks = { {32 * 1024, 4} }, |
| 9762 | .block_erase = spi_block_erase_d8, |
| 9763 | }, { |
| 9764 | .eraseblocks = { {128 * 1024, 1} }, |
| 9765 | .block_erase = spi_block_erase_c7, |
| 9766 | } |
| 9767 | }, |
| 9768 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
| 9769 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9770 | .write = spi_chip_write_256, |
| 9771 | .read = spi_chip_read, |
| 9772 | .voltage = {2700, 3600}, |
| 9773 | }, |
| 9774 | |
| 9775 | { |
| 9776 | .vendor = "Micron/Numonyx/ST", |
| 9777 | .name = "M25P128", |
| 9778 | .bustype = BUS_SPI, |
| 9779 | .manufacture_id = ST_ID, |
| 9780 | .model_id = ST_M25P128, |
| 9781 | .total_size = 16384, |
| 9782 | .page_size = 256, |
| 9783 | .feature_bits = FEATURE_WRSR_WREN, |
| 9784 | .tested = TEST_OK_PREW, |
| 9785 | .probe = probe_spi_rdid, |
| 9786 | .probe_timing = TIMING_ZERO, |
| 9787 | .block_erasers = |
| 9788 | { |
| 9789 | { |
| 9790 | .eraseblocks = { {256 * 1024, 64} }, |
| 9791 | .block_erase = spi_block_erase_d8, |
| 9792 | }, { |
| 9793 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 9794 | .block_erase = spi_block_erase_c7, |
| 9795 | } |
| 9796 | }, |
| 9797 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
| 9798 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9799 | .write = spi_chip_write_256, |
| 9800 | .read = spi_chip_read, |
| 9801 | .voltage = {2700, 3600}, |
| 9802 | }, |
| 9803 | |
| 9804 | { |
| 9805 | .vendor = "Micron/Numonyx/ST", |
| 9806 | .name = "M25P16", |
| 9807 | .bustype = BUS_SPI, |
| 9808 | .manufacture_id = ST_ID, |
| 9809 | .model_id = ST_M25P16, |
| 9810 | .total_size = 2048, |
| 9811 | .page_size = 256, |
| 9812 | .feature_bits = FEATURE_WRSR_WREN, |
| 9813 | .tested = TEST_OK_PREW, |
| 9814 | .probe = probe_spi_rdid, |
| 9815 | .probe_timing = TIMING_ZERO, |
| 9816 | .block_erasers = |
| 9817 | { |
| 9818 | { |
| 9819 | .eraseblocks = { {64 * 1024, 32} }, |
| 9820 | .block_erase = spi_block_erase_d8, |
| 9821 | }, { |
| 9822 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9823 | .block_erase = spi_block_erase_c7, |
| 9824 | } |
| 9825 | }, |
| 9826 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
| 9827 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9828 | .write = spi_chip_write_256, |
| 9829 | .read = spi_chip_read, |
| 9830 | .voltage = {2700, 3600}, |
| 9831 | }, |
| 9832 | |
| 9833 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9834 | .vendor = "Micron/Numonyx/ST", /* Numonyx */ |
| 9835 | .name = "M25P20", |
| 9836 | .bustype = BUS_SPI, |
| 9837 | .manufacture_id = ST_ID, |
| 9838 | .model_id = ST_M25P20, |
| 9839 | .total_size = 256, |
| 9840 | .page_size = 256, |
| 9841 | .feature_bits = FEATURE_WRSR_WREN, |
| 9842 | .tested = TEST_UNTESTED, |
| 9843 | .probe = probe_spi_rdid, |
| 9844 | .probe_timing = TIMING_ZERO, |
| 9845 | .block_erasers = |
| 9846 | { |
| 9847 | { |
| 9848 | .eraseblocks = { {64 * 1024, 4} }, |
| 9849 | .block_erase = spi_block_erase_d8, |
| 9850 | }, { |
| 9851 | .eraseblocks = { {256 * 1024, 1} }, |
| 9852 | .block_erase = spi_block_erase_c7, |
| 9853 | } |
| 9854 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9855 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9856 | .unlock = spi_disable_blockprotect, |
| 9857 | .write = spi_chip_write_256, |
| 9858 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9859 | .voltage = {2700, 3600}, |
| 9860 | }, |
| 9861 | |
| 9862 | { |
| 9863 | .vendor = "Micron/Numonyx/ST", |
| 9864 | .name = "M25P20-old", |
| 9865 | .bustype = BUS_SPI, |
| 9866 | .manufacture_id = 0, /* Not used. */ |
| 9867 | .model_id = ST_M25P20_RES, |
| 9868 | .total_size = 256, |
| 9869 | .page_size = 256, |
| 9870 | .feature_bits = FEATURE_WRSR_WREN, |
| 9871 | .tested = TEST_OK_PREW, |
| 9872 | .probe = probe_spi_res1, |
| 9873 | .probe_timing = TIMING_ZERO, |
| 9874 | .block_erasers = |
| 9875 | { |
| 9876 | { |
| 9877 | .eraseblocks = { {64 * 1024, 4} }, |
| 9878 | .block_erase = spi_block_erase_d8, |
| 9879 | }, { |
| 9880 | .eraseblocks = { {256 * 1024, 1} }, |
| 9881 | .block_erase = spi_block_erase_c7, |
| 9882 | } |
| 9883 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9884 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9885 | .unlock = spi_disable_blockprotect, |
| 9886 | .write = spi_chip_write_256, |
| 9887 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9888 | .voltage = {2700, 3600}, |
| 9889 | }, |
| 9890 | |
| 9891 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9892 | .vendor = "Micron/Numonyx/ST", |
| 9893 | .name = "M25P32", |
| 9894 | .bustype = BUS_SPI, |
| 9895 | .manufacture_id = ST_ID, |
| 9896 | .model_id = ST_M25P32, |
| 9897 | .total_size = 4096, |
| 9898 | .page_size = 256, |
| 9899 | .feature_bits = FEATURE_WRSR_WREN, |
| 9900 | .tested = TEST_OK_PREW, |
| 9901 | .probe = probe_spi_rdid, |
| 9902 | .probe_timing = TIMING_ZERO, |
| 9903 | .block_erasers = |
| 9904 | { |
| 9905 | { |
| 9906 | .eraseblocks = { {64 * 1024, 64} }, |
| 9907 | .block_erase = spi_block_erase_d8, |
| 9908 | }, { |
| 9909 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9910 | .block_erase = spi_block_erase_c7, |
| 9911 | } |
| 9912 | }, |
| 9913 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
| 9914 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9915 | .write = spi_chip_write_256, |
| 9916 | .read = spi_chip_read, |
| 9917 | .voltage = {2700, 3600}, |
| 9918 | }, |
| 9919 | |
| 9920 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9921 | .vendor = "Micron/Numonyx/ST", /* Numonyx */ |
| 9922 | .name = "M25P40", |
| 9923 | .bustype = BUS_SPI, |
| 9924 | .manufacture_id = ST_ID, |
| 9925 | .model_id = ST_M25P40, |
| 9926 | .total_size = 512, |
| 9927 | .page_size = 256, |
| 9928 | .feature_bits = FEATURE_WRSR_WREN, |
| 9929 | .tested = TEST_OK_PREW, |
| 9930 | .probe = probe_spi_rdid, |
| 9931 | .probe_timing = TIMING_ZERO, |
| 9932 | .block_erasers = |
| 9933 | { |
| 9934 | { |
| 9935 | .eraseblocks = { {64 * 1024, 8} }, |
| 9936 | .block_erase = spi_block_erase_d8, |
| 9937 | }, { |
| 9938 | .eraseblocks = { {512 * 1024, 1} }, |
| 9939 | .block_erase = spi_block_erase_c7, |
| 9940 | } |
| 9941 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9942 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9943 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9944 | .write = spi_chip_write_256, |
| 9945 | .read = spi_chip_read, |
| 9946 | .voltage = {2700, 3600}, |
| 9947 | }, |
| 9948 | |
| 9949 | { |
| 9950 | .vendor = "Micron/Numonyx/ST", |
| 9951 | .name = "M25P40-old", |
| 9952 | .bustype = BUS_SPI, |
| 9953 | .manufacture_id = 0, /* Not used. */ |
| 9954 | .model_id = ST_M25P40_RES, |
| 9955 | .total_size = 512, |
| 9956 | .page_size = 256, |
| 9957 | .feature_bits = FEATURE_WRSR_WREN, |
| 9958 | .tested = TEST_UNTESTED, |
| 9959 | .probe = probe_spi_res1, |
| 9960 | .probe_timing = TIMING_ZERO, |
| 9961 | .block_erasers = |
| 9962 | { |
| 9963 | { |
| 9964 | .eraseblocks = { {64 * 1024, 8} }, |
| 9965 | .block_erase = spi_block_erase_d8, |
| 9966 | }, { |
| 9967 | .eraseblocks = { {512 * 1024, 1} }, |
| 9968 | .block_erase = spi_block_erase_c7, |
| 9969 | } |
| 9970 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9971 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9972 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9973 | .write = spi_chip_write_256, |
| 9974 | .read = spi_chip_read, |
| 9975 | }, |
| 9976 | |
| 9977 | { |
| 9978 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9979 | .name = "M25P64", |
| 9980 | .bustype = BUS_SPI, |
| 9981 | .manufacture_id = ST_ID, |
| 9982 | .model_id = ST_M25P64, |
| 9983 | .total_size = 8192, |
| 9984 | .page_size = 256, |
| 9985 | .feature_bits = FEATURE_WRSR_WREN, |
| 9986 | .tested = TEST_OK_PREW, |
| 9987 | .probe = probe_spi_rdid, |
| 9988 | .probe_timing = TIMING_ZERO, |
| 9989 | .block_erasers = |
| 9990 | { |
| 9991 | { |
| 9992 | .eraseblocks = { {64 * 1024, 128} }, |
| 9993 | .block_erase = spi_block_erase_d8, |
| 9994 | }, { |
| 9995 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9996 | .block_erase = spi_block_erase_c7, |
| 9997 | } |
| 9998 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9999 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10000 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10001 | .write = spi_chip_write_256, |
| 10002 | .read = spi_chip_read, |
| 10003 | .voltage = {2700, 3600}, |
| 10004 | }, |
| 10005 | |
| 10006 | { |
| 10007 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10008 | .name = "M25P80", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10009 | .bustype = BUS_SPI, |
| 10010 | .manufacture_id = ST_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10011 | .model_id = ST_M25P80, |
| 10012 | .total_size = 1024, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10013 | .page_size = 256, |
| 10014 | .feature_bits = FEATURE_WRSR_WREN, |
| 10015 | .tested = TEST_OK_PREW, |
| 10016 | .probe = probe_spi_rdid, |
| 10017 | .probe_timing = TIMING_ZERO, |
| 10018 | .block_erasers = |
| 10019 | { |
| 10020 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10021 | .eraseblocks = { {64 * 1024, 16} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10022 | .block_erase = spi_block_erase_d8, |
| 10023 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10024 | .eraseblocks = { {1024 * 1024, 1} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10025 | .block_erase = spi_block_erase_c7, |
| 10026 | } |
| 10027 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10028 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10029 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10030 | .write = spi_chip_write_256, |
| 10031 | .read = spi_chip_read, |
| 10032 | .voltage = {2700, 3600}, |
| 10033 | }, |
| 10034 | |
| 10035 | { |
| 10036 | .vendor = "Micron/Numonyx/ST", |
| 10037 | .name = "M25PE10", |
| 10038 | .bustype = BUS_SPI, |
| 10039 | .manufacture_id = ST_ID, |
| 10040 | .model_id = ST_M25PE10, |
| 10041 | .total_size = 128, |
| 10042 | .page_size = 256, |
| 10043 | .feature_bits = FEATURE_WRSR_WREN, |
| 10044 | .tested = TEST_UNTESTED, |
| 10045 | .probe = probe_spi_rdid, |
| 10046 | .probe_timing = TIMING_ZERO, |
| 10047 | .block_erasers = |
| 10048 | { |
| 10049 | { |
| 10050 | .eraseblocks = { {4 * 1024, 32} }, |
| 10051 | .block_erase = spi_block_erase_20, |
| 10052 | }, { |
| 10053 | .eraseblocks = { {64 * 1024, 2} }, |
| 10054 | .block_erase = spi_block_erase_d8, |
| 10055 | }, { |
| 10056 | .eraseblocks = { {128 * 1024, 1} }, |
| 10057 | .block_erase = spi_block_erase_c7, |
| 10058 | } |
| 10059 | }, |
| 10060 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 10061 | .unlock = spi_disable_blockprotect, |
| 10062 | .write = spi_chip_write_256, |
| 10063 | .read = spi_chip_read, |
| 10064 | .voltage = {2700, 3600}, |
| 10065 | }, |
| 10066 | |
| 10067 | { |
| 10068 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10069 | .name = "M25PE16", |
| 10070 | .bustype = BUS_SPI, |
| 10071 | .manufacture_id = ST_ID, |
| 10072 | .model_id = ST_M25PE16, |
| 10073 | .total_size = 2048, |
| 10074 | .page_size = 256, |
| 10075 | .feature_bits = FEATURE_WRSR_WREN, |
| 10076 | .tested = TEST_UNTESTED, |
| 10077 | .probe = probe_spi_rdid, |
| 10078 | .probe_timing = TIMING_ZERO, |
| 10079 | .block_erasers = |
| 10080 | { |
| 10081 | { |
| 10082 | .eraseblocks = { {4 * 1024, 512} }, |
| 10083 | .block_erase = spi_block_erase_20, |
| 10084 | }, { |
| 10085 | .eraseblocks = { {64 * 1024, 32} }, |
| 10086 | .block_erase = spi_block_erase_d8, |
| 10087 | }, { |
| 10088 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10089 | .block_erase = spi_block_erase_c7, |
| 10090 | } |
| 10091 | }, |
| 10092 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 10093 | .unlock = spi_disable_blockprotect, |
| 10094 | .write = spi_chip_write_256, |
| 10095 | .read = spi_chip_read, |
| 10096 | .voltage = {2700, 3600}, |
| 10097 | }, |
| 10098 | |
| 10099 | { |
| 10100 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10101 | .name = "M25PE20", |
| 10102 | .bustype = BUS_SPI, |
| 10103 | .manufacture_id = ST_ID, |
| 10104 | .model_id = ST_M25PE20, |
| 10105 | .total_size = 256, |
| 10106 | .page_size = 256, |
| 10107 | .feature_bits = FEATURE_WRSR_WREN, |
| 10108 | .tested = TEST_UNTESTED, |
| 10109 | .probe = probe_spi_rdid, |
| 10110 | .probe_timing = TIMING_ZERO, |
| 10111 | .block_erasers = |
| 10112 | { |
| 10113 | { |
| 10114 | .eraseblocks = { {4 * 1024, 64} }, |
| 10115 | .block_erase = spi_block_erase_20, |
| 10116 | }, { |
| 10117 | .eraseblocks = { {64 * 1024, 4} }, |
| 10118 | .block_erase = spi_block_erase_d8, |
| 10119 | }, { |
| 10120 | .eraseblocks = { {256 * 1024, 1} }, |
| 10121 | .block_erase = spi_block_erase_c7, |
| 10122 | } |
| 10123 | }, |
| 10124 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 10125 | .unlock = spi_disable_blockprotect, |
| 10126 | .write = spi_chip_write_256, |
| 10127 | .read = spi_chip_read, |
| 10128 | .voltage = {2700, 3600}, |
| 10129 | }, |
| 10130 | |
| 10131 | { |
| 10132 | .vendor = "Micron/Numonyx/ST", |
| 10133 | .name = "M25PE40", |
| 10134 | .bustype = BUS_SPI, |
| 10135 | .manufacture_id = ST_ID, |
| 10136 | .model_id = ST_M25PE40, |
| 10137 | .total_size = 512, |
| 10138 | .page_size = 256, |
| 10139 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 10140 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10141 | .probe = probe_spi_rdid, |
| 10142 | .probe_timing = TIMING_ZERO, |
| 10143 | .block_erasers = |
| 10144 | { |
| 10145 | { |
| 10146 | .eraseblocks = { {4 * 1024, 128} }, |
| 10147 | .block_erase = spi_block_erase_20, |
| 10148 | }, { |
| 10149 | .eraseblocks = { {64 * 1024, 8} }, |
| 10150 | .block_erase = spi_block_erase_d8, |
| 10151 | }, { |
| 10152 | .eraseblocks = { {512 * 1024, 1} }, |
| 10153 | .block_erase = spi_block_erase_c7, |
| 10154 | } |
| 10155 | }, |
| 10156 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 10157 | .unlock = spi_disable_blockprotect, |
| 10158 | .write = spi_chip_write_256, |
| 10159 | .read = spi_chip_read, |
| 10160 | .voltage = {2700, 3600}, |
| 10161 | }, |
| 10162 | |
| 10163 | { |
| 10164 | .vendor = "Micron/Numonyx/ST", |
| 10165 | .name = "M25PE80", |
| 10166 | .bustype = BUS_SPI, |
| 10167 | .manufacture_id = ST_ID, |
| 10168 | .model_id = ST_M25PE80, |
| 10169 | .total_size = 1024, |
| 10170 | .page_size = 256, |
| 10171 | .feature_bits = FEATURE_WRSR_WREN, |
| 10172 | .tested = TEST_OK_PREW, |
| 10173 | .probe = probe_spi_rdid, |
| 10174 | .probe_timing = TIMING_ZERO, |
| 10175 | .block_erasers = |
| 10176 | { |
| 10177 | { |
| 10178 | .eraseblocks = { {4 * 1024, 256} }, |
| 10179 | .block_erase = spi_block_erase_20, |
| 10180 | }, { |
| 10181 | .eraseblocks = { {64 * 1024, 16} }, |
| 10182 | .block_erase = spi_block_erase_d8, |
| 10183 | }, { |
| 10184 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10185 | .block_erase = spi_block_erase_c7, |
| 10186 | } |
| 10187 | }, |
| 10188 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 10189 | .unlock = spi_disable_blockprotect, |
| 10190 | .write = spi_chip_write_256, |
| 10191 | .read = spi_chip_read, |
| 10192 | .voltage = {2700, 3600}, |
| 10193 | }, |
| 10194 | |
| 10195 | { |
| 10196 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10197 | .name = "M25PX16", |
| 10198 | .bustype = BUS_SPI, |
| 10199 | .manufacture_id = ST_ID, |
| 10200 | .model_id = ST_M25PX16, |
| 10201 | .total_size = 2048, |
| 10202 | .page_size = 256, |
| 10203 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 10204 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10205 | .tested = TEST_OK_PREW, |
| 10206 | .probe = probe_spi_rdid, |
| 10207 | .probe_timing = TIMING_ZERO, |
| 10208 | .block_erasers = |
| 10209 | { |
| 10210 | { |
| 10211 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 10212 | .block_erase = spi_block_erase_20, |
| 10213 | }, { |
| 10214 | .eraseblocks = { {64 * 1024, 32} }, |
| 10215 | .block_erase = spi_block_erase_d8, |
| 10216 | }, { |
| 10217 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10218 | .block_erase = spi_block_erase_c7, |
| 10219 | } |
| 10220 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10221 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10222 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 10223 | .write = spi_chip_write_256, |
| 10224 | .read = spi_chip_read, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 10225 | .voltage = {2300, 3600}, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10226 | }, |
| 10227 | |
| 10228 | { |
| 10229 | .vendor = "Micron/Numonyx/ST", |
| 10230 | .name = "M25PX32", |
| 10231 | .bustype = BUS_SPI, |
| 10232 | .manufacture_id = ST_ID, |
| 10233 | .model_id = ST_M25PX32, |
| 10234 | .total_size = 4096, |
| 10235 | .page_size = 256, |
| 10236 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 10237 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10238 | .tested = TEST_OK_PRE, |
| 10239 | .probe = probe_spi_rdid, |
| 10240 | .probe_timing = TIMING_ZERO, |
| 10241 | .block_erasers = |
| 10242 | { |
| 10243 | { |
| 10244 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 10245 | .block_erase = spi_block_erase_20, |
| 10246 | }, { |
| 10247 | .eraseblocks = { {64 * 1024, 64} }, |
| 10248 | .block_erase = spi_block_erase_d8, |
| 10249 | }, { |
| 10250 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10251 | .block_erase = spi_block_erase_c7, |
| 10252 | } |
| 10253 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10254 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10255 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 10256 | .write = spi_chip_write_256, |
| 10257 | .read = spi_chip_read, |
| 10258 | .voltage = {2700, 3600}, |
| 10259 | }, |
| 10260 | |
| 10261 | { |
| 10262 | .vendor = "Micron/Numonyx/ST", |
| 10263 | .name = "M25PX64", |
| 10264 | .bustype = BUS_SPI, |
| 10265 | .manufacture_id = ST_ID, |
| 10266 | .model_id = ST_M25PX64, |
| 10267 | .total_size = 8192, |
| 10268 | .page_size = 256, |
| 10269 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 10270 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 10271 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10272 | .probe = probe_spi_rdid, |
| 10273 | .probe_timing = TIMING_ZERO, |
| 10274 | .block_erasers = |
| 10275 | { |
| 10276 | { |
| 10277 | .eraseblocks = { { 4 * 1024, 2048 } }, |
| 10278 | .block_erase = spi_block_erase_20, |
| 10279 | }, { |
| 10280 | .eraseblocks = { {64 * 1024, 128} }, |
| 10281 | .block_erase = spi_block_erase_d8, |
| 10282 | }, { |
| 10283 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10284 | .block_erase = spi_block_erase_c7, |
| 10285 | } |
| 10286 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10287 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10288 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 10289 | .write = spi_chip_write_256, |
| 10290 | .read = spi_chip_read, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 10291 | .voltage = {2700, 3600}, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10292 | }, |
| 10293 | |
| 10294 | { |
| 10295 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10296 | .name = "M25PX80", |
| 10297 | .bustype = BUS_SPI, |
| 10298 | .manufacture_id = ST_ID, |
| 10299 | .model_id = ST_M25PX80, |
| 10300 | .total_size = 1024, |
| 10301 | .page_size = 256, |
| 10302 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10303 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10304 | .tested = TEST_OK_PREW, |
| 10305 | .probe = probe_spi_rdid, |
| 10306 | .probe_timing = TIMING_ZERO, |
| 10307 | .block_erasers = |
| 10308 | { |
| 10309 | { |
| 10310 | .eraseblocks = { { 4 * 1024, 256 } }, |
| 10311 | .block_erase = spi_block_erase_20, |
| 10312 | }, { |
| 10313 | .eraseblocks = { {64 * 1024, 16} }, |
| 10314 | .block_erase = spi_block_erase_d8, |
| 10315 | }, { |
| 10316 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10317 | .block_erase = spi_block_erase_c7, |
| 10318 | } |
| 10319 | }, |
| 10320 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
| 10321 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 10322 | .write = spi_chip_write_256, |
| 10323 | .read = spi_chip_read, |
| 10324 | .voltage = {2700, 3600}, |
| 10325 | }, |
| 10326 | |
| 10327 | { |
| 10328 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10329 | .name = "M45PE10", |
| 10330 | .bustype = BUS_SPI, |
| 10331 | .manufacture_id = ST_ID, |
| 10332 | .model_id = ST_M45PE10, |
| 10333 | .total_size = 128, |
| 10334 | .page_size = 256, |
| 10335 | .tested = TEST_UNTESTED, |
| 10336 | .probe = probe_spi_rdid, |
| 10337 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 10338 | .block_erasers = |
| 10339 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10340 | { |
| 10341 | .eraseblocks = { {256, 512} }, |
| 10342 | .block_erase = spi_block_erase_db, |
| 10343 | }, { |
| 10344 | .eraseblocks = { {64 * 1024, 2} }, |
| 10345 | .block_erase = spi_block_erase_d8, |
| 10346 | } |
| 10347 | }, |
| 10348 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 10349 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 10350 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 10351 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10352 | .voltage = {2700, 3600}, |
| 10353 | }, |
| 10354 | |
| 10355 | { |
| 10356 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10357 | .name = "M45PE16", |
| 10358 | .bustype = BUS_SPI, |
| 10359 | .manufacture_id = ST_ID, |
| 10360 | .model_id = ST_M45PE16, |
| 10361 | .total_size = 2048, |
| 10362 | .page_size = 256, |
| 10363 | .tested = TEST_UNTESTED, |
| 10364 | .probe = probe_spi_rdid, |
| 10365 | .probe_timing = TIMING_ZERO, |
| 10366 | .block_erasers = |
| 10367 | { |
| 10368 | { |
| 10369 | .eraseblocks = { {256, 8192} }, |
| 10370 | .block_erase = spi_block_erase_db, |
| 10371 | }, { |
| 10372 | .eraseblocks = { {64 * 1024, 32} }, |
| 10373 | .block_erase = spi_block_erase_d8, |
| 10374 | } |
| 10375 | }, |
| 10376 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 10377 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 10378 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 10379 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10380 | .voltage = {2700, 3600}, |
| 10381 | }, |
| 10382 | |
| 10383 | { |
| 10384 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10385 | .name = "M45PE20", |
| 10386 | .bustype = BUS_SPI, |
| 10387 | .manufacture_id = ST_ID, |
| 10388 | .model_id = ST_M45PE20, |
| 10389 | .total_size = 256, |
| 10390 | .page_size = 256, |
| 10391 | .tested = TEST_UNTESTED, |
| 10392 | .probe = probe_spi_rdid, |
| 10393 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 10394 | .block_erasers = |
| 10395 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10396 | { |
| 10397 | .eraseblocks = { {256, 1024} }, |
| 10398 | .block_erase = spi_block_erase_db, |
| 10399 | }, { |
| 10400 | .eraseblocks = { {64 * 1024, 4} }, |
| 10401 | .block_erase = spi_block_erase_d8, |
| 10402 | } |
| 10403 | }, |
| 10404 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 10405 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 10406 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 10407 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10408 | .voltage = {2700, 3600}, |
| 10409 | }, |
| 10410 | |
| 10411 | { |
| 10412 | .vendor = "Micron/Numonyx/ST", |
| 10413 | .name = "M45PE40", |
| 10414 | .bustype = BUS_SPI, |
| 10415 | .manufacture_id = ST_ID, |
| 10416 | .model_id = ST_M45PE40, |
| 10417 | .total_size = 512, |
| 10418 | .page_size = 256, |
| 10419 | .tested = TEST_UNTESTED, |
| 10420 | .probe = probe_spi_rdid, |
| 10421 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 10422 | .block_erasers = |
| 10423 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10424 | { |
| 10425 | .eraseblocks = { {256, 2048} }, |
| 10426 | .block_erase = spi_block_erase_db, |
| 10427 | }, { |
| 10428 | .eraseblocks = { {64 * 1024, 8} }, |
| 10429 | .block_erase = spi_block_erase_d8, |
| 10430 | } |
| 10431 | }, |
| 10432 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 10433 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 10434 | .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] | 10435 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10436 | .voltage = {2700, 3600}, |
| 10437 | }, |
| 10438 | |
| 10439 | { |
| 10440 | .vendor = "Micron/Numonyx/ST", |
| 10441 | .name = "M45PE80", |
| 10442 | .bustype = BUS_SPI, |
| 10443 | .manufacture_id = ST_ID, |
| 10444 | .model_id = ST_M45PE80, |
| 10445 | .total_size = 1024, |
| 10446 | .page_size = 256, |
| 10447 | .tested = TEST_UNTESTED, |
| 10448 | .probe = probe_spi_rdid, |
| 10449 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 10450 | .block_erasers = |
| 10451 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10452 | { |
| 10453 | .eraseblocks = { {256, 4096} }, |
| 10454 | .block_erase = spi_block_erase_db, |
| 10455 | }, { |
| 10456 | .eraseblocks = { {64 * 1024, 16} }, |
| 10457 | .block_erase = spi_block_erase_d8, |
| 10458 | } |
| 10459 | }, |
| 10460 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 10461 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 10462 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 10463 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10464 | .voltage = {2700, 3600}, |
| 10465 | }, |
| 10466 | |
| 10467 | { |
| 10468 | .vendor = "Micron/Numonyx/ST", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 10469 | .name = "N25Q00A..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 10470 | .bustype = BUS_SPI, |
| 10471 | .manufacture_id = ST_ID, |
| 10472 | .model_id = ST_N25Q00A__1G, |
| 10473 | .total_size = 131072, |
| 10474 | .page_size = 256, |
| 10475 | /* supports SFDP */ |
| 10476 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10477 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 10478 | .tested = TEST_UNTESTED, |
| 10479 | .probe = probe_spi_rdid, |
| 10480 | .probe_timing = TIMING_ZERO, |
| 10481 | .block_erasers = |
| 10482 | { |
| 10483 | { |
| 10484 | .eraseblocks = { {4 * 1024, 32768} }, |
| 10485 | .block_erase = spi_block_erase_21, |
| 10486 | }, { |
| 10487 | .eraseblocks = { {4 * 1024, 32768} }, |
| 10488 | .block_erase = spi_block_erase_20, |
| 10489 | }, { |
| 10490 | .eraseblocks = { {64 * 1024, 2048} }, |
| 10491 | .block_erase = spi_block_erase_dc, |
| 10492 | }, { |
| 10493 | .eraseblocks = { {64 * 1024, 2048} }, |
| 10494 | .block_erase = spi_block_erase_d8, |
| 10495 | }, { |
| 10496 | .eraseblocks = { {32768 * 1024, 4} }, |
| 10497 | .block_erase = spi_block_erase_c4, |
| 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 = "N25Q00A..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */ |
| 10510 | .bustype = BUS_SPI, |
| 10511 | .manufacture_id = ST_ID, |
| 10512 | .model_id = ST_N25Q00A__3G, |
| 10513 | .total_size = 131072, |
| 10514 | .page_size = 256, |
| 10515 | /* supports SFDP */ |
| 10516 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10517 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 10518 | .tested = TEST_UNTESTED, |
| 10519 | .probe = probe_spi_rdid, |
| 10520 | .probe_timing = TIMING_ZERO, |
| 10521 | .block_erasers = |
| 10522 | { |
| 10523 | { |
| 10524 | .eraseblocks = { {4 * 1024, 32768} }, |
| 10525 | .block_erase = spi_block_erase_21, |
| 10526 | }, { |
| 10527 | .eraseblocks = { {4 * 1024, 32768} }, |
| 10528 | .block_erase = spi_block_erase_20, |
| 10529 | }, { |
| 10530 | .eraseblocks = { {64 * 1024, 2048} }, |
| 10531 | .block_erase = spi_block_erase_dc, |
| 10532 | }, { |
| 10533 | .eraseblocks = { {64 * 1024, 2048} }, |
| 10534 | .block_erase = spi_block_erase_d8, |
| 10535 | }, { |
| 10536 | .eraseblocks = { {32768 * 1024, 4} }, |
| 10537 | .block_erase = spi_block_erase_c4, |
| 10538 | } |
| 10539 | }, |
| 10540 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10541 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10542 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10543 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10544 | .voltage = {2700, 3600}, |
| 10545 | }, |
| 10546 | |
| 10547 | { |
| 10548 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10549 | .name = "N25Q016", |
| 10550 | .bustype = BUS_SPI, |
| 10551 | .manufacture_id = ST_ID, |
| 10552 | .model_id = ST_N25Q016__1E, |
| 10553 | .total_size = 2048, |
| 10554 | .page_size = 256, |
| 10555 | /* supports SFDP */ |
| 10556 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10557 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10558 | .tested = TEST_UNTESTED, |
| 10559 | .probe = probe_spi_rdid, |
| 10560 | .probe_timing = TIMING_ZERO, |
| 10561 | .block_erasers = |
| 10562 | { |
| 10563 | { |
| 10564 | .eraseblocks = { {4 * 1024, 512} }, |
| 10565 | .block_erase = spi_block_erase_20, |
| 10566 | }, { |
| 10567 | .eraseblocks = { {32 * 1024, 64} }, |
| 10568 | .block_erase = spi_block_erase_52, |
| 10569 | }, { |
| 10570 | .eraseblocks = { {64 * 1024, 32} }, |
| 10571 | .block_erase = spi_block_erase_d8, |
| 10572 | }, { |
| 10573 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10574 | .block_erase = spi_block_erase_c7, |
| 10575 | } |
| 10576 | }, |
| 10577 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10578 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10579 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10580 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10581 | .voltage = {1700, 2000}, |
| 10582 | }, |
| 10583 | |
| 10584 | { |
| 10585 | .vendor = "Micron/Numonyx/ST", |
| 10586 | .name = "N25Q032..1E", |
| 10587 | .bustype = BUS_SPI, |
| 10588 | .manufacture_id = ST_ID, |
| 10589 | .model_id = ST_N25Q032__1E, |
| 10590 | .total_size = 4096, |
| 10591 | .page_size = 256, |
| 10592 | /* supports SFDP */ |
| 10593 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10594 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10595 | .tested = TEST_UNTESTED, |
| 10596 | .probe = probe_spi_rdid, |
| 10597 | .probe_timing = TIMING_ZERO, |
| 10598 | .block_erasers = |
| 10599 | { |
| 10600 | { |
| 10601 | .eraseblocks = { {4 * 1024, 1024} }, |
| 10602 | .block_erase = spi_block_erase_20, |
| 10603 | }, { |
| 10604 | .eraseblocks = { {64 * 1024, 64} }, |
| 10605 | .block_erase = spi_block_erase_d8, |
| 10606 | }, { |
| 10607 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10608 | .block_erase = spi_block_erase_c7, |
| 10609 | } |
| 10610 | }, |
| 10611 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10612 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10613 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10614 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10615 | .voltage = {1700, 2000}, |
| 10616 | }, |
| 10617 | |
| 10618 | { |
| 10619 | .vendor = "Micron/Numonyx/ST", |
| 10620 | .name = "N25Q032..3E", |
| 10621 | .bustype = BUS_SPI, |
| 10622 | .manufacture_id = ST_ID, |
| 10623 | .model_id = ST_N25Q032__3E, |
| 10624 | .total_size = 4096, |
| 10625 | .page_size = 256, |
| 10626 | /* supports SFDP */ |
| 10627 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10628 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10629 | .tested = TEST_OK_PREW, |
| 10630 | .probe = probe_spi_rdid, |
| 10631 | .probe_timing = TIMING_ZERO, |
| 10632 | .block_erasers = |
| 10633 | { |
| 10634 | { |
| 10635 | .eraseblocks = { {4 * 1024, 1024} }, |
| 10636 | .block_erase = spi_block_erase_20, |
| 10637 | }, { |
| 10638 | .eraseblocks = { {64 * 1024, 64} }, |
| 10639 | .block_erase = spi_block_erase_d8, |
| 10640 | }, { |
| 10641 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10642 | .block_erase = spi_block_erase_c7, |
| 10643 | } |
| 10644 | }, |
| 10645 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10646 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10647 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10648 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10649 | .voltage = {2700, 3600}, |
| 10650 | }, |
| 10651 | |
| 10652 | { |
| 10653 | .vendor = "Micron/Numonyx/ST", |
| 10654 | .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 10655 | .bustype = BUS_SPI, |
| 10656 | .manufacture_id = ST_ID, |
| 10657 | .model_id = ST_N25Q064__1E, |
| 10658 | .total_size = 8192, |
| 10659 | .page_size = 256, |
| 10660 | /* supports SFDP */ |
| 10661 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10662 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 10663 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10664 | .probe = probe_spi_rdid, |
| 10665 | .probe_timing = TIMING_ZERO, |
| 10666 | .block_erasers = |
| 10667 | { |
| 10668 | { |
| 10669 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 10670 | .block_erase = spi_block_erase_20, |
| 10671 | }, { |
| 10672 | .eraseblocks = { {64 * 1024, 128} }, |
| 10673 | .block_erase = spi_block_erase_d8, |
| 10674 | }, { |
| 10675 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10676 | .block_erase = spi_block_erase_c7, |
| 10677 | } |
| 10678 | }, |
| 10679 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10680 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10681 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10682 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10683 | .voltage = {1700, 2000}, |
| 10684 | }, |
| 10685 | |
| 10686 | { |
| 10687 | .vendor = "Micron/Numonyx/ST", |
| 10688 | .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 10689 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 10690 | .manufacture_id = ST_ID, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10691 | .model_id = ST_N25Q064__3E, |
| 10692 | .total_size = 8192, |
| 10693 | .page_size = 256, |
| 10694 | /* supports SFDP */ |
| 10695 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10696 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10697 | .tested = TEST_OK_PREW, |
| 10698 | .probe = probe_spi_rdid, |
| 10699 | .probe_timing = TIMING_ZERO, |
| 10700 | .block_erasers = |
| 10701 | { |
| 10702 | { |
| 10703 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 10704 | .block_erase = spi_block_erase_20, |
| 10705 | }, { |
| 10706 | .eraseblocks = { {64 * 1024, 128} }, |
| 10707 | .block_erase = spi_block_erase_d8, |
| 10708 | }, { |
| 10709 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10710 | .block_erase = spi_block_erase_c7, |
| 10711 | } |
| 10712 | }, |
| 10713 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10714 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10715 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10716 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10717 | .voltage = {2700, 3600}, |
| 10718 | }, |
| 10719 | |
| 10720 | { |
| 10721 | .vendor = "Micron/Numonyx/ST", |
| 10722 | .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 10723 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 10724 | .manufacture_id = ST_ID, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10725 | .model_id = ST_N25Q128__1E, |
| 10726 | .total_size = 16384, |
| 10727 | .page_size = 256, |
| 10728 | /* supports SFDP */ |
| 10729 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10730 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 10731 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10732 | .probe = probe_spi_rdid, |
| 10733 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 10734 | .block_erasers = |
| 10735 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10736 | { |
| 10737 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 10738 | .block_erase = spi_block_erase_20, |
| 10739 | }, { |
| 10740 | .eraseblocks = { {64 * 1024, 256} }, |
| 10741 | .block_erase = spi_block_erase_d8, |
| 10742 | }, { |
| 10743 | .eraseblocks = { {16384 * 1024, 1} }, |
| 10744 | .block_erase = spi_block_erase_c7, |
| 10745 | } |
| 10746 | }, |
| 10747 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10748 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10749 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10750 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10751 | .voltage = {1700, 2000}, |
| 10752 | }, |
| 10753 | |
| 10754 | { |
| 10755 | .vendor = "Micron/Numonyx/ST", |
| 10756 | .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 10757 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 10758 | .manufacture_id = ST_ID, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10759 | .model_id = ST_N25Q128__3E, |
| 10760 | .total_size = 16384, |
| 10761 | .page_size = 256, |
| 10762 | /* supports SFDP */ |
| 10763 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10764 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10765 | .tested = TEST_OK_PREW, |
| 10766 | .probe = probe_spi_rdid, |
| 10767 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 10768 | .block_erasers = |
| 10769 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10770 | { |
| 10771 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 10772 | .block_erase = spi_block_erase_20, |
| 10773 | }, { |
| 10774 | .eraseblocks = { {64 * 1024, 256} }, |
| 10775 | .block_erase = spi_block_erase_d8, |
| 10776 | }, { |
| 10777 | .eraseblocks = { {16384 * 1024, 1} }, |
| 10778 | .block_erase = spi_block_erase_c7, |
| 10779 | } |
| 10780 | }, |
| 10781 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10782 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10783 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10784 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10785 | .voltage = {2700, 3600}, |
| 10786 | }, |
| 10787 | |
| 10788 | { |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 10789 | .vendor = "Micron/Numonyx/ST", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 10790 | .name = "N25Q256..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 10791 | .bustype = BUS_SPI, |
| 10792 | .manufacture_id = ST_ID, |
| 10793 | .model_id = ST_N25Q256__1E, |
| 10794 | .total_size = 32768, |
| 10795 | .page_size = 256, |
| 10796 | /* supports SFDP */ |
| 10797 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10798 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 10799 | .tested = TEST_UNTESTED, |
| 10800 | .probe = probe_spi_rdid, |
| 10801 | .probe_timing = TIMING_ZERO, |
| 10802 | .block_erasers = |
| 10803 | { |
| 10804 | { |
| 10805 | .eraseblocks = { {4 * 1024, 8192} }, |
| 10806 | .block_erase = spi_block_erase_21, |
| 10807 | }, { |
| 10808 | .eraseblocks = { {4 * 1024, 8192} }, |
| 10809 | .block_erase = spi_block_erase_20, |
| 10810 | }, { |
| 10811 | .eraseblocks = { {64 * 1024, 512} }, |
| 10812 | .block_erase = spi_block_erase_dc, |
| 10813 | }, { |
| 10814 | .eraseblocks = { {64 * 1024, 512} }, |
| 10815 | .block_erase = spi_block_erase_d8, |
| 10816 | }, { |
| 10817 | .eraseblocks = { {32768 * 1024, 1} }, |
| 10818 | .block_erase = spi_block_erase_c7, |
| 10819 | } |
| 10820 | }, |
| 10821 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10822 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10823 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10824 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10825 | .voltage = {1700, 2000}, |
| 10826 | }, |
| 10827 | |
| 10828 | { |
| 10829 | .vendor = "Micron/Numonyx/ST", |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 10830 | .name = "N25Q256..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 10831 | .bustype = BUS_SPI, |
| 10832 | .manufacture_id = ST_ID, |
| 10833 | .model_id = ST_N25Q256__3E, |
| 10834 | .total_size = 32768, |
| 10835 | .page_size = 256, |
| 10836 | /* supports SFDP */ |
| 10837 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10838 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 10839 | .tested = TEST_UNTESTED, |
| 10840 | .probe = probe_spi_rdid, |
| 10841 | .probe_timing = TIMING_ZERO, |
| 10842 | .block_erasers = |
| 10843 | { |
| 10844 | { |
| 10845 | .eraseblocks = { {4 * 1024, 8192} }, |
| 10846 | .block_erase = spi_block_erase_21, |
| 10847 | }, { |
| 10848 | .eraseblocks = { {4 * 1024, 8192} }, |
| 10849 | .block_erase = spi_block_erase_20, |
| 10850 | }, { |
| 10851 | .eraseblocks = { {64 * 1024, 512} }, |
| 10852 | .block_erase = spi_block_erase_dc, |
| 10853 | }, { |
| 10854 | .eraseblocks = { {64 * 1024, 512} }, |
| 10855 | .block_erase = spi_block_erase_d8, |
| 10856 | }, { |
| 10857 | .eraseblocks = { {32768 * 1024, 1} }, |
| 10858 | .block_erase = spi_block_erase_c7, |
| 10859 | } |
| 10860 | }, |
| 10861 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10862 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10863 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10864 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10865 | .voltage = {2700, 3600}, |
| 10866 | }, |
| 10867 | |
| 10868 | { |
| 10869 | .vendor = "Micron/Numonyx/ST", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 10870 | .name = "N25Q512..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */ |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 10871 | .bustype = BUS_SPI, |
| 10872 | .manufacture_id = ST_ID, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 10873 | .model_id = ST_N25Q512__1G, |
| 10874 | .total_size = 65536, |
| 10875 | .page_size = 256, |
| 10876 | /* supports SFDP */ |
| 10877 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10878 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 10879 | .tested = TEST_UNTESTED, |
| 10880 | .probe = probe_spi_rdid, |
| 10881 | .probe_timing = TIMING_ZERO, |
| 10882 | .block_erasers = |
| 10883 | { |
| 10884 | { |
| 10885 | .eraseblocks = { {4 * 1024, 16384} }, |
| 10886 | .block_erase = spi_block_erase_21, |
| 10887 | }, { |
| 10888 | .eraseblocks = { {4 * 1024, 16384} }, |
| 10889 | .block_erase = spi_block_erase_20, |
| 10890 | }, { |
| 10891 | .eraseblocks = { {64 * 1024, 1024} }, |
| 10892 | .block_erase = spi_block_erase_dc, |
| 10893 | }, { |
| 10894 | .eraseblocks = { {64 * 1024, 1024} }, |
| 10895 | .block_erase = spi_block_erase_d8, |
| 10896 | }, { |
| 10897 | .eraseblocks = { {32768 * 1024, 2} }, |
| 10898 | .block_erase = spi_block_erase_c4, |
| 10899 | } |
| 10900 | }, |
| 10901 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10902 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10903 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10904 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10905 | .voltage = {1700, 2000}, |
| 10906 | }, |
| 10907 | |
| 10908 | { |
| 10909 | .vendor = "Micron/Numonyx/ST", |
| 10910 | .name = "N25Q512..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */ |
| 10911 | .bustype = BUS_SPI, |
| 10912 | .manufacture_id = ST_ID, |
| 10913 | .model_id = ST_N25Q512__3G, |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 10914 | .total_size = 65536, |
| 10915 | .page_size = 256, |
| 10916 | /* supports SFDP */ |
| 10917 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10918 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 10919 | .tested = TEST_OK_PREW, |
| 10920 | .probe = probe_spi_rdid, |
| 10921 | .probe_timing = TIMING_ZERO, |
| 10922 | .block_erasers = |
| 10923 | { |
| 10924 | { |
| 10925 | .eraseblocks = { {4 * 1024, 16384} }, |
| 10926 | .block_erase = spi_block_erase_21, |
| 10927 | }, { |
| 10928 | .eraseblocks = { {4 * 1024, 16384} }, |
| 10929 | .block_erase = spi_block_erase_20, |
| 10930 | }, { |
| 10931 | .eraseblocks = { {64 * 1024, 1024} }, |
| 10932 | .block_erase = spi_block_erase_dc, |
| 10933 | }, { |
| 10934 | .eraseblocks = { {64 * 1024, 1024} }, |
| 10935 | .block_erase = spi_block_erase_d8, |
| 10936 | }, { |
Jacob Creedon | e8e7b0e | 2019-07-22 12:21:22 -0700 | [diff] [blame] | 10937 | .eraseblocks = { {32768 * 1024, 2} }, |
| 10938 | .block_erase = spi_block_erase_c4, |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 10939 | } |
| 10940 | }, |
| 10941 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10942 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10943 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10944 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10945 | .voltage = {2700, 3600}, |
| 10946 | }, |
| 10947 | |
| 10948 | { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10949 | .vendor = "Micron", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 10950 | .name = "MT25QL01G", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
| 10951 | .bustype = BUS_SPI, |
| 10952 | .manufacture_id = ST_ID, |
| 10953 | .model_id = ST_N25Q00A__3G, |
| 10954 | .total_size = 131072, |
| 10955 | .page_size = 256, |
| 10956 | /* supports SFDP */ |
| 10957 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10958 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 10959 | .tested = TEST_OK_PREW, |
| 10960 | .probe = probe_spi_rdid, |
| 10961 | .probe_timing = TIMING_ZERO, |
| 10962 | .block_erasers = |
| 10963 | { |
| 10964 | { |
| 10965 | .eraseblocks = { {4 * 1024, 32768} }, |
| 10966 | .block_erase = spi_block_erase_21, |
| 10967 | }, { |
| 10968 | .eraseblocks = { {4 * 1024, 32768} }, |
| 10969 | .block_erase = spi_block_erase_20, |
| 10970 | }, { |
| 10971 | .eraseblocks = { {32 * 1024, 4096} }, |
| 10972 | .block_erase = spi_block_erase_5c, |
| 10973 | }, { |
| 10974 | .eraseblocks = { {32 * 1024, 4096} }, |
| 10975 | .block_erase = spi_block_erase_52, |
| 10976 | }, { |
| 10977 | .eraseblocks = { {64 * 1024, 2048} }, |
| 10978 | .block_erase = spi_block_erase_dc, |
| 10979 | }, { |
| 10980 | .eraseblocks = { {64 * 1024, 2048} }, |
| 10981 | .block_erase = spi_block_erase_d8, |
| 10982 | }, { |
| 10983 | .eraseblocks = { {65536 * 1024, 2} }, |
| 10984 | .block_erase = spi_block_erase_c4, |
| 10985 | } |
| 10986 | }, |
| 10987 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10988 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10989 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10990 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10991 | .voltage = {2700, 3600}, |
| 10992 | }, |
| 10993 | |
| 10994 | { |
| 10995 | .vendor = "Micron", |
| 10996 | .name = "MT25QU01G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 10997 | .bustype = BUS_SPI, |
| 10998 | .manufacture_id = ST_ID, |
| 10999 | .model_id = ST_N25Q00A__1G, |
| 11000 | .total_size = 131072, |
| 11001 | .page_size = 256, |
| 11002 | /* supports SFDP */ |
| 11003 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11004 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11005 | .tested = TEST_UNTESTED, |
| 11006 | .probe = probe_spi_rdid, |
| 11007 | .probe_timing = TIMING_ZERO, |
| 11008 | .block_erasers = |
| 11009 | { |
| 11010 | { |
| 11011 | .eraseblocks = { {4 * 1024, 32768} }, |
| 11012 | .block_erase = spi_block_erase_21, |
| 11013 | }, { |
| 11014 | .eraseblocks = { {4 * 1024, 32768} }, |
| 11015 | .block_erase = spi_block_erase_20, |
| 11016 | }, { |
| 11017 | .eraseblocks = { {32 * 1024, 4096} }, |
| 11018 | .block_erase = spi_block_erase_5c, |
| 11019 | }, { |
| 11020 | .eraseblocks = { {32 * 1024, 4096} }, |
| 11021 | .block_erase = spi_block_erase_52, |
| 11022 | }, { |
| 11023 | .eraseblocks = { {64 * 1024, 2048} }, |
| 11024 | .block_erase = spi_block_erase_dc, |
| 11025 | }, { |
| 11026 | .eraseblocks = { {64 * 1024, 2048} }, |
| 11027 | .block_erase = spi_block_erase_d8, |
| 11028 | }, { |
| 11029 | .eraseblocks = { {65536 * 1024, 2} }, |
| 11030 | .block_erase = spi_block_erase_c4, |
| 11031 | } |
| 11032 | }, |
| 11033 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11034 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11035 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11036 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11037 | .voltage = {1700, 2000}, |
| 11038 | }, |
| 11039 | |
| 11040 | { |
| 11041 | .vendor = "Micron", |
| 11042 | .name = "MT25QL02G", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
| 11043 | .bustype = BUS_SPI, |
| 11044 | .manufacture_id = ST_ID, |
| 11045 | .model_id = ST_MT25QL02G, |
| 11046 | .total_size = 262144, |
| 11047 | .page_size = 256, |
| 11048 | /* supports SFDP */ |
| 11049 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11050 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11051 | .tested = TEST_UNTESTED, |
| 11052 | .probe = probe_spi_rdid, |
| 11053 | .probe_timing = TIMING_ZERO, |
| 11054 | .block_erasers = |
| 11055 | { |
| 11056 | { |
| 11057 | .eraseblocks = { {4 * 1024, 65536} }, |
| 11058 | .block_erase = spi_block_erase_21, |
| 11059 | }, { |
| 11060 | .eraseblocks = { {4 * 1024, 65536} }, |
| 11061 | .block_erase = spi_block_erase_20, |
| 11062 | }, { |
| 11063 | .eraseblocks = { {32 * 1024, 8192} }, |
| 11064 | .block_erase = spi_block_erase_5c, |
| 11065 | }, { |
| 11066 | .eraseblocks = { {32 * 1024, 8192} }, |
| 11067 | .block_erase = spi_block_erase_52, |
| 11068 | }, { |
| 11069 | .eraseblocks = { {64 * 1024, 4096} }, |
| 11070 | .block_erase = spi_block_erase_dc, |
| 11071 | }, { |
| 11072 | .eraseblocks = { {64 * 1024, 4096} }, |
| 11073 | .block_erase = spi_block_erase_d8, |
| 11074 | }, { |
| 11075 | .eraseblocks = { {65536 * 1024, 4} }, |
| 11076 | .block_erase = spi_block_erase_c4, |
| 11077 | } |
| 11078 | }, |
| 11079 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11080 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11081 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11082 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11083 | .voltage = {2700, 3600}, |
| 11084 | }, |
| 11085 | |
| 11086 | { |
| 11087 | .vendor = "Micron", |
| 11088 | .name = "MT25QU02G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11089 | .bustype = BUS_SPI, |
| 11090 | .manufacture_id = ST_ID, |
| 11091 | .model_id = ST_MT25QU02G, |
| 11092 | .total_size = 262144, |
| 11093 | .page_size = 256, |
| 11094 | /* supports SFDP */ |
| 11095 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11096 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11097 | .tested = TEST_UNTESTED, |
| 11098 | .probe = probe_spi_rdid, |
| 11099 | .probe_timing = TIMING_ZERO, |
| 11100 | .block_erasers = |
| 11101 | { |
| 11102 | { |
| 11103 | .eraseblocks = { {4 * 1024, 65536} }, |
| 11104 | .block_erase = spi_block_erase_21, |
| 11105 | }, { |
| 11106 | .eraseblocks = { {4 * 1024, 65536} }, |
| 11107 | .block_erase = spi_block_erase_20, |
| 11108 | }, { |
| 11109 | .eraseblocks = { {32 * 1024, 8192} }, |
| 11110 | .block_erase = spi_block_erase_5c, |
| 11111 | }, { |
| 11112 | .eraseblocks = { {32 * 1024, 8192} }, |
| 11113 | .block_erase = spi_block_erase_52, |
| 11114 | }, { |
| 11115 | .eraseblocks = { {64 * 1024, 4096} }, |
| 11116 | .block_erase = spi_block_erase_dc, |
| 11117 | }, { |
| 11118 | .eraseblocks = { {64 * 1024, 4096} }, |
| 11119 | .block_erase = spi_block_erase_d8, |
| 11120 | }, { |
| 11121 | .eraseblocks = { {65536 * 1024, 4} }, |
| 11122 | .block_erase = spi_block_erase_c4, |
| 11123 | } |
| 11124 | }, |
| 11125 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11126 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11127 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11128 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11129 | .voltage = {1700, 2000}, |
| 11130 | }, |
| 11131 | |
| 11132 | { |
| 11133 | .vendor = "Micron", |
| 11134 | .name = "MT25QU128", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11135 | .bustype = BUS_SPI, |
| 11136 | .manufacture_id = ST_ID, |
| 11137 | .model_id = ST_N25Q128__1E, |
| 11138 | .total_size = 16384, |
| 11139 | .page_size = 256, |
| 11140 | /* supports SFDP */ |
| 11141 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11142 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11143 | .tested = TEST_UNTESTED, |
| 11144 | .probe = probe_spi_rdid, |
| 11145 | .probe_timing = TIMING_ZERO, |
| 11146 | .block_erasers = |
| 11147 | { |
| 11148 | { |
| 11149 | .eraseblocks = { {4 * 1024, 4096} }, |
| 11150 | .block_erase = spi_block_erase_20, |
| 11151 | }, { |
| 11152 | .eraseblocks = { {32 * 1024, 512} }, |
| 11153 | .block_erase = spi_block_erase_52, |
| 11154 | }, { |
| 11155 | .eraseblocks = { {64 * 1024, 256} }, |
| 11156 | .block_erase = spi_block_erase_d8, |
| 11157 | }, { |
| 11158 | .eraseblocks = { {16384 * 1024, 1} }, |
| 11159 | .block_erase = spi_block_erase_c7, |
| 11160 | }, { |
| 11161 | .eraseblocks = { {16384 * 1024, 1} }, |
| 11162 | .block_erase = spi_block_erase_60, |
| 11163 | } |
| 11164 | }, |
| 11165 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11166 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11167 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11168 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11169 | .voltage = {1700, 2000}, |
| 11170 | }, |
| 11171 | |
| 11172 | { |
| 11173 | .vendor = "Micron", |
| 11174 | .name = "MT25QL128", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
| 11175 | .bustype = BUS_SPI, |
| 11176 | .manufacture_id = ST_ID, |
| 11177 | .model_id = ST_N25Q128__3E, |
| 11178 | .total_size = 16384, |
| 11179 | .page_size = 256, |
| 11180 | /* supports SFDP */ |
| 11181 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11182 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11183 | .tested = TEST_UNTESTED, |
| 11184 | .probe = probe_spi_rdid, |
| 11185 | .probe_timing = TIMING_ZERO, |
| 11186 | .block_erasers = |
| 11187 | { |
| 11188 | { |
| 11189 | .eraseblocks = { {4 * 1024, 4096} }, |
| 11190 | .block_erase = spi_block_erase_20, |
| 11191 | }, { |
| 11192 | .eraseblocks = { {32 * 1024, 512} }, |
| 11193 | .block_erase = spi_block_erase_52, |
| 11194 | }, { |
| 11195 | .eraseblocks = { {64 * 1024, 256} }, |
| 11196 | .block_erase = spi_block_erase_d8, |
| 11197 | }, { |
| 11198 | .eraseblocks = { {16384 * 1024, 1} }, |
| 11199 | .block_erase = spi_block_erase_c7, |
| 11200 | }, { |
| 11201 | .eraseblocks = { {16384 * 1024, 1} }, |
| 11202 | .block_erase = spi_block_erase_60, |
| 11203 | } |
| 11204 | }, |
| 11205 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11206 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11207 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11208 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11209 | .voltage = {2700, 3600}, |
| 11210 | }, |
| 11211 | |
| 11212 | { |
| 11213 | .vendor = "Micron", |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 11214 | .name = "MT25QL256", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11215 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 11216 | .manufacture_id = ST_ID, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11217 | .model_id = ST_N25Q256__3E, |
| 11218 | .total_size = 32768, |
| 11219 | .page_size = 256, |
| 11220 | /* supports SFDP */ |
| 11221 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 11222 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11223 | .tested = TEST_UNTESTED, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11224 | .probe = probe_spi_rdid, |
| 11225 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 11226 | .block_erasers = |
| 11227 | { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11228 | { |
| 11229 | .eraseblocks = { {4 * 1024, 8192} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 11230 | .block_erase = spi_block_erase_21, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11231 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 11232 | .eraseblocks = { {4 * 1024, 8192} }, |
| 11233 | .block_erase = spi_block_erase_20, |
| 11234 | }, { |
Jacob Creedon | 045b97e | 2019-07-22 12:26:56 -0700 | [diff] [blame] | 11235 | .eraseblocks = { {32 * 1024, 1024} }, |
| 11236 | .block_erase = spi_block_erase_5c, |
| 11237 | }, { |
| 11238 | .eraseblocks = { {32 * 1024, 1024} }, |
| 11239 | .block_erase = spi_block_erase_52, |
| 11240 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11241 | .eraseblocks = { {64 * 1024, 512} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 11242 | .block_erase = spi_block_erase_dc, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11243 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 11244 | .eraseblocks = { {64 * 1024, 512} }, |
| 11245 | .block_erase = spi_block_erase_d8, |
| 11246 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11247 | .eraseblocks = { {32768 * 1024, 1} }, |
| 11248 | .block_erase = spi_block_erase_c7, |
Jacob Creedon | 045b97e | 2019-07-22 12:26:56 -0700 | [diff] [blame] | 11249 | }, { |
| 11250 | .eraseblocks = { {32768 * 1024, 1} }, |
| 11251 | .block_erase = spi_block_erase_60, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11252 | } |
| 11253 | }, |
| 11254 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11255 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11256 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11257 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11258 | .voltage = {2700, 3600}, |
| 11259 | }, |
| 11260 | |
| 11261 | { |
| 11262 | .vendor = "Micron", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11263 | .name = "MT25QU256", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11264 | .bustype = BUS_SPI, |
| 11265 | .manufacture_id = ST_ID, |
| 11266 | .model_id = ST_N25Q256__1E, |
| 11267 | .total_size = 32768, |
| 11268 | .page_size = 256, |
| 11269 | /* supports SFDP */ |
| 11270 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11271 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11272 | .tested = TEST_UNTESTED, |
| 11273 | .probe = probe_spi_rdid, |
| 11274 | .probe_timing = TIMING_ZERO, |
| 11275 | .block_erasers = |
| 11276 | { |
| 11277 | { |
| 11278 | .eraseblocks = { {4 * 1024, 8192} }, |
| 11279 | .block_erase = spi_block_erase_21, |
| 11280 | }, { |
| 11281 | .eraseblocks = { {4 * 1024, 8192} }, |
| 11282 | .block_erase = spi_block_erase_20, |
| 11283 | }, { |
| 11284 | .eraseblocks = { {32 * 1024, 1024} }, |
| 11285 | .block_erase = spi_block_erase_5c, |
| 11286 | }, { |
| 11287 | .eraseblocks = { {32 * 1024, 1024} }, |
| 11288 | .block_erase = spi_block_erase_52, |
| 11289 | }, { |
| 11290 | .eraseblocks = { {64 * 1024, 512} }, |
| 11291 | .block_erase = spi_block_erase_dc, |
| 11292 | }, { |
| 11293 | .eraseblocks = { {64 * 1024, 512} }, |
| 11294 | .block_erase = spi_block_erase_d8, |
| 11295 | }, { |
| 11296 | .eraseblocks = { {32768 * 1024, 1} }, |
| 11297 | .block_erase = spi_block_erase_c7, |
| 11298 | }, { |
| 11299 | .eraseblocks = { {32768 * 1024, 1} }, |
| 11300 | .block_erase = spi_block_erase_60, |
| 11301 | } |
| 11302 | }, |
| 11303 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11304 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11305 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11306 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11307 | .voltage = {1700, 2000}, |
| 11308 | }, |
| 11309 | |
| 11310 | { |
| 11311 | .vendor = "Micron", |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 11312 | .name = "MT25QL512", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11313 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 11314 | .manufacture_id = ST_ID, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11315 | .model_id = ST_N25Q512__3G, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11316 | .total_size = 65536, |
| 11317 | .page_size = 256, |
| 11318 | /* supports SFDP */ |
| 11319 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 11320 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
Angel Pons | 3ed5a35 | 2018-09-30 16:31:09 +0200 | [diff] [blame] | 11321 | .tested = TEST_OK_PREW, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11322 | .probe = probe_spi_rdid, |
| 11323 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 11324 | .block_erasers = |
| 11325 | { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11326 | { |
| 11327 | .eraseblocks = { {4 * 1024, 16384} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 11328 | .block_erase = spi_block_erase_21, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11329 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 11330 | .eraseblocks = { {4 * 1024, 16384} }, |
| 11331 | .block_erase = spi_block_erase_20, |
| 11332 | }, { |
Jacob Creedon | 045b97e | 2019-07-22 12:26:56 -0700 | [diff] [blame] | 11333 | .eraseblocks = { {32 * 1024, 2048} }, |
| 11334 | .block_erase = spi_block_erase_5c, |
| 11335 | }, { |
| 11336 | .eraseblocks = { {32 * 1024, 2048} }, |
| 11337 | .block_erase = spi_block_erase_52, |
| 11338 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11339 | .eraseblocks = { {64 * 1024, 1024} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 11340 | .block_erase = spi_block_erase_dc, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11341 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 11342 | .eraseblocks = { {64 * 1024, 1024} }, |
| 11343 | .block_erase = spi_block_erase_d8, |
| 11344 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11345 | .eraseblocks = { {65536 * 1024, 1} }, |
| 11346 | .block_erase = spi_block_erase_c7, |
Jacob Creedon | 045b97e | 2019-07-22 12:26:56 -0700 | [diff] [blame] | 11347 | }, { |
| 11348 | .eraseblocks = { {65536 * 1024, 1} }, |
| 11349 | .block_erase = spi_block_erase_60, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11350 | } |
| 11351 | }, |
| 11352 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11353 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11354 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11355 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11356 | .voltage = {2700, 3600}, |
| 11357 | }, |
| 11358 | |
| 11359 | { |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11360 | .vendor = "Micron", |
| 11361 | .name = "MT25QU512", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11362 | .bustype = BUS_SPI, |
| 11363 | .manufacture_id = ST_ID, |
| 11364 | .model_id = ST_N25Q512__1G, |
| 11365 | .total_size = 65536, |
| 11366 | .page_size = 256, |
| 11367 | /* supports SFDP */ |
| 11368 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11369 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11370 | .tested = TEST_OK_PREW, |
| 11371 | .probe = probe_spi_rdid, |
| 11372 | .probe_timing = TIMING_ZERO, |
| 11373 | .block_erasers = |
| 11374 | { |
| 11375 | { |
| 11376 | .eraseblocks = { {4 * 1024, 16384} }, |
| 11377 | .block_erase = spi_block_erase_21, |
| 11378 | }, { |
| 11379 | .eraseblocks = { {4 * 1024, 16384} }, |
| 11380 | .block_erase = spi_block_erase_20, |
| 11381 | }, { |
| 11382 | .eraseblocks = { {32 * 1024, 2048} }, |
| 11383 | .block_erase = spi_block_erase_5c, |
| 11384 | }, { |
| 11385 | .eraseblocks = { {32 * 1024, 2048} }, |
| 11386 | .block_erase = spi_block_erase_52, |
| 11387 | }, { |
| 11388 | .eraseblocks = { {64 * 1024, 1024} }, |
| 11389 | .block_erase = spi_block_erase_dc, |
| 11390 | }, { |
| 11391 | .eraseblocks = { {64 * 1024, 1024} }, |
| 11392 | .block_erase = spi_block_erase_d8, |
| 11393 | }, { |
| 11394 | .eraseblocks = { {65536 * 1024, 1} }, |
| 11395 | .block_erase = spi_block_erase_c7, |
| 11396 | }, { |
| 11397 | .eraseblocks = { {65536 * 1024, 1} }, |
| 11398 | .block_erase = spi_block_erase_60, |
| 11399 | } |
| 11400 | }, |
| 11401 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11402 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11403 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11404 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11405 | .voltage = {1700, 2000}, |
| 11406 | }, |
| 11407 | |
| 11408 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11409 | .vendor = "MoselVitelic", |
| 11410 | .name = "V29C51000B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11411 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11412 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11413 | .model_id = MVC_V29C51000B, |
| 11414 | .total_size = 64, |
| 11415 | .page_size = 512, |
| 11416 | .feature_bits = FEATURE_EITHER_RESET, |
| 11417 | .tested = TEST_UNTESTED, |
| 11418 | .probe = probe_jedec, |
| 11419 | .probe_timing = TIMING_ZERO, |
| 11420 | .block_erasers = |
| 11421 | { |
| 11422 | { |
| 11423 | .eraseblocks = { {512, 128} }, |
| 11424 | .block_erase = erase_sector_jedec, |
| 11425 | }, { |
| 11426 | .eraseblocks = { {64 * 1024, 1} }, |
| 11427 | .block_erase = erase_chip_block_jedec, |
| 11428 | }, |
| 11429 | }, |
| 11430 | .write = write_jedec_1, |
| 11431 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11432 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11433 | }, |
| 11434 | |
| 11435 | { |
| 11436 | .vendor = "MoselVitelic", |
| 11437 | .name = "V29C51000T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11438 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11439 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11440 | .model_id = MVC_V29C51000T, |
| 11441 | .total_size = 64, |
| 11442 | .page_size = 512, |
| 11443 | .feature_bits = FEATURE_EITHER_RESET, |
| 11444 | .tested = TEST_UNTESTED, |
| 11445 | .probe = probe_jedec, |
| 11446 | .probe_timing = TIMING_ZERO, |
| 11447 | .block_erasers = |
| 11448 | { |
| 11449 | { |
| 11450 | .eraseblocks = { {512, 128} }, |
| 11451 | .block_erase = erase_sector_jedec, |
| 11452 | }, { |
| 11453 | .eraseblocks = { {64 * 1024, 1} }, |
| 11454 | .block_erase = erase_chip_block_jedec, |
| 11455 | }, |
| 11456 | }, |
| 11457 | .write = write_jedec_1, |
| 11458 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11459 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11460 | }, |
| 11461 | |
| 11462 | { |
| 11463 | .vendor = "MoselVitelic", |
| 11464 | .name = "V29C51400B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11465 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11466 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11467 | .model_id = MVC_V29C51400B, |
| 11468 | .total_size = 512, |
| 11469 | .page_size = 1024, |
| 11470 | .feature_bits = FEATURE_EITHER_RESET, |
| 11471 | .tested = TEST_UNTESTED, |
| 11472 | .probe = probe_jedec, |
| 11473 | .probe_timing = TIMING_ZERO, |
| 11474 | .block_erasers = |
| 11475 | { |
| 11476 | { |
| 11477 | .eraseblocks = { {1024, 512} }, |
| 11478 | .block_erase = erase_sector_jedec, |
| 11479 | }, { |
| 11480 | .eraseblocks = { {512 * 1024, 1} }, |
| 11481 | .block_erase = erase_chip_block_jedec, |
| 11482 | }, |
| 11483 | }, |
| 11484 | .write = write_jedec_1, |
| 11485 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11486 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11487 | }, |
| 11488 | |
| 11489 | { |
| 11490 | .vendor = "MoselVitelic", |
| 11491 | .name = "V29C51400T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11492 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11493 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11494 | .model_id = MVC_V29C51400T, |
| 11495 | .total_size = 512, |
| 11496 | .page_size = 1024, |
| 11497 | .feature_bits = FEATURE_EITHER_RESET, |
| 11498 | .tested = TEST_UNTESTED, |
| 11499 | .probe = probe_jedec, |
| 11500 | .probe_timing = TIMING_ZERO, |
| 11501 | .block_erasers = |
| 11502 | { |
| 11503 | { |
| 11504 | .eraseblocks = { {1024, 512} }, |
| 11505 | .block_erase = erase_sector_jedec, |
| 11506 | }, { |
| 11507 | .eraseblocks = { {512 * 1024, 1} }, |
| 11508 | .block_erase = erase_chip_block_jedec, |
| 11509 | }, |
| 11510 | }, |
| 11511 | .write = write_jedec_1, |
| 11512 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11513 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11514 | }, |
| 11515 | |
| 11516 | { |
| 11517 | .vendor = "MoselVitelic", |
| 11518 | .name = "V29LC51000", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11519 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11520 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11521 | .model_id = MVC_V29LC51000, |
| 11522 | .total_size = 64, |
| 11523 | .page_size = 512, |
| 11524 | .feature_bits = FEATURE_EITHER_RESET, |
| 11525 | .tested = TEST_UNTESTED, |
| 11526 | .probe = probe_jedec, |
| 11527 | .probe_timing = TIMING_ZERO, |
| 11528 | .block_erasers = |
| 11529 | { |
| 11530 | { |
| 11531 | .eraseblocks = { {512, 128} }, |
| 11532 | .block_erase = erase_sector_jedec, |
| 11533 | }, { |
| 11534 | .eraseblocks = { {64 * 1024, 1} }, |
| 11535 | .block_erase = erase_chip_block_jedec, |
| 11536 | }, |
| 11537 | }, |
| 11538 | .write = write_jedec_1, |
| 11539 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11540 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11541 | }, |
| 11542 | |
| 11543 | { |
| 11544 | .vendor = "MoselVitelic", |
| 11545 | .name = "V29LC51001", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11546 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11547 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11548 | .model_id = MVC_V29LC51001, |
| 11549 | .total_size = 128, |
| 11550 | .page_size = 512, |
| 11551 | .feature_bits = FEATURE_EITHER_RESET, |
| 11552 | .tested = TEST_UNTESTED, |
| 11553 | .probe = probe_jedec, |
| 11554 | .probe_timing = TIMING_ZERO, |
| 11555 | .block_erasers = |
| 11556 | { |
| 11557 | { |
| 11558 | .eraseblocks = { {512, 256} }, |
| 11559 | .block_erase = erase_sector_jedec, |
| 11560 | }, { |
| 11561 | .eraseblocks = { {128 * 1024, 1} }, |
| 11562 | .block_erase = erase_chip_block_jedec, |
| 11563 | }, |
| 11564 | }, |
| 11565 | .write = write_jedec_1, |
| 11566 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11567 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11568 | }, |
| 11569 | |
| 11570 | { |
| 11571 | .vendor = "MoselVitelic", |
| 11572 | .name = "V29LC51002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11573 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11574 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11575 | .model_id = MVC_V29LC51002, |
| 11576 | .total_size = 256, |
| 11577 | .page_size = 512, |
| 11578 | .feature_bits = FEATURE_EITHER_RESET, |
| 11579 | .tested = TEST_UNTESTED, |
| 11580 | .probe = probe_jedec, |
| 11581 | .probe_timing = TIMING_ZERO, |
| 11582 | .block_erasers = |
| 11583 | { |
| 11584 | { |
| 11585 | .eraseblocks = { {512, 512} }, |
| 11586 | .block_erase = erase_sector_jedec, |
| 11587 | }, { |
| 11588 | .eraseblocks = { {256 * 1024, 1} }, |
| 11589 | .block_erase = erase_chip_block_jedec, |
| 11590 | }, |
| 11591 | }, |
| 11592 | .write = write_jedec_1, |
| 11593 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11594 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11595 | }, |
| 11596 | |
| 11597 | { |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 11598 | .vendor = "Nantronics", |
| 11599 | .name = "N25S10", |
| 11600 | .bustype = BUS_SPI, |
| 11601 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 11602 | .model_id = NANTRONICS_N25S10, |
| 11603 | .total_size = 128, |
| 11604 | .page_size = 256, |
| 11605 | .feature_bits = FEATURE_WRSR_WREN, |
| 11606 | .tested = TEST_UNTESTED, |
| 11607 | .probe = probe_spi_rdid, |
| 11608 | .probe_timing = TIMING_ZERO, |
| 11609 | .block_erasers = |
| 11610 | { |
| 11611 | { |
| 11612 | .eraseblocks = { {4 * 1024, 32} }, |
| 11613 | .block_erase = spi_block_erase_20, |
| 11614 | }, { |
| 11615 | .eraseblocks = { {4 * 1024, 32} }, |
| 11616 | .block_erase = spi_block_erase_d7, |
| 11617 | }, { |
| 11618 | .eraseblocks = { {32 * 1024, 4} }, |
| 11619 | .block_erase = spi_block_erase_52, |
| 11620 | }, { |
| 11621 | .eraseblocks = { {64 * 1024, 2} }, |
| 11622 | .block_erase = spi_block_erase_d8, |
| 11623 | }, { |
| 11624 | .eraseblocks = { {128 * 1024, 1} }, |
| 11625 | .block_erase = spi_block_erase_60, |
| 11626 | }, { |
| 11627 | .eraseblocks = { {128 * 1024, 1} }, |
| 11628 | .block_erase = spi_block_erase_c7, |
| 11629 | } |
| 11630 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11631 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 11632 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11633 | .write = spi_chip_write_256, |
| 11634 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 11635 | .voltage = {2700, 3600}, |
| 11636 | }, |
| 11637 | |
| 11638 | { |
| 11639 | .vendor = "Nantronics", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11640 | .name = "N25S16", |
| 11641 | .bustype = BUS_SPI, |
| 11642 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 11643 | .model_id = NANTRONICS_N25S16, |
| 11644 | .total_size = 2048, |
| 11645 | .page_size = 256, |
| 11646 | .feature_bits = FEATURE_WRSR_WREN, |
| 11647 | .tested = TEST_UNTESTED, |
| 11648 | .probe = probe_spi_rdid, |
| 11649 | .probe_timing = TIMING_ZERO, |
| 11650 | .block_erasers = |
| 11651 | { |
| 11652 | { |
| 11653 | .eraseblocks = { {4 * 1024, 512} }, |
| 11654 | .block_erase = spi_block_erase_20, |
| 11655 | }, { |
| 11656 | .eraseblocks = { {64 * 1024, 32} }, |
| 11657 | .block_erase = spi_block_erase_d8, |
| 11658 | }, { |
| 11659 | .eraseblocks = { {2048 * 1024, 1} }, |
| 11660 | .block_erase = spi_block_erase_60, |
| 11661 | }, { |
| 11662 | .eraseblocks = { {2048 * 1024, 1} }, |
| 11663 | .block_erase = spi_block_erase_c7, |
| 11664 | } |
| 11665 | }, |
| 11666 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 11667 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11668 | .write = spi_chip_write_256, |
| 11669 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 11670 | .voltage = {2700, 3600}, |
| 11671 | }, |
| 11672 | |
| 11673 | { |
| 11674 | .vendor = "Nantronics", |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 11675 | .name = "N25S20", |
| 11676 | .bustype = BUS_SPI, |
| 11677 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 11678 | .model_id = NANTRONICS_N25S20, |
| 11679 | .total_size = 256, |
| 11680 | .page_size = 256, |
| 11681 | .feature_bits = FEATURE_WRSR_WREN, |
| 11682 | .tested = TEST_UNTESTED, |
| 11683 | .probe = probe_spi_rdid, |
| 11684 | .probe_timing = TIMING_ZERO, |
| 11685 | .block_erasers = |
| 11686 | { |
| 11687 | { |
| 11688 | .eraseblocks = { {4 * 1024, 64} }, |
| 11689 | .block_erase = spi_block_erase_20, |
| 11690 | }, { |
| 11691 | .eraseblocks = { {4 * 1024, 64} }, |
| 11692 | .block_erase = spi_block_erase_d7, |
| 11693 | }, { |
| 11694 | .eraseblocks = { {32 * 1024, 8} }, |
| 11695 | .block_erase = spi_block_erase_52, |
| 11696 | }, { |
| 11697 | .eraseblocks = { {64 * 1024, 4} }, |
| 11698 | .block_erase = spi_block_erase_d8, |
| 11699 | }, { |
| 11700 | .eraseblocks = { {256 * 1024, 1} }, |
| 11701 | .block_erase = spi_block_erase_60, |
| 11702 | }, { |
| 11703 | .eraseblocks = { {256 * 1024, 1} }, |
| 11704 | .block_erase = spi_block_erase_c7, |
| 11705 | } |
| 11706 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11707 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 11708 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11709 | .write = spi_chip_write_256, |
| 11710 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 11711 | .voltage = {2700, 3600}, |
| 11712 | }, |
| 11713 | |
| 11714 | { |
| 11715 | .vendor = "Nantronics", |
| 11716 | .name = "N25S40", |
| 11717 | .bustype = BUS_SPI, |
| 11718 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 11719 | .model_id = NANTRONICS_N25S40, |
| 11720 | .total_size = 512, |
| 11721 | .page_size = 256, |
| 11722 | .feature_bits = FEATURE_WRSR_WREN, |
| 11723 | .tested = TEST_UNTESTED, |
| 11724 | .probe = probe_spi_rdid, |
| 11725 | .probe_timing = TIMING_ZERO, |
| 11726 | .block_erasers = |
| 11727 | { |
| 11728 | { |
| 11729 | .eraseblocks = { {4 * 1024, 128} }, |
| 11730 | .block_erase = spi_block_erase_20, |
| 11731 | }, { |
| 11732 | .eraseblocks = { {4 * 1024, 128} }, |
| 11733 | .block_erase = spi_block_erase_d7, |
| 11734 | }, { |
| 11735 | .eraseblocks = { {32 * 1024, 16} }, |
| 11736 | .block_erase = spi_block_erase_52, |
| 11737 | }, { |
| 11738 | .eraseblocks = { {64 * 1024, 8} }, |
| 11739 | .block_erase = spi_block_erase_d8, |
| 11740 | }, { |
| 11741 | .eraseblocks = { {512 * 1024, 1} }, |
| 11742 | .block_erase = spi_block_erase_60, |
| 11743 | }, { |
| 11744 | .eraseblocks = { {512 * 1024, 1} }, |
| 11745 | .block_erase = spi_block_erase_c7, |
| 11746 | } |
| 11747 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11748 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 11749 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11750 | .write = spi_chip_write_256, |
| 11751 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 11752 | .voltage = {2700, 3600}, |
| 11753 | }, |
| 11754 | |
| 11755 | { |
| 11756 | .vendor = "Nantronics", |
| 11757 | .name = "N25S80", |
| 11758 | .bustype = BUS_SPI, |
| 11759 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 11760 | .model_id = NANTRONICS_N25S80, |
| 11761 | .total_size = 1024, |
| 11762 | .page_size = 256, |
| 11763 | .feature_bits = FEATURE_WRSR_WREN, |
| 11764 | .tested = TEST_UNTESTED, |
| 11765 | .probe = probe_spi_rdid, |
| 11766 | .probe_timing = TIMING_ZERO, |
| 11767 | .block_erasers = |
| 11768 | { |
| 11769 | { |
| 11770 | .eraseblocks = { {4 * 1024, 256} }, |
| 11771 | .block_erase = spi_block_erase_20, |
| 11772 | }, { |
| 11773 | .eraseblocks = { {32 * 1024, 32} }, |
| 11774 | .block_erase = spi_block_erase_52, |
| 11775 | }, { |
| 11776 | .eraseblocks = { {64 * 1024, 16} }, |
| 11777 | .block_erase = spi_block_erase_d8, |
| 11778 | }, { |
| 11779 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11780 | .block_erase = spi_block_erase_60, |
| 11781 | }, { |
| 11782 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11783 | .block_erase = spi_block_erase_c7, |
| 11784 | } |
| 11785 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11786 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 11787 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11788 | .write = spi_chip_write_256, |
| 11789 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 11790 | .voltage = {2700, 3600}, |
| 11791 | }, |
| 11792 | |
| 11793 | { |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 11794 | .vendor = "PMC", |
| 11795 | .name = "Pm25LD010(C)", |
| 11796 | .bustype = BUS_SPI, |
| 11797 | .manufacture_id = PMC_ID, |
| 11798 | .model_id = PMC_PM25LD010, |
| 11799 | .total_size = 128, |
| 11800 | .page_size = 256, |
| 11801 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 11802 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 11803 | .probe = probe_spi_rdid, |
| 11804 | .probe_timing = TIMING_ZERO, |
| 11805 | .block_erasers = |
| 11806 | { |
| 11807 | { |
| 11808 | .eraseblocks = { {4 * 1024, 32} }, |
| 11809 | .block_erase = spi_block_erase_20, |
| 11810 | }, { |
| 11811 | .eraseblocks = { {4 * 1024, 32} }, |
| 11812 | .block_erase = spi_block_erase_d7, |
| 11813 | }, { |
| 11814 | .eraseblocks = { {32 * 1024, 4} }, |
| 11815 | .block_erase = spi_block_erase_d8, |
| 11816 | }, { |
| 11817 | .eraseblocks = { {128 * 1024, 1} }, |
| 11818 | .block_erase = spi_block_erase_60, |
| 11819 | }, { |
| 11820 | .eraseblocks = { {128 * 1024, 1} }, |
| 11821 | .block_erase = spi_block_erase_c7, |
| 11822 | } |
| 11823 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11824 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 11825 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 11826 | .write = spi_chip_write_256, |
| 11827 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 11828 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */ |
| 11829 | }, |
| 11830 | |
| 11831 | { |
| 11832 | .vendor = "PMC", |
| 11833 | .name = "Pm25LD020(C)", |
| 11834 | .bustype = BUS_SPI, |
| 11835 | .manufacture_id = PMC_ID, |
| 11836 | .model_id = PMC_PM25LD020, |
| 11837 | .total_size = 256, |
| 11838 | .page_size = 256, |
| 11839 | .feature_bits = FEATURE_WRSR_WREN, |
Angel Pons | f5822a8 | 2018-09-30 20:09:58 +0200 | [diff] [blame] | 11840 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 11841 | .probe = probe_spi_rdid, |
| 11842 | .probe_timing = TIMING_ZERO, |
| 11843 | .block_erasers = |
| 11844 | { |
| 11845 | { |
| 11846 | .eraseblocks = { {4 * 1024, 64} }, |
| 11847 | .block_erase = spi_block_erase_20, |
| 11848 | }, { |
| 11849 | .eraseblocks = { {4 * 1024, 64} }, |
| 11850 | .block_erase = spi_block_erase_d7, |
| 11851 | }, { |
| 11852 | .eraseblocks = { {64 * 1024, 4} }, |
| 11853 | .block_erase = spi_block_erase_d8, |
| 11854 | }, { |
| 11855 | .eraseblocks = { {256 * 1024, 1} }, |
| 11856 | .block_erase = spi_block_erase_60, |
| 11857 | }, { |
| 11858 | .eraseblocks = { {256 * 1024, 1} }, |
| 11859 | .block_erase = spi_block_erase_c7, |
| 11860 | } |
| 11861 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11862 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 11863 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 11864 | .write = spi_chip_write_256, |
| 11865 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 11866 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */ |
| 11867 | }, |
| 11868 | |
| 11869 | { |
| 11870 | .vendor = "PMC", |
| 11871 | .name = "Pm25LD040(C)", |
| 11872 | .bustype = BUS_SPI, |
| 11873 | .manufacture_id = PMC_ID, |
| 11874 | .model_id = PMC_PM25LV040, |
| 11875 | .total_size = 512, |
| 11876 | .page_size = 256, |
| 11877 | .feature_bits = FEATURE_WRSR_WREN, |
Angel Pons | 05127bf | 2018-09-30 20:23:24 +0200 | [diff] [blame] | 11878 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 11879 | .probe = probe_spi_rdid, |
| 11880 | .probe_timing = TIMING_ZERO, |
| 11881 | .block_erasers = |
| 11882 | { |
| 11883 | { |
| 11884 | .eraseblocks = { {4 * 1024, 128} }, |
| 11885 | .block_erase = spi_block_erase_20, |
| 11886 | }, { |
| 11887 | .eraseblocks = { {4 * 1024, 128} }, |
| 11888 | .block_erase = spi_block_erase_d7, |
| 11889 | }, { |
| 11890 | .eraseblocks = { {64 * 1024, 8} }, |
| 11891 | .block_erase = spi_block_erase_d8, |
| 11892 | }, { |
| 11893 | .eraseblocks = { {512 * 1024, 1} }, |
| 11894 | .block_erase = spi_block_erase_60, |
| 11895 | }, { |
| 11896 | .eraseblocks = { {512 * 1024, 1} }, |
| 11897 | .block_erase = spi_block_erase_c7, |
| 11898 | } |
| 11899 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11900 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 11901 | .unlock = spi_disable_blockprotect, |
| 11902 | .write = spi_chip_write_256, |
| 11903 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 11904 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */ |
| 11905 | }, |
| 11906 | |
Steven Honeyman | 81a8fb7 | 2015-06-02 22:32:24 +0000 | [diff] [blame] | 11907 | { |
| 11908 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11909 | .name = "Pm25LD256C", |
| 11910 | .bustype = BUS_SPI, |
| 11911 | .manufacture_id = PMC_ID, |
| 11912 | .model_id = PMC_PM25LD256C, |
| 11913 | .total_size = 32, |
| 11914 | .page_size = 256, |
| 11915 | .feature_bits = FEATURE_WRSR_WREN, |
| 11916 | .tested = TEST_UNTESTED, |
| 11917 | .probe = probe_spi_rdid, |
| 11918 | .probe_timing = TIMING_ZERO, |
| 11919 | .block_erasers = |
| 11920 | { |
| 11921 | { |
| 11922 | .eraseblocks = { {4 * 1024, 8} }, |
| 11923 | .block_erase = spi_block_erase_20, |
| 11924 | }, { |
| 11925 | .eraseblocks = { {4 * 1024, 8} }, |
| 11926 | .block_erase = spi_block_erase_d7, |
| 11927 | }, { |
| 11928 | .eraseblocks = { {32 * 1024, 1} }, |
| 11929 | .block_erase = spi_block_erase_d8, |
| 11930 | }, { |
| 11931 | .eraseblocks = { {32 * 1024, 1} }, |
| 11932 | .block_erase = spi_block_erase_60, |
| 11933 | }, { |
| 11934 | .eraseblocks = { {32 * 1024, 1} }, |
| 11935 | .block_erase = spi_block_erase_c7, |
| 11936 | } |
| 11937 | }, |
| 11938 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 11939 | .unlock = spi_disable_blockprotect, |
| 11940 | .write = spi_chip_write_256, |
| 11941 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 11942 | .voltage = {2700, 3600}, |
| 11943 | }, |
| 11944 | |
| 11945 | { |
| 11946 | .vendor = "PMC", |
| 11947 | .name = "Pm25LD512(C)", |
| 11948 | .bustype = BUS_SPI, |
| 11949 | .manufacture_id = PMC_ID, |
| 11950 | .model_id = PMC_PM25LD512, |
| 11951 | .total_size = 64, |
| 11952 | .page_size = 256, |
| 11953 | .feature_bits = FEATURE_WRSR_WREN, |
| 11954 | .tested = TEST_OK_PREW, |
| 11955 | .probe = probe_spi_rdid, |
| 11956 | .probe_timing = TIMING_ZERO, |
| 11957 | .block_erasers = |
| 11958 | { |
| 11959 | { |
| 11960 | .eraseblocks = { {4 * 1024, 16} }, |
| 11961 | .block_erase = spi_block_erase_20, |
| 11962 | }, { |
| 11963 | .eraseblocks = { {4 * 1024, 16} }, |
| 11964 | .block_erase = spi_block_erase_d7, |
| 11965 | }, { |
| 11966 | .eraseblocks = { {32 * 1024, 2} }, |
| 11967 | .block_erase = spi_block_erase_d8, |
| 11968 | }, { |
| 11969 | .eraseblocks = { {64 * 1024, 1} }, |
| 11970 | .block_erase = spi_block_erase_60, |
| 11971 | }, { |
| 11972 | .eraseblocks = { {64 * 1024, 1} }, |
| 11973 | .block_erase = spi_block_erase_c7, |
| 11974 | } |
| 11975 | }, |
| 11976 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 11977 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 11978 | .write = spi_chip_write_256, |
| 11979 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 11980 | .voltage = {2300, 3600}, |
| 11981 | }, |
| 11982 | |
| 11983 | { |
| 11984 | .vendor = "PMC", |
| 11985 | .name = "Pm25LQ016", |
| 11986 | .bustype = BUS_SPI, |
| 11987 | .manufacture_id = PMC_ID, |
| 11988 | .model_id = PMC_PM25LQ016, |
| 11989 | .total_size = 2048, |
| 11990 | .page_size = 256, |
| 11991 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 11992 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11993 | .tested = TEST_UNTESTED, |
| 11994 | .probe = probe_spi_rdid, |
| 11995 | .probe_timing = TIMING_ZERO, |
| 11996 | .block_erasers = |
| 11997 | { |
| 11998 | { |
| 11999 | .eraseblocks = { {4 * 1024, 512} }, |
| 12000 | .block_erase = spi_block_erase_20, |
| 12001 | }, { |
| 12002 | .eraseblocks = { {4 * 1024, 512} }, |
| 12003 | .block_erase = spi_block_erase_d7, |
| 12004 | }, { |
| 12005 | .eraseblocks = { {64 * 1024, 32} }, |
| 12006 | .block_erase = spi_block_erase_d8, |
| 12007 | }, { |
| 12008 | .eraseblocks = { {2048 * 1024, 1} }, |
| 12009 | .block_erase = spi_block_erase_60, |
| 12010 | }, { |
| 12011 | .eraseblocks = { {2048 * 1024, 1} }, |
| 12012 | .block_erase = spi_block_erase_c7, |
| 12013 | } |
| 12014 | }, |
| 12015 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 12016 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12017 | .write = spi_chip_write_256, |
| 12018 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12019 | .voltage = {2300, 3600}, |
| 12020 | }, |
| 12021 | |
| 12022 | { |
| 12023 | .vendor = "PMC", |
Steven Honeyman | 81a8fb7 | 2015-06-02 22:32:24 +0000 | [diff] [blame] | 12024 | .name = "Pm25LQ020", |
| 12025 | .bustype = BUS_SPI, |
| 12026 | .manufacture_id = PMC_ID, |
| 12027 | .model_id = PMC_PM25LQ020, |
| 12028 | .total_size = 256, |
| 12029 | .page_size = 256, |
| 12030 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 12031 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12032 | .tested = TEST_UNTESTED, |
| 12033 | .probe = probe_spi_rdid, |
| 12034 | .probe_timing = TIMING_ZERO, |
| 12035 | .block_erasers = |
| 12036 | { |
| 12037 | { |
| 12038 | .eraseblocks = { {4 * 1024, 64} }, |
| 12039 | .block_erase = spi_block_erase_20, |
| 12040 | }, { |
| 12041 | .eraseblocks = { {4 * 1024, 64} }, |
| 12042 | .block_erase = spi_block_erase_d7, |
| 12043 | }, { |
| 12044 | .eraseblocks = { {64 * 1024, 4} }, |
| 12045 | .block_erase = spi_block_erase_d8, |
| 12046 | }, { |
| 12047 | .eraseblocks = { {256 * 1024, 1} }, |
| 12048 | .block_erase = spi_block_erase_60, |
| 12049 | }, { |
| 12050 | .eraseblocks = { {256 * 1024, 1} }, |
| 12051 | .block_erase = spi_block_erase_c7, |
| 12052 | } |
| 12053 | }, |
| 12054 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 12055 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12056 | .write = spi_chip_write_256, |
| 12057 | .read = spi_chip_read, |
| 12058 | .voltage = {2300, 3600}, |
| 12059 | }, |
| 12060 | |
| 12061 | { |
| 12062 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12063 | .name = "Pm25LQ032C", |
| 12064 | .bustype = BUS_SPI, |
| 12065 | .manufacture_id = PMC_ID, |
| 12066 | .model_id = PMC_PM25LQ032C, |
| 12067 | .total_size = 4096, |
| 12068 | .page_size = 256, |
| 12069 | /* OTP: 64B total; read 0x4B, write 0xB1 */ |
| 12070 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12071 | .tested = TEST_OK_PREW, |
| 12072 | .probe = probe_spi_rdid, |
| 12073 | .probe_timing = TIMING_ZERO, |
| 12074 | .block_erasers = |
| 12075 | { |
| 12076 | { |
| 12077 | .eraseblocks = { {4 * 1024, 1024} }, |
| 12078 | .block_erase = spi_block_erase_20, |
| 12079 | }, { |
| 12080 | .eraseblocks = { {4 * 1024, 1024} }, |
| 12081 | .block_erase = spi_block_erase_d7, |
| 12082 | }, { |
| 12083 | .eraseblocks = { {64 * 1024, 64} }, |
| 12084 | .block_erase = spi_block_erase_d8, |
| 12085 | }, { |
| 12086 | .eraseblocks = { {4096 * 1024, 1} }, |
| 12087 | .block_erase = spi_block_erase_60, |
| 12088 | }, { |
| 12089 | .eraseblocks = { {4096 * 1024, 1} }, |
| 12090 | .block_erase = spi_block_erase_c7, |
| 12091 | } |
| 12092 | }, |
| 12093 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 12094 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12095 | .write = spi_chip_write_256, |
| 12096 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12097 | .voltage = {2700, 3600}, |
| 12098 | }, |
| 12099 | |
| 12100 | { |
| 12101 | .vendor = "PMC", |
Steven Honeyman | 81a8fb7 | 2015-06-02 22:32:24 +0000 | [diff] [blame] | 12102 | .name = "Pm25LQ040", |
| 12103 | .bustype = BUS_SPI, |
| 12104 | .manufacture_id = PMC_ID, |
| 12105 | .model_id = PMC_PM25LQ040, |
| 12106 | .total_size = 512, |
| 12107 | .page_size = 256, |
| 12108 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 12109 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12110 | .tested = TEST_UNTESTED, |
| 12111 | .probe = probe_spi_rdid, |
| 12112 | .probe_timing = TIMING_ZERO, |
| 12113 | .block_erasers = |
| 12114 | { |
| 12115 | { |
| 12116 | .eraseblocks = { {4 * 1024, 128} }, |
| 12117 | .block_erase = spi_block_erase_20, |
| 12118 | }, { |
| 12119 | .eraseblocks = { {4 * 1024, 128} }, |
| 12120 | .block_erase = spi_block_erase_d7, |
| 12121 | }, { |
| 12122 | .eraseblocks = { {64 * 1024, 8} }, |
| 12123 | .block_erase = spi_block_erase_d8, |
| 12124 | }, { |
| 12125 | .eraseblocks = { {512 * 1024, 1} }, |
| 12126 | .block_erase = spi_block_erase_60, |
| 12127 | }, { |
| 12128 | .eraseblocks = { {512 * 1024, 1} }, |
| 12129 | .block_erase = spi_block_erase_c7, |
| 12130 | } |
| 12131 | }, |
| 12132 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 12133 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12134 | .write = spi_chip_write_256, |
| 12135 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12136 | .voltage = {2300, 3600}, |
| 12137 | }, |
| 12138 | |
| 12139 | { |
| 12140 | .vendor = "PMC", |
| 12141 | .name = "Pm25LQ080", |
| 12142 | .bustype = BUS_SPI, |
| 12143 | .manufacture_id = PMC_ID, |
| 12144 | .model_id = PMC_PM25LQ080, |
| 12145 | .total_size = 1024, |
| 12146 | .page_size = 256, |
| 12147 | /* OTP: 64B total; read 0x4B, write 0xB1 */ |
| 12148 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12149 | .tested = TEST_UNTESTED, |
| 12150 | .probe = probe_spi_rdid, |
| 12151 | .probe_timing = TIMING_ZERO, |
| 12152 | .block_erasers = |
| 12153 | { |
| 12154 | { |
| 12155 | .eraseblocks = { {4 * 1024, 256} }, |
| 12156 | .block_erase = spi_block_erase_20, |
| 12157 | }, { |
| 12158 | .eraseblocks = { {4 * 1024, 256} }, |
| 12159 | .block_erase = spi_block_erase_d7, |
| 12160 | }, { |
| 12161 | .eraseblocks = { {64 * 1024, 16} }, |
| 12162 | .block_erase = spi_block_erase_d8, |
| 12163 | }, { |
| 12164 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12165 | .block_erase = spi_block_erase_60, |
| 12166 | }, { |
| 12167 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12168 | .block_erase = spi_block_erase_c7, |
| 12169 | } |
| 12170 | }, |
| 12171 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 12172 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12173 | .write = spi_chip_write_256, |
| 12174 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12175 | .voltage = {2300, 3600}, |
| 12176 | }, |
| 12177 | |
| 12178 | { |
| 12179 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12180 | .name = "Pm25LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12181 | .bustype = BUS_SPI, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 12182 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12183 | .model_id = PMC_PM25LV010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12184 | .total_size = 128, |
| 12185 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12186 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 12187 | .tested = TEST_OK_PREW, |
| 12188 | .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] | 12189 | .probe_timing = TIMING_ZERO, |
| 12190 | .block_erasers = |
| 12191 | { |
| 12192 | { |
| 12193 | .eraseblocks = { {4 * 1024, 32} }, |
| 12194 | .block_erase = spi_block_erase_d7, |
| 12195 | }, { |
| 12196 | .eraseblocks = { {32 * 1024, 4} }, |
| 12197 | .block_erase = spi_block_erase_d8, |
| 12198 | }, { |
| 12199 | .eraseblocks = { {128 * 1024, 1} }, |
| 12200 | .block_erase = spi_block_erase_c7, |
| 12201 | } |
| 12202 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12203 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 12204 | .unlock = spi_disable_blockprotect, |
| 12205 | .write = spi_chip_write_256, |
| 12206 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12207 | .voltage = {2700, 3600}, |
| 12208 | }, |
| 12209 | |
| 12210 | { |
| 12211 | .vendor = "PMC", |
| 12212 | .name = "Pm25LV010A", |
| 12213 | .bustype = BUS_SPI, |
| 12214 | .manufacture_id = PMC_ID, |
| 12215 | .model_id = PMC_PM25LV010, |
| 12216 | .total_size = 128, |
| 12217 | .page_size = 256, |
| 12218 | .feature_bits = FEATURE_WRSR_WREN, |
| 12219 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12220 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12221 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12222 | .block_erasers = |
| 12223 | { |
| 12224 | { |
| 12225 | .eraseblocks = { {4 * 1024, 32} }, |
| 12226 | .block_erase = spi_block_erase_d7, |
| 12227 | }, { |
| 12228 | .eraseblocks = { {32 * 1024, 4} }, |
| 12229 | .block_erase = spi_block_erase_d8, |
| 12230 | }, { |
| 12231 | .eraseblocks = { {128 * 1024, 1} }, |
| 12232 | .block_erase = spi_block_erase_c7, |
| 12233 | } |
| 12234 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12235 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12236 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12237 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 12238 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 12239 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12240 | }, |
| 12241 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12242 | { |
| 12243 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12244 | .name = "Pm25LV016B", |
| 12245 | .bustype = BUS_SPI, |
| 12246 | .manufacture_id = PMC_ID, |
| 12247 | .model_id = PMC_PM25LV016B, |
| 12248 | .total_size = 2048, |
| 12249 | .page_size = 256, |
| 12250 | .feature_bits = FEATURE_WRSR_WREN, |
| 12251 | .tested = TEST_UNTESTED, |
| 12252 | .probe = probe_spi_rdid, |
| 12253 | .probe_timing = TIMING_ZERO, |
| 12254 | .block_erasers = |
| 12255 | { |
| 12256 | { |
| 12257 | .eraseblocks = { {4 * 1024, 512} }, |
| 12258 | .block_erase = spi_block_erase_d7, |
| 12259 | }, { |
| 12260 | .eraseblocks = { {4 * 1024, 512} }, |
| 12261 | .block_erase = spi_block_erase_20, |
| 12262 | }, { |
| 12263 | .eraseblocks = { {64 * 1024, 32} }, |
| 12264 | .block_erase = spi_block_erase_d8, |
| 12265 | }, { |
| 12266 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12267 | .block_erase = spi_block_erase_60, |
| 12268 | }, { |
| 12269 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12270 | .block_erase = spi_block_erase_c7, |
| 12271 | } |
| 12272 | }, |
| 12273 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 12274 | .unlock = spi_disable_blockprotect, |
| 12275 | .write = spi_chip_write_256, |
| 12276 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12277 | .voltage = {2700, 3600}, |
| 12278 | }, |
| 12279 | |
| 12280 | { |
| 12281 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12282 | .name = "Pm25LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12283 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12284 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12285 | .model_id = PMC_PM25LV020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12286 | .total_size = 256, |
| 12287 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12288 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12289 | .tested = TEST_UNTESTED, |
| 12290 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12291 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12292 | .block_erasers = |
| 12293 | { |
| 12294 | { |
| 12295 | .eraseblocks = { {4 * 1024, 64} }, |
| 12296 | .block_erase = spi_block_erase_d7, |
| 12297 | }, { |
| 12298 | .eraseblocks = { {64 * 1024, 4} }, |
| 12299 | .block_erase = spi_block_erase_d8, |
| 12300 | }, { |
| 12301 | .eraseblocks = { {256 * 1024, 1} }, |
| 12302 | .block_erase = spi_block_erase_c7, |
| 12303 | } |
| 12304 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12305 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12306 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12307 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12308 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12309 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12310 | }, |
| 12311 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12312 | { |
| 12313 | .vendor = "PMC", |
| 12314 | .name = "Pm25LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12315 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12316 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12317 | .model_id = PMC_PM25LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12318 | .total_size = 512, |
| 12319 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12320 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 12321 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12322 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12323 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12324 | .block_erasers = |
| 12325 | { |
| 12326 | { |
| 12327 | .eraseblocks = { {4 * 1024, 128} }, |
| 12328 | .block_erase = spi_block_erase_d7, |
| 12329 | }, { |
| 12330 | .eraseblocks = { {64 * 1024, 8} }, |
| 12331 | .block_erase = spi_block_erase_d8, |
| 12332 | }, { |
| 12333 | .eraseblocks = { {512 * 1024, 1} }, |
| 12334 | .block_erase = spi_block_erase_c7, |
| 12335 | } |
| 12336 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12337 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12338 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12339 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 12340 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12341 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12342 | }, |
| 12343 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12344 | { |
| 12345 | .vendor = "PMC", |
| 12346 | .name = "Pm25LV080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12347 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12348 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12349 | .model_id = PMC_PM25LV080B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12350 | .total_size = 1024, |
| 12351 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12352 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12353 | .tested = TEST_UNTESTED, |
| 12354 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12355 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12356 | .block_erasers = |
| 12357 | { |
| 12358 | { |
| 12359 | .eraseblocks = { {4 * 1024, 256} }, |
| 12360 | .block_erase = spi_block_erase_d7, |
| 12361 | }, { |
| 12362 | .eraseblocks = { {4 * 1024, 256} }, |
| 12363 | .block_erase = spi_block_erase_20, |
| 12364 | }, { |
| 12365 | .eraseblocks = { {64 * 1024, 16} }, |
| 12366 | .block_erase = spi_block_erase_d8, |
| 12367 | }, { |
| 12368 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12369 | .block_erase = spi_block_erase_60, |
| 12370 | }, { |
| 12371 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12372 | .block_erase = spi_block_erase_c7, |
| 12373 | } |
| 12374 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12375 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12376 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12377 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 12378 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12379 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12380 | }, |
| 12381 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12382 | { |
| 12383 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12384 | .name = "Pm25LV512(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12385 | .bustype = BUS_SPI, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12386 | .manufacture_id = PMC_ID_NOPREFIX, |
| 12387 | .model_id = PMC_PM25LV512, |
| 12388 | .total_size = 64, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12389 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12390 | .feature_bits = FEATURE_WRSR_WREN, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12391 | .tested = TEST_OK_PREW, |
| 12392 | .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] | 12393 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12394 | .block_erasers = |
| 12395 | { |
| 12396 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12397 | .eraseblocks = { {4 * 1024, 16} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12398 | .block_erase = spi_block_erase_d7, |
| 12399 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12400 | .eraseblocks = { {32 * 1024, 2} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12401 | .block_erase = spi_block_erase_d8, |
| 12402 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12403 | .eraseblocks = { {64 * 1024, 1} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12404 | .block_erase = spi_block_erase_c7, |
| 12405 | } |
| 12406 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12407 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12408 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12409 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 12410 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 12411 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12412 | }, |
| 12413 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12414 | { |
| 12415 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12416 | .name = "Pm29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12417 | .bustype = BUS_PARALLEL, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 12418 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12419 | .model_id = PMC_PM29F002B, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 12420 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12421 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12422 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 12423 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12424 | .probe = probe_jedec, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 12425 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12426 | .block_erasers = |
| 12427 | { |
| 12428 | { |
| 12429 | .eraseblocks = { |
| 12430 | {16 * 1024, 1}, |
| 12431 | {8 * 1024, 2}, |
| 12432 | {96 * 1024, 1}, |
| 12433 | {128 * 1024, 1}, |
| 12434 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12435 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12436 | }, { |
| 12437 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12438 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12439 | }, |
| 12440 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12441 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 12442 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12443 | .voltage = {4500, 5500}, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 12444 | }, |
| 12445 | |
| 12446 | { |
| 12447 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12448 | .name = "Pm29F002T", |
| 12449 | .bustype = BUS_PARALLEL, |
| 12450 | .manufacture_id = PMC_ID_NOPREFIX, |
| 12451 | .model_id = PMC_PM29F002T, |
| 12452 | .total_size = 256, |
| 12453 | .page_size = 8 * 1024, |
| 12454 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 12455 | .tested = TEST_OK_PREW, |
| 12456 | .probe = probe_jedec, |
| 12457 | .probe_timing = TIMING_FIXME, |
| 12458 | .block_erasers = |
| 12459 | { |
| 12460 | { |
| 12461 | .eraseblocks = { |
| 12462 | {128 * 1024, 1}, |
| 12463 | {96 * 1024, 1}, |
| 12464 | {8 * 1024, 2}, |
| 12465 | {16 * 1024, 1}, |
| 12466 | }, |
| 12467 | .block_erase = erase_sector_jedec, |
| 12468 | }, { |
| 12469 | .eraseblocks = { {256 * 1024, 1} }, |
| 12470 | .block_erase = erase_chip_block_jedec, |
| 12471 | }, |
| 12472 | }, |
| 12473 | .write = write_jedec_1, |
| 12474 | .read = read_memmapped, |
| 12475 | .voltage = {4500, 5500}, |
| 12476 | }, |
| 12477 | |
| 12478 | { |
| 12479 | .vendor = "PMC", |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 12480 | .name = "Pm39LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12481 | .bustype = BUS_PARALLEL, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 12482 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12483 | .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] | 12484 | .total_size = 128, |
| 12485 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12486 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 12487 | .tested = TEST_OK_PREW, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 12488 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 12489 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12490 | .block_erasers = |
| 12491 | { |
| 12492 | { |
| 12493 | .eraseblocks = { {4 * 1024, 32} }, |
| 12494 | .block_erase = erase_sector_jedec, |
| 12495 | }, { |
| 12496 | .eraseblocks = { {64 * 1024, 2} }, |
| 12497 | .block_erase = erase_block_jedec, |
| 12498 | }, { |
| 12499 | .eraseblocks = { {128 * 1024, 1} }, |
| 12500 | .block_erase = erase_chip_block_jedec, |
| 12501 | } |
| 12502 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12503 | .write = write_jedec_1, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 12504 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12505 | .voltage = {2700, 3600}, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 12506 | }, |
| 12507 | |
| 12508 | { |
| 12509 | .vendor = "PMC", |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12510 | .name = "Pm39LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12511 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12512 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12513 | .model_id = PMC_PM39LV020, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12514 | .total_size = 256, |
| 12515 | .page_size = 4096, |
| 12516 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 12517 | .tested = TEST_UNTESTED, |
| 12518 | .probe = probe_jedec, |
| 12519 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 12520 | .block_erasers = |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12521 | { |
| 12522 | { |
| 12523 | .eraseblocks = { {4 * 1024, 64} }, |
| 12524 | .block_erase = erase_sector_jedec, |
| 12525 | }, { |
| 12526 | .eraseblocks = { {64 * 1024, 4} }, |
| 12527 | .block_erase = erase_block_jedec, |
| 12528 | }, { |
| 12529 | .eraseblocks = { {256 * 1024, 1} }, |
| 12530 | .block_erase = erase_chip_block_jedec, |
| 12531 | } |
| 12532 | }, |
| 12533 | .write = write_jedec_1, |
| 12534 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12535 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12536 | }, |
| 12537 | |
| 12538 | { |
| 12539 | .vendor = "PMC", |
| 12540 | .name = "Pm39LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12541 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12542 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12543 | .model_id = PMC_PM39LV040, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12544 | .total_size = 512, |
| 12545 | .page_size = 4096, |
| 12546 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 12547 | .tested = TEST_OK_PR, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12548 | .probe = probe_jedec, |
| 12549 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 12550 | .block_erasers = |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12551 | { |
| 12552 | { |
| 12553 | .eraseblocks = { {4 * 1024, 128} }, |
| 12554 | .block_erase = erase_sector_jedec, |
| 12555 | }, { |
| 12556 | .eraseblocks = { {64 * 1024, 8} }, |
| 12557 | .block_erase = erase_block_jedec, |
| 12558 | }, { |
| 12559 | .eraseblocks = { {512 * 1024, 1} }, |
| 12560 | .block_erase = erase_chip_block_jedec, |
| 12561 | } |
| 12562 | }, |
| 12563 | .write = write_jedec_1, |
| 12564 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12565 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12566 | }, |
Kyösti Mälkki | edab1d2 | 2012-05-20 23:32:33 +0000 | [diff] [blame] | 12567 | |
| 12568 | { |
| 12569 | .vendor = "PMC", |
| 12570 | .name = "Pm39LV512", |
| 12571 | .bustype = BUS_PARALLEL, |
| 12572 | .manufacture_id = PMC_ID_NOPREFIX, |
| 12573 | .model_id = PMC_PM39LV512, |
| 12574 | .total_size = 64, |
| 12575 | .page_size = 4096, |
| 12576 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 12577 | .tested = TEST_OK_PREW, |
| 12578 | .probe = probe_jedec, |
| 12579 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 12580 | .block_erasers = |
| 12581 | { |
| 12582 | { |
| 12583 | .eraseblocks = { {4 * 1024, 16} }, |
| 12584 | .block_erase = erase_sector_jedec, |
| 12585 | }, { |
| 12586 | .eraseblocks = { {64 * 1024, 1} }, |
| 12587 | .block_erase = erase_block_jedec, |
| 12588 | }, { |
| 12589 | .eraseblocks = { {64 * 1024, 1} }, |
| 12590 | .block_erase = erase_chip_block_jedec, |
| 12591 | } |
| 12592 | }, |
| 12593 | .write = write_jedec_1, |
| 12594 | .read = read_memmapped, |
| 12595 | .voltage = {2700, 3600}, |
| 12596 | }, |
| 12597 | |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12598 | { |
| 12599 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12600 | .name = "Pm49FL002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12601 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12602 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12603 | .model_id = PMC_PM49FL002, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12604 | .total_size = 256, |
| 12605 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12606 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12607 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 12608 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 12609 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12610 | .block_erasers = |
| 12611 | { |
| 12612 | { |
| 12613 | .eraseblocks = { {4 * 1024, 64} }, |
| 12614 | .block_erase = erase_sector_jedec, |
| 12615 | }, { |
| 12616 | .eraseblocks = { {16 * 1024, 16} }, |
| 12617 | .block_erase = erase_block_jedec, |
| 12618 | }, { |
| 12619 | .eraseblocks = { {256 * 1024, 1} }, |
| 12620 | .block_erase = erase_chip_block_jedec, |
| 12621 | } |
| 12622 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12623 | .unlock = unlock_regspace2_uniform_32k, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 12624 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12625 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12626 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12627 | }, |
| 12628 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12629 | { |
| 12630 | .vendor = "PMC", |
| 12631 | .name = "Pm49FL004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12632 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12633 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12634 | .model_id = PMC_PM49FL004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12635 | .total_size = 512, |
| 12636 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12637 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 12638 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 12639 | .probe = probe_jedec, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 12640 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12641 | .block_erasers = |
| 12642 | { |
| 12643 | { |
| 12644 | .eraseblocks = { {4 * 1024, 128} }, |
| 12645 | .block_erase = erase_sector_jedec, |
| 12646 | }, { |
| 12647 | .eraseblocks = { {64 * 1024, 8} }, |
| 12648 | .block_erase = erase_block_jedec, |
| 12649 | }, { |
| 12650 | .eraseblocks = { {512 * 1024, 1} }, |
| 12651 | .block_erase = erase_chip_block_jedec, |
| 12652 | } |
| 12653 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12654 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 12655 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12656 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12657 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12658 | }, |
| 12659 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12660 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12661 | .vendor = "SST", |
Idwer Vollering | f3607d1 | 2014-05-07 15:25:04 +0000 | [diff] [blame] | 12662 | .name = "SST25LF020A", |
| 12663 | .bustype = BUS_SPI, |
| 12664 | .manufacture_id = SST_ID, |
| 12665 | .model_id = SST_SST25VF020_REMS, |
| 12666 | .total_size = 256, |
| 12667 | .page_size = 256, |
| 12668 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12669 | .tested = TEST_OK_PREW, |
| 12670 | .probe = probe_spi_rems, |
| 12671 | .probe_timing = TIMING_ZERO, |
| 12672 | .block_erasers = |
| 12673 | { |
| 12674 | { |
| 12675 | .eraseblocks = { {4 * 1024, 64} }, |
| 12676 | .block_erase = spi_block_erase_20, |
| 12677 | }, { |
| 12678 | .eraseblocks = { {32 * 1024, 8} }, |
| 12679 | .block_erase = spi_block_erase_52, |
| 12680 | }, { |
| 12681 | .eraseblocks = { {256 * 1024, 1} }, |
| 12682 | .block_erase = spi_block_erase_60, |
| 12683 | }, |
| 12684 | }, |
| 12685 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 12686 | .unlock = spi_disable_blockprotect, |
| 12687 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 12688 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12689 | .voltage = {2700, 3600}, |
| 12690 | }, |
| 12691 | |
| 12692 | { |
| 12693 | .vendor = "SST", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12694 | .name = "SST25LF040A", |
| 12695 | .bustype = BUS_SPI, |
| 12696 | .manufacture_id = SST_ID, |
| 12697 | .model_id = SST_SST25VF040_REMS, |
| 12698 | .total_size = 512, |
| 12699 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12700 | .feature_bits = FEATURE_WRSR_EWSR, |
Uwe Hermann | 4335ec8 | 2011-09-07 20:20:25 +0000 | [diff] [blame] | 12701 | .tested = TEST_OK_PREW, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12702 | .probe = probe_spi_res2, |
| 12703 | .probe_timing = TIMING_ZERO, |
| 12704 | .block_erasers = |
| 12705 | { |
| 12706 | { |
| 12707 | .eraseblocks = { {4 * 1024, 128} }, |
| 12708 | .block_erase = spi_block_erase_20, |
| 12709 | }, { |
| 12710 | .eraseblocks = { {32 * 1024, 16} }, |
| 12711 | .block_erase = spi_block_erase_52, |
| 12712 | }, { |
| 12713 | .eraseblocks = { {512 * 1024, 1} }, |
| 12714 | .block_erase = spi_block_erase_60, |
| 12715 | }, |
| 12716 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12717 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12718 | .unlock = spi_disable_blockprotect, |
| 12719 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 12720 | .read = spi_chip_read, |
| 12721 | .voltage = {3000, 3600}, |
| 12722 | }, |
| 12723 | |
| 12724 | { |
| 12725 | .vendor = "SST", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 12726 | .name = "SST25LF080(A)", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12727 | .bustype = BUS_SPI, |
| 12728 | .manufacture_id = SST_ID, |
| 12729 | .model_id = SST_SST25VF080_REMS, |
| 12730 | .total_size = 1024, |
| 12731 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 12732 | .feature_bits = FEATURE_WRSR_EITHER, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12733 | .tested = TEST_UNTESTED, |
| 12734 | .probe = probe_spi_res2, |
| 12735 | .probe_timing = TIMING_ZERO, |
| 12736 | .block_erasers = |
| 12737 | { |
| 12738 | { |
| 12739 | .eraseblocks = { {4 * 1024, 256} }, |
| 12740 | .block_erase = spi_block_erase_20, |
| 12741 | }, { |
| 12742 | .eraseblocks = { {32 * 1024, 32} }, |
| 12743 | .block_erase = spi_block_erase_52, |
| 12744 | }, { |
| 12745 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12746 | .block_erase = spi_block_erase_60, |
| 12747 | }, |
| 12748 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12749 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12750 | .unlock = spi_disable_blockprotect, |
| 12751 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 12752 | .read = spi_chip_read, |
| 12753 | .voltage = {3000, 3600}, |
| 12754 | }, |
| 12755 | |
| 12756 | { |
| 12757 | .vendor = "SST", |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12758 | .name = "SST25VF010(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12759 | .bustype = BUS_SPI, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12760 | .manufacture_id = SST_ID, |
| 12761 | .model_id = SST_SST25VF010_REMS, |
| 12762 | .total_size = 128, |
| 12763 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12764 | .feature_bits = FEATURE_WRSR_EWSR, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12765 | .tested = TEST_OK_PREW, |
| 12766 | .probe = probe_spi_rems, |
| 12767 | .probe_timing = TIMING_ZERO, |
| 12768 | .block_erasers = |
| 12769 | { |
| 12770 | { |
| 12771 | .eraseblocks = { {4 * 1024, 32} }, |
| 12772 | .block_erase = spi_block_erase_20, |
| 12773 | }, { |
| 12774 | .eraseblocks = { {32 * 1024, 4} }, |
| 12775 | .block_erase = spi_block_erase_52, |
| 12776 | }, { |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12777 | .eraseblocks = { {32 * 1024, 4} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12778 | .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12779 | }, { |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12780 | .eraseblocks = { {128 * 1024, 1} }, |
| 12781 | .block_erase = spi_block_erase_60, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12782 | }, { |
| 12783 | .eraseblocks = { {128 * 1024, 1} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12784 | .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12785 | }, |
| 12786 | }, |
| 12787 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 12788 | .unlock = spi_disable_blockprotect, |
| 12789 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12790 | .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12791 | .voltage = {2700, 3600}, |
| 12792 | }, |
| 12793 | |
| 12794 | { |
| 12795 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12796 | .name = "SST25VF016B", |
| 12797 | .bustype = BUS_SPI, |
| 12798 | .manufacture_id = SST_ID, |
| 12799 | .model_id = SST_SST25VF016B, |
| 12800 | .total_size = 2048, |
| 12801 | .page_size = 256, |
| 12802 | .feature_bits = FEATURE_WRSR_EITHER, |
| 12803 | .tested = TEST_OK_PREW, |
| 12804 | .probe = probe_spi_rdid, |
| 12805 | .probe_timing = TIMING_ZERO, |
| 12806 | .block_erasers = |
| 12807 | { |
| 12808 | { |
| 12809 | .eraseblocks = { {4 * 1024, 512} }, |
| 12810 | .block_erase = spi_block_erase_20, |
| 12811 | }, { |
| 12812 | .eraseblocks = { {32 * 1024, 64} }, |
| 12813 | .block_erase = spi_block_erase_52, |
| 12814 | }, { |
| 12815 | .eraseblocks = { {64 * 1024, 32} }, |
| 12816 | .block_erase = spi_block_erase_d8, |
| 12817 | }, { |
| 12818 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12819 | .block_erase = spi_block_erase_60, |
| 12820 | }, { |
| 12821 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12822 | .block_erase = spi_block_erase_c7, |
| 12823 | }, |
| 12824 | }, |
| 12825 | .printlock = spi_prettyprint_status_register_sst25vf016, |
| 12826 | .unlock = spi_disable_blockprotect, |
| 12827 | .write = spi_aai_write, |
| 12828 | .read = spi_chip_read, |
| 12829 | .voltage = {2700, 3600}, |
| 12830 | }, |
| 12831 | |
| 12832 | { |
| 12833 | .vendor = "SST", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12834 | .name = "SST25VF020", |
| 12835 | .bustype = BUS_SPI, |
| 12836 | .manufacture_id = SST_ID, |
| 12837 | .model_id = SST_SST25VF020_REMS, |
| 12838 | .total_size = 256, |
| 12839 | .page_size = 256, |
| 12840 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12841 | .tested = TEST_UNTESTED, |
| 12842 | .probe = probe_spi_rems, |
| 12843 | .probe_timing = TIMING_ZERO, |
| 12844 | .block_erasers = |
| 12845 | { |
| 12846 | { |
| 12847 | .eraseblocks = { {4 * 1024, 64} }, |
| 12848 | .block_erase = spi_block_erase_20, |
| 12849 | }, { |
| 12850 | .eraseblocks = { {32 * 1024, 8} }, |
| 12851 | .block_erase = spi_block_erase_52, |
| 12852 | }, { |
| 12853 | .eraseblocks = { {256 * 1024, 1} }, |
| 12854 | .block_erase = spi_block_erase_60, |
| 12855 | }, |
| 12856 | }, |
| 12857 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 12858 | .unlock = spi_disable_blockprotect, |
| 12859 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 12860 | .read = spi_chip_read, /* only */ |
| 12861 | .voltage = {2700, 3600}, |
| 12862 | }, |
| 12863 | |
| 12864 | { |
| 12865 | .vendor = "SST", |
| 12866 | .name = "SST25VF020B", |
| 12867 | .bustype = BUS_SPI, |
| 12868 | .manufacture_id = SST_ID, |
| 12869 | .model_id = SST_SST25VF020B, |
| 12870 | .total_size = 256, |
| 12871 | .page_size = 256, |
| 12872 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 12873 | .tested = TEST_OK_PREW, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12874 | .probe = probe_spi_rdid, |
| 12875 | .probe_timing = TIMING_ZERO, |
| 12876 | .block_erasers = |
| 12877 | { |
| 12878 | { |
| 12879 | .eraseblocks = { {4 * 1024, 64} }, |
| 12880 | .block_erase = spi_block_erase_20, |
| 12881 | }, { |
| 12882 | .eraseblocks = { {32 * 1024, 8} }, |
| 12883 | .block_erase = spi_block_erase_52, |
| 12884 | }, { |
| 12885 | .eraseblocks = { {64 * 1024, 4} }, |
| 12886 | .block_erase = spi_block_erase_d8, |
| 12887 | }, { |
| 12888 | .eraseblocks = { {256 * 1024, 1} }, |
| 12889 | .block_erase = spi_block_erase_60, |
| 12890 | }, { |
| 12891 | .eraseblocks = { {256 * 1024, 1} }, |
| 12892 | .block_erase = spi_block_erase_c7, |
| 12893 | }, |
| 12894 | }, |
| 12895 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */ |
| 12896 | .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */ |
| 12897 | .write = spi_aai_write, /* AAI supported (0xAD) */ |
| 12898 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12899 | .voltage = {2700, 3600}, |
| 12900 | }, |
| 12901 | |
| 12902 | { |
| 12903 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12904 | .name = "SST25VF032B", |
| 12905 | .bustype = BUS_SPI, |
| 12906 | .manufacture_id = SST_ID, |
| 12907 | .model_id = SST_SST25VF032B, |
| 12908 | .total_size = 4096, |
| 12909 | .page_size = 256, |
| 12910 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12911 | .tested = TEST_OK_PREW, |
| 12912 | .probe = probe_spi_rdid, |
| 12913 | .probe_timing = TIMING_ZERO, |
| 12914 | .block_erasers = |
| 12915 | { |
| 12916 | { |
| 12917 | .eraseblocks = { {4 * 1024, 1024} }, |
| 12918 | .block_erase = spi_block_erase_20, |
| 12919 | }, { |
| 12920 | .eraseblocks = { {32 * 1024, 128} }, |
| 12921 | .block_erase = spi_block_erase_52, |
| 12922 | }, { |
| 12923 | .eraseblocks = { {64 * 1024, 64} }, |
| 12924 | .block_erase = spi_block_erase_d8, |
| 12925 | }, { |
| 12926 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12927 | .block_erase = spi_block_erase_60, |
| 12928 | }, { |
| 12929 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12930 | .block_erase = spi_block_erase_c7, |
| 12931 | }, |
| 12932 | }, |
| 12933 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
| 12934 | .unlock = spi_disable_blockprotect, |
| 12935 | .write = spi_aai_write, |
| 12936 | .read = spi_chip_read, |
| 12937 | .voltage = {2700, 3600}, |
| 12938 | }, |
| 12939 | |
| 12940 | { |
| 12941 | .vendor = "SST", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12942 | .name = "SST25VF040", |
| 12943 | .bustype = BUS_SPI, |
| 12944 | .manufacture_id = SST_ID, |
| 12945 | .model_id = SST_SST25VF040_REMS, |
| 12946 | .total_size = 512, |
| 12947 | .page_size = 256, |
| 12948 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12949 | .tested = TEST_OK_PR, |
| 12950 | .probe = probe_spi_rems, |
| 12951 | .probe_timing = TIMING_ZERO, |
| 12952 | .block_erasers = |
| 12953 | { |
| 12954 | { |
| 12955 | .eraseblocks = { {4 * 1024, 128} }, |
| 12956 | .block_erase = spi_block_erase_20, |
| 12957 | }, { |
| 12958 | .eraseblocks = { {32 * 1024, 16} }, |
| 12959 | .block_erase = spi_block_erase_52, |
| 12960 | }, { |
| 12961 | .eraseblocks = { {512 * 1024, 1} }, |
| 12962 | .block_erase = spi_block_erase_60, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12963 | }, |
| 12964 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12965 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12966 | .unlock = spi_disable_blockprotect, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12967 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 12968 | .read = spi_chip_read, |
| 12969 | .voltage = {2700, 3600}, |
| 12970 | }, |
| 12971 | |
| 12972 | { |
| 12973 | .vendor = "SST", |
| 12974 | .name = "SST25VF040B", |
| 12975 | .bustype = BUS_SPI, |
| 12976 | .manufacture_id = SST_ID, |
| 12977 | .model_id = SST_SST25VF040B, |
| 12978 | .total_size = 512, |
| 12979 | .page_size = 256, |
| 12980 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12981 | .tested = TEST_OK_PREW, |
| 12982 | .probe = probe_spi_rdid, |
| 12983 | .probe_timing = TIMING_ZERO, |
| 12984 | .block_erasers = |
| 12985 | { |
| 12986 | { |
| 12987 | .eraseblocks = { {4 * 1024, 128} }, |
| 12988 | .block_erase = spi_block_erase_20, |
| 12989 | }, { |
| 12990 | .eraseblocks = { {32 * 1024, 16} }, |
| 12991 | .block_erase = spi_block_erase_52, |
| 12992 | }, { |
| 12993 | .eraseblocks = { {64 * 1024, 8} }, |
| 12994 | .block_erase = spi_block_erase_d8, |
| 12995 | }, { |
| 12996 | .eraseblocks = { {512 * 1024, 1} }, |
| 12997 | .block_erase = spi_block_erase_60, |
| 12998 | }, { |
| 12999 | .eraseblocks = { {512 * 1024, 1} }, |
| 13000 | .block_erase = spi_block_erase_c7, |
| 13001 | }, |
| 13002 | }, |
| 13003 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
| 13004 | .unlock = spi_disable_blockprotect, |
| 13005 | .write = spi_aai_write, /* AAI supported (0xAD) */ |
| 13006 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13007 | .voltage = {2700, 3600}, |
| 13008 | }, |
| 13009 | |
| 13010 | { |
| 13011 | .vendor = "SST", |
| 13012 | .name = "SST25VF040B.REMS", |
| 13013 | .bustype = BUS_SPI, |
| 13014 | .manufacture_id = SST_ID, |
| 13015 | .model_id = SST_SST25VF040B_REMS, |
| 13016 | .total_size = 512, |
| 13017 | .page_size = 256, |
| 13018 | .feature_bits = FEATURE_WRSR_EWSR, |
| 13019 | .tested = TEST_OK_PREW, |
| 13020 | .probe = probe_spi_rems, |
| 13021 | .probe_timing = TIMING_ZERO, |
| 13022 | .block_erasers = |
| 13023 | { |
| 13024 | { |
| 13025 | .eraseblocks = { {4 * 1024, 128} }, |
| 13026 | .block_erase = spi_block_erase_20, |
| 13027 | }, { |
| 13028 | .eraseblocks = { {32 * 1024, 16} }, |
| 13029 | .block_erase = spi_block_erase_52, |
| 13030 | }, { |
| 13031 | .eraseblocks = { {64 * 1024, 8} }, |
| 13032 | .block_erase = spi_block_erase_d8, |
| 13033 | }, { |
| 13034 | .eraseblocks = { {512 * 1024, 1} }, |
| 13035 | .block_erase = spi_block_erase_60, |
| 13036 | }, { |
| 13037 | .eraseblocks = { {512 * 1024, 1} }, |
| 13038 | .block_erase = spi_block_erase_c7, |
| 13039 | }, |
| 13040 | }, |
| 13041 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
| 13042 | .unlock = spi_disable_blockprotect, |
| 13043 | .write = spi_aai_write, |
| 13044 | .read = spi_chip_read, |
| 13045 | .voltage = {2700, 3600}, |
| 13046 | }, |
| 13047 | |
| 13048 | { |
| 13049 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13050 | .name = "SST25VF064C", |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13051 | .bustype = BUS_SPI, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13052 | .manufacture_id = SST_ID, |
| 13053 | .model_id = SST_SST25VF064C, |
| 13054 | .total_size = 8192, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13055 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13056 | .feature_bits = FEATURE_WRSR_EWSR, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13057 | .tested = TEST_OK_PREW, |
| 13058 | .probe = probe_spi_rdid, |
| 13059 | .probe_timing = TIMING_ZERO, |
| 13060 | .block_erasers = |
| 13061 | { |
| 13062 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13063 | .eraseblocks = { {4 * 1024, 2048} }, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13064 | .block_erase = spi_block_erase_20, |
| 13065 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13066 | .eraseblocks = { {32 * 1024, 256} }, |
| 13067 | .block_erase = spi_block_erase_52, |
| 13068 | }, { |
| 13069 | .eraseblocks = { {64 * 1024, 128} }, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13070 | .block_erase = spi_block_erase_d8, |
| 13071 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13072 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13073 | .block_erase = spi_block_erase_60, |
| 13074 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13075 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13076 | .block_erase = spi_block_erase_c7, |
| 13077 | }, |
| 13078 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13079 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
| 13080 | .unlock = spi_disable_blockprotect, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13081 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13082 | .read = spi_chip_read, |
| 13083 | .voltage = {2700, 3600}, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13084 | }, |
| 13085 | |
| 13086 | { |
| 13087 | .vendor = "SST", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13088 | .name = "SST25VF080B", |
| 13089 | .bustype = BUS_SPI, |
| 13090 | .manufacture_id = SST_ID, |
| 13091 | .model_id = SST_SST25VF080B, |
| 13092 | .total_size = 1024, |
| 13093 | .page_size = 256, |
| 13094 | .feature_bits = FEATURE_WRSR_EWSR, |
| 13095 | .tested = TEST_OK_PREW, |
| 13096 | .probe = probe_spi_rdid, |
| 13097 | .probe_timing = TIMING_ZERO, |
| 13098 | .block_erasers = |
| 13099 | { |
| 13100 | { |
| 13101 | .eraseblocks = { {4 * 1024, 256} }, |
| 13102 | .block_erase = spi_block_erase_20, |
| 13103 | }, { |
| 13104 | .eraseblocks = { {32 * 1024, 32} }, |
| 13105 | .block_erase = spi_block_erase_52, |
| 13106 | }, { |
| 13107 | .eraseblocks = { {64 * 1024, 16} }, |
| 13108 | .block_erase = spi_block_erase_d8, |
| 13109 | }, { |
| 13110 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13111 | .block_erase = spi_block_erase_60, |
| 13112 | }, { |
| 13113 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13114 | .block_erase = spi_block_erase_c7, |
| 13115 | }, |
| 13116 | }, |
| 13117 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
| 13118 | .unlock = spi_disable_blockprotect, |
| 13119 | .write = spi_aai_write, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 13120 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 13121 | .voltage = {2700, 3600}, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 13122 | }, |
| 13123 | |
| 13124 | { |
| 13125 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13126 | .name = "SST25VF512(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13127 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13128 | .manufacture_id = SST_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13129 | .model_id = SST_SST25VF512_REMS, |
| 13130 | .total_size = 64, |
| 13131 | .page_size = 256, |
| 13132 | .feature_bits = FEATURE_WRSR_EWSR, |
| 13133 | .tested = TEST_OK_PREW, |
| 13134 | .probe = probe_spi_rems, |
| 13135 | .probe_timing = TIMING_ZERO, |
| 13136 | .block_erasers = |
| 13137 | { |
| 13138 | { |
| 13139 | .eraseblocks = { {4 * 1024, 16} }, |
| 13140 | .block_erase = spi_block_erase_20, |
| 13141 | }, { |
| 13142 | .eraseblocks = { {32 * 1024, 2} }, |
| 13143 | .block_erase = spi_block_erase_52, |
| 13144 | }, { |
| 13145 | .eraseblocks = { {32 * 1024, 2} }, |
| 13146 | .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */ |
| 13147 | }, { |
| 13148 | .eraseblocks = { {64 * 1024, 1} }, |
| 13149 | .block_erase = spi_block_erase_60, |
| 13150 | }, { |
| 13151 | .eraseblocks = { {64 * 1024, 1} }, |
| 13152 | .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */ |
| 13153 | }, |
| 13154 | }, |
| 13155 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 13156 | .unlock = spi_disable_blockprotect, |
| 13157 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 13158 | .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */ |
| 13159 | .voltage = {2700, 3600}, |
| 13160 | }, |
| 13161 | |
| 13162 | { |
| 13163 | .vendor = "SST", |
| 13164 | .name = "SST25WF010", |
| 13165 | .bustype = BUS_SPI, |
| 13166 | .manufacture_id = SST_ID, |
| 13167 | .model_id = SST_SST25WF010, |
| 13168 | .total_size = 128, |
| 13169 | .page_size = 256, |
| 13170 | .feature_bits = FEATURE_WRSR_EITHER, |
| 13171 | .tested = TEST_UNTESTED, |
| 13172 | .probe = probe_spi_rdid, |
| 13173 | .probe_timing = TIMING_ZERO, |
| 13174 | .block_erasers = |
| 13175 | { |
| 13176 | { |
| 13177 | .eraseblocks = { {4 * 1024, 32} }, |
| 13178 | .block_erase = spi_block_erase_20, |
| 13179 | }, { |
| 13180 | .eraseblocks = { {32 * 1024, 4} }, |
| 13181 | .block_erase = spi_block_erase_52, |
| 13182 | }, { |
| 13183 | .eraseblocks = { {1024 * 128, 1} }, |
| 13184 | .block_erase = spi_block_erase_60, |
| 13185 | }, { |
| 13186 | .eraseblocks = { {1024 * 128, 1} }, |
| 13187 | .block_erase = spi_block_erase_c7, |
| 13188 | }, |
| 13189 | }, |
| 13190 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 13191 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 13192 | .write = spi_aai_write, |
| 13193 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13194 | .voltage = {1650, 1950}, |
| 13195 | }, |
| 13196 | |
| 13197 | { |
| 13198 | .vendor = "SST", |
| 13199 | .name = "SST25WF020", |
| 13200 | .bustype = BUS_SPI, |
| 13201 | .manufacture_id = SST_ID, |
| 13202 | .model_id = SST_SST25WF020, |
| 13203 | .total_size = 256, |
| 13204 | .page_size = 256, |
| 13205 | .feature_bits = FEATURE_WRSR_EITHER, |
| 13206 | .tested = TEST_UNTESTED, |
| 13207 | .probe = probe_spi_rdid, |
| 13208 | .probe_timing = TIMING_ZERO, |
| 13209 | .block_erasers = |
| 13210 | { |
| 13211 | { |
| 13212 | .eraseblocks = { {4 * 1024, 64} }, |
| 13213 | .block_erase = spi_block_erase_20, |
| 13214 | }, { |
| 13215 | .eraseblocks = { {32 * 1024, 8} }, |
| 13216 | .block_erase = spi_block_erase_52, |
| 13217 | }, { |
| 13218 | .eraseblocks = { {64 * 1024, 4} }, |
| 13219 | .block_erase = spi_block_erase_d8, |
| 13220 | }, { |
| 13221 | .eraseblocks = { {1024 * 256, 1} }, |
| 13222 | .block_erase = spi_block_erase_60, |
| 13223 | }, { |
| 13224 | .eraseblocks = { {1024 * 256, 1} }, |
| 13225 | .block_erase = spi_block_erase_c7, |
| 13226 | }, |
| 13227 | }, |
| 13228 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 13229 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 13230 | .write = spi_aai_write, |
| 13231 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13232 | .voltage = {1650, 1950}, |
| 13233 | }, |
| 13234 | |
| 13235 | { |
| 13236 | .vendor = "SST", |
| 13237 | .name = "SST25WF020A", |
| 13238 | .bustype = BUS_SPI, |
| 13239 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 13240 | .model_id = SST_SST25WF020A, |
| 13241 | .total_size = 256, |
| 13242 | .page_size = 256, |
| 13243 | .feature_bits = FEATURE_WRSR_WREN, |
| 13244 | .tested = TEST_UNTESTED, |
| 13245 | .probe = probe_spi_rdid, |
| 13246 | .probe_timing = TIMING_ZERO, |
| 13247 | .block_erasers = |
| 13248 | { |
| 13249 | { |
| 13250 | .eraseblocks = { {4 * 1024, 64} }, |
| 13251 | .block_erase = spi_block_erase_20, |
| 13252 | }, { |
| 13253 | .eraseblocks = { {64 * 1024, 4} }, |
| 13254 | .block_erase = spi_block_erase_d8, |
| 13255 | }, { |
| 13256 | .eraseblocks = { {256 * 1024, 1} }, |
| 13257 | .block_erase = spi_block_erase_60, |
| 13258 | }, { |
| 13259 | .eraseblocks = { {256 * 1024, 1} }, |
| 13260 | .block_erase = spi_block_erase_c7, |
| 13261 | }, |
| 13262 | }, |
| 13263 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 13264 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 13265 | .write = spi_chip_write_256, |
| 13266 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13267 | .voltage = {1650, 1950}, |
| 13268 | }, |
| 13269 | |
| 13270 | { |
| 13271 | .vendor = "SST", |
| 13272 | .name = "SST25WF040", |
| 13273 | .bustype = BUS_SPI, |
| 13274 | .manufacture_id = SST_ID, |
| 13275 | .model_id = SST_SST25WF040, |
| 13276 | .total_size = 512, |
| 13277 | .page_size = 256, |
| 13278 | .feature_bits = FEATURE_WRSR_EITHER, |
| 13279 | .tested = TEST_UNTESTED, |
| 13280 | .probe = probe_spi_rdid, |
| 13281 | .probe_timing = TIMING_ZERO, |
| 13282 | .block_erasers = |
| 13283 | { |
| 13284 | { |
| 13285 | .eraseblocks = { {4 * 1024, 128} }, |
| 13286 | .block_erase = spi_block_erase_20, |
| 13287 | }, { |
| 13288 | .eraseblocks = { {32 * 1024, 16} }, |
| 13289 | .block_erase = spi_block_erase_52, |
| 13290 | }, { |
| 13291 | .eraseblocks = { {64 * 1024, 8} }, |
| 13292 | .block_erase = spi_block_erase_d8, |
| 13293 | }, { |
| 13294 | .eraseblocks = { {1024 * 512, 1} }, |
| 13295 | .block_erase = spi_block_erase_60, |
| 13296 | }, { |
| 13297 | .eraseblocks = { {1024 * 512, 1} }, |
| 13298 | .block_erase = spi_block_erase_c7, |
| 13299 | }, |
| 13300 | }, |
| 13301 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 13302 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 13303 | .write = spi_aai_write, |
| 13304 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13305 | .voltage = {1650, 1950}, |
| 13306 | }, |
| 13307 | |
| 13308 | { |
| 13309 | .vendor = "SST", |
| 13310 | .name = "SST25WF040B", |
| 13311 | .bustype = BUS_SPI, |
| 13312 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 13313 | .model_id = SST_SST25WF040B, |
| 13314 | .total_size = 512, |
| 13315 | .page_size = 256, |
| 13316 | .feature_bits = FEATURE_WRSR_WREN, |
| 13317 | .tested = TEST_UNTESTED, |
| 13318 | .probe = probe_spi_rdid, |
| 13319 | .probe_timing = TIMING_ZERO, |
| 13320 | .block_erasers = |
| 13321 | { |
| 13322 | { |
| 13323 | .eraseblocks = { {4 * 1024, 128} }, |
| 13324 | .block_erase = spi_block_erase_20, |
| 13325 | }, { |
| 13326 | .eraseblocks = { {64 * 1024, 8} }, |
| 13327 | .block_erase = spi_block_erase_d8, |
| 13328 | }, { |
| 13329 | .eraseblocks = { {512 * 1024, 1} }, |
| 13330 | .block_erase = spi_block_erase_60, |
| 13331 | }, { |
| 13332 | .eraseblocks = { {512 * 1024, 1} }, |
| 13333 | .block_erase = spi_block_erase_c7, |
| 13334 | }, |
| 13335 | }, |
| 13336 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 13337 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 13338 | .write = spi_chip_write_256, |
| 13339 | .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */ |
| 13340 | .voltage = {1650, 1950}, |
| 13341 | }, |
| 13342 | |
| 13343 | { |
| 13344 | .vendor = "SST", |
| 13345 | .name = "SST25WF080", |
| 13346 | .bustype = BUS_SPI, |
| 13347 | .manufacture_id = SST_ID, |
| 13348 | .model_id = SST_SST25WF080, |
| 13349 | .total_size = 1024, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13350 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 13351 | .feature_bits = FEATURE_WRSR_EITHER, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 13352 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13353 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13354 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13355 | .block_erasers = |
| 13356 | { |
| 13357 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13358 | .eraseblocks = { {4 * 1024, 256} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13359 | .block_erase = spi_block_erase_20, |
| 13360 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13361 | .eraseblocks = { {32 * 1024, 32} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13362 | .block_erase = spi_block_erase_52, |
| 13363 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13364 | .eraseblocks = { {64 * 1024, 16} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13365 | .block_erase = spi_block_erase_d8, |
| 13366 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13367 | .eraseblocks = { {1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13368 | .block_erase = spi_block_erase_60, |
| 13369 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13370 | .eraseblocks = { {1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13371 | .block_erase = spi_block_erase_c7, |
| 13372 | }, |
| 13373 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13374 | .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */ |
| 13375 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 13376 | .write = spi_aai_write, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13377 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13378 | .voltage = {1650, 1950}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13379 | }, |
| 13380 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13381 | { |
| 13382 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13383 | .name = "SST25WF080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13384 | .bustype = BUS_SPI, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13385 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 13386 | .model_id = SST_SST25WF080B, |
| 13387 | .total_size = 1024, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13388 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13389 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | fcf6a8c | 2011-05-18 01:32:00 +0000 | [diff] [blame] | 13390 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13391 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13392 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13393 | .block_erasers = |
| 13394 | { |
| 13395 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13396 | .eraseblocks = { {4 * 1024, 256} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13397 | .block_erase = spi_block_erase_20, |
| 13398 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13399 | .eraseblocks = { {64 * 1024, 16} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13400 | .block_erase = spi_block_erase_d8, |
| 13401 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13402 | .eraseblocks = { {1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13403 | .block_erase = spi_block_erase_60, |
| 13404 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13405 | .eraseblocks = { {1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13406 | .block_erase = spi_block_erase_c7, |
| 13407 | }, |
| 13408 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13409 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 13410 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 13411 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13412 | .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */ |
| 13413 | .voltage = {1650, 1950}, |
| 13414 | }, |
| 13415 | |
| 13416 | { |
| 13417 | .vendor = "SST", |
| 13418 | .name = "SST25WF512", |
| 13419 | .bustype = BUS_SPI, |
| 13420 | .manufacture_id = SST_ID, |
| 13421 | .model_id = SST_SST25WF512, |
| 13422 | .total_size = 64, |
| 13423 | .page_size = 256, |
| 13424 | .feature_bits = FEATURE_WRSR_EITHER, |
| 13425 | .tested = TEST_UNTESTED, |
| 13426 | .probe = probe_spi_rdid, |
| 13427 | .probe_timing = TIMING_ZERO, |
| 13428 | .block_erasers = |
| 13429 | { |
| 13430 | { |
| 13431 | .eraseblocks = { {4 * 1024, 16} }, |
| 13432 | .block_erase = spi_block_erase_20, |
| 13433 | }, { |
| 13434 | .eraseblocks = { {32 * 1024, 2} }, |
| 13435 | .block_erase = spi_block_erase_52, |
| 13436 | }, { |
| 13437 | .eraseblocks = { {1024 * 64, 1} }, |
| 13438 | .block_erase = spi_block_erase_60, |
| 13439 | }, { |
| 13440 | .eraseblocks = { {1024 * 64, 1} }, |
| 13441 | .block_erase = spi_block_erase_c7, |
| 13442 | }, |
| 13443 | }, |
| 13444 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 13445 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 13446 | .write = spi_aai_write, |
| 13447 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13448 | .voltage = {1650, 1950}, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 13449 | }, |
| 13450 | |
| 13451 | { |
| 13452 | .vendor = "SST", |
Wei Hu | 25584de | 2018-04-30 14:02:08 -0700 | [diff] [blame] | 13453 | .name = "SST26VF016B(A)", |
| 13454 | .bustype = BUS_SPI, |
| 13455 | .manufacture_id = SST_ID, |
| 13456 | .model_id = SST_SST26VF016B, |
| 13457 | .total_size = 2048, |
| 13458 | .page_size = 256, |
| 13459 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 13460 | .tested = TEST_OK_PREW, |
| 13461 | .probe = probe_spi_rdid, |
| 13462 | .probe_timing = TIMING_ZERO, |
| 13463 | .block_erasers = |
| 13464 | { |
| 13465 | { |
| 13466 | .eraseblocks = { {4 * 1024, 512} }, |
| 13467 | .block_erase = spi_block_erase_20, |
| 13468 | }, { |
| 13469 | .eraseblocks = { |
| 13470 | {8 * 1024, 4}, |
| 13471 | {32 * 1024, 1}, |
| 13472 | {64 * 1024, 30}, |
| 13473 | {32 * 1024, 1}, |
| 13474 | {8 * 1024, 4}, |
| 13475 | }, |
| 13476 | .block_erase = spi_block_erase_d8, |
| 13477 | }, { |
| 13478 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 13479 | .block_erase = spi_block_erase_c7, |
| 13480 | }, |
| 13481 | }, |
| 13482 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 13483 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 13484 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 13485 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 13486 | .voltage = {2700, 3600}, |
| 13487 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 13488 | |
Wei Hu | 25584de | 2018-04-30 14:02:08 -0700 | [diff] [blame] | 13489 | { |
| 13490 | .vendor = "SST", |
| 13491 | .name = "SST26VF032B(A)", |
| 13492 | .bustype = BUS_SPI, |
| 13493 | .manufacture_id = SST_ID, |
| 13494 | .model_id = SST_SST26VF032B, |
| 13495 | .total_size = 4096, |
| 13496 | .page_size = 256, |
| 13497 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 13498 | .tested = TEST_UNTESTED, |
| 13499 | .probe = probe_spi_rdid, |
| 13500 | .probe_timing = TIMING_ZERO, |
| 13501 | .block_erasers = |
| 13502 | { |
| 13503 | { |
| 13504 | .eraseblocks = { {4 * 1024, 1024} }, |
| 13505 | .block_erase = spi_block_erase_20, |
| 13506 | }, { |
| 13507 | .eraseblocks = { |
| 13508 | {8 * 1024, 4}, |
| 13509 | {32 * 1024, 1}, |
| 13510 | {64 * 1024, 62}, |
| 13511 | {32 * 1024, 1}, |
| 13512 | {8 * 1024, 4}, |
| 13513 | }, |
| 13514 | .block_erase = spi_block_erase_d8, |
| 13515 | }, { |
| 13516 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 13517 | .block_erase = spi_block_erase_c7, |
| 13518 | }, |
| 13519 | }, |
| 13520 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 13521 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 13522 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 13523 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 13524 | .voltage = {2700, 3600}, |
| 13525 | }, |
| 13526 | |
Wei Hu | 25584de | 2018-04-30 14:02:08 -0700 | [diff] [blame] | 13527 | { |
| 13528 | .vendor = "SST", |
| 13529 | .name = "SST26VF064B(A)", |
| 13530 | .bustype = BUS_SPI, |
| 13531 | .manufacture_id = SST_ID, |
| 13532 | .model_id = SST_SST26VF064B, |
| 13533 | .total_size = 8192, |
| 13534 | .page_size = 256, |
| 13535 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 13536 | .tested = TEST_OK_PREW, |
| 13537 | .probe = probe_spi_rdid, |
| 13538 | .probe_timing = TIMING_ZERO, |
| 13539 | .block_erasers = |
| 13540 | { |
| 13541 | { |
| 13542 | .eraseblocks = { {4 * 1024, 2048} }, |
| 13543 | .block_erase = spi_block_erase_20, |
| 13544 | }, { |
| 13545 | .eraseblocks = { |
| 13546 | {8 * 1024, 4}, |
| 13547 | {32 * 1024, 1}, |
| 13548 | {64 * 1024, 126}, |
| 13549 | {32 * 1024, 1}, |
| 13550 | {8 * 1024, 4}, |
| 13551 | }, |
| 13552 | .block_erase = spi_block_erase_d8, |
| 13553 | }, { |
| 13554 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 13555 | .block_erase = spi_block_erase_c7, |
| 13556 | }, |
| 13557 | }, |
| 13558 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 13559 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 13560 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 13561 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 13562 | .voltage = {2700, 3600}, |
| 13563 | }, |
| 13564 | |
| 13565 | { |
| 13566 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13567 | .name = "SST28SF040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13568 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13569 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13570 | .model_id = SST_SST28SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13571 | .total_size = 512, |
| 13572 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13573 | .feature_bits = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13574 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13575 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 13576 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13577 | .block_erasers = |
| 13578 | { |
| 13579 | { |
| 13580 | .eraseblocks = { {128, 4096} }, |
| 13581 | .block_erase = erase_sector_28sf040, |
| 13582 | }, { |
| 13583 | .eraseblocks = { {512 * 1024, 1} }, |
| 13584 | .block_erase = erase_chip_28sf040, |
| 13585 | } |
| 13586 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 13587 | .unlock = unprotect_28sf040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13588 | .write = write_28sf040, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13589 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13590 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13591 | }, |
| 13592 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13593 | { |
| 13594 | .vendor = "SST", |
| 13595 | .name = "SST29EE010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13596 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13597 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13598 | .model_id = SST_SST29EE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13599 | .total_size = 128, |
| 13600 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13601 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 13602 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13603 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13604 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13605 | .block_erasers = |
| 13606 | { |
| 13607 | { |
| 13608 | .eraseblocks = { {128 * 1024, 1} }, |
| 13609 | .block_erase = erase_chip_block_jedec, |
| 13610 | } |
| 13611 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13612 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13613 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13614 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13615 | }, |
| 13616 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13617 | { |
| 13618 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13619 | .name = "SST29EE020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13620 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13621 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13622 | .model_id = SST_SST29EE020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13623 | .total_size = 256, |
| 13624 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13625 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 13626 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13627 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13628 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13629 | .block_erasers = |
| 13630 | { |
| 13631 | { |
| 13632 | .eraseblocks = { {256 * 1024, 1} }, |
| 13633 | .block_erase = erase_chip_block_jedec, |
| 13634 | } |
| 13635 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13636 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13637 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13638 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13639 | }, |
| 13640 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13641 | { |
| 13642 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13643 | .name = "SST29LE010", |
| 13644 | .bustype = BUS_PARALLEL, |
| 13645 | .manufacture_id = SST_ID, |
| 13646 | .model_id = SST_SST29LE010, |
| 13647 | .total_size = 128, |
| 13648 | .page_size = 128, |
| 13649 | .feature_bits = FEATURE_LONG_RESET, |
| 13650 | .tested = TEST_UNTESTED, |
| 13651 | .probe = probe_jedec, |
| 13652 | .probe_timing = 10, |
| 13653 | .block_erasers = |
| 13654 | { |
| 13655 | { |
| 13656 | .eraseblocks = { {128 * 1024, 1} }, |
| 13657 | .block_erase = erase_chip_block_jedec, |
| 13658 | } |
| 13659 | }, |
| 13660 | .write = write_jedec, |
| 13661 | .read = read_memmapped, |
| 13662 | .voltage = {3000, 3600}, |
| 13663 | }, |
| 13664 | |
| 13665 | { |
| 13666 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13667 | .name = "SST29LE020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13668 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13669 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13670 | .model_id = SST_SST29LE020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13671 | .total_size = 256, |
| 13672 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13673 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 13674 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13675 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13676 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13677 | .block_erasers = |
| 13678 | { |
| 13679 | { |
| 13680 | .eraseblocks = { {256 * 1024, 1} }, |
| 13681 | .block_erase = erase_chip_block_jedec, |
| 13682 | } |
| 13683 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13684 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13685 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13686 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13687 | }, |
| 13688 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13689 | { |
| 13690 | .vendor = "SST", |
| 13691 | .name = "SST39SF010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13692 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13693 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13694 | .model_id = SST_SST39SF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13695 | .total_size = 128, |
| 13696 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13697 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 13698 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13699 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 13700 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13701 | .block_erasers = |
| 13702 | { |
| 13703 | { |
| 13704 | .eraseblocks = { {4 * 1024, 32} }, |
| 13705 | .block_erase = erase_sector_jedec, |
| 13706 | }, { |
| 13707 | .eraseblocks = { {128 * 1024, 1} }, |
| 13708 | .block_erase = erase_chip_block_jedec, |
| 13709 | } |
| 13710 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13711 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13712 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13713 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13714 | }, |
| 13715 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13716 | { |
| 13717 | .vendor = "SST", |
| 13718 | .name = "SST39SF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13719 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13720 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13721 | .model_id = SST_SST39SF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13722 | .total_size = 256, |
| 13723 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13724 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 19f46f2 | 2011-06-18 22:56:14 +0000 | [diff] [blame] | 13725 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13726 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13727 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13728 | .block_erasers = |
| 13729 | { |
| 13730 | { |
| 13731 | .eraseblocks = { {4 * 1024, 64} }, |
| 13732 | .block_erase = erase_sector_jedec, |
| 13733 | }, { |
| 13734 | .eraseblocks = { {256 * 1024, 1} }, |
| 13735 | .block_erase = erase_chip_block_jedec, |
| 13736 | } |
| 13737 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13738 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13739 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13740 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13741 | }, |
| 13742 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13743 | { |
| 13744 | .vendor = "SST", |
| 13745 | .name = "SST39SF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13746 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13747 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13748 | .model_id = SST_SST39SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13749 | .total_size = 512, |
| 13750 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13751 | .feature_bits = FEATURE_EITHER_RESET, |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 13752 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13753 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13754 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13755 | .block_erasers = |
| 13756 | { |
| 13757 | { |
| 13758 | .eraseblocks = { {4 * 1024, 128} }, |
| 13759 | .block_erase = erase_sector_jedec, |
| 13760 | }, { |
| 13761 | .eraseblocks = { {512 * 1024, 1} }, |
| 13762 | .block_erase = erase_chip_block_jedec, |
| 13763 | } |
| 13764 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13765 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13766 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13767 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13768 | }, |
| 13769 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13770 | { |
| 13771 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13772 | .name = "SST39SF512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13773 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13774 | .manufacture_id = SST_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13775 | .model_id = SST_SST39SF512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13776 | .total_size = 64, |
| 13777 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13778 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 13779 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13780 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13781 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13782 | .block_erasers = |
| 13783 | { |
| 13784 | { |
| 13785 | .eraseblocks = { {4 * 1024, 16} }, |
| 13786 | .block_erase = erase_sector_jedec, |
| 13787 | }, { |
| 13788 | .eraseblocks = { {64 * 1024, 1} }, |
| 13789 | .block_erase = erase_chip_block_jedec, |
| 13790 | } |
| 13791 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13792 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13793 | .read = read_memmapped, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13794 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13795 | }, |
| 13796 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13797 | { |
| 13798 | .vendor = "SST", |
| 13799 | .name = "SST39VF010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13800 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13801 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13802 | .model_id = SST_SST39VF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13803 | .total_size = 128, |
| 13804 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13805 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 13806 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13807 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13808 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13809 | .block_erasers = |
| 13810 | { |
| 13811 | { |
| 13812 | .eraseblocks = { {4 * 1024, 32} }, |
| 13813 | .block_erase = erase_sector_jedec, |
| 13814 | }, { |
| 13815 | .eraseblocks = { {128 * 1024, 1} }, |
| 13816 | .block_erase = erase_chip_block_jedec, |
| 13817 | } |
| 13818 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13819 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13820 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13821 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13822 | }, |
| 13823 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13824 | { |
| 13825 | .vendor = "SST", |
| 13826 | .name = "SST39VF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13827 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13828 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13829 | .model_id = SST_SST39VF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13830 | .total_size = 256, |
| 13831 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13832 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 13833 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13834 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13835 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13836 | .block_erasers = |
| 13837 | { |
| 13838 | { |
| 13839 | .eraseblocks = { {4 * 1024, 64} }, |
| 13840 | .block_erase = erase_sector_jedec, |
| 13841 | }, { |
| 13842 | .eraseblocks = { {256 * 1024, 1} }, |
| 13843 | .block_erase = erase_chip_block_jedec, |
| 13844 | } |
| 13845 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13846 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13847 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13848 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13849 | }, |
| 13850 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13851 | { |
| 13852 | .vendor = "SST", |
| 13853 | .name = "SST39VF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13854 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13855 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13856 | .model_id = SST_SST39VF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13857 | .total_size = 512, |
| 13858 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13859 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 13860 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13861 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13862 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13863 | .block_erasers = |
| 13864 | { |
| 13865 | { |
| 13866 | .eraseblocks = { {4 * 1024, 128} }, |
| 13867 | .block_erase = erase_sector_jedec, |
| 13868 | }, { |
| 13869 | .eraseblocks = { {512 * 1024, 1} }, |
| 13870 | .block_erase = erase_chip_block_jedec, |
| 13871 | } |
| 13872 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13873 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13874 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13875 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 90eff15 | 2008-12-08 23:51:45 +0000 | [diff] [blame] | 13876 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13877 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13878 | { |
| 13879 | .vendor = "SST", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 13880 | .name = "SST39VF080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13881 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 13882 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13883 | .model_id = SST_SST39VF080, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 13884 | .total_size = 1024, |
| 13885 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13886 | .feature_bits = FEATURE_EITHER_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 13887 | .tested = TEST_UNTESTED, |
| 13888 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13889 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13890 | .block_erasers = |
| 13891 | { |
| 13892 | { |
| 13893 | .eraseblocks = { {4 * 1024, 256} }, |
| 13894 | .block_erase = erase_sector_jedec, |
| 13895 | }, { |
| 13896 | .eraseblocks = { {64 * 1024, 16} }, |
| 13897 | .block_erase = erase_block_jedec, |
| 13898 | }, { |
| 13899 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13900 | .block_erase = erase_chip_block_jedec, |
| 13901 | } |
| 13902 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13903 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13904 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13905 | .voltage = {2700, 3600}, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 13906 | }, |
| 13907 | |
| 13908 | { |
| 13909 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13910 | .name = "SST39VF512", |
| 13911 | .bustype = BUS_PARALLEL, |
| 13912 | .manufacture_id = SST_ID, |
| 13913 | .model_id = SST_SST39VF512, |
| 13914 | .total_size = 64, |
| 13915 | .page_size = 4096, |
| 13916 | .feature_bits = FEATURE_EITHER_RESET, |
| 13917 | .tested = TEST_OK_PREW, |
| 13918 | .probe = probe_jedec, |
| 13919 | .probe_timing = 1, /* 150 ns */ |
| 13920 | .block_erasers = |
| 13921 | { |
| 13922 | { |
| 13923 | .eraseblocks = { {4 * 1024, 16} }, |
| 13924 | .block_erase = erase_sector_jedec, |
| 13925 | }, { |
| 13926 | .eraseblocks = { {64 * 1024, 1} }, |
| 13927 | .block_erase = erase_chip_block_jedec, |
| 13928 | } |
| 13929 | }, |
| 13930 | .write = write_jedec_1, |
| 13931 | .read = read_memmapped, |
| 13932 | .voltage = {2700, 3600}, |
| 13933 | }, |
| 13934 | |
| 13935 | { |
| 13936 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13937 | .name = "SST49LF002A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13938 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13939 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13940 | .model_id = SST_SST49LF002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13941 | .total_size = 256, |
| 13942 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13943 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 13944 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13945 | .probe = probe_jedec, |
| 13946 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13947 | .block_erasers = |
| 13948 | { |
| 13949 | { |
| 13950 | .eraseblocks = { {4 * 1024, 64} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13951 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13952 | }, { |
| 13953 | .eraseblocks = { {16 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13954 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13955 | }, { |
| 13956 | .eraseblocks = { {256 * 1024, 1} }, |
| 13957 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 13958 | } |
| 13959 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13960 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13961 | .unlock = unlock_sst_fwhub, |
| 13962 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13963 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13964 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13965 | }, |
| 13966 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13967 | { |
| 13968 | .vendor = "SST", |
| 13969 | .name = "SST49LF003A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13970 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13971 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13972 | .model_id = SST_SST49LF003A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13973 | .total_size = 384, |
| 13974 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13975 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 13976 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13977 | .probe = probe_jedec, |
| 13978 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13979 | .block_erasers = |
| 13980 | { |
| 13981 | { |
| 13982 | .eraseblocks = { {4 * 1024, 96} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13983 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13984 | }, { |
| 13985 | .eraseblocks = { {64 * 1024, 6} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13986 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13987 | }, { |
| 13988 | .eraseblocks = { {384 * 1024, 1} }, |
| 13989 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 13990 | } |
| 13991 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13992 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13993 | .unlock = unlock_sst_fwhub, |
| 13994 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13995 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13996 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13997 | }, |
| 13998 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13999 | { |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 14000 | /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB) |
| 14001 | * and is only honored for 64k block erase, but not 4k sector erase. |
| 14002 | */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14003 | .vendor = "SST", |
| 14004 | .name = "SST49LF004A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14005 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14006 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14007 | .model_id = SST_SST49LF004A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14008 | .total_size = 512, |
| 14009 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14010 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 14011 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14012 | .probe = probe_jedec, |
| 14013 | .probe_timing = 1, /* 150 ns */ |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 14014 | .block_erasers = |
| 14015 | { |
| 14016 | { |
| 14017 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14018 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 14019 | }, { |
| 14020 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14021 | .block_erase = erase_block_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 14022 | }, { |
| 14023 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14024 | .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] | 14025 | }, |
| 14026 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14027 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14028 | .unlock = unlock_sst_fwhub, |
| 14029 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14030 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14031 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14032 | }, |
| 14033 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14034 | { |
| 14035 | .vendor = "SST", |
| 14036 | .name = "SST49LF004C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14037 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14038 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14039 | .model_id = SST_SST49LF004C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14040 | .total_size = 512, |
| 14041 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14042 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14043 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14044 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14045 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14046 | .block_erasers = |
| 14047 | { |
| 14048 | { |
| 14049 | .eraseblocks = { {4 * 1024, 128} }, |
| 14050 | .block_erase = erase_sector_49lfxxxc, |
| 14051 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14052 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14053 | {64 * 1024, 7}, |
| 14054 | {32 * 1024, 1}, |
| 14055 | {8 * 1024, 2}, |
| 14056 | {16 * 1024, 1}, |
| 14057 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 14058 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14059 | } |
| 14060 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14061 | .printlock = printlock_regspace2_block_eraser_1, |
| 14062 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 14063 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14064 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14065 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14066 | }, |
| 14067 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14068 | { |
| 14069 | .vendor = "SST", |
| 14070 | .name = "SST49LF008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14071 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14072 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14073 | .model_id = SST_SST49LF008A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14074 | .total_size = 1024, |
| 14075 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14076 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 14077 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14078 | .probe = probe_jedec, |
| 14079 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14080 | .block_erasers = |
| 14081 | { |
| 14082 | { |
| 14083 | .eraseblocks = { {4 * 1024, 256} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14084 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14085 | }, { |
| 14086 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14087 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14088 | }, { |
| 14089 | .eraseblocks = { {1024 * 1024, 1} }, |
| 14090 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 14091 | } |
| 14092 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14093 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14094 | .unlock = unlock_sst_fwhub, |
| 14095 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14096 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14097 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14098 | }, |
| 14099 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14100 | { |
| 14101 | .vendor = "SST", |
| 14102 | .name = "SST49LF008C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14103 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14104 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14105 | .model_id = SST_SST49LF008C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14106 | .total_size = 1024, |
| 14107 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14108 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14109 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14110 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14111 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14112 | .block_erasers = |
| 14113 | { |
| 14114 | { |
| 14115 | .eraseblocks = { {4 * 1024, 256} }, |
| 14116 | .block_erase = erase_sector_49lfxxxc, |
| 14117 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14118 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14119 | {64 * 1024, 15}, |
| 14120 | {32 * 1024, 1}, |
| 14121 | {8 * 1024, 2}, |
| 14122 | {16 * 1024, 1}, |
| 14123 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 14124 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14125 | } |
| 14126 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14127 | .printlock = printlock_regspace2_block_eraser_1, |
| 14128 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 14129 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14130 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14131 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14132 | }, |
| 14133 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14134 | { |
| 14135 | .vendor = "SST", |
| 14136 | .name = "SST49LF016C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14137 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14138 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14139 | .model_id = SST_SST49LF016C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14140 | .total_size = 2048, |
| 14141 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14142 | .feature_bits = FEATURE_REGISTERMAP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 14143 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14144 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14145 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14146 | .block_erasers = |
| 14147 | { |
| 14148 | { |
| 14149 | .eraseblocks = { {4 * 1024, 512} }, |
| 14150 | .block_erase = erase_sector_49lfxxxc, |
| 14151 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14152 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14153 | {64 * 1024, 31}, |
| 14154 | {32 * 1024, 1}, |
| 14155 | {8 * 1024, 2}, |
| 14156 | {16 * 1024, 1}, |
| 14157 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 14158 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14159 | } |
| 14160 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14161 | .printlock = printlock_regspace2_block_eraser_1, |
| 14162 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 14163 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14164 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14165 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14166 | }, |
| 14167 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14168 | { |
| 14169 | .vendor = "SST", |
| 14170 | .name = "SST49LF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14171 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14172 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14173 | .model_id = SST_SST49LF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14174 | .total_size = 256, |
| 14175 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14176 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 14177 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14178 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14179 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14180 | .block_erasers = |
| 14181 | { |
| 14182 | { |
| 14183 | .eraseblocks = { {4 * 1024, 64} }, |
| 14184 | .block_erase = erase_sector_jedec, |
| 14185 | }, { |
| 14186 | .eraseblocks = { {16 * 1024, 16} }, |
| 14187 | .block_erase = erase_block_jedec, |
| 14188 | }, { |
| 14189 | .eraseblocks = { {256 * 1024, 1} }, |
| 14190 | .block_erase = NULL, |
| 14191 | } |
| 14192 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14193 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14194 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14195 | .voltage = {3000, 3600}, |
Sven Schnelle | c208dfb | 2009-01-07 12:35:09 +0000 | [diff] [blame] | 14196 | }, |
| 14197 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14198 | { |
| 14199 | .vendor = "SST", |
| 14200 | .name = "SST49LF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14201 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14202 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14203 | .model_id = SST_SST49LF020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14204 | .total_size = 256, |
Carl-Daniel Hailfinger | da65432 | 2009-07-23 01:44:38 +0000 | [diff] [blame] | 14205 | .page_size = 4 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14206 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 14207 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14208 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14209 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14210 | .block_erasers = |
| 14211 | { |
| 14212 | { |
| 14213 | .eraseblocks = { {4 * 1024, 64} }, |
| 14214 | .block_erase = erase_sector_jedec, |
| 14215 | }, { |
| 14216 | .eraseblocks = { {16 * 1024, 16} }, |
| 14217 | .block_erase = erase_block_jedec, |
| 14218 | }, { |
| 14219 | .eraseblocks = { {256 * 1024, 1} }, |
| 14220 | .block_erase = NULL, |
| 14221 | } |
| 14222 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14223 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14224 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14225 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14226 | }, |
| 14227 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14228 | { |
| 14229 | .vendor = "SST", |
| 14230 | .name = "SST49LF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14231 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14232 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14233 | .model_id = SST_SST49LF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14234 | .total_size = 512, |
| 14235 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14236 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 14237 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14238 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14239 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14240 | .block_erasers = |
| 14241 | { |
| 14242 | { |
| 14243 | .eraseblocks = { {4 * 1024, 128} }, |
| 14244 | .block_erase = erase_sector_jedec, |
| 14245 | }, { |
| 14246 | .eraseblocks = { {64 * 1024, 8} }, |
| 14247 | .block_erase = erase_block_jedec, |
| 14248 | }, { |
| 14249 | .eraseblocks = { {512 * 1024, 1} }, |
| 14250 | .block_erase = NULL, |
| 14251 | } |
| 14252 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14253 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14254 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14255 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14256 | }, |
| 14257 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14258 | { |
| 14259 | .vendor = "SST", |
| 14260 | .name = "SST49LF040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14261 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14262 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14263 | .model_id = SST_SST49LF040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14264 | .total_size = 512, |
| 14265 | .page_size = 64 * 1024, |
Joshua Roys | a84b0bd | 2010-08-16 22:12:39 +0000 | [diff] [blame] | 14266 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 14267 | .tested = TEST_OK_PREW, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14268 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14269 | .probe_timing = 1, /* 150ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14270 | .block_erasers = |
| 14271 | { |
| 14272 | { |
| 14273 | .eraseblocks = { {4 * 1024, 128} }, |
| 14274 | .block_erase = erase_sector_jedec, |
| 14275 | }, { |
| 14276 | .eraseblocks = { {64 * 1024, 8} }, |
| 14277 | .block_erase = erase_block_jedec, |
| 14278 | }, { |
| 14279 | .eraseblocks = { {512 * 1024, 1} }, |
| 14280 | .block_erase = NULL, |
| 14281 | } |
| 14282 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14283 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14284 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14285 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14286 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14287 | }, |
| 14288 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14289 | { |
| 14290 | .vendor = "SST", |
| 14291 | .name = "SST49LF080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14292 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14293 | .manufacture_id = SST_ID, |
Elyes HAOUAS | 124ef38 | 2018-03-27 12:15:09 +0200 | [diff] [blame] | 14294 | .model_id = SST_SST49LF080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14295 | .total_size = 1024, |
| 14296 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14297 | .feature_bits = FEATURE_EITHER_RESET, |
Brandon Dowdy | f07bf32 | 2011-03-06 18:31:11 +0000 | [diff] [blame] | 14298 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14299 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14300 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14301 | .block_erasers = |
| 14302 | { |
| 14303 | { |
| 14304 | .eraseblocks = { {4 * 1024, 256} }, |
| 14305 | .block_erase = erase_sector_jedec, |
| 14306 | }, { |
| 14307 | .eraseblocks = { {64 * 1024, 16} }, |
| 14308 | .block_erase = erase_block_jedec, |
| 14309 | }, { |
| 14310 | .eraseblocks = { {1024 * 1024, 1} }, |
| 14311 | .block_erase = NULL, |
| 14312 | } |
| 14313 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14314 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14315 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14316 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14317 | }, |
| 14318 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14319 | { |
| 14320 | .vendor = "SST", |
| 14321 | .name = "SST49LF160C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14322 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14323 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14324 | .model_id = SST_SST49LF160C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14325 | .total_size = 2048, |
| 14326 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14327 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14328 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14329 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14330 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14331 | .block_erasers = |
| 14332 | { |
| 14333 | { |
| 14334 | .eraseblocks = { {4 * 1024, 512} }, |
| 14335 | .block_erase = erase_sector_49lfxxxc, |
| 14336 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14337 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14338 | {64 * 1024, 31}, |
| 14339 | {32 * 1024, 1}, |
| 14340 | {8 * 1024, 2}, |
| 14341 | {16 * 1024, 1}, |
| 14342 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 14343 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14344 | } |
| 14345 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14346 | .printlock = printlock_regspace2_block_eraser_1, |
| 14347 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 14348 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14349 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14350 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14351 | }, |
| 14352 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14353 | { |
| 14354 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14355 | .name = "M29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14356 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14357 | .manufacture_id = ST_ID, |
| 14358 | .model_id = ST_M29F002B, |
| 14359 | .total_size = 256, |
| 14360 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14361 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14362 | .tested = TEST_UNTESTED, |
| 14363 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14364 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14365 | .block_erasers = |
| 14366 | { |
| 14367 | { |
| 14368 | .eraseblocks = { |
| 14369 | {16 * 1024, 1}, |
| 14370 | {8 * 1024, 2}, |
| 14371 | {32 * 1024, 1}, |
| 14372 | {64 * 1024, 3}, |
| 14373 | }, |
| 14374 | .block_erase = erase_sector_jedec, |
| 14375 | }, { |
| 14376 | .eraseblocks = { {256 * 1024, 1} }, |
| 14377 | .block_erase = erase_chip_block_jedec, |
| 14378 | } |
| 14379 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14380 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14381 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 14382 | .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] | 14383 | }, |
| 14384 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14385 | { |
| 14386 | .vendor = "ST", |
| 14387 | .name = "M29F002T/NT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14388 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14389 | .manufacture_id = ST_ID, |
| 14390 | .model_id = ST_M29F002T, |
| 14391 | .total_size = 256, |
| 14392 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14393 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 14394 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14395 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14396 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14397 | .block_erasers = |
| 14398 | { |
| 14399 | { |
| 14400 | .eraseblocks = { |
| 14401 | {64 * 1024, 3}, |
| 14402 | {32 * 1024, 1}, |
| 14403 | {8 * 1024, 2}, |
| 14404 | {16 * 1024, 1}, |
| 14405 | }, |
| 14406 | .block_erase = erase_sector_jedec, |
| 14407 | }, { |
| 14408 | .eraseblocks = { {256 * 1024, 1} }, |
| 14409 | .block_erase = erase_chip_block_jedec, |
| 14410 | } |
| 14411 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14412 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14413 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 14414 | .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] | 14415 | }, |
| 14416 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14417 | { |
| 14418 | .vendor = "ST", |
| 14419 | .name = "M29F040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14420 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14421 | .manufacture_id = ST_ID, |
| 14422 | .model_id = ST_M29F040B, |
| 14423 | .total_size = 512, |
| 14424 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14425 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 14426 | .tested = TEST_UNTESTED, |
| 14427 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 14428 | .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14429 | .block_erasers = |
| 14430 | { |
| 14431 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14432 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14433 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14434 | }, { |
| 14435 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14436 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14437 | } |
| 14438 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14439 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14440 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14441 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14442 | }, |
| 14443 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14444 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14445 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14446 | .vendor = "ST", |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 14447 | .name = "M29F400BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14448 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 14449 | .manufacture_id = ST_ID, |
| 14450 | .model_id = ST_M29F400BB, |
| 14451 | .total_size = 512, |
| 14452 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14453 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 14454 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14455 | .probe = probe_jedec, |
| 14456 | .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] | 14457 | .block_erasers = |
| 14458 | { |
| 14459 | { |
| 14460 | .eraseblocks = { |
| 14461 | {16 * 1024, 1}, |
| 14462 | {8 * 1024, 2}, |
| 14463 | {32 * 1024, 1}, |
| 14464 | {64 * 1024, 7}, |
| 14465 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14466 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 14467 | }, { |
| 14468 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14469 | .block_erase = erase_chip_block_jedec, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 14470 | } |
| 14471 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14472 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 14473 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14474 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 14475 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 14476 | |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 14477 | { |
| 14478 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
| 14479 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14480 | .name = "M29F400BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14481 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14482 | .manufacture_id = ST_ID, |
| 14483 | .model_id = ST_M29F400BT, |
| 14484 | .total_size = 512, |
| 14485 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14486 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14487 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14488 | .probe = probe_jedec, |
| 14489 | .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] | 14490 | .block_erasers = |
| 14491 | { |
| 14492 | { |
| 14493 | .eraseblocks = { |
| 14494 | {64 * 1024, 7}, |
| 14495 | {32 * 1024, 1}, |
| 14496 | {8 * 1024, 2}, |
| 14497 | {16 * 1024, 1}, |
| 14498 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14499 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14500 | }, { |
| 14501 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14502 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14503 | } |
| 14504 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14505 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14506 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14507 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14508 | }, |
| 14509 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14510 | { |
| 14511 | .vendor = "ST", |
| 14512 | .name = "M29W010B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14513 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14514 | .manufacture_id = ST_ID, |
| 14515 | .model_id = ST_M29W010B, |
| 14516 | .total_size = 128, |
| 14517 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14518 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14519 | .tested = TEST_UNTESTED, |
| 14520 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14521 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14522 | .block_erasers = |
| 14523 | { |
| 14524 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14525 | .eraseblocks = { {16 * 1024, 8} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14526 | .block_erase = erase_sector_jedec, |
| 14527 | }, { |
| 14528 | .eraseblocks = { {128 * 1024, 1} }, |
| 14529 | .block_erase = erase_chip_block_jedec, |
| 14530 | } |
| 14531 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14532 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14533 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14534 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14535 | }, |
| 14536 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14537 | { |
| 14538 | .vendor = "ST", |
| 14539 | .name = "M29W040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14540 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14541 | .manufacture_id = ST_ID, |
| 14542 | .model_id = ST_M29W040B, |
| 14543 | .total_size = 512, |
| 14544 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14545 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14546 | .tested = TEST_UNTESTED, |
| 14547 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14548 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14549 | .block_erasers = |
| 14550 | { |
| 14551 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14552 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14553 | .block_erase = erase_sector_jedec, |
| 14554 | }, { |
| 14555 | .eraseblocks = { {512 * 1024, 1} }, |
| 14556 | .block_erase = erase_chip_block_jedec, |
| 14557 | } |
| 14558 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14559 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14560 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14561 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14562 | }, |
| 14563 | |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 14564 | { |
| 14565 | .vendor = "ST", |
| 14566 | .name = "M29W512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14567 | .bustype = BUS_PARALLEL, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 14568 | .manufacture_id = ST_ID, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 14569 | .model_id = ST_M29W512B, |
| 14570 | .total_size = 64, |
| 14571 | .page_size = 64 * 1024, |
| 14572 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14573 | .tested = TEST_OK_PREW, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 14574 | .probe = probe_jedec, |
| 14575 | .probe_timing = TIMING_ZERO, |
| 14576 | .block_erasers = |
| 14577 | { |
| 14578 | { |
| 14579 | .eraseblocks = { {64 * 1024, 1} }, |
| 14580 | .block_erase = erase_chip_block_jedec, |
| 14581 | } |
| 14582 | }, |
| 14583 | .write = write_jedec_1, |
| 14584 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14585 | .voltage = {2700, 3600}, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 14586 | }, |
Jeffrey A. Kent | ba7c922 | 2010-02-01 05:49:46 +0000 | [diff] [blame] | 14587 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14588 | { |
| 14589 | .vendor = "ST", |
| 14590 | .name = "M50FLW040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14591 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14592 | .manufacture_id = ST_ID, |
| 14593 | .model_id = ST_M50FLW040A, |
| 14594 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14595 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14596 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14597 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14598 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 14599 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14600 | .block_erasers = |
| 14601 | { |
| 14602 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14603 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14604 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14605 | {64 * 1024, 5}, /* block */ |
| 14606 | {4 * 1024, 16}, /* sector */ |
| 14607 | {4 * 1024, 16}, /* sector */ |
| 14608 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 14609 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14610 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14611 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14612 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14613 | } |
| 14614 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14615 | .unlock = unlock_regspace2_uniform_64k, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 14616 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14617 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14618 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14619 | }, |
| 14620 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14621 | { |
| 14622 | .vendor = "ST", |
| 14623 | .name = "M50FLW040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14624 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14625 | .manufacture_id = ST_ID, |
| 14626 | .model_id = ST_M50FLW040B, |
| 14627 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14628 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14629 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14630 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14631 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 14632 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14633 | .block_erasers = |
| 14634 | { |
| 14635 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14636 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14637 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14638 | {4 * 1024, 16}, /* sector */ |
| 14639 | {64 * 1024, 5}, /* block */ |
| 14640 | {4 * 1024, 16}, /* sector */ |
| 14641 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 14642 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14643 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14644 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14645 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14646 | } |
| 14647 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14648 | .unlock = unlock_regspace2_uniform_64k, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 14649 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14650 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14651 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14652 | }, |
| 14653 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14654 | { |
| 14655 | .vendor = "ST", |
| 14656 | .name = "M50FLW080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14657 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14658 | .manufacture_id = ST_ID, |
| 14659 | .model_id = ST_M50FLW080A, |
| 14660 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14661 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14662 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14663 | .tested = TEST_OK_PR, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14664 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 14665 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14666 | .block_erasers = |
| 14667 | { |
| 14668 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14669 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14670 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14671 | {64 * 1024, 13}, /* block */ |
| 14672 | {4 * 1024, 16}, /* sector */ |
| 14673 | {4 * 1024, 16}, /* sector */ |
| 14674 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 14675 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14676 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14677 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14678 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14679 | } |
| 14680 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14681 | .printlock = printlock_regspace2_block_eraser_0, |
| 14682 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14683 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14684 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14685 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14686 | }, |
| 14687 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14688 | { |
| 14689 | .vendor = "ST", |
| 14690 | .name = "M50FLW080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14691 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14692 | .manufacture_id = ST_ID, |
| 14693 | .model_id = ST_M50FLW080B, |
| 14694 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14695 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14696 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14697 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14698 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 14699 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14700 | .block_erasers = |
| 14701 | { |
| 14702 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14703 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14704 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14705 | {4 * 1024, 16}, /* sector */ |
| 14706 | {64 * 1024, 13}, /* block */ |
| 14707 | {4 * 1024, 16}, /* sector */ |
| 14708 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 14709 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14710 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14711 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14712 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14713 | } |
| 14714 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14715 | .printlock = printlock_regspace2_block_eraser_0, |
| 14716 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14717 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14718 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14719 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14720 | }, |
| 14721 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14722 | { |
| 14723 | .vendor = "ST", |
| 14724 | .name = "M50FW002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14725 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14726 | .manufacture_id = ST_ID, |
| 14727 | .model_id = ST_M50FW002, |
| 14728 | .total_size = 256, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14729 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14730 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14731 | .tested = TEST_OK_PR, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14732 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14733 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14734 | .block_erasers = |
| 14735 | { |
| 14736 | { |
| 14737 | .eraseblocks = { |
| 14738 | {64 * 1024, 3}, |
| 14739 | {32 * 1024, 1}, |
| 14740 | {8 * 1024, 2}, |
| 14741 | {16 * 1024, 1}, |
| 14742 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14743 | .block_erase = erase_block_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14744 | }, { |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 14745 | .eraseblocks = { {256 * 1024, 1} }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14746 | .block_erase = NULL, /* Only in A/A mux mode */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14747 | } |
| 14748 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14749 | .printlock = printlock_regspace2_block_eraser_0, |
| 14750 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14751 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14752 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14753 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14754 | }, |
| 14755 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14756 | { |
| 14757 | .vendor = "ST", |
| 14758 | .name = "M50FW016", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14759 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14760 | .manufacture_id = ST_ID, |
| 14761 | .model_id = ST_M50FW016, |
| 14762 | .total_size = 2048, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14763 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14764 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14765 | .tested = TEST_UNTESTED, |
| 14766 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14767 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14768 | .block_erasers = |
| 14769 | { |
| 14770 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14771 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14772 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14773 | } |
| 14774 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14775 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14776 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14777 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14778 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14779 | }, |
| 14780 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14781 | { |
| 14782 | .vendor = "ST", |
| 14783 | .name = "M50FW040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14784 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14785 | .manufacture_id = ST_ID, |
| 14786 | .model_id = ST_M50FW040, |
| 14787 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14788 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14789 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14790 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14791 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14792 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14793 | .block_erasers = |
| 14794 | { |
| 14795 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14796 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14797 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14798 | } |
| 14799 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14800 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14801 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14802 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14803 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14804 | }, |
| 14805 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14806 | { |
| 14807 | .vendor = "ST", |
| 14808 | .name = "M50FW080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14809 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14810 | .manufacture_id = ST_ID, |
| 14811 | .model_id = ST_M50FW080, |
| 14812 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14813 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14814 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14815 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14816 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14817 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14818 | .block_erasers = |
| 14819 | { |
| 14820 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14821 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14822 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14823 | } |
| 14824 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14825 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14826 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14827 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14828 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14829 | }, |
| 14830 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14831 | { |
| 14832 | .vendor = "ST", |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 14833 | .name = "M50LPW080", |
| 14834 | .bustype = BUS_LPC, /* A/A Mux */ |
| 14835 | .manufacture_id = ST_ID, |
| 14836 | .model_id = ST_M50LPW080, |
| 14837 | .total_size = 1024, |
| 14838 | .page_size = 0, |
| 14839 | .feature_bits = FEATURE_REGISTERMAP, |
| 14840 | .tested = TEST_UNTESTED, |
| 14841 | .probe = probe_82802ab, |
| 14842 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 14843 | .block_erasers = |
| 14844 | { |
| 14845 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14846 | .eraseblocks = { {64 * 1024, 16} }, |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 14847 | .block_erase = erase_block_82802ab, |
| 14848 | } |
| 14849 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14850 | .unlock = unlock_regspace2_uniform_64k, |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 14851 | .write = write_82802ab, |
| 14852 | .read = read_memmapped, |
| 14853 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
| 14854 | }, |
| 14855 | |
| 14856 | { |
| 14857 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14858 | .name = "M50LPW116", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14859 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14860 | .manufacture_id = ST_ID, |
| 14861 | .model_id = ST_M50LPW116, |
| 14862 | .total_size = 2048, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14863 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14864 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14865 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14866 | .probe = probe_82802ab, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14867 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14868 | .block_erasers = |
| 14869 | { |
| 14870 | { |
| 14871 | .eraseblocks = { |
| 14872 | {4 * 1024, 16}, |
| 14873 | {64 * 1024, 30}, |
| 14874 | {32 * 1024, 1}, |
| 14875 | {8 * 1024, 2}, |
| 14876 | {16 * 1024, 1}, |
| 14877 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14878 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14879 | } |
| 14880 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14881 | .printlock = printlock_regspace2_block_eraser_0, |
| 14882 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14883 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14884 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14885 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14886 | }, |
| 14887 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14888 | { |
Konstantin Grudnev | 3d8868c | 2019-07-23 00:48:54 +0300 | [diff] [blame] | 14889 | .vendor = "ST", |
| 14890 | .name = "M95M02", |
| 14891 | .bustype = BUS_SPI, |
| 14892 | .manufacture_id = ST_ID, |
| 14893 | .model_id = ST_M95M02, |
| 14894 | .total_size = 256, |
| 14895 | .page_size = 256, |
| 14896 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_NO_ERASE | FEATURE_ERASED_ZERO, |
| 14897 | .tested = TEST_OK_PREW, |
| 14898 | .probe = probe_spi_st95, |
| 14899 | .probe_timing = TIMING_ZERO, |
| 14900 | .block_erasers = |
| 14901 | { |
| 14902 | { |
| 14903 | .eraseblocks = { {256 * 1024, 1} }, |
| 14904 | .block_erase = spi_block_erase_emulation, |
| 14905 | } |
| 14906 | }, |
| 14907 | |
| 14908 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 14909 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 14910 | .write = spi_chip_write_256, |
| 14911 | .read = spi_chip_read, |
| 14912 | .voltage = {2500, 5500}, |
| 14913 | }, |
| 14914 | |
| 14915 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14916 | .vendor = "Sanyo", |
| 14917 | .name = "LE25FU106B", |
| 14918 | .bustype = BUS_SPI, |
| 14919 | .manufacture_id = SANYO_ID, |
| 14920 | .model_id = SANYO_LE25FU106B, |
| 14921 | .total_size = 128, |
| 14922 | .page_size = 256, |
| 14923 | .feature_bits = FEATURE_WRSR_WREN, |
| 14924 | .tested = TEST_UNTESTED, |
| 14925 | .probe = probe_spi_res2, |
| 14926 | .probe_timing = TIMING_ZERO, |
| 14927 | .block_erasers = |
| 14928 | { |
| 14929 | /* FIXME: Is this correct? |
| 14930 | { |
| 14931 | .eraseblocks = { {2 * 1024, 64} }, |
| 14932 | .block_erase = spi_block_erase_d7, |
| 14933 | },*/ |
| 14934 | { |
| 14935 | .eraseblocks = { {32 * 1024, 4} }, |
| 14936 | .block_erase = spi_block_erase_d8, |
| 14937 | }, { |
| 14938 | .eraseblocks = { {128 * 1024, 1} }, |
| 14939 | .block_erase = spi_block_erase_c7, |
| 14940 | } |
| 14941 | }, |
| 14942 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 14943 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 14944 | .write = spi_chip_write_256, |
| 14945 | .read = spi_chip_read, |
| 14946 | .voltage = {2300, 3600}, |
| 14947 | }, |
| 14948 | |
| 14949 | { |
| 14950 | .vendor = "Sanyo", |
| 14951 | .name = "LE25FU206", |
| 14952 | .bustype = BUS_SPI, |
| 14953 | .manufacture_id = SANYO_ID, |
| 14954 | .model_id = SANYO_LE25FU206, |
| 14955 | .total_size = 256, |
| 14956 | .page_size = 256, |
| 14957 | .feature_bits = FEATURE_WRSR_WREN, |
| 14958 | .tested = TEST_UNTESTED, |
| 14959 | .probe = probe_spi_res2, |
| 14960 | .probe_timing = TIMING_ZERO, |
| 14961 | .block_erasers = |
| 14962 | { |
| 14963 | { |
| 14964 | .eraseblocks = { {4 * 1024, 64} }, |
| 14965 | .block_erase = spi_block_erase_d7, |
| 14966 | }, { |
| 14967 | .eraseblocks = { {64 * 1024, 4} }, |
| 14968 | .block_erase = spi_block_erase_d8, |
| 14969 | }, { |
| 14970 | .eraseblocks = { {256 * 1024, 1} }, |
| 14971 | .block_erase = spi_block_erase_c7, |
| 14972 | } |
| 14973 | }, |
| 14974 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 14975 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 14976 | .write = spi_chip_write_256, |
| 14977 | .read = spi_chip_read, |
| 14978 | .voltage = {2300, 3600}, |
| 14979 | }, |
| 14980 | |
| 14981 | { |
| 14982 | .vendor = "Sanyo", |
| 14983 | .name = "LE25FU206A", |
| 14984 | .bustype = BUS_SPI, |
| 14985 | .manufacture_id = SANYO_ID, |
| 14986 | .model_id = SANYO_LE25FU206A, |
| 14987 | .total_size = 256, |
| 14988 | .page_size = 256, |
| 14989 | .tested = TEST_UNTESTED, |
| 14990 | .probe = probe_spi_rdid, |
| 14991 | .probe_timing = TIMING_ZERO, |
| 14992 | .block_erasers = |
| 14993 | { |
| 14994 | { |
| 14995 | .eraseblocks = { {4 * 1024, 64} }, |
| 14996 | .block_erase = spi_block_erase_20, |
| 14997 | }, { |
| 14998 | .eraseblocks = { {4 * 1024, 64} }, |
| 14999 | .block_erase = spi_block_erase_d7, |
| 15000 | }, { |
| 15001 | .eraseblocks = { {64 * 1024, 4} }, |
| 15002 | .block_erase = spi_block_erase_d8, |
| 15003 | }, { |
| 15004 | .eraseblocks = { {256 * 1024, 1} }, |
| 15005 | .block_erase = spi_block_erase_60, |
| 15006 | }, { |
| 15007 | .eraseblocks = { {256 * 1024, 1} }, |
| 15008 | .block_erase = spi_block_erase_c7, |
| 15009 | } |
| 15010 | }, |
| 15011 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 15012 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 15013 | .write = spi_chip_write_256, |
| 15014 | .read = spi_chip_read, |
| 15015 | .voltage = {2300, 3600}, |
| 15016 | }, |
| 15017 | |
| 15018 | { |
| 15019 | .vendor = "Sanyo", |
| 15020 | .name = "LE25FU406B", |
| 15021 | .bustype = BUS_SPI, |
| 15022 | .manufacture_id = SANYO_ID, |
| 15023 | .model_id = SANYO_LE25FU406B, |
| 15024 | .total_size = 512, |
| 15025 | .page_size = 256, |
| 15026 | .feature_bits = FEATURE_WRSR_WREN, |
| 15027 | .tested = TEST_OK_PREW, |
| 15028 | .probe = probe_spi_res2, |
| 15029 | .probe_timing = TIMING_ZERO, |
| 15030 | .block_erasers = |
| 15031 | { |
| 15032 | { |
| 15033 | .eraseblocks = { {4 * 1024, 128} }, |
| 15034 | .block_erase = spi_block_erase_d7, |
| 15035 | }, { |
| 15036 | .eraseblocks = { {64 * 1024, 8} }, |
| 15037 | .block_erase = spi_block_erase_d8, |
| 15038 | }, { |
| 15039 | .eraseblocks = { {512 * 1024, 1} }, |
| 15040 | .block_erase = spi_block_erase_c7, |
| 15041 | } |
| 15042 | }, |
| 15043 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 15044 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 15045 | .write = spi_chip_write_256, |
| 15046 | .read = spi_chip_read, |
| 15047 | .voltage = {2300, 3600}, |
| 15048 | }, |
| 15049 | |
| 15050 | { |
| 15051 | .vendor = "Sanyo", |
| 15052 | .name = "LE25FU406C/LE25U40CMC", |
| 15053 | .bustype = BUS_SPI, |
| 15054 | .manufacture_id = SANYO_ID, |
| 15055 | .model_id = SANYO_LE25FU406C, |
| 15056 | .total_size = 512, |
| 15057 | .page_size = 256, |
| 15058 | .feature_bits = FEATURE_WRSR_WREN, |
| 15059 | .tested = TEST_OK_PREW, |
| 15060 | .probe = probe_spi_rdid, |
| 15061 | .probe_timing = TIMING_ZERO, |
| 15062 | .block_erasers = |
| 15063 | { |
| 15064 | { |
| 15065 | .eraseblocks = { {4 * 1024, 128} }, |
| 15066 | .block_erase = spi_block_erase_20, |
| 15067 | }, { |
| 15068 | .eraseblocks = { {4 * 1024, 128} }, |
| 15069 | .block_erase = spi_block_erase_d7, |
| 15070 | }, { |
| 15071 | .eraseblocks = { {64 * 1024, 8} }, |
| 15072 | .block_erase = spi_block_erase_d8, |
| 15073 | }, { |
| 15074 | .eraseblocks = { {512 * 1024, 1} }, |
| 15075 | .block_erase = spi_block_erase_60, |
| 15076 | }, { |
| 15077 | .eraseblocks = { {512 * 1024, 1} }, |
| 15078 | .block_erase = spi_block_erase_c7, |
| 15079 | } |
| 15080 | }, |
| 15081 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 15082 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 15083 | .write = spi_chip_write_256, |
| 15084 | .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */ |
| 15085 | .voltage = {2300, 3600}, |
| 15086 | }, |
| 15087 | |
| 15088 | { |
| 15089 | .vendor = "Sanyo", |
| 15090 | .name = "LE25FW106", |
| 15091 | .bustype = BUS_SPI, |
| 15092 | .manufacture_id = SANYO_ID, |
| 15093 | .model_id = SANYO_LE25FW106, |
| 15094 | .total_size = 128, |
| 15095 | .page_size = 256, |
| 15096 | .feature_bits = FEATURE_WRSR_WREN, |
| 15097 | .tested = TEST_OK_PREW, |
| 15098 | .probe = probe_spi_res2, |
| 15099 | .probe_timing = TIMING_ZERO, |
| 15100 | .block_erasers = |
| 15101 | { |
| 15102 | { |
| 15103 | .eraseblocks = { {2 * 1024, 64} }, |
| 15104 | .block_erase = spi_block_erase_d7, |
| 15105 | }, { |
| 15106 | .eraseblocks = { {32 * 1024, 4} }, |
| 15107 | .block_erase = spi_block_erase_d8, |
| 15108 | }, { |
| 15109 | .eraseblocks = { {128 * 1024, 1} }, |
| 15110 | .block_erase = spi_block_erase_c7, |
| 15111 | } |
| 15112 | }, |
| 15113 | .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */ |
| 15114 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 15115 | .write = spi_chip_write_256, |
| 15116 | .read = spi_chip_read, |
| 15117 | .voltage = {2700, 3600}, |
| 15118 | }, |
| 15119 | |
| 15120 | { |
| 15121 | .vendor = "Sanyo", |
| 15122 | .name = "LE25FW203A", |
| 15123 | .bustype = BUS_SPI, |
| 15124 | .manufacture_id = SANYO_ID, |
| 15125 | .model_id = SANYO_LE25FW203A, |
| 15126 | .total_size = 256, |
| 15127 | .page_size = 256, |
| 15128 | .tested = TEST_UNTESTED, |
| 15129 | .probe = probe_spi_rdid, |
| 15130 | .probe_timing = TIMING_ZERO, |
| 15131 | .block_erasers = |
| 15132 | { |
| 15133 | { |
| 15134 | .eraseblocks = { {256, 1024} }, |
| 15135 | .block_erase = spi_block_erase_db, |
| 15136 | }, { |
| 15137 | .eraseblocks = { {64 * 1024, 4} }, |
| 15138 | .block_erase = spi_block_erase_d8, |
| 15139 | }, { |
| 15140 | .eraseblocks = { {256 * 1024, 1} }, |
| 15141 | .block_erase = spi_block_erase_c7, |
| 15142 | } |
| 15143 | }, |
| 15144 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 15145 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 15146 | .write = spi_chip_write_256, |
| 15147 | .read = spi_chip_read, |
| 15148 | .voltage = {2700, 3600}, |
| 15149 | }, |
| 15150 | |
| 15151 | { |
| 15152 | .vendor = "Sanyo", |
| 15153 | .name = "LE25FW403A", |
| 15154 | .bustype = BUS_SPI, |
| 15155 | .manufacture_id = SANYO_ID, |
| 15156 | .model_id = SANYO_LE25FW403A, |
| 15157 | .total_size = 512, |
| 15158 | .page_size = 256, |
| 15159 | .tested = TEST_UNTESTED, |
| 15160 | .probe = probe_spi_rdid, |
| 15161 | .probe_timing = TIMING_ZERO, |
| 15162 | .block_erasers = |
| 15163 | { |
| 15164 | { |
| 15165 | .eraseblocks = { {256, 2 * 1024} }, |
| 15166 | .block_erase = spi_block_erase_db, |
| 15167 | }, { |
| 15168 | .eraseblocks = { {64 * 1024, 8} }, |
| 15169 | .block_erase = spi_block_erase_d8, |
| 15170 | }, { |
| 15171 | .eraseblocks = { {512 * 1024, 1} }, |
| 15172 | .block_erase = spi_block_erase_c7, |
| 15173 | } |
| 15174 | }, |
| 15175 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 15176 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 15177 | .write = spi_chip_write_256, |
| 15178 | .read = spi_chip_read, |
| 15179 | .voltage = {2700, 3600}, |
| 15180 | }, |
| 15181 | |
| 15182 | { |
| 15183 | .vendor = "Sanyo", |
| 15184 | .name = "LE25FW406A", |
| 15185 | .bustype = BUS_SPI, |
| 15186 | .manufacture_id = SANYO_ID, |
| 15187 | .model_id = SANYO_LE25FW406A, |
| 15188 | .total_size = 512, |
| 15189 | .page_size = 256, |
| 15190 | .feature_bits = FEATURE_WRSR_WREN, |
| 15191 | .tested = TEST_OK_PREW, |
| 15192 | .probe = probe_spi_res2, |
| 15193 | .probe_timing = TIMING_ZERO, |
| 15194 | .block_erasers = |
| 15195 | { |
| 15196 | { |
| 15197 | .eraseblocks = { {4 * 1024, 128} }, |
| 15198 | .block_erase = spi_block_erase_d7, |
| 15199 | }, { |
| 15200 | .eraseblocks = { {64 * 1024, 8} }, |
| 15201 | .block_erase = spi_block_erase_d8, |
| 15202 | }, { |
| 15203 | .eraseblocks = { {512 * 1024, 1} }, |
| 15204 | .block_erase = spi_block_erase_c7, |
| 15205 | } |
| 15206 | }, |
| 15207 | .printlock = spi_prettyprint_status_register_plain, |
| 15208 | .unlock = spi_disable_blockprotect, |
| 15209 | .write = spi_chip_write_256, |
| 15210 | .read = spi_chip_read, |
| 15211 | .voltage = {2700, 3600}, |
| 15212 | }, |
| 15213 | |
| 15214 | { |
| 15215 | .vendor = "Sanyo", |
| 15216 | .name = "LE25FW418A", |
| 15217 | .bustype = BUS_SPI, |
| 15218 | .manufacture_id = SANYO_ID, |
| 15219 | .model_id = SANYO_LE25FW418A, |
| 15220 | .total_size = 512, |
| 15221 | .page_size = 256, |
| 15222 | .feature_bits = FEATURE_WRSR_WREN, |
| 15223 | .tested = TEST_UNTESTED, |
| 15224 | .probe = probe_spi_res2, |
| 15225 | .probe_timing = TIMING_ZERO, |
| 15226 | .block_erasers = |
| 15227 | { |
| 15228 | { |
| 15229 | .eraseblocks = { {4 * 1024, 128} }, |
| 15230 | .block_erase = spi_block_erase_d7, |
| 15231 | }, { |
| 15232 | .eraseblocks = { {64 * 1024, 8} }, |
| 15233 | .block_erase = spi_block_erase_d8, |
| 15234 | }, { |
| 15235 | .eraseblocks = { {512 * 1024, 1} }, |
| 15236 | .block_erase = spi_block_erase_c7, |
| 15237 | } |
| 15238 | }, |
| 15239 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 15240 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 15241 | .write = spi_chip_write_256, |
| 15242 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 15243 | .voltage = {2700, 3600}, |
| 15244 | }, |
| 15245 | |
| 15246 | { |
| 15247 | .vendor = "Sanyo", |
| 15248 | .name = "LE25FW806", |
| 15249 | .bustype = BUS_SPI, |
| 15250 | .manufacture_id = SANYO_ID, |
| 15251 | .model_id = SANYO_LE25FW806, |
| 15252 | .total_size = 1024, |
| 15253 | .page_size = 256, |
| 15254 | .feature_bits = FEATURE_WRSR_WREN, |
| 15255 | .tested = TEST_UNTESTED, |
| 15256 | .probe = probe_spi_res2, |
| 15257 | .probe_timing = TIMING_ZERO, |
| 15258 | .block_erasers = |
| 15259 | { |
| 15260 | { |
| 15261 | .eraseblocks = { {4 * 1024, 256} }, |
| 15262 | .block_erase = spi_block_erase_20, |
| 15263 | }, { |
| 15264 | .eraseblocks = { {4 * 1024, 256} }, |
| 15265 | .block_erase = spi_block_erase_d7, |
| 15266 | }, { |
| 15267 | .eraseblocks = { {64 * 1024, 16} }, |
| 15268 | .block_erase = spi_block_erase_d8, |
| 15269 | }, { |
| 15270 | .eraseblocks = { {1024 * 1024, 1} }, |
| 15271 | .block_erase = spi_block_erase_c7, |
| 15272 | } |
| 15273 | }, |
| 15274 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 15275 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 15276 | .write = spi_chip_write_256, |
| 15277 | .read = spi_chip_read, |
| 15278 | .voltage = {2700, 3600}, |
| 15279 | }, |
| 15280 | |
| 15281 | { |
| 15282 | .vendor = "Sanyo", |
| 15283 | .name = "LE25FW808", |
| 15284 | .bustype = BUS_SPI, |
| 15285 | .manufacture_id = SANYO_ID, |
| 15286 | .model_id = SANYO_LE25FW808, |
| 15287 | .total_size = 1024, |
| 15288 | .page_size = 256, |
| 15289 | .feature_bits = FEATURE_WRSR_WREN, |
| 15290 | .tested = TEST_UNTESTED, |
| 15291 | .probe = probe_spi_res2, |
| 15292 | .probe_timing = TIMING_ZERO, |
| 15293 | .block_erasers = |
| 15294 | { |
| 15295 | { |
| 15296 | .eraseblocks = { {8 * 1024, 128} }, |
| 15297 | .block_erase = spi_block_erase_d7, |
| 15298 | }, { |
| 15299 | .eraseblocks = { {64 * 1024, 16} }, |
| 15300 | .block_erase = spi_block_erase_d8, |
| 15301 | }, { |
| 15302 | .eraseblocks = { {1024 * 1024, 1} }, |
| 15303 | .block_erase = spi_block_erase_c7, |
| 15304 | } |
| 15305 | }, |
| 15306 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 15307 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 15308 | .write = spi_chip_write_256, |
| 15309 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 15310 | .voltage = {2700, 3600}, |
| 15311 | }, |
| 15312 | |
| 15313 | { |
| 15314 | .vendor = "Sharp", |
| 15315 | .name = "LH28F008BJT-BTLZ1", |
| 15316 | .bustype = BUS_PARALLEL, |
| 15317 | .manufacture_id = SHARP_ID, |
| 15318 | .model_id = SHARP_LH28F008BJ__PB, |
| 15319 | .total_size = 1024, |
| 15320 | .page_size = 64 * 1024, |
| 15321 | .tested = TEST_OK_PREW, |
| 15322 | .probe = probe_82802ab, |
| 15323 | .probe_timing = TIMING_ZERO, |
| 15324 | .block_erasers = |
| 15325 | { |
| 15326 | { |
| 15327 | .eraseblocks = { |
| 15328 | {8 * 1024, 8}, |
| 15329 | {64 * 1024, 15} |
| 15330 | }, |
| 15331 | .block_erase = erase_block_82802ab, |
| 15332 | }, { |
| 15333 | .eraseblocks = { {1024 * 1024, 1} }, |
| 15334 | .block_erase = erase_sector_49lfxxxc, |
| 15335 | } |
| 15336 | }, |
| 15337 | .unlock = unlock_lh28f008bjt, |
| 15338 | .write = write_82802ab, |
| 15339 | .read = read_memmapped, |
| 15340 | .voltage = {2700, 3600}, |
| 15341 | }, |
| 15342 | |
| 15343 | { |
| 15344 | .vendor = "Sharp", |
| 15345 | .name = "LHF00L04", |
| 15346 | .bustype = BUS_FWH, /* A/A Mux */ |
| 15347 | .manufacture_id = SHARP_ID, |
| 15348 | .model_id = SHARP_LHF00L04, |
| 15349 | .total_size = 1024, |
| 15350 | .page_size = 64 * 1024, |
| 15351 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
| 15352 | .tested = TEST_UNTESTED, |
| 15353 | .probe = probe_82802ab, |
| 15354 | .probe_timing = TIMING_ZERO, |
| 15355 | .block_erasers = |
| 15356 | { |
| 15357 | { |
| 15358 | .eraseblocks = { |
| 15359 | {64 * 1024, 15}, |
| 15360 | {8 * 1024, 8} |
| 15361 | }, |
| 15362 | .block_erase = erase_block_82802ab, |
| 15363 | }, { |
| 15364 | .eraseblocks = { |
| 15365 | {1024 * 1024, 1} |
| 15366 | }, |
| 15367 | .block_erase = NULL, /* 30 D0, only in A/A mux mode */ |
| 15368 | }, |
| 15369 | }, |
| 15370 | .unlock = unlock_regspace2_uniform_64k, |
| 15371 | .write = write_82802ab, |
| 15372 | .read = read_memmapped, |
| 15373 | .voltage = {3000, 3600}, |
| 15374 | }, |
| 15375 | |
| 15376 | { |
| 15377 | .vendor = "Spansion", |
| 15378 | .name = "S25FL004A", |
| 15379 | .bustype = BUS_SPI, |
| 15380 | .manufacture_id = SPANSION_ID, |
| 15381 | .model_id = SPANSION_S25FL004A, |
| 15382 | .total_size = 512, |
| 15383 | .page_size = 256, |
| 15384 | .feature_bits = FEATURE_WRSR_WREN, |
| 15385 | .tested = TEST_UNTESTED, |
| 15386 | .probe = probe_spi_rdid, |
| 15387 | .probe_timing = TIMING_ZERO, |
| 15388 | .block_erasers = |
| 15389 | { |
| 15390 | { |
| 15391 | .eraseblocks = { {64 * 1024, 8} }, |
| 15392 | .block_erase = spi_block_erase_d8, |
| 15393 | }, { |
| 15394 | .eraseblocks = { {512 * 1024, 1} }, |
| 15395 | .block_erase = spi_block_erase_c7, |
| 15396 | } |
| 15397 | }, |
| 15398 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15399 | .unlock = spi_disable_blockprotect, |
| 15400 | .write = spi_chip_write_256, |
| 15401 | .read = spi_chip_read, |
| 15402 | .voltage = {2700, 3600}, |
| 15403 | }, |
| 15404 | |
| 15405 | { |
| 15406 | .vendor = "Spansion", |
| 15407 | .name = "S25FL008A", |
| 15408 | .bustype = BUS_SPI, |
| 15409 | .manufacture_id = SPANSION_ID, |
| 15410 | .model_id = SPANSION_S25FL008A, |
| 15411 | .total_size = 1024, |
| 15412 | .page_size = 256, |
| 15413 | .feature_bits = FEATURE_WRSR_WREN, |
| 15414 | .tested = TEST_OK_PRE, |
| 15415 | .probe = probe_spi_rdid, |
| 15416 | .probe_timing = TIMING_ZERO, |
| 15417 | .block_erasers = |
| 15418 | { |
| 15419 | { |
| 15420 | .eraseblocks = { {64 * 1024, 16} }, |
| 15421 | .block_erase = spi_block_erase_d8, |
| 15422 | }, { |
| 15423 | .eraseblocks = { {1024 * 1024, 1} }, |
| 15424 | .block_erase = spi_block_erase_c7, |
| 15425 | } |
| 15426 | }, |
| 15427 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15428 | .unlock = spi_disable_blockprotect, |
| 15429 | .write = spi_chip_write_256, |
| 15430 | .read = spi_chip_read, |
| 15431 | .voltage = {2700, 3600}, |
| 15432 | }, |
| 15433 | |
| 15434 | { |
| 15435 | .vendor = "Spansion", |
| 15436 | .name = "S25FL016A", |
| 15437 | .bustype = BUS_SPI, |
| 15438 | .manufacture_id = SPANSION_ID, |
| 15439 | .model_id = SPANSION_S25FL016A, |
| 15440 | .total_size = 2048, |
| 15441 | .page_size = 256, |
| 15442 | .feature_bits = FEATURE_WRSR_WREN, |
| 15443 | .tested = TEST_OK_PREW, |
| 15444 | .probe = probe_spi_rdid, |
| 15445 | .probe_timing = TIMING_ZERO, |
| 15446 | .block_erasers = |
| 15447 | { |
| 15448 | { |
| 15449 | .eraseblocks = { {64 * 1024, 32} }, |
| 15450 | .block_erase = spi_block_erase_d8, |
| 15451 | }, { |
| 15452 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 15453 | .block_erase = spi_block_erase_c7, |
| 15454 | } |
| 15455 | }, |
| 15456 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15457 | .unlock = spi_disable_blockprotect, |
| 15458 | .write = spi_chip_write_256, |
| 15459 | .read = spi_chip_read, |
| 15460 | .voltage = {2700, 3600}, |
| 15461 | }, |
| 15462 | |
| 15463 | { |
| 15464 | .vendor = "Spansion", |
| 15465 | .name = "S25FL032A/P", |
| 15466 | .bustype = BUS_SPI, |
| 15467 | .manufacture_id = SPANSION_ID, |
| 15468 | .model_id = SPANSION_S25FL032A, |
| 15469 | .total_size = 4096, |
| 15470 | .page_size = 256, |
| 15471 | .feature_bits = FEATURE_WRSR_WREN, |
| 15472 | .tested = TEST_OK_PREW, |
| 15473 | .probe = probe_spi_rdid, |
| 15474 | .probe_timing = TIMING_ZERO, |
| 15475 | .block_erasers = |
| 15476 | { |
| 15477 | { |
| 15478 | .eraseblocks = { {64 * 1024, 64} }, |
| 15479 | .block_erase = spi_block_erase_d8, |
| 15480 | }, { |
| 15481 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 15482 | .block_erase = spi_block_erase_c7, |
| 15483 | } |
| 15484 | }, |
| 15485 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15486 | .unlock = spi_disable_blockprotect, |
| 15487 | .write = spi_chip_write_256, |
| 15488 | .read = spi_chip_read, |
| 15489 | .voltage = {2700, 3600}, |
| 15490 | }, |
| 15491 | |
| 15492 | { |
| 15493 | .vendor = "Spansion", |
| 15494 | .name = "S25FL064A/P", |
| 15495 | .bustype = BUS_SPI, |
| 15496 | .manufacture_id = SPANSION_ID, |
| 15497 | .model_id = SPANSION_S25FL064A, |
| 15498 | .total_size = 8192, |
| 15499 | .page_size = 256, |
| 15500 | .feature_bits = FEATURE_WRSR_WREN, |
| 15501 | .tested = TEST_OK_PREW, |
| 15502 | .probe = probe_spi_rdid, |
| 15503 | .probe_timing = TIMING_ZERO, |
| 15504 | .block_erasers = |
| 15505 | { |
| 15506 | { |
| 15507 | .eraseblocks = { {64 * 1024, 128} }, |
| 15508 | .block_erase = spi_block_erase_d8, |
| 15509 | }, { |
| 15510 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 15511 | .block_erase = spi_block_erase_c7, |
| 15512 | } |
| 15513 | }, |
| 15514 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15515 | .unlock = spi_disable_blockprotect, |
| 15516 | .write = spi_chip_write_256, |
| 15517 | .read = spi_chip_read, |
| 15518 | .voltage = {2700, 3600}, |
| 15519 | }, |
| 15520 | |
| 15521 | { |
| 15522 | .vendor = "Spansion", |
| 15523 | .name = "S25FL116K/S25FL216K", /* FIXME: separate them */ |
| 15524 | .bustype = BUS_SPI, |
| 15525 | .manufacture_id = SPANSION_ID, |
| 15526 | .model_id = SPANSION_S25FL216, |
| 15527 | .total_size = 2048, |
| 15528 | .page_size = 256, |
| 15529 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */ |
| 15530 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15531 | .tested = TEST_UNTESTED, |
| 15532 | .probe = probe_spi_rdid, |
| 15533 | .probe_timing = TIMING_ZERO, |
| 15534 | .block_erasers = |
| 15535 | { |
| 15536 | { |
| 15537 | .eraseblocks = { {4 * 1024, 512} }, |
| 15538 | .block_erase = spi_block_erase_20, |
| 15539 | }, { |
| 15540 | .eraseblocks = { {64 * 1024, 32} }, |
| 15541 | .block_erase = spi_block_erase_d8, |
| 15542 | }, { |
| 15543 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 15544 | .block_erase = spi_block_erase_60, |
| 15545 | }, { |
| 15546 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 15547 | .block_erase = spi_block_erase_c7, |
| 15548 | } |
| 15549 | }, |
| 15550 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 15551 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 15552 | .write = spi_chip_write_256, |
| 15553 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
| 15554 | .voltage = {2700, 3600}, |
| 15555 | }, |
| 15556 | |
| 15557 | { |
| 15558 | .vendor = "Spansion", |
| 15559 | .name = "S25FL127S-256kB", /* uniform 256kB sectors */ |
| 15560 | .bustype = BUS_SPI, |
| 15561 | .manufacture_id = SPANSION_ID, |
| 15562 | .model_id = SPANSION_S25FL128, |
| 15563 | .total_size = 16384, |
| 15564 | .page_size = 512, |
| 15565 | /* supports 4B addressing */ |
| 15566 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 15567 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15568 | .tested = TEST_UNTESTED, |
| 15569 | .probe = probe_spi_rdid, |
| 15570 | .probe_timing = TIMING_ZERO, |
| 15571 | .block_erasers = |
| 15572 | { |
| 15573 | { |
| 15574 | .eraseblocks = { {256 * 1024, 64} }, |
| 15575 | .block_erase = spi_block_erase_d8, |
| 15576 | }, { |
| 15577 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15578 | .block_erase = spi_block_erase_60, |
| 15579 | }, { |
| 15580 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15581 | .block_erase = spi_block_erase_c7, |
| 15582 | } |
| 15583 | }, |
| 15584 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 15585 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 15586 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 15587 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15588 | .voltage = {2700, 3600}, |
| 15589 | }, |
| 15590 | |
| 15591 | { |
| 15592 | .vendor = "Spansion", |
| 15593 | .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 15594 | .bustype = BUS_SPI, |
| 15595 | .manufacture_id = SPANSION_ID, |
| 15596 | .model_id = SPANSION_S25FL128, |
| 15597 | .total_size = 16384, |
| 15598 | .page_size = 256, |
| 15599 | /* supports 4B addressing */ |
| 15600 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 15601 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15602 | .tested = TEST_OK_PREW, |
| 15603 | /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */ |
| 15604 | .probe = probe_spi_rdid, |
| 15605 | .probe_timing = TIMING_ZERO, |
| 15606 | .block_erasers = |
| 15607 | { |
| 15608 | { |
| 15609 | /* This chip supports erasing of 32 so-called "parameter sectors" with |
| 15610 | * opcode 0x20 which may be configured to be on top or bottom of the address |
| 15611 | * space. Trying to access an address outside these 4kB blocks does have no |
| 15612 | * effect on the memory contents, e.g. |
| 15613 | .eraseblocks = { |
| 15614 | {4 * 1024, 32}, |
| 15615 | {64 * 1024, 254} // inaccessible |
| 15616 | }, |
| 15617 | .block_erase = spi_block_erase_20, |
| 15618 | }, { */ |
| 15619 | .eraseblocks = { { 64 * 1024, 256} }, |
| 15620 | .block_erase = spi_block_erase_d8, |
| 15621 | }, { |
| 15622 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15623 | .block_erase = spi_block_erase_60, |
| 15624 | }, { |
| 15625 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15626 | .block_erase = spi_block_erase_c7, |
| 15627 | } |
| 15628 | }, |
| 15629 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 15630 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 15631 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 15632 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15633 | .voltage = {2700, 3600}, |
| 15634 | }, |
| 15635 | |
| 15636 | { |
| 15637 | .vendor = "Spansion", |
| 15638 | .name = "S25FL128P......0", /* uniform 64 kB sectors */ |
| 15639 | .bustype = BUS_SPI, |
| 15640 | .manufacture_id = SPANSION_ID, |
| 15641 | .model_id = SPANSION_S25FL128, |
| 15642 | .total_size = 16384, |
| 15643 | .page_size = 256, |
| 15644 | .feature_bits = FEATURE_WRSR_WREN, |
| 15645 | .tested = TEST_OK_PREW, |
| 15646 | .probe = probe_spi_rdid, |
| 15647 | .probe_timing = TIMING_ZERO, |
| 15648 | .block_erasers = |
| 15649 | { |
| 15650 | { |
| 15651 | .eraseblocks = { {64 * 1024, 256} }, |
| 15652 | .block_erase = spi_block_erase_20, |
| 15653 | }, { |
| 15654 | .eraseblocks = { {64 * 1024, 256} }, |
| 15655 | .block_erase = spi_block_erase_d8, |
| 15656 | }, { |
| 15657 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15658 | .block_erase = spi_block_erase_60, |
| 15659 | }, { |
| 15660 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15661 | .block_erase = spi_block_erase_c7, |
| 15662 | } |
| 15663 | }, |
| 15664 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 15665 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 15666 | .write = spi_chip_write_256, |
| 15667 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 15668 | .voltage = {2700, 3600}, |
| 15669 | }, |
| 15670 | |
| 15671 | { |
| 15672 | .vendor = "Spansion", |
| 15673 | .name = "S25FL128P......1", /* uniform 256kB sectors */ |
| 15674 | .bustype = BUS_SPI, |
| 15675 | .manufacture_id = SPANSION_ID, |
| 15676 | .model_id = SPANSION_S25FL128, |
| 15677 | .total_size = 16384, |
| 15678 | .page_size = 256, |
| 15679 | .feature_bits = FEATURE_WRSR_WREN, |
| 15680 | .tested = TEST_UNTESTED, |
| 15681 | .probe = probe_spi_rdid, |
| 15682 | .probe_timing = TIMING_ZERO, |
| 15683 | .block_erasers = |
| 15684 | { |
| 15685 | { |
| 15686 | .eraseblocks = { {256 * 1024, 64} }, |
| 15687 | .block_erase = spi_block_erase_d8, |
| 15688 | }, { |
| 15689 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15690 | .block_erase = spi_block_erase_c7, |
| 15691 | } |
| 15692 | }, |
| 15693 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 15694 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 15695 | .write = spi_chip_write_256, |
| 15696 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 15697 | .voltage = {2700, 3600}, |
| 15698 | }, |
| 15699 | |
| 15700 | { |
| 15701 | .vendor = "Spansion", |
| 15702 | .name = "S25FL128S......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 | /* supports 4B addressing */ |
| 15709 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 15710 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15711 | .tested = TEST_OK_PREW, |
| 15712 | .probe = probe_spi_rdid, |
| 15713 | .probe_timing = TIMING_ZERO, |
| 15714 | .block_erasers = |
| 15715 | { |
| 15716 | { |
| 15717 | /* This chip supports erasing of the 32 so-called "parameter sectors" with |
| 15718 | * opcode 0x20. Trying to access an address outside these 4kB blocks does |
| 15719 | * have no effect on the memory contents, but sets a flag in the SR. |
| 15720 | .eraseblocks = { |
| 15721 | {4 * 1024, 32}, |
| 15722 | {64 * 1024, 254} // inaccessible |
| 15723 | }, |
| 15724 | .block_erase = spi_block_erase_20, |
| 15725 | }, { */ |
| 15726 | .eraseblocks = { { 64 * 1024, 256} }, |
| 15727 | .block_erase = spi_block_erase_d8, |
| 15728 | }, { |
| 15729 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15730 | .block_erase = spi_block_erase_60, |
| 15731 | }, { |
| 15732 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15733 | .block_erase = spi_block_erase_c7, |
| 15734 | } |
| 15735 | }, |
| 15736 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 15737 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 15738 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 15739 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15740 | .voltage = {2700, 3600}, |
| 15741 | }, |
| 15742 | |
| 15743 | { |
| 15744 | .vendor = "Spansion", |
| 15745 | .name = "S25FL128S......1", /* uniform 256 kB sectors */ |
| 15746 | .bustype = BUS_SPI, |
| 15747 | .manufacture_id = SPANSION_ID, |
| 15748 | .model_id = SPANSION_S25FL128, |
| 15749 | .total_size = 16384, |
| 15750 | .page_size = 512, |
| 15751 | /* supports 4B addressing */ |
| 15752 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 15753 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15754 | .tested = TEST_UNTESTED, |
| 15755 | .probe = probe_spi_rdid, |
| 15756 | .probe_timing = TIMING_ZERO, |
| 15757 | .block_erasers = |
| 15758 | { |
| 15759 | { |
| 15760 | .eraseblocks = { {256 * 1024, 64} }, |
| 15761 | .block_erase = spi_block_erase_d8, |
| 15762 | }, { |
| 15763 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15764 | .block_erase = spi_block_erase_60, |
| 15765 | }, { |
| 15766 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15767 | .block_erase = spi_block_erase_c7, |
| 15768 | } |
| 15769 | }, |
| 15770 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 15771 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 15772 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 15773 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15774 | .voltage = {2700, 3600}, |
| 15775 | }, |
| 15776 | |
| 15777 | { |
| 15778 | .vendor = "Spansion", |
| 15779 | .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 15780 | .bustype = BUS_SPI, |
| 15781 | .manufacture_id = SPANSION_ID, |
| 15782 | .model_id = SPANSION_S25FL128, |
| 15783 | .total_size = 16384, |
| 15784 | .page_size = 256, |
| 15785 | /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */ |
| 15786 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15787 | .tested = TEST_OK_PREW, |
| 15788 | .probe = probe_spi_rdid, |
| 15789 | .probe_timing = TIMING_ZERO, |
| 15790 | .block_erasers = |
| 15791 | { |
| 15792 | { |
| 15793 | /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with |
| 15794 | * opcode 0x20. Trying to access an address outside these 4kB blocks does have no |
| 15795 | * effect on the memory contents, but sets a flag in the SR. |
| 15796 | .eraseblocks = { |
| 15797 | {4 * 1024, 32}, |
| 15798 | {64 * 1024, 254} // inaccessible |
| 15799 | }, |
| 15800 | .block_erase = spi_block_erase_20, |
| 15801 | }, { */ |
| 15802 | /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs |
| 15803 | .eraseblocks = { |
| 15804 | {8 * 1024, 16}, |
| 15805 | {64 * 1024, 254} // inaccessible |
| 15806 | }, |
| 15807 | .block_erase = spi_block_erase_40, |
| 15808 | }, { */ |
| 15809 | .eraseblocks = { { 64 * 1024, 256} }, |
| 15810 | .block_erase = spi_block_erase_d8, |
| 15811 | }, { |
| 15812 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15813 | .block_erase = spi_block_erase_60, |
| 15814 | }, { |
| 15815 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15816 | .block_erase = spi_block_erase_c7, |
| 15817 | } |
| 15818 | }, |
| 15819 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */ |
| 15820 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 15821 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 15822 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15823 | .voltage = {2700, 3600}, |
| 15824 | }, |
| 15825 | |
| 15826 | { |
| 15827 | .vendor = "Spansion", |
| 15828 | .name = "S25FL129P......1", /* uniform 256 kB sectors */ |
| 15829 | .bustype = BUS_SPI, |
| 15830 | .manufacture_id = SPANSION_ID, |
| 15831 | .model_id = SPANSION_S25FL128, |
| 15832 | .total_size = 16384, |
| 15833 | .page_size = 256, |
| 15834 | /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */ |
| 15835 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15836 | .tested = TEST_UNTESTED, |
| 15837 | .probe = probe_spi_rdid, |
| 15838 | .probe_timing = TIMING_ZERO, |
| 15839 | .block_erasers = |
| 15840 | { |
| 15841 | { |
| 15842 | .eraseblocks = { {256 * 1024, 64} }, |
| 15843 | .block_erase = spi_block_erase_d8, |
| 15844 | }, { |
| 15845 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15846 | .block_erase = spi_block_erase_60, |
| 15847 | }, { |
| 15848 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15849 | .block_erase = spi_block_erase_c7, |
| 15850 | } |
| 15851 | }, |
| 15852 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */ |
| 15853 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 15854 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 15855 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15856 | .voltage = {2700, 3600}, |
| 15857 | }, |
| 15858 | |
| 15859 | { |
| 15860 | .vendor = "Spansion", |
| 15861 | .name = "S25FL132K", |
| 15862 | .bustype = BUS_SPI, |
| 15863 | .manufacture_id = SPANSION_ID, |
| 15864 | .model_id = SPANSION_S25FL132K, |
| 15865 | .total_size = 4096, |
| 15866 | .page_size = 256, |
| 15867 | /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 15868 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15869 | .tested = TEST_UNTESTED, |
| 15870 | .probe = probe_spi_rdid, |
| 15871 | .probe_timing = TIMING_ZERO, |
| 15872 | .block_erasers = |
| 15873 | { |
| 15874 | { |
| 15875 | .eraseblocks = { {4 * 1024, 1024} }, |
| 15876 | .block_erase = spi_block_erase_20, |
| 15877 | }, { |
| 15878 | .eraseblocks = { {64 * 1024, 64} }, |
| 15879 | .block_erase = spi_block_erase_d8, |
| 15880 | }, { |
| 15881 | .eraseblocks = { { 4096 * 1024, 1} }, |
| 15882 | .block_erase = spi_block_erase_60, |
| 15883 | }, { |
| 15884 | .eraseblocks = { { 4096 * 1024, 1} }, |
| 15885 | .block_erase = spi_block_erase_c7, |
| 15886 | } |
| 15887 | }, |
| 15888 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */ |
| 15889 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 15890 | .write = spi_chip_write_256, |
| 15891 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15892 | .voltage = {2700, 3600}, |
| 15893 | }, |
| 15894 | |
| 15895 | { |
| 15896 | .vendor = "Spansion", |
| 15897 | .name = "S25FL164K", |
| 15898 | .bustype = BUS_SPI, |
| 15899 | .manufacture_id = SPANSION_ID, |
| 15900 | .model_id = SPANSION_S25FL164K, |
| 15901 | .total_size = 8192, |
| 15902 | .page_size = 256, |
| 15903 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 15904 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15905 | .tested = TEST_OK_PREW, |
| 15906 | .probe = probe_spi_rdid, |
| 15907 | .probe_timing = TIMING_ZERO, |
| 15908 | .block_erasers = |
| 15909 | { |
| 15910 | { |
| 15911 | .eraseblocks = { {4 * 1024, 2048} }, |
| 15912 | .block_erase = spi_block_erase_20, |
| 15913 | }, { |
| 15914 | .eraseblocks = { {64 * 1024, 128} }, |
| 15915 | .block_erase = spi_block_erase_d8, |
| 15916 | }, { |
| 15917 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 15918 | .block_erase = spi_block_erase_60, |
| 15919 | }, { |
| 15920 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 15921 | .block_erase = spi_block_erase_c7, |
| 15922 | } |
| 15923 | }, |
| 15924 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */ |
| 15925 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 15926 | .write = spi_chip_write_256, |
| 15927 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15928 | .voltage = {2700, 3600}, |
| 15929 | }, |
| 15930 | |
| 15931 | { |
| 15932 | .vendor = "Spansion", |
| 15933 | .name = "S25FL204K", |
| 15934 | .bustype = BUS_SPI, |
| 15935 | .manufacture_id = SPANSION_ID, |
| 15936 | .model_id = SPANSION_S25FL204, |
| 15937 | .total_size = 512, |
| 15938 | .page_size = 256, |
| 15939 | .feature_bits = FEATURE_WRSR_WREN, |
| 15940 | .tested = TEST_OK_PR, |
| 15941 | .probe = probe_spi_rdid, |
| 15942 | .probe_timing = TIMING_ZERO, |
| 15943 | .block_erasers = |
| 15944 | { |
| 15945 | { |
| 15946 | .eraseblocks = { {4 * 1024, 128} }, |
| 15947 | .block_erase = spi_block_erase_20, |
| 15948 | }, { |
| 15949 | .eraseblocks = { {64 * 1024, 8} }, |
| 15950 | .block_erase = spi_block_erase_d8, |
| 15951 | }, { |
| 15952 | .eraseblocks = { { 512 * 1024, 1} }, |
| 15953 | .block_erase = spi_block_erase_60, |
| 15954 | }, { |
| 15955 | .eraseblocks = { { 512 * 1024, 1} }, |
| 15956 | .block_erase = spi_block_erase_c7, |
| 15957 | } |
| 15958 | }, |
| 15959 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 15960 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 15961 | .write = spi_chip_write_256, |
| 15962 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
| 15963 | .voltage = {2700, 3600}, |
| 15964 | }, |
| 15965 | |
| 15966 | { |
| 15967 | .vendor = "Spansion", |
| 15968 | .name = "S25FL208K", |
| 15969 | .bustype = BUS_SPI, |
| 15970 | .manufacture_id = SPANSION_ID, |
| 15971 | .model_id = SPANSION_S25FL208, |
| 15972 | .total_size = 1024, |
| 15973 | .page_size = 256, |
| 15974 | .feature_bits = FEATURE_WRSR_WREN, |
| 15975 | .tested = TEST_OK_PREW, |
| 15976 | .probe = probe_spi_rdid, |
| 15977 | .probe_timing = TIMING_ZERO, |
| 15978 | .block_erasers = |
| 15979 | { |
| 15980 | { |
| 15981 | .eraseblocks = { {4 * 1024, 256} }, |
| 15982 | .block_erase = spi_block_erase_20, |
| 15983 | }, { |
| 15984 | .eraseblocks = { {64 * 1024, 16} }, |
| 15985 | .block_erase = spi_block_erase_d8, |
| 15986 | }, { |
| 15987 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 15988 | .block_erase = spi_block_erase_60, |
| 15989 | }, { |
| 15990 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 15991 | .block_erase = spi_block_erase_c7, |
| 15992 | } |
| 15993 | }, |
| 15994 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 15995 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 15996 | .write = spi_chip_write_256, |
| 15997 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
| 15998 | .voltage = {2700, 3600}, |
| 15999 | }, |
| 16000 | |
| 16001 | { |
| 16002 | .vendor = "Spansion", |
| 16003 | .name = "S25FL256S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 16004 | .bustype = BUS_SPI, |
| 16005 | .manufacture_id = SPANSION_ID, |
| 16006 | .model_id = SPANSION_S25FL256, |
| 16007 | .total_size = 32768, |
| 16008 | .page_size = 256, |
| 16009 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 16010 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_EAR7, |
| 16011 | .tested = TEST_OK_PREW, |
| 16012 | .probe = probe_spi_rdid, |
| 16013 | .probe_timing = TIMING_ZERO, |
| 16014 | .block_erasers = |
| 16015 | { |
| 16016 | { |
| 16017 | /* This chip supports erasing of the 32 so-called "parameter sectors" with |
| 16018 | * opcode 0x20. Trying to access an address outside these 4kB blocks does |
| 16019 | * have no effect on the memory contents, but sets a flag in the SR. |
| 16020 | .eraseblocks = { |
| 16021 | {4 * 1024, 32}, |
| 16022 | {64 * 1024, 254} // inaccessible |
| 16023 | }, |
| 16024 | .block_erase = spi_block_erase_20, |
| 16025 | }, { */ |
| 16026 | .eraseblocks = { { 64 * 1024, 512} }, |
| 16027 | .block_erase = spi_block_erase_dc, |
| 16028 | }, { |
| 16029 | .eraseblocks = { { 64 * 1024, 512} }, |
| 16030 | .block_erase = spi_block_erase_d8, |
| 16031 | }, { |
| 16032 | .eraseblocks = { { 32768 * 1024, 1} }, |
| 16033 | .block_erase = spi_block_erase_60, |
| 16034 | }, { |
| 16035 | .eraseblocks = { { 32768 * 1024, 1} }, |
| 16036 | .block_erase = spi_block_erase_c7, |
| 16037 | } |
| 16038 | }, |
| 16039 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 16040 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 16041 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 16042 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 16043 | .voltage = {2700, 3600}, |
| 16044 | .wrea_override = 0x17, |
| 16045 | }, |
| 16046 | |
| 16047 | { |
Bernhard Urban-Forster | 05c629b | 2020-02-02 21:29:48 +0100 | [diff] [blame] | 16048 | .vendor = "Spansion", |
| 16049 | .name = "S25FL512S", |
| 16050 | .bustype = BUS_SPI, |
| 16051 | .manufacture_id = SPANSION_ID, |
| 16052 | .model_id = SPANSION_S25FL512, |
| 16053 | .total_size = 65536, /* 512 Mb (=> 64 MB)) */ |
| 16054 | .page_size = 256, |
| 16055 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 16056 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_NATIVE, |
| 16057 | .tested = TEST_OK_PREW, |
| 16058 | .probe = probe_spi_rdid, |
| 16059 | .probe_timing = TIMING_ZERO, |
| 16060 | .block_erasers = |
| 16061 | { |
| 16062 | { |
| 16063 | .eraseblocks = { { 256 * 1024, 256} }, |
| 16064 | .block_erase = spi_block_erase_dc, |
| 16065 | }, { |
| 16066 | .eraseblocks = { { 65536 * 1024, 1} }, |
| 16067 | .block_erase = spi_block_erase_60, |
| 16068 | }, { |
| 16069 | .eraseblocks = { { 65536 * 1024, 1} }, |
| 16070 | .block_erase = spi_block_erase_c7, |
| 16071 | } |
| 16072 | }, |
| 16073 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 16074 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 16075 | .write = spi_chip_write_256, /* Multi I/O supported, IGNORE for now */ |
| 16076 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 16077 | .voltage = {2700, 3600}, |
| 16078 | }, |
| 16079 | |
| 16080 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16081 | .vendor = "SyncMOS/MoselVitelic", |
| 16082 | .name = "{F,S,V}29C51001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16083 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16084 | .manufacture_id = SYNCMOS_MVC_ID, |
| 16085 | .model_id = SM_MVC_29C51001B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16086 | .total_size = 128, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16087 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16088 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16089 | .tested = TEST_UNTESTED, |
| 16090 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 16091 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16092 | .block_erasers = |
| 16093 | { |
| 16094 | { |
| 16095 | .eraseblocks = { {512, 256} }, |
| 16096 | .block_erase = erase_sector_jedec, |
| 16097 | }, { |
| 16098 | .eraseblocks = { {128 * 1024, 1} }, |
| 16099 | .block_erase = erase_chip_block_jedec, |
| 16100 | }, |
| 16101 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16102 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16103 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16104 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16105 | }, |
| 16106 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16107 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16108 | .vendor = "SyncMOS/MoselVitelic", |
| 16109 | .name = "{F,S,V}29C51001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16110 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16111 | .manufacture_id = SYNCMOS_MVC_ID, |
| 16112 | .model_id = SM_MVC_29C51001T, |
| 16113 | .total_size = 128, |
| 16114 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16115 | .feature_bits = FEATURE_EITHER_RESET, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16116 | .tested = TEST_UNTESTED, |
| 16117 | .probe = probe_jedec, |
| 16118 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 16119 | .block_erasers = |
| 16120 | { |
| 16121 | { |
| 16122 | .eraseblocks = { {512, 256} }, |
| 16123 | .block_erase = erase_sector_jedec, |
| 16124 | }, { |
| 16125 | .eraseblocks = { {128 * 1024, 1} }, |
| 16126 | .block_erase = erase_chip_block_jedec, |
| 16127 | }, |
| 16128 | }, |
| 16129 | .write = write_jedec_1, |
| 16130 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16131 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16132 | }, |
| 16133 | |
| 16134 | { |
| 16135 | .vendor = "SyncMOS/MoselVitelic", |
| 16136 | .name = "{F,S,V}29C51002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16137 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16138 | .manufacture_id = SYNCMOS_MVC_ID, |
| 16139 | .model_id = SM_MVC_29C51002B, |
| 16140 | .total_size = 256, |
| 16141 | .page_size = 512, |
| 16142 | .feature_bits = FEATURE_EITHER_RESET, |
| 16143 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16144 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 16145 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16146 | .block_erasers = |
| 16147 | { |
| 16148 | { |
| 16149 | .eraseblocks = { {512, 512} }, |
| 16150 | .block_erase = erase_sector_jedec, |
| 16151 | }, { |
| 16152 | .eraseblocks = { {256 * 1024, 1} }, |
| 16153 | .block_erase = erase_chip_block_jedec, |
| 16154 | }, |
| 16155 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16156 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16157 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16158 | }, |
| 16159 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16160 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16161 | .vendor = "SyncMOS/MoselVitelic", |
| 16162 | .name = "{F,S,V}29C51002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16163 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16164 | .manufacture_id = SYNCMOS_MVC_ID, |
| 16165 | .model_id = SM_MVC_29C51002T, |
| 16166 | .total_size = 256, |
| 16167 | .page_size = 512, |
| 16168 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 16169 | .tested = TEST_OK_PREW, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16170 | .probe = probe_jedec, |
| 16171 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 16172 | .block_erasers = |
| 16173 | { |
| 16174 | { |
| 16175 | .eraseblocks = { {512, 512} }, |
| 16176 | .block_erase = erase_sector_jedec, |
| 16177 | }, { |
| 16178 | .eraseblocks = { {256 * 1024, 1} }, |
| 16179 | .block_erase = erase_chip_block_jedec, |
| 16180 | }, |
| 16181 | }, |
| 16182 | .write = write_jedec_1, |
| 16183 | .read = read_memmapped, |
| 16184 | }, |
| 16185 | |
| 16186 | { |
| 16187 | .vendor = "SyncMOS/MoselVitelic", |
| 16188 | .name = "{F,S,V}29C51004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16189 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16190 | .manufacture_id = SYNCMOS_MVC_ID, |
| 16191 | .model_id = SM_MVC_29C51004B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16192 | .total_size = 512, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16193 | .page_size = 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16194 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16195 | .tested = TEST_UNTESTED, |
| 16196 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 16197 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16198 | .block_erasers = |
| 16199 | { |
| 16200 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16201 | .eraseblocks = { {1024, 512} }, |
| 16202 | .block_erase = erase_sector_jedec, |
| 16203 | }, { |
| 16204 | .eraseblocks = { {512 * 1024, 1} }, |
| 16205 | .block_erase = erase_chip_block_jedec, |
| 16206 | }, |
| 16207 | }, |
| 16208 | .write = write_jedec_1, |
| 16209 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16210 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16211 | }, |
| 16212 | |
| 16213 | { |
| 16214 | .vendor = "SyncMOS/MoselVitelic", |
| 16215 | .name = "{F,S,V}29C51004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16216 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16217 | .manufacture_id = SYNCMOS_MVC_ID, |
| 16218 | .model_id = SM_MVC_29C51004T, |
| 16219 | .total_size = 512, |
| 16220 | .page_size = 1024, |
| 16221 | .feature_bits = FEATURE_EITHER_RESET, |
| 16222 | .tested = TEST_UNTESTED, |
| 16223 | .probe = probe_jedec, |
| 16224 | .probe_timing = TIMING_ZERO, |
| 16225 | .block_erasers = |
| 16226 | { |
| 16227 | { |
| 16228 | .eraseblocks = { {1024, 512} }, |
| 16229 | .block_erase = erase_sector_jedec, |
| 16230 | }, { |
| 16231 | .eraseblocks = { {512 * 1024, 1} }, |
| 16232 | .block_erase = erase_chip_block_jedec, |
| 16233 | }, |
| 16234 | }, |
| 16235 | .write = write_jedec_1, |
| 16236 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16237 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16238 | }, |
| 16239 | |
| 16240 | { |
| 16241 | .vendor = "SyncMOS/MoselVitelic", |
| 16242 | .name = "{S,V}29C31004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16243 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16244 | .manufacture_id = SYNCMOS_MVC_ID, |
| 16245 | .model_id = SM_MVC_29C31004B, |
| 16246 | .total_size = 512, |
| 16247 | .page_size = 1024, |
| 16248 | .feature_bits = FEATURE_EITHER_RESET, |
| 16249 | .tested = TEST_UNTESTED, |
| 16250 | .probe = probe_jedec, |
| 16251 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 16252 | .block_erasers = |
| 16253 | { |
| 16254 | { |
| 16255 | .eraseblocks = { {1024, 512} }, |
| 16256 | .block_erase = erase_sector_jedec, |
| 16257 | }, { |
| 16258 | .eraseblocks = { {512 * 1024, 1} }, |
| 16259 | .block_erase = erase_chip_block_jedec, |
| 16260 | }, |
| 16261 | }, |
| 16262 | .write = write_jedec_1, |
| 16263 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16264 | .voltage = {3000, 3600}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16265 | }, |
| 16266 | |
| 16267 | { |
| 16268 | .vendor = "SyncMOS/MoselVitelic", |
| 16269 | .name = "{S,V}29C31004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16270 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16271 | .manufacture_id = SYNCMOS_MVC_ID, |
| 16272 | .model_id = SM_MVC_29C31004T, |
| 16273 | .total_size = 512, |
| 16274 | .page_size = 1024, |
| 16275 | .feature_bits = FEATURE_EITHER_RESET, |
| 16276 | .tested = TEST_UNTESTED, |
| 16277 | .probe = probe_jedec, |
| 16278 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 16279 | .block_erasers = |
| 16280 | { |
| 16281 | { |
| 16282 | .eraseblocks = { {1024, 512} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16283 | .block_erase = erase_sector_jedec, |
| 16284 | }, { |
| 16285 | .eraseblocks = { {512 * 1024, 1} }, |
| 16286 | .block_erase = erase_chip_block_jedec, |
| 16287 | }, |
| 16288 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16289 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16290 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16291 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16292 | }, |
| 16293 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16294 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 16295 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16296 | .name = "TMS29F002RB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16297 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16298 | .manufacture_id = TI_OLD_ID, |
| 16299 | .model_id = TI_TMS29F002RB, |
| 16300 | .total_size = 256, |
| 16301 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16302 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16303 | .tested = TEST_UNTESTED, |
| 16304 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 16305 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16306 | .block_erasers = |
| 16307 | { |
| 16308 | { |
| 16309 | .eraseblocks = { |
| 16310 | {16 * 1024, 1}, |
| 16311 | {8 * 1024, 2}, |
| 16312 | {32 * 1024, 1}, |
| 16313 | {64 * 1024, 3}, |
| 16314 | }, |
| 16315 | .block_erase = erase_sector_jedec, |
| 16316 | }, { |
| 16317 | .eraseblocks = { {256 * 1024, 1} }, |
| 16318 | .block_erase = erase_chip_block_jedec, |
| 16319 | }, |
| 16320 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16321 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16322 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16323 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16324 | }, |
| 16325 | |
| 16326 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 16327 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16328 | .name = "TMS29F002RT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16329 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16330 | .manufacture_id = TI_OLD_ID, |
| 16331 | .model_id = TI_TMS29F002RT, |
| 16332 | .total_size = 256, |
| 16333 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16334 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16335 | .tested = TEST_UNTESTED, |
| 16336 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 16337 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16338 | .block_erasers = |
| 16339 | { |
| 16340 | { |
| 16341 | .eraseblocks = { |
| 16342 | {64 * 1024, 3}, |
| 16343 | {32 * 1024, 1}, |
| 16344 | {8 * 1024, 2}, |
| 16345 | {16 * 1024, 1}, |
| 16346 | }, |
| 16347 | .block_erase = erase_sector_jedec, |
| 16348 | }, { |
| 16349 | .eraseblocks = { {256 * 1024, 1} }, |
| 16350 | .block_erase = erase_chip_block_jedec, |
| 16351 | }, |
| 16352 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16353 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16354 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16355 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16356 | }, |
| 16357 | |
| 16358 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16359 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16360 | .name = "W25P16", |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 16361 | .bustype = BUS_SPI, |
| 16362 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16363 | .model_id = WINBOND_NEX_W25P16, |
| 16364 | .total_size = 2048, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 16365 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16366 | .feature_bits = FEATURE_WRSR_WREN, |
| 16367 | .tested = TEST_UNTESTED, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 16368 | .probe = probe_spi_rdid, |
| 16369 | .probe_timing = TIMING_ZERO, |
| 16370 | .block_erasers = |
| 16371 | { |
| 16372 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16373 | .eraseblocks = { {64 * 1024, 32} }, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 16374 | .block_erase = spi_block_erase_d8, |
| 16375 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16376 | .eraseblocks = { {2048 * 1024, 1} }, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 16377 | .block_erase = spi_block_erase_c7, |
| 16378 | } |
| 16379 | }, |
| 16380 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16381 | .unlock = spi_disable_blockprotect, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16382 | .write = spi_chip_write_256, |
| 16383 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 16384 | .voltage = {2700, 3600}, |
| 16385 | }, |
| 16386 | |
| 16387 | { |
| 16388 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16389 | .name = "W25P32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16390 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 16391 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16392 | .model_id = WINBOND_NEX_W25P32, |
| 16393 | .total_size = 4096, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 16394 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16395 | .feature_bits = FEATURE_WRSR_WREN, |
| 16396 | .tested = TEST_UNTESTED, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 16397 | .probe = probe_spi_rdid, |
| 16398 | .probe_timing = TIMING_ZERO, |
| 16399 | .block_erasers = |
| 16400 | { |
| 16401 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16402 | .eraseblocks = { {64 * 1024, 64} }, |
| 16403 | .block_erase = spi_block_erase_d8, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 16404 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16405 | .eraseblocks = { {4096 * 1024, 1} }, |
| 16406 | .block_erase = spi_block_erase_c7, |
| 16407 | } |
| 16408 | }, |
| 16409 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16410 | .unlock = spi_disable_blockprotect, |
| 16411 | .write = spi_chip_write_256, |
| 16412 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 16413 | .voltage = {2700, 3600}, |
| 16414 | }, |
| 16415 | |
| 16416 | { |
| 16417 | .vendor = "Winbond", |
| 16418 | .name = "W25P80", |
| 16419 | .bustype = BUS_SPI, |
| 16420 | .manufacture_id = WINBOND_NEX_ID, |
| 16421 | .model_id = WINBOND_NEX_W25P80, |
| 16422 | .total_size = 1024, |
| 16423 | .page_size = 256, |
| 16424 | .feature_bits = FEATURE_WRSR_WREN, |
| 16425 | .tested = TEST_UNTESTED, |
| 16426 | .probe = probe_spi_rdid, |
| 16427 | .probe_timing = TIMING_ZERO, |
| 16428 | .block_erasers = |
| 16429 | { |
| 16430 | { |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 16431 | .eraseblocks = { {64 * 1024, 16} }, |
| 16432 | .block_erase = spi_block_erase_d8, |
| 16433 | }, { |
| 16434 | .eraseblocks = { {1024 * 1024, 1} }, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 16435 | .block_erase = spi_block_erase_c7, |
| 16436 | } |
| 16437 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 16438 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 16439 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 16440 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16441 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16442 | .voltage = {2700, 3600}, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 16443 | }, |
| 16444 | |
| 16445 | { |
| 16446 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16447 | .name = "W25Q128.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16448 | .bustype = BUS_SPI, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 16449 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16450 | .model_id = WINBOND_NEX_W25Q128_V, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 16451 | .total_size = 16384, |
| 16452 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16453 | /* supports SFDP */ |
| 16454 | /* 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] | 16455 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 16456 | .tested = TEST_OK_PREW, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 16457 | .probe = probe_spi_rdid, |
| 16458 | .probe_timing = TIMING_ZERO, |
| 16459 | .block_erasers = |
| 16460 | { |
| 16461 | { |
| 16462 | .eraseblocks = { {4 * 1024, 4096} }, |
| 16463 | .block_erase = spi_block_erase_20, |
| 16464 | }, { |
| 16465 | .eraseblocks = { {32 * 1024, 512} }, |
| 16466 | .block_erase = spi_block_erase_52, |
| 16467 | }, { |
| 16468 | .eraseblocks = { {64 * 1024, 256} }, |
| 16469 | .block_erase = spi_block_erase_d8, |
| 16470 | }, { |
| 16471 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 16472 | .block_erase = spi_block_erase_60, |
| 16473 | }, { |
| 16474 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 16475 | .block_erase = spi_block_erase_c7, |
| 16476 | } |
| 16477 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 16478 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 16479 | .unlock = spi_disable_blockprotect, |
| 16480 | .write = spi_chip_write_256, |
| 16481 | .read = spi_chip_read, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16482 | .voltage = {2700, 3600}, |
| 16483 | }, |
| 16484 | |
| 16485 | { |
| 16486 | .vendor = "Winbond", |
Patrick Rudolph | 3432349 | 2018-10-04 14:59:40 +0200 | [diff] [blame] | 16487 | .name = "W25Q128.V..M", |
| 16488 | .bustype = BUS_SPI, |
| 16489 | .manufacture_id = WINBOND_NEX_ID, |
| 16490 | .model_id = WINBOND_NEX_W25Q128_V_M, |
| 16491 | .total_size = 16384, |
| 16492 | .page_size = 256, |
| 16493 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 16494 | .tested = TEST_OK_PREW, |
| 16495 | .probe = probe_spi_rdid, |
| 16496 | .probe_timing = TIMING_ZERO, |
| 16497 | .block_erasers = |
| 16498 | { |
| 16499 | { |
| 16500 | .eraseblocks = { {4 * 1024, 4096} }, |
| 16501 | .block_erase = spi_block_erase_20, |
| 16502 | }, { |
| 16503 | .eraseblocks = { {32 * 1024, 512} }, |
| 16504 | .block_erase = spi_block_erase_52, |
| 16505 | }, { |
| 16506 | .eraseblocks = { {64 * 1024, 256} }, |
| 16507 | .block_erase = spi_block_erase_d8, |
| 16508 | }, { |
| 16509 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 16510 | .block_erase = spi_block_erase_60, |
| 16511 | }, { |
| 16512 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 16513 | .block_erase = spi_block_erase_c7, |
| 16514 | } |
| 16515 | }, |
Alan Green | a1fc01d | 2019-09-23 17:12:44 +1000 | [diff] [blame] | 16516 | .printlock = spi_prettyprint_status_register_plain, |
Patrick Rudolph | 3432349 | 2018-10-04 14:59:40 +0200 | [diff] [blame] | 16517 | .unlock = spi_disable_blockprotect, |
| 16518 | .write = spi_chip_write_256, |
| 16519 | .read = spi_chip_read, |
| 16520 | .voltage = {2700, 3600}, |
| 16521 | }, |
| 16522 | |
| 16523 | { |
| 16524 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16525 | .name = "W25Q128.W", |
| 16526 | .bustype = BUS_SPI, |
| 16527 | .manufacture_id = WINBOND_NEX_ID, |
| 16528 | .model_id = WINBOND_NEX_W25Q128_W, |
| 16529 | .total_size = 16384, |
| 16530 | .page_size = 256, |
| 16531 | /* supports SFDP */ |
| 16532 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16533 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 16534 | .tested = TEST_OK_PREW, |
| 16535 | .probe = probe_spi_rdid, |
| 16536 | .probe_timing = TIMING_ZERO, |
| 16537 | .block_erasers = |
| 16538 | { |
| 16539 | { |
| 16540 | .eraseblocks = { {4 * 1024, 4096} }, |
| 16541 | .block_erase = spi_block_erase_20, |
| 16542 | }, { |
| 16543 | .eraseblocks = { {32 * 1024, 512} }, |
| 16544 | .block_erase = spi_block_erase_52, |
| 16545 | }, { |
| 16546 | .eraseblocks = { {64 * 1024, 256} }, |
| 16547 | .block_erase = spi_block_erase_d8, |
| 16548 | }, { |
| 16549 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 16550 | .block_erase = spi_block_erase_60, |
| 16551 | }, { |
| 16552 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 16553 | .block_erase = spi_block_erase_c7, |
| 16554 | } |
| 16555 | }, |
| 16556 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16557 | .unlock = spi_disable_blockprotect, |
| 16558 | .write = spi_chip_write_256, |
| 16559 | .read = spi_chip_read, |
| 16560 | .voltage = {1650, 1950}, |
| 16561 | }, |
| 16562 | |
| 16563 | { |
| 16564 | .vendor = "Winbond", |
Peichao Wang | 1a11949 | 2019-11-11 15:26:41 +0800 | [diff] [blame] | 16565 | .name = "W25Q128.JW.DTR", |
| 16566 | .bustype = BUS_SPI, |
| 16567 | .manufacture_id = WINBOND_NEX_ID, |
| 16568 | .model_id = WINBOND_NEX_W25Q128_DTR, |
| 16569 | .total_size = 16384, |
| 16570 | .page_size = 256, |
| 16571 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 16572 | .tested = TEST_OK_PREW, |
| 16573 | .probe = probe_spi_rdid, |
| 16574 | .probe_timing = TIMING_ZERO, |
| 16575 | .block_erasers = |
| 16576 | { |
| 16577 | { |
| 16578 | .eraseblocks = { {4 * 1024, 4096} }, |
| 16579 | .block_erase = spi_block_erase_20, |
| 16580 | }, { |
| 16581 | .eraseblocks = { {32 * 1024, 512} }, |
| 16582 | .block_erase = spi_block_erase_52, |
| 16583 | }, { |
| 16584 | .eraseblocks = { {64 * 1024, 256} }, |
| 16585 | .block_erase = spi_block_erase_d8, |
| 16586 | }, { |
| 16587 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 16588 | .block_erase = spi_block_erase_60, |
| 16589 | }, { |
| 16590 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 16591 | .block_erase = spi_block_erase_c7, |
| 16592 | } |
| 16593 | }, |
| 16594 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16595 | .unlock = spi_disable_blockprotect, |
| 16596 | .write = spi_chip_write_256, |
| 16597 | .read = spi_chip_read, |
| 16598 | .voltage = {1650, 1950}, |
| 16599 | }, |
| 16600 | |
| 16601 | { |
| 16602 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16603 | .name = "W25Q16.V", |
| 16604 | .bustype = BUS_SPI, |
| 16605 | .manufacture_id = WINBOND_NEX_ID, |
| 16606 | .model_id = WINBOND_NEX_W25Q16_V, |
| 16607 | .total_size = 2048, |
| 16608 | .page_size = 256, |
| 16609 | /* supports SFDP */ |
| 16610 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16611 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16612 | .tested = TEST_OK_PREW, |
| 16613 | .probe = probe_spi_rdid, |
| 16614 | .probe_timing = TIMING_ZERO, |
| 16615 | .block_erasers = |
| 16616 | { |
| 16617 | { |
| 16618 | .eraseblocks = { {4 * 1024, 512} }, |
| 16619 | .block_erase = spi_block_erase_20, |
| 16620 | }, { |
| 16621 | .eraseblocks = { {32 * 1024, 64} }, |
| 16622 | .block_erase = spi_block_erase_52, |
| 16623 | }, { |
| 16624 | .eraseblocks = { {64 * 1024, 32} }, |
| 16625 | .block_erase = spi_block_erase_d8, |
| 16626 | }, { |
| 16627 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 16628 | .block_erase = spi_block_erase_60, |
| 16629 | }, { |
| 16630 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 16631 | .block_erase = spi_block_erase_c7, |
| 16632 | } |
| 16633 | }, |
| 16634 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16635 | .unlock = spi_disable_blockprotect, |
| 16636 | .write = spi_chip_write_256, |
| 16637 | .read = spi_chip_read, |
| 16638 | .voltage = {2700, 3600}, |
| 16639 | }, |
| 16640 | |
| 16641 | { |
| 16642 | .vendor = "Winbond", |
| 16643 | .name = "W25Q16.W", |
| 16644 | .bustype = BUS_SPI, |
| 16645 | .manufacture_id = WINBOND_NEX_ID, |
| 16646 | .model_id = WINBOND_NEX_W25Q16_W, |
| 16647 | .total_size = 2048, |
| 16648 | .page_size = 256, |
| 16649 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16650 | /* QPI enable 0x38, disable 0xFF */ |
| 16651 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 16652 | .tested = TEST_UNTESTED, |
| 16653 | .probe = probe_spi_rdid, |
| 16654 | .probe_timing = TIMING_ZERO, |
| 16655 | .block_erasers = |
| 16656 | { |
| 16657 | { |
| 16658 | .eraseblocks = { {4 * 1024, 512} }, |
| 16659 | .block_erase = spi_block_erase_20, |
| 16660 | }, { |
| 16661 | .eraseblocks = { {32 * 1024, 64} }, |
| 16662 | .block_erase = spi_block_erase_52, |
| 16663 | }, { |
| 16664 | .eraseblocks = { {64 * 1024, 32} }, |
| 16665 | .block_erase = spi_block_erase_d8, |
| 16666 | }, { |
| 16667 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 16668 | .block_erase = spi_block_erase_60, |
| 16669 | }, { |
| 16670 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 16671 | .block_erase = spi_block_erase_c7, |
| 16672 | } |
| 16673 | }, |
| 16674 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16675 | .unlock = spi_disable_blockprotect, |
| 16676 | .write = spi_chip_write_256, |
| 16677 | .read = spi_chip_read, |
| 16678 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 16679 | }, |
| 16680 | |
| 16681 | { |
| 16682 | .vendor = "Winbond", |
| 16683 | .name = "W25Q20.W", |
| 16684 | .bustype = BUS_SPI, |
| 16685 | .manufacture_id = WINBOND_NEX_ID, |
| 16686 | .model_id = WINBOND_NEX_W25Q20_W, |
| 16687 | .total_size = 256, |
| 16688 | .page_size = 256, |
| 16689 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16690 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16691 | .tested = TEST_UNTESTED, |
| 16692 | .probe = probe_spi_rdid, |
| 16693 | .probe_timing = TIMING_ZERO, |
| 16694 | .block_erasers = |
| 16695 | { |
| 16696 | { |
| 16697 | .eraseblocks = { {4 * 1024, 64} }, |
| 16698 | .block_erase = spi_block_erase_20, |
| 16699 | }, { |
| 16700 | .eraseblocks = { {32 * 1024, 8} }, |
| 16701 | .block_erase = spi_block_erase_52, |
| 16702 | }, { |
| 16703 | .eraseblocks = { {64 * 1024, 4} }, |
| 16704 | .block_erase = spi_block_erase_d8, |
| 16705 | }, { |
| 16706 | .eraseblocks = { {256 * 1024, 1} }, |
| 16707 | .block_erase = spi_block_erase_60, |
| 16708 | }, { |
| 16709 | .eraseblocks = { {256 * 1024, 1} }, |
| 16710 | .block_erase = spi_block_erase_c7, |
| 16711 | } |
| 16712 | }, |
| 16713 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16714 | .unlock = spi_disable_blockprotect, |
| 16715 | .write = spi_chip_write_256, |
| 16716 | .read = spi_chip_read, |
| 16717 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 16718 | }, |
| 16719 | |
| 16720 | { |
| 16721 | .vendor = "Winbond", |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 16722 | .name = "W25Q256.V", |
| 16723 | .bustype = BUS_SPI, |
| 16724 | .manufacture_id = WINBOND_NEX_ID, |
| 16725 | .model_id = WINBOND_NEX_W25Q256_V, |
| 16726 | .total_size = 32768, |
| 16727 | .page_size = 256, |
| 16728 | /* supports SFDP */ |
| 16729 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16730 | /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */ |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 16731 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN |
| 16732 | | FEATURE_4BA_EXT_ADDR | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ, |
Angel Pons | 3130cbd | 2018-09-30 19:32:30 +0200 | [diff] [blame] | 16733 | .tested = TEST_OK_PREW, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 16734 | .probe = probe_spi_rdid, |
| 16735 | .probe_timing = TIMING_ZERO, |
| 16736 | .block_erasers = |
| 16737 | { |
| 16738 | { |
| 16739 | .eraseblocks = { {4 * 1024, 8192} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 16740 | .block_erase = spi_block_erase_20, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 16741 | }, { |
| 16742 | .eraseblocks = { {32 * 1024, 1024} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 16743 | .block_erase = spi_block_erase_52, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 16744 | }, { |
| 16745 | .eraseblocks = { {64 * 1024, 512} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 16746 | .block_erase = spi_block_erase_d8, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 16747 | }, { |
| 16748 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 16749 | .block_erase = spi_block_erase_60, |
| 16750 | }, { |
| 16751 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 16752 | .block_erase = spi_block_erase_c7, |
| 16753 | } |
| 16754 | }, |
| 16755 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16756 | .unlock = spi_disable_blockprotect, |
| 16757 | .write = spi_chip_write_256, |
| 16758 | .read = spi_chip_read, |
| 16759 | .voltage = {2700, 3600}, |
| 16760 | }, |
| 16761 | |
| 16762 | { |
| 16763 | .vendor = "Winbond", |
David Hendricks | 4987679 | 2018-10-27 20:19:42 +0000 | [diff] [blame] | 16764 | .name = "W25Q256JV_M", |
| 16765 | .bustype = BUS_SPI, |
| 16766 | .manufacture_id = WINBOND_NEX_ID, |
| 16767 | .model_id = WINBOND_NEX_W25Q256JV_M, |
| 16768 | .total_size = 32768, |
| 16769 | .page_size = 256, |
| 16770 | /* supports SFDP */ |
| 16771 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16772 | /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */ |
| 16773 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
| 16774 | .tested = TEST_OK_PREW, |
| 16775 | .probe = probe_spi_rdid, |
| 16776 | .probe_timing = TIMING_ZERO, |
| 16777 | .block_erasers = |
| 16778 | { |
| 16779 | { |
| 16780 | .eraseblocks = { {4 * 1024, 8192} }, |
| 16781 | .block_erase = spi_block_erase_21, |
| 16782 | }, { |
| 16783 | .eraseblocks = { {4 * 1024, 8192} }, |
| 16784 | .block_erase = spi_block_erase_20, |
| 16785 | }, { |
| 16786 | .eraseblocks = { {32 * 1024, 1024} }, |
| 16787 | .block_erase = spi_block_erase_52, |
| 16788 | }, { |
| 16789 | .eraseblocks = { {64 * 1024, 512} }, |
| 16790 | .block_erase = spi_block_erase_dc, |
| 16791 | }, { |
| 16792 | .eraseblocks = { {64 * 1024, 512} }, |
| 16793 | .block_erase = spi_block_erase_d8, |
| 16794 | }, { |
| 16795 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 16796 | .block_erase = spi_block_erase_60, |
| 16797 | }, { |
| 16798 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 16799 | .block_erase = spi_block_erase_c7, |
| 16800 | } |
| 16801 | }, |
| 16802 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16803 | .unlock = spi_disable_blockprotect, |
| 16804 | .write = spi_chip_write_256, |
| 16805 | .read = spi_chip_read, |
| 16806 | .voltage = {2700, 3600}, |
| 16807 | }, |
| 16808 | |
| 16809 | { |
| 16810 | .vendor = "Winbond", |
el-coderon | 0120985 | 2020-04-29 12:12:53 +0200 | [diff] [blame^] | 16811 | .name = "W25Q256.W", |
| 16812 | .bustype = BUS_SPI, |
| 16813 | .manufacture_id = WINBOND_NEX_ID, |
| 16814 | .model_id = WINBOND_NEX_W25Q256_W, |
| 16815 | .total_size = 32768, |
| 16816 | .page_size = 256, |
| 16817 | /* supports SFDP */ |
| 16818 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16819 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN |
| 16820 | | FEATURE_4BA_EXT_ADDR | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ, |
| 16821 | .tested = TEST_OK_PREW, |
| 16822 | .probe = probe_spi_rdid, |
| 16823 | .probe_timing = TIMING_ZERO, |
| 16824 | .block_erasers = |
| 16825 | { |
| 16826 | { |
| 16827 | .eraseblocks = { {4 * 1024, 8192} }, |
| 16828 | .block_erase = spi_block_erase_20, |
| 16829 | }, { |
| 16830 | .eraseblocks = { {32 * 1024, 1024} }, |
| 16831 | .block_erase = spi_block_erase_52, |
| 16832 | }, { |
| 16833 | .eraseblocks = { {64 * 1024, 512} }, |
| 16834 | .block_erase = spi_block_erase_d8, |
| 16835 | }, { |
| 16836 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 16837 | .block_erase = spi_block_erase_60, |
| 16838 | }, { |
| 16839 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 16840 | .block_erase = spi_block_erase_c7, |
| 16841 | } |
| 16842 | }, |
| 16843 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16844 | .unlock = spi_disable_blockprotect, |
| 16845 | .write = spi_chip_write_256, |
| 16846 | .read = spi_chip_read, |
| 16847 | .voltage = {1650, 1950}, |
| 16848 | }, |
| 16849 | |
| 16850 | { |
| 16851 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16852 | .name = "W25Q32.V", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16853 | .bustype = BUS_SPI, |
| 16854 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16855 | .model_id = WINBOND_NEX_W25Q32_V, |
| 16856 | .total_size = 4096, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16857 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16858 | /* supports SFDP */ |
| 16859 | /* 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] | 16860 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16861 | .tested = TEST_OK_PREW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16862 | .probe = probe_spi_rdid, |
| 16863 | .probe_timing = TIMING_ZERO, |
| 16864 | .block_erasers = |
| 16865 | { |
| 16866 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16867 | .eraseblocks = { {4 * 1024, 1024} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16868 | .block_erase = spi_block_erase_20, |
| 16869 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16870 | .eraseblocks = { {32 * 1024, 128} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16871 | .block_erase = spi_block_erase_52, |
| 16872 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16873 | .eraseblocks = { {64 * 1024, 64} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16874 | .block_erase = spi_block_erase_d8, |
| 16875 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16876 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16877 | .block_erase = spi_block_erase_60, |
| 16878 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16879 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 16880 | .block_erase = spi_block_erase_c7, |
| 16881 | } |
| 16882 | }, |
| 16883 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16884 | .unlock = spi_disable_blockprotect, |
| 16885 | .write = spi_chip_write_256, |
| 16886 | .read = spi_chip_read, |
| 16887 | .voltage = {2700, 3600}, |
| 16888 | }, |
| 16889 | |
| 16890 | { |
| 16891 | .vendor = "Winbond", |
| 16892 | .name = "W25Q32.W", |
| 16893 | .bustype = BUS_SPI, |
| 16894 | .manufacture_id = WINBOND_NEX_ID, |
| 16895 | .model_id = WINBOND_NEX_W25Q32_W, |
| 16896 | .total_size = 4096, |
| 16897 | .page_size = 256, |
| 16898 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16899 | /* QPI enable 0x38, disable 0xFF */ |
| 16900 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 16901 | .tested = TEST_OK_PREW, |
| 16902 | .probe = probe_spi_rdid, |
| 16903 | .probe_timing = TIMING_ZERO, |
| 16904 | .block_erasers = |
| 16905 | { |
| 16906 | { |
| 16907 | .eraseblocks = { {4 * 1024, 1024} }, |
| 16908 | .block_erase = spi_block_erase_20, |
| 16909 | }, { |
| 16910 | .eraseblocks = { {32 * 1024, 128} }, |
| 16911 | .block_erase = spi_block_erase_52, |
| 16912 | }, { |
| 16913 | .eraseblocks = { {64 * 1024, 64} }, |
| 16914 | .block_erase = spi_block_erase_d8, |
| 16915 | }, { |
| 16916 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 16917 | .block_erase = spi_block_erase_60, |
| 16918 | }, { |
| 16919 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16920 | .block_erase = spi_block_erase_c7, |
| 16921 | } |
| 16922 | }, |
| 16923 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16924 | .unlock = spi_disable_blockprotect, |
| 16925 | .write = spi_chip_write_256, |
| 16926 | .read = spi_chip_read, |
| 16927 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 16928 | }, |
| 16929 | |
| 16930 | { |
| 16931 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16932 | .name = "W25Q40.V", |
| 16933 | .bustype = BUS_SPI, |
| 16934 | .manufacture_id = WINBOND_NEX_ID, |
| 16935 | .model_id = WINBOND_NEX_W25Q40_V, |
| 16936 | .total_size = 512, |
| 16937 | .page_size = 256, |
| 16938 | /* supports SFDP */ |
| 16939 | /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16940 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16941 | .tested = TEST_OK_PREW, |
| 16942 | .probe = probe_spi_rdid, |
| 16943 | .probe_timing = TIMING_ZERO, |
| 16944 | .block_erasers = |
| 16945 | { |
| 16946 | { |
| 16947 | .eraseblocks = { {4 * 1024, 128} }, |
| 16948 | .block_erase = spi_block_erase_20, |
| 16949 | }, { |
| 16950 | .eraseblocks = { {32 * 1024, 16} }, |
| 16951 | .block_erase = spi_block_erase_52, |
| 16952 | }, { |
| 16953 | .eraseblocks = { {64 * 1024, 8} }, |
| 16954 | .block_erase = spi_block_erase_d8, |
| 16955 | }, { |
| 16956 | .eraseblocks = { {512 * 1024, 1} }, |
| 16957 | .block_erase = spi_block_erase_60, |
| 16958 | }, { |
| 16959 | .eraseblocks = { {512 * 1024, 1} }, |
| 16960 | .block_erase = spi_block_erase_c7, |
| 16961 | } |
| 16962 | }, |
| 16963 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16964 | .unlock = spi_disable_blockprotect, |
| 16965 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 16966 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 16967 | .voltage = {2700, 3600}, |
| 16968 | }, |
| 16969 | |
| 16970 | { |
| 16971 | .vendor = "Winbond", |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 16972 | .name = "W25Q40BW", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16973 | .bustype = BUS_SPI, |
| 16974 | .manufacture_id = WINBOND_NEX_ID, |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 16975 | .model_id = WINBOND_NEX_W25Q40BW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16976 | .total_size = 512, |
| 16977 | .page_size = 256, |
| 16978 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16979 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Angel Pons | 3164a0c | 2018-09-30 20:26:06 +0200 | [diff] [blame] | 16980 | .tested = TEST_OK_PREW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16981 | .probe = probe_spi_rdid, |
| 16982 | .probe_timing = TIMING_ZERO, |
| 16983 | .block_erasers = |
| 16984 | { |
| 16985 | { |
| 16986 | .eraseblocks = { {4 * 1024, 128} }, |
| 16987 | .block_erase = spi_block_erase_20, |
| 16988 | }, { |
| 16989 | .eraseblocks = { {32 * 1024, 16} }, |
| 16990 | .block_erase = spi_block_erase_52, |
| 16991 | }, { |
| 16992 | .eraseblocks = { {64 * 1024, 8} }, |
| 16993 | .block_erase = spi_block_erase_d8, |
| 16994 | }, { |
| 16995 | .eraseblocks = { {512 * 1024, 1} }, |
| 16996 | .block_erase = spi_block_erase_60, |
| 16997 | }, { |
| 16998 | .eraseblocks = { {512 * 1024, 1} }, |
| 16999 | .block_erase = spi_block_erase_c7, |
| 17000 | } |
| 17001 | }, |
| 17002 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17003 | .unlock = spi_disable_blockprotect, |
| 17004 | .write = spi_chip_write_256, |
| 17005 | .read = spi_chip_read, |
| 17006 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 17007 | }, |
| 17008 | |
| 17009 | { |
| 17010 | .vendor = "Winbond", |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 17011 | .name = "W25Q40EW", |
| 17012 | .bustype = BUS_SPI, |
| 17013 | .manufacture_id = WINBOND_NEX_ID, |
| 17014 | .model_id = WINBOND_NEX_W25Q40EW, |
| 17015 | .total_size = 512, |
| 17016 | .page_size = 256, |
| 17017 | /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 17018 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Alan Green | 07b8a17 | 2019-09-23 16:47:05 +1000 | [diff] [blame] | 17019 | .tested = TEST_OK_PREW, |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 17020 | .probe = probe_spi_rdid, |
| 17021 | .probe_timing = TIMING_ZERO, |
| 17022 | .block_erasers = |
| 17023 | { |
| 17024 | { |
| 17025 | .eraseblocks = { {4 * 1024, 128} }, |
| 17026 | .block_erase = spi_block_erase_20, |
| 17027 | }, { |
| 17028 | .eraseblocks = { {32 * 1024, 16} }, |
| 17029 | .block_erase = spi_block_erase_52, |
| 17030 | }, { |
| 17031 | .eraseblocks = { {64 * 1024, 8} }, |
| 17032 | .block_erase = spi_block_erase_d8, |
| 17033 | }, { |
| 17034 | .eraseblocks = { {512 * 1024, 1} }, |
| 17035 | .block_erase = spi_block_erase_60, |
| 17036 | }, { |
| 17037 | .eraseblocks = { {512 * 1024, 1} }, |
| 17038 | .block_erase = spi_block_erase_c7, |
| 17039 | } |
| 17040 | }, |
| 17041 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17042 | .unlock = spi_disable_blockprotect, |
| 17043 | .write = spi_chip_write_256, |
| 17044 | .read = spi_chip_read, |
| 17045 | .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 17046 | }, |
| 17047 | |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 17048 | { |
| 17049 | .vendor = "Winbond", |
Joel Stanley | 5543961 | 2019-07-27 19:25:35 +0930 | [diff] [blame] | 17050 | .name = "W25Q512JV", |
| 17051 | .bustype = BUS_SPI, |
| 17052 | .manufacture_id = WINBOND_NEX_ID, |
| 17053 | .model_id = WINBOND_NEX_W25Q512JV, |
| 17054 | .total_size = 64 * 1024, |
| 17055 | .page_size = 256, |
| 17056 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
| 17057 | .tested = TEST_OK_PREW, |
| 17058 | .probe = probe_spi_rdid, |
| 17059 | .probe_timing = TIMING_ZERO, |
| 17060 | .block_erasers = |
| 17061 | { |
| 17062 | { |
| 17063 | .eraseblocks = { {4 * 1024, 16384} }, |
| 17064 | .block_erase = spi_block_erase_21, |
| 17065 | }, { |
| 17066 | .eraseblocks = { {4 * 1024, 16384} }, |
| 17067 | .block_erase = spi_block_erase_20, |
| 17068 | }, { |
| 17069 | .eraseblocks = { {32 * 1024, 2048} }, |
| 17070 | .block_erase = spi_block_erase_52, |
| 17071 | }, { |
| 17072 | .eraseblocks = { {64 * 1024, 1024} }, |
| 17073 | .block_erase = spi_block_erase_dc, |
| 17074 | }, { |
| 17075 | .eraseblocks = { {64 * 1024, 1024} }, |
| 17076 | .block_erase = spi_block_erase_d8, |
| 17077 | }, { |
| 17078 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 17079 | .block_erase = spi_block_erase_60, |
| 17080 | }, { |
| 17081 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 17082 | .block_erase = spi_block_erase_c7, |
| 17083 | } |
| 17084 | }, |
| 17085 | .printlock = spi_prettyprint_status_register_plain, |
| 17086 | .unlock = spi_disable_blockprotect, |
| 17087 | .write = spi_chip_write_256, |
| 17088 | .read = spi_chip_read, |
| 17089 | .voltage = {2700, 3600}, |
| 17090 | }, |
| 17091 | |
| 17092 | { |
| 17093 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17094 | .name = "W25Q64.V", |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 17095 | .bustype = BUS_SPI, |
| 17096 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17097 | .model_id = WINBOND_NEX_W25Q64_V, |
| 17098 | .total_size = 8192, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 17099 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17100 | /* supports SFDP */ |
| 17101 | /* 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] | 17102 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 17103 | .tested = TEST_OK_PREW, |
| 17104 | .probe = probe_spi_rdid, |
| 17105 | .probe_timing = TIMING_ZERO, |
| 17106 | .block_erasers = |
| 17107 | { |
| 17108 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17109 | .eraseblocks = { {4 * 1024, 2048} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 17110 | .block_erase = spi_block_erase_20, |
| 17111 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17112 | .eraseblocks = { {32 * 1024, 256} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 17113 | .block_erase = spi_block_erase_52, |
| 17114 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17115 | .eraseblocks = { {64 * 1024, 128} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 17116 | .block_erase = spi_block_erase_d8, |
| 17117 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17118 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 17119 | .block_erase = spi_block_erase_60, |
| 17120 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17121 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 17122 | .block_erase = spi_block_erase_c7, |
| 17123 | } |
| 17124 | }, |
| 17125 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17126 | .unlock = spi_disable_blockprotect, |
| 17127 | .write = spi_chip_write_256, |
| 17128 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17129 | .voltage = {2700, 3600}, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17130 | }, |
| 17131 | |
| 17132 | { |
| 17133 | .vendor = "Winbond", |
| 17134 | .name = "W25Q64.W", |
| 17135 | .bustype = BUS_SPI, |
| 17136 | .manufacture_id = WINBOND_NEX_ID, |
| 17137 | .model_id = WINBOND_NEX_W25Q64_W, |
| 17138 | .total_size = 8192, |
| 17139 | .page_size = 256, |
| 17140 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 17141 | /* QPI enable 0x38, disable 0xFF */ |
| 17142 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 17143 | .tested = TEST_OK_PREW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17144 | .probe = probe_spi_rdid, |
| 17145 | .probe_timing = TIMING_ZERO, |
| 17146 | .block_erasers = |
| 17147 | { |
| 17148 | { |
| 17149 | .eraseblocks = { {4 * 1024, 2048} }, |
| 17150 | .block_erase = spi_block_erase_20, |
| 17151 | }, { |
| 17152 | .eraseblocks = { {32 * 1024, 256} }, |
| 17153 | .block_erase = spi_block_erase_52, |
| 17154 | }, { |
| 17155 | .eraseblocks = { {64 * 1024, 128} }, |
| 17156 | .block_erase = spi_block_erase_d8, |
| 17157 | }, { |
| 17158 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 17159 | .block_erase = spi_block_erase_60, |
| 17160 | }, { |
| 17161 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 17162 | .block_erase = spi_block_erase_c7, |
| 17163 | } |
| 17164 | }, |
| 17165 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17166 | .unlock = spi_disable_blockprotect, |
| 17167 | .write = spi_chip_write_256, |
| 17168 | .read = spi_chip_read, |
| 17169 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 17170 | }, |
| 17171 | |
| 17172 | { |
| 17173 | .vendor = "Winbond", |
Scott Chao | 1bbc501 | 2020-04-08 22:10:50 +0800 | [diff] [blame] | 17174 | .name = "W25Q64JW", |
| 17175 | .bustype = BUS_SPI, |
| 17176 | .manufacture_id = WINBOND_NEX_ID, |
| 17177 | .model_id = WINBOND_NEX_W25Q64JW, |
| 17178 | .total_size = 8192, |
| 17179 | .page_size = 256, |
| 17180 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 17181 | /* QPI enable 0x38, disable 0xFF */ |
| 17182 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 17183 | .tested = TEST_OK_PREW, |
| 17184 | .probe = probe_spi_rdid, |
| 17185 | .probe_timing = TIMING_ZERO, |
| 17186 | .block_erasers = |
| 17187 | { |
| 17188 | { |
| 17189 | .eraseblocks = { {4 * 1024, 2048} }, |
| 17190 | .block_erase = spi_block_erase_20, |
| 17191 | }, { |
| 17192 | .eraseblocks = { {32 * 1024, 256} }, |
| 17193 | .block_erase = spi_block_erase_52, |
| 17194 | }, { |
| 17195 | .eraseblocks = { {64 * 1024, 128} }, |
| 17196 | .block_erase = spi_block_erase_d8, |
| 17197 | }, { |
| 17198 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 17199 | .block_erase = spi_block_erase_60, |
| 17200 | }, { |
| 17201 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 17202 | .block_erase = spi_block_erase_c7, |
| 17203 | } |
| 17204 | }, |
| 17205 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17206 | .unlock = spi_disable_blockprotect, |
| 17207 | .write = spi_chip_write_256, |
| 17208 | .read = spi_chip_read, |
| 17209 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 17210 | }, |
| 17211 | |
| 17212 | { |
| 17213 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17214 | .name = "W25Q80.V", |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 17215 | .bustype = BUS_SPI, |
| 17216 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17217 | .model_id = WINBOND_NEX_W25Q80_V, |
| 17218 | .total_size = 1024, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 17219 | .page_size = 256, |
| 17220 | /* supports SFDP */ |
| 17221 | /* 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] | 17222 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 48729d3 | 2017-12-08 14:44:07 -0800 | [diff] [blame] | 17223 | .tested = TEST_OK_PREW, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 17224 | .probe = probe_spi_rdid, |
| 17225 | .probe_timing = TIMING_ZERO, |
| 17226 | .block_erasers = |
| 17227 | { |
| 17228 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17229 | .eraseblocks = { {4 * 1024, 256} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 17230 | .block_erase = spi_block_erase_20, |
| 17231 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17232 | .eraseblocks = { {32 * 1024, 32} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 17233 | .block_erase = spi_block_erase_52, |
| 17234 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17235 | .eraseblocks = { {64 * 1024, 16} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 17236 | .block_erase = spi_block_erase_d8, |
| 17237 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17238 | .eraseblocks = { {1024 * 1024, 1} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 17239 | .block_erase = spi_block_erase_60, |
| 17240 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17241 | .eraseblocks = { {1024 * 1024, 1} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 17242 | .block_erase = spi_block_erase_c7, |
| 17243 | } |
| 17244 | }, |
| 17245 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17246 | .unlock = spi_disable_blockprotect, |
| 17247 | .write = spi_chip_write_256, |
| 17248 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17249 | .voltage = {2700, 3600}, |
| 17250 | }, |
| 17251 | |
| 17252 | { |
| 17253 | .vendor = "Winbond", |
| 17254 | .name = "W25Q80BW", |
| 17255 | .bustype = BUS_SPI, |
| 17256 | .manufacture_id = WINBOND_NEX_ID, |
| 17257 | .model_id = WINBOND_NEX_W25Q80BW, |
| 17258 | .total_size = 1024, |
| 17259 | .page_size = 256, |
| 17260 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 17261 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 17262 | .tested = TEST_OK_PREW, |
| 17263 | .probe = probe_spi_rdid, |
| 17264 | .probe_timing = TIMING_ZERO, |
| 17265 | .block_erasers = |
| 17266 | { |
| 17267 | { |
| 17268 | .eraseblocks = { {4 * 1024, 256} }, |
| 17269 | .block_erase = spi_block_erase_20, |
| 17270 | }, { |
| 17271 | .eraseblocks = { {32 * 1024, 32} }, |
| 17272 | .block_erase = spi_block_erase_52, |
| 17273 | }, { |
| 17274 | .eraseblocks = { {64 * 1024, 16} }, |
| 17275 | .block_erase = spi_block_erase_d8, |
| 17276 | }, { |
| 17277 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 17278 | .block_erase = spi_block_erase_60, |
| 17279 | }, { |
| 17280 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 17281 | .block_erase = spi_block_erase_c7, |
| 17282 | } |
| 17283 | }, |
| 17284 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17285 | .unlock = spi_disable_blockprotect, |
| 17286 | .write = spi_chip_write_256, |
| 17287 | .read = spi_chip_read, |
| 17288 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 17289 | }, |
| 17290 | |
| 17291 | { |
| 17292 | .vendor = "Winbond", |
| 17293 | .name = "W25Q80EW", |
| 17294 | .bustype = BUS_SPI, |
| 17295 | .manufacture_id = WINBOND_NEX_ID, |
| 17296 | .model_id = WINBOND_NEX_W25Q80EW, |
| 17297 | .total_size = 1024, |
| 17298 | .page_size = 256, |
| 17299 | /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 17300 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 17301 | .tested = TEST_OK_PREW, |
| 17302 | .probe = probe_spi_rdid, |
| 17303 | .probe_timing = TIMING_ZERO, |
| 17304 | .block_erasers = |
| 17305 | { |
| 17306 | { |
| 17307 | .eraseblocks = { {4 * 1024, 256} }, |
| 17308 | .block_erase = spi_block_erase_20, |
| 17309 | }, { |
| 17310 | .eraseblocks = { {32 * 1024, 32} }, |
| 17311 | .block_erase = spi_block_erase_52, |
| 17312 | }, { |
| 17313 | .eraseblocks = { {64 * 1024, 16} }, |
| 17314 | .block_erase = spi_block_erase_d8, |
| 17315 | }, { |
| 17316 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 17317 | .block_erase = spi_block_erase_60, |
| 17318 | }, { |
| 17319 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 17320 | .block_erase = spi_block_erase_c7, |
| 17321 | } |
| 17322 | }, |
| 17323 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17324 | .unlock = spi_disable_blockprotect, |
| 17325 | .write = spi_chip_write_256, |
| 17326 | .read = spi_chip_read, |
| 17327 | .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 17328 | }, |
| 17329 | |
| 17330 | { |
| 17331 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 17332 | .name = "W25X10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17333 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17334 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17335 | .model_id = WINBOND_NEX_W25X10, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17336 | .total_size = 128, |
| 17337 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 17338 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 17339 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17340 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 17341 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17342 | .block_erasers = |
| 17343 | { |
| 17344 | { |
| 17345 | .eraseblocks = { {4 * 1024, 32} }, |
| 17346 | .block_erase = spi_block_erase_20, |
| 17347 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17348 | .eraseblocks = { {64 * 1024, 2} }, |
| 17349 | .block_erase = spi_block_erase_d8, |
| 17350 | }, { |
| 17351 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17352 | .block_erase = spi_block_erase_c7, |
| 17353 | } |
| 17354 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 17355 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 17356 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 17357 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17358 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17359 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17360 | }, |
| 17361 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17362 | { |
| 17363 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 17364 | .name = "W25X16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17365 | .bustype = BUS_SPI, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 17366 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17367 | .model_id = WINBOND_NEX_W25X16, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 17368 | .total_size = 2048, |
| 17369 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 17370 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 17371 | .tested = TEST_OK_PREW, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 17372 | .probe = probe_spi_rdid, |
| 17373 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17374 | .block_erasers = |
| 17375 | { |
| 17376 | { |
| 17377 | .eraseblocks = { {4 * 1024, 512} }, |
| 17378 | .block_erase = spi_block_erase_20, |
| 17379 | }, { |
| 17380 | .eraseblocks = { {32 * 1024, 64} }, |
| 17381 | .block_erase = spi_block_erase_52, |
| 17382 | }, { |
| 17383 | .eraseblocks = { {64 * 1024, 32} }, |
| 17384 | .block_erase = spi_block_erase_d8, |
| 17385 | }, { |
| 17386 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 17387 | .block_erase = spi_block_erase_60, |
| 17388 | }, { |
| 17389 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 17390 | .block_erase = spi_block_erase_c7, |
| 17391 | } |
| 17392 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 17393 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 17394 | .unlock = spi_disable_blockprotect, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 17395 | .write = spi_chip_write_256, |
| 17396 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17397 | .voltage = {2700, 3600}, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 17398 | }, |
| 17399 | |
| 17400 | { |
| 17401 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17402 | .name = "W25X20", |
| 17403 | .bustype = BUS_SPI, |
| 17404 | .manufacture_id = WINBOND_NEX_ID, |
| 17405 | .model_id = WINBOND_NEX_W25X20, |
| 17406 | .total_size = 256, |
| 17407 | .page_size = 256, |
| 17408 | .feature_bits = FEATURE_WRSR_WREN, |
| 17409 | .tested = TEST_OK_PREW, |
| 17410 | .probe = probe_spi_rdid, |
| 17411 | .probe_timing = TIMING_ZERO, |
| 17412 | .block_erasers = |
| 17413 | { |
| 17414 | { |
| 17415 | .eraseblocks = { {4 * 1024, 64} }, |
| 17416 | .block_erase = spi_block_erase_20, |
| 17417 | }, { |
| 17418 | .eraseblocks = { {64 * 1024, 4} }, |
| 17419 | .block_erase = spi_block_erase_d8, |
| 17420 | }, { |
| 17421 | .eraseblocks = { {256 * 1024, 1} }, |
| 17422 | .block_erase = spi_block_erase_c7, |
| 17423 | } |
| 17424 | }, |
| 17425 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17426 | .unlock = spi_disable_blockprotect, |
| 17427 | .write = spi_chip_write_256, |
| 17428 | .read = spi_chip_read, |
| 17429 | .voltage = {2700, 3600}, |
| 17430 | }, |
| 17431 | |
| 17432 | { |
| 17433 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 17434 | .name = "W25X32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17435 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17436 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17437 | .model_id = WINBOND_NEX_W25X32, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17438 | .total_size = 4096, |
| 17439 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 17440 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 17441 | .tested = TEST_OK_PREW, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17442 | .probe = probe_spi_rdid, |
| 17443 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17444 | .block_erasers = |
| 17445 | { |
| 17446 | { |
| 17447 | .eraseblocks = { {4 * 1024, 1024} }, |
| 17448 | .block_erase = spi_block_erase_20, |
| 17449 | }, { |
| 17450 | .eraseblocks = { {32 * 1024, 128} }, |
| 17451 | .block_erase = spi_block_erase_52, |
| 17452 | }, { |
| 17453 | .eraseblocks = { {64 * 1024, 64} }, |
| 17454 | .block_erase = spi_block_erase_d8, |
| 17455 | }, { |
| 17456 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 17457 | .block_erase = spi_block_erase_60, |
| 17458 | }, { |
| 17459 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 17460 | .block_erase = spi_block_erase_c7, |
| 17461 | } |
| 17462 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 17463 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 17464 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17465 | .write = spi_chip_write_256, |
| 17466 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17467 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17468 | }, |
| 17469 | |
| 17470 | { |
| 17471 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17472 | .name = "W25X40", |
| 17473 | .bustype = BUS_SPI, |
| 17474 | .manufacture_id = WINBOND_NEX_ID, |
| 17475 | .model_id = WINBOND_NEX_W25X40, |
| 17476 | .total_size = 512, |
| 17477 | .page_size = 256, |
| 17478 | .feature_bits = FEATURE_WRSR_WREN, |
| 17479 | .tested = TEST_OK_PREW, |
| 17480 | .probe = probe_spi_rdid, |
| 17481 | .probe_timing = TIMING_ZERO, |
| 17482 | .block_erasers = |
| 17483 | { |
| 17484 | { |
| 17485 | .eraseblocks = { {4 * 1024, 128} }, |
| 17486 | .block_erase = spi_block_erase_20, |
| 17487 | }, { |
| 17488 | .eraseblocks = { {64 * 1024, 8} }, |
| 17489 | .block_erase = spi_block_erase_d8, |
| 17490 | }, { |
| 17491 | .eraseblocks = { {512 * 1024, 1} }, |
| 17492 | .block_erase = spi_block_erase_c7, |
| 17493 | } |
| 17494 | }, |
| 17495 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17496 | .unlock = spi_disable_blockprotect, |
| 17497 | .write = spi_chip_write_256, |
| 17498 | .read = spi_chip_read, |
| 17499 | .voltage = {2700, 3600}, |
| 17500 | }, |
| 17501 | |
| 17502 | { |
| 17503 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 17504 | .name = "W25X64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17505 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17506 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17507 | .model_id = WINBOND_NEX_W25X64, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17508 | .total_size = 8192, |
| 17509 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 17510 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 17511 | .tested = TEST_OK_PREW, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17512 | .probe = probe_spi_rdid, |
| 17513 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17514 | .block_erasers = |
| 17515 | { |
| 17516 | { |
| 17517 | .eraseblocks = { {4 * 1024, 2048} }, |
| 17518 | .block_erase = spi_block_erase_20, |
| 17519 | }, { |
| 17520 | .eraseblocks = { {32 * 1024, 256} }, |
| 17521 | .block_erase = spi_block_erase_52, |
| 17522 | }, { |
| 17523 | .eraseblocks = { {64 * 1024, 128} }, |
| 17524 | .block_erase = spi_block_erase_d8, |
| 17525 | }, { |
| 17526 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 17527 | .block_erase = spi_block_erase_60, |
| 17528 | }, { |
| 17529 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 17530 | .block_erase = spi_block_erase_c7, |
| 17531 | } |
| 17532 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 17533 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 17534 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17535 | .write = spi_chip_write_256, |
| 17536 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17537 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17538 | }, |
| 17539 | |
| 17540 | { |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 17541 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17542 | .name = "W25X80", |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 17543 | .bustype = BUS_SPI, |
| 17544 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17545 | .model_id = WINBOND_NEX_W25X80, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 17546 | .total_size = 1024, |
| 17547 | .page_size = 256, |
| 17548 | .feature_bits = FEATURE_WRSR_WREN, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17549 | .tested = TEST_OK_PREW, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 17550 | .probe = probe_spi_rdid, |
| 17551 | .probe_timing = TIMING_ZERO, |
| 17552 | .block_erasers = |
David Hendricks | c9ee0ed | 2018-02-11 17:40:53 -0800 | [diff] [blame] | 17553 | { |
| 17554 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17555 | .eraseblocks = { {4 * 1024, 256} }, |
| 17556 | .block_erase = spi_block_erase_20, |
| 17557 | }, { |
David Hendricks | c9ee0ed | 2018-02-11 17:40:53 -0800 | [diff] [blame] | 17558 | .eraseblocks = { {64 * 1024, 16} }, |
| 17559 | .block_erase = spi_block_erase_d8, |
| 17560 | }, { |
| 17561 | .eraseblocks = { {1024 * 1024, 1} }, |
| 17562 | .block_erase = spi_block_erase_c7, |
| 17563 | } |
| 17564 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 17565 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17566 | .unlock = spi_disable_blockprotect, |
| 17567 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17568 | .read = spi_chip_read, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 17569 | .voltage = {2700, 3600}, |
David Hendricks | c9ee0ed | 2018-02-11 17:40:53 -0800 | [diff] [blame] | 17570 | }, |
| 17571 | |
Alan Green | f29ea36 | 2019-06-27 17:14:02 +1000 | [diff] [blame] | 17572 | /* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */ |
| 17573 | { |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 17574 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17575 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17576 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17577 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17578 | .model_id = WINBOND_W29C010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17579 | .total_size = 128, |
| 17580 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17581 | .feature_bits = FEATURE_LONG_RESET, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 17582 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17583 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 17584 | .probe_timing = 10, /* used datasheet for the W29C011A */ |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17585 | .block_erasers = |
| 17586 | { |
| 17587 | { |
| 17588 | .eraseblocks = { {128 * 1024, 1} }, |
| 17589 | .block_erase = erase_chip_block_jedec, |
| 17590 | } |
| 17591 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17592 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17593 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17594 | }, |
| 17595 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17596 | { |
| 17597 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17598 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old", |
| 17599 | .bustype = BUS_PARALLEL, |
| 17600 | .manufacture_id = WINBOND_ID, |
| 17601 | .model_id = WINBOND_W29C010, |
| 17602 | .total_size = 128, |
| 17603 | .page_size = 128, |
| 17604 | .feature_bits = FEATURE_LONG_RESET, |
| 17605 | .tested = TEST_OK_PREW, |
| 17606 | .probe = probe_w29ee011, |
| 17607 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */ |
| 17608 | .block_erasers = |
| 17609 | { |
| 17610 | { |
| 17611 | .eraseblocks = { {128 * 1024, 1} }, |
| 17612 | .block_erase = erase_chip_block_jedec, |
| 17613 | } |
| 17614 | }, |
| 17615 | .write = write_jedec, |
| 17616 | .read = read_memmapped, |
| 17617 | }, |
| 17618 | |
| 17619 | { |
| 17620 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17621 | .name = "W29C020(C)/W29C022", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17622 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17623 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17624 | .model_id = WINBOND_W29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17625 | .total_size = 256, |
| 17626 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17627 | .feature_bits = FEATURE_LONG_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 17628 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17629 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 17630 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17631 | .block_erasers = |
| 17632 | { |
| 17633 | { |
| 17634 | .eraseblocks = { {256 * 1024, 1} }, |
| 17635 | .block_erase = erase_chip_block_jedec, |
| 17636 | } |
| 17637 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17638 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17639 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17640 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17641 | }, |
| 17642 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17643 | { |
| 17644 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17645 | .name = "W29C040/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17646 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17647 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17648 | .model_id = WINBOND_W29C040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17649 | .total_size = 512, |
| 17650 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17651 | .feature_bits = FEATURE_LONG_RESET, |
| 17652 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17653 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 17654 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17655 | .block_erasers = |
| 17656 | { |
| 17657 | { |
| 17658 | .eraseblocks = { {512 * 1024, 1} }, |
| 17659 | .block_erase = erase_chip_block_jedec, |
| 17660 | } |
| 17661 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17662 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17663 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17664 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17665 | }, |
| 17666 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17667 | { |
| 17668 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17669 | .name = "W29C512A/W29EE512", |
| 17670 | .bustype = BUS_PARALLEL, |
| 17671 | .manufacture_id = WINBOND_ID, |
| 17672 | .model_id = WINBOND_W29C512A, |
| 17673 | .total_size = 64, |
| 17674 | .page_size = 128, |
| 17675 | .feature_bits = FEATURE_LONG_RESET, |
| 17676 | .tested = TEST_OK_PREW, |
| 17677 | .probe = probe_jedec, |
| 17678 | .probe_timing = 10, |
| 17679 | .block_erasers = |
| 17680 | { |
| 17681 | { |
| 17682 | .eraseblocks = { {64 * 1024, 1} }, |
| 17683 | .block_erase = erase_chip_block_jedec, |
| 17684 | } |
| 17685 | }, |
| 17686 | .write = write_jedec, |
| 17687 | .read = read_memmapped, |
| 17688 | .voltage = {4500, 5500}, |
| 17689 | }, |
| 17690 | |
| 17691 | { |
| 17692 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 17693 | .name = "W29GL032CB", |
| 17694 | .bustype = BUS_PARALLEL, |
| 17695 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 17696 | .model_id = WINBOND_W29GL032CB, |
| 17697 | .total_size = 4096, |
| 17698 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 17699 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 17700 | .tested = TEST_UNTESTED, |
| 17701 | .probe = probe_jedec_29gl, |
| 17702 | .probe_timing = TIMING_ZERO, |
| 17703 | .block_erasers = |
| 17704 | { |
| 17705 | { |
| 17706 | .eraseblocks = { |
| 17707 | {8 * 1024, 8}, |
| 17708 | {64 * 1024, 63}, |
| 17709 | }, |
| 17710 | .block_erase = erase_sector_jedec, |
| 17711 | }, { |
| 17712 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 17713 | .block_erase = erase_chip_block_jedec, |
| 17714 | }, |
| 17715 | }, |
| 17716 | .write = write_jedec_1, |
| 17717 | .read = read_memmapped, |
| 17718 | .voltage = {2700, 3600}, |
| 17719 | }, |
| 17720 | |
| 17721 | { |
| 17722 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17723 | .name = "W29GL032CH/L", |
| 17724 | .bustype = BUS_PARALLEL, |
| 17725 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 17726 | .model_id = WINBOND_W29GL032CHL, |
| 17727 | .total_size = 4096, |
| 17728 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 17729 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 17730 | .tested = TEST_UNTESTED, |
| 17731 | .probe = probe_jedec_29gl, |
| 17732 | .probe_timing = TIMING_ZERO, |
| 17733 | .block_erasers = |
| 17734 | { |
| 17735 | { |
| 17736 | .eraseblocks = { {64 * 1024, 64} }, |
| 17737 | .block_erase = erase_sector_jedec, |
| 17738 | }, { |
| 17739 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 17740 | .block_erase = erase_chip_block_jedec, |
| 17741 | }, |
| 17742 | }, |
| 17743 | .write = write_jedec_1, |
| 17744 | .read = read_memmapped, |
| 17745 | .voltage = {2700, 3600}, |
| 17746 | }, |
| 17747 | |
| 17748 | { |
| 17749 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 17750 | .name = "W29GL032CT", |
| 17751 | .bustype = BUS_PARALLEL, |
| 17752 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 17753 | .model_id = WINBOND_W29GL032CT, |
| 17754 | .total_size = 4096, |
| 17755 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 17756 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 17757 | .tested = TEST_UNTESTED, |
| 17758 | .probe = probe_jedec_29gl, |
| 17759 | .probe_timing = TIMING_ZERO, |
| 17760 | .block_erasers = |
| 17761 | { |
| 17762 | { |
| 17763 | .eraseblocks = { |
| 17764 | {64 * 1024, 63}, |
| 17765 | {8 * 1024, 8}, |
| 17766 | }, |
| 17767 | .block_erase = erase_sector_jedec, |
| 17768 | }, { |
| 17769 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 17770 | .block_erase = erase_chip_block_jedec, |
| 17771 | }, |
| 17772 | }, |
| 17773 | .write = write_jedec_1, |
| 17774 | .read = read_memmapped, |
| 17775 | .voltage = {2700, 3600}, |
| 17776 | }, |
| 17777 | |
| 17778 | { |
| 17779 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 17780 | .name = "W29GL064CB", |
| 17781 | .bustype = BUS_PARALLEL, |
| 17782 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 17783 | .model_id = WINBOND_W29GL064CB, |
| 17784 | .total_size = 8192, |
| 17785 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 17786 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 17787 | .tested = TEST_UNTESTED, |
| 17788 | .probe = probe_jedec_29gl, |
| 17789 | .probe_timing = TIMING_ZERO, |
| 17790 | .block_erasers = |
| 17791 | { |
| 17792 | { |
| 17793 | .eraseblocks = { |
| 17794 | {8 * 1024, 8}, |
| 17795 | {64 * 1024, 127}, |
| 17796 | }, |
| 17797 | .block_erase = erase_sector_jedec, |
| 17798 | }, { |
| 17799 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 17800 | .block_erase = erase_chip_block_jedec, |
| 17801 | }, |
| 17802 | }, |
| 17803 | .write = write_jedec_1, |
| 17804 | .read = read_memmapped, |
| 17805 | .voltage = {2700, 3600}, |
| 17806 | }, |
| 17807 | |
| 17808 | { |
| 17809 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17810 | .name = "W29GL064CH/L", |
| 17811 | .bustype = BUS_PARALLEL, |
| 17812 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 17813 | .model_id = WINBOND_W29GL064CHL, |
| 17814 | .total_size = 8192, |
| 17815 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 17816 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 17817 | .tested = TEST_UNTESTED, |
| 17818 | .probe = probe_jedec_29gl, |
| 17819 | .probe_timing = TIMING_ZERO, |
| 17820 | .block_erasers = |
| 17821 | { |
| 17822 | { |
| 17823 | .eraseblocks = { {64 * 1024, 128} }, |
| 17824 | .block_erase = erase_sector_jedec, |
| 17825 | }, { |
| 17826 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 17827 | .block_erase = erase_chip_block_jedec, |
| 17828 | }, |
| 17829 | }, |
| 17830 | .write = write_jedec_1, |
| 17831 | .read = read_memmapped, |
| 17832 | .voltage = {2700, 3600}, |
| 17833 | }, |
| 17834 | |
| 17835 | { |
| 17836 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 17837 | .name = "W29GL064CT", |
| 17838 | .bustype = BUS_PARALLEL, |
| 17839 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 17840 | .model_id = WINBOND_W29GL064CT, |
| 17841 | .total_size = 8192, |
| 17842 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 17843 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 17844 | .tested = TEST_UNTESTED, |
| 17845 | .probe = probe_jedec_29gl, |
| 17846 | .probe_timing = TIMING_ZERO, |
| 17847 | .block_erasers = |
| 17848 | { |
| 17849 | { |
| 17850 | .eraseblocks = { |
| 17851 | {64 * 1024, 127}, |
| 17852 | {8 * 1024, 8}, |
| 17853 | }, |
| 17854 | .block_erase = erase_sector_jedec, |
| 17855 | }, { |
| 17856 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 17857 | .block_erase = erase_chip_block_jedec, |
| 17858 | }, |
| 17859 | }, |
| 17860 | .write = write_jedec_1, |
| 17861 | .read = read_memmapped, |
| 17862 | .voltage = {2700, 3600}, |
| 17863 | }, |
| 17864 | |
| 17865 | { |
| 17866 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 17867 | .name = "W29GL128C", |
| 17868 | .bustype = BUS_PARALLEL, |
| 17869 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 17870 | .model_id = WINBOND_W29GL128CHL, |
| 17871 | .total_size = 16384, |
| 17872 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 17873 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 17874 | .tested = TEST_UNTESTED, |
| 17875 | .probe = probe_jedec_29gl, |
| 17876 | .probe_timing = TIMING_ZERO, |
| 17877 | .block_erasers = |
| 17878 | { |
| 17879 | { |
| 17880 | .eraseblocks = { {128 * 1024, 128} }, |
| 17881 | .block_erase = erase_sector_jedec, |
| 17882 | }, { |
| 17883 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 17884 | .block_erase = erase_chip_block_jedec, |
| 17885 | }, |
| 17886 | }, |
| 17887 | .write = write_jedec_1, |
| 17888 | .read = read_memmapped, |
| 17889 | .voltage = {2700, 3600}, |
| 17890 | }, |
| 17891 | |
| 17892 | { |
| 17893 | .vendor = "Winbond", |
Kyösti Mälkki | c31243e | 2012-10-28 01:50:08 +0000 | [diff] [blame] | 17894 | .name = "W39F010", |
| 17895 | .bustype = BUS_PARALLEL, |
| 17896 | .manufacture_id = WINBOND_ID, |
| 17897 | .model_id = WINBOND_W39F010, |
| 17898 | .total_size = 128, |
| 17899 | .page_size = 4 * 1024, |
| 17900 | .feature_bits = FEATURE_EITHER_RESET, |
| 17901 | .tested = TEST_OK_PREW, |
| 17902 | .probe = probe_jedec, |
| 17903 | .probe_timing = 10, |
| 17904 | .block_erasers = |
| 17905 | { |
| 17906 | { |
| 17907 | .eraseblocks = { {4 * 1024, 32} }, |
| 17908 | .block_erase = erase_block_jedec, |
| 17909 | }, { |
| 17910 | .eraseblocks = { {128 * 1024, 1} }, |
| 17911 | .block_erase = erase_chip_block_jedec, |
| 17912 | } |
| 17913 | }, |
| 17914 | .printlock = printlock_w39f010, |
| 17915 | .write = write_jedec_1, |
| 17916 | .read = read_memmapped, |
| 17917 | .voltage = {4500, 5500}, |
| 17918 | }, |
| 17919 | |
| 17920 | { |
| 17921 | .vendor = "Winbond", |
| 17922 | .name = "W39L010", |
| 17923 | .bustype = BUS_PARALLEL, |
| 17924 | .manufacture_id = WINBOND_ID, |
| 17925 | .model_id = WINBOND_W39L010, |
| 17926 | .total_size = 128, |
| 17927 | .page_size = 4 * 1024, |
| 17928 | .feature_bits = FEATURE_EITHER_RESET, |
| 17929 | .tested = TEST_UNTESTED, |
| 17930 | .probe = probe_jedec, |
| 17931 | .probe_timing = 10, |
| 17932 | .block_erasers = |
| 17933 | { |
| 17934 | { |
| 17935 | .eraseblocks = { {4 * 1024, 32} }, |
| 17936 | .block_erase = erase_block_jedec, |
| 17937 | }, { |
| 17938 | .eraseblocks = { {128 * 1024, 1} }, |
| 17939 | .block_erase = erase_chip_block_jedec, |
| 17940 | } |
| 17941 | }, |
| 17942 | .printlock = printlock_w39l010, |
| 17943 | .write = write_jedec_1, |
| 17944 | .read = read_memmapped, |
| 17945 | .voltage = {3000, 3600}, |
| 17946 | }, |
| 17947 | |
| 17948 | { |
| 17949 | .vendor = "Winbond", |
| 17950 | .name = "W39L020", |
| 17951 | .bustype = BUS_PARALLEL, |
| 17952 | .manufacture_id = WINBOND_ID, |
| 17953 | .model_id = WINBOND_W39L020, |
| 17954 | .total_size = 256, |
| 17955 | .page_size = 4 * 1024, |
| 17956 | .feature_bits = FEATURE_EITHER_RESET, |
| 17957 | .tested = TEST_UNTESTED, |
| 17958 | .probe = probe_jedec, |
| 17959 | .probe_timing = 10, |
| 17960 | .block_erasers = |
| 17961 | { |
| 17962 | { |
| 17963 | .eraseblocks = { {4 * 1024, 64} }, |
| 17964 | .block_erase = erase_block_jedec, |
| 17965 | }, { |
| 17966 | .eraseblocks = { {64 * 1024, 4} }, |
| 17967 | .block_erase = erase_sector_jedec, |
| 17968 | }, { |
| 17969 | .eraseblocks = { {256 * 1024, 1} }, |
| 17970 | .block_erase = erase_chip_block_jedec, |
| 17971 | } |
| 17972 | }, |
| 17973 | .printlock = printlock_w39l020, |
| 17974 | .write = write_jedec_1, |
| 17975 | .read = read_memmapped, |
| 17976 | .voltage = {3000, 3600}, |
| 17977 | }, |
| 17978 | |
| 17979 | { |
| 17980 | .vendor = "Winbond", |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 17981 | .name = "W39L040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17982 | .bustype = BUS_PARALLEL, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 17983 | .manufacture_id = WINBOND_ID, |
| 17984 | .model_id = WINBOND_W39L040, |
| 17985 | .total_size = 512, |
| 17986 | .page_size = 64 * 1024, |
| 17987 | .feature_bits = FEATURE_EITHER_RESET, |
| 17988 | .tested = TEST_OK_PR, |
| 17989 | .probe = probe_jedec, |
| 17990 | .probe_timing = 10, |
| 17991 | .block_erasers = |
| 17992 | { |
| 17993 | { |
| 17994 | .eraseblocks = { {4 * 1024, 128} }, |
| 17995 | .block_erase = erase_block_jedec, |
| 17996 | }, { |
| 17997 | .eraseblocks = { {64 * 1024, 8} }, |
| 17998 | .block_erase = erase_sector_jedec, |
| 17999 | }, { |
| 18000 | .eraseblocks = { {512 * 1024, 1} }, |
| 18001 | .block_erase = erase_chip_block_jedec, |
| 18002 | } |
| 18003 | }, |
| 18004 | .printlock = printlock_w39l040, |
| 18005 | .write = write_jedec_1, |
| 18006 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 18007 | .voltage = {3000, 3600}, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 18008 | }, |
| 18009 | |
| 18010 | { |
| 18011 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18012 | .name = "W39V040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18013 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18014 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18015 | .model_id = WINBOND_W39V040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18016 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 18017 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18018 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 18019 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18020 | .probe = probe_jedec, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 18021 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 18022 | .block_erasers = |
| 18023 | { |
| 18024 | { |
| 18025 | .eraseblocks = { {64 * 1024, 8} }, |
| 18026 | .block_erase = erase_sector_jedec, |
| 18027 | }, { |
| 18028 | .eraseblocks = { {512 * 1024, 1} }, |
| 18029 | .block_erase = erase_chip_block_jedec, |
| 18030 | } |
| 18031 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 18032 | .printlock = printlock_w39v040a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18033 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18034 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 18035 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18036 | }, |
| 18037 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18038 | { |
| 18039 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 18040 | .name = "W39V040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18041 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18042 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18043 | .model_id = WINBOND_W39V040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18044 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 18045 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18046 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 18047 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18048 | .probe = probe_jedec, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 18049 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 18050 | .block_erasers = |
| 18051 | { |
| 18052 | { |
| 18053 | .eraseblocks = { {64 * 1024, 8} }, |
| 18054 | .block_erase = erase_sector_jedec, |
| 18055 | }, { |
| 18056 | .eraseblocks = { {512 * 1024, 1} }, |
| 18057 | .block_erase = erase_chip_block_jedec, |
| 18058 | } |
| 18059 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 18060 | .printlock = printlock_w39v040b, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18061 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18062 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 18063 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18064 | }, |
| 18065 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18066 | { |
| 18067 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 18068 | .name = "W39V040C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18069 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18070 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18071 | .model_id = WINBOND_W39V040C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18072 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 18073 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18074 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 18075 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18076 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 18077 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 18078 | .block_erasers = |
| 18079 | { |
| 18080 | { |
| 18081 | .eraseblocks = { {64 * 1024, 8} }, |
| 18082 | .block_erase = erase_sector_jedec, |
| 18083 | }, { |
| 18084 | .eraseblocks = { {512 * 1024, 1} }, |
| 18085 | .block_erase = erase_chip_block_jedec, |
| 18086 | } |
| 18087 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 18088 | .printlock = printlock_w39v040c, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18089 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18090 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 18091 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18092 | }, |
| 18093 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18094 | { |
| 18095 | .vendor = "Winbond", |
| 18096 | .name = "W39V040FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18097 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18098 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18099 | .model_id = WINBOND_W39V040FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18100 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 18101 | .page_size = 64 * 1024, |
Michael Karcher | c9b6341 | 2010-05-30 16:55:18 +0000 | [diff] [blame] | 18102 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 18103 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18104 | .probe = probe_jedec, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 18105 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 18106 | .block_erasers = |
| 18107 | { |
| 18108 | { |
| 18109 | .eraseblocks = { {4 * 1024, 128} }, |
| 18110 | .block_erase = erase_block_jedec, |
| 18111 | }, { |
| 18112 | .eraseblocks = { {64 * 1024, 8} }, |
| 18113 | .block_erase = erase_sector_jedec, |
| 18114 | }, { |
| 18115 | .eraseblocks = { {512 * 1024, 1} }, |
| 18116 | .block_erase = erase_chip_block_jedec, |
| 18117 | } |
| 18118 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 18119 | .printlock = printlock_w39v040fa, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 18120 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18121 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18122 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 18123 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18124 | }, |
| 18125 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18126 | { |
| 18127 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 18128 | .name = "W39V040FB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18129 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 18130 | .manufacture_id = WINBOND_ID, |
| 18131 | .model_id = WINBOND_W39V040B, |
| 18132 | .total_size = 512, |
| 18133 | .page_size = 64 * 1024, |
| 18134 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 18135 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 18136 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 18137 | .probe_timing = 10, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 18138 | .block_erasers = |
| 18139 | { |
| 18140 | { |
| 18141 | .eraseblocks = { {64 * 1024, 8} }, |
| 18142 | .block_erase = erase_sector_jedec, |
| 18143 | }, { |
| 18144 | .eraseblocks = { {512 * 1024, 1} }, |
| 18145 | .block_erase = erase_chip_block_jedec, |
| 18146 | } |
| 18147 | }, |
| 18148 | .printlock = printlock_w39v040fb, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 18149 | .unlock = unlock_regspace2_uniform_64k, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 18150 | .write = write_jedec_1, |
| 18151 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 18152 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 18153 | }, |
| 18154 | |
| 18155 | { |
| 18156 | .vendor = "Winbond", |
| 18157 | .name = "W39V040FC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18158 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 18159 | .manufacture_id = WINBOND_ID, |
| 18160 | .model_id = WINBOND_W39V040C, |
| 18161 | .total_size = 512, |
| 18162 | .page_size = 64 * 1024, |
| 18163 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 18164 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 18165 | .probe = probe_jedec, |
| 18166 | .probe_timing = 10, |
| 18167 | .block_erasers = |
| 18168 | { |
| 18169 | { |
| 18170 | .eraseblocks = { {64 * 1024, 8} }, |
| 18171 | .block_erase = erase_sector_jedec, |
| 18172 | }, { |
| 18173 | .eraseblocks = { {512 * 1024, 1} }, |
| 18174 | .block_erase = erase_chip_block_jedec, |
| 18175 | } |
| 18176 | }, |
| 18177 | .printlock = printlock_w39v040fc, |
| 18178 | .write = write_jedec_1, |
| 18179 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 18180 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 18181 | }, |
| 18182 | |
| 18183 | { |
| 18184 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18185 | .name = "W39V080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18186 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18187 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18188 | .model_id = WINBOND_W39V080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18189 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 18190 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18191 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 18192 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18193 | .probe = probe_jedec, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 18194 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 18195 | .block_erasers = |
| 18196 | { |
| 18197 | { |
| 18198 | .eraseblocks = { {64 * 1024, 16} }, |
| 18199 | .block_erase = erase_sector_jedec, |
| 18200 | }, { |
| 18201 | .eraseblocks = { {1024 * 1024, 1} }, |
| 18202 | .block_erase = erase_chip_block_jedec, |
| 18203 | } |
| 18204 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 18205 | .printlock = printlock_w39v080a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18206 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18207 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 18208 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18209 | }, |
| 18210 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18211 | { |
| 18212 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18213 | .name = "W39V080FA", |
| 18214 | .bustype = BUS_FWH, |
| 18215 | .manufacture_id = WINBOND_ID, |
| 18216 | .model_id = WINBOND_W39V080FA, |
| 18217 | .total_size = 1024, |
| 18218 | .page_size = 64 * 1024, |
| 18219 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
| 18220 | .tested = TEST_OK_PREW, |
| 18221 | .probe = probe_jedec, |
| 18222 | .probe_timing = 10, |
| 18223 | .block_erasers = |
| 18224 | { |
| 18225 | { |
| 18226 | .eraseblocks = { {64 * 1024, 16} }, |
| 18227 | .block_erase = erase_sector_jedec, |
| 18228 | }, { |
| 18229 | .eraseblocks = { {1024 * 1024, 1} }, |
| 18230 | .block_erase = erase_chip_block_jedec, |
| 18231 | } |
| 18232 | }, |
| 18233 | .printlock = printlock_w39v080fa, |
| 18234 | .unlock = unlock_regspace2_uniform_64k, |
| 18235 | .write = write_jedec_1, |
| 18236 | .read = read_memmapped, |
| 18237 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
| 18238 | }, |
| 18239 | |
| 18240 | { |
| 18241 | .vendor = "Winbond", |
| 18242 | .name = "W39V080FA (dual mode)", |
| 18243 | .bustype = BUS_FWH, |
| 18244 | .manufacture_id = WINBOND_ID, |
| 18245 | .model_id = WINBOND_W39V080FA_DM, |
| 18246 | .total_size = 512, |
| 18247 | .page_size = 64 * 1024, |
| 18248 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
| 18249 | .tested = TEST_UNTESTED, |
| 18250 | .probe = probe_jedec, |
| 18251 | .probe_timing = 10, |
| 18252 | .block_erasers = |
| 18253 | { |
| 18254 | { |
| 18255 | .eraseblocks = { {64 * 1024, 8} }, |
| 18256 | .block_erase = erase_sector_jedec, |
| 18257 | }, { |
| 18258 | .eraseblocks = { {512 * 1024, 1} }, |
| 18259 | .block_erase = erase_chip_block_jedec, |
| 18260 | } |
| 18261 | }, |
| 18262 | .printlock = printlock_w39v080fa_dual, |
| 18263 | .write = write_jedec_1, |
| 18264 | .read = read_memmapped, |
| 18265 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
| 18266 | }, |
| 18267 | |
| 18268 | { |
| 18269 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18270 | .name = "W49F002U/N", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18271 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18272 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18273 | .model_id = WINBOND_W49F002U, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18274 | .total_size = 256, |
| 18275 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18276 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 18277 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18278 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 18279 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 18280 | .block_erasers = |
| 18281 | { |
| 18282 | { |
| 18283 | .eraseblocks = { |
| 18284 | {128 * 1024, 1}, |
| 18285 | {96 * 1024, 1}, |
| 18286 | {8 * 1024, 2}, |
| 18287 | {16 * 1024, 1}, |
| 18288 | }, |
| 18289 | .block_erase = erase_sector_jedec, |
| 18290 | }, { |
| 18291 | .eraseblocks = { {256 * 1024, 1} }, |
| 18292 | .block_erase = erase_chip_block_jedec, |
| 18293 | } |
| 18294 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18295 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18296 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 18297 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18298 | }, |
| 18299 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18300 | { |
| 18301 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 18302 | .name = "W49F020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18303 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 18304 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18305 | .model_id = WINBOND_W49F020, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 18306 | .total_size = 256, |
| 18307 | .page_size = 128, |
| 18308 | .feature_bits = FEATURE_EITHER_RESET, |
| 18309 | .tested = TEST_OK_PROBE, |
| 18310 | .probe = probe_jedec, |
| 18311 | .probe_timing = 10, |
| 18312 | .block_erasers = |
| 18313 | { |
| 18314 | { |
| 18315 | .eraseblocks = { {256 * 1024, 1} }, |
| 18316 | .block_erase = erase_chip_block_jedec, |
| 18317 | } |
| 18318 | }, |
| 18319 | .write = write_jedec_1, |
| 18320 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 18321 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 18322 | }, |
| 18323 | |
| 18324 | { |
| 18325 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18326 | .name = "W49V002A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18327 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18328 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18329 | .model_id = WINBOND_W49V002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18330 | .total_size = 256, |
| 18331 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18332 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 18333 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18334 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 18335 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 18336 | .block_erasers = |
| 18337 | { |
| 18338 | { |
| 18339 | .eraseblocks = { |
| 18340 | {64 * 1024, 3}, |
| 18341 | {32 * 1024, 1}, |
| 18342 | {8 * 1024, 2}, |
| 18343 | {16 * 1024, 1}, |
| 18344 | }, |
| 18345 | .block_erase = erase_sector_jedec, |
| 18346 | }, { |
| 18347 | .eraseblocks = { {256 * 1024, 1} }, |
| 18348 | .block_erase = erase_chip_block_jedec, |
| 18349 | } |
| 18350 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18351 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18352 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 18353 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18354 | }, |
| 18355 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18356 | { |
| 18357 | .vendor = "Winbond", |
| 18358 | .name = "W49V002FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18359 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18360 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18361 | .model_id = WINBOND_W49V002FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18362 | .total_size = 256, |
| 18363 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18364 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 18365 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18366 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 18367 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 18368 | .block_erasers = |
| 18369 | { |
| 18370 | { |
| 18371 | .eraseblocks = { |
| 18372 | {64 * 1024, 3}, |
| 18373 | {32 * 1024, 1}, |
| 18374 | {8 * 1024, 2}, |
| 18375 | {16 * 1024, 1}, |
| 18376 | }, |
| 18377 | .block_erase = erase_sector_jedec, |
| 18378 | }, { |
| 18379 | .eraseblocks = { {256 * 1024, 1} }, |
| 18380 | .block_erase = erase_chip_block_jedec, |
| 18381 | } |
| 18382 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18383 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18384 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 18385 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18386 | }, |
| 18387 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18388 | { |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 18389 | .vendor = "Zetta Device", |
| 18390 | .name = "ZD25D20", |
| 18391 | .bustype = BUS_SPI, |
| 18392 | .manufacture_id = ZETTADEVICE_ID, |
| 18393 | .model_id = ZETTADEVICE_ZD25D20, |
| 18394 | .total_size = 256, |
| 18395 | .page_size = 256, |
| 18396 | .feature_bits = FEATURE_WRSR_WREN, |
| 18397 | .tested = TEST_UNTESTED, |
| 18398 | .probe = probe_spi_rdid, |
| 18399 | .probe_timing = TIMING_ZERO, |
| 18400 | .block_erasers = |
David Hendricks | a72d5a9 | 2018-02-11 17:58:44 -0800 | [diff] [blame] | 18401 | { |
| 18402 | { |
| 18403 | .eraseblocks = { {4 * 1024, 64} }, |
| 18404 | .block_erase = spi_block_erase_20, |
| 18405 | }, { |
| 18406 | .eraseblocks = { {32 * 1024, 8} }, |
| 18407 | .block_erase = spi_block_erase_52, |
| 18408 | }, { |
| 18409 | .eraseblocks = { {64 * 1024, 4} }, |
| 18410 | .block_erase = spi_block_erase_d8, |
| 18411 | }, { |
| 18412 | .eraseblocks = { {256 * 1024, 1} }, |
| 18413 | .block_erase = spi_block_erase_60, |
| 18414 | }, { |
| 18415 | .eraseblocks = { {256 * 1024, 1} }, |
| 18416 | .block_erase = spi_block_erase_c7, |
| 18417 | } |
| 18418 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 18419 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18420 | .unlock = spi_disable_blockprotect, |
| 18421 | .write = spi_chip_write_256, |
| 18422 | .read = spi_chip_read, |
| 18423 | .voltage = {2700, 3600}, |
David Hendricks | a72d5a9 | 2018-02-11 17:58:44 -0800 | [diff] [blame] | 18424 | }, |
| 18425 | |
| 18426 | { |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 18427 | .vendor = "Zetta Device", |
| 18428 | .name = "ZD25D40", |
| 18429 | .bustype = BUS_SPI, |
| 18430 | .manufacture_id = ZETTADEVICE_ID, |
| 18431 | .model_id = ZETTADEVICE_ZD25D40, |
| 18432 | .total_size = 512, |
| 18433 | .page_size = 256, |
| 18434 | .feature_bits = FEATURE_WRSR_WREN, |
| 18435 | .tested = TEST_UNTESTED, |
| 18436 | .probe = probe_spi_rdid, |
| 18437 | .probe_timing = TIMING_ZERO, |
| 18438 | .block_erasers = |
nybash | cbb46e2 | 2018-02-11 17:53:49 -0800 | [diff] [blame] | 18439 | { |
| 18440 | { |
| 18441 | .eraseblocks = { {4 * 1024, 128} }, |
| 18442 | .block_erase = spi_block_erase_20, |
| 18443 | }, { |
| 18444 | .eraseblocks = { {32 * 1024, 16} }, |
| 18445 | .block_erase = spi_block_erase_52, |
| 18446 | }, { |
| 18447 | .eraseblocks = { {64 * 1024, 8} }, |
| 18448 | .block_erase = spi_block_erase_d8, |
| 18449 | }, { |
| 18450 | .eraseblocks = { {512 * 1024, 1} }, |
| 18451 | .block_erase = spi_block_erase_60, |
| 18452 | }, { |
| 18453 | .eraseblocks = { {512 * 1024, 1} }, |
| 18454 | .block_erase = spi_block_erase_c7, |
| 18455 | } |
| 18456 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 18457 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18458 | .unlock = spi_disable_blockprotect, |
| 18459 | .write = spi_chip_write_256, |
| 18460 | .read = spi_chip_read, |
| 18461 | .voltage = {2700, 3600}, |
nybash | cbb46e2 | 2018-02-11 17:53:49 -0800 | [diff] [blame] | 18462 | }, |
| 18463 | |
Stefan Tauner | ac1b4c8 | 2012-02-17 14:51:04 +0000 | [diff] [blame] | 18464 | { |
Alan Green | dd59220 | 2019-08-23 10:11:37 +1000 | [diff] [blame] | 18465 | .vendor = "Unknown", |
| 18466 | .name = "SFDP-capable chip", |
| 18467 | .bustype = BUS_SPI, |
| 18468 | .manufacture_id = GENERIC_MANUF_ID, |
| 18469 | .model_id = SFDP_DEVICE_ID, |
| 18470 | .total_size = 0, /* set by probing function */ |
| 18471 | .page_size = 0, /* set by probing function */ |
| 18472 | .feature_bits = 0, /* set by probing function */ |
| 18473 | /* We present our own "report this" text hence we do not */ |
| 18474 | /* want the default "This flash part has status UNTESTED..." */ |
| 18475 | /* text to be printed. */ |
| 18476 | .tested = TEST_OK_PREW, |
| 18477 | .probe = probe_spi_sfdp, |
| 18478 | .block_erasers = {}, /* set by probing function */ |
| 18479 | .unlock = spi_disable_blockprotect, /* is this safe? */ |
| 18480 | .write = NULL, /* set by probing function */ |
| 18481 | .read = spi_chip_read, |
| 18482 | /* FIXME: some vendor extensions define this */ |
| 18483 | .voltage = {0}, |
| 18484 | }, |
| 18485 | |
| 18486 | { |
Carl-Daniel Hailfinger | 532c717 | 2011-11-04 21:35:26 +0000 | [diff] [blame] | 18487 | .vendor = "Programmer", |
| 18488 | .name = "Opaque flash chip", |
| 18489 | .bustype = BUS_PROG, |
| 18490 | .manufacture_id = PROGMANUF_ID, |
| 18491 | .model_id = PROGDEV_ID, |
| 18492 | .total_size = 0, |
| 18493 | .page_size = 256, |
| 18494 | /* probe is assumed to work, rest will be filled in by probe */ |
| 18495 | .tested = TEST_OK_PROBE, |
| 18496 | .probe = probe_opaque, |
| 18497 | /* eraseblock sizes will be set by the probing function */ |
| 18498 | .block_erasers = |
| 18499 | { |
| 18500 | { |
| 18501 | .block_erase = erase_opaque, |
| 18502 | } |
| 18503 | }, |
| 18504 | .write = write_opaque, |
| 18505 | .read = read_opaque, |
| 18506 | }, |
| 18507 | |
| 18508 | { |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 18509 | .vendor = "AMIC", |
| 18510 | .name = "unknown AMIC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18511 | .bustype = BUS_SPI, |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 18512 | .manufacture_id = AMIC_ID, |
| 18513 | .model_id = GENERIC_DEVICE_ID, |
| 18514 | .total_size = 0, |
| 18515 | .page_size = 256, |
| 18516 | .tested = TEST_BAD_PREW, |
| 18517 | .probe = probe_spi_rdid4, |
| 18518 | .probe_timing = TIMING_ZERO, |
| 18519 | .write = NULL, |
| 18520 | .read = NULL, |
| 18521 | }, |
| 18522 | |
| 18523 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18524 | .vendor = "Atmel", |
| 18525 | .name = "unknown Atmel SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18526 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18527 | .manufacture_id = ATMEL_ID, |
| 18528 | .model_id = GENERIC_DEVICE_ID, |
| 18529 | .total_size = 0, |
| 18530 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 18531 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18532 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 18533 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18534 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18535 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18536 | }, |
| 18537 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18538 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 18539 | .vendor = "Eon", |
| 18540 | .name = "unknown Eon SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18541 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18542 | .manufacture_id = EON_ID_NOPREFIX, |
| 18543 | .model_id = GENERIC_DEVICE_ID, |
| 18544 | .total_size = 0, |
| 18545 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 18546 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18547 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 18548 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18549 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18550 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18551 | }, |
| 18552 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18553 | { |
| 18554 | .vendor = "Macronix", |
| 18555 | .name = "unknown Macronix SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18556 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 18557 | .manufacture_id = MACRONIX_ID, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18558 | .model_id = GENERIC_DEVICE_ID, |
| 18559 | .total_size = 0, |
| 18560 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 18561 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18562 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 18563 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18564 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18565 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18566 | }, |
| 18567 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18568 | { |
| 18569 | .vendor = "PMC", |
| 18570 | .name = "unknown PMC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18571 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18572 | .manufacture_id = PMC_ID, |
| 18573 | .model_id = GENERIC_DEVICE_ID, |
| 18574 | .total_size = 0, |
| 18575 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 18576 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18577 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 18578 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18579 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18580 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18581 | }, |
| 18582 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18583 | { |
| 18584 | .vendor = "SST", |
| 18585 | .name = "unknown SST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18586 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18587 | .manufacture_id = SST_ID, |
| 18588 | .model_id = GENERIC_DEVICE_ID, |
| 18589 | .total_size = 0, |
| 18590 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 18591 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18592 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 18593 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18594 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18595 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18596 | }, |
| 18597 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18598 | { |
| 18599 | .vendor = "ST", |
| 18600 | .name = "unknown ST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18601 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18602 | .manufacture_id = ST_ID, |
| 18603 | .model_id = GENERIC_DEVICE_ID, |
| 18604 | .total_size = 0, |
| 18605 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 18606 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18607 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 18608 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18609 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18610 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18611 | }, |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 18612 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 18613 | { |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 18614 | .vendor = "Sanyo", |
| 18615 | .name = "unknown Sanyo SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18616 | .bustype = BUS_SPI, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 18617 | .manufacture_id = SANYO_ID, |
| 18618 | .model_id = GENERIC_DEVICE_ID, |
| 18619 | .total_size = 0, |
| 18620 | .page_size = 256, |
| 18621 | .tested = TEST_BAD_PREW, |
| 18622 | .probe = probe_spi_rdid, |
| 18623 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 18624 | .write = NULL, |
| 18625 | .read = NULL, |
| 18626 | }, |
| 18627 | |
| 18628 | { |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 18629 | .vendor = "Winbond", |
| 18630 | .name = "unknown Winbond (ex Nexcom) SPI chip", |
| 18631 | .bustype = BUS_SPI, |
| 18632 | .manufacture_id = WINBOND_NEX_ID, |
| 18633 | .model_id = GENERIC_DEVICE_ID, |
| 18634 | .total_size = 0, |
| 18635 | .page_size = 256, |
| 18636 | .tested = TEST_BAD_PREW, |
| 18637 | .probe = probe_spi_rdid, |
| 18638 | .probe_timing = TIMING_ZERO, |
| 18639 | .write = NULL, |
| 18640 | .read = NULL, |
| 18641 | }, |
| 18642 | |
| 18643 | { |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 18644 | .vendor = "Generic", |
| 18645 | .name = "unknown SPI chip (RDID)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18646 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 18647 | .manufacture_id = GENERIC_MANUF_ID, |
| 18648 | .model_id = GENERIC_DEVICE_ID, |
| 18649 | .total_size = 0, |
| 18650 | .page_size = 256, |
| 18651 | .tested = TEST_BAD_PREW, |
| 18652 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 18653 | .write = NULL, |
| 18654 | }, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 18655 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 18656 | { |
| 18657 | .vendor = "Generic", |
| 18658 | .name = "unknown SPI chip (REMS)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18659 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 18660 | .manufacture_id = GENERIC_MANUF_ID, |
| 18661 | .model_id = GENERIC_DEVICE_ID, |
| 18662 | .total_size = 0, |
| 18663 | .page_size = 256, |
| 18664 | .tested = TEST_BAD_PREW, |
| 18665 | .probe = probe_spi_rems, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 18666 | .write = NULL, |
| 18667 | }, |
| 18668 | |
Stefan Tauner | 96658be | 2014-05-26 22:05:31 +0000 | [diff] [blame] | 18669 | {0} |
Stephan Guilloux | 72cf565 | 2009-04-21 01:46:07 +0000 | [diff] [blame] | 18670 | }; |
Stefan Tauner | 96658be | 2014-05-26 22:05:31 +0000 | [diff] [blame] | 18671 | |
| 18672 | const unsigned int flashchips_size = ARRAY_SIZE(flashchips); |