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 | { |
Angel Pons | 1ebda78 | 2021-04-20 21:39:11 +0200 | [diff] [blame^] | 3446 | .vendor = "Boya/BoHong Microelectronics", |
| 3447 | .name = "B.25Q128AS", |
Jack Olsen | 73ae5ef | 2020-08-08 21:12:13 -0500 | [diff] [blame] | 3448 | .bustype = BUS_SPI, |
Angel Pons | 1ebda78 | 2021-04-20 21:39:11 +0200 | [diff] [blame^] | 3449 | .manufacture_id = BOYA_BOHONG_ID, |
| 3450 | .model_id = BOYA_BOHONG_B_25Q128AS, |
Jack Olsen | 73ae5ef | 2020-08-08 21:12:13 -0500 | [diff] [blame] | 3451 | .total_size = 16384, |
| 3452 | .page_size = 256, |
| 3453 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 3454 | .tested = TEST_OK_PREW, |
| 3455 | .probe = probe_spi_rdid, |
| 3456 | .probe_timing = TIMING_ZERO, |
| 3457 | .block_erasers = |
| 3458 | { |
| 3459 | { |
| 3460 | .eraseblocks = { {4 * 1024, 4096} }, |
| 3461 | .block_erase = spi_block_erase_20, |
| 3462 | }, { |
| 3463 | .eraseblocks = { {32 * 1024, 512} }, |
| 3464 | .block_erase = spi_block_erase_52, |
| 3465 | }, { |
| 3466 | .eraseblocks = { {64 * 1024, 256} }, |
| 3467 | .block_erase = spi_block_erase_d8, |
| 3468 | }, { |
| 3469 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 3470 | .block_erase = spi_block_erase_60, |
| 3471 | }, { |
| 3472 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 3473 | .block_erase = spi_block_erase_c7, |
| 3474 | } |
| 3475 | }, |
| 3476 | .printlock = spi_prettyprint_status_register_plain, |
| 3477 | .unlock = spi_disable_blockprotect_at25fs040, |
| 3478 | .write = spi_chip_write_256, |
| 3479 | .read = spi_chip_read, |
| 3480 | .voltage = {2700, 3600}, |
| 3481 | }, |
| 3482 | |
| 3483 | { |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3484 | .vendor = "Bright", |
| 3485 | .name = "BM29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3486 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3487 | .manufacture_id = BRIGHT_ID, |
| 3488 | .model_id = BRIGHT_BM29F040, |
| 3489 | .total_size = 512, |
| 3490 | .page_size = 64 * 1024, |
| 3491 | .feature_bits = FEATURE_EITHER_RESET, |
| 3492 | .tested = TEST_OK_PR, |
| 3493 | .probe = probe_jedec, |
| 3494 | .probe_timing = TIMING_ZERO, |
| 3495 | .block_erasers = |
| 3496 | { |
| 3497 | { |
| 3498 | .eraseblocks = { {64 * 1024, 8} }, |
| 3499 | .block_erase = erase_sector_jedec, |
| 3500 | }, { |
| 3501 | .eraseblocks = { {512 * 1024, 1} }, |
| 3502 | .block_erase = erase_chip_block_jedec, |
| 3503 | }, |
| 3504 | }, |
| 3505 | .write = write_jedec_1, |
| 3506 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 3507 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3508 | }, |
| 3509 | |
| 3510 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3511 | .vendor = "Catalyst", |
| 3512 | .name = "CAT28F512", |
| 3513 | .bustype = BUS_PARALLEL, |
| 3514 | .manufacture_id = CATALYST_ID, |
| 3515 | .model_id = CATALYST_CAT28F512, |
| 3516 | .total_size = 64, |
| 3517 | .page_size = 0, /* unused */ |
| 3518 | .feature_bits = 0, |
Alan Green | 908adf4 | 2019-07-03 15:34:06 +1000 | [diff] [blame] | 3519 | .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD}, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3520 | .probe = probe_jedec, /* FIXME! */ |
| 3521 | .probe_timing = TIMING_ZERO, |
| 3522 | .block_erasers = |
| 3523 | { |
| 3524 | { |
| 3525 | .eraseblocks = { {64 * 1024, 1} }, |
| 3526 | .block_erase = NULL, /* TODO */ |
| 3527 | }, |
| 3528 | }, |
| 3529 | .write = NULL, /* TODO */ |
| 3530 | .read = read_memmapped, |
| 3531 | .voltage = {4500, 5500}, |
| 3532 | }, |
| 3533 | |
| 3534 | { |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3535 | .vendor = "ENE", |
| 3536 | .name = "KB9012 (EDI)", |
| 3537 | .bustype = BUS_SPI, |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3538 | .total_size = 128, |
| 3539 | .page_size = 128, |
| 3540 | .feature_bits = FEATURE_ERASED_ZERO, |
| 3541 | .tested = TEST_OK_PREW, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3542 | .spi_cmd_set = SPI_EDI, |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3543 | .probe = edi_probe_kb9012, |
| 3544 | .probe_timing = TIMING_ZERO, |
| 3545 | .block_erasers = |
| 3546 | { |
| 3547 | { |
| 3548 | .eraseblocks = { {128, 1024} }, |
| 3549 | .block_erase = edi_chip_block_erase, |
| 3550 | }, |
| 3551 | }, |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3552 | .write = edi_chip_write, |
| 3553 | .read = edi_chip_read, |
| 3554 | .voltage = {2700, 3600}, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3555 | .gran = write_gran_128bytes, |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3556 | }, |
| 3557 | |
| 3558 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3559 | .vendor = "ESI", |
| 3560 | .name = "ES25P16", |
| 3561 | .bustype = BUS_SPI, |
| 3562 | .manufacture_id = EXCEL_ID_NOPREFIX, |
| 3563 | .model_id = EXCEL_ES25P16, |
| 3564 | .total_size = 2 * 1024, |
| 3565 | .page_size = 256, |
| 3566 | /* 256-byte parameter page separate from memory array: |
| 3567 | * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */ |
| 3568 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3569 | .tested = TEST_UNTESTED, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3570 | .probe = probe_spi_rdid, |
| 3571 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3572 | .block_erasers = |
| 3573 | { |
| 3574 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3575 | .eraseblocks = { {64 * 1024, 32} }, |
| 3576 | .block_erase = spi_block_erase_d8, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3577 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3578 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3579 | .block_erase = spi_block_erase_c7, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3580 | } |
| 3581 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3582 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 3583 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 3584 | .write = spi_chip_write_256, |
| 3585 | .read = spi_chip_read, /* Fast Read (0x0B) supported */ |
| 3586 | .voltage = {2700, 3600}, |
| 3587 | }, |
| 3588 | |
| 3589 | { |
| 3590 | .vendor = "ESI", |
| 3591 | .name = "ES25P40", |
| 3592 | .bustype = BUS_SPI, |
| 3593 | .manufacture_id = EXCEL_ID_NOPREFIX, |
| 3594 | .model_id = EXCEL_ES25P40, |
| 3595 | .total_size = 512, |
| 3596 | .page_size = 256, |
| 3597 | /* 256-byte parameter page separate from memory array: |
| 3598 | * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */ |
| 3599 | .feature_bits = FEATURE_WRSR_WREN, |
| 3600 | .tested = TEST_UNTESTED, |
| 3601 | .probe = probe_spi_rdid, |
| 3602 | .probe_timing = TIMING_ZERO, |
| 3603 | .block_erasers = |
| 3604 | { |
| 3605 | { |
| 3606 | .eraseblocks = { {64 * 1024, 8} }, |
| 3607 | .block_erase = spi_block_erase_d8, |
| 3608 | }, { |
| 3609 | .eraseblocks = { {512 * 1024, 1} }, |
| 3610 | .block_erase = spi_block_erase_c7, |
| 3611 | } |
| 3612 | }, |
| 3613 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 3614 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 3615 | .write = spi_chip_write_256, |
| 3616 | .read = spi_chip_read, /* Fast Read (0x0B) supported */ |
| 3617 | .voltage = {2700, 3600}, |
| 3618 | }, |
| 3619 | |
| 3620 | { |
| 3621 | .vendor = "ESI", |
| 3622 | .name = "ES25P80", |
| 3623 | .bustype = BUS_SPI, |
| 3624 | .manufacture_id = EXCEL_ID_NOPREFIX, |
| 3625 | .model_id = EXCEL_ES25P80, |
| 3626 | .total_size = 1024, |
| 3627 | .page_size = 256, |
| 3628 | /* 256-byte parameter page separate from memory array: |
| 3629 | * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */ |
| 3630 | .feature_bits = FEATURE_WRSR_WREN, |
| 3631 | .tested = TEST_UNTESTED, |
| 3632 | .probe = probe_spi_rdid, |
| 3633 | .probe_timing = TIMING_ZERO, |
| 3634 | .block_erasers = |
| 3635 | { |
| 3636 | { |
| 3637 | .eraseblocks = { {64 * 1024, 16} }, |
| 3638 | .block_erase = spi_block_erase_d8, |
| 3639 | }, { |
| 3640 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3641 | .block_erase = spi_block_erase_c7, |
| 3642 | } |
| 3643 | }, |
| 3644 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 3645 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 3646 | .write = spi_chip_write_256, |
| 3647 | .read = spi_chip_read, /* Fast Read (0x0B) supported */ |
| 3648 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3649 | }, |
| 3650 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3651 | { |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3652 | .vendor = "ESMT", |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3653 | .name = "F25L008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3654 | .bustype = BUS_SPI, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3655 | .manufacture_id = ESMT_ID, |
| 3656 | .model_id = ESMT_F25L008A, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3657 | .total_size = 1024, |
| 3658 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3659 | .feature_bits = FEATURE_WRSR_EITHER, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 3660 | .tested = TEST_OK_PREW, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3661 | .probe = probe_spi_rdid, |
| 3662 | .probe_timing = TIMING_ZERO, |
| 3663 | .block_erasers = |
| 3664 | { |
| 3665 | { |
| 3666 | .eraseblocks = { {4 * 1024, 256} }, |
| 3667 | .block_erase = spi_block_erase_20, |
| 3668 | }, { |
| 3669 | .eraseblocks = { {64 * 1024, 16} }, |
| 3670 | .block_erase = spi_block_erase_d8, |
| 3671 | }, { |
| 3672 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3673 | .block_erase = spi_block_erase_60, |
| 3674 | }, { |
| 3675 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3676 | .block_erase = spi_block_erase_c7, |
| 3677 | } |
| 3678 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3679 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3680 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 9a795d8 | 2010-07-14 16:19:05 +0000 | [diff] [blame] | 3681 | .write = spi_chip_write_1, |
Michael Karcher | 4497e86 | 2010-07-10 19:34:15 +0000 | [diff] [blame] | 3682 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3683 | .voltage = {2700, 3600}, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3684 | }, |
| 3685 | |
| 3686 | { |
Stefan Tauner | 85f09f7 | 2014-05-27 21:27:14 +0000 | [diff] [blame] | 3687 | .vendor = "ESMT", |
| 3688 | .name = "F25L32PA", |
| 3689 | .bustype = BUS_SPI, |
| 3690 | .manufacture_id = ESMT_ID, |
| 3691 | .model_id = ESMT_F25L32PA, |
| 3692 | .total_size = 4096, |
| 3693 | .page_size = 256, |
| 3694 | .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP, |
| 3695 | .tested = TEST_UNTESTED, |
| 3696 | .probe = probe_spi_rdid, |
| 3697 | .probe_timing = TIMING_ZERO, |
| 3698 | .block_erasers = |
| 3699 | { |
| 3700 | { |
| 3701 | .eraseblocks = { {4 * 1024, 1024} }, |
| 3702 | .block_erase = spi_block_erase_20, |
| 3703 | }, { |
| 3704 | .eraseblocks = { {64 * 1024, 64} }, |
| 3705 | .block_erase = spi_block_erase_d8, |
| 3706 | }, { |
| 3707 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3708 | .block_erase = spi_block_erase_60, |
| 3709 | }, { |
| 3710 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3711 | .block_erase = spi_block_erase_c7, |
| 3712 | } |
| 3713 | }, |
| 3714 | .printlock = spi_prettyprint_status_register_bp2_bpl, |
| 3715 | .unlock = spi_disable_blockprotect, |
| 3716 | .write = spi_chip_write_256, |
| 3717 | .read = spi_chip_read, |
| 3718 | .voltage = {2700, 3600}, |
| 3719 | }, |
| 3720 | |
| 3721 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3722 | .vendor = "ESMT", |
| 3723 | .name = "F49B002UA", |
| 3724 | .bustype = BUS_PARALLEL, |
| 3725 | .manufacture_id = ESMT_ID, |
| 3726 | .model_id = ESMT_F49B002UA, |
| 3727 | .total_size = 256, |
| 3728 | .page_size = 4096, |
| 3729 | .feature_bits = FEATURE_EITHER_RESET, |
| 3730 | .tested = TEST_UNTESTED, |
| 3731 | .probe = probe_jedec, |
| 3732 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3733 | .block_erasers = |
| 3734 | { |
| 3735 | { |
| 3736 | .eraseblocks = { |
| 3737 | {128 * 1024, 1}, |
| 3738 | {96 * 1024, 1}, |
| 3739 | {8 * 1024, 2}, |
| 3740 | {16 * 1024, 1}, |
| 3741 | }, |
| 3742 | .block_erase = erase_sector_jedec, |
| 3743 | }, { |
| 3744 | .eraseblocks = { {256 * 1024, 1} }, |
| 3745 | .block_erase = erase_chip_block_jedec, |
| 3746 | } |
| 3747 | }, |
| 3748 | .write = write_jedec_1, |
| 3749 | .read = read_memmapped, |
| 3750 | .voltage = {4500, 5500}, |
| 3751 | }, |
| 3752 | |
| 3753 | { |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3754 | .vendor = "Eon", |
| 3755 | .name = "EN25B05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3756 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3757 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3758 | .model_id = EON_EN25B05, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3759 | .total_size = 64, |
| 3760 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3761 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3762 | .tested = TEST_UNTESTED, |
| 3763 | .probe = probe_spi_rdid, |
| 3764 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3765 | .block_erasers = |
| 3766 | { |
| 3767 | { |
| 3768 | .eraseblocks = { |
| 3769 | {4 * 1024, 2}, |
| 3770 | {8 * 1024, 1}, |
| 3771 | {16 * 1024, 1}, |
| 3772 | {32 * 1024, 1}, |
| 3773 | }, |
| 3774 | .block_erase = spi_block_erase_d8, |
| 3775 | }, { |
| 3776 | .eraseblocks = { {64 * 1024, 1} }, |
| 3777 | .block_erase = spi_block_erase_c7, |
| 3778 | } |
| 3779 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3780 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3781 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3782 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3783 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3784 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3785 | }, |
| 3786 | |
| 3787 | { |
| 3788 | .vendor = "Eon", |
| 3789 | .name = "EN25B05T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3790 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3791 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3792 | .model_id = EON_EN25B05, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3793 | .total_size = 64, |
| 3794 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3795 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3796 | .tested = TEST_UNTESTED, |
| 3797 | .probe = probe_spi_rdid, |
| 3798 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3799 | .block_erasers = |
| 3800 | { |
| 3801 | { |
| 3802 | .eraseblocks = { |
| 3803 | {32 * 1024, 1}, |
| 3804 | {16 * 1024, 1}, |
| 3805 | {8 * 1024, 1}, |
| 3806 | {4 * 1024, 2}, |
| 3807 | }, |
| 3808 | .block_erase = spi_block_erase_d8, |
| 3809 | }, { |
| 3810 | .eraseblocks = { {64 * 1024, 1} }, |
| 3811 | .block_erase = spi_block_erase_c7, |
| 3812 | } |
| 3813 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3814 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3815 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3816 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3817 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3818 | .voltage = {2700, 3600}, |
| 3819 | }, |
| 3820 | |
| 3821 | { |
| 3822 | .vendor = "Eon", |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3823 | .name = "EN25B10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3824 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3825 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3826 | .model_id = EON_EN25B10, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3827 | .total_size = 128, |
| 3828 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3829 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3830 | .tested = TEST_UNTESTED, |
| 3831 | .probe = probe_spi_rdid, |
| 3832 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3833 | .block_erasers = |
| 3834 | { |
| 3835 | { |
| 3836 | .eraseblocks = { |
| 3837 | {4 * 1024, 2}, |
| 3838 | {8 * 1024, 1}, |
| 3839 | {16 * 1024, 1}, |
| 3840 | {32 * 1024, 3}, |
| 3841 | }, |
| 3842 | .block_erase = spi_block_erase_d8, |
| 3843 | }, { |
| 3844 | .eraseblocks = { {128 * 1024, 1} }, |
| 3845 | .block_erase = spi_block_erase_c7, |
| 3846 | } |
| 3847 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3848 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3849 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3850 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3851 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3852 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3853 | }, |
| 3854 | |
| 3855 | { |
| 3856 | .vendor = "Eon", |
| 3857 | .name = "EN25B10T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3858 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3859 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3860 | .model_id = EON_EN25B10, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3861 | .total_size = 128, |
| 3862 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3863 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 3864 | .tested = TEST_OK_PREW, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3865 | .probe = probe_spi_rdid, |
| 3866 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3867 | .block_erasers = |
| 3868 | { |
| 3869 | { |
| 3870 | .eraseblocks = { |
| 3871 | {32 * 1024, 3}, |
| 3872 | {16 * 1024, 1}, |
| 3873 | {8 * 1024, 1}, |
| 3874 | {4 * 1024, 2}, |
| 3875 | }, |
| 3876 | .block_erase = spi_block_erase_d8, |
| 3877 | }, { |
| 3878 | .eraseblocks = { {128 * 1024, 1} }, |
| 3879 | .block_erase = spi_block_erase_c7, |
| 3880 | } |
| 3881 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3882 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3883 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3884 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3885 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3886 | .voltage = {2700, 3600}, |
| 3887 | }, |
| 3888 | |
| 3889 | { |
| 3890 | .vendor = "Eon", |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3891 | .name = "EN25B16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3892 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3893 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3894 | .model_id = EON_EN25B16, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3895 | .total_size = 2048, |
| 3896 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3897 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3898 | .tested = TEST_UNTESTED, |
| 3899 | .probe = probe_spi_rdid, |
| 3900 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3901 | .block_erasers = |
| 3902 | { |
| 3903 | { |
| 3904 | .eraseblocks = { |
| 3905 | {4 * 1024, 2}, |
| 3906 | {8 * 1024, 1}, |
| 3907 | {16 * 1024, 1}, |
| 3908 | {32 * 1024, 1}, |
| 3909 | {64 * 1024, 31}, |
| 3910 | }, |
| 3911 | .block_erase = spi_block_erase_d8, |
| 3912 | }, { |
| 3913 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3914 | .block_erase = spi_block_erase_c7, |
| 3915 | } |
| 3916 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3917 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3918 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3919 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3920 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3921 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3922 | }, |
| 3923 | |
| 3924 | { |
| 3925 | .vendor = "Eon", |
| 3926 | .name = "EN25B16T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3927 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3928 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3929 | .model_id = EON_EN25B16, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3930 | .total_size = 2048, |
| 3931 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3932 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3933 | .tested = TEST_UNTESTED, |
| 3934 | .probe = probe_spi_rdid, |
| 3935 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3936 | .block_erasers = |
| 3937 | { |
| 3938 | { |
| 3939 | .eraseblocks = { |
| 3940 | {64 * 1024, 31}, |
| 3941 | {32 * 1024, 1}, |
| 3942 | {16 * 1024, 1}, |
| 3943 | {8 * 1024, 1}, |
| 3944 | {4 * 1024, 2}, |
| 3945 | }, |
| 3946 | .block_erase = spi_block_erase_d8, |
| 3947 | }, { |
| 3948 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3949 | .block_erase = spi_block_erase_c7, |
| 3950 | } |
| 3951 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3952 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3953 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3954 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3955 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3956 | .voltage = {2700, 3600}, |
| 3957 | }, |
| 3958 | |
| 3959 | { |
| 3960 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3961 | .name = "EN25B20", |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3962 | .bustype = BUS_SPI, |
| 3963 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3964 | .model_id = EON_EN25B20, |
| 3965 | .total_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3966 | .page_size = 256, |
| 3967 | .feature_bits = FEATURE_WRSR_WREN, |
| 3968 | .tested = TEST_UNTESTED, |
| 3969 | .probe = probe_spi_rdid, |
| 3970 | .probe_timing = TIMING_ZERO, |
| 3971 | .block_erasers = |
| 3972 | { |
| 3973 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3974 | .eraseblocks = { |
| 3975 | {4 * 1024, 2}, |
| 3976 | {8 * 1024, 1}, |
| 3977 | {16 * 1024, 1}, |
| 3978 | {32 * 1024, 1}, |
| 3979 | {64 * 1024, 3} |
| 3980 | }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3981 | .block_erase = spi_block_erase_d8, |
| 3982 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3983 | .eraseblocks = { {256 * 1024, 1} }, |
| 3984 | .block_erase = spi_block_erase_c7, |
| 3985 | } |
| 3986 | }, |
| 3987 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 3988 | .unlock = spi_disable_blockprotect, |
| 3989 | .write = spi_chip_write_256, |
| 3990 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3991 | .voltage = {2700, 3600}, |
| 3992 | }, |
| 3993 | |
| 3994 | { |
| 3995 | .vendor = "Eon", |
| 3996 | .name = "EN25B20T", |
| 3997 | .bustype = BUS_SPI, |
| 3998 | .manufacture_id = EON_ID_NOPREFIX, |
| 3999 | .model_id = EON_EN25B20, |
| 4000 | .total_size = 256, |
| 4001 | .page_size = 256, |
| 4002 | .feature_bits = FEATURE_WRSR_WREN, |
| 4003 | .tested = TEST_UNTESTED, |
| 4004 | .probe = probe_spi_rdid, |
| 4005 | .probe_timing = TIMING_ZERO, |
| 4006 | .block_erasers = |
| 4007 | { |
| 4008 | { |
| 4009 | .eraseblocks = { |
| 4010 | {64 * 1024, 3}, |
| 4011 | {32 * 1024, 1}, |
| 4012 | {16 * 1024, 1}, |
| 4013 | {8 * 1024, 1}, |
| 4014 | {4 * 1024, 2}, |
| 4015 | }, |
| 4016 | .block_erase = spi_block_erase_d8, |
| 4017 | }, { |
| 4018 | .eraseblocks = { {256 * 1024, 1} }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4019 | .block_erase = spi_block_erase_c7, |
| 4020 | } |
| 4021 | }, |
| 4022 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4023 | .unlock = spi_disable_blockprotect, |
| 4024 | .write = spi_chip_write_256, |
| 4025 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4026 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4027 | }, |
| 4028 | |
| 4029 | { |
| 4030 | .vendor = "Eon", |
| 4031 | .name = "EN25B32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4032 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4033 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4034 | .model_id = EON_EN25B32, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4035 | .total_size = 4096, |
| 4036 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4037 | /* OTP: 512B total; enter 0x3A */ |
| 4038 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4039 | .tested = TEST_UNTESTED, |
| 4040 | .probe = probe_spi_rdid, |
| 4041 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4042 | .block_erasers = |
| 4043 | { |
| 4044 | { |
| 4045 | .eraseblocks = { |
| 4046 | {4 * 1024, 2}, |
| 4047 | {8 * 1024, 1}, |
| 4048 | {16 * 1024, 1}, |
| 4049 | {32 * 1024, 1}, |
| 4050 | {64 * 1024, 63}, |
| 4051 | }, |
| 4052 | .block_erase = spi_block_erase_d8, |
| 4053 | }, { |
| 4054 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4055 | .block_erase = spi_block_erase_c7, |
| 4056 | } |
| 4057 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4058 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4059 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4060 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4061 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4062 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4063 | }, |
| 4064 | |
| 4065 | { |
| 4066 | .vendor = "Eon", |
| 4067 | .name = "EN25B32T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4068 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4069 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4070 | .model_id = EON_EN25B32, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4071 | .total_size = 4096, |
| 4072 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4073 | /* OTP: 512B total; enter 0x3A */ |
| 4074 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4075 | .tested = TEST_UNTESTED, |
| 4076 | .probe = probe_spi_rdid, |
| 4077 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4078 | .block_erasers = |
| 4079 | { |
| 4080 | { |
| 4081 | .eraseblocks = { |
| 4082 | {64 * 1024, 63}, |
| 4083 | {32 * 1024, 1}, |
| 4084 | {16 * 1024, 1}, |
| 4085 | {8 * 1024, 1}, |
| 4086 | {4 * 1024, 2}, |
| 4087 | }, |
| 4088 | .block_erase = spi_block_erase_d8, |
| 4089 | }, { |
| 4090 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4091 | .block_erase = spi_block_erase_c7, |
| 4092 | } |
| 4093 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4094 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4095 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4096 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4097 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4098 | .voltage = {2700, 3600}, |
| 4099 | }, |
| 4100 | |
| 4101 | { |
| 4102 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4103 | .name = "EN25B40", |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4104 | .bustype = BUS_SPI, |
| 4105 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4106 | .model_id = EON_EN25B40, |
| 4107 | .total_size = 512, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4108 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4109 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4110 | .tested = TEST_UNTESTED, |
| 4111 | .probe = probe_spi_rdid, |
| 4112 | .probe_timing = TIMING_ZERO, |
| 4113 | .block_erasers = |
| 4114 | { |
| 4115 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4116 | .eraseblocks = { |
| 4117 | {4 * 1024, 2}, |
| 4118 | {8 * 1024, 1}, |
| 4119 | {16 * 1024, 1}, |
| 4120 | {32 * 1024, 1}, |
| 4121 | {64 * 1024, 7} |
| 4122 | }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4123 | .block_erase = spi_block_erase_d8, |
| 4124 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4125 | .eraseblocks = { {512 * 1024, 1} }, |
| 4126 | .block_erase = spi_block_erase_c7, |
| 4127 | } |
| 4128 | }, |
| 4129 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4130 | .unlock = spi_disable_blockprotect, |
| 4131 | .write = spi_chip_write_256, |
| 4132 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4133 | .voltage = {2700, 3600}, |
| 4134 | }, |
| 4135 | |
| 4136 | { |
| 4137 | .vendor = "Eon", |
| 4138 | .name = "EN25B40T", |
| 4139 | .bustype = BUS_SPI, |
| 4140 | .manufacture_id = EON_ID_NOPREFIX, |
| 4141 | .model_id = EON_EN25B40, |
| 4142 | .total_size = 512, |
| 4143 | .page_size = 256, |
| 4144 | .feature_bits = FEATURE_WRSR_WREN, |
| 4145 | .tested = TEST_UNTESTED, |
| 4146 | .probe = probe_spi_rdid, |
| 4147 | .probe_timing = TIMING_ZERO, |
| 4148 | .block_erasers = |
| 4149 | { |
| 4150 | { |
| 4151 | .eraseblocks = { |
| 4152 | {64 * 1024, 7}, |
| 4153 | {32 * 1024, 1}, |
| 4154 | {16 * 1024, 1}, |
| 4155 | {8 * 1024, 1}, |
| 4156 | {4 * 1024, 2}, |
| 4157 | }, |
| 4158 | .block_erase = spi_block_erase_d8, |
| 4159 | }, { |
| 4160 | .eraseblocks = { {512 * 1024, 1} }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4161 | .block_erase = spi_block_erase_c7, |
| 4162 | } |
| 4163 | }, |
| 4164 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4165 | .unlock = spi_disable_blockprotect, |
| 4166 | .write = spi_chip_write_256, |
| 4167 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4168 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4169 | }, |
| 4170 | |
| 4171 | { |
| 4172 | .vendor = "Eon", |
| 4173 | .name = "EN25B64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4174 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4175 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4176 | .model_id = EON_EN25B64, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4177 | .total_size = 8192, |
| 4178 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4179 | /* OTP: 512B total; enter 0x3A */ |
| 4180 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4181 | .tested = TEST_UNTESTED, |
| 4182 | .probe = probe_spi_rdid, |
| 4183 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4184 | .block_erasers = |
| 4185 | { |
| 4186 | { |
| 4187 | .eraseblocks = { |
| 4188 | {4 * 1024, 2}, |
| 4189 | {8 * 1024, 1}, |
| 4190 | {16 * 1024, 1}, |
| 4191 | {32 * 1024, 1}, |
| 4192 | {64 * 1024, 127}, |
| 4193 | }, |
| 4194 | .block_erase = spi_block_erase_d8, |
| 4195 | }, { |
| 4196 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4197 | .block_erase = spi_block_erase_c7, |
| 4198 | } |
| 4199 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4200 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4201 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4202 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4203 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4204 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4205 | }, |
| 4206 | |
| 4207 | { |
| 4208 | .vendor = "Eon", |
| 4209 | .name = "EN25B64T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4210 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4211 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4212 | .model_id = EON_EN25B64, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4213 | .total_size = 8192, |
| 4214 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4215 | /* OTP: 512B total; enter 0x3A */ |
| 4216 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4217 | .tested = TEST_UNTESTED, |
| 4218 | .probe = probe_spi_rdid, |
| 4219 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4220 | .block_erasers = |
| 4221 | { |
| 4222 | { |
| 4223 | .eraseblocks = { |
| 4224 | {64 * 1024, 127}, |
| 4225 | {32 * 1024, 1}, |
| 4226 | {16 * 1024, 1}, |
| 4227 | {8 * 1024, 1}, |
| 4228 | {4 * 1024, 2}, |
| 4229 | }, |
| 4230 | .block_erase = spi_block_erase_d8, |
| 4231 | }, { |
| 4232 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4233 | .block_erase = spi_block_erase_c7, |
| 4234 | } |
| 4235 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4236 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4237 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4238 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4239 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4240 | .voltage = {2700, 3600}, |
| 4241 | }, |
| 4242 | |
| 4243 | { |
| 4244 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4245 | .name = "EN25B80", |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4246 | .bustype = BUS_SPI, |
| 4247 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4248 | .model_id = EON_EN25B80, |
| 4249 | .total_size = 1024, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4250 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4251 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4252 | .tested = TEST_UNTESTED, |
| 4253 | .probe = probe_spi_rdid, |
| 4254 | .probe_timing = TIMING_ZERO, |
| 4255 | .block_erasers = |
| 4256 | { |
| 4257 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4258 | .eraseblocks = { |
| 4259 | {4 * 1024, 2}, |
| 4260 | {8 * 1024, 1}, |
| 4261 | {16 * 1024, 1}, |
| 4262 | {32 * 1024, 1}, |
| 4263 | {64 * 1024, 15} |
| 4264 | }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4265 | .block_erase = spi_block_erase_d8, |
| 4266 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4267 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4268 | .block_erase = spi_block_erase_c7, |
| 4269 | } |
| 4270 | }, |
| 4271 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4272 | .unlock = spi_disable_blockprotect, |
| 4273 | .write = spi_chip_write_256, |
| 4274 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4275 | .voltage = {2700, 3600}, |
| 4276 | }, |
| 4277 | |
| 4278 | { |
| 4279 | .vendor = "Eon", |
| 4280 | .name = "EN25B80T", |
| 4281 | .bustype = BUS_SPI, |
| 4282 | .manufacture_id = EON_ID_NOPREFIX, |
| 4283 | .model_id = EON_EN25B80, |
| 4284 | .total_size = 1024, |
| 4285 | .page_size = 256, |
| 4286 | .feature_bits = FEATURE_WRSR_WREN, |
| 4287 | .tested = TEST_UNTESTED, |
| 4288 | .probe = probe_spi_rdid, |
| 4289 | .probe_timing = TIMING_ZERO, |
| 4290 | .block_erasers = |
| 4291 | { |
| 4292 | { |
| 4293 | .eraseblocks = { |
| 4294 | {64 * 1024, 15}, |
| 4295 | {32 * 1024, 1}, |
| 4296 | {16 * 1024, 1}, |
| 4297 | {8 * 1024, 1}, |
| 4298 | {4 * 1024, 2}, |
| 4299 | }, |
| 4300 | .block_erase = spi_block_erase_d8, |
| 4301 | }, { |
| 4302 | .eraseblocks = { {1024 * 1024, 1} }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4303 | .block_erase = spi_block_erase_c7, |
| 4304 | } |
| 4305 | }, |
| 4306 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4307 | .unlock = spi_disable_blockprotect, |
| 4308 | .write = spi_chip_write_256, |
| 4309 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4310 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4311 | }, |
| 4312 | |
| 4313 | { |
| 4314 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4315 | .name = "EN25F05", |
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_EN25F05, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4319 | .total_size = 64, |
| 4320 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4321 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 4322 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 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, 16} }, |
| 4329 | .block_erase = spi_block_erase_20, |
| 4330 | }, { |
| 4331 | .eraseblocks = { {32 * 1024, 2} }, |
| 4332 | .block_erase = spi_block_erase_d8, |
| 4333 | }, { |
| 4334 | .eraseblocks = { {32 * 1024, 2} }, |
| 4335 | .block_erase = spi_block_erase_52, |
| 4336 | }, { |
| 4337 | .eraseblocks = { {64 * 1024, 1} }, |
| 4338 | .block_erase = spi_block_erase_60, |
| 4339 | }, { |
| 4340 | .eraseblocks = { {64 * 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", |
| 4353 | .name = "EN25F10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4354 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4355 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4356 | .model_id = EON_EN25F10, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4357 | .total_size = 128, |
| 4358 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4359 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4360 | .tested = TEST_UNTESTED, |
| 4361 | .probe = probe_spi_rdid, |
| 4362 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4363 | .block_erasers = |
| 4364 | { |
| 4365 | { |
| 4366 | .eraseblocks = { {4 * 1024, 32} }, |
| 4367 | .block_erase = spi_block_erase_20, |
| 4368 | }, { |
| 4369 | .eraseblocks = { {32 * 1024, 4} }, |
| 4370 | .block_erase = spi_block_erase_d8, |
| 4371 | }, { |
| 4372 | .eraseblocks = { {32 * 1024, 4} }, |
| 4373 | .block_erase = spi_block_erase_52, |
| 4374 | }, { |
| 4375 | .eraseblocks = { {128 * 1024, 1} }, |
| 4376 | .block_erase = spi_block_erase_60, |
| 4377 | }, { |
| 4378 | .eraseblocks = { {128 * 1024, 1} }, |
| 4379 | .block_erase = spi_block_erase_c7, |
| 4380 | } |
| 4381 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4382 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4383 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4384 | .write = spi_chip_write_256, |
| 4385 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4386 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4387 | }, |
| 4388 | |
| 4389 | { |
| 4390 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4391 | .name = "EN25F16", |
| 4392 | .bustype = BUS_SPI, |
| 4393 | .manufacture_id = EON_ID_NOPREFIX, |
| 4394 | .model_id = EON_EN25F16, |
| 4395 | .total_size = 2048, |
| 4396 | .page_size = 256, |
| 4397 | .feature_bits = FEATURE_WRSR_WREN, |
| 4398 | .tested = TEST_OK_PREW, |
| 4399 | .probe = probe_spi_rdid, |
| 4400 | .probe_timing = TIMING_ZERO, |
| 4401 | .block_erasers = |
| 4402 | { |
| 4403 | { |
| 4404 | .eraseblocks = { {4 * 1024, 512} }, |
| 4405 | .block_erase = spi_block_erase_20, |
| 4406 | }, { |
| 4407 | .eraseblocks = { {64 * 1024, 32} }, |
| 4408 | .block_erase = spi_block_erase_d8, |
| 4409 | }, { |
| 4410 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4411 | .block_erase = spi_block_erase_60, |
| 4412 | }, { |
| 4413 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4414 | .block_erase = spi_block_erase_c7, |
| 4415 | } |
| 4416 | }, |
| 4417 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4418 | .unlock = spi_disable_blockprotect, |
| 4419 | .write = spi_chip_write_256, |
| 4420 | .read = spi_chip_read, |
| 4421 | .voltage = {2700, 3600}, |
| 4422 | }, |
| 4423 | |
| 4424 | { |
| 4425 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4426 | .name = "EN25F20", |
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_EN25F20, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4430 | .total_size = 256, |
| 4431 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4432 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4433 | .tested = TEST_UNTESTED, |
| 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, 64} }, |
| 4440 | .block_erase = spi_block_erase_20, |
| 4441 | }, { |
| 4442 | .eraseblocks = { {64 * 1024, 4} }, |
| 4443 | .block_erase = spi_block_erase_d8, |
| 4444 | }, { |
| 4445 | .eraseblocks = { {64 * 1024, 4} }, |
| 4446 | .block_erase = spi_block_erase_52, |
| 4447 | }, { |
| 4448 | .eraseblocks = { {256 * 1024, 1} }, |
| 4449 | .block_erase = spi_block_erase_60, |
| 4450 | }, { |
| 4451 | .eraseblocks = { {256 * 1024, 1} }, |
| 4452 | .block_erase = spi_block_erase_c7, |
| 4453 | } |
| 4454 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4455 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4456 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4457 | .write = spi_chip_write_256, |
| 4458 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4459 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4460 | }, |
| 4461 | |
| 4462 | { |
| 4463 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4464 | .name = "EN25F32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4465 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4466 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4467 | .model_id = EON_EN25F32, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4468 | .total_size = 4096, |
| 4469 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4470 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 4471 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4472 | .probe = probe_spi_rdid, |
| 4473 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4474 | .block_erasers = |
| 4475 | { |
| 4476 | { |
| 4477 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4478 | .block_erase = spi_block_erase_20, |
| 4479 | }, { |
| 4480 | .eraseblocks = { {64 * 1024, 64} }, |
| 4481 | .block_erase = spi_block_erase_d8, |
| 4482 | }, { |
| 4483 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4484 | .block_erase = spi_block_erase_60, |
| 4485 | }, { |
| 4486 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4487 | .block_erase = spi_block_erase_c7, |
| 4488 | } |
| 4489 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4490 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4491 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4492 | .write = spi_chip_write_256, |
| 4493 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4494 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4495 | }, |
| 4496 | |
| 4497 | { |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4498 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4499 | .name = "EN25F40", |
| 4500 | .bustype = BUS_SPI, |
| 4501 | .manufacture_id = EON_ID_NOPREFIX, |
| 4502 | .model_id = EON_EN25F40, |
| 4503 | .total_size = 512, |
| 4504 | .page_size = 256, |
| 4505 | .feature_bits = FEATURE_WRSR_WREN, |
| 4506 | .tested = TEST_OK_PREW, |
| 4507 | .probe = probe_spi_rdid, |
| 4508 | .probe_timing = TIMING_ZERO, |
| 4509 | .block_erasers = |
| 4510 | { |
| 4511 | { |
| 4512 | .eraseblocks = { {4 * 1024, 128} }, |
| 4513 | .block_erase = spi_block_erase_20, |
| 4514 | }, { |
| 4515 | .eraseblocks = { {64 * 1024, 8} }, |
| 4516 | .block_erase = spi_block_erase_d8, |
| 4517 | }, { |
| 4518 | .eraseblocks = { {512 * 1024, 1} }, |
| 4519 | .block_erase = spi_block_erase_60, |
| 4520 | }, { |
| 4521 | .eraseblocks = { {512 * 1024, 1} }, |
| 4522 | .block_erase = spi_block_erase_c7, |
| 4523 | }, |
| 4524 | }, |
| 4525 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4526 | .unlock = spi_disable_blockprotect, |
| 4527 | .write = spi_chip_write_256, |
| 4528 | .read = spi_chip_read, |
| 4529 | .voltage = {2700, 3600}, |
| 4530 | }, |
| 4531 | |
| 4532 | { |
| 4533 | .vendor = "Eon", |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4534 | .name = "EN25F64", |
| 4535 | .bustype = BUS_SPI, |
| 4536 | .manufacture_id = EON_ID_NOPREFIX, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 4537 | .model_id = EON_EN25F64, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4538 | .total_size = 8192, |
| 4539 | .page_size = 256, |
| 4540 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 4541 | .tested = TEST_OK_PREW, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4542 | .probe = probe_spi_rdid, |
| 4543 | .probe_timing = TIMING_ZERO, |
| 4544 | .block_erasers = |
| 4545 | { |
| 4546 | { |
| 4547 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4548 | .block_erase = spi_block_erase_20, |
| 4549 | }, { |
| 4550 | .eraseblocks = { {64 * 1024, 128} }, |
| 4551 | .block_erase = spi_block_erase_d8, |
| 4552 | }, { |
| 4553 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4554 | .block_erase = spi_block_erase_60, |
| 4555 | }, { |
| 4556 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4557 | .block_erase = spi_block_erase_c7, |
| 4558 | } |
| 4559 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4560 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4561 | .unlock = spi_disable_blockprotect, |
| 4562 | .write = spi_chip_write_256, |
| 4563 | .read = spi_chip_read, |
| 4564 | .voltage = {2700, 3600}, |
| 4565 | }, |
| 4566 | |
| 4567 | { |
| 4568 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4569 | .name = "EN25F80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4570 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4571 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4572 | .model_id = EON_EN25F80, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4573 | .total_size = 1024, |
| 4574 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4575 | .feature_bits = FEATURE_WRSR_WREN, |
| 4576 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4577 | .probe = probe_spi_rdid, |
| 4578 | .probe_timing = TIMING_ZERO, |
| 4579 | .block_erasers = |
| 4580 | { |
| 4581 | { |
| 4582 | .eraseblocks = { {4 * 1024, 256} }, |
| 4583 | .block_erase = spi_block_erase_20, |
| 4584 | }, { |
| 4585 | .eraseblocks = { {64 * 1024, 16} }, |
| 4586 | .block_erase = spi_block_erase_d8, |
| 4587 | }, { |
| 4588 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4589 | .block_erase = spi_block_erase_60, |
| 4590 | }, { |
| 4591 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4592 | .block_erase = spi_block_erase_c7, |
| 4593 | } |
| 4594 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4595 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4596 | .unlock = spi_disable_blockprotect, |
| 4597 | .write = spi_chip_write_256, |
| 4598 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4599 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4600 | }, |
| 4601 | |
| 4602 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4603 | .vendor = "Eon", |
| 4604 | .name = "EN25P05", |
| 4605 | .bustype = BUS_SPI, |
| 4606 | .manufacture_id = EON_ID_NOPREFIX, |
| 4607 | .model_id = EON_EN25B05, |
| 4608 | .total_size = 64, |
| 4609 | .page_size = 256, |
| 4610 | .feature_bits = FEATURE_WRSR_WREN, |
| 4611 | .tested = TEST_UNTESTED, |
| 4612 | .probe = probe_spi_rdid, |
| 4613 | .probe_timing = TIMING_ZERO, |
| 4614 | .block_erasers = |
| 4615 | { |
| 4616 | { |
| 4617 | .eraseblocks = { |
| 4618 | {32 * 1024, 2} }, |
| 4619 | .block_erase = spi_block_erase_d8, |
| 4620 | }, { |
| 4621 | .eraseblocks = { {64 * 1024, 1} }, |
| 4622 | .block_erase = spi_block_erase_c7, |
| 4623 | } |
| 4624 | }, |
| 4625 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4626 | .unlock = spi_disable_blockprotect, |
| 4627 | .write = spi_chip_write_256, |
| 4628 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4629 | .voltage = {2700, 3600}, |
| 4630 | }, |
| 4631 | |
| 4632 | { |
| 4633 | .vendor = "Eon", |
| 4634 | .name = "EN25P10", |
| 4635 | .bustype = BUS_SPI, |
| 4636 | .manufacture_id = EON_ID_NOPREFIX, |
| 4637 | .model_id = EON_EN25B10, |
| 4638 | .total_size = 128, |
| 4639 | .page_size = 256, |
| 4640 | .feature_bits = FEATURE_WRSR_WREN, |
| 4641 | .tested = TEST_UNTESTED, |
| 4642 | .probe = probe_spi_rdid, |
| 4643 | .probe_timing = TIMING_ZERO, |
| 4644 | .block_erasers = |
| 4645 | { |
| 4646 | { |
| 4647 | .eraseblocks = { {32 * 1024, 4} }, |
| 4648 | .block_erase = spi_block_erase_d8, |
| 4649 | }, { |
| 4650 | .eraseblocks = { {128 * 1024, 1} }, |
| 4651 | .block_erase = spi_block_erase_c7, |
| 4652 | } |
| 4653 | }, |
| 4654 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4655 | .unlock = spi_disable_blockprotect, |
| 4656 | .write = spi_chip_write_256, |
| 4657 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4658 | .voltage = {2700, 3600}, |
| 4659 | }, |
| 4660 | |
| 4661 | { |
| 4662 | .vendor = "Eon", |
| 4663 | .name = "EN25P16", |
| 4664 | .bustype = BUS_SPI, |
| 4665 | .manufacture_id = EON_ID_NOPREFIX, |
| 4666 | .model_id = EON_EN25B16, |
| 4667 | .total_size = 2048, |
| 4668 | .page_size = 256, |
| 4669 | .feature_bits = FEATURE_WRSR_WREN, |
| 4670 | .tested = TEST_UNTESTED, |
| 4671 | .probe = probe_spi_rdid, |
| 4672 | .probe_timing = TIMING_ZERO, |
| 4673 | .block_erasers = |
| 4674 | { |
| 4675 | { |
| 4676 | .eraseblocks = { {64 * 1024, 32} }, |
| 4677 | .block_erase = spi_block_erase_d8, |
| 4678 | }, { |
| 4679 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4680 | .block_erase = spi_block_erase_c7, |
| 4681 | } |
| 4682 | }, |
| 4683 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4684 | .unlock = spi_disable_blockprotect, |
| 4685 | .write = spi_chip_write_256, |
| 4686 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4687 | .voltage = {2700, 3600}, |
| 4688 | }, |
| 4689 | |
| 4690 | { |
| 4691 | .vendor = "Eon", |
| 4692 | .name = "EN25P20", |
| 4693 | .bustype = BUS_SPI, |
| 4694 | .manufacture_id = EON_ID_NOPREFIX, |
| 4695 | .model_id = EON_EN25B20, |
| 4696 | .total_size = 256, |
| 4697 | .page_size = 256, |
| 4698 | .feature_bits = FEATURE_WRSR_WREN, |
| 4699 | .tested = TEST_UNTESTED, |
| 4700 | .probe = probe_spi_rdid, |
| 4701 | .probe_timing = TIMING_ZERO, |
| 4702 | .block_erasers = |
| 4703 | { |
| 4704 | { |
| 4705 | .eraseblocks = { {64 * 1024, 4} }, |
| 4706 | .block_erase = spi_block_erase_d8, |
| 4707 | }, { |
| 4708 | .eraseblocks = { {256 * 1024, 1} }, |
| 4709 | .block_erase = spi_block_erase_c7, |
| 4710 | } |
| 4711 | }, |
| 4712 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4713 | .unlock = spi_disable_blockprotect, |
| 4714 | .write = spi_chip_write_256, |
| 4715 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4716 | .voltage = {2700, 3600}, |
| 4717 | }, |
| 4718 | |
| 4719 | { |
| 4720 | .vendor = "Eon", |
| 4721 | .name = "EN25P32", /* Uniform version of EN25B32 */ |
| 4722 | .bustype = BUS_SPI, |
| 4723 | .manufacture_id = EON_ID_NOPREFIX, |
| 4724 | .model_id = EON_EN25B32, |
| 4725 | .total_size = 4096, |
| 4726 | .page_size = 256, |
| 4727 | /* OTP: 512B total; enter 0x3A */ |
| 4728 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4729 | .tested = TEST_UNTESTED, |
| 4730 | .probe = probe_spi_rdid, |
| 4731 | .probe_timing = TIMING_ZERO, |
| 4732 | .block_erasers = |
| 4733 | { |
| 4734 | { |
| 4735 | .eraseblocks = { {64 * 1024, 64} }, |
| 4736 | .block_erase = spi_block_erase_d8, |
| 4737 | }, { |
| 4738 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4739 | .block_erase = spi_block_erase_c7, |
| 4740 | } |
| 4741 | }, |
| 4742 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4743 | .unlock = spi_disable_blockprotect, |
| 4744 | .write = spi_chip_write_256, |
| 4745 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4746 | .voltage = {2700, 3600}, |
| 4747 | }, |
| 4748 | |
| 4749 | { |
| 4750 | .vendor = "Eon", |
| 4751 | .name = "EN25P40", |
| 4752 | .bustype = BUS_SPI, |
| 4753 | .manufacture_id = EON_ID_NOPREFIX, |
| 4754 | .model_id = EON_EN25B40, |
| 4755 | .total_size = 512, |
| 4756 | .page_size = 256, |
| 4757 | .feature_bits = FEATURE_WRSR_WREN, |
| 4758 | .tested = TEST_UNTESTED, |
| 4759 | .probe = probe_spi_rdid, |
| 4760 | .probe_timing = TIMING_ZERO, |
| 4761 | .block_erasers = |
| 4762 | { |
| 4763 | { |
| 4764 | .eraseblocks = { {64 * 1024, 8} }, |
| 4765 | .block_erase = spi_block_erase_d8, |
| 4766 | }, { |
| 4767 | .eraseblocks = { {512 * 1024, 1} }, |
| 4768 | .block_erase = spi_block_erase_c7, |
| 4769 | } |
| 4770 | }, |
| 4771 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4772 | .unlock = spi_disable_blockprotect, |
| 4773 | .write = spi_chip_write_256, |
| 4774 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4775 | .voltage = {2700, 3600}, |
| 4776 | }, |
| 4777 | |
| 4778 | { |
| 4779 | .vendor = "Eon", |
| 4780 | .name = "EN25P64", |
| 4781 | .bustype = BUS_SPI, |
| 4782 | .manufacture_id = EON_ID_NOPREFIX, |
| 4783 | .model_id = EON_EN25B64, |
| 4784 | .total_size = 8192, |
| 4785 | .page_size = 256, |
| 4786 | /* OTP: 512B total; enter 0x3A */ |
| 4787 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4788 | .tested = TEST_UNTESTED, |
| 4789 | .probe = probe_spi_rdid, |
| 4790 | .probe_timing = TIMING_ZERO, |
| 4791 | .block_erasers = |
| 4792 | { |
| 4793 | { |
| 4794 | .eraseblocks = { {64 * 1024, 128} }, |
| 4795 | .block_erase = spi_block_erase_d8, |
| 4796 | }, { |
| 4797 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4798 | .block_erase = spi_block_erase_c7, |
| 4799 | } |
| 4800 | }, |
| 4801 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4802 | .unlock = spi_disable_blockprotect, |
| 4803 | .write = spi_chip_write_256, |
| 4804 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4805 | .voltage = {2700, 3600}, |
| 4806 | }, |
| 4807 | |
| 4808 | { |
| 4809 | .vendor = "Eon", |
| 4810 | .name = "EN25P80", |
| 4811 | .bustype = BUS_SPI, |
| 4812 | .manufacture_id = EON_ID_NOPREFIX, |
| 4813 | .model_id = EON_EN25B80, |
| 4814 | .total_size = 1024, |
| 4815 | .page_size = 256, |
| 4816 | .feature_bits = FEATURE_WRSR_WREN, |
| 4817 | .tested = TEST_UNTESTED, |
| 4818 | .probe = probe_spi_rdid, |
| 4819 | .probe_timing = TIMING_ZERO, |
| 4820 | .block_erasers = |
| 4821 | { |
| 4822 | { |
| 4823 | .eraseblocks = { {64 * 1024, 16} }, |
| 4824 | .block_erase = spi_block_erase_d8, |
| 4825 | }, { |
| 4826 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4827 | .block_erase = spi_block_erase_c7, |
| 4828 | } |
| 4829 | }, |
| 4830 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4831 | .unlock = spi_disable_blockprotect, |
| 4832 | .write = spi_chip_write_256, |
| 4833 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4834 | .voltage = {2700, 3600}, |
| 4835 | }, |
| 4836 | |
| 4837 | { |
| 4838 | .vendor = "Eon", |
| 4839 | .name = "EN25Q128", |
| 4840 | .bustype = BUS_SPI, |
| 4841 | .manufacture_id = EON_ID_NOPREFIX, |
| 4842 | .model_id = EON_EN25Q128, |
| 4843 | .total_size = 16384, |
| 4844 | .page_size = 256, |
| 4845 | /* OTP: 512B total; enter 0x3A */ |
| 4846 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4847 | .tested = TEST_OK_PREW, |
| 4848 | .probe = probe_spi_rdid, |
| 4849 | .probe_timing = TIMING_ZERO, |
| 4850 | .block_erasers = |
| 4851 | { |
| 4852 | { |
| 4853 | .eraseblocks = { {4 * 1024, 4096} }, |
| 4854 | .block_erase = spi_block_erase_20, |
| 4855 | }, { |
| 4856 | .eraseblocks = { {64 * 1024, 256} }, |
| 4857 | .block_erase = spi_block_erase_d8, |
| 4858 | }, { |
| 4859 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4860 | .block_erase = spi_block_erase_60, |
| 4861 | }, { |
| 4862 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4863 | .block_erase = spi_block_erase_c7, |
| 4864 | } |
| 4865 | }, |
| 4866 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4867 | .unlock = spi_disable_blockprotect, |
| 4868 | .write = spi_chip_write_256, |
| 4869 | .read = spi_chip_read, |
| 4870 | }, |
| 4871 | |
| 4872 | { |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4873 | /* Note: EN25D16 is an evil twin which shares the model ID |
| 4874 | but has different write protection capabilities */ |
| 4875 | .vendor = "Eon", |
| 4876 | .name = "EN25Q16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4877 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4878 | .manufacture_id = EON_ID_NOPREFIX, |
| 4879 | .model_id = EON_EN25Q16, |
| 4880 | .total_size = 2048, |
| 4881 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4882 | /* OTP: D16 512B/Q16 128B total; enter 0x3A */ |
| 4883 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4884 | .tested = TEST_UNTESTED, |
| 4885 | .probe = probe_spi_rdid, |
| 4886 | .probe_timing = TIMING_ZERO, |
| 4887 | .block_erasers = |
| 4888 | { |
| 4889 | { |
| 4890 | .eraseblocks = { {4 * 1024, 512} }, |
| 4891 | .block_erase = spi_block_erase_20, |
| 4892 | }, { |
| 4893 | .eraseblocks = { {64 * 1024, 32} }, |
| 4894 | .block_erase = spi_block_erase_d8, |
| 4895 | }, { |
| 4896 | /* not supported by Q16 version */ |
| 4897 | .eraseblocks = { {64 * 1024, 32} }, |
| 4898 | .block_erase = spi_block_erase_52, |
| 4899 | }, { |
| 4900 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4901 | .block_erase = spi_block_erase_60, |
| 4902 | }, { |
| 4903 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4904 | .block_erase = spi_block_erase_c7, |
| 4905 | } |
| 4906 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4907 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4908 | .unlock = spi_disable_blockprotect, |
| 4909 | .write = spi_chip_write_256, |
| 4910 | .read = spi_chip_read, |
| 4911 | .voltage = {2700, 3600}, |
| 4912 | }, |
| 4913 | |
| 4914 | { |
| 4915 | .vendor = "Eon", |
| 4916 | .name = "EN25Q32(A/B)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4917 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4918 | .manufacture_id = EON_ID_NOPREFIX, |
| 4919 | .model_id = EON_EN25Q32, |
| 4920 | .total_size = 4096, |
| 4921 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4922 | /* OTP: 512B total; enter 0x3A */ |
| 4923 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4924 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4925 | .probe = probe_spi_rdid, |
| 4926 | .probe_timing = TIMING_ZERO, |
| 4927 | .block_erasers = |
| 4928 | { |
| 4929 | { |
| 4930 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4931 | .block_erase = spi_block_erase_20, |
| 4932 | }, { |
| 4933 | .eraseblocks = { {64 * 1024, 64} }, |
| 4934 | .block_erase = spi_block_erase_d8, |
| 4935 | }, { |
| 4936 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4937 | .block_erase = spi_block_erase_60, |
| 4938 | }, { |
| 4939 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4940 | .block_erase = spi_block_erase_c7, |
| 4941 | } |
| 4942 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4943 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4944 | .unlock = spi_disable_blockprotect, |
| 4945 | .write = spi_chip_write_256, |
| 4946 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4947 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4948 | }, |
| 4949 | |
| 4950 | { |
| 4951 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4952 | .name = "EN25Q40", |
| 4953 | .bustype = BUS_SPI, |
| 4954 | .manufacture_id = EON_ID_NOPREFIX, |
| 4955 | .model_id = EON_EN25Q40, |
| 4956 | .total_size = 512, |
| 4957 | .page_size = 256, |
| 4958 | /* OTP: 256B total; enter 0x3A */ |
| 4959 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4960 | .tested = TEST_UNTESTED, |
| 4961 | .probe = probe_spi_rdid, |
| 4962 | .probe_timing = TIMING_ZERO, |
| 4963 | .block_erasers = |
| 4964 | { |
| 4965 | { |
| 4966 | .eraseblocks = { {4 * 1024, 128} }, |
| 4967 | .block_erase = spi_block_erase_20, |
| 4968 | }, { |
| 4969 | .eraseblocks = { {64 * 1024, 8} }, |
| 4970 | .block_erase = spi_block_erase_d8, |
| 4971 | }, { |
| 4972 | .eraseblocks = { {512 * 1024, 1} }, |
| 4973 | .block_erase = spi_block_erase_60, |
| 4974 | }, { |
| 4975 | .eraseblocks = { {512 * 1024, 1} }, |
| 4976 | .block_erase = spi_block_erase_c7, |
| 4977 | } |
| 4978 | }, |
| 4979 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4980 | .unlock = spi_disable_blockprotect, |
| 4981 | .write = spi_chip_write_256, |
| 4982 | .read = spi_chip_read, |
| 4983 | .voltage = {2700, 3600}, |
| 4984 | }, |
| 4985 | |
| 4986 | { |
| 4987 | .vendor = "Eon", |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4988 | .name = "EN25Q64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4989 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4990 | .manufacture_id = EON_ID_NOPREFIX, |
| 4991 | .model_id = EON_EN25Q64, |
| 4992 | .total_size = 8192, |
| 4993 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4994 | /* OTP: 512B total; enter 0x3A */ |
| 4995 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4996 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4997 | .probe = probe_spi_rdid, |
| 4998 | .probe_timing = TIMING_ZERO, |
| 4999 | .block_erasers = |
| 5000 | { |
| 5001 | { |
| 5002 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5003 | .block_erase = spi_block_erase_20, |
| 5004 | }, { |
| 5005 | .eraseblocks = { {64 * 1024, 128} }, |
| 5006 | .block_erase = spi_block_erase_d8, |
| 5007 | }, { |
| 5008 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5009 | .block_erase = spi_block_erase_60, |
| 5010 | }, { |
| 5011 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5012 | .block_erase = spi_block_erase_c7, |
| 5013 | } |
| 5014 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 5015 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5016 | .unlock = spi_disable_blockprotect, |
| 5017 | .write = spi_chip_write_256, |
| 5018 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 5019 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5020 | }, |
| 5021 | |
| 5022 | { |
| 5023 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5024 | .name = "EN25Q80(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5025 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5026 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5027 | .model_id = EON_EN25Q80, |
| 5028 | .total_size = 1024, |
| 5029 | .page_size = 256, |
| 5030 | /* OTP: 256B total; enter 0x3A */ |
| 5031 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5032 | .tested = TEST_UNTESTED, |
| 5033 | .probe = probe_spi_rdid, |
| 5034 | .probe_timing = TIMING_ZERO, |
| 5035 | .block_erasers = |
| 5036 | { |
| 5037 | { |
| 5038 | .eraseblocks = { {4 * 1024, 256} }, |
| 5039 | .block_erase = spi_block_erase_20, |
| 5040 | }, { |
| 5041 | .eraseblocks = { {64 * 1024, 16} }, |
| 5042 | .block_erase = spi_block_erase_d8, |
| 5043 | }, { |
| 5044 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5045 | .block_erase = spi_block_erase_60, |
| 5046 | }, { |
| 5047 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5048 | .block_erase = spi_block_erase_c7, |
| 5049 | } |
| 5050 | }, |
| 5051 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 5052 | .unlock = spi_disable_blockprotect, |
| 5053 | .write = spi_chip_write_256, |
| 5054 | .read = spi_chip_read, |
| 5055 | .voltage = {2700, 3600}, |
| 5056 | }, |
| 5057 | |
| 5058 | { |
| 5059 | .vendor = "Eon", |
| 5060 | .name = "EN25QH128", |
| 5061 | .bustype = BUS_SPI, |
| 5062 | .manufacture_id = EON_ID_NOPREFIX, |
| 5063 | .model_id = EON_EN25QH128, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5064 | .total_size = 16384, |
| 5065 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5066 | /* supports SFDP */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 5067 | /* OTP: 512B total; enter 0x3A */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5068 | /* QPI enable 0x38, disable 0xFF */ |
| 5069 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Tim Chen | bfe149a | 2020-07-06 14:59:21 +0800 | [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, 4096} }, |
| 5077 | .block_erase = spi_block_erase_20, |
| 5078 | }, { |
| 5079 | .eraseblocks = { {64 * 1024, 256} }, |
| 5080 | .block_erase = spi_block_erase_d8, |
| 5081 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5082 | .eraseblocks = { { 16384 * 1024, 1} }, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5083 | .block_erase = spi_block_erase_60, |
| 5084 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5085 | .eraseblocks = { { 16384 * 1024, 1} }, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5086 | .block_erase = spi_block_erase_c7, |
| 5087 | } |
| 5088 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5089 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 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, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5093 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5094 | }, |
| 5095 | |
| 5096 | { |
| 5097 | .vendor = "Eon", |
| 5098 | .name = "EN25QH16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5099 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5100 | .manufacture_id = EON_ID_NOPREFIX, |
| 5101 | .model_id = EON_EN25QH16, |
| 5102 | .total_size = 2048, |
| 5103 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 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 | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 5108 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5109 | .probe = probe_spi_rdid, |
| 5110 | .probe_timing = TIMING_ZERO, |
| 5111 | .block_erasers = |
| 5112 | { |
| 5113 | { |
| 5114 | .eraseblocks = { {4 * 1024, 512} }, |
| 5115 | .block_erase = spi_block_erase_20, |
| 5116 | }, { |
| 5117 | .eraseblocks = { {64 * 1024, 32} }, |
| 5118 | .block_erase = spi_block_erase_d8, |
| 5119 | }, { |
| 5120 | .eraseblocks = { {1024 * 2048, 1} }, |
| 5121 | .block_erase = spi_block_erase_60, |
| 5122 | }, { |
| 5123 | .eraseblocks = { {1024 * 2048, 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, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5129 | .write = spi_chip_write_256, |
| 5130 | .read = spi_chip_read, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 5131 | .voltage = {2700, 3600}, |
| 5132 | }, |
| 5133 | |
| 5134 | { |
| 5135 | .vendor = "Eon", |
| 5136 | .name = "EN25QH32", |
| 5137 | .bustype = BUS_SPI, |
| 5138 | .manufacture_id = EON_ID_NOPREFIX, |
| 5139 | .model_id = EON_EN25QH32, |
| 5140 | .total_size = 4096, |
| 5141 | .page_size = 256, |
| 5142 | /* supports SFDP */ |
| 5143 | /* OTP: 512B total; enter 0x3A */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 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, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 5147 | .probe = probe_spi_rdid, |
| 5148 | .probe_timing = TIMING_ZERO, |
| 5149 | .block_erasers = |
| 5150 | { |
| 5151 | { |
| 5152 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5153 | .block_erase = spi_block_erase_20, |
| 5154 | }, { |
| 5155 | .eraseblocks = { {64 * 1024, 64} }, |
| 5156 | .block_erase = spi_block_erase_d8, |
| 5157 | }, { |
| 5158 | .eraseblocks = { {1024 * 4096, 1} }, |
| 5159 | .block_erase = spi_block_erase_60, |
| 5160 | }, { |
| 5161 | .eraseblocks = { {1024 * 4096, 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", |
| 5174 | .name = "EN25QH64", |
| 5175 | .bustype = BUS_SPI, |
| 5176 | .manufacture_id = EON_ID_NOPREFIX, |
| 5177 | .model_id = EON_EN25QH64, |
| 5178 | .total_size = 8192, |
| 5179 | .page_size = 256, |
| 5180 | /* supports SFDP */ |
| 5181 | /* OTP: 512B total; enter 0x3A */ |
| 5182 | /* QPI enable 0x38, disable 0xFF */ |
| 5183 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 5184 | .tested = TEST_OK_PREW, |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5185 | .probe = probe_spi_rdid, |
| 5186 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5187 | .block_erasers = |
| 5188 | { |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5189 | { |
| 5190 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5191 | .block_erase = spi_block_erase_20, |
| 5192 | }, { |
| 5193 | .eraseblocks = { {64 * 1024, 128} }, |
| 5194 | .block_erase = spi_block_erase_d8, |
| 5195 | }, { |
| 5196 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 5197 | .block_erase = spi_block_erase_60, |
| 5198 | }, { |
| 5199 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 5200 | .block_erase = spi_block_erase_c7, |
| 5201 | } |
| 5202 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5203 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5204 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5205 | .write = spi_chip_write_256, |
| 5206 | .read = spi_chip_read, |
| 5207 | .voltage = {2700, 3600}, |
| 5208 | }, |
| 5209 | |
| 5210 | { |
| 5211 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5212 | .name = "EN25S10", |
| 5213 | .bustype = BUS_SPI, |
| 5214 | .manufacture_id = EON_ID_NOPREFIX, |
| 5215 | .model_id = EON_EN25S10, |
| 5216 | .total_size = 128, |
| 5217 | .page_size = 256, |
| 5218 | /* OTP: 256B total; enter 0x3A */ |
| 5219 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5220 | .tested = TEST_UNTESTED, |
| 5221 | .probe = probe_spi_rdid, |
| 5222 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5223 | .block_erasers = |
| 5224 | { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5225 | { |
| 5226 | .eraseblocks = { {4 * 1024, 32} }, |
| 5227 | .block_erase = spi_block_erase_20, |
| 5228 | }, { |
| 5229 | .eraseblocks = { {32 * 1024, 4} }, |
| 5230 | .block_erase = spi_block_erase_52, |
| 5231 | }, { |
| 5232 | .eraseblocks = { {128 * 1024, 1} }, |
| 5233 | .block_erase = spi_block_erase_60, |
| 5234 | }, { |
| 5235 | .eraseblocks = { {128 * 1024, 1} }, |
| 5236 | .block_erase = spi_block_erase_c7, |
| 5237 | } |
| 5238 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5239 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5240 | .unlock = spi_disable_blockprotect, |
| 5241 | .write = spi_chip_write_256, |
| 5242 | .read = spi_chip_read, |
| 5243 | .voltage = {1650, 1950}, |
| 5244 | }, |
| 5245 | |
| 5246 | { |
| 5247 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5248 | .name = "EN25S16", |
| 5249 | .bustype = BUS_SPI, |
| 5250 | .manufacture_id = EON_ID_NOPREFIX, |
| 5251 | .model_id = EON_EN25S16, |
| 5252 | .total_size = 2048, |
| 5253 | .page_size = 256, |
| 5254 | /* OTP: 512B total; enter 0x3A */ |
| 5255 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 5256 | .tested = TEST_UNTESTED, |
| 5257 | .probe = probe_spi_rdid, |
| 5258 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5259 | .block_erasers = |
| 5260 | { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5261 | { |
| 5262 | .eraseblocks = { {4 * 1024, 512} }, |
| 5263 | .block_erase = spi_block_erase_20, |
| 5264 | }, { |
| 5265 | .eraseblocks = { {64 * 1024, 32} }, |
| 5266 | .block_erase = spi_block_erase_52, |
| 5267 | }, { |
| 5268 | .eraseblocks = { {32 * 1024, 64} }, |
| 5269 | .block_erase = spi_block_erase_d8, |
| 5270 | }, { |
| 5271 | .eraseblocks = { {2048 * 1024, 1} }, |
| 5272 | .block_erase = spi_block_erase_60, |
| 5273 | }, { |
| 5274 | .eraseblocks = { {2048 * 1024, 1} }, |
| 5275 | .block_erase = spi_block_erase_c7, |
| 5276 | } |
| 5277 | }, |
| 5278 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 5279 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5280 | .write = spi_chip_write_256, |
| 5281 | .read = spi_chip_read, |
| 5282 | .voltage = {1650, 1950}, |
| 5283 | }, |
| 5284 | |
| 5285 | { |
| 5286 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5287 | .name = "EN25S20", |
| 5288 | .bustype = BUS_SPI, |
| 5289 | .manufacture_id = EON_ID_NOPREFIX, |
| 5290 | .model_id = EON_EN25S20, |
| 5291 | .total_size = 256, |
| 5292 | .page_size = 256, |
| 5293 | /* OTP: 256B total; enter 0x3A */ |
| 5294 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5295 | .tested = TEST_UNTESTED, |
| 5296 | .probe = probe_spi_rdid, |
| 5297 | .probe_timing = TIMING_ZERO, |
| 5298 | .block_erasers = |
| 5299 | { |
| 5300 | { |
| 5301 | .eraseblocks = { {4 * 1024, 64} }, |
| 5302 | .block_erase = spi_block_erase_20, |
| 5303 | }, { |
| 5304 | .eraseblocks = { {64 * 1024, 4} }, |
| 5305 | .block_erase = spi_block_erase_d8, |
| 5306 | }, { |
| 5307 | .eraseblocks = { {256 * 1024, 1} }, |
| 5308 | .block_erase = spi_block_erase_60, |
| 5309 | }, { |
| 5310 | .eraseblocks = { {256 * 1024, 1} }, |
| 5311 | .block_erase = spi_block_erase_c7, |
| 5312 | } |
| 5313 | }, |
| 5314 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 5315 | .unlock = spi_disable_blockprotect, |
| 5316 | .write = spi_chip_write_256, |
| 5317 | .read = spi_chip_read, |
| 5318 | .voltage = {1650, 1950}, |
| 5319 | }, |
| 5320 | |
| 5321 | { |
| 5322 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5323 | .name = "EN25S32", |
| 5324 | .bustype = BUS_SPI, |
| 5325 | .manufacture_id = EON_ID_NOPREFIX, |
| 5326 | .model_id = EON_EN25S32, |
| 5327 | .total_size = 4096, |
| 5328 | .page_size = 256, |
| 5329 | /* OTP: 512B total; enter 0x3A */ |
| 5330 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 5331 | .tested = TEST_UNTESTED, |
| 5332 | .probe = probe_spi_rdid, |
| 5333 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5334 | .block_erasers = |
| 5335 | { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5336 | { |
| 5337 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5338 | .block_erase = spi_block_erase_20, |
| 5339 | }, { |
| 5340 | .eraseblocks = { {32 * 1024, 128} }, |
| 5341 | .block_erase = spi_block_erase_52, |
| 5342 | }, { |
| 5343 | .eraseblocks = { {64 * 1024, 64} }, |
| 5344 | .block_erase = spi_block_erase_d8, |
| 5345 | }, { |
| 5346 | .eraseblocks = { {4096 * 1024, 1} }, |
| 5347 | .block_erase = spi_block_erase_60, |
| 5348 | }, { |
| 5349 | .eraseblocks = { {4096 * 1024, 1} }, |
| 5350 | .block_erase = spi_block_erase_c7, |
| 5351 | } |
| 5352 | }, |
| 5353 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 5354 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5355 | .write = spi_chip_write_256, |
| 5356 | .read = spi_chip_read, |
| 5357 | .voltage = {1650, 1950}, |
| 5358 | }, |
| 5359 | |
| 5360 | { |
| 5361 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5362 | .name = "EN25S40", |
| 5363 | .bustype = BUS_SPI, |
| 5364 | .manufacture_id = EON_ID_NOPREFIX, |
| 5365 | .model_id = EON_EN25S40, |
| 5366 | .total_size = 512, |
| 5367 | .page_size = 256, |
| 5368 | /* OTP: 256B total; enter 0x3A */ |
| 5369 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5370 | .tested = TEST_OK_PREW, |
| 5371 | .probe = probe_spi_rdid, |
| 5372 | .probe_timing = TIMING_ZERO, |
| 5373 | .block_erasers = |
| 5374 | { |
| 5375 | { |
| 5376 | .eraseblocks = { {4 * 1024, 128} }, |
| 5377 | .block_erase = spi_block_erase_20, |
| 5378 | }, { |
| 5379 | .eraseblocks = { {64 * 1024, 8} }, |
| 5380 | .block_erase = spi_block_erase_d8, |
| 5381 | }, { |
| 5382 | .eraseblocks = { {512 * 1024, 1} }, |
| 5383 | .block_erase = spi_block_erase_60, |
| 5384 | }, { |
| 5385 | .eraseblocks = { {512 * 1024, 1} }, |
| 5386 | .block_erase = spi_block_erase_c7, |
| 5387 | } |
| 5388 | }, |
| 5389 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 5390 | .unlock = spi_disable_blockprotect, |
| 5391 | .write = spi_chip_write_256, |
| 5392 | .read = spi_chip_read, |
| 5393 | .voltage = {1650, 1950}, |
| 5394 | }, |
| 5395 | |
| 5396 | { |
| 5397 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5398 | .name = "EN25S64", |
| 5399 | .bustype = BUS_SPI, |
| 5400 | .manufacture_id = EON_ID_NOPREFIX, |
| 5401 | .model_id = EON_EN25S64, |
| 5402 | .total_size = 8192, |
| 5403 | .page_size = 256, |
| 5404 | /* OTP: 512B total; enter 0x3A */ |
| 5405 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Nikolai Artemiev | df889fa | 2021-03-23 17:10:45 +1100 | [diff] [blame] | 5406 | .tested = TEST_OK_PREW, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5407 | .probe = probe_spi_rdid, |
| 5408 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5409 | .block_erasers = |
| 5410 | { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5411 | { |
| 5412 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5413 | .block_erase = spi_block_erase_20, |
| 5414 | }, { |
| 5415 | .eraseblocks = { {64 * 1024, 128} }, |
| 5416 | .block_erase = spi_block_erase_d8, |
| 5417 | }, { |
| 5418 | .eraseblocks = { {8192 * 1024, 1} }, |
| 5419 | .block_erase = spi_block_erase_60, |
| 5420 | }, { |
| 5421 | .eraseblocks = { {8192 * 1024, 1} }, |
| 5422 | .block_erase = spi_block_erase_c7, |
| 5423 | } |
| 5424 | }, |
| 5425 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 5426 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5427 | .write = spi_chip_write_256, |
| 5428 | .read = spi_chip_read, |
| 5429 | .voltage = {1650, 1950}, |
| 5430 | }, |
| 5431 | |
| 5432 | { |
| 5433 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5434 | .name = "EN25S80", |
| 5435 | .bustype = BUS_SPI, |
| 5436 | .manufacture_id = EON_ID_NOPREFIX, |
| 5437 | .model_id = EON_EN25S80, |
| 5438 | .total_size = 1024, |
| 5439 | .page_size = 256, |
| 5440 | /* OTP: 256B total; enter 0x3A */ |
| 5441 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5442 | .tested = TEST_UNTESTED, |
| 5443 | .probe = probe_spi_rdid, |
| 5444 | .probe_timing = TIMING_ZERO, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5445 | .block_erasers = |
| 5446 | { |
| 5447 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5448 | .eraseblocks = { {4 * 1024, 256} }, |
| 5449 | .block_erase = spi_block_erase_20, |
| 5450 | }, { |
| 5451 | .eraseblocks = { {64 * 1024, 16} }, |
| 5452 | .block_erase = spi_block_erase_d8, |
| 5453 | }, { |
| 5454 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5455 | .block_erase = spi_block_erase_60, |
| 5456 | }, { |
| 5457 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5458 | .block_erase = spi_block_erase_c7, |
| 5459 | } |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5460 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5461 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 5462 | .unlock = spi_disable_blockprotect, |
| 5463 | .write = spi_chip_write_256, |
| 5464 | .read = spi_chip_read, |
| 5465 | .voltage = {1650, 1950}, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5466 | }, |
| 5467 | |
| 5468 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 5469 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5470 | .name = "EN29F002(A)(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5471 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5472 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5473 | .model_id = EON_EN29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5474 | .total_size = 256, |
| 5475 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5476 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Alan Green | 4362e62 | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 5477 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5478 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5479 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5480 | .block_erasers = |
| 5481 | { |
| 5482 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5483 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5484 | {16 * 1024, 1}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 5485 | {8 * 1024, 2}, |
| 5486 | {32 * 1024, 1}, |
| 5487 | {64 * 1024, 3}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5488 | }, |
| 5489 | .block_erase = erase_sector_jedec, |
| 5490 | }, { |
| 5491 | .eraseblocks = { {256 * 1024, 1} }, |
| 5492 | .block_erase = erase_chip_block_jedec, |
| 5493 | }, |
| 5494 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 5495 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5496 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5497 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5498 | }, |
| 5499 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5500 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 5501 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5502 | .name = "EN29F002(A)(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5503 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5504 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5505 | .model_id = EON_EN29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5506 | .total_size = 256, |
| 5507 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5508 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 5509 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5510 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5511 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5512 | .block_erasers = |
| 5513 | { |
| 5514 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5515 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5516 | {64 * 1024, 3}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 5517 | {32 * 1024, 1}, |
| 5518 | {8 * 1024, 2}, |
| 5519 | {16 * 1024, 1}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5520 | }, |
| 5521 | .block_erase = erase_sector_jedec, |
| 5522 | }, { |
| 5523 | .eraseblocks = { {256 * 1024, 1} }, |
| 5524 | .block_erase = erase_chip_block_jedec, |
| 5525 | }, |
| 5526 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 5527 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5528 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5529 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5530 | }, |
| 5531 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5532 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5533 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5534 | .name = "EN29F010", |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5535 | .bustype = BUS_PARALLEL, |
| 5536 | .manufacture_id = EON_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5537 | .model_id = EON_EN29F010, |
| 5538 | .total_size = 128, |
| 5539 | .page_size = 128, |
| 5540 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 5541 | .tested = TEST_OK_PRE, |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5542 | .probe = probe_jedec, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5543 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5544 | .block_erasers = |
| 5545 | { |
| 5546 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5547 | .eraseblocks = { {16 * 1024, 8} }, |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5548 | .block_erase = erase_sector_jedec, |
| 5549 | }, |
| 5550 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5551 | .eraseblocks = { {128 * 1024, 1} }, |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5552 | .block_erase = erase_chip_block_jedec, |
| 5553 | }, |
| 5554 | }, |
| 5555 | .write = write_jedec_1, |
| 5556 | .read = read_memmapped, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5557 | .voltage = {4500, 5500}, |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5558 | }, |
| 5559 | |
| 5560 | { |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 5561 | .vendor = "Eon", |
| 5562 | .name = "EN29GL064(A)B", |
| 5563 | .bustype = BUS_PARALLEL, |
| 5564 | .manufacture_id = EON_ID, |
| 5565 | .model_id = EON_EN29GL064B, |
| 5566 | .total_size = 8192, |
| 5567 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5568 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5569 | .tested = TEST_UNTESTED, |
| 5570 | .probe = probe_jedec_29gl, |
| 5571 | .probe_timing = TIMING_ZERO, |
| 5572 | .block_erasers = |
| 5573 | { |
| 5574 | { |
| 5575 | .eraseblocks = { |
| 5576 | {8 * 1024, 8}, |
| 5577 | {64 * 1024, 127}, |
| 5578 | }, |
| 5579 | .block_erase = erase_sector_jedec, |
| 5580 | }, { |
| 5581 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5582 | .block_erase = erase_chip_block_jedec, |
| 5583 | }, |
| 5584 | }, |
| 5585 | .write = write_jedec_1, |
| 5586 | .read = read_memmapped, |
| 5587 | .voltage = {2700, 3600}, |
| 5588 | }, |
| 5589 | |
| 5590 | { |
| 5591 | .vendor = "Eon", |
| 5592 | .name = "EN29GL064(A)T", |
| 5593 | .bustype = BUS_PARALLEL, |
| 5594 | .manufacture_id = EON_ID, |
| 5595 | .model_id = EON_EN29GL064T, |
| 5596 | .total_size = 8192, |
| 5597 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5598 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5599 | .tested = TEST_UNTESTED, |
| 5600 | .probe = probe_jedec_29gl, |
| 5601 | .probe_timing = TIMING_ZERO, |
| 5602 | .block_erasers = |
| 5603 | { |
| 5604 | { |
| 5605 | .eraseblocks = { |
| 5606 | {64 * 1024, 127}, |
| 5607 | {8 * 1024, 8}, |
| 5608 | }, |
| 5609 | .block_erase = erase_sector_jedec, |
| 5610 | }, { |
| 5611 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5612 | .block_erase = erase_chip_block_jedec, |
| 5613 | }, |
| 5614 | }, |
| 5615 | .write = write_jedec_1, |
| 5616 | .read = read_memmapped, |
| 5617 | .voltage = {2700, 3600}, |
| 5618 | }, |
| 5619 | |
| 5620 | { |
| 5621 | .vendor = "Eon", |
| 5622 | .name = "EN29GL064H/L", |
| 5623 | .bustype = BUS_PARALLEL, |
| 5624 | .manufacture_id = EON_ID, |
| 5625 | .model_id = EON_EN29GL064HL, |
| 5626 | .total_size = 8192, |
| 5627 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5628 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5629 | .tested = TEST_UNTESTED, |
| 5630 | .probe = probe_jedec_29gl, |
| 5631 | .probe_timing = TIMING_ZERO, |
| 5632 | .block_erasers = |
| 5633 | { |
| 5634 | { |
| 5635 | .eraseblocks = { {64 * 1024, 128} }, |
| 5636 | .block_erase = erase_sector_jedec, |
| 5637 | }, { |
| 5638 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5639 | .block_erase = erase_chip_block_jedec, |
| 5640 | }, |
| 5641 | }, |
| 5642 | .write = write_jedec_1, |
| 5643 | .read = read_memmapped, |
| 5644 | .voltage = {2700, 3600}, |
| 5645 | }, |
| 5646 | |
| 5647 | { |
| 5648 | .vendor = "Eon", |
| 5649 | .name = "EN29GL128", |
| 5650 | .bustype = BUS_PARALLEL, |
| 5651 | .manufacture_id = EON_ID, |
| 5652 | .model_id = EON_EN29GL128HL, |
| 5653 | .total_size = 16384, |
| 5654 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5655 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5656 | .tested = TEST_UNTESTED, |
| 5657 | .probe = probe_jedec_29gl, |
| 5658 | .probe_timing = TIMING_ZERO, |
| 5659 | .block_erasers = |
| 5660 | { |
| 5661 | { |
| 5662 | .eraseblocks = { {128 * 1024, 128} }, |
| 5663 | .block_erase = erase_sector_jedec, |
| 5664 | }, { |
| 5665 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 5666 | .block_erase = erase_chip_block_jedec, |
| 5667 | }, |
| 5668 | }, |
| 5669 | .write = write_jedec_1, |
| 5670 | .read = read_memmapped, |
| 5671 | .voltage = {2700, 3600}, |
| 5672 | }, |
| 5673 | |
| 5674 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5675 | .vendor = "Eon", |
| 5676 | .name = "EN29LV040(A)", |
| 5677 | .bustype = BUS_PARALLEL, |
| 5678 | .manufacture_id = EON_ID, |
| 5679 | .model_id = EON_EN29LV040, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5680 | .total_size = 512, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5681 | .page_size = 4 * 1024, |
| 5682 | .tested = TEST_OK_PREW, |
| 5683 | .probe = probe_jedec, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5684 | .probe_timing = TIMING_ZERO, |
| 5685 | .block_erasers = |
| 5686 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 5687 | { |
| 5688 | .eraseblocks = { {64 * 1024, 8} }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5689 | .block_erase = erase_sector_jedec, |
| 5690 | }, |
| 5691 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 5692 | .eraseblocks = { {512 * 1024, 1} }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5693 | .block_erase = erase_chip_block_jedec, |
| 5694 | }, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5695 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5696 | .write = write_jedec_1, |
| 5697 | .read = read_memmapped, |
| 5698 | .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] | 5699 | }, |
| 5700 | |
| 5701 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5702 | .vendor = "Eon", |
| 5703 | .name = "EN29LV640B", |
| 5704 | .bustype = BUS_PARALLEL, |
| 5705 | .manufacture_id = EON_ID, |
| 5706 | .model_id = EON_EN29LV640B, |
| 5707 | .total_size = 8192, |
| 5708 | .page_size = 8192, |
| 5709 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 5710 | .tested = TEST_OK_PREW, |
| 5711 | .probe = probe_en29lv640b, |
| 5712 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5713 | .block_erasers = |
| 5714 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 5715 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5716 | .eraseblocks = { |
| 5717 | {8 * 1024, 8}, |
| 5718 | {64 * 1024, 127}, |
| 5719 | }, |
| 5720 | .block_erase = erase_block_jedec, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 5721 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5722 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5723 | .block_erase = erase_chip_block_jedec, |
| 5724 | }, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5725 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5726 | .write = write_en29lv640b, |
| 5727 | .read = read_memmapped, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5728 | .voltage = {2700, 3600}, |
| 5729 | }, |
| 5730 | |
| 5731 | { |
Jakob Petersson | 0cf3e12 | 2019-02-18 01:55:43 +0100 | [diff] [blame] | 5732 | .vendor = "Fudan", |
| 5733 | .name = "FM25F005", |
| 5734 | .bustype = BUS_SPI, |
| 5735 | .manufacture_id = FUDAN_ID_NOPREFIX, |
| 5736 | .model_id = FUDAN_FM25F005, |
| 5737 | .total_size = 64, |
| 5738 | .page_size = 256, |
| 5739 | /* OTP: 256B total; enter 0x3A */ |
| 5740 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5741 | .tested = TEST_UNTESTED, |
| 5742 | .probe = probe_spi_rdid, |
| 5743 | .probe_timing = TIMING_ZERO, |
| 5744 | .block_erasers = { |
| 5745 | { |
| 5746 | .eraseblocks = { {4 * 1024, 16} }, |
| 5747 | .block_erase = spi_block_erase_20, |
| 5748 | }, { |
| 5749 | .eraseblocks = { {32 * 1024, 2} }, |
| 5750 | .block_erase = spi_block_erase_52, |
| 5751 | }, { |
| 5752 | .eraseblocks = { {64 * 1024, 1} }, |
| 5753 | .block_erase = spi_block_erase_d8, |
| 5754 | }, { |
| 5755 | .eraseblocks = { {64 * 1024, 1} }, |
| 5756 | .block_erase = spi_block_erase_60, |
| 5757 | }, { |
| 5758 | .eraseblocks = { {64 * 1024, 1} }, |
| 5759 | .block_erase = spi_block_erase_c7, |
| 5760 | } |
| 5761 | }, |
| 5762 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 5763 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 5764 | .write = spi_chip_write_256, |
| 5765 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 5766 | .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */ |
| 5767 | }, |
| 5768 | |
| 5769 | { |
| 5770 | .vendor = "Fudan", |
| 5771 | .name = "FM25F01", |
| 5772 | .bustype = BUS_SPI, |
| 5773 | .manufacture_id = FUDAN_ID_NOPREFIX, |
| 5774 | .model_id = FUDAN_FM25F01, |
| 5775 | .total_size = 128, |
| 5776 | .page_size = 256, |
| 5777 | /* OTP: 256B total; enter 0x3A */ |
| 5778 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5779 | .tested = TEST_UNTESTED, |
| 5780 | .probe = probe_spi_rdid, |
| 5781 | .probe_timing = TIMING_ZERO, |
| 5782 | .block_erasers = { |
| 5783 | { |
| 5784 | .eraseblocks = { {4 * 1024, 32} }, |
| 5785 | .block_erase = spi_block_erase_20, |
| 5786 | }, { |
| 5787 | .eraseblocks = { {32 * 1024, 4} }, |
| 5788 | .block_erase = spi_block_erase_52, |
| 5789 | }, { |
| 5790 | .eraseblocks = { {64 * 1024, 2} }, |
| 5791 | .block_erase = spi_block_erase_d8, |
| 5792 | }, { |
| 5793 | .eraseblocks = { {128 * 1024, 1} }, |
| 5794 | .block_erase = spi_block_erase_60, |
| 5795 | }, { |
| 5796 | .eraseblocks = { {128 * 1024, 1} }, |
| 5797 | .block_erase = spi_block_erase_c7, |
| 5798 | } |
| 5799 | }, |
| 5800 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 5801 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 5802 | .write = spi_chip_write_256, |
| 5803 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 5804 | .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */ |
| 5805 | }, |
| 5806 | |
| 5807 | { |
| 5808 | .vendor = "Fudan", |
| 5809 | .name = "FM25F02(A)", |
| 5810 | .bustype = BUS_SPI, |
| 5811 | .manufacture_id = FUDAN_ID_NOPREFIX, |
| 5812 | .model_id = FUDAN_FM25F02, |
| 5813 | .total_size = 256, |
| 5814 | .page_size = 256, |
| 5815 | /* OTP: 256B total; enter 0x3A, (A version only:) read ID 0x4B */ |
| 5816 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5817 | .tested = TEST_UNTESTED, |
| 5818 | .probe = probe_spi_rdid, |
| 5819 | .probe_timing = TIMING_ZERO, |
| 5820 | .block_erasers = { |
| 5821 | { |
| 5822 | .eraseblocks = { {4 * 1024, 64} }, |
| 5823 | .block_erase = spi_block_erase_20, |
| 5824 | }, { |
| 5825 | .eraseblocks = { {32 * 1024, 8} }, |
| 5826 | .block_erase = spi_block_erase_52, |
| 5827 | }, { |
| 5828 | .eraseblocks = { {64 * 1024, 4} }, |
| 5829 | .block_erase = spi_block_erase_d8, |
| 5830 | }, { |
| 5831 | .eraseblocks = { {1024 * 256, 1} }, |
| 5832 | .block_erase = spi_block_erase_60, |
| 5833 | }, { |
| 5834 | .eraseblocks = { {1024 * 256, 1} }, |
| 5835 | .block_erase = spi_block_erase_c7, |
| 5836 | }, |
| 5837 | }, |
| 5838 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 5839 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 5840 | .write = spi_chip_write_256, |
| 5841 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 5842 | .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */ |
| 5843 | }, |
| 5844 | |
| 5845 | { |
| 5846 | .vendor = "Fudan", |
| 5847 | .name = "FM25F04(A)", |
| 5848 | .bustype = BUS_SPI, |
| 5849 | .manufacture_id = FUDAN_ID_NOPREFIX, |
| 5850 | .model_id = FUDAN_FM25F04, |
| 5851 | .total_size = 512, |
| 5852 | .page_size = 256, |
| 5853 | /* OTP: 256B total; enter 0x3A, (A version only:) read ID 0x4B */ |
| 5854 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5855 | .tested = TEST_UNTESTED, |
| 5856 | .probe = probe_spi_rdid, |
| 5857 | .probe_timing = TIMING_ZERO, |
| 5858 | .block_erasers = { |
| 5859 | { |
| 5860 | .eraseblocks = { {4 * 1024, 128} }, |
| 5861 | .block_erase = spi_block_erase_20, |
| 5862 | }, { |
| 5863 | .eraseblocks = { {32 * 1024, 16} }, |
| 5864 | .block_erase = spi_block_erase_52, |
| 5865 | }, { |
| 5866 | .eraseblocks = { {64 * 1024, 8} }, |
| 5867 | .block_erase = spi_block_erase_d8, |
| 5868 | }, { |
| 5869 | .eraseblocks = { {1024 * 512, 1} }, |
| 5870 | .block_erase = spi_block_erase_60, |
| 5871 | }, { |
| 5872 | .eraseblocks = { {1024 * 512, 1} }, |
| 5873 | .block_erase = spi_block_erase_c7, |
| 5874 | }, |
| 5875 | }, |
| 5876 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 5877 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 5878 | .write = spi_chip_write_256, |
| 5879 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 5880 | .voltage = {2700, 3600}, |
| 5881 | }, |
| 5882 | |
| 5883 | { |
| 5884 | .vendor = "Fudan", |
| 5885 | .name = "FM25Q08", |
| 5886 | .bustype = BUS_SPI, |
| 5887 | .manufacture_id = FUDAN_ID_NOPREFIX, |
| 5888 | .model_id = FUDAN_FM25Q08, |
| 5889 | .total_size = 1024, |
| 5890 | .page_size = 256, |
| 5891 | /* supports SFDP */ |
| 5892 | /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 5893 | /* QPI enable 0x38, disable 0xFF */ |
| 5894 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 5895 | .tested = TEST_UNTESTED, |
| 5896 | .probe = probe_spi_rdid, |
| 5897 | .probe_timing = TIMING_ZERO, |
| 5898 | .block_erasers = { |
| 5899 | { |
| 5900 | .eraseblocks = { {4 * 1024, 256} }, |
| 5901 | .block_erase = spi_block_erase_20, |
| 5902 | }, { |
| 5903 | .eraseblocks = { {32 * 1024, 32} }, |
| 5904 | .block_erase = spi_block_erase_52, |
| 5905 | }, { |
| 5906 | .eraseblocks = { {64 * 1024, 16} }, |
| 5907 | .block_erase = spi_block_erase_d8, |
| 5908 | }, { |
| 5909 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5910 | .block_erase = spi_block_erase_60, |
| 5911 | }, { |
| 5912 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5913 | .block_erase = spi_block_erase_c7, |
| 5914 | }, |
| 5915 | }, |
| 5916 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */ |
| 5917 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 5918 | .write = spi_chip_write_256, |
| 5919 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5920 | .voltage = {2700, 3600}, |
| 5921 | }, |
| 5922 | |
| 5923 | { |
| 5924 | .vendor = "Fudan", |
| 5925 | .name = "FM25Q16", |
| 5926 | .bustype = BUS_SPI, |
| 5927 | .manufacture_id = FUDAN_ID_NOPREFIX, |
| 5928 | .model_id = FUDAN_FM25Q16, |
| 5929 | .total_size = 2048, |
| 5930 | .page_size = 256, |
| 5931 | /* supports SFDP */ |
| 5932 | /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 5933 | /* QPI enable 0x38, disable 0xFF */ |
| 5934 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 5935 | .tested = TEST_UNTESTED, |
| 5936 | .probe = probe_spi_rdid, |
| 5937 | .probe_timing = TIMING_ZERO, |
| 5938 | .block_erasers = { |
| 5939 | { |
| 5940 | .eraseblocks = { {4 * 1024, 512} }, |
| 5941 | .block_erase = spi_block_erase_20, |
| 5942 | }, { |
| 5943 | .eraseblocks = { {32 * 1024, 64} }, |
| 5944 | .block_erase = spi_block_erase_52, |
| 5945 | }, { |
| 5946 | .eraseblocks = { {64 * 1024, 32} }, |
| 5947 | .block_erase = spi_block_erase_d8, |
| 5948 | }, { |
| 5949 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5950 | .block_erase = spi_block_erase_60, |
| 5951 | }, { |
| 5952 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5953 | .block_erase = spi_block_erase_c7, |
| 5954 | } |
| 5955 | }, |
| 5956 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */ |
| 5957 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 5958 | .write = spi_chip_write_256, |
| 5959 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5960 | .voltage = {2700, 3600}, |
| 5961 | }, |
| 5962 | |
| 5963 | { |
| 5964 | .vendor = "Fudan", |
| 5965 | .name = "FM25Q32", |
| 5966 | .bustype = BUS_SPI, |
| 5967 | .manufacture_id = FUDAN_ID_NOPREFIX, |
| 5968 | .model_id = FUDAN_FM25Q32, |
| 5969 | .total_size = 4096, |
| 5970 | .page_size = 256, |
| 5971 | /* supports SFDP */ |
| 5972 | /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 5973 | /* QPI enable 0x38, disable 0xFF */ |
| 5974 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 5975 | .tested = TEST_UNTESTED, |
| 5976 | .probe = probe_spi_rdid, |
| 5977 | .probe_timing = TIMING_ZERO, |
| 5978 | .block_erasers = { |
| 5979 | { |
| 5980 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5981 | .block_erase = spi_block_erase_20, |
| 5982 | }, { |
| 5983 | .eraseblocks = { {32 * 1024, 128} }, |
| 5984 | .block_erase = spi_block_erase_52, |
| 5985 | }, { |
| 5986 | .eraseblocks = { {64 * 1024, 64} }, |
| 5987 | .block_erase = spi_block_erase_d8, |
| 5988 | }, { |
| 5989 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5990 | .block_erase = spi_block_erase_60, |
| 5991 | }, { |
| 5992 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5993 | .block_erase = spi_block_erase_c7, |
| 5994 | }, |
| 5995 | }, |
| 5996 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */ |
| 5997 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 5998 | .write = spi_chip_write_256, |
| 5999 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6000 | .voltage = {2700, 3600}, |
| 6001 | }, |
| 6002 | |
| 6003 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6004 | .vendor = "Fujitsu", |
| 6005 | .name = "MBM29F004BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6006 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6007 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6008 | .model_id = FUJITSU_MBM29F004BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6009 | .total_size = 512, |
| 6010 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6011 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6012 | .tested = TEST_UNTESTED, |
| 6013 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6014 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6015 | .block_erasers = |
| 6016 | { |
| 6017 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6018 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6019 | {16 * 1024, 1}, |
| 6020 | {8 * 1024, 2}, |
| 6021 | {32 * 1024, 1}, |
| 6022 | {64 * 1024, 7}, |
| 6023 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6024 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6025 | }, { |
| 6026 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6027 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6028 | }, |
| 6029 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6030 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6031 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6032 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6033 | }, |
| 6034 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6035 | { |
| 6036 | .vendor = "Fujitsu", |
| 6037 | .name = "MBM29F004TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6038 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6039 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6040 | .model_id = FUJITSU_MBM29F004TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6041 | .total_size = 512, |
| 6042 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6043 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6044 | .tested = TEST_UNTESTED, |
| 6045 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6046 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6047 | .block_erasers = |
| 6048 | { |
| 6049 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6050 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6051 | {64 * 1024, 7}, |
| 6052 | {32 * 1024, 1}, |
| 6053 | {8 * 1024, 2}, |
| 6054 | {16 * 1024, 1}, |
| 6055 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6056 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6057 | }, { |
| 6058 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6059 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6060 | }, |
| 6061 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6062 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6063 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6064 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6065 | }, |
| 6066 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6067 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6068 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6069 | .vendor = "Fujitsu", |
| 6070 | .name = "MBM29F400BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6071 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6072 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6073 | .model_id = FUJITSU_MBM29F400BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6074 | .total_size = 512, |
| 6075 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6076 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 6077 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6078 | .probe = probe_jedec, |
| 6079 | .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] | 6080 | .block_erasers = |
| 6081 | { |
| 6082 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6083 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6084 | {16 * 1024, 1}, |
| 6085 | {8 * 1024, 2}, |
| 6086 | {32 * 1024, 1}, |
| 6087 | {64 * 1024, 7}, |
| 6088 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6089 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6090 | }, { |
| 6091 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6092 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6093 | }, |
| 6094 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6095 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6096 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6097 | .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] | 6098 | }, |
| 6099 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6100 | { |
| 6101 | .vendor = "Fujitsu", |
| 6102 | .name = "MBM29F400TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6103 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6104 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6105 | .model_id = FUJITSU_MBM29F400TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6106 | .total_size = 512, |
| 6107 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6108 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6109 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6110 | .probe = probe_jedec, |
| 6111 | .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] | 6112 | .block_erasers = |
| 6113 | { |
| 6114 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6115 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6116 | {64 * 1024, 7}, |
| 6117 | {32 * 1024, 1}, |
| 6118 | {8 * 1024, 2}, |
| 6119 | {16 * 1024, 1}, |
| 6120 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6121 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6122 | }, { |
| 6123 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6124 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6125 | }, |
| 6126 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6127 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6128 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6129 | .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] | 6130 | }, |
| 6131 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6132 | { |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6133 | .vendor = "Fujitsu", |
| 6134 | .name = "MBM29LV160BE", |
| 6135 | .bustype = BUS_PARALLEL, |
| 6136 | .manufacture_id = FUJITSU_ID, |
| 6137 | .model_id = FUJITSU_MBM29LV160BE, |
| 6138 | .total_size = 2 * 1024, |
| 6139 | .page_size = 0, |
| 6140 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET, |
| 6141 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6142 | .probe = probe_jedec, |
| 6143 | .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] | 6144 | .block_erasers = |
| 6145 | { |
| 6146 | { |
| 6147 | .eraseblocks = { |
| 6148 | {16 * 1024, 1}, |
| 6149 | {8 * 1024, 2}, |
| 6150 | {32 * 1024, 1}, |
| 6151 | {64 * 1024, 31}, |
| 6152 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6153 | .block_erase = erase_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6154 | }, { |
| 6155 | .eraseblocks = { {2048 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6156 | .block_erase = erase_chip_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6157 | }, |
| 6158 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6159 | .write = write_jedec_1, /* Supports a fast mode too */ |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6160 | .read = read_memmapped, |
| 6161 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */ |
| 6162 | }, |
| 6163 | |
| 6164 | { |
| 6165 | .vendor = "Fujitsu", |
| 6166 | .name = "MBM29LV160TE", |
| 6167 | .bustype = BUS_PARALLEL, |
| 6168 | .manufacture_id = FUJITSU_ID, |
| 6169 | .model_id = FUJITSU_MBM29LV160TE, |
| 6170 | .total_size = 2 * 1024, |
| 6171 | .page_size = 0, |
| 6172 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET, |
| 6173 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6174 | .probe = probe_jedec, |
| 6175 | .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] | 6176 | .block_erasers = |
| 6177 | { |
| 6178 | { |
| 6179 | .eraseblocks = { |
| 6180 | {64 * 1024, 31}, |
| 6181 | {32 * 1024, 1}, |
| 6182 | {8 * 1024, 2}, |
| 6183 | {16 * 1024, 1}, |
| 6184 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6185 | .block_erase = erase_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6186 | }, { |
| 6187 | .eraseblocks = { {2048 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6188 | .block_erase = erase_chip_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6189 | }, |
| 6190 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6191 | .write = write_jedec_1, /* Supports a fast mode too */ |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6192 | .read = read_memmapped, |
| 6193 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */ |
| 6194 | }, |
| 6195 | |
| 6196 | { |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6197 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6198 | .name = "GD25B128B/GD25Q128B", |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6199 | .bustype = BUS_SPI, |
| 6200 | .manufacture_id = GIGADEVICE_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6201 | .model_id = GIGADEVICE_GD25Q128, |
| 6202 | .total_size = 16384, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6203 | .page_size = 256, |
| 6204 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 6205 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6206 | .tested = TEST_OK_PREW, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6207 | .probe = probe_spi_rdid, |
| 6208 | .probe_timing = TIMING_ZERO, |
| 6209 | .block_erasers = |
| 6210 | { |
| 6211 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6212 | .eraseblocks = { {4 * 1024, 4096} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6213 | .block_erase = spi_block_erase_20, |
| 6214 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6215 | .eraseblocks = { {32 * 1024, 512} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6216 | .block_erase = spi_block_erase_52, |
| 6217 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6218 | .eraseblocks = { {64 * 1024, 256} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6219 | .block_erase = spi_block_erase_d8, |
| 6220 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6221 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6222 | .block_erase = spi_block_erase_60, |
| 6223 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6224 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6225 | .block_erase = spi_block_erase_c7, |
| 6226 | } |
| 6227 | }, |
| 6228 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6229 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6230 | .write = spi_chip_write_256, |
| 6231 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6232 | .voltage = {2700, 3600}, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6233 | }, |
| 6234 | |
| 6235 | { |
| 6236 | .vendor = "GigaDevice", |
Alan Green | 188127e | 2019-08-06 16:10:34 +1000 | [diff] [blame] | 6237 | .name = "GD25LQ128C/GD25LQ128D", |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6238 | .bustype = BUS_SPI, |
| 6239 | .manufacture_id = GIGADEVICE_ID, |
Alan Green | 188127e | 2019-08-06 16:10:34 +1000 | [diff] [blame] | 6240 | .model_id = GIGADEVICE_GD25LQ128CD, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6241 | .total_size = 16384, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6242 | .page_size = 256, |
| 6243 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 6244 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Alan Green | 813a7e2 | 2021-01-08 08:48:17 +1100 | [diff] [blame] | 6245 | .tested = TEST_OK_PREW, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6246 | .probe = probe_spi_rdid, |
| 6247 | .probe_timing = TIMING_ZERO, |
| 6248 | .block_erasers = |
| 6249 | { |
| 6250 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6251 | .eraseblocks = { {4 * 1024, 4096} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6252 | .block_erase = spi_block_erase_20, |
| 6253 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6254 | .eraseblocks = { {32 * 1024, 512} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6255 | .block_erase = spi_block_erase_52, |
| 6256 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6257 | .eraseblocks = { {64 * 1024, 256} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6258 | .block_erase = spi_block_erase_d8, |
| 6259 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6260 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6261 | .block_erase = spi_block_erase_60, |
| 6262 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6263 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6264 | .block_erase = spi_block_erase_c7, |
| 6265 | } |
| 6266 | }, |
| 6267 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6268 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6269 | .write = spi_chip_write_256, |
| 6270 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6271 | .voltage = {1695, 1950}, |
| 6272 | }, |
| 6273 | |
| 6274 | { |
| 6275 | .vendor = "GigaDevice", |
| 6276 | .name = "GD25LQ16", |
| 6277 | .bustype = BUS_SPI, |
| 6278 | .manufacture_id = GIGADEVICE_ID, |
| 6279 | .model_id = GIGADEVICE_GD25LQ16, |
| 6280 | .total_size = 2048, |
| 6281 | .page_size = 256, |
| 6282 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 6283 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6284 | .tested = TEST_UNTESTED, |
| 6285 | .probe = probe_spi_rdid, |
| 6286 | .probe_timing = TIMING_ZERO, |
| 6287 | .block_erasers = |
| 6288 | { |
| 6289 | { |
| 6290 | .eraseblocks = { {4 * 1024, 512} }, |
| 6291 | .block_erase = spi_block_erase_20, |
| 6292 | }, { |
| 6293 | .eraseblocks = { {32 * 1024, 64} }, |
| 6294 | .block_erase = spi_block_erase_52, |
| 6295 | }, { |
| 6296 | .eraseblocks = { {64 * 1024, 32} }, |
| 6297 | .block_erase = spi_block_erase_d8, |
| 6298 | }, { |
| 6299 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6300 | .block_erase = spi_block_erase_60, |
| 6301 | }, { |
| 6302 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6303 | .block_erase = spi_block_erase_c7, |
| 6304 | } |
| 6305 | }, |
| 6306 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6307 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6308 | .write = spi_chip_write_256, |
| 6309 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6310 | .voltage = {1695, 1950}, |
| 6311 | }, |
| 6312 | |
| 6313 | { |
| 6314 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6315 | .name = "GD25LQ32", |
| 6316 | .bustype = BUS_SPI, |
| 6317 | .manufacture_id = GIGADEVICE_ID, |
| 6318 | .model_id = GIGADEVICE_GD25LQ32, |
| 6319 | .total_size = 4096, |
| 6320 | .page_size = 256, |
| 6321 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 6322 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6323 | .tested = TEST_OK_PREW, |
| 6324 | .probe = probe_spi_rdid, |
| 6325 | .probe_timing = TIMING_ZERO, |
| 6326 | .block_erasers = |
| 6327 | { |
| 6328 | { |
| 6329 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6330 | .block_erase = spi_block_erase_20, |
| 6331 | }, { |
| 6332 | .eraseblocks = { {32 * 1024, 128} }, |
| 6333 | .block_erase = spi_block_erase_52, |
| 6334 | }, { |
| 6335 | .eraseblocks = { {64 * 1024, 64} }, |
| 6336 | .block_erase = spi_block_erase_d8, |
| 6337 | }, { |
| 6338 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6339 | .block_erase = spi_block_erase_60, |
| 6340 | }, { |
| 6341 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6342 | .block_erase = spi_block_erase_c7, |
| 6343 | } |
| 6344 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6345 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6346 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6347 | .write = spi_chip_write_256, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6348 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6349 | .voltage = {1695, 1950}, |
| 6350 | }, |
| 6351 | |
| 6352 | { |
| 6353 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6354 | .name = "GD25LQ40", |
| 6355 | .bustype = BUS_SPI, |
| 6356 | .manufacture_id = GIGADEVICE_ID, |
| 6357 | .model_id = GIGADEVICE_GD25LQ40, |
| 6358 | .total_size = 512, |
| 6359 | .page_size = 256, |
| 6360 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 6361 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6362 | .tested = TEST_UNTESTED, |
| 6363 | .probe = probe_spi_rdid, |
| 6364 | .probe_timing = TIMING_ZERO, |
| 6365 | .block_erasers = |
| 6366 | { |
| 6367 | { |
| 6368 | .eraseblocks = { {4 * 1024, 128} }, |
| 6369 | .block_erase = spi_block_erase_20, |
| 6370 | }, { |
| 6371 | .eraseblocks = { {32 * 1024, 16} }, |
| 6372 | .block_erase = spi_block_erase_52, |
| 6373 | }, { |
| 6374 | .eraseblocks = { {64 * 1024, 8} }, |
| 6375 | .block_erase = spi_block_erase_d8, |
| 6376 | }, { |
| 6377 | .eraseblocks = { {512 * 1024, 1} }, |
| 6378 | .block_erase = spi_block_erase_60, |
| 6379 | }, { |
| 6380 | .eraseblocks = { {512 * 1024, 1} }, |
| 6381 | .block_erase = spi_block_erase_c7, |
| 6382 | } |
| 6383 | }, |
| 6384 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6385 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6386 | .write = spi_chip_write_256, |
| 6387 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6388 | .voltage = {1695, 1950}, |
| 6389 | }, |
| 6390 | |
| 6391 | { |
| 6392 | .vendor = "GigaDevice", |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6393 | .name = "GD25LQ64(B)", |
| 6394 | .bustype = BUS_SPI, |
| 6395 | .manufacture_id = GIGADEVICE_ID, |
| 6396 | .model_id = GIGADEVICE_GD25LQ64, |
| 6397 | .total_size = 8192, |
| 6398 | .page_size = 256, |
| 6399 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 6400 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 6401 | .tested = TEST_OK_PREW, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6402 | .probe = probe_spi_rdid, |
| 6403 | .probe_timing = TIMING_ZERO, |
| 6404 | .block_erasers = |
| 6405 | { |
| 6406 | { |
| 6407 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6408 | .block_erase = spi_block_erase_20, |
| 6409 | }, { |
| 6410 | .eraseblocks = { {32 * 1024, 256} }, |
| 6411 | .block_erase = spi_block_erase_52, |
| 6412 | }, { |
| 6413 | .eraseblocks = { {64 * 1024, 128} }, |
| 6414 | .block_erase = spi_block_erase_d8, |
| 6415 | }, { |
| 6416 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6417 | .block_erase = spi_block_erase_60, |
| 6418 | }, { |
| 6419 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6420 | .block_erase = spi_block_erase_c7, |
| 6421 | } |
| 6422 | }, |
| 6423 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6424 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6425 | .write = spi_chip_write_256, |
| 6426 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6427 | .voltage = {1695, 1950}, |
| 6428 | }, |
| 6429 | |
| 6430 | { |
| 6431 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6432 | .name = "GD25LQ80", |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6433 | .bustype = BUS_SPI, |
| 6434 | .manufacture_id = GIGADEVICE_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6435 | .model_id = GIGADEVICE_GD25LQ80, |
| 6436 | .total_size = 1024, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6437 | .page_size = 256, |
| 6438 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 6439 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6440 | .tested = TEST_UNTESTED, |
| 6441 | .probe = probe_spi_rdid, |
| 6442 | .probe_timing = TIMING_ZERO, |
| 6443 | .block_erasers = |
| 6444 | { |
| 6445 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6446 | .eraseblocks = { {4 * 1024, 256} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6447 | .block_erase = spi_block_erase_20, |
| 6448 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6449 | .eraseblocks = { {32 * 1024, 32} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6450 | .block_erase = spi_block_erase_52, |
| 6451 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6452 | .eraseblocks = { {64 * 1024, 16} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6453 | .block_erase = spi_block_erase_d8, |
| 6454 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6455 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6456 | .block_erase = spi_block_erase_60, |
| 6457 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6458 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6459 | .block_erase = spi_block_erase_c7, |
| 6460 | } |
| 6461 | }, |
| 6462 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6463 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6464 | .write = spi_chip_write_256, |
| 6465 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6466 | .voltage = {1695, 1950}, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6467 | }, |
| 6468 | |
| 6469 | { |
| 6470 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6471 | .name = "GD25Q10", |
| 6472 | .bustype = BUS_SPI, |
| 6473 | .manufacture_id = GIGADEVICE_ID, |
| 6474 | .model_id = GIGADEVICE_GD25Q10, |
| 6475 | .total_size = 128, |
| 6476 | .page_size = 256, |
| 6477 | .feature_bits = FEATURE_WRSR_WREN, |
| 6478 | .tested = TEST_UNTESTED, |
| 6479 | .probe = probe_spi_rdid, |
| 6480 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 6481 | .block_erasers = |
| 6482 | { |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6483 | { |
| 6484 | .eraseblocks = { {4 * 1024, 32} }, |
| 6485 | .block_erase = spi_block_erase_20, |
| 6486 | }, { |
| 6487 | .eraseblocks = { {32 * 1024, 4} }, |
| 6488 | .block_erase = spi_block_erase_52, |
| 6489 | }, { |
| 6490 | .eraseblocks = { {64 * 1024, 2} }, |
| 6491 | .block_erase = spi_block_erase_d8, |
| 6492 | }, { |
| 6493 | .eraseblocks = { {128 * 1024, 1} }, |
| 6494 | .block_erase = spi_block_erase_60, |
| 6495 | }, { |
| 6496 | .eraseblocks = { {128 * 1024, 1} }, |
| 6497 | .block_erase = spi_block_erase_c7, |
| 6498 | } |
| 6499 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6500 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6501 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6502 | .write = spi_chip_write_256, |
| 6503 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6504 | .voltage = {2700, 3600}, |
| 6505 | }, |
| 6506 | |
| 6507 | { |
| 6508 | .vendor = "GigaDevice", |
Alan Green | 4f00912 | 2019-08-26 10:45:18 +1000 | [diff] [blame] | 6509 | .name = "GD25Q127C/GD25Q128C", |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6510 | .bustype = BUS_SPI, |
| 6511 | .manufacture_id = GIGADEVICE_ID, |
| 6512 | .model_id = GIGADEVICE_GD25Q128, |
| 6513 | .total_size = 16384, |
| 6514 | .page_size = 256, |
| 6515 | /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */ |
| 6516 | /* QPI: enable 0x38, disable 0xFF */ |
| 6517 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Angel Pons | bce364c | 2018-09-30 20:04:14 +0200 | [diff] [blame] | 6518 | .tested = TEST_OK_PREW, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6519 | .probe = probe_spi_rdid, |
| 6520 | .probe_timing = TIMING_ZERO, |
| 6521 | .block_erasers = |
| 6522 | { |
| 6523 | { |
| 6524 | .eraseblocks = { {4 * 1024, 4096} }, |
| 6525 | .block_erase = spi_block_erase_20, |
| 6526 | }, { |
| 6527 | .eraseblocks = { {32 * 1024, 512} }, |
| 6528 | .block_erase = spi_block_erase_52, |
| 6529 | }, { |
| 6530 | .eraseblocks = { {64 * 1024, 256} }, |
| 6531 | .block_erase = spi_block_erase_d8, |
| 6532 | }, { |
| 6533 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6534 | .block_erase = spi_block_erase_60, |
| 6535 | }, { |
| 6536 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6537 | .block_erase = spi_block_erase_c7, |
| 6538 | } |
| 6539 | }, |
| 6540 | /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */ |
| 6541 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6542 | .unlock = spi_disable_blockprotect_bp4_srwd, |
| 6543 | .write = spi_chip_write_256, |
| 6544 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6545 | .voltage = {2700, 3600}, |
| 6546 | }, |
| 6547 | |
| 6548 | { |
| 6549 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6550 | .name = "GD25Q16(B)", |
| 6551 | .bustype = BUS_SPI, |
| 6552 | .manufacture_id = GIGADEVICE_ID, |
| 6553 | .model_id = GIGADEVICE_GD25Q16, |
| 6554 | .total_size = 2048, |
| 6555 | .page_size = 256, |
| 6556 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */ |
| 6557 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6558 | .tested = TEST_OK_PREW, |
| 6559 | .probe = probe_spi_rdid, |
| 6560 | .probe_timing = TIMING_ZERO, |
| 6561 | .block_erasers = |
| 6562 | { |
| 6563 | { |
| 6564 | .eraseblocks = { {4 * 1024, 512} }, |
| 6565 | .block_erase = spi_block_erase_20, |
| 6566 | }, { |
| 6567 | .eraseblocks = { {32 * 1024, 64} }, |
| 6568 | .block_erase = spi_block_erase_52, |
| 6569 | }, { |
| 6570 | .eraseblocks = { {64 * 1024, 32} }, |
| 6571 | .block_erase = spi_block_erase_d8, |
| 6572 | }, { |
| 6573 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6574 | .block_erase = spi_block_erase_60, |
| 6575 | }, { |
| 6576 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6577 | .block_erase = spi_block_erase_c7, |
| 6578 | } |
| 6579 | }, |
| 6580 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6581 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6582 | .write = spi_chip_write_256, |
| 6583 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6584 | .voltage = {2700, 3600}, |
| 6585 | }, |
| 6586 | |
| 6587 | { |
| 6588 | .vendor = "GigaDevice", |
| 6589 | .name = "GD25Q20(B)", |
| 6590 | .bustype = BUS_SPI, |
| 6591 | .manufacture_id = GIGADEVICE_ID, |
| 6592 | .model_id = GIGADEVICE_GD25Q20, |
| 6593 | .total_size = 256, |
| 6594 | .page_size = 256, |
| 6595 | .feature_bits = FEATURE_WRSR_WREN, |
| 6596 | .tested = TEST_OK_PREW, |
| 6597 | .probe = probe_spi_rdid, |
| 6598 | .probe_timing = TIMING_ZERO, |
| 6599 | .block_erasers = |
| 6600 | { |
| 6601 | { |
| 6602 | .eraseblocks = { {4 * 1024, 64} }, |
| 6603 | .block_erase = spi_block_erase_20, |
| 6604 | }, { |
| 6605 | .eraseblocks = { {32 * 1024, 8} }, |
| 6606 | .block_erase = spi_block_erase_52, |
| 6607 | }, { |
| 6608 | .eraseblocks = { {64 * 1024, 4} }, |
| 6609 | .block_erase = spi_block_erase_d8, |
| 6610 | }, { |
| 6611 | .eraseblocks = { {256 * 1024, 1} }, |
| 6612 | .block_erase = spi_block_erase_60, |
| 6613 | }, { |
| 6614 | .eraseblocks = { {256 * 1024, 1} }, |
| 6615 | .block_erase = spi_block_erase_c7, |
| 6616 | } |
| 6617 | }, |
| 6618 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6619 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6620 | .write = spi_chip_write_256, |
| 6621 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6622 | .voltage = {2700, 3600}, |
| 6623 | }, |
| 6624 | |
| 6625 | { |
| 6626 | .vendor = "GigaDevice", |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 6627 | .name = "GD25Q256D", |
| 6628 | .bustype = BUS_SPI, |
| 6629 | .manufacture_id = GIGADEVICE_ID, |
| 6630 | .model_id = GIGADEVICE_GD25Q256D, |
| 6631 | .total_size = 32768, |
| 6632 | .page_size = 256, |
| 6633 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
Nikolai Artemiev | e64ef6d | 2021-03-23 17:15:40 +1100 | [diff] [blame] | 6634 | .tested = TEST_OK_PREW, |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 6635 | .probe = probe_spi_rdid, |
| 6636 | .probe_timing = TIMING_ZERO, |
| 6637 | .block_erasers = |
| 6638 | { |
| 6639 | { |
| 6640 | .eraseblocks = { {4 * 1024, 8192} }, |
Nico Huber | 5374dc3 | 2019-10-04 16:16:15 +0200 | [diff] [blame] | 6641 | .block_erase = spi_block_erase_21, |
| 6642 | }, { |
| 6643 | .eraseblocks = { {4 * 1024, 8192} }, |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 6644 | .block_erase = spi_block_erase_20, |
| 6645 | }, { |
| 6646 | .eraseblocks = { {32 * 1024, 1024} }, |
Nico Huber | 5374dc3 | 2019-10-04 16:16:15 +0200 | [diff] [blame] | 6647 | .block_erase = spi_block_erase_5c, |
| 6648 | }, { |
| 6649 | .eraseblocks = { {32 * 1024, 1024} }, |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 6650 | .block_erase = spi_block_erase_52, |
| 6651 | }, { |
| 6652 | .eraseblocks = { {64 * 1024, 512} }, |
Nico Huber | 5374dc3 | 2019-10-04 16:16:15 +0200 | [diff] [blame] | 6653 | .block_erase = spi_block_erase_dc, |
| 6654 | }, { |
| 6655 | .eraseblocks = { {64 * 1024, 512} }, |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 6656 | .block_erase = spi_block_erase_d8, |
| 6657 | }, { |
| 6658 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 6659 | .block_erase = spi_block_erase_60, |
| 6660 | }, { |
| 6661 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 6662 | .block_erase = spi_block_erase_c7, |
| 6663 | } |
| 6664 | }, |
| 6665 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 6666 | .unlock = spi_disable_blockprotect, |
| 6667 | .write = spi_chip_write_256, |
| 6668 | .read = spi_chip_read, |
| 6669 | .voltage = {2700, 3600}, |
| 6670 | }, |
| 6671 | |
| 6672 | { |
| 6673 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6674 | .name = "GD25Q32(B)", |
| 6675 | .bustype = BUS_SPI, |
| 6676 | .manufacture_id = GIGADEVICE_ID, |
| 6677 | .model_id = GIGADEVICE_GD25Q32, |
| 6678 | .total_size = 4096, |
| 6679 | .page_size = 256, |
| 6680 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 6681 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6682 | .tested = TEST_OK_PREW, |
| 6683 | .probe = probe_spi_rdid, |
| 6684 | .probe_timing = TIMING_ZERO, |
| 6685 | .block_erasers = |
| 6686 | { |
| 6687 | { |
| 6688 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6689 | .block_erase = spi_block_erase_20, |
| 6690 | }, { |
| 6691 | .eraseblocks = { {32 * 1024, 128} }, |
| 6692 | .block_erase = spi_block_erase_52, |
| 6693 | }, { |
| 6694 | .eraseblocks = { {64 * 1024, 64} }, |
| 6695 | .block_erase = spi_block_erase_d8, |
| 6696 | }, { |
| 6697 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6698 | .block_erase = spi_block_erase_60, |
| 6699 | }, { |
| 6700 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6701 | .block_erase = spi_block_erase_c7, |
| 6702 | } |
| 6703 | }, |
| 6704 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6705 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6706 | .write = spi_chip_write_256, |
| 6707 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6708 | .voltage = {2700, 3600}, |
| 6709 | }, |
| 6710 | |
| 6711 | { |
| 6712 | .vendor = "GigaDevice", |
| 6713 | .name = "GD25Q40(B)", |
| 6714 | .bustype = BUS_SPI, |
| 6715 | .manufacture_id = GIGADEVICE_ID, |
| 6716 | .model_id = GIGADEVICE_GD25Q40, |
| 6717 | .total_size = 512, |
| 6718 | .page_size = 256, |
| 6719 | .feature_bits = FEATURE_WRSR_WREN, |
| 6720 | .tested = TEST_UNTESTED, |
| 6721 | .probe = probe_spi_rdid, |
| 6722 | .probe_timing = TIMING_ZERO, |
| 6723 | .block_erasers = |
| 6724 | { |
| 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 | } |
| 6741 | }, |
| 6742 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 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 = {2700, 3600}, |
| 6747 | }, |
| 6748 | |
| 6749 | { |
| 6750 | .vendor = "GigaDevice", |
| 6751 | .name = "GD25Q512", |
| 6752 | .bustype = BUS_SPI, |
| 6753 | .manufacture_id = GIGADEVICE_ID, |
| 6754 | .model_id = GIGADEVICE_GD25Q512, |
| 6755 | .total_size = 64, |
| 6756 | .page_size = 256, |
| 6757 | .feature_bits = FEATURE_WRSR_WREN, |
| 6758 | .tested = TEST_OK_PREW, |
| 6759 | .probe = probe_spi_rdid, |
| 6760 | .probe_timing = TIMING_ZERO, |
| 6761 | .block_erasers = |
| 6762 | { |
| 6763 | { |
| 6764 | .eraseblocks = { {4 * 1024, 16} }, |
| 6765 | .block_erase = spi_block_erase_20, |
| 6766 | }, { |
| 6767 | .eraseblocks = { {32 * 1024, 2} }, |
| 6768 | .block_erase = spi_block_erase_52, |
| 6769 | }, { |
| 6770 | .eraseblocks = { {64 * 1024, 1} }, |
| 6771 | .block_erase = spi_block_erase_60, |
| 6772 | }, { |
| 6773 | .eraseblocks = { {64 * 1024, 1} }, |
| 6774 | .block_erase = spi_block_erase_c7, |
| 6775 | } |
| 6776 | }, |
| 6777 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6778 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6779 | .write = spi_chip_write_256, |
| 6780 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6781 | .voltage = {2700, 3600}, |
| 6782 | }, |
| 6783 | |
| 6784 | { |
| 6785 | .vendor = "GigaDevice", |
| 6786 | .name = "GD25Q64(B)", |
| 6787 | .bustype = BUS_SPI, |
| 6788 | .manufacture_id = GIGADEVICE_ID, |
| 6789 | .model_id = GIGADEVICE_GD25Q64, |
| 6790 | .total_size = 8192, |
| 6791 | .page_size = 256, |
| 6792 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 6793 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6794 | .tested = TEST_OK_PREW, |
| 6795 | .probe = probe_spi_rdid, |
| 6796 | .probe_timing = TIMING_ZERO, |
| 6797 | .block_erasers = |
| 6798 | { |
| 6799 | { |
| 6800 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6801 | .block_erase = spi_block_erase_20, |
| 6802 | }, { |
| 6803 | .eraseblocks = { {32 * 1024, 256} }, |
| 6804 | .block_erase = spi_block_erase_52, |
| 6805 | }, { |
| 6806 | .eraseblocks = { {64 * 1024, 128} }, |
| 6807 | .block_erase = spi_block_erase_d8, |
| 6808 | }, { |
| 6809 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6810 | .block_erase = spi_block_erase_60, |
| 6811 | }, { |
| 6812 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6813 | .block_erase = spi_block_erase_c7, |
| 6814 | } |
| 6815 | }, |
| 6816 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6817 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6818 | .write = spi_chip_write_256, |
| 6819 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6820 | .voltage = {2700, 3600}, |
| 6821 | }, |
| 6822 | |
| 6823 | { |
| 6824 | .vendor = "GigaDevice", |
| 6825 | .name = "GD25Q80(B)", |
| 6826 | .bustype = BUS_SPI, |
| 6827 | .manufacture_id = GIGADEVICE_ID, |
| 6828 | .model_id = GIGADEVICE_GD25Q80, |
| 6829 | .total_size = 1024, |
| 6830 | .page_size = 256, |
| 6831 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */ |
| 6832 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6833 | .tested = TEST_OK_PREW, |
| 6834 | .probe = probe_spi_rdid, |
| 6835 | .probe_timing = TIMING_ZERO, |
| 6836 | .block_erasers = |
| 6837 | { |
| 6838 | { |
| 6839 | .eraseblocks = { {4 * 1024, 256} }, |
| 6840 | .block_erase = spi_block_erase_20, |
| 6841 | }, { |
| 6842 | .eraseblocks = { {32 * 1024, 32} }, |
| 6843 | .block_erase = spi_block_erase_52, |
| 6844 | }, { |
| 6845 | .eraseblocks = { {64 * 1024, 16} }, |
| 6846 | .block_erase = spi_block_erase_d8, |
| 6847 | }, { |
| 6848 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6849 | .block_erase = spi_block_erase_60, |
| 6850 | }, { |
| 6851 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6852 | .block_erase = spi_block_erase_c7, |
| 6853 | } |
| 6854 | }, |
| 6855 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6856 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6857 | .write = spi_chip_write_256, |
| 6858 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6859 | .voltage = {2700, 3600}, |
| 6860 | }, |
| 6861 | |
| 6862 | { |
| 6863 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6864 | .name = "GD25T80", |
| 6865 | .bustype = BUS_SPI, |
| 6866 | .manufacture_id = GIGADEVICE_ID, |
| 6867 | .model_id = GIGADEVICE_GD25T80, |
| 6868 | .total_size = 1024, |
| 6869 | .page_size = 256, |
| 6870 | /* OTP: 256B total; enter 0x3A */ |
| 6871 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6872 | .tested = TEST_UNTESTED, |
| 6873 | .probe = probe_spi_rdid, |
| 6874 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 6875 | .block_erasers = |
| 6876 | { |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6877 | { |
| 6878 | .eraseblocks = { {4 * 1024, 256} }, |
| 6879 | .block_erase = spi_block_erase_20, |
| 6880 | }, { |
| 6881 | .eraseblocks = { {64 * 1024, 16} }, |
| 6882 | .block_erase = spi_block_erase_52, |
| 6883 | }, { |
| 6884 | .eraseblocks = { {64 * 1024, 16} }, |
| 6885 | .block_erase = spi_block_erase_d8, |
| 6886 | }, { |
| 6887 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6888 | .block_erase = spi_block_erase_60, |
| 6889 | }, { |
| 6890 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6891 | .block_erase = spi_block_erase_c7, |
| 6892 | } |
| 6893 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 6894 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6895 | .unlock = spi_disable_blockprotect, |
| 6896 | .write = spi_chip_write_256, |
| 6897 | .read = spi_chip_read, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6898 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6899 | }, |
| 6900 | |
| 6901 | { |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6902 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6903 | .name = "GD25VQ16C", |
| 6904 | .bustype = BUS_SPI, |
| 6905 | .manufacture_id = GIGADEVICE_ID, |
| 6906 | .model_id = GIGADEVICE_GD25VQ16C, |
| 6907 | .total_size = 2 * 1024, |
| 6908 | .page_size = 256, |
| 6909 | /* Supports SFDP */ |
| 6910 | /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */ |
| 6911 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6912 | .tested = TEST_UNTESTED, |
| 6913 | .probe = probe_spi_rdid, |
| 6914 | .probe_timing = TIMING_ZERO, |
| 6915 | .block_erasers = |
| 6916 | { |
| 6917 | { |
| 6918 | .eraseblocks = { { 4 * 1024, 512} }, |
| 6919 | .block_erase = spi_block_erase_20, |
| 6920 | }, { |
| 6921 | .eraseblocks = { { 32 * 1024, 64} }, |
| 6922 | .block_erase = spi_block_erase_52, |
| 6923 | }, { |
| 6924 | .eraseblocks = { { 64 * 1024, 32} }, |
| 6925 | .block_erase = spi_block_erase_d8, |
| 6926 | }, { |
| 6927 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6928 | .block_erase = spi_block_erase_60, |
| 6929 | }, { |
| 6930 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6931 | .block_erase = spi_block_erase_c7, |
| 6932 | } |
| 6933 | }, |
| 6934 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6935 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6936 | .write = spi_chip_write_256, |
| 6937 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6938 | .voltage = {2300, 3600}, |
| 6939 | }, |
| 6940 | |
| 6941 | { |
| 6942 | .vendor = "GigaDevice", |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 6943 | .name = "GD25VQ21B", |
| 6944 | .bustype = BUS_SPI, |
| 6945 | .manufacture_id = GIGADEVICE_ID, |
| 6946 | .model_id = GIGADEVICE_GD25VQ21B, |
| 6947 | .total_size = 256, |
| 6948 | .page_size = 256, |
| 6949 | /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */ |
| 6950 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6951 | .tested = TEST_UNTESTED, |
| 6952 | .probe = probe_spi_rdid, |
| 6953 | .probe_timing = TIMING_ZERO, |
| 6954 | .block_erasers = |
| 6955 | { |
| 6956 | { |
| 6957 | .eraseblocks = { { 4 * 1024, 64} }, |
| 6958 | .block_erase = spi_block_erase_20, |
| 6959 | }, { |
| 6960 | .eraseblocks = { { 32 * 1024, 8} }, |
| 6961 | .block_erase = spi_block_erase_52, |
| 6962 | }, { |
| 6963 | .eraseblocks = { { 64 * 1024, 4} }, |
| 6964 | .block_erase = spi_block_erase_d8, |
| 6965 | }, { |
| 6966 | .eraseblocks = { {256 * 1024, 1} }, |
| 6967 | .block_erase = spi_block_erase_60, |
| 6968 | }, { |
| 6969 | .eraseblocks = { {256 * 1024, 1} }, |
| 6970 | .block_erase = spi_block_erase_c7, |
| 6971 | } |
| 6972 | }, |
| 6973 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6974 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6975 | .write = spi_chip_write_256, |
| 6976 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6977 | .voltage = {2300, 3600}, |
| 6978 | }, |
| 6979 | |
| 6980 | { |
| 6981 | .vendor = "GigaDevice", |
| 6982 | .name = "GD25VQ40C", |
| 6983 | .bustype = BUS_SPI, |
| 6984 | .manufacture_id = GIGADEVICE_ID, |
| 6985 | .model_id = GIGADEVICE_GD25VQ41B, |
| 6986 | .total_size = 512, |
| 6987 | .page_size = 256, |
| 6988 | /* Supports SFDP */ |
| 6989 | /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */ |
| 6990 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6991 | .tested = TEST_UNTESTED, |
| 6992 | .probe = probe_spi_rdid, |
| 6993 | .probe_timing = TIMING_ZERO, |
| 6994 | .block_erasers = |
| 6995 | { |
| 6996 | { |
| 6997 | .eraseblocks = { { 4 * 1024, 128} }, |
| 6998 | .block_erase = spi_block_erase_20, |
| 6999 | }, { |
| 7000 | .eraseblocks = { { 32 * 1024, 16} }, |
| 7001 | .block_erase = spi_block_erase_52, |
| 7002 | }, { |
| 7003 | .eraseblocks = { { 64 * 1024, 8} }, |
| 7004 | .block_erase = spi_block_erase_d8, |
| 7005 | }, { |
| 7006 | .eraseblocks = { {512 * 1024, 1} }, |
| 7007 | .block_erase = spi_block_erase_60, |
| 7008 | }, { |
| 7009 | .eraseblocks = { {512 * 1024, 1} }, |
| 7010 | .block_erase = spi_block_erase_c7, |
| 7011 | } |
| 7012 | }, |
| 7013 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7014 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7015 | .write = spi_chip_write_256, |
| 7016 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7017 | .voltage = {2300, 3600}, |
| 7018 | }, |
| 7019 | |
| 7020 | { |
| 7021 | .vendor = "GigaDevice", |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 7022 | .name = "GD25VQ41B", |
| 7023 | .bustype = BUS_SPI, |
| 7024 | .manufacture_id = GIGADEVICE_ID, |
| 7025 | .model_id = GIGADEVICE_GD25VQ41B, |
| 7026 | .total_size = 512, |
| 7027 | .page_size = 256, |
| 7028 | /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */ |
| 7029 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 7030 | .tested = TEST_OK_PREW, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 7031 | .probe = probe_spi_rdid, |
| 7032 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 7033 | .block_erasers = |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 7034 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 7035 | { |
| 7036 | .eraseblocks = { { 4 * 1024, 128} }, |
| 7037 | .block_erase = spi_block_erase_20, |
| 7038 | }, { |
| 7039 | .eraseblocks = { { 32 * 1024, 16} }, |
| 7040 | .block_erase = spi_block_erase_52, |
| 7041 | }, { |
| 7042 | .eraseblocks = { { 64 * 1024, 8} }, |
| 7043 | .block_erase = spi_block_erase_d8, |
| 7044 | }, { |
| 7045 | .eraseblocks = { {512 * 1024, 1} }, |
| 7046 | .block_erase = spi_block_erase_60, |
| 7047 | }, { |
| 7048 | .eraseblocks = { {512 * 1024, 1} }, |
| 7049 | .block_erase = spi_block_erase_c7, |
| 7050 | } |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 7051 | }, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 7052 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7053 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7054 | .write = spi_chip_write_256, |
| 7055 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7056 | .voltage = {2300, 3600}, |
| 7057 | }, |
| 7058 | |
| 7059 | { |
| 7060 | .vendor = "GigaDevice", |
| 7061 | .name = "GD25VQ80C", |
| 7062 | .bustype = BUS_SPI, |
| 7063 | .manufacture_id = GIGADEVICE_ID, |
| 7064 | .model_id = GIGADEVICE_GD25VQ80C, |
| 7065 | .total_size = 1024, |
| 7066 | .page_size = 256, |
| 7067 | /* Supports SFDP */ |
| 7068 | /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */ |
| 7069 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 7070 | .tested = TEST_UNTESTED, |
| 7071 | .probe = probe_spi_rdid, |
| 7072 | .probe_timing = TIMING_ZERO, |
| 7073 | .block_erasers = |
| 7074 | { |
| 7075 | { |
| 7076 | .eraseblocks = { { 4 * 1024, 256} }, |
| 7077 | .block_erase = spi_block_erase_20, |
| 7078 | }, { |
| 7079 | .eraseblocks = { { 32 * 1024, 32} }, |
| 7080 | .block_erase = spi_block_erase_52, |
| 7081 | }, { |
| 7082 | .eraseblocks = { { 64 * 1024, 16} }, |
| 7083 | .block_erase = spi_block_erase_d8, |
| 7084 | }, { |
| 7085 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7086 | .block_erase = spi_block_erase_60, |
| 7087 | }, { |
| 7088 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7089 | .block_erase = spi_block_erase_c7, |
| 7090 | } |
| 7091 | }, |
| 7092 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7093 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7094 | .write = spi_chip_write_256, |
| 7095 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7096 | .voltage = {2300, 3600}, |
| 7097 | }, |
| 7098 | |
| 7099 | { |
Dino Li | 3214f58 | 2020-03-25 17:39:53 +0800 | [diff] [blame] | 7100 | .vendor = "GigaDevice", |
| 7101 | .name = "GD25WQ80E", |
| 7102 | .bustype = BUS_SPI, |
| 7103 | .manufacture_id = GIGADEVICE_ID, |
| 7104 | .model_id = GIGADEVICE_GD25WQ80E, |
| 7105 | .total_size = 1024, |
| 7106 | .page_size = 256, |
| 7107 | .feature_bits = FEATURE_WRSR_WREN, |
| 7108 | .tested = TEST_OK_PREW, |
| 7109 | .probe = probe_spi_rdid, |
| 7110 | .probe_timing = TIMING_ZERO, |
| 7111 | .block_erasers = |
| 7112 | { |
| 7113 | { |
| 7114 | .eraseblocks = { {4 * 1024, 256} }, |
| 7115 | .block_erase = spi_block_erase_20, |
| 7116 | }, { |
| 7117 | .eraseblocks = { {32 * 1024, 32} }, |
| 7118 | .block_erase = spi_block_erase_52, |
| 7119 | }, { |
| 7120 | .eraseblocks = { {64 * 1024, 16} }, |
| 7121 | .block_erase = spi_block_erase_d8, |
| 7122 | }, { |
| 7123 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 7124 | .block_erase = spi_block_erase_60, |
| 7125 | }, { |
| 7126 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 7127 | .block_erase = spi_block_erase_c7, |
| 7128 | } |
| 7129 | }, |
| 7130 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7131 | .unlock = spi_disable_blockprotect_bp4_srwd, |
| 7132 | .write = spi_chip_write_256, |
| 7133 | .read = spi_chip_read, |
| 7134 | .voltage = {1650, 3600}, |
| 7135 | }, |
| 7136 | |
| 7137 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7138 | .vendor = "Hyundai", |
| 7139 | .name = "HY29F002B", |
| 7140 | .bustype = BUS_PARALLEL, |
| 7141 | .manufacture_id = HYUNDAI_ID, |
| 7142 | .model_id = HYUNDAI_HY29F002B, |
| 7143 | .total_size = 256, |
| 7144 | .page_size = 256 * 1024, |
| 7145 | .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */ |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7146 | .tested = TEST_UNTESTED, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7147 | .probe = probe_jedec, |
| 7148 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7149 | .block_erasers = |
| 7150 | { |
| 7151 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7152 | .eraseblocks = { |
| 7153 | {16 * 1024, 1}, |
| 7154 | {8 * 1024, 2}, |
| 7155 | {32 * 1024, 1}, |
| 7156 | {64 * 1024, 3}, |
| 7157 | }, |
| 7158 | .block_erase = erase_sector_jedec, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7159 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7160 | .eraseblocks = { {256 * 1024, 1} }, |
| 7161 | .block_erase = erase_chip_block_jedec, |
| 7162 | }, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7163 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7164 | .write = write_jedec_1, |
| 7165 | .read = read_memmapped, |
| 7166 | .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] | 7167 | }, |
| 7168 | |
| 7169 | { |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 7170 | .vendor = "Hyundai", |
| 7171 | .name = "HY29F002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7172 | .bustype = BUS_PARALLEL, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 7173 | .manufacture_id = HYUNDAI_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7174 | .model_id = HYUNDAI_HY29F002T, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 7175 | .total_size = 256, |
| 7176 | .page_size = 256 * 1024, |
| 7177 | .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] | 7178 | .tested = TEST_OK_PRE, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 7179 | .probe = probe_jedec, |
| 7180 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7181 | .block_erasers = |
| 7182 | { |
| 7183 | { |
| 7184 | .eraseblocks = { |
| 7185 | {64 * 1024, 3}, |
| 7186 | {32 * 1024, 1}, |
| 7187 | {8 * 1024, 2}, |
| 7188 | {16 * 1024, 1}, |
| 7189 | }, |
| 7190 | .block_erase = erase_sector_jedec, |
| 7191 | }, { |
| 7192 | .eraseblocks = { {256 * 1024, 1} }, |
| 7193 | .block_erase = erase_chip_block_jedec, |
| 7194 | }, |
| 7195 | }, |
| 7196 | .write = write_jedec_1, |
| 7197 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 7198 | .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] | 7199 | }, |
| 7200 | |
| 7201 | { |
| 7202 | .vendor = "Hyundai", |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 7203 | .name = "HY29F040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7204 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 7205 | .manufacture_id = HYUNDAI_ID, |
| 7206 | .model_id = HYUNDAI_HY29F040A, |
| 7207 | .total_size = 512, |
| 7208 | .page_size = 64 * 1024, |
| 7209 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 7210 | .tested = TEST_UNTESTED, |
| 7211 | .probe = probe_jedec, |
| 7212 | .probe_timing = TIMING_ZERO, |
| 7213 | .block_erasers = |
| 7214 | { |
| 7215 | { |
| 7216 | .eraseblocks = { {64 * 1024, 8} }, |
| 7217 | .block_erase = erase_sector_jedec, |
| 7218 | }, { |
| 7219 | .eraseblocks = { {512 * 1024, 1} }, |
| 7220 | .block_erase = erase_chip_block_jedec, |
| 7221 | }, |
| 7222 | }, |
| 7223 | .write = write_jedec_1, |
| 7224 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 7225 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 7226 | }, |
| 7227 | |
| 7228 | { |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 7229 | .vendor = "ISSI", |
Angel Pons | 2ef47f3 | 2018-09-30 16:47:30 +0200 | [diff] [blame] | 7230 | .name = "IS25LP064", |
| 7231 | .bustype = BUS_SPI, |
| 7232 | .manufacture_id = ISSI_ID_SPI, |
| 7233 | .model_id = ISSI_IS25LP064, |
| 7234 | .total_size = 8192, |
| 7235 | .page_size = 256, |
| 7236 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 7237 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7238 | .tested = TEST_UNTESTED, |
| 7239 | .probe = probe_spi_rdid, |
| 7240 | .probe_timing = TIMING_ZERO, |
| 7241 | .block_erasers = |
| 7242 | { |
| 7243 | { |
| 7244 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7245 | .block_erase = spi_block_erase_20, |
| 7246 | }, { |
| 7247 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7248 | .block_erase = spi_block_erase_d7, |
| 7249 | }, { |
| 7250 | .eraseblocks = { {32 * 1024, 256} }, |
| 7251 | .block_erase = spi_block_erase_52, |
| 7252 | }, { |
| 7253 | .eraseblocks = { {64 * 1024, 128} }, |
| 7254 | .block_erase = spi_block_erase_d8, |
| 7255 | }, { |
| 7256 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7257 | .block_erase = spi_block_erase_60, |
| 7258 | }, { |
| 7259 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7260 | .block_erase = spi_block_erase_c7, |
| 7261 | } |
| 7262 | }, |
| 7263 | .unlock = spi_disable_blockprotect, |
| 7264 | .write = spi_chip_write_256, |
| 7265 | .read = spi_chip_read, |
| 7266 | .voltage = {2300, 3600}, |
| 7267 | }, |
| 7268 | |
| 7269 | { |
| 7270 | .vendor = "ISSI", |
David Hendricks | 3083ed9 | 2017-05-02 13:25:56 -0700 | [diff] [blame] | 7271 | .name = "IS25LP128", |
| 7272 | .bustype = BUS_SPI, |
| 7273 | .manufacture_id = ISSI_ID_SPI, |
| 7274 | .model_id = ISSI_IS25LP128, |
| 7275 | .total_size = 16384, |
| 7276 | .page_size = 256, |
| 7277 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 7278 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7279 | .tested = TEST_OK_PREW, |
| 7280 | .probe = probe_spi_rdid, |
| 7281 | .probe_timing = TIMING_ZERO, |
| 7282 | .block_erasers = |
| 7283 | { |
| 7284 | { |
| 7285 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7286 | .block_erase = spi_block_erase_20, |
| 7287 | }, { |
| 7288 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7289 | .block_erase = spi_block_erase_d7, |
| 7290 | }, { |
| 7291 | .eraseblocks = { {32 * 1024, 512} }, |
| 7292 | .block_erase = spi_block_erase_52, |
| 7293 | }, { |
| 7294 | .eraseblocks = { {64 * 1024, 256} }, |
| 7295 | .block_erase = spi_block_erase_d8, |
| 7296 | }, { |
| 7297 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7298 | .block_erase = spi_block_erase_60, |
| 7299 | }, { |
| 7300 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7301 | .block_erase = spi_block_erase_c7, |
| 7302 | } |
| 7303 | }, |
| 7304 | .unlock = spi_disable_blockprotect, |
| 7305 | .write = spi_chip_write_256, |
| 7306 | .read = spi_chip_read, |
| 7307 | .voltage = {2300, 3600}, |
| 7308 | }, |
| 7309 | |
| 7310 | { |
| 7311 | .vendor = "ISSI", |
David Hendricks | 61818dc | 2018-10-28 01:02:21 +0000 | [diff] [blame] | 7312 | .name = "IS25LP256", |
| 7313 | .bustype = BUS_SPI, |
| 7314 | .manufacture_id = ISSI_ID_SPI, |
| 7315 | .model_id = ISSI_IS25LP256, |
| 7316 | .total_size = 32768, |
| 7317 | .page_size = 256, |
| 7318 | /* supports SFDP */ |
| 7319 | /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */ |
| 7320 | /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */ |
| 7321 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7, |
| 7322 | .tested = TEST_OK_PREW, |
| 7323 | .probe = probe_spi_rdid, |
| 7324 | .probe_timing = TIMING_ZERO, |
| 7325 | .block_erasers = |
| 7326 | { |
| 7327 | { |
| 7328 | .eraseblocks = { {4 * 1024, 8192} }, |
| 7329 | .block_erase = spi_block_erase_21, |
| 7330 | }, { |
| 7331 | .eraseblocks = { {4 * 1024, 8192} }, |
| 7332 | .block_erase = spi_block_erase_20, |
| 7333 | /* could also use spi_block_erase_d7 */ |
| 7334 | }, { |
| 7335 | .eraseblocks = { {32 * 1024, 1024} }, |
| 7336 | .block_erase = spi_block_erase_5c, |
| 7337 | }, { |
| 7338 | .eraseblocks = { {32 * 1024, 1024} }, |
| 7339 | .block_erase = spi_block_erase_52, |
| 7340 | }, { |
| 7341 | .eraseblocks = { {64 * 1024, 512} }, |
| 7342 | .block_erase = spi_block_erase_dc, |
| 7343 | }, { |
| 7344 | .eraseblocks = { {64 * 1024, 512} }, |
| 7345 | .block_erase = spi_block_erase_d8, |
| 7346 | }, { |
| 7347 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 7348 | .block_erase = spi_block_erase_60, |
| 7349 | }, { |
| 7350 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 7351 | .block_erase = spi_block_erase_c7, |
| 7352 | } |
| 7353 | }, |
| 7354 | .unlock = spi_disable_blockprotect, |
| 7355 | .write = spi_chip_write_256, |
| 7356 | .read = spi_chip_read, |
| 7357 | .voltage = {2300, 3600}, |
| 7358 | }, |
| 7359 | |
| 7360 | { |
| 7361 | .vendor = "ISSI", |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 7362 | .name = "IS25WP032", |
| 7363 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 7364 | .manufacture_id = ISSI_ID_SPI, |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 7365 | .model_id = ISSI_IS25WP032, |
| 7366 | .total_size = 4096, |
| 7367 | .page_size = 256, |
| 7368 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 7369 | /* QPI enable 0x35, disable 0xF5 */ |
| 7370 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 7371 | .tested = TEST_UNTESTED, |
| 7372 | .probe = probe_spi_rdid, |
| 7373 | .probe_timing = TIMING_ZERO, |
| 7374 | .block_erasers = |
| 7375 | { |
| 7376 | { |
| 7377 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7378 | .block_erase = spi_block_erase_20, |
| 7379 | }, { |
| 7380 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7381 | .block_erase = spi_block_erase_d7, |
| 7382 | }, { |
| 7383 | .eraseblocks = { {32 * 1024, 128} }, |
| 7384 | .block_erase = spi_block_erase_52, |
| 7385 | }, { |
| 7386 | .eraseblocks = { {64 * 1024, 64} }, |
| 7387 | .block_erase = spi_block_erase_d8, |
| 7388 | }, { |
| 7389 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7390 | .block_erase = spi_block_erase_60, |
| 7391 | }, { |
| 7392 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7393 | .block_erase = spi_block_erase_c7, |
| 7394 | } |
| 7395 | }, |
| 7396 | .unlock = spi_disable_blockprotect, |
| 7397 | .write = spi_chip_write_256, |
| 7398 | .read = spi_chip_read, |
| 7399 | .voltage = {1650, 1950}, |
| 7400 | }, |
| 7401 | |
| 7402 | { |
| 7403 | .vendor = "ISSI", |
| 7404 | .name = "IS25WP064", |
| 7405 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 7406 | .manufacture_id = ISSI_ID_SPI, |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 7407 | .model_id = ISSI_IS25WP064, |
| 7408 | .total_size = 8192, |
| 7409 | .page_size = 256, |
| 7410 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 7411 | /* QPI enable 0x35, disable 0xF5 */ |
| 7412 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 7413 | .tested = TEST_OK_PREW, |
| 7414 | .probe = probe_spi_rdid, |
| 7415 | .probe_timing = TIMING_ZERO, |
| 7416 | .block_erasers = |
| 7417 | { |
| 7418 | { |
| 7419 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7420 | .block_erase = spi_block_erase_20, |
| 7421 | }, { |
| 7422 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7423 | .block_erase = spi_block_erase_d7, |
| 7424 | }, { |
| 7425 | .eraseblocks = { {32 * 1024, 256} }, |
| 7426 | .block_erase = spi_block_erase_52, |
| 7427 | }, { |
| 7428 | .eraseblocks = { {64 * 1024, 128} }, |
| 7429 | .block_erase = spi_block_erase_d8, |
| 7430 | }, { |
| 7431 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7432 | .block_erase = spi_block_erase_60, |
| 7433 | }, { |
| 7434 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7435 | .block_erase = spi_block_erase_c7, |
| 7436 | } |
| 7437 | }, |
| 7438 | .unlock = spi_disable_blockprotect, |
| 7439 | .write = spi_chip_write_256, |
| 7440 | .read = spi_chip_read, |
| 7441 | .voltage = {1650, 1950}, |
| 7442 | }, |
| 7443 | |
| 7444 | { |
| 7445 | .vendor = "ISSI", |
David Hendricks | 3083ed9 | 2017-05-02 13:25:56 -0700 | [diff] [blame] | 7446 | .name = "IS25WP128", |
| 7447 | .bustype = BUS_SPI, |
| 7448 | .manufacture_id = ISSI_ID_SPI, |
| 7449 | .model_id = ISSI_IS25WP128, |
| 7450 | .total_size = 16384, |
| 7451 | .page_size = 256, |
| 7452 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 7453 | /* QPI enable 0x35, disable 0xF5 */ |
| 7454 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
David Hendricks | 3083ed9 | 2017-05-02 13:25:56 -0700 | [diff] [blame] | 7455 | .tested = TEST_OK_PREW, |
| 7456 | .probe = probe_spi_rdid, |
| 7457 | .probe_timing = TIMING_ZERO, |
| 7458 | .block_erasers = |
| 7459 | { |
| 7460 | { |
| 7461 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7462 | .block_erase = spi_block_erase_20, |
| 7463 | }, { |
| 7464 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7465 | .block_erase = spi_block_erase_d7, |
| 7466 | }, { |
| 7467 | .eraseblocks = { {32 * 1024, 512} }, |
| 7468 | .block_erase = spi_block_erase_52, |
| 7469 | }, { |
| 7470 | .eraseblocks = { {64 * 1024, 256} }, |
| 7471 | .block_erase = spi_block_erase_d8, |
| 7472 | }, { |
| 7473 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7474 | .block_erase = spi_block_erase_60, |
| 7475 | }, { |
| 7476 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7477 | .block_erase = spi_block_erase_c7, |
| 7478 | } |
| 7479 | }, |
| 7480 | .unlock = spi_disable_blockprotect, |
| 7481 | .write = spi_chip_write_256, |
| 7482 | .read = spi_chip_read, |
| 7483 | .voltage = {1650, 1950}, |
| 7484 | }, |
| 7485 | |
| 7486 | { |
| 7487 | .vendor = "ISSI", |
David Hendricks | 61818dc | 2018-10-28 01:02:21 +0000 | [diff] [blame] | 7488 | .name = "IS25WP256", |
| 7489 | .bustype = BUS_SPI, |
| 7490 | .manufacture_id = ISSI_ID_SPI, |
| 7491 | .model_id = ISSI_IS25WP256, |
| 7492 | .total_size = 32768, |
| 7493 | .page_size = 256, |
| 7494 | /* supports SFDP */ |
| 7495 | /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */ |
| 7496 | /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */ |
| 7497 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7, |
| 7498 | .tested = TEST_OK_PREW, |
| 7499 | .probe = probe_spi_rdid, |
| 7500 | .probe_timing = TIMING_ZERO, |
| 7501 | .block_erasers = |
| 7502 | { |
| 7503 | { |
| 7504 | .eraseblocks = { {4 * 1024, 8192} }, |
| 7505 | .block_erase = spi_block_erase_21, |
| 7506 | }, { |
| 7507 | .eraseblocks = { {4 * 1024, 8192} }, |
| 7508 | .block_erase = spi_block_erase_20, |
| 7509 | /* could also use spi_block_erase_d7 */ |
| 7510 | }, { |
| 7511 | .eraseblocks = { {32 * 1024, 1024} }, |
| 7512 | .block_erase = spi_block_erase_5c, |
| 7513 | }, { |
| 7514 | .eraseblocks = { {32 * 1024, 1024} }, |
| 7515 | .block_erase = spi_block_erase_52, |
| 7516 | }, { |
| 7517 | .eraseblocks = { {64 * 1024, 512} }, |
| 7518 | .block_erase = spi_block_erase_dc, |
| 7519 | }, { |
| 7520 | .eraseblocks = { {64 * 1024, 512} }, |
| 7521 | .block_erase = spi_block_erase_d8, |
| 7522 | }, { |
| 7523 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 7524 | .block_erase = spi_block_erase_60, |
| 7525 | }, { |
| 7526 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 7527 | .block_erase = spi_block_erase_c7, |
| 7528 | } |
| 7529 | }, |
| 7530 | .unlock = spi_disable_blockprotect, |
| 7531 | .write = spi_chip_write_256, |
| 7532 | .read = spi_chip_read, |
| 7533 | .voltage = {1650, 1950}, |
| 7534 | }, |
| 7535 | |
| 7536 | { |
| 7537 | .vendor = "ISSI", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 7538 | .name = "IS29GL064B", |
| 7539 | .bustype = BUS_PARALLEL, |
| 7540 | .manufacture_id = ISSI_ID, |
| 7541 | .model_id = ISSI_PMC_IS29GL064B, |
| 7542 | .total_size = 8192, |
| 7543 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7544 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7545 | .tested = TEST_UNTESTED, |
| 7546 | .probe = probe_jedec_29gl, |
| 7547 | .probe_timing = TIMING_ZERO, |
| 7548 | .block_erasers = |
| 7549 | { |
| 7550 | { |
| 7551 | .eraseblocks = { |
| 7552 | {8 * 1024, 8}, |
| 7553 | {64 * 1024, 127}, |
| 7554 | }, |
| 7555 | .block_erase = erase_sector_jedec, |
| 7556 | }, { |
| 7557 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7558 | .block_erase = erase_chip_block_jedec, |
| 7559 | }, |
| 7560 | }, |
| 7561 | .write = write_jedec_1, |
| 7562 | .read = read_memmapped, |
| 7563 | .voltage = {2700, 3600}, |
| 7564 | }, |
| 7565 | |
| 7566 | { |
| 7567 | .vendor = "ISSI", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7568 | .name = "IS29GL064H/L", |
| 7569 | .bustype = BUS_PARALLEL, |
| 7570 | .manufacture_id = ISSI_ID, |
| 7571 | .model_id = ISSI_PMC_IS29GL064HL, |
| 7572 | .total_size = 8192, |
| 7573 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7574 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7575 | .tested = TEST_UNTESTED, |
| 7576 | .probe = probe_jedec_29gl, |
| 7577 | .probe_timing = TIMING_ZERO, |
| 7578 | .block_erasers = |
| 7579 | { |
| 7580 | { |
| 7581 | .eraseblocks = { {64 * 1024, 128} }, |
| 7582 | .block_erase = erase_sector_jedec, |
| 7583 | }, { |
| 7584 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7585 | .block_erase = erase_chip_block_jedec, |
| 7586 | }, |
| 7587 | }, |
| 7588 | .write = write_jedec_1, |
| 7589 | .read = read_memmapped, |
| 7590 | .voltage = {2700, 3600}, |
| 7591 | }, |
| 7592 | |
| 7593 | { |
| 7594 | .vendor = "ISSI", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 7595 | .name = "IS29GL064T", |
| 7596 | .bustype = BUS_PARALLEL, |
| 7597 | .manufacture_id = ISSI_ID, |
| 7598 | .model_id = ISSI_PMC_IS29GL064T, |
| 7599 | .total_size = 8192, |
| 7600 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7601 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7602 | .tested = TEST_UNTESTED, |
| 7603 | .probe = probe_jedec_29gl, |
| 7604 | .probe_timing = TIMING_ZERO, |
| 7605 | .block_erasers = |
| 7606 | { |
| 7607 | { |
| 7608 | .eraseblocks = { |
| 7609 | {64 * 1024, 127}, |
| 7610 | {8 * 1024, 8}, |
| 7611 | }, |
| 7612 | .block_erase = erase_sector_jedec, |
| 7613 | }, { |
| 7614 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7615 | .block_erase = erase_chip_block_jedec, |
| 7616 | }, |
| 7617 | }, |
| 7618 | .write = write_jedec_1, |
| 7619 | .read = read_memmapped, |
| 7620 | .voltage = {2700, 3600}, |
| 7621 | }, |
| 7622 | |
| 7623 | { |
| 7624 | .vendor = "ISSI", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 7625 | .name = "IS29GL128H/L", |
| 7626 | .bustype = BUS_PARALLEL, |
| 7627 | .manufacture_id = ISSI_ID, |
| 7628 | .model_id = ISSI_PMC_IS29GL128HL, |
| 7629 | .total_size = 16384, |
| 7630 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7631 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7632 | .tested = TEST_UNTESTED, |
| 7633 | .probe = probe_jedec_29gl, |
| 7634 | .probe_timing = TIMING_ZERO, |
| 7635 | .block_erasers = |
| 7636 | { |
| 7637 | { |
| 7638 | .eraseblocks = { {128 * 1024, 128} }, |
| 7639 | .block_erase = erase_sector_jedec, |
| 7640 | }, { |
| 7641 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7642 | .block_erase = erase_chip_block_jedec, |
| 7643 | }, |
| 7644 | }, |
| 7645 | .write = write_jedec_1, |
| 7646 | .read = read_memmapped, |
| 7647 | .voltage = {2700, 3600}, |
| 7648 | }, |
| 7649 | |
| 7650 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7651 | .vendor = "Intel", |
| 7652 | .name = "25F160S33B8", |
| 7653 | .bustype = BUS_SPI, |
| 7654 | .manufacture_id = INTEL_ID, |
| 7655 | .model_id = INTEL_25F160S33B8, |
| 7656 | .total_size = 2048, |
| 7657 | .page_size = 256, |
| 7658 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 7659 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7660 | .tested = TEST_UNTESTED, |
| 7661 | .probe = probe_spi_rdid, |
| 7662 | .probe_timing = TIMING_ZERO, |
| 7663 | .block_erasers = |
| 7664 | { |
| 7665 | { |
| 7666 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 7667 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 7668 | * have no effect on the memory contents, but sets a flag in the SR. |
| 7669 | .eraseblocks = { |
| 7670 | {8 * 1024, 8}, |
| 7671 | {64 * 1024, 31} // inaccessible |
| 7672 | }, |
| 7673 | .block_erase = spi_block_erase_40, |
| 7674 | }, { */ |
| 7675 | .eraseblocks = { {64 * 1024, 32} }, |
| 7676 | .block_erase = spi_block_erase_d8, |
| 7677 | }, { |
| 7678 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7679 | .block_erase = spi_block_erase_c7, |
| 7680 | } |
| 7681 | }, |
| 7682 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 7683 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 7684 | .write = spi_chip_write_256, |
| 7685 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 7686 | .voltage = {2700, 3600}, |
| 7687 | }, |
| 7688 | |
| 7689 | { |
| 7690 | .vendor = "Intel", |
| 7691 | .name = "25F160S33T8", |
| 7692 | .bustype = BUS_SPI, |
| 7693 | .manufacture_id = INTEL_ID, |
| 7694 | .model_id = INTEL_25F160S33T8, |
| 7695 | .total_size = 2048, |
| 7696 | .page_size = 256, |
| 7697 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 7698 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7699 | .tested = TEST_UNTESTED, |
| 7700 | .probe = probe_spi_rdid, |
| 7701 | .probe_timing = TIMING_ZERO, |
| 7702 | .block_erasers = |
| 7703 | { |
| 7704 | { |
| 7705 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 7706 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 7707 | * have no effect on the memory contents, but sets a flag in the SR. |
| 7708 | .eraseblocks = { |
| 7709 | {64 * 1024, 31}, // inaccessible |
| 7710 | {8 * 1024, 8} |
| 7711 | }, |
| 7712 | .block_erase = spi_block_erase_40, |
| 7713 | }, { */ |
| 7714 | .eraseblocks = { {64 * 1024, 32} }, |
| 7715 | .block_erase = spi_block_erase_d8, |
| 7716 | }, { |
| 7717 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7718 | .block_erase = spi_block_erase_c7, |
| 7719 | } |
| 7720 | }, |
| 7721 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 7722 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 7723 | .write = spi_chip_write_256, |
| 7724 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 7725 | .voltage = {2700, 3600}, |
| 7726 | }, |
| 7727 | |
| 7728 | { |
| 7729 | .vendor = "Intel", |
| 7730 | .name = "25F320S33B8", |
| 7731 | .bustype = BUS_SPI, |
| 7732 | .manufacture_id = INTEL_ID, |
| 7733 | .model_id = INTEL_25F320S33B8, |
| 7734 | .total_size = 4096, |
| 7735 | .page_size = 256, |
| 7736 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 7737 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7738 | .tested = TEST_UNTESTED, |
| 7739 | .probe = probe_spi_rdid, |
| 7740 | .probe_timing = TIMING_ZERO, |
| 7741 | .block_erasers = |
| 7742 | { |
| 7743 | { |
| 7744 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 7745 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 7746 | * have no effect on the memory contents, but sets a flag in the SR. |
| 7747 | .eraseblocks = { |
| 7748 | {8 * 1024, 8}, |
| 7749 | {64 * 1024, 63} // inaccessible |
| 7750 | }, |
| 7751 | .block_erase = spi_block_erase_40, |
| 7752 | }, { */ |
| 7753 | .eraseblocks = { {64 * 1024, 64} }, |
| 7754 | .block_erase = spi_block_erase_d8, |
| 7755 | }, { |
| 7756 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7757 | .block_erase = spi_block_erase_c7, |
| 7758 | } |
| 7759 | }, |
| 7760 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 7761 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 7762 | .write = spi_chip_write_256, |
| 7763 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 7764 | .voltage = {2700, 3600}, |
| 7765 | }, |
| 7766 | |
| 7767 | { |
| 7768 | .vendor = "Intel", |
| 7769 | .name = "25F320S33T8", |
| 7770 | .bustype = BUS_SPI, |
| 7771 | .manufacture_id = INTEL_ID, |
| 7772 | .model_id = INTEL_25F320S33T8, |
| 7773 | .total_size = 4096, |
| 7774 | .page_size = 256, |
| 7775 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 7776 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7777 | .tested = TEST_UNTESTED, |
| 7778 | .probe = probe_spi_rdid, |
| 7779 | .probe_timing = TIMING_ZERO, |
| 7780 | .block_erasers = |
| 7781 | { |
| 7782 | { |
| 7783 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 7784 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 7785 | * have no effect on the memory contents, but sets a flag in the SR. |
| 7786 | .eraseblocks = { |
| 7787 | {64 * 1024, 63}, // inaccessible |
| 7788 | {8 * 1024, 8} |
| 7789 | }, |
| 7790 | .block_erase = spi_block_erase_40, |
| 7791 | }, { */ |
| 7792 | .eraseblocks = { {64 * 1024, 64} }, |
| 7793 | .block_erase = spi_block_erase_d8, |
| 7794 | }, { |
| 7795 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7796 | .block_erase = spi_block_erase_c7, |
| 7797 | } |
| 7798 | }, |
| 7799 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 7800 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 7801 | .write = spi_chip_write_256, |
| 7802 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 7803 | .voltage = {2700, 3600}, |
| 7804 | }, |
| 7805 | |
| 7806 | { |
| 7807 | .vendor = "Intel", |
| 7808 | .name = "25F640S33B8", |
| 7809 | .bustype = BUS_SPI, |
| 7810 | .manufacture_id = INTEL_ID, |
| 7811 | .model_id = INTEL_25F640S33B8, |
| 7812 | .total_size = 8192, |
| 7813 | .page_size = 256, |
| 7814 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 7815 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Zoltan HERPAI | e0e8b2b | 2020-08-08 16:04:34 +0200 | [diff] [blame] | 7816 | .tested = TEST_OK_PREW, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7817 | .probe = probe_spi_rdid, |
| 7818 | .probe_timing = TIMING_ZERO, |
| 7819 | .block_erasers = |
| 7820 | { |
| 7821 | { |
| 7822 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 7823 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 7824 | * have no effect on the memory contents, but sets a flag in the SR. |
| 7825 | .eraseblocks = { |
| 7826 | {8 * 1024, 8}, |
| 7827 | {64 * 1024, 127} // inaccessible |
| 7828 | }, |
| 7829 | .block_erase = spi_block_erase_40, |
| 7830 | }, { */ |
| 7831 | .eraseblocks = { {64 * 1024, 128} }, |
| 7832 | .block_erase = spi_block_erase_d8, |
| 7833 | }, { |
| 7834 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7835 | .block_erase = spi_block_erase_c7, |
| 7836 | } |
| 7837 | }, |
| 7838 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 7839 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 7840 | .write = spi_chip_write_256, |
| 7841 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 7842 | .voltage = {2700, 3600}, |
| 7843 | }, |
| 7844 | |
| 7845 | { |
| 7846 | .vendor = "Intel", |
| 7847 | .name = "25F640S33T8", |
| 7848 | .bustype = BUS_SPI, |
| 7849 | .manufacture_id = INTEL_ID, |
| 7850 | .model_id = INTEL_25F640S33T8, |
| 7851 | .total_size = 8192, |
| 7852 | .page_size = 256, |
| 7853 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 7854 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7855 | .tested = TEST_UNTESTED, |
| 7856 | .probe = probe_spi_rdid, |
| 7857 | .probe_timing = TIMING_ZERO, |
| 7858 | .block_erasers = |
| 7859 | { |
| 7860 | { |
| 7861 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 7862 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 7863 | * have no effect on the memory contents, but sets a flag in the SR. |
| 7864 | .eraseblocks = { |
| 7865 | {64 * 1024, 127}, // inaccessible |
| 7866 | {8 * 1024, 8} |
| 7867 | }, |
| 7868 | .block_erase = spi_block_erase_40, |
| 7869 | }, { */ |
| 7870 | .eraseblocks = { {64 * 1024, 128} }, |
| 7871 | .block_erase = spi_block_erase_d8, |
| 7872 | }, { |
| 7873 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7874 | .block_erase = spi_block_erase_c7, |
| 7875 | } |
| 7876 | }, |
| 7877 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 7878 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 7879 | .write = spi_chip_write_256, |
| 7880 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 7881 | .voltage = {2700, 3600}, |
| 7882 | }, |
| 7883 | |
| 7884 | { |
| 7885 | .vendor = "Intel", |
| 7886 | .name = "28F001BN/BX-B", |
| 7887 | .bustype = BUS_PARALLEL, |
| 7888 | .manufacture_id = INTEL_ID, |
| 7889 | .model_id = INTEL_28F001B, |
| 7890 | .total_size = 128, |
| 7891 | .page_size = 128 * 1024, /* 8k + 2x4k + 112k */ |
| 7892 | .tested = TEST_UNTESTED, |
| 7893 | .probe = probe_jedec, |
| 7894 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7895 | .block_erasers = |
| 7896 | { |
| 7897 | { |
| 7898 | .eraseblocks = { |
| 7899 | {8 * 1024, 1}, |
| 7900 | {4 * 1024, 2}, |
| 7901 | {112 * 1024, 1}, |
| 7902 | }, |
| 7903 | .block_erase = erase_block_82802ab, |
| 7904 | }, |
| 7905 | }, |
| 7906 | .write = write_82802ab, |
| 7907 | .read = read_memmapped, |
| 7908 | .voltage = {4500, 5500}, |
| 7909 | }, |
| 7910 | |
| 7911 | { |
| 7912 | .vendor = "Intel", |
| 7913 | .name = "28F001BN/BX-T", |
| 7914 | .bustype = BUS_PARALLEL, |
| 7915 | .manufacture_id = INTEL_ID, |
| 7916 | .model_id = INTEL_28F001T, |
| 7917 | .total_size = 128, |
| 7918 | .page_size = 128 * 1024, /* 112k + 2x4k + 8k */ |
| 7919 | .tested = TEST_OK_PREW, |
| 7920 | .probe = probe_jedec, |
| 7921 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7922 | .block_erasers = |
| 7923 | { |
| 7924 | { |
| 7925 | .eraseblocks = { |
| 7926 | {112 * 1024, 1}, |
| 7927 | {4 * 1024, 2}, |
| 7928 | {8 * 1024, 1}, |
| 7929 | }, |
| 7930 | .block_erase = erase_block_82802ab, |
| 7931 | }, |
| 7932 | }, |
| 7933 | .write = write_82802ab, |
| 7934 | .read = read_memmapped, |
| 7935 | .voltage = {4500, 5500}, |
| 7936 | }, |
| 7937 | |
| 7938 | { |
| 7939 | .vendor = "Intel", |
| 7940 | .name = "28F002BC/BL/BV/BX-T", |
| 7941 | .bustype = BUS_PARALLEL, |
| 7942 | .manufacture_id = INTEL_ID, |
| 7943 | .model_id = INTEL_28F002T, |
| 7944 | .total_size = 256, |
| 7945 | .page_size = 256 * 1024, |
| 7946 | .tested = TEST_OK_PRE, |
| 7947 | .probe = probe_82802ab, |
| 7948 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7949 | .block_erasers = |
| 7950 | { |
| 7951 | { |
| 7952 | .eraseblocks = { |
| 7953 | {128 * 1024, 1}, |
| 7954 | {96 * 1024, 1}, |
| 7955 | {8 * 1024, 2}, |
| 7956 | {16 * 1024, 1}, |
| 7957 | }, |
| 7958 | .block_erase = erase_block_82802ab, |
| 7959 | }, |
| 7960 | }, |
| 7961 | .write = write_82802ab, |
| 7962 | .read = read_memmapped, |
| 7963 | }, |
| 7964 | |
| 7965 | { |
| 7966 | .vendor = "Intel", |
| 7967 | .name = "28F004B5/BE/BV/BX-B", |
| 7968 | .bustype = BUS_PARALLEL, |
| 7969 | .manufacture_id = INTEL_ID, |
| 7970 | .model_id = INTEL_28F004B, |
| 7971 | .total_size = 512, |
| 7972 | .page_size = 128 * 1024, /* maximal block size */ |
| 7973 | .tested = TEST_UNTESTED, |
| 7974 | .probe = probe_82802ab, |
| 7975 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7976 | .block_erasers = |
| 7977 | { |
| 7978 | { |
| 7979 | .eraseblocks = { |
| 7980 | {16 * 1024, 1}, |
| 7981 | {8 * 1024, 2}, |
| 7982 | {96 * 1024, 1}, |
| 7983 | {128 * 1024, 3}, |
| 7984 | }, |
| 7985 | .block_erase = erase_block_82802ab, |
| 7986 | }, |
| 7987 | }, |
| 7988 | .write = write_82802ab, |
| 7989 | .read = read_memmapped, |
| 7990 | }, |
| 7991 | |
| 7992 | { |
| 7993 | .vendor = "Intel", |
| 7994 | .name = "28F004B5/BE/BV/BX-T", |
| 7995 | .bustype = BUS_PARALLEL, |
| 7996 | .manufacture_id = INTEL_ID, |
| 7997 | .model_id = INTEL_28F004T, |
| 7998 | .total_size = 512, |
| 7999 | .page_size = 128 * 1024, /* maximal block size */ |
| 8000 | .tested = TEST_UNTESTED, |
| 8001 | .probe = probe_82802ab, |
| 8002 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8003 | .block_erasers = |
| 8004 | { |
| 8005 | { |
| 8006 | .eraseblocks = { |
| 8007 | {128 * 1024, 3}, |
| 8008 | {96 * 1024, 1}, |
| 8009 | {8 * 1024, 2}, |
| 8010 | {16 * 1024, 1}, |
| 8011 | }, |
| 8012 | .block_erase = erase_block_82802ab, |
| 8013 | }, |
| 8014 | }, |
| 8015 | .write = write_82802ab, |
| 8016 | .read = read_memmapped, |
| 8017 | }, |
| 8018 | |
| 8019 | { |
| 8020 | .vendor = "Intel", |
| 8021 | .name = "28F008S3/S5/SC", |
| 8022 | .bustype = BUS_PARALLEL, |
| 8023 | .manufacture_id = INTEL_ID, |
| 8024 | .model_id = INTEL_28F004S3, |
| 8025 | .total_size = 512, |
| 8026 | .page_size = 256, |
| 8027 | .tested = TEST_UNTESTED, |
| 8028 | .probe = probe_82802ab, |
| 8029 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8030 | .block_erasers = |
| 8031 | { |
| 8032 | { |
| 8033 | .eraseblocks = { {64 * 1024, 8} }, |
| 8034 | .block_erase = erase_block_82802ab, |
| 8035 | }, |
| 8036 | }, |
| 8037 | .unlock = unlock_28f004s5, |
| 8038 | .write = write_82802ab, |
| 8039 | .read = read_memmapped, |
| 8040 | }, |
| 8041 | |
| 8042 | { |
| 8043 | .vendor = "Intel", |
| 8044 | .name = "28F400BV/BX/CE/CV-B", |
| 8045 | .bustype = BUS_PARALLEL, |
| 8046 | .manufacture_id = INTEL_ID, |
| 8047 | .model_id = INTEL_28F400B, |
| 8048 | .total_size = 512, |
| 8049 | .page_size = 128 * 1024, /* maximal block size */ |
| 8050 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 8051 | .tested = TEST_UNTESTED, |
| 8052 | .probe = probe_82802ab, |
| 8053 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8054 | .block_erasers = |
| 8055 | { |
| 8056 | { |
| 8057 | .eraseblocks = { |
| 8058 | {16 * 1024, 1}, |
| 8059 | {8 * 1024, 2}, |
| 8060 | {96 * 1024, 1}, |
| 8061 | {128 * 1024, 3}, |
| 8062 | }, |
| 8063 | .block_erase = erase_block_82802ab, |
| 8064 | }, |
| 8065 | }, |
| 8066 | .write = write_82802ab, |
| 8067 | .read = read_memmapped, |
| 8068 | }, |
| 8069 | |
| 8070 | { |
| 8071 | .vendor = "Intel", |
| 8072 | .name = "28F400BV/BX/CE/CV-T", |
| 8073 | .bustype = BUS_PARALLEL, |
| 8074 | .manufacture_id = INTEL_ID, |
| 8075 | .model_id = INTEL_28F400T, |
| 8076 | .total_size = 512, |
| 8077 | .page_size = 128 * 1024, /* maximal block size */ |
| 8078 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 8079 | .tested = TEST_UNTESTED, |
| 8080 | .probe = probe_82802ab, |
| 8081 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8082 | .block_erasers = |
| 8083 | { |
| 8084 | { |
| 8085 | .eraseblocks = { |
| 8086 | {128 * 1024, 3}, |
| 8087 | {96 * 1024, 1}, |
| 8088 | {8 * 1024, 2}, |
| 8089 | {16 * 1024, 1}, |
| 8090 | }, |
| 8091 | .block_erase = erase_block_82802ab, |
| 8092 | }, |
| 8093 | }, |
| 8094 | .write = write_82802ab, |
| 8095 | .read = read_memmapped, |
| 8096 | }, |
| 8097 | |
| 8098 | { |
| 8099 | .vendor = "Intel", |
| 8100 | .name = "82802AB", |
| 8101 | .bustype = BUS_FWH, |
| 8102 | .manufacture_id = INTEL_ID, |
| 8103 | .model_id = INTEL_82802AB, |
| 8104 | .total_size = 512, |
| 8105 | .page_size = 64 * 1024, |
| 8106 | .feature_bits = FEATURE_REGISTERMAP, |
Alan Green | 8855257 | 2019-07-24 13:56:06 +1000 | [diff] [blame] | 8107 | .tested = TEST_OK_PREW, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8108 | .probe = probe_82802ab, |
| 8109 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
| 8110 | .block_erasers = |
| 8111 | { |
| 8112 | { |
| 8113 | .eraseblocks = { {64 * 1024, 8} }, |
| 8114 | .block_erase = erase_block_82802ab, |
| 8115 | }, |
| 8116 | }, |
| 8117 | .unlock = unlock_regspace2_uniform_64k, |
| 8118 | .write = write_82802ab, |
| 8119 | .read = read_memmapped, |
| 8120 | .voltage = {3000, 3600}, |
| 8121 | }, |
| 8122 | |
| 8123 | { |
| 8124 | .vendor = "Intel", |
| 8125 | .name = "82802AC", |
| 8126 | .bustype = BUS_FWH, |
| 8127 | .manufacture_id = INTEL_ID, |
| 8128 | .model_id = INTEL_82802AC, |
| 8129 | .total_size = 1024, |
| 8130 | .page_size = 64 * 1024, |
| 8131 | .feature_bits = FEATURE_REGISTERMAP, |
| 8132 | .tested = TEST_OK_PR, |
| 8133 | .probe = probe_82802ab, |
| 8134 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
| 8135 | .block_erasers = |
| 8136 | { |
| 8137 | { |
| 8138 | .eraseblocks = { {64 * 1024, 16} }, |
| 8139 | .block_erase = erase_block_82802ab, |
| 8140 | }, |
| 8141 | }, |
| 8142 | .unlock = unlock_regspace2_uniform_64k, |
| 8143 | .write = write_82802ab, |
| 8144 | .read = read_memmapped, |
| 8145 | .voltage = {3000, 3600}, |
| 8146 | }, |
| 8147 | |
| 8148 | { |
| 8149 | .vendor = "Macronix", |
| 8150 | .name = "MX23L12854", |
| 8151 | .bustype = BUS_SPI, |
| 8152 | .manufacture_id = MACRONIX_ID, |
| 8153 | .model_id = MACRONIX_MX23L12854, |
| 8154 | .total_size = 16384, |
| 8155 | .page_size = 256, |
| 8156 | .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA}, |
| 8157 | .probe = probe_spi_rdid, |
| 8158 | .probe_timing = TIMING_ZERO, |
| 8159 | .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */ |
| 8160 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8161 | .voltage = {3000, 3600}, |
| 8162 | }, |
| 8163 | |
| 8164 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8165 | .vendor = "Macronix", |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 8166 | .name = "MX23L1654", |
| 8167 | .bustype = BUS_SPI, |
| 8168 | .manufacture_id = MACRONIX_ID, |
| 8169 | .model_id = MACRONIX_MX23L1654, |
| 8170 | .total_size = 2048, |
| 8171 | .page_size = 256, |
| 8172 | .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA}, |
| 8173 | .probe = probe_spi_rdid, |
| 8174 | .probe_timing = TIMING_ZERO, |
| 8175 | .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */ |
| 8176 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8177 | .voltage = {3000, 3600}, |
| 8178 | }, |
| 8179 | |
| 8180 | { |
| 8181 | .vendor = "Macronix", |
Michael Coppola | 4e7f36e | 2014-05-03 23:01:18 +0000 | [diff] [blame] | 8182 | .name = "MX23L3254", |
| 8183 | .bustype = BUS_SPI, |
| 8184 | .manufacture_id = MACRONIX_ID, |
| 8185 | .model_id = MACRONIX_MX23L3254, |
| 8186 | .total_size = 4096, |
| 8187 | .page_size = 256, |
Stefan Tauner | 6455dff | 2014-05-26 00:36:24 +0000 | [diff] [blame] | 8188 | .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA}, |
Michael Coppola | 4e7f36e | 2014-05-03 23:01:18 +0000 | [diff] [blame] | 8189 | .probe = probe_spi_rdid, |
| 8190 | .probe_timing = TIMING_ZERO, |
| 8191 | .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */ |
| 8192 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8193 | .voltage = {3000, 3600}, |
| 8194 | }, |
| 8195 | |
| 8196 | { |
| 8197 | .vendor = "Macronix", |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 8198 | .name = "MX23L6454", |
| 8199 | .bustype = BUS_SPI, |
| 8200 | .manufacture_id = MACRONIX_ID, |
| 8201 | .model_id = MACRONIX_MX23L6454, |
| 8202 | .total_size = 8192, |
| 8203 | .page_size = 256, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 8204 | .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA}, |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 8205 | .probe = probe_spi_rdid, |
| 8206 | .probe_timing = TIMING_ZERO, |
| 8207 | .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */ |
| 8208 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8209 | .voltage = {3000, 3600}, |
| 8210 | }, |
| 8211 | |
| 8212 | { |
| 8213 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 8214 | .name = "MX25L1005(C)/MX25L1006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8215 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8216 | .manufacture_id = MACRONIX_ID, |
| 8217 | .model_id = MACRONIX_MX25L1005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8218 | .total_size = 128, |
| 8219 | .page_size = 256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 8220 | /* MX25L1006E supports SFDP */ |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 8221 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 8222 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8223 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8224 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 8225 | .block_erasers = |
| 8226 | { |
| 8227 | { |
| 8228 | .eraseblocks = { {4 * 1024, 32} }, |
| 8229 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8230 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 8231 | .eraseblocks = { {64 * 1024, 2} }, |
| 8232 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8233 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 8234 | .eraseblocks = { {128 * 1024, 1} }, |
| 8235 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8236 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 8237 | .eraseblocks = { {128 * 1024, 1} }, |
| 8238 | .block_erase = spi_block_erase_c7, |
| 8239 | }, |
| 8240 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8241 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8242 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8243 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 8244 | .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] | 8245 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8246 | }, |
| 8247 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8248 | { |
| 8249 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8250 | .name = "MX25L12805D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8251 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8252 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8253 | .model_id = MACRONIX_MX25L12805D, |
| 8254 | .total_size = 16384, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8255 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8256 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8257 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8258 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8259 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8260 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8261 | .block_erasers = |
| 8262 | { |
| 8263 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8264 | .eraseblocks = { {4 * 1024, 4096} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8265 | .block_erase = spi_block_erase_20, |
| 8266 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8267 | .eraseblocks = { {64 * 1024, 256} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8268 | .block_erase = spi_block_erase_d8, |
| 8269 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8270 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8271 | .block_erase = spi_block_erase_60, |
| 8272 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8273 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8274 | .block_erase = spi_block_erase_c7, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8275 | } |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8276 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8277 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 8278 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8279 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 8280 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8281 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8282 | }, |
| 8283 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8284 | { |
| 8285 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8286 | .name = "MX25L12835F/MX25L12845E/MX25L12865E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8287 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8288 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8289 | .model_id = MACRONIX_MX25L12805D, |
| 8290 | .total_size = 16384, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8291 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8292 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8293 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 8294 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8295 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8296 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8297 | .block_erasers = |
| 8298 | { |
| 8299 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8300 | .eraseblocks = { {4 * 1024, 4096} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8301 | .block_erase = spi_block_erase_20, |
| 8302 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8303 | .eraseblocks = { {32 * 1024, 512} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8304 | .block_erase = spi_block_erase_52, |
| 8305 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8306 | .eraseblocks = { {64 * 1024, 256} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8307 | .block_erase = spi_block_erase_d8, |
| 8308 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8309 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8310 | .block_erase = spi_block_erase_60, |
| 8311 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8312 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8313 | .block_erase = spi_block_erase_c7, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8314 | } |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8315 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8316 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
| 8317 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8318 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8319 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 8320 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8321 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8322 | }, |
| 8323 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8324 | { |
| 8325 | .vendor = "Macronix", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8326 | .name = "MX25L1605", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8327 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8328 | .manufacture_id = MACRONIX_ID, |
| 8329 | .model_id = MACRONIX_MX25L1605, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8330 | .total_size = 2048, |
| 8331 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 8332 | .feature_bits = FEATURE_WRSR_WREN, |
Sven Schnelle | 4bd8a40 | 2011-03-07 10:59:06 +0000 | [diff] [blame] | 8333 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8334 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8335 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8336 | .block_erasers = |
| 8337 | { |
| 8338 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8339 | .eraseblocks = { {64 * 1024, 32} }, |
| 8340 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8341 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8342 | .eraseblocks = { {64 * 1024, 32} }, |
| 8343 | .block_erase = spi_block_erase_d8, |
| 8344 | }, { |
| 8345 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8346 | .block_erase = spi_block_erase_60, |
| 8347 | }, { |
| 8348 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8349 | .block_erase = spi_block_erase_c7, |
| 8350 | }, |
| 8351 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8352 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8353 | .unlock = spi_disable_blockprotect, |
| 8354 | .write = spi_chip_write_256, |
| 8355 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8356 | .voltage = {2700, 3600}, |
| 8357 | }, |
| 8358 | |
| 8359 | { |
| 8360 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8361 | .name = "MX25L1605A/MX25L1606E/MX25L1608E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8362 | .bustype = BUS_SPI, |
| 8363 | .manufacture_id = MACRONIX_ID, |
| 8364 | .model_id = MACRONIX_MX25L1605, |
| 8365 | .total_size = 2048, |
| 8366 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8367 | /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8368 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8369 | .tested = TEST_OK_PREW, |
| 8370 | .probe = probe_spi_rdid, |
| 8371 | .probe_timing = TIMING_ZERO, |
| 8372 | .block_erasers = |
| 8373 | { |
| 8374 | { |
| 8375 | .eraseblocks = { {4 * 1024, 512} }, |
| 8376 | .block_erase = spi_block_erase_20, |
| 8377 | }, { |
| 8378 | .eraseblocks = { {64 * 1024, 32} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8379 | .block_erase = spi_block_erase_52, |
| 8380 | }, { |
| 8381 | .eraseblocks = { {64 * 1024, 32} }, |
| 8382 | .block_erase = spi_block_erase_d8, |
| 8383 | }, { |
| 8384 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8385 | .block_erase = spi_block_erase_60, |
| 8386 | }, { |
| 8387 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8388 | .block_erase = spi_block_erase_c7, |
| 8389 | }, |
| 8390 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8391 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8392 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8393 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8394 | .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] | 8395 | .voltage = {2700, 3600}, |
| 8396 | }, |
| 8397 | |
| 8398 | { |
| 8399 | .vendor = "Macronix", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8400 | .name = "MX25L1605D/MX25L1608D/MX25L1673E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8401 | .bustype = BUS_SPI, |
| 8402 | .manufacture_id = MACRONIX_ID, |
| 8403 | .model_id = MACRONIX_MX25L1605, |
| 8404 | .total_size = 2048, |
| 8405 | .page_size = 256, |
| 8406 | .feature_bits = FEATURE_WRSR_WREN, |
| 8407 | .tested = TEST_OK_PREW, |
| 8408 | .probe = probe_spi_rdid, |
| 8409 | .probe_timing = TIMING_ZERO, |
| 8410 | .block_erasers = |
| 8411 | { |
| 8412 | { |
| 8413 | .eraseblocks = { {4 * 1024, 512} }, |
| 8414 | .block_erase = spi_block_erase_20, |
| 8415 | }, { |
| 8416 | .eraseblocks = { {64 * 1024, 32} }, |
| 8417 | .block_erase = spi_block_erase_d8, |
| 8418 | }, { |
| 8419 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8420 | .block_erase = spi_block_erase_60, |
| 8421 | }, { |
| 8422 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8423 | .block_erase = spi_block_erase_c7, |
| 8424 | }, |
| 8425 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8426 | .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] | 8427 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8428 | .write = spi_chip_write_256, |
| 8429 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8430 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8431 | }, |
| 8432 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8433 | { |
| 8434 | .vendor = "Macronix", |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8435 | .name = "MX25L1635D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8436 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8437 | .manufacture_id = MACRONIX_ID, |
| 8438 | .model_id = MACRONIX_MX25L1635D, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8439 | .total_size = 2048, |
| 8440 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8441 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8442 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Angel Pons | c205487 | 2021-01-15 18:57:32 +0100 | [diff] [blame] | 8443 | .tested = TEST_OK_PREW, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8444 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8445 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8446 | .block_erasers = |
| 8447 | { |
| 8448 | { |
| 8449 | .eraseblocks = { {4 * 1024, 512} }, |
| 8450 | .block_erase = spi_block_erase_20, |
| 8451 | }, { |
| 8452 | .eraseblocks = { {64 * 1024, 32} }, |
| 8453 | .block_erase = spi_block_erase_d8, |
| 8454 | }, { |
| 8455 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8456 | .block_erase = spi_block_erase_60, |
| 8457 | }, { |
| 8458 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8459 | .block_erase = spi_block_erase_c7, |
| 8460 | } |
| 8461 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8462 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8463 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8464 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8465 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8466 | .voltage = {2700, 3600}, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8467 | }, |
Stephan Guilloux | fd31550 | 2009-04-20 22:54:13 +0000 | [diff] [blame] | 8468 | |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8469 | { |
| 8470 | .vendor = "Macronix", |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8471 | .name = "MX25L1635E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8472 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8473 | .manufacture_id = MACRONIX_ID, |
| 8474 | .model_id = MACRONIX_MX25L1635E, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8475 | .total_size = 2048, |
| 8476 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8477 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8478 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8479 | .tested = TEST_UNTESTED, |
| 8480 | .probe = probe_spi_rdid, |
| 8481 | .probe_timing = TIMING_ZERO, |
| 8482 | .block_erasers = |
| 8483 | { |
| 8484 | { |
| 8485 | .eraseblocks = { {4 * 1024, 512} }, |
| 8486 | .block_erase = spi_block_erase_20, |
| 8487 | }, { |
| 8488 | .eraseblocks = { {64 * 1024, 32} }, |
| 8489 | .block_erase = spi_block_erase_d8, |
| 8490 | }, { |
| 8491 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8492 | .block_erase = spi_block_erase_60, |
| 8493 | }, { |
| 8494 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8495 | .block_erase = spi_block_erase_c7, |
| 8496 | } |
| 8497 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8498 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8499 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8500 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8501 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 8502 | .voltage = {2700, 3600}, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8503 | }, |
| 8504 | |
| 8505 | { |
| 8506 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8507 | .name = "MX25L2005(C)/MX25L2006E", |
| 8508 | .bustype = BUS_SPI, |
| 8509 | .manufacture_id = MACRONIX_ID, |
| 8510 | .model_id = MACRONIX_MX25L2005, |
| 8511 | .total_size = 256, |
| 8512 | .page_size = 256, |
| 8513 | .feature_bits = FEATURE_WRSR_WREN, |
| 8514 | .tested = TEST_OK_PREW, |
| 8515 | .probe = probe_spi_rdid, |
| 8516 | .probe_timing = TIMING_ZERO, |
| 8517 | .block_erasers = |
| 8518 | { |
| 8519 | { |
| 8520 | .eraseblocks = { {4 * 1024, 64} }, |
| 8521 | .block_erase = spi_block_erase_20, |
| 8522 | }, { |
| 8523 | .eraseblocks = { {64 * 1024, 4} }, |
| 8524 | .block_erase = spi_block_erase_52, |
| 8525 | }, { |
| 8526 | .eraseblocks = { {64 * 1024, 4} }, |
| 8527 | .block_erase = spi_block_erase_d8, |
| 8528 | }, { |
| 8529 | .eraseblocks = { {256 * 1024, 1} }, |
| 8530 | .block_erase = spi_block_erase_60, |
| 8531 | }, { |
| 8532 | .eraseblocks = { {256 * 1024, 1} }, |
| 8533 | .block_erase = spi_block_erase_c7, |
| 8534 | }, |
| 8535 | }, |
| 8536 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 8537 | .unlock = spi_disable_blockprotect, |
| 8538 | .write = spi_chip_write_256, |
| 8539 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8540 | .voltage = {2700, 3600}, |
| 8541 | }, |
| 8542 | |
| 8543 | { |
| 8544 | .vendor = "Macronix", |
Alan Green | 0370730 | 2019-08-26 12:50:43 +1000 | [diff] [blame] | 8545 | .name = "MX25L25635F/MX25L25645G", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8546 | .bustype = BUS_SPI, |
| 8547 | .manufacture_id = MACRONIX_ID, |
| 8548 | .model_id = MACRONIX_MX25L25635F, |
| 8549 | .total_size = 32768, |
| 8550 | .page_size = 256, |
| 8551 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8552 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
| 8553 | .tested = TEST_OK_PREW, |
| 8554 | .probe = probe_spi_rdid, |
| 8555 | .probe_timing = TIMING_ZERO, |
| 8556 | .block_erasers = |
| 8557 | { |
| 8558 | { |
| 8559 | .eraseblocks = { {4 * 1024, 8192} }, |
| 8560 | .block_erase = spi_block_erase_21, |
| 8561 | }, { |
| 8562 | .eraseblocks = { {4 * 1024, 8192} }, |
| 8563 | .block_erase = spi_block_erase_20, |
| 8564 | }, { |
| 8565 | .eraseblocks = { {32 * 1024, 1024} }, |
| 8566 | .block_erase = spi_block_erase_5c, |
| 8567 | }, { |
| 8568 | .eraseblocks = { {32 * 1024, 1024} }, |
| 8569 | .block_erase = spi_block_erase_52, |
| 8570 | }, { |
| 8571 | .eraseblocks = { {64 * 1024, 512} }, |
| 8572 | .block_erase = spi_block_erase_dc, |
| 8573 | }, { |
| 8574 | .eraseblocks = { {64 * 1024, 512} }, |
| 8575 | .block_erase = spi_block_erase_d8, |
| 8576 | }, { |
| 8577 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 8578 | .block_erase = spi_block_erase_60, |
| 8579 | }, { |
| 8580 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 8581 | .block_erase = spi_block_erase_c7, |
| 8582 | } |
| 8583 | }, |
| 8584 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
| 8585 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8586 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8587 | .write = spi_chip_write_256, |
| 8588 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8589 | .voltage = {2700, 3600}, |
| 8590 | }, |
| 8591 | |
| 8592 | { |
| 8593 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8594 | .name = "MX25L3205(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8595 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8596 | .manufacture_id = MACRONIX_ID, |
| 8597 | .model_id = MACRONIX_MX25L3205, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8598 | .total_size = 4096, |
| 8599 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 8600 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 8601 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8602 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8603 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8604 | .block_erasers = |
| 8605 | { |
| 8606 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8607 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8608 | .block_erase = spi_block_erase_20, |
| 8609 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8610 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8611 | .block_erase = spi_block_erase_d8, |
| 8612 | }, { |
| 8613 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8614 | .block_erase = spi_block_erase_60, |
| 8615 | }, { |
| 8616 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8617 | .block_erase = spi_block_erase_c7, |
| 8618 | }, |
| 8619 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8620 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8621 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8622 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8623 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8624 | .voltage = {2700, 3600}, |
| 8625 | }, |
| 8626 | |
| 8627 | { |
| 8628 | .vendor = "Macronix", |
| 8629 | .name = "MX25L3205D/MX25L3208D", |
| 8630 | .bustype = BUS_SPI, |
| 8631 | .manufacture_id = MACRONIX_ID, |
| 8632 | .model_id = MACRONIX_MX25L3205, |
| 8633 | .total_size = 4096, |
| 8634 | .page_size = 256, |
| 8635 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8636 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8637 | .tested = TEST_OK_PREW, |
| 8638 | .probe = probe_spi_rdid, |
| 8639 | .probe_timing = TIMING_ZERO, |
| 8640 | .block_erasers = |
| 8641 | { |
| 8642 | { |
| 8643 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8644 | .block_erase = spi_block_erase_20, |
| 8645 | }, { |
| 8646 | .eraseblocks = { {64 * 1024, 64} }, |
| 8647 | .block_erase = spi_block_erase_d8, |
| 8648 | }, { |
| 8649 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8650 | .block_erase = spi_block_erase_60, |
| 8651 | }, { |
| 8652 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8653 | .block_erase = spi_block_erase_c7, |
| 8654 | }, |
| 8655 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8656 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8657 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8658 | .write = spi_chip_write_256, |
| 8659 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
| 8660 | .voltage = {2700, 3600}, |
| 8661 | }, |
| 8662 | |
| 8663 | { |
| 8664 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8665 | .name = "MX25L3206E/MX25L3208E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8666 | .bustype = BUS_SPI, |
| 8667 | .manufacture_id = MACRONIX_ID, |
| 8668 | .model_id = MACRONIX_MX25L3205, |
| 8669 | .total_size = 4096, |
| 8670 | .page_size = 256, |
| 8671 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8672 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8673 | .tested = TEST_OK_PREW, |
| 8674 | .probe = probe_spi_rdid, |
| 8675 | .probe_timing = TIMING_ZERO, |
| 8676 | .block_erasers = |
| 8677 | { |
| 8678 | { |
| 8679 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8680 | .block_erase = spi_block_erase_20, |
| 8681 | }, { |
| 8682 | .eraseblocks = { {64 * 1024, 64} }, |
| 8683 | .block_erase = spi_block_erase_d8, |
| 8684 | }, { |
| 8685 | .eraseblocks = { {64 * 1024, 64} }, |
| 8686 | .block_erase = spi_block_erase_52, |
| 8687 | }, { |
| 8688 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8689 | .block_erase = spi_block_erase_60, |
| 8690 | }, { |
| 8691 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8692 | .block_erase = spi_block_erase_c7, |
| 8693 | }, |
| 8694 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8695 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8696 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8697 | .write = spi_chip_write_256, |
| 8698 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8699 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8700 | }, |
| 8701 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8702 | { |
| 8703 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8704 | .name = "MX25L3235D", |
| 8705 | .bustype = BUS_SPI, |
| 8706 | .manufacture_id = MACRONIX_ID, |
| 8707 | .model_id = MACRONIX_MX25L3235D, |
| 8708 | .total_size = 4096, |
| 8709 | .page_size = 256, |
| 8710 | /* OTP: 256B total; enter 0xB1, exit 0xC1 */ |
| 8711 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8712 | .tested = TEST_UNTESTED, |
| 8713 | .probe = probe_spi_rdid, |
| 8714 | .probe_timing = TIMING_ZERO, |
| 8715 | .block_erasers = |
| 8716 | { |
| 8717 | { |
| 8718 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8719 | .block_erase = spi_block_erase_20, |
| 8720 | }, { |
| 8721 | .eraseblocks = { {64 * 1024, 64} }, |
| 8722 | .block_erase = spi_block_erase_d8, |
| 8723 | }, { |
| 8724 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8725 | .block_erase = spi_block_erase_60, |
| 8726 | }, { |
| 8727 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8728 | .block_erase = spi_block_erase_c7, |
| 8729 | } |
| 8730 | }, |
| 8731 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8732 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8733 | .write = spi_chip_write_256, |
| 8734 | .read = spi_chip_read, |
| 8735 | .voltage = {2700, 3600}, |
| 8736 | }, |
| 8737 | |
| 8738 | { |
| 8739 | .vendor = "Macronix", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8740 | .name = "MX25L3273E", |
| 8741 | .bustype = BUS_SPI, |
| 8742 | .manufacture_id = MACRONIX_ID, |
| 8743 | .model_id = MACRONIX_MX25L3205, |
| 8744 | .total_size = 4096, |
| 8745 | .page_size = 256, |
| 8746 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8747 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 8748 | .tested = TEST_OK_PREW, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8749 | .probe = probe_spi_rdid, |
| 8750 | .probe_timing = TIMING_ZERO, |
| 8751 | .block_erasers = |
| 8752 | { |
| 8753 | { |
| 8754 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8755 | .block_erase = spi_block_erase_20, |
| 8756 | }, { |
| 8757 | .eraseblocks = { {32 * 1024, 128} }, |
| 8758 | .block_erase = spi_block_erase_52, |
| 8759 | }, { |
| 8760 | .eraseblocks = { {64 * 1024, 64} }, |
| 8761 | .block_erase = spi_block_erase_d8, |
| 8762 | }, { |
| 8763 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8764 | .block_erase = spi_block_erase_60, |
| 8765 | }, { |
| 8766 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8767 | .block_erase = spi_block_erase_c7, |
| 8768 | }, |
| 8769 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8770 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8771 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8772 | .write = spi_chip_write_256, |
| 8773 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
| 8774 | .voltage = {2700, 3600}, |
| 8775 | }, |
| 8776 | |
| 8777 | { |
| 8778 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8779 | .name = "MX25L4005(A/C)/MX25L4006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8780 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8781 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8782 | .model_id = MACRONIX_MX25L4005, |
| 8783 | .total_size = 512, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 8784 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8785 | .feature_bits = FEATURE_WRSR_WREN, |
| 8786 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 8787 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8788 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8789 | .block_erasers = |
| 8790 | { |
| 8791 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8792 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8793 | .block_erase = spi_block_erase_20, |
| 8794 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8795 | .eraseblocks = { {64 * 1024, 8} }, |
| 8796 | .block_erase = spi_block_erase_52, |
| 8797 | }, { |
| 8798 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8799 | .block_erase = spi_block_erase_d8, |
| 8800 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8801 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8802 | .block_erase = spi_block_erase_60, |
| 8803 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8804 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8805 | .block_erase = spi_block_erase_c7, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8806 | }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8807 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8808 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 8809 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8810 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8811 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8812 | .voltage = {2700, 3600}, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 8813 | }, |
| 8814 | |
| 8815 | { |
| 8816 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8817 | .name = "MX25L512(E)/MX25V512(C)", |
| 8818 | .bustype = BUS_SPI, |
| 8819 | .manufacture_id = MACRONIX_ID, |
| 8820 | .model_id = MACRONIX_MX25L512, |
| 8821 | .total_size = 64, |
| 8822 | .page_size = 256, |
| 8823 | /* MX25L512E supports SFDP */ |
| 8824 | .feature_bits = FEATURE_WRSR_WREN, |
| 8825 | .tested = TEST_OK_PREW, |
| 8826 | .probe = probe_spi_rdid, |
| 8827 | .probe_timing = TIMING_ZERO, |
| 8828 | .block_erasers = |
| 8829 | { |
| 8830 | { |
| 8831 | .eraseblocks = { {4 * 1024, 16} }, |
| 8832 | .block_erase = spi_block_erase_20, |
| 8833 | }, { |
| 8834 | .eraseblocks = { {64 * 1024, 1} }, |
| 8835 | .block_erase = spi_block_erase_52, |
| 8836 | }, { |
| 8837 | .eraseblocks = { {64 * 1024, 1} }, |
| 8838 | .block_erase = spi_block_erase_d8, |
| 8839 | }, { |
| 8840 | .eraseblocks = { {64 * 1024, 1} }, |
| 8841 | .block_erase = spi_block_erase_60, |
| 8842 | }, { |
| 8843 | .eraseblocks = { {64 * 1024, 1} }, |
| 8844 | .block_erase = spi_block_erase_c7, |
| 8845 | }, |
| 8846 | }, |
| 8847 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 8848 | .unlock = spi_disable_blockprotect, |
| 8849 | .write = spi_chip_write_256, |
| 8850 | .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */ |
| 8851 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */ |
| 8852 | }, |
| 8853 | |
| 8854 | { |
| 8855 | .vendor = "Macronix", |
Steve Markgraf | 7e6f3a7 | 2020-07-13 18:22:56 +0200 | [diff] [blame] | 8856 | .name = "MX25L5121E", |
| 8857 | .bustype = BUS_SPI, |
| 8858 | .manufacture_id = MACRONIX_ID, |
| 8859 | .model_id = MACRONIX_MX25L5121E, |
| 8860 | .total_size = 64, |
| 8861 | .page_size = 32, |
| 8862 | .feature_bits = FEATURE_WRSR_WREN, |
| 8863 | .tested = TEST_OK_PREW, |
| 8864 | .probe = probe_spi_rdid, |
| 8865 | .probe_timing = TIMING_ZERO, |
| 8866 | .block_erasers = |
| 8867 | { |
| 8868 | { |
| 8869 | .eraseblocks = { {4 * 1024, 16} }, |
| 8870 | .block_erase = spi_block_erase_20, |
| 8871 | }, { |
| 8872 | .eraseblocks = { {64 * 1024, 1} }, |
| 8873 | .block_erase = spi_block_erase_52, |
| 8874 | }, { |
| 8875 | .eraseblocks = { {64 * 1024, 1} }, |
| 8876 | .block_erase = spi_block_erase_d8, |
| 8877 | }, { |
| 8878 | .eraseblocks = { {64 * 1024, 1} }, |
| 8879 | .block_erase = spi_block_erase_60, |
| 8880 | }, { |
| 8881 | .eraseblocks = { {64 * 1024, 1} }, |
| 8882 | .block_erase = spi_block_erase_c7, |
| 8883 | }, |
| 8884 | }, |
| 8885 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 8886 | .unlock = spi_disable_blockprotect, |
| 8887 | .write = spi_chip_write_256, |
| 8888 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8889 | .voltage = {2700, 3600}, |
| 8890 | }, |
| 8891 | |
| 8892 | { |
| 8893 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8894 | .name = "MX25L6405", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8895 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8896 | .manufacture_id = MACRONIX_ID, |
| 8897 | .model_id = MACRONIX_MX25L6405, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8898 | .total_size = 8192, |
| 8899 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8900 | /* Has an additional 512B EEPROM sector */ |
| 8901 | .feature_bits = FEATURE_WRSR_WREN, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 8902 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8903 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8904 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8905 | .block_erasers = |
| 8906 | { |
| 8907 | { |
| 8908 | .eraseblocks = { {64 * 1024, 128} }, |
| 8909 | .block_erase = spi_block_erase_20, |
| 8910 | }, { |
| 8911 | .eraseblocks = { {64 * 1024, 128} }, |
| 8912 | .block_erase = spi_block_erase_d8, |
| 8913 | }, { |
| 8914 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8915 | .block_erase = spi_block_erase_60, |
| 8916 | }, { |
| 8917 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8918 | .block_erase = spi_block_erase_c7, |
| 8919 | } |
| 8920 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8921 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8922 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8923 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8924 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8925 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8926 | }, |
| 8927 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8928 | { |
| 8929 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8930 | .name = "MX25L6405D", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8931 | .bustype = BUS_SPI, |
| 8932 | .manufacture_id = MACRONIX_ID, |
| 8933 | .model_id = MACRONIX_MX25L6405, |
| 8934 | .total_size = 8192, |
| 8935 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8936 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8937 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8938 | .tested = TEST_OK_PREW, |
| 8939 | .probe = probe_spi_rdid, |
| 8940 | .probe_timing = TIMING_ZERO, |
| 8941 | .block_erasers = |
| 8942 | { |
| 8943 | { |
| 8944 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8945 | .block_erase = spi_block_erase_20, |
| 8946 | }, { |
| 8947 | .eraseblocks = { {64 * 1024, 128} }, |
| 8948 | .block_erase = spi_block_erase_d8, |
| 8949 | }, { |
| 8950 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8951 | .block_erase = spi_block_erase_60, |
| 8952 | }, { |
| 8953 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8954 | .block_erase = spi_block_erase_c7, |
| 8955 | } |
| 8956 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8957 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8958 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8959 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8960 | .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] | 8961 | .voltage = {2700, 3600}, |
| 8962 | }, |
| 8963 | |
| 8964 | { |
| 8965 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8966 | .name = "MX25L6406E/MX25L6408E", |
| 8967 | .bustype = BUS_SPI, |
| 8968 | .manufacture_id = MACRONIX_ID, |
| 8969 | .model_id = MACRONIX_MX25L6405, |
| 8970 | .total_size = 8192, |
| 8971 | .page_size = 256, |
| 8972 | /* MX25L6406E supports SFDP */ |
| 8973 | /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */ |
| 8974 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8975 | .tested = TEST_OK_PREW, |
| 8976 | .probe = probe_spi_rdid, |
| 8977 | .probe_timing = TIMING_ZERO, |
| 8978 | .block_erasers = |
| 8979 | { |
| 8980 | { |
| 8981 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8982 | .block_erase = spi_block_erase_20, |
| 8983 | }, { |
| 8984 | .eraseblocks = { {64 * 1024, 128} }, |
| 8985 | .block_erase = spi_block_erase_52, |
| 8986 | }, { |
| 8987 | .eraseblocks = { {64 * 1024, 128} }, |
| 8988 | .block_erase = spi_block_erase_d8, |
| 8989 | }, { |
| 8990 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8991 | .block_erase = spi_block_erase_60, |
| 8992 | }, { |
| 8993 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8994 | .block_erase = spi_block_erase_c7, |
| 8995 | } |
| 8996 | }, |
| 8997 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 8998 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8999 | .write = spi_chip_write_256, |
| 9000 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */ |
| 9001 | .voltage = {2700, 3600}, |
| 9002 | }, |
| 9003 | |
| 9004 | { |
| 9005 | .vendor = "Macronix", |
Nico Huber | b007278 | 2017-12-06 21:02:57 +0100 | [diff] [blame] | 9006 | .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9007 | .bustype = BUS_SPI, |
| 9008 | .manufacture_id = MACRONIX_ID, |
| 9009 | .model_id = MACRONIX_MX25L6405, |
| 9010 | .total_size = 8192, |
| 9011 | .page_size = 256, |
| 9012 | /* supports SFDP */ |
| 9013 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 9014 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9015 | .tested = TEST_OK_PREW, |
| 9016 | .probe = probe_spi_rdid, |
| 9017 | .probe_timing = TIMING_ZERO, |
| 9018 | .block_erasers = |
| 9019 | { |
| 9020 | { |
| 9021 | .eraseblocks = { {4 * 1024, 2048} }, |
| 9022 | .block_erase = spi_block_erase_20, |
| 9023 | }, { |
| 9024 | .eraseblocks = { {32 * 1024, 256} }, |
| 9025 | .block_erase = spi_block_erase_52, |
| 9026 | }, { |
| 9027 | .eraseblocks = { {64 * 1024, 128} }, |
| 9028 | .block_erase = spi_block_erase_d8, |
| 9029 | }, { |
| 9030 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9031 | .block_erase = spi_block_erase_60, |
| 9032 | }, { |
| 9033 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9034 | .block_erase = spi_block_erase_c7, |
| 9035 | } |
| 9036 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9037 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9038 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9039 | .write = spi_chip_write_256, |
| 9040 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9041 | .voltage = {2700, 3600}, |
| 9042 | }, |
| 9043 | |
| 9044 | { |
| 9045 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9046 | .name = "MX25L6495F", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9047 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9048 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9049 | .model_id = MACRONIX_MX25L6495F, |
| 9050 | .total_size = 8192, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 9051 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9052 | /* OTP: 1024B total; enter 0xB1, exit 0xC1 */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9053 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 9054 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 9055 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9056 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9057 | .block_erasers = |
| 9058 | { |
| 9059 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9060 | .eraseblocks = { {4 * 1024, 2048} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9061 | .block_erase = spi_block_erase_20, |
| 9062 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9063 | .eraseblocks = { {64 * 1024, 128} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9064 | .block_erase = spi_block_erase_d8, |
| 9065 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9066 | .eraseblocks = { {32 * 1024, 256} }, |
| 9067 | .block_erase = spi_block_erase_52, |
| 9068 | }, { |
| 9069 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9070 | .block_erase = spi_block_erase_60, |
| 9071 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9072 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9073 | .block_erase = spi_block_erase_c7, |
| 9074 | } |
| 9075 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9076 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9077 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9078 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9079 | .voltage = {2700, 3600}, |
| 9080 | }, |
| 9081 | |
| 9082 | { |
| 9083 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9084 | .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005", |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9085 | .bustype = BUS_SPI, |
| 9086 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9087 | .model_id = MACRONIX_MX25L8005, |
| 9088 | .total_size = 1024, |
| 9089 | .page_size = 256, |
| 9090 | /* MX25L8006E, MX25L8008E support SFDP */ |
| 9091 | /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */ |
| 9092 | .feature_bits = FEATURE_WRSR_WREN, |
| 9093 | .tested = TEST_OK_PREW, |
| 9094 | .probe = probe_spi_rdid, |
| 9095 | .probe_timing = TIMING_ZERO, |
| 9096 | .block_erasers = |
| 9097 | { |
| 9098 | { |
| 9099 | .eraseblocks = { {4 * 1024, 256} }, |
| 9100 | .block_erase = spi_block_erase_20, |
| 9101 | }, { |
| 9102 | .eraseblocks = { {64 * 1024, 16} }, |
| 9103 | .block_erase = spi_block_erase_52, |
| 9104 | }, { |
| 9105 | .eraseblocks = { {64 * 1024, 16} }, |
| 9106 | .block_erase = spi_block_erase_d8, |
| 9107 | }, { |
| 9108 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9109 | .block_erase = spi_block_erase_60, |
| 9110 | }, { |
| 9111 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9112 | .block_erase = spi_block_erase_c7, |
| 9113 | }, |
| 9114 | }, |
| 9115 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 9116 | .unlock = spi_disable_blockprotect, |
| 9117 | .write = spi_chip_write_256, |
| 9118 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9119 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */ |
| 9120 | }, |
| 9121 | |
| 9122 | { |
| 9123 | .vendor = "Macronix", |
sibradzic | f62623c | 2020-03-14 17:21:34 +0900 | [diff] [blame] | 9124 | .name = "MX25R3235F", |
| 9125 | .bustype = BUS_SPI, |
| 9126 | .manufacture_id = MACRONIX_ID, |
| 9127 | .model_id = MACRONIX_MX25R3235F, |
| 9128 | .total_size = 4096, |
| 9129 | .page_size = 256, |
| 9130 | /* OTP: 1024B total; enter 0xB1, exit 0xC1 */ |
| 9131 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9132 | .tested = TEST_OK_PREW, |
| 9133 | .probe = probe_spi_rdid, |
| 9134 | .probe_timing = TIMING_ZERO, |
| 9135 | .block_erasers = |
| 9136 | { |
| 9137 | { |
| 9138 | .eraseblocks = { {4 * 1024, 1024} }, |
| 9139 | .block_erase = spi_block_erase_20, |
| 9140 | }, { |
| 9141 | .eraseblocks = { {64 * 1024, 64} }, |
| 9142 | .block_erase = spi_block_erase_d8, |
| 9143 | }, { |
| 9144 | .eraseblocks = { {32 * 1024, 128} }, |
| 9145 | .block_erase = spi_block_erase_52, |
| 9146 | }, { |
| 9147 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9148 | .block_erase = spi_block_erase_60, |
| 9149 | }, { |
| 9150 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9151 | .block_erase = spi_block_erase_c7, |
| 9152 | } |
| 9153 | }, |
| 9154 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit 6 is quad enable */ |
| 9155 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9156 | .write = spi_chip_write_256, |
| 9157 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9158 | .voltage = {1650, 3600}, |
| 9159 | }, |
| 9160 | |
| 9161 | { |
| 9162 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9163 | .name = "MX25R6435F", |
| 9164 | .bustype = BUS_SPI, |
| 9165 | .manufacture_id = MACRONIX_ID, |
| 9166 | .model_id = MACRONIX_MX25R6435F, |
| 9167 | .total_size = 8192, |
| 9168 | .page_size = 256, |
| 9169 | /* OTP: 1024B total; enter 0xB1, exit 0xC1 */ |
| 9170 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9171 | .tested = TEST_OK_PREW, |
| 9172 | .probe = probe_spi_rdid, |
| 9173 | .probe_timing = TIMING_ZERO, |
| 9174 | .block_erasers = |
| 9175 | { |
| 9176 | { |
| 9177 | .eraseblocks = { {4 * 1024, 2048} }, |
| 9178 | .block_erase = spi_block_erase_20, |
| 9179 | }, { |
| 9180 | .eraseblocks = { {64 * 1024, 128} }, |
| 9181 | .block_erase = spi_block_erase_d8, |
| 9182 | }, { |
| 9183 | .eraseblocks = { {32 * 1024, 256} }, |
| 9184 | .block_erase = spi_block_erase_52, |
| 9185 | }, { |
| 9186 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9187 | .block_erase = spi_block_erase_60, |
| 9188 | }, { |
| 9189 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9190 | .block_erase = spi_block_erase_c7, |
| 9191 | } |
| 9192 | }, |
| 9193 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9194 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9195 | .write = spi_chip_write_256, |
| 9196 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9197 | .voltage = {1650, 3600}, |
| 9198 | }, |
| 9199 | |
| 9200 | { |
| 9201 | .vendor = "Macronix", |
| 9202 | .name = "MX25U12835F", |
| 9203 | .bustype = BUS_SPI, |
| 9204 | .manufacture_id = MACRONIX_ID, |
| 9205 | .model_id = MACRONIX_MX25U12835E, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9206 | .total_size = 16384, |
| 9207 | .page_size = 256, |
| 9208 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9209 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9210 | .tested = TEST_OK_PREW, |
| 9211 | .probe = probe_spi_rdid, |
| 9212 | .probe_timing = TIMING_ZERO, |
| 9213 | .block_erasers = |
| 9214 | { |
| 9215 | { |
| 9216 | .eraseblocks = { {4 * 1024, 4096} }, |
| 9217 | .block_erase = spi_block_erase_20, |
| 9218 | }, { |
| 9219 | .eraseblocks = { {32 * 1024, 512} }, |
| 9220 | .block_erase = spi_block_erase_52, |
| 9221 | }, { |
| 9222 | .eraseblocks = { {64 * 1024, 256} }, |
| 9223 | .block_erase = spi_block_erase_d8, |
| 9224 | }, { |
| 9225 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 9226 | .block_erase = spi_block_erase_60, |
| 9227 | }, { |
| 9228 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 9229 | .block_erase = spi_block_erase_c7, |
| 9230 | } |
| 9231 | }, |
Angel Pons | f112e24 | 2018-09-30 20:14:17 +0200 | [diff] [blame] | 9232 | /* TODO: security register */ |
| 9233 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9234 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9235 | .write = spi_chip_write_256, /* Multi I/O supported */ |
Angel Pons | f112e24 | 2018-09-30 20:14:17 +0200 | [diff] [blame] | 9236 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9237 | .voltage = {1650, 2000}, |
| 9238 | }, |
| 9239 | |
| 9240 | { |
| 9241 | .vendor = "Macronix", |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 9242 | .name = "MX25U1635E", |
| 9243 | .bustype = BUS_SPI, |
| 9244 | .manufacture_id = MACRONIX_ID, |
| 9245 | .model_id = MACRONIX_MX25U1635E, |
| 9246 | .total_size = 2048, |
| 9247 | .page_size = 256, |
| 9248 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 9249 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 9250 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9251 | .tested = TEST_OK_PR, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 9252 | .probe = probe_spi_rdid, |
| 9253 | .probe_timing = TIMING_ZERO, |
| 9254 | .block_erasers = |
| 9255 | { |
| 9256 | { |
| 9257 | .eraseblocks = { {4 * 1024, 512} }, |
| 9258 | .block_erase = spi_block_erase_20, |
| 9259 | }, { |
| 9260 | .eraseblocks = { {32 * 1024, 64} }, |
| 9261 | .block_erase = spi_block_erase_52, |
| 9262 | }, { |
| 9263 | .eraseblocks = { {64 * 1024, 32} }, |
| 9264 | .block_erase = spi_block_erase_d8, |
| 9265 | }, { |
| 9266 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9267 | .block_erase = spi_block_erase_60, |
| 9268 | }, { |
| 9269 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9270 | .block_erase = spi_block_erase_c7, |
| 9271 | } |
| 9272 | }, |
| 9273 | /* TODO: security register */ |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9274 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9275 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 9276 | .write = spi_chip_write_256, |
| 9277 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9278 | .voltage = {1650, 2000}, |
| 9279 | }, |
| 9280 | |
| 9281 | { |
| 9282 | .vendor = "Macronix", |
David Tomaschik | f75d8c5 | 2019-06-20 09:49:01 -0700 | [diff] [blame] | 9283 | .name = "MX25U25635F", |
| 9284 | .bustype = BUS_SPI, |
| 9285 | .manufacture_id = MACRONIX_ID, |
| 9286 | .model_id = MACRONIX_MX25U25635F, |
| 9287 | .total_size = 32768, |
| 9288 | .page_size = 256, |
| 9289 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 9290 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA, |
Nikolai Artemiev | 148254b | 2021-03-23 17:21:10 +1100 | [diff] [blame] | 9291 | .tested = TEST_OK_PREW, |
David Tomaschik | f75d8c5 | 2019-06-20 09:49:01 -0700 | [diff] [blame] | 9292 | .probe = probe_spi_rdid, |
| 9293 | .probe_timing = TIMING_ZERO, |
| 9294 | .block_erasers = |
| 9295 | { |
| 9296 | { |
| 9297 | .eraseblocks = { {4 * 1024, 8192} }, |
| 9298 | .block_erase = spi_block_erase_21, |
| 9299 | }, { |
| 9300 | .eraseblocks = { {4 * 1024, 8192} }, |
| 9301 | .block_erase = spi_block_erase_20, |
| 9302 | }, { |
| 9303 | .eraseblocks = { {32 * 1024, 1024} }, |
| 9304 | .block_erase = spi_block_erase_5c, |
| 9305 | }, { |
| 9306 | .eraseblocks = { {32 * 1024, 1024} }, |
| 9307 | .block_erase = spi_block_erase_52, |
| 9308 | }, { |
| 9309 | .eraseblocks = { {64 * 1024, 512} }, |
| 9310 | .block_erase = spi_block_erase_dc, |
| 9311 | }, { |
| 9312 | .eraseblocks = { {64 * 1024, 512} }, |
| 9313 | .block_erase = spi_block_erase_d8, |
| 9314 | }, { |
| 9315 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 9316 | .block_erase = spi_block_erase_60, |
| 9317 | }, { |
| 9318 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 9319 | .block_erase = spi_block_erase_c7, |
| 9320 | } |
| 9321 | }, |
| 9322 | /* TODO: security register */ |
| 9323 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9324 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9325 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 9326 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9327 | .voltage = {1650, 2000}, |
| 9328 | }, |
| 9329 | |
| 9330 | { |
| 9331 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9332 | .name = "MX25U3235E/F", |
| 9333 | .bustype = BUS_SPI, |
| 9334 | .manufacture_id = MACRONIX_ID, |
| 9335 | .model_id = MACRONIX_MX25U3235E, |
| 9336 | .total_size = 4096, |
| 9337 | .page_size = 256, |
| 9338 | /* F model supports SFDP */ |
| 9339 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 9340 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 9341 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 9342 | .tested = TEST_OK_PREW, |
| 9343 | .probe = probe_spi_rdid, |
| 9344 | .probe_timing = TIMING_ZERO, |
| 9345 | .block_erasers = |
| 9346 | { |
| 9347 | { |
| 9348 | .eraseblocks = { {4 * 1024, 1024} }, |
| 9349 | .block_erase = spi_block_erase_20, |
| 9350 | }, { |
| 9351 | .eraseblocks = { {32 * 1024, 128} }, |
| 9352 | .block_erase = spi_block_erase_52, |
| 9353 | }, { |
| 9354 | .eraseblocks = { {64 * 1024, 64} }, |
| 9355 | .block_erase = spi_block_erase_d8, |
| 9356 | }, { |
| 9357 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9358 | .block_erase = spi_block_erase_60, |
| 9359 | }, { |
| 9360 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9361 | .block_erase = spi_block_erase_c7, |
| 9362 | } |
| 9363 | }, |
| 9364 | /* TODO: security register */ |
| 9365 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9366 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9367 | .write = spi_chip_write_256, |
| 9368 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9369 | .voltage = {1650, 2000}, |
| 9370 | }, |
| 9371 | |
| 9372 | { |
| 9373 | .vendor = "Macronix", |
Daniel Thompson | cadd420 | 2018-06-04 13:52:22 +0100 | [diff] [blame] | 9374 | .name = "MX25U51245G", |
| 9375 | .bustype = BUS_SPI, |
| 9376 | .manufacture_id = MACRONIX_ID, |
| 9377 | .model_id = MACRONIX_MX25U51245G, |
| 9378 | .total_size = 65536, |
| 9379 | .page_size = 256, |
| 9380 | /* OTP: 512B factory programmed and 512B customer programmed; enter 0xB1, exit 0xC1 */ |
| 9381 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA, |
| 9382 | .tested = TEST_OK_PREW, |
| 9383 | .probe = probe_spi_rdid, |
| 9384 | .probe_timing = TIMING_ZERO, |
| 9385 | .block_erasers = |
| 9386 | { |
| 9387 | { |
| 9388 | .eraseblocks = { {4 * 1024, 16384} }, |
| 9389 | .block_erase = spi_block_erase_21, |
| 9390 | }, { |
| 9391 | .eraseblocks = { {4 * 1024, 16384} }, |
| 9392 | .block_erase = spi_block_erase_20, |
| 9393 | }, { |
| 9394 | .eraseblocks = { {32 * 1024, 2048} }, |
| 9395 | .block_erase = spi_block_erase_5c, |
| 9396 | }, { |
| 9397 | .eraseblocks = { {32 * 1024, 2048} }, |
| 9398 | .block_erase = spi_block_erase_52, |
| 9399 | }, { |
| 9400 | .eraseblocks = { {64 * 1024, 1024} }, |
| 9401 | .block_erase = spi_block_erase_dc, |
| 9402 | }, { |
| 9403 | .eraseblocks = { {64 * 1024, 1024} }, |
| 9404 | .block_erase = spi_block_erase_d8, |
| 9405 | }, { |
| 9406 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 9407 | .block_erase = spi_block_erase_60, |
| 9408 | }, { |
| 9409 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 9410 | .block_erase = spi_block_erase_c7, |
| 9411 | } |
| 9412 | }, |
| 9413 | /* TODO: security register */ |
| 9414 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9415 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9416 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 9417 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9418 | .voltage = {1650, 2000}, |
| 9419 | }, |
| 9420 | |
| 9421 | { |
| 9422 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9423 | .name = "MX25U6435E/F", |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 9424 | .bustype = BUS_SPI, |
| 9425 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9426 | .model_id = MACRONIX_MX25U6435E, |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 9427 | .total_size = 8192, |
| 9428 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9429 | /* F model supports SFDP */ |
| 9430 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 9431 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 9432 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 9433 | .tested = TEST_OK_PREW, |
| 9434 | .probe = probe_spi_rdid, |
| 9435 | .probe_timing = TIMING_ZERO, |
| 9436 | .block_erasers = |
| 9437 | { |
| 9438 | { |
| 9439 | .eraseblocks = { {4 * 1024, 2048} }, |
| 9440 | .block_erase = spi_block_erase_20, |
| 9441 | }, { |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 9442 | .eraseblocks = { {32 * 1024, 256} }, |
| 9443 | .block_erase = spi_block_erase_52, |
| 9444 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9445 | .eraseblocks = { {64 * 1024, 128} }, |
| 9446 | .block_erase = spi_block_erase_d8, |
| 9447 | }, { |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 9448 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9449 | .block_erase = spi_block_erase_60, |
| 9450 | }, { |
| 9451 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9452 | .block_erase = spi_block_erase_c7, |
| 9453 | } |
| 9454 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9455 | /* TODO: security register */ |
Nathan Rennie-Waldock | 5a7f942 | 2018-08-10 15:35:23 +0100 | [diff] [blame] | 9456 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9457 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9458 | .write = spi_chip_write_256, |
| 9459 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9460 | .voltage = {1650, 2000}, |
| 9461 | }, |
| 9462 | |
| 9463 | { |
| 9464 | .vendor = "Macronix", |
| 9465 | .name = "MX25U8032E", |
| 9466 | .bustype = BUS_SPI, |
| 9467 | .manufacture_id = MACRONIX_ID, |
| 9468 | .model_id = MACRONIX_MX25U8032E, |
| 9469 | .total_size = 1024, |
| 9470 | .page_size = 256, |
| 9471 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 9472 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9473 | .tested = TEST_OK_PREW, |
| 9474 | .probe = probe_spi_rdid, |
| 9475 | .probe_timing = TIMING_ZERO, |
| 9476 | .block_erasers = |
| 9477 | { |
| 9478 | { |
| 9479 | .eraseblocks = { {4 * 1024, 256} }, |
| 9480 | .block_erase = spi_block_erase_20, |
| 9481 | }, { |
| 9482 | .eraseblocks = { {32 * 1024, 32} }, |
| 9483 | .block_erase = spi_block_erase_52, |
| 9484 | }, { |
| 9485 | .eraseblocks = { {64 * 1024, 16} }, |
| 9486 | .block_erase = spi_block_erase_d8, |
| 9487 | }, { |
| 9488 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9489 | .block_erase = spi_block_erase_60, |
| 9490 | }, { |
| 9491 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9492 | .block_erase = spi_block_erase_c7, |
| 9493 | } |
| 9494 | }, |
| 9495 | /* TODO: security register */ |
| 9496 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9497 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9498 | .write = spi_chip_write_256, |
| 9499 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9500 | .voltage = {1650, 2000}, |
Nathan Rennie-Waldock | 5a7f942 | 2018-08-10 15:35:23 +0100 | [diff] [blame] | 9501 | }, |
| 9502 | |
| 9503 | { |
| 9504 | .vendor = "Macronix", |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9505 | .name = "MX29F001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9506 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9507 | .manufacture_id = MACRONIX_ID, |
| 9508 | .model_id = MACRONIX_MX29F001B, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9509 | .total_size = 128, |
| 9510 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9511 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9512 | .tested = TEST_UNTESTED, |
| 9513 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 9514 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9515 | .block_erasers = |
| 9516 | { |
| 9517 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 9518 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9519 | {8 * 1024, 1}, |
| 9520 | {4 * 1024, 2}, |
| 9521 | {8 * 1024, 2}, |
| 9522 | {32 * 1024, 1}, |
| 9523 | {64 * 1024, 1}, |
| 9524 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9525 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9526 | }, { |
| 9527 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9528 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9529 | } |
| 9530 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 9531 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9532 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9533 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9534 | }, |
| 9535 | |
| 9536 | { |
| 9537 | .vendor = "Macronix", |
| 9538 | .name = "MX29F001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9539 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9540 | .manufacture_id = MACRONIX_ID, |
| 9541 | .model_id = MACRONIX_MX29F001T, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9542 | .total_size = 128, |
| 9543 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9544 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stefan Tauner | 74c6ec6 | 2011-05-18 01:31:46 +0000 | [diff] [blame] | 9545 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9546 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 9547 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9548 | .block_erasers = |
| 9549 | { |
| 9550 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 9551 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9552 | {64 * 1024, 1}, |
| 9553 | {32 * 1024, 1}, |
| 9554 | {8 * 1024, 2}, |
| 9555 | {4 * 1024, 2}, |
| 9556 | {8 * 1024, 1}, |
| 9557 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9558 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9559 | }, { |
| 9560 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9561 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9562 | } |
| 9563 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 9564 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9565 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9566 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9567 | }, |
| 9568 | |
| 9569 | { |
| 9570 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 9571 | .name = "MX29F002(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9572 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9573 | .manufacture_id = MACRONIX_ID, |
| 9574 | .model_id = MACRONIX_MX29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9575 | .total_size = 256, |
| 9576 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9577 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9578 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9579 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 9580 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9581 | .block_erasers = |
| 9582 | { |
| 9583 | { |
| 9584 | .eraseblocks = { |
| 9585 | {16 * 1024, 1}, |
| 9586 | {8 * 1024, 2}, |
| 9587 | {32 * 1024, 1}, |
| 9588 | {64 * 1024, 3}, |
| 9589 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9590 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9591 | }, { |
| 9592 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9593 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9594 | }, |
| 9595 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 9596 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9597 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9598 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9599 | }, |
| 9600 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9601 | { |
| 9602 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 9603 | .name = "MX29F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9604 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9605 | .manufacture_id = MACRONIX_ID, |
| 9606 | .model_id = MACRONIX_MX29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9607 | .total_size = 256, |
| 9608 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9609 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 9610 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9611 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 9612 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9613 | .block_erasers = |
| 9614 | { |
| 9615 | { |
| 9616 | .eraseblocks = { |
| 9617 | {64 * 1024, 3}, |
| 9618 | {32 * 1024, 1}, |
| 9619 | {8 * 1024, 2}, |
| 9620 | {16 * 1024, 1}, |
| 9621 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9622 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9623 | }, { |
| 9624 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9625 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9626 | }, |
| 9627 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 9628 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9629 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9630 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9631 | }, |
| 9632 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9633 | { |
| 9634 | .vendor = "Macronix", |
Daniele Forsi | 6a18a93 | 2014-07-13 14:53:45 +0000 | [diff] [blame] | 9635 | .name = "MX29F022(N)B", |
| 9636 | .bustype = BUS_PARALLEL, |
| 9637 | .manufacture_id = MACRONIX_ID, |
| 9638 | .model_id = MACRONIX_MX29F022B, |
| 9639 | .total_size = 256, |
| 9640 | .page_size = 0, /* unused */ |
| 9641 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9642 | .tested = TEST_UNTESTED, |
| 9643 | .probe = probe_jedec, |
| 9644 | .probe_timing = TIMING_ZERO, |
| 9645 | .block_erasers = |
| 9646 | { |
| 9647 | { |
| 9648 | .eraseblocks = { |
| 9649 | {16 * 1024, 1}, |
| 9650 | {8 * 1024, 2}, |
| 9651 | {32 * 1024, 1}, |
| 9652 | {64 * 1024, 3}, |
| 9653 | }, |
| 9654 | .block_erase = erase_sector_jedec, |
| 9655 | }, { |
| 9656 | .eraseblocks = { {256 * 1024, 1} }, |
| 9657 | .block_erase = erase_chip_block_jedec, |
| 9658 | } |
| 9659 | }, |
| 9660 | .write = write_jedec_1, |
| 9661 | .read = read_memmapped, |
| 9662 | .voltage = {4500, 5500}, |
| 9663 | }, |
| 9664 | |
| 9665 | { |
| 9666 | .vendor = "Macronix", |
| 9667 | .name = "MX29F022(N)T", |
| 9668 | .bustype = BUS_PARALLEL, |
| 9669 | .manufacture_id = MACRONIX_ID, |
| 9670 | .model_id = MACRONIX_MX29F022T, |
| 9671 | .total_size = 256, |
| 9672 | .page_size = 0, /* unused */ |
| 9673 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9674 | .tested = TEST_OK_PREW, |
| 9675 | .probe = probe_jedec, |
| 9676 | .probe_timing = TIMING_ZERO, |
| 9677 | .block_erasers = |
| 9678 | { |
| 9679 | { |
| 9680 | .eraseblocks = { |
| 9681 | {64 * 1024, 3}, |
| 9682 | {32 * 1024, 1}, |
| 9683 | {8 * 1024, 2}, |
| 9684 | {16 * 1024, 1}, |
| 9685 | }, |
| 9686 | .block_erase = erase_sector_jedec, |
| 9687 | }, { |
| 9688 | .eraseblocks = { {256 * 1024, 1} }, |
| 9689 | .block_erase = erase_chip_block_jedec, |
| 9690 | } |
| 9691 | }, |
| 9692 | .write = write_jedec_1, |
| 9693 | .read = read_memmapped, |
| 9694 | .voltage = {4500, 5500}, |
| 9695 | }, |
| 9696 | |
| 9697 | { |
| 9698 | .vendor = "Macronix", |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 9699 | .name = "MX29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9700 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 9701 | .manufacture_id = MACRONIX_ID, |
| 9702 | .model_id = MACRONIX_MX29F040, |
| 9703 | .total_size = 512, |
| 9704 | .page_size = 64 * 1024, |
| 9705 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9706 | .tested = TEST_UNTESTED, |
| 9707 | .probe = probe_jedec, |
| 9708 | .probe_timing = TIMING_ZERO, |
| 9709 | .block_erasers = |
| 9710 | { |
| 9711 | { |
| 9712 | .eraseblocks = { {64 * 1024, 8} }, |
| 9713 | .block_erase = erase_sector_jedec, |
| 9714 | }, { |
| 9715 | .eraseblocks = { {512 * 1024, 1} }, |
| 9716 | .block_erase = erase_chip_block_jedec, |
| 9717 | }, |
| 9718 | }, |
| 9719 | .write = write_jedec_1, |
| 9720 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 9721 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 9722 | }, |
| 9723 | |
| 9724 | { |
| 9725 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9726 | .name = "MX29GL128F", |
| 9727 | .bustype = BUS_PARALLEL, |
| 9728 | .manufacture_id = MACRONIX_ID, |
| 9729 | .model_id = MACRONIX_MX29GL128F, |
| 9730 | .total_size = 16384, |
| 9731 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9732 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9733 | .tested = TEST_UNTESTED, |
| 9734 | .probe = probe_jedec_29gl, |
| 9735 | .probe_timing = TIMING_ZERO, |
| 9736 | .block_erasers = |
| 9737 | { |
| 9738 | { |
| 9739 | .eraseblocks = { {128 * 1024, 128} }, |
| 9740 | .block_erase = erase_sector_jedec, |
| 9741 | }, { |
| 9742 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 9743 | .block_erase = erase_chip_block_jedec, |
| 9744 | }, |
| 9745 | }, |
| 9746 | .write = write_jedec_1, |
| 9747 | .read = read_memmapped, |
| 9748 | .voltage = {2700, 3600}, |
| 9749 | }, |
| 9750 | |
| 9751 | { |
| 9752 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 9753 | .name = "MX29GL320EB", |
| 9754 | .bustype = BUS_PARALLEL, |
| 9755 | .manufacture_id = MACRONIX_ID, |
| 9756 | .model_id = MACRONIX_MX29GL320EB, |
| 9757 | .total_size = 4096, |
| 9758 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9759 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9760 | .tested = TEST_UNTESTED, |
| 9761 | .probe = probe_jedec_29gl, |
| 9762 | .probe_timing = TIMING_ZERO, |
| 9763 | .block_erasers = |
| 9764 | { |
| 9765 | { |
| 9766 | .eraseblocks = { |
| 9767 | {8 * 1024, 8}, |
| 9768 | {64 * 1024, 63}, |
| 9769 | }, |
| 9770 | .block_erase = erase_sector_jedec, |
| 9771 | }, { |
| 9772 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9773 | .block_erase = erase_chip_block_jedec, |
| 9774 | }, |
| 9775 | }, |
| 9776 | .write = write_jedec_1, |
| 9777 | .read = read_memmapped, |
| 9778 | .voltage = {2700, 3600}, |
| 9779 | }, |
| 9780 | |
| 9781 | { |
| 9782 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9783 | .name = "MX29GL320EH/L", |
| 9784 | .bustype = BUS_PARALLEL, |
| 9785 | .manufacture_id = MACRONIX_ID, |
| 9786 | .model_id = MACRONIX_MX29GL320EHL, |
| 9787 | .total_size = 4096, |
| 9788 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9789 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9790 | .tested = TEST_UNTESTED, |
| 9791 | .probe = probe_jedec_29gl, |
| 9792 | .probe_timing = TIMING_ZERO, |
| 9793 | .block_erasers = |
| 9794 | { |
| 9795 | { |
| 9796 | .eraseblocks = { {64 * 1024, 64} }, |
| 9797 | .block_erase = erase_sector_jedec, |
| 9798 | }, { |
| 9799 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9800 | .block_erase = erase_chip_block_jedec, |
| 9801 | }, |
| 9802 | }, |
| 9803 | .write = write_jedec_1, |
| 9804 | .read = read_memmapped, |
| 9805 | .voltage = {2700, 3600}, |
| 9806 | }, |
| 9807 | |
| 9808 | { |
| 9809 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 9810 | .name = "MX29GL320ET", |
| 9811 | .bustype = BUS_PARALLEL, |
| 9812 | .manufacture_id = MACRONIX_ID, |
| 9813 | .model_id = MACRONIX_MX29GL320ET, |
| 9814 | .total_size = 4096, |
| 9815 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9816 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9817 | .tested = TEST_UNTESTED, |
| 9818 | .probe = probe_jedec_29gl, |
| 9819 | .probe_timing = TIMING_ZERO, |
| 9820 | .block_erasers = |
| 9821 | { |
| 9822 | { |
| 9823 | .eraseblocks = { |
| 9824 | {64 * 1024, 63}, |
| 9825 | {8 * 1024, 8}, |
| 9826 | }, |
| 9827 | .block_erase = erase_sector_jedec, |
| 9828 | }, { |
| 9829 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9830 | .block_erase = erase_chip_block_jedec, |
| 9831 | }, |
| 9832 | }, |
| 9833 | .write = write_jedec_1, |
| 9834 | .read = read_memmapped, |
| 9835 | .voltage = {2700, 3600}, |
| 9836 | }, |
| 9837 | |
| 9838 | { |
| 9839 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 9840 | .name = "MX29GL640EB", |
| 9841 | .bustype = BUS_PARALLEL, |
| 9842 | .manufacture_id = MACRONIX_ID, |
| 9843 | .model_id = MACRONIX_MX29GL640EB, |
| 9844 | .total_size = 8192, |
| 9845 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9846 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9847 | .tested = TEST_UNTESTED, |
| 9848 | .probe = probe_jedec_29gl, |
| 9849 | .probe_timing = TIMING_ZERO, |
| 9850 | .block_erasers = |
| 9851 | { |
| 9852 | { |
| 9853 | .eraseblocks = { |
| 9854 | {8 * 1024, 8}, |
| 9855 | {64 * 1024, 127}, |
| 9856 | }, |
| 9857 | .block_erase = erase_sector_jedec, |
| 9858 | }, { |
| 9859 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9860 | .block_erase = erase_chip_block_jedec, |
| 9861 | }, |
| 9862 | }, |
| 9863 | .write = write_jedec_1, |
| 9864 | .read = read_memmapped, |
| 9865 | .voltage = {2700, 3600}, |
| 9866 | }, |
| 9867 | |
| 9868 | { |
| 9869 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9870 | .name = "MX29GL640EH/L", |
| 9871 | .bustype = BUS_PARALLEL, |
| 9872 | .manufacture_id = MACRONIX_ID, |
| 9873 | .model_id = MACRONIX_MX29GL640EHL, |
| 9874 | .total_size = 8192, |
| 9875 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9876 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9877 | .tested = TEST_UNTESTED, |
| 9878 | .probe = probe_jedec_29gl, |
| 9879 | .probe_timing = TIMING_ZERO, |
| 9880 | .block_erasers = |
| 9881 | { |
| 9882 | { |
| 9883 | .eraseblocks = { {64 * 1024, 128} }, |
| 9884 | .block_erase = erase_sector_jedec, |
| 9885 | }, { |
| 9886 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9887 | .block_erase = erase_chip_block_jedec, |
| 9888 | }, |
| 9889 | }, |
| 9890 | .write = write_jedec_1, |
| 9891 | .read = read_memmapped, |
| 9892 | .voltage = {2700, 3600}, |
| 9893 | }, |
| 9894 | |
| 9895 | { |
| 9896 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 9897 | .name = "MX29GL640ET", |
| 9898 | .bustype = BUS_PARALLEL, |
| 9899 | .manufacture_id = MACRONIX_ID, |
| 9900 | .model_id = MACRONIX_MX29GL640ET, |
| 9901 | .total_size = 8192, |
| 9902 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9903 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9904 | .tested = TEST_UNTESTED, |
| 9905 | .probe = probe_jedec_29gl, |
| 9906 | .probe_timing = TIMING_ZERO, |
| 9907 | .block_erasers = |
| 9908 | { |
| 9909 | { |
| 9910 | .eraseblocks = { |
| 9911 | {64 * 1024, 127}, |
| 9912 | {8 * 1024, 8}, |
| 9913 | }, |
| 9914 | .block_erase = erase_sector_jedec, |
| 9915 | }, { |
| 9916 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9917 | .block_erase = erase_chip_block_jedec, |
| 9918 | }, |
| 9919 | }, |
| 9920 | .write = write_jedec_1, |
| 9921 | .read = read_memmapped, |
| 9922 | .voltage = {2700, 3600}, |
| 9923 | }, |
| 9924 | |
| 9925 | { |
| 9926 | .vendor = "Macronix", |
Carl-Daniel Hailfinger | 350a0c3 | 2009-07-24 13:59:27 +0000 | [diff] [blame] | 9927 | .name = "MX29LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9928 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9929 | .manufacture_id = MACRONIX_ID, |
| 9930 | .model_id = MACRONIX_MX29LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9931 | .total_size = 512, |
| 9932 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9933 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9934 | .tested = TEST_UNTESTED, |
| 9935 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 9936 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9937 | .block_erasers = |
| 9938 | { |
| 9939 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 9940 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9941 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9942 | }, { |
| 9943 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9944 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9945 | }, |
| 9946 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 9947 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9948 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9949 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 7de8639 | 2008-12-10 10:32:05 +0000 | [diff] [blame] | 9950 | }, |
| 9951 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9952 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9953 | .vendor = "Macronix", |
Hemanth Guruva Reddy | a136d42 | 2019-07-11 11:08:27 +0200 | [diff] [blame] | 9954 | .name = "MX66L51235F/MX25L51245G", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9955 | .bustype = BUS_SPI, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9956 | .manufacture_id = MACRONIX_ID, |
| 9957 | .model_id = MACRONIX_MX66L51235F, |
| 9958 | .total_size = 65536, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9959 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9960 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 9961 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9962 | .tested = TEST_OK_PREW, |
| 9963 | .probe = probe_spi_rdid, |
| 9964 | .probe_timing = TIMING_ZERO, |
| 9965 | .block_erasers = |
| 9966 | { |
| 9967 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9968 | .eraseblocks = { {4 * 1024, 16384} }, |
| 9969 | .block_erase = spi_block_erase_21, |
| 9970 | }, { |
| 9971 | .eraseblocks = { {4 * 1024, 16384} }, |
| 9972 | .block_erase = spi_block_erase_20, |
| 9973 | }, { |
| 9974 | .eraseblocks = { {32 * 1024, 2048} }, |
| 9975 | .block_erase = spi_block_erase_5c, |
| 9976 | }, { |
| 9977 | .eraseblocks = { {32 * 1024, 2048} }, |
| 9978 | .block_erase = spi_block_erase_52, |
| 9979 | }, { |
| 9980 | .eraseblocks = { {64 * 1024, 1024} }, |
| 9981 | .block_erase = spi_block_erase_dc, |
| 9982 | }, { |
| 9983 | .eraseblocks = { {64 * 1024, 1024} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9984 | .block_erase = spi_block_erase_d8, |
| 9985 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9986 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 9987 | .block_erase = spi_block_erase_60, |
| 9988 | }, { |
| 9989 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9990 | .block_erase = spi_block_erase_c7, |
| 9991 | } |
| 9992 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9993 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
| 9994 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9995 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9996 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9997 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9998 | .voltage = {2700, 3600}, |
| 9999 | }, |
| 10000 | |
| 10001 | /* The ST M25P05 is a bit of a problem. It has the same ID as the |
| 10002 | * ST M25P05-A in RES mode, but supports only 128 byte writes instead |
| 10003 | * of 256 byte writes. We rely heavily on the fact that probe_spi_res1 |
| 10004 | * only is successful if RDID does not work. |
| 10005 | */ |
| 10006 | { |
| 10007 | .vendor = "Micron/Numonyx/ST", |
| 10008 | .name = "M25P05", |
| 10009 | .bustype = BUS_SPI, |
| 10010 | .manufacture_id = 0, /* Not used. */ |
| 10011 | .model_id = ST_M25P05_RES, |
| 10012 | .total_size = 64, |
| 10013 | .page_size = 256, |
| 10014 | .feature_bits = FEATURE_WRSR_WREN, |
| 10015 | .tested = TEST_UNTESTED, |
| 10016 | .probe = probe_spi_res1, |
| 10017 | .probe_timing = TIMING_ZERO, |
| 10018 | .block_erasers = |
| 10019 | { |
| 10020 | { |
| 10021 | .eraseblocks = { {32 * 1024, 2} }, |
| 10022 | .block_erase = spi_block_erase_d8, |
| 10023 | }, { |
| 10024 | .eraseblocks = { {64 * 1024, 1} }, |
| 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_1, /* 128 */ |
| 10031 | .read = spi_chip_read, |
| 10032 | .voltage = {2700, 3600}, |
| 10033 | }, |
| 10034 | |
| 10035 | { |
| 10036 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10037 | .name = "M25P05-A", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10038 | .bustype = BUS_SPI, |
| 10039 | .manufacture_id = ST_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10040 | .model_id = ST_M25P05A, |
| 10041 | .total_size = 64, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10042 | .page_size = 256, |
| 10043 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 10044 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10045 | .probe = probe_spi_rdid, |
| 10046 | .probe_timing = TIMING_ZERO, |
| 10047 | .block_erasers = |
| 10048 | { |
| 10049 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10050 | .eraseblocks = { {32 * 1024, 2} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10051 | .block_erase = spi_block_erase_d8, |
| 10052 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10053 | .eraseblocks = { {64 * 1024, 1} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10054 | .block_erase = spi_block_erase_c7, |
| 10055 | } |
| 10056 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10057 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10058 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10059 | .write = spi_chip_write_256, |
| 10060 | .read = spi_chip_read, |
| 10061 | .voltage = {2700, 3600}, |
| 10062 | }, |
| 10063 | |
| 10064 | /* The ST M25P10 has the same problem as the M25P05. */ |
| 10065 | { |
| 10066 | .vendor = "Micron/Numonyx/ST", |
| 10067 | .name = "M25P10", |
| 10068 | .bustype = BUS_SPI, |
| 10069 | .manufacture_id = 0, /* Not used. */ |
| 10070 | .model_id = ST_M25P10_RES, |
| 10071 | .total_size = 128, |
| 10072 | .page_size = 256, |
| 10073 | .feature_bits = FEATURE_WRSR_WREN, |
| 10074 | .tested = TEST_UNTESTED, |
| 10075 | .probe = probe_spi_res1, |
| 10076 | .probe_timing = TIMING_ZERO, |
| 10077 | .block_erasers = |
| 10078 | { |
| 10079 | { |
| 10080 | .eraseblocks = { {32 * 1024, 4} }, |
| 10081 | .block_erase = spi_block_erase_d8, |
| 10082 | }, { |
| 10083 | .eraseblocks = { {128 * 1024, 1} }, |
| 10084 | .block_erase = spi_block_erase_c7, |
| 10085 | } |
| 10086 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10087 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10088 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10089 | .write = spi_chip_write_1, /* 128 */ |
| 10090 | .read = spi_chip_read, |
| 10091 | .voltage = {2700, 3600}, |
| 10092 | }, |
| 10093 | |
| 10094 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10095 | .vendor = "Micron/Numonyx/ST", |
| 10096 | .name = "M25P10-A", |
| 10097 | .bustype = BUS_SPI, |
| 10098 | .manufacture_id = ST_ID, |
| 10099 | .model_id = ST_M25P10A, |
| 10100 | .total_size = 128, |
| 10101 | .page_size = 256, |
| 10102 | .feature_bits = FEATURE_WRSR_WREN, |
| 10103 | .tested = TEST_OK_PREW, |
| 10104 | .probe = probe_spi_rdid, |
| 10105 | .probe_timing = TIMING_ZERO, |
| 10106 | .block_erasers = |
| 10107 | { |
| 10108 | { |
| 10109 | .eraseblocks = { {32 * 1024, 4} }, |
| 10110 | .block_erase = spi_block_erase_d8, |
| 10111 | }, { |
| 10112 | .eraseblocks = { {128 * 1024, 1} }, |
| 10113 | .block_erase = spi_block_erase_c7, |
| 10114 | } |
| 10115 | }, |
| 10116 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
| 10117 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10118 | .write = spi_chip_write_256, |
| 10119 | .read = spi_chip_read, |
| 10120 | .voltage = {2700, 3600}, |
| 10121 | }, |
| 10122 | |
| 10123 | { |
| 10124 | .vendor = "Micron/Numonyx/ST", |
| 10125 | .name = "M25P128", |
| 10126 | .bustype = BUS_SPI, |
| 10127 | .manufacture_id = ST_ID, |
| 10128 | .model_id = ST_M25P128, |
| 10129 | .total_size = 16384, |
| 10130 | .page_size = 256, |
| 10131 | .feature_bits = FEATURE_WRSR_WREN, |
| 10132 | .tested = TEST_OK_PREW, |
| 10133 | .probe = probe_spi_rdid, |
| 10134 | .probe_timing = TIMING_ZERO, |
| 10135 | .block_erasers = |
| 10136 | { |
| 10137 | { |
| 10138 | .eraseblocks = { {256 * 1024, 64} }, |
| 10139 | .block_erase = spi_block_erase_d8, |
| 10140 | }, { |
| 10141 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 10142 | .block_erase = spi_block_erase_c7, |
| 10143 | } |
| 10144 | }, |
| 10145 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
| 10146 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10147 | .write = spi_chip_write_256, |
| 10148 | .read = spi_chip_read, |
| 10149 | .voltage = {2700, 3600}, |
| 10150 | }, |
| 10151 | |
| 10152 | { |
| 10153 | .vendor = "Micron/Numonyx/ST", |
| 10154 | .name = "M25P16", |
| 10155 | .bustype = BUS_SPI, |
| 10156 | .manufacture_id = ST_ID, |
| 10157 | .model_id = ST_M25P16, |
| 10158 | .total_size = 2048, |
| 10159 | .page_size = 256, |
| 10160 | .feature_bits = FEATURE_WRSR_WREN, |
| 10161 | .tested = TEST_OK_PREW, |
| 10162 | .probe = probe_spi_rdid, |
| 10163 | .probe_timing = TIMING_ZERO, |
| 10164 | .block_erasers = |
| 10165 | { |
| 10166 | { |
| 10167 | .eraseblocks = { {64 * 1024, 32} }, |
| 10168 | .block_erase = spi_block_erase_d8, |
| 10169 | }, { |
| 10170 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10171 | .block_erase = spi_block_erase_c7, |
| 10172 | } |
| 10173 | }, |
| 10174 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
| 10175 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10176 | .write = spi_chip_write_256, |
| 10177 | .read = spi_chip_read, |
| 10178 | .voltage = {2700, 3600}, |
| 10179 | }, |
| 10180 | |
| 10181 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10182 | .vendor = "Micron/Numonyx/ST", /* Numonyx */ |
| 10183 | .name = "M25P20", |
| 10184 | .bustype = BUS_SPI, |
| 10185 | .manufacture_id = ST_ID, |
| 10186 | .model_id = ST_M25P20, |
| 10187 | .total_size = 256, |
| 10188 | .page_size = 256, |
| 10189 | .feature_bits = FEATURE_WRSR_WREN, |
| 10190 | .tested = TEST_UNTESTED, |
| 10191 | .probe = probe_spi_rdid, |
| 10192 | .probe_timing = TIMING_ZERO, |
| 10193 | .block_erasers = |
| 10194 | { |
| 10195 | { |
| 10196 | .eraseblocks = { {64 * 1024, 4} }, |
| 10197 | .block_erase = spi_block_erase_d8, |
| 10198 | }, { |
| 10199 | .eraseblocks = { {256 * 1024, 1} }, |
| 10200 | .block_erase = spi_block_erase_c7, |
| 10201 | } |
| 10202 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10203 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10204 | .unlock = spi_disable_blockprotect, |
| 10205 | .write = spi_chip_write_256, |
| 10206 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10207 | .voltage = {2700, 3600}, |
| 10208 | }, |
| 10209 | |
| 10210 | { |
| 10211 | .vendor = "Micron/Numonyx/ST", |
| 10212 | .name = "M25P20-old", |
| 10213 | .bustype = BUS_SPI, |
| 10214 | .manufacture_id = 0, /* Not used. */ |
| 10215 | .model_id = ST_M25P20_RES, |
| 10216 | .total_size = 256, |
| 10217 | .page_size = 256, |
| 10218 | .feature_bits = FEATURE_WRSR_WREN, |
| 10219 | .tested = TEST_OK_PREW, |
| 10220 | .probe = probe_spi_res1, |
| 10221 | .probe_timing = TIMING_ZERO, |
| 10222 | .block_erasers = |
| 10223 | { |
| 10224 | { |
| 10225 | .eraseblocks = { {64 * 1024, 4} }, |
| 10226 | .block_erase = spi_block_erase_d8, |
| 10227 | }, { |
| 10228 | .eraseblocks = { {256 * 1024, 1} }, |
| 10229 | .block_erase = spi_block_erase_c7, |
| 10230 | } |
| 10231 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10232 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10233 | .unlock = spi_disable_blockprotect, |
| 10234 | .write = spi_chip_write_256, |
| 10235 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10236 | .voltage = {2700, 3600}, |
| 10237 | }, |
| 10238 | |
| 10239 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10240 | .vendor = "Micron/Numonyx/ST", |
| 10241 | .name = "M25P32", |
| 10242 | .bustype = BUS_SPI, |
| 10243 | .manufacture_id = ST_ID, |
| 10244 | .model_id = ST_M25P32, |
| 10245 | .total_size = 4096, |
| 10246 | .page_size = 256, |
| 10247 | .feature_bits = FEATURE_WRSR_WREN, |
| 10248 | .tested = TEST_OK_PREW, |
| 10249 | .probe = probe_spi_rdid, |
| 10250 | .probe_timing = TIMING_ZERO, |
| 10251 | .block_erasers = |
| 10252 | { |
| 10253 | { |
| 10254 | .eraseblocks = { {64 * 1024, 64} }, |
| 10255 | .block_erase = spi_block_erase_d8, |
| 10256 | }, { |
| 10257 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10258 | .block_erase = spi_block_erase_c7, |
| 10259 | } |
| 10260 | }, |
| 10261 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
| 10262 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10263 | .write = spi_chip_write_256, |
| 10264 | .read = spi_chip_read, |
| 10265 | .voltage = {2700, 3600}, |
| 10266 | }, |
| 10267 | |
| 10268 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10269 | .vendor = "Micron/Numonyx/ST", /* Numonyx */ |
| 10270 | .name = "M25P40", |
| 10271 | .bustype = BUS_SPI, |
| 10272 | .manufacture_id = ST_ID, |
| 10273 | .model_id = ST_M25P40, |
| 10274 | .total_size = 512, |
| 10275 | .page_size = 256, |
| 10276 | .feature_bits = FEATURE_WRSR_WREN, |
| 10277 | .tested = TEST_OK_PREW, |
| 10278 | .probe = probe_spi_rdid, |
| 10279 | .probe_timing = TIMING_ZERO, |
| 10280 | .block_erasers = |
| 10281 | { |
| 10282 | { |
| 10283 | .eraseblocks = { {64 * 1024, 8} }, |
| 10284 | .block_erase = spi_block_erase_d8, |
| 10285 | }, { |
| 10286 | .eraseblocks = { {512 * 1024, 1} }, |
| 10287 | .block_erase = spi_block_erase_c7, |
| 10288 | } |
| 10289 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10290 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10291 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10292 | .write = spi_chip_write_256, |
| 10293 | .read = spi_chip_read, |
| 10294 | .voltage = {2700, 3600}, |
| 10295 | }, |
| 10296 | |
| 10297 | { |
| 10298 | .vendor = "Micron/Numonyx/ST", |
| 10299 | .name = "M25P40-old", |
| 10300 | .bustype = BUS_SPI, |
| 10301 | .manufacture_id = 0, /* Not used. */ |
| 10302 | .model_id = ST_M25P40_RES, |
| 10303 | .total_size = 512, |
| 10304 | .page_size = 256, |
| 10305 | .feature_bits = FEATURE_WRSR_WREN, |
| 10306 | .tested = TEST_UNTESTED, |
| 10307 | .probe = probe_spi_res1, |
| 10308 | .probe_timing = TIMING_ZERO, |
| 10309 | .block_erasers = |
| 10310 | { |
| 10311 | { |
| 10312 | .eraseblocks = { {64 * 1024, 8} }, |
| 10313 | .block_erase = spi_block_erase_d8, |
| 10314 | }, { |
| 10315 | .eraseblocks = { {512 * 1024, 1} }, |
| 10316 | .block_erase = spi_block_erase_c7, |
| 10317 | } |
| 10318 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10319 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10320 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10321 | .write = spi_chip_write_256, |
| 10322 | .read = spi_chip_read, |
| 10323 | }, |
| 10324 | |
| 10325 | { |
| 10326 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10327 | .name = "M25P64", |
| 10328 | .bustype = BUS_SPI, |
| 10329 | .manufacture_id = ST_ID, |
| 10330 | .model_id = ST_M25P64, |
| 10331 | .total_size = 8192, |
| 10332 | .page_size = 256, |
| 10333 | .feature_bits = FEATURE_WRSR_WREN, |
| 10334 | .tested = TEST_OK_PREW, |
| 10335 | .probe = probe_spi_rdid, |
| 10336 | .probe_timing = TIMING_ZERO, |
| 10337 | .block_erasers = |
| 10338 | { |
| 10339 | { |
| 10340 | .eraseblocks = { {64 * 1024, 128} }, |
| 10341 | .block_erase = spi_block_erase_d8, |
| 10342 | }, { |
| 10343 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10344 | .block_erase = spi_block_erase_c7, |
| 10345 | } |
| 10346 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10347 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10348 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10349 | .write = spi_chip_write_256, |
| 10350 | .read = spi_chip_read, |
| 10351 | .voltage = {2700, 3600}, |
| 10352 | }, |
| 10353 | |
| 10354 | { |
| 10355 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10356 | .name = "M25P80", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10357 | .bustype = BUS_SPI, |
| 10358 | .manufacture_id = ST_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10359 | .model_id = ST_M25P80, |
| 10360 | .total_size = 1024, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10361 | .page_size = 256, |
| 10362 | .feature_bits = FEATURE_WRSR_WREN, |
| 10363 | .tested = TEST_OK_PREW, |
| 10364 | .probe = probe_spi_rdid, |
| 10365 | .probe_timing = TIMING_ZERO, |
| 10366 | .block_erasers = |
| 10367 | { |
| 10368 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10369 | .eraseblocks = { {64 * 1024, 16} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10370 | .block_erase = spi_block_erase_d8, |
| 10371 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10372 | .eraseblocks = { {1024 * 1024, 1} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10373 | .block_erase = spi_block_erase_c7, |
| 10374 | } |
| 10375 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10376 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10377 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10378 | .write = spi_chip_write_256, |
| 10379 | .read = spi_chip_read, |
| 10380 | .voltage = {2700, 3600}, |
| 10381 | }, |
| 10382 | |
| 10383 | { |
| 10384 | .vendor = "Micron/Numonyx/ST", |
| 10385 | .name = "M25PE10", |
| 10386 | .bustype = BUS_SPI, |
| 10387 | .manufacture_id = ST_ID, |
| 10388 | .model_id = ST_M25PE10, |
| 10389 | .total_size = 128, |
| 10390 | .page_size = 256, |
| 10391 | .feature_bits = FEATURE_WRSR_WREN, |
| 10392 | .tested = TEST_UNTESTED, |
| 10393 | .probe = probe_spi_rdid, |
| 10394 | .probe_timing = TIMING_ZERO, |
| 10395 | .block_erasers = |
| 10396 | { |
| 10397 | { |
| 10398 | .eraseblocks = { {4 * 1024, 32} }, |
| 10399 | .block_erase = spi_block_erase_20, |
| 10400 | }, { |
| 10401 | .eraseblocks = { {64 * 1024, 2} }, |
| 10402 | .block_erase = spi_block_erase_d8, |
| 10403 | }, { |
| 10404 | .eraseblocks = { {128 * 1024, 1} }, |
| 10405 | .block_erase = spi_block_erase_c7, |
| 10406 | } |
| 10407 | }, |
| 10408 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 10409 | .unlock = spi_disable_blockprotect, |
| 10410 | .write = spi_chip_write_256, |
| 10411 | .read = spi_chip_read, |
| 10412 | .voltage = {2700, 3600}, |
| 10413 | }, |
| 10414 | |
| 10415 | { |
| 10416 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10417 | .name = "M25PE16", |
| 10418 | .bustype = BUS_SPI, |
| 10419 | .manufacture_id = ST_ID, |
| 10420 | .model_id = ST_M25PE16, |
| 10421 | .total_size = 2048, |
| 10422 | .page_size = 256, |
| 10423 | .feature_bits = FEATURE_WRSR_WREN, |
| 10424 | .tested = TEST_UNTESTED, |
| 10425 | .probe = probe_spi_rdid, |
| 10426 | .probe_timing = TIMING_ZERO, |
| 10427 | .block_erasers = |
| 10428 | { |
| 10429 | { |
| 10430 | .eraseblocks = { {4 * 1024, 512} }, |
| 10431 | .block_erase = spi_block_erase_20, |
| 10432 | }, { |
| 10433 | .eraseblocks = { {64 * 1024, 32} }, |
| 10434 | .block_erase = spi_block_erase_d8, |
| 10435 | }, { |
| 10436 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10437 | .block_erase = spi_block_erase_c7, |
| 10438 | } |
| 10439 | }, |
| 10440 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 10441 | .unlock = spi_disable_blockprotect, |
| 10442 | .write = spi_chip_write_256, |
| 10443 | .read = spi_chip_read, |
| 10444 | .voltage = {2700, 3600}, |
| 10445 | }, |
| 10446 | |
| 10447 | { |
| 10448 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10449 | .name = "M25PE20", |
| 10450 | .bustype = BUS_SPI, |
| 10451 | .manufacture_id = ST_ID, |
| 10452 | .model_id = ST_M25PE20, |
| 10453 | .total_size = 256, |
| 10454 | .page_size = 256, |
| 10455 | .feature_bits = FEATURE_WRSR_WREN, |
| 10456 | .tested = TEST_UNTESTED, |
| 10457 | .probe = probe_spi_rdid, |
| 10458 | .probe_timing = TIMING_ZERO, |
| 10459 | .block_erasers = |
| 10460 | { |
| 10461 | { |
| 10462 | .eraseblocks = { {4 * 1024, 64} }, |
| 10463 | .block_erase = spi_block_erase_20, |
| 10464 | }, { |
| 10465 | .eraseblocks = { {64 * 1024, 4} }, |
| 10466 | .block_erase = spi_block_erase_d8, |
| 10467 | }, { |
| 10468 | .eraseblocks = { {256 * 1024, 1} }, |
| 10469 | .block_erase = spi_block_erase_c7, |
| 10470 | } |
| 10471 | }, |
| 10472 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 10473 | .unlock = spi_disable_blockprotect, |
| 10474 | .write = spi_chip_write_256, |
| 10475 | .read = spi_chip_read, |
| 10476 | .voltage = {2700, 3600}, |
| 10477 | }, |
| 10478 | |
| 10479 | { |
| 10480 | .vendor = "Micron/Numonyx/ST", |
| 10481 | .name = "M25PE40", |
| 10482 | .bustype = BUS_SPI, |
| 10483 | .manufacture_id = ST_ID, |
| 10484 | .model_id = ST_M25PE40, |
| 10485 | .total_size = 512, |
| 10486 | .page_size = 256, |
| 10487 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 10488 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10489 | .probe = probe_spi_rdid, |
| 10490 | .probe_timing = TIMING_ZERO, |
| 10491 | .block_erasers = |
| 10492 | { |
| 10493 | { |
| 10494 | .eraseblocks = { {4 * 1024, 128} }, |
| 10495 | .block_erase = spi_block_erase_20, |
| 10496 | }, { |
| 10497 | .eraseblocks = { {64 * 1024, 8} }, |
| 10498 | .block_erase = spi_block_erase_d8, |
| 10499 | }, { |
| 10500 | .eraseblocks = { {512 * 1024, 1} }, |
| 10501 | .block_erase = spi_block_erase_c7, |
| 10502 | } |
| 10503 | }, |
| 10504 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 10505 | .unlock = spi_disable_blockprotect, |
| 10506 | .write = spi_chip_write_256, |
| 10507 | .read = spi_chip_read, |
| 10508 | .voltage = {2700, 3600}, |
| 10509 | }, |
| 10510 | |
| 10511 | { |
| 10512 | .vendor = "Micron/Numonyx/ST", |
| 10513 | .name = "M25PE80", |
| 10514 | .bustype = BUS_SPI, |
| 10515 | .manufacture_id = ST_ID, |
| 10516 | .model_id = ST_M25PE80, |
| 10517 | .total_size = 1024, |
| 10518 | .page_size = 256, |
| 10519 | .feature_bits = FEATURE_WRSR_WREN, |
| 10520 | .tested = TEST_OK_PREW, |
| 10521 | .probe = probe_spi_rdid, |
| 10522 | .probe_timing = TIMING_ZERO, |
| 10523 | .block_erasers = |
| 10524 | { |
| 10525 | { |
| 10526 | .eraseblocks = { {4 * 1024, 256} }, |
| 10527 | .block_erase = spi_block_erase_20, |
| 10528 | }, { |
| 10529 | .eraseblocks = { {64 * 1024, 16} }, |
| 10530 | .block_erase = spi_block_erase_d8, |
| 10531 | }, { |
| 10532 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10533 | .block_erase = spi_block_erase_c7, |
| 10534 | } |
| 10535 | }, |
| 10536 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 10537 | .unlock = spi_disable_blockprotect, |
| 10538 | .write = spi_chip_write_256, |
| 10539 | .read = spi_chip_read, |
| 10540 | .voltage = {2700, 3600}, |
| 10541 | }, |
| 10542 | |
| 10543 | { |
| 10544 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10545 | .name = "M25PX16", |
| 10546 | .bustype = BUS_SPI, |
| 10547 | .manufacture_id = ST_ID, |
| 10548 | .model_id = ST_M25PX16, |
| 10549 | .total_size = 2048, |
| 10550 | .page_size = 256, |
| 10551 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 10552 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10553 | .tested = TEST_OK_PREW, |
| 10554 | .probe = probe_spi_rdid, |
| 10555 | .probe_timing = TIMING_ZERO, |
| 10556 | .block_erasers = |
| 10557 | { |
| 10558 | { |
| 10559 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 10560 | .block_erase = spi_block_erase_20, |
| 10561 | }, { |
| 10562 | .eraseblocks = { {64 * 1024, 32} }, |
| 10563 | .block_erase = spi_block_erase_d8, |
| 10564 | }, { |
| 10565 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10566 | .block_erase = spi_block_erase_c7, |
| 10567 | } |
| 10568 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10569 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10570 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 10571 | .write = spi_chip_write_256, |
| 10572 | .read = spi_chip_read, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 10573 | .voltage = {2300, 3600}, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10574 | }, |
| 10575 | |
| 10576 | { |
| 10577 | .vendor = "Micron/Numonyx/ST", |
| 10578 | .name = "M25PX32", |
| 10579 | .bustype = BUS_SPI, |
| 10580 | .manufacture_id = ST_ID, |
| 10581 | .model_id = ST_M25PX32, |
| 10582 | .total_size = 4096, |
| 10583 | .page_size = 256, |
| 10584 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 10585 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10586 | .tested = TEST_OK_PRE, |
| 10587 | .probe = probe_spi_rdid, |
| 10588 | .probe_timing = TIMING_ZERO, |
| 10589 | .block_erasers = |
| 10590 | { |
| 10591 | { |
| 10592 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 10593 | .block_erase = spi_block_erase_20, |
| 10594 | }, { |
| 10595 | .eraseblocks = { {64 * 1024, 64} }, |
| 10596 | .block_erase = spi_block_erase_d8, |
| 10597 | }, { |
| 10598 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10599 | .block_erase = spi_block_erase_c7, |
| 10600 | } |
| 10601 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10602 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10603 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 10604 | .write = spi_chip_write_256, |
| 10605 | .read = spi_chip_read, |
| 10606 | .voltage = {2700, 3600}, |
| 10607 | }, |
| 10608 | |
| 10609 | { |
| 10610 | .vendor = "Micron/Numonyx/ST", |
| 10611 | .name = "M25PX64", |
| 10612 | .bustype = BUS_SPI, |
| 10613 | .manufacture_id = ST_ID, |
| 10614 | .model_id = ST_M25PX64, |
| 10615 | .total_size = 8192, |
| 10616 | .page_size = 256, |
| 10617 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 10618 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 10619 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10620 | .probe = probe_spi_rdid, |
| 10621 | .probe_timing = TIMING_ZERO, |
| 10622 | .block_erasers = |
| 10623 | { |
| 10624 | { |
| 10625 | .eraseblocks = { { 4 * 1024, 2048 } }, |
| 10626 | .block_erase = spi_block_erase_20, |
| 10627 | }, { |
| 10628 | .eraseblocks = { {64 * 1024, 128} }, |
| 10629 | .block_erase = spi_block_erase_d8, |
| 10630 | }, { |
| 10631 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10632 | .block_erase = spi_block_erase_c7, |
| 10633 | } |
| 10634 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10635 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10636 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 10637 | .write = spi_chip_write_256, |
| 10638 | .read = spi_chip_read, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 10639 | .voltage = {2700, 3600}, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10640 | }, |
| 10641 | |
| 10642 | { |
| 10643 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10644 | .name = "M25PX80", |
| 10645 | .bustype = BUS_SPI, |
| 10646 | .manufacture_id = ST_ID, |
| 10647 | .model_id = ST_M25PX80, |
| 10648 | .total_size = 1024, |
| 10649 | .page_size = 256, |
| 10650 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10651 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10652 | .tested = TEST_OK_PREW, |
| 10653 | .probe = probe_spi_rdid, |
| 10654 | .probe_timing = TIMING_ZERO, |
| 10655 | .block_erasers = |
| 10656 | { |
| 10657 | { |
| 10658 | .eraseblocks = { { 4 * 1024, 256 } }, |
| 10659 | .block_erase = spi_block_erase_20, |
| 10660 | }, { |
| 10661 | .eraseblocks = { {64 * 1024, 16} }, |
| 10662 | .block_erase = spi_block_erase_d8, |
| 10663 | }, { |
| 10664 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10665 | .block_erase = spi_block_erase_c7, |
| 10666 | } |
| 10667 | }, |
| 10668 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
| 10669 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 10670 | .write = spi_chip_write_256, |
| 10671 | .read = spi_chip_read, |
| 10672 | .voltage = {2700, 3600}, |
| 10673 | }, |
| 10674 | |
| 10675 | { |
| 10676 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10677 | .name = "M45PE10", |
| 10678 | .bustype = BUS_SPI, |
| 10679 | .manufacture_id = ST_ID, |
| 10680 | .model_id = ST_M45PE10, |
| 10681 | .total_size = 128, |
| 10682 | .page_size = 256, |
| 10683 | .tested = TEST_UNTESTED, |
| 10684 | .probe = probe_spi_rdid, |
| 10685 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 10686 | .block_erasers = |
| 10687 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10688 | { |
| 10689 | .eraseblocks = { {256, 512} }, |
| 10690 | .block_erase = spi_block_erase_db, |
| 10691 | }, { |
| 10692 | .eraseblocks = { {64 * 1024, 2} }, |
| 10693 | .block_erase = spi_block_erase_d8, |
| 10694 | } |
| 10695 | }, |
| 10696 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 10697 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 10698 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 10699 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10700 | .voltage = {2700, 3600}, |
| 10701 | }, |
| 10702 | |
| 10703 | { |
| 10704 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10705 | .name = "M45PE16", |
| 10706 | .bustype = BUS_SPI, |
| 10707 | .manufacture_id = ST_ID, |
| 10708 | .model_id = ST_M45PE16, |
| 10709 | .total_size = 2048, |
| 10710 | .page_size = 256, |
| 10711 | .tested = TEST_UNTESTED, |
| 10712 | .probe = probe_spi_rdid, |
| 10713 | .probe_timing = TIMING_ZERO, |
| 10714 | .block_erasers = |
| 10715 | { |
| 10716 | { |
| 10717 | .eraseblocks = { {256, 8192} }, |
| 10718 | .block_erase = spi_block_erase_db, |
| 10719 | }, { |
| 10720 | .eraseblocks = { {64 * 1024, 32} }, |
| 10721 | .block_erase = spi_block_erase_d8, |
| 10722 | } |
| 10723 | }, |
| 10724 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 10725 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 10726 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 10727 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10728 | .voltage = {2700, 3600}, |
| 10729 | }, |
| 10730 | |
| 10731 | { |
| 10732 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10733 | .name = "M45PE20", |
| 10734 | .bustype = BUS_SPI, |
| 10735 | .manufacture_id = ST_ID, |
| 10736 | .model_id = ST_M45PE20, |
| 10737 | .total_size = 256, |
| 10738 | .page_size = 256, |
| 10739 | .tested = TEST_UNTESTED, |
| 10740 | .probe = probe_spi_rdid, |
| 10741 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 10742 | .block_erasers = |
| 10743 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10744 | { |
| 10745 | .eraseblocks = { {256, 1024} }, |
| 10746 | .block_erase = spi_block_erase_db, |
| 10747 | }, { |
| 10748 | .eraseblocks = { {64 * 1024, 4} }, |
| 10749 | .block_erase = spi_block_erase_d8, |
| 10750 | } |
| 10751 | }, |
| 10752 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 10753 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 10754 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 10755 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10756 | .voltage = {2700, 3600}, |
| 10757 | }, |
| 10758 | |
| 10759 | { |
| 10760 | .vendor = "Micron/Numonyx/ST", |
| 10761 | .name = "M45PE40", |
| 10762 | .bustype = BUS_SPI, |
| 10763 | .manufacture_id = ST_ID, |
| 10764 | .model_id = ST_M45PE40, |
| 10765 | .total_size = 512, |
| 10766 | .page_size = 256, |
| 10767 | .tested = TEST_UNTESTED, |
| 10768 | .probe = probe_spi_rdid, |
| 10769 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 10770 | .block_erasers = |
| 10771 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10772 | { |
| 10773 | .eraseblocks = { {256, 2048} }, |
| 10774 | .block_erase = spi_block_erase_db, |
| 10775 | }, { |
| 10776 | .eraseblocks = { {64 * 1024, 8} }, |
| 10777 | .block_erase = spi_block_erase_d8, |
| 10778 | } |
| 10779 | }, |
| 10780 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 10781 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 10782 | .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] | 10783 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10784 | .voltage = {2700, 3600}, |
| 10785 | }, |
| 10786 | |
| 10787 | { |
| 10788 | .vendor = "Micron/Numonyx/ST", |
| 10789 | .name = "M45PE80", |
| 10790 | .bustype = BUS_SPI, |
| 10791 | .manufacture_id = ST_ID, |
| 10792 | .model_id = ST_M45PE80, |
| 10793 | .total_size = 1024, |
| 10794 | .page_size = 256, |
| 10795 | .tested = TEST_UNTESTED, |
| 10796 | .probe = probe_spi_rdid, |
| 10797 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 10798 | .block_erasers = |
| 10799 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10800 | { |
| 10801 | .eraseblocks = { {256, 4096} }, |
| 10802 | .block_erase = spi_block_erase_db, |
| 10803 | }, { |
| 10804 | .eraseblocks = { {64 * 1024, 16} }, |
| 10805 | .block_erase = spi_block_erase_d8, |
| 10806 | } |
| 10807 | }, |
| 10808 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 10809 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 10810 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 10811 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10812 | .voltage = {2700, 3600}, |
| 10813 | }, |
| 10814 | |
| 10815 | { |
| 10816 | .vendor = "Micron/Numonyx/ST", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 10817 | .name = "N25Q00A..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 10818 | .bustype = BUS_SPI, |
| 10819 | .manufacture_id = ST_ID, |
| 10820 | .model_id = ST_N25Q00A__1G, |
| 10821 | .total_size = 131072, |
| 10822 | .page_size = 256, |
| 10823 | /* supports SFDP */ |
| 10824 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10825 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 10826 | .tested = TEST_UNTESTED, |
| 10827 | .probe = probe_spi_rdid, |
| 10828 | .probe_timing = TIMING_ZERO, |
| 10829 | .block_erasers = |
| 10830 | { |
| 10831 | { |
| 10832 | .eraseblocks = { {4 * 1024, 32768} }, |
| 10833 | .block_erase = spi_block_erase_21, |
| 10834 | }, { |
| 10835 | .eraseblocks = { {4 * 1024, 32768} }, |
| 10836 | .block_erase = spi_block_erase_20, |
| 10837 | }, { |
| 10838 | .eraseblocks = { {64 * 1024, 2048} }, |
| 10839 | .block_erase = spi_block_erase_dc, |
| 10840 | }, { |
| 10841 | .eraseblocks = { {64 * 1024, 2048} }, |
| 10842 | .block_erase = spi_block_erase_d8, |
| 10843 | }, { |
| 10844 | .eraseblocks = { {32768 * 1024, 4} }, |
| 10845 | .block_erase = spi_block_erase_c4, |
| 10846 | } |
| 10847 | }, |
| 10848 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10849 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10850 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10851 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10852 | .voltage = {1700, 2000}, |
| 10853 | }, |
| 10854 | |
| 10855 | { |
| 10856 | .vendor = "Micron/Numonyx/ST", |
| 10857 | .name = "N25Q00A..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */ |
| 10858 | .bustype = BUS_SPI, |
| 10859 | .manufacture_id = ST_ID, |
| 10860 | .model_id = ST_N25Q00A__3G, |
| 10861 | .total_size = 131072, |
| 10862 | .page_size = 256, |
| 10863 | /* supports SFDP */ |
| 10864 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10865 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 10866 | .tested = TEST_UNTESTED, |
| 10867 | .probe = probe_spi_rdid, |
| 10868 | .probe_timing = TIMING_ZERO, |
| 10869 | .block_erasers = |
| 10870 | { |
| 10871 | { |
| 10872 | .eraseblocks = { {4 * 1024, 32768} }, |
| 10873 | .block_erase = spi_block_erase_21, |
| 10874 | }, { |
| 10875 | .eraseblocks = { {4 * 1024, 32768} }, |
| 10876 | .block_erase = spi_block_erase_20, |
| 10877 | }, { |
| 10878 | .eraseblocks = { {64 * 1024, 2048} }, |
| 10879 | .block_erase = spi_block_erase_dc, |
| 10880 | }, { |
| 10881 | .eraseblocks = { {64 * 1024, 2048} }, |
| 10882 | .block_erase = spi_block_erase_d8, |
| 10883 | }, { |
| 10884 | .eraseblocks = { {32768 * 1024, 4} }, |
| 10885 | .block_erase = spi_block_erase_c4, |
| 10886 | } |
| 10887 | }, |
| 10888 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10889 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10890 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10891 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10892 | .voltage = {2700, 3600}, |
| 10893 | }, |
| 10894 | |
| 10895 | { |
| 10896 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10897 | .name = "N25Q016", |
| 10898 | .bustype = BUS_SPI, |
| 10899 | .manufacture_id = ST_ID, |
| 10900 | .model_id = ST_N25Q016__1E, |
| 10901 | .total_size = 2048, |
| 10902 | .page_size = 256, |
| 10903 | /* supports SFDP */ |
| 10904 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10905 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10906 | .tested = TEST_UNTESTED, |
| 10907 | .probe = probe_spi_rdid, |
| 10908 | .probe_timing = TIMING_ZERO, |
| 10909 | .block_erasers = |
| 10910 | { |
| 10911 | { |
| 10912 | .eraseblocks = { {4 * 1024, 512} }, |
| 10913 | .block_erase = spi_block_erase_20, |
| 10914 | }, { |
| 10915 | .eraseblocks = { {32 * 1024, 64} }, |
| 10916 | .block_erase = spi_block_erase_52, |
| 10917 | }, { |
| 10918 | .eraseblocks = { {64 * 1024, 32} }, |
| 10919 | .block_erase = spi_block_erase_d8, |
| 10920 | }, { |
| 10921 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10922 | .block_erase = spi_block_erase_c7, |
| 10923 | } |
| 10924 | }, |
| 10925 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10926 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10927 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10928 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10929 | .voltage = {1700, 2000}, |
| 10930 | }, |
| 10931 | |
| 10932 | { |
| 10933 | .vendor = "Micron/Numonyx/ST", |
| 10934 | .name = "N25Q032..1E", |
| 10935 | .bustype = BUS_SPI, |
| 10936 | .manufacture_id = ST_ID, |
| 10937 | .model_id = ST_N25Q032__1E, |
| 10938 | .total_size = 4096, |
| 10939 | .page_size = 256, |
| 10940 | /* supports SFDP */ |
| 10941 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10942 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10943 | .tested = TEST_UNTESTED, |
| 10944 | .probe = probe_spi_rdid, |
| 10945 | .probe_timing = TIMING_ZERO, |
| 10946 | .block_erasers = |
| 10947 | { |
| 10948 | { |
| 10949 | .eraseblocks = { {4 * 1024, 1024} }, |
| 10950 | .block_erase = spi_block_erase_20, |
| 10951 | }, { |
| 10952 | .eraseblocks = { {64 * 1024, 64} }, |
| 10953 | .block_erase = spi_block_erase_d8, |
| 10954 | }, { |
| 10955 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10956 | .block_erase = spi_block_erase_c7, |
| 10957 | } |
| 10958 | }, |
| 10959 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10960 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10961 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10962 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10963 | .voltage = {1700, 2000}, |
| 10964 | }, |
| 10965 | |
| 10966 | { |
| 10967 | .vendor = "Micron/Numonyx/ST", |
| 10968 | .name = "N25Q032..3E", |
| 10969 | .bustype = BUS_SPI, |
| 10970 | .manufacture_id = ST_ID, |
| 10971 | .model_id = ST_N25Q032__3E, |
| 10972 | .total_size = 4096, |
| 10973 | .page_size = 256, |
| 10974 | /* supports SFDP */ |
| 10975 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10976 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10977 | .tested = TEST_OK_PREW, |
| 10978 | .probe = probe_spi_rdid, |
| 10979 | .probe_timing = TIMING_ZERO, |
| 10980 | .block_erasers = |
| 10981 | { |
| 10982 | { |
| 10983 | .eraseblocks = { {4 * 1024, 1024} }, |
| 10984 | .block_erase = spi_block_erase_20, |
| 10985 | }, { |
| 10986 | .eraseblocks = { {64 * 1024, 64} }, |
| 10987 | .block_erase = spi_block_erase_d8, |
| 10988 | }, { |
| 10989 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10990 | .block_erase = spi_block_erase_c7, |
| 10991 | } |
| 10992 | }, |
| 10993 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10994 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10995 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10996 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10997 | .voltage = {2700, 3600}, |
| 10998 | }, |
| 10999 | |
| 11000 | { |
| 11001 | .vendor = "Micron/Numonyx/ST", |
| 11002 | .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11003 | .bustype = BUS_SPI, |
| 11004 | .manufacture_id = ST_ID, |
| 11005 | .model_id = ST_N25Q064__1E, |
| 11006 | .total_size = 8192, |
| 11007 | .page_size = 256, |
| 11008 | /* supports SFDP */ |
| 11009 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11010 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 11011 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11012 | .probe = probe_spi_rdid, |
| 11013 | .probe_timing = TIMING_ZERO, |
| 11014 | .block_erasers = |
| 11015 | { |
| 11016 | { |
| 11017 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 11018 | .block_erase = spi_block_erase_20, |
| 11019 | }, { |
| 11020 | .eraseblocks = { {64 * 1024, 128} }, |
| 11021 | .block_erase = spi_block_erase_d8, |
| 11022 | }, { |
| 11023 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 11024 | .block_erase = spi_block_erase_c7, |
| 11025 | } |
| 11026 | }, |
| 11027 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11028 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11029 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11030 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11031 | .voltage = {1700, 2000}, |
| 11032 | }, |
| 11033 | |
| 11034 | { |
| 11035 | .vendor = "Micron/Numonyx/ST", |
| 11036 | .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 11037 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 11038 | .manufacture_id = ST_ID, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11039 | .model_id = ST_N25Q064__3E, |
| 11040 | .total_size = 8192, |
| 11041 | .page_size = 256, |
| 11042 | /* supports SFDP */ |
| 11043 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11044 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11045 | .tested = TEST_OK_PREW, |
| 11046 | .probe = probe_spi_rdid, |
| 11047 | .probe_timing = TIMING_ZERO, |
| 11048 | .block_erasers = |
| 11049 | { |
| 11050 | { |
| 11051 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 11052 | .block_erase = spi_block_erase_20, |
| 11053 | }, { |
| 11054 | .eraseblocks = { {64 * 1024, 128} }, |
| 11055 | .block_erase = spi_block_erase_d8, |
| 11056 | }, { |
| 11057 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 11058 | .block_erase = spi_block_erase_c7, |
| 11059 | } |
| 11060 | }, |
| 11061 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11062 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11063 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11064 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11065 | .voltage = {2700, 3600}, |
| 11066 | }, |
| 11067 | |
| 11068 | { |
| 11069 | .vendor = "Micron/Numonyx/ST", |
| 11070 | .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11071 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 11072 | .manufacture_id = ST_ID, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11073 | .model_id = ST_N25Q128__1E, |
| 11074 | .total_size = 16384, |
| 11075 | .page_size = 256, |
| 11076 | /* supports SFDP */ |
| 11077 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11078 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11079 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11080 | .probe = probe_spi_rdid, |
| 11081 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 11082 | .block_erasers = |
| 11083 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11084 | { |
| 11085 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 11086 | .block_erase = spi_block_erase_20, |
| 11087 | }, { |
| 11088 | .eraseblocks = { {64 * 1024, 256} }, |
| 11089 | .block_erase = spi_block_erase_d8, |
| 11090 | }, { |
| 11091 | .eraseblocks = { {16384 * 1024, 1} }, |
| 11092 | .block_erase = spi_block_erase_c7, |
| 11093 | } |
| 11094 | }, |
| 11095 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11096 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11097 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11098 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11099 | .voltage = {1700, 2000}, |
| 11100 | }, |
| 11101 | |
| 11102 | { |
| 11103 | .vendor = "Micron/Numonyx/ST", |
| 11104 | .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 11105 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 11106 | .manufacture_id = ST_ID, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11107 | .model_id = ST_N25Q128__3E, |
| 11108 | .total_size = 16384, |
| 11109 | .page_size = 256, |
| 11110 | /* supports SFDP */ |
| 11111 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11112 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11113 | .tested = TEST_OK_PREW, |
| 11114 | .probe = probe_spi_rdid, |
| 11115 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 11116 | .block_erasers = |
| 11117 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11118 | { |
| 11119 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 11120 | .block_erase = spi_block_erase_20, |
| 11121 | }, { |
| 11122 | .eraseblocks = { {64 * 1024, 256} }, |
| 11123 | .block_erase = spi_block_erase_d8, |
| 11124 | }, { |
| 11125 | .eraseblocks = { {16384 * 1024, 1} }, |
| 11126 | .block_erase = spi_block_erase_c7, |
| 11127 | } |
| 11128 | }, |
| 11129 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11130 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11131 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11132 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11133 | .voltage = {2700, 3600}, |
| 11134 | }, |
| 11135 | |
| 11136 | { |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 11137 | .vendor = "Micron/Numonyx/ST", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11138 | .name = "N25Q256..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11139 | .bustype = BUS_SPI, |
| 11140 | .manufacture_id = ST_ID, |
| 11141 | .model_id = ST_N25Q256__1E, |
| 11142 | .total_size = 32768, |
| 11143 | .page_size = 256, |
| 11144 | /* supports SFDP */ |
| 11145 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11146 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11147 | .tested = TEST_UNTESTED, |
| 11148 | .probe = probe_spi_rdid, |
| 11149 | .probe_timing = TIMING_ZERO, |
| 11150 | .block_erasers = |
| 11151 | { |
| 11152 | { |
| 11153 | .eraseblocks = { {4 * 1024, 8192} }, |
| 11154 | .block_erase = spi_block_erase_21, |
| 11155 | }, { |
| 11156 | .eraseblocks = { {4 * 1024, 8192} }, |
| 11157 | .block_erase = spi_block_erase_20, |
| 11158 | }, { |
| 11159 | .eraseblocks = { {64 * 1024, 512} }, |
| 11160 | .block_erase = spi_block_erase_dc, |
| 11161 | }, { |
| 11162 | .eraseblocks = { {64 * 1024, 512} }, |
| 11163 | .block_erase = spi_block_erase_d8, |
| 11164 | }, { |
| 11165 | .eraseblocks = { {32768 * 1024, 1} }, |
| 11166 | .block_erase = spi_block_erase_c7, |
| 11167 | } |
| 11168 | }, |
| 11169 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11170 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11171 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11172 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11173 | .voltage = {1700, 2000}, |
| 11174 | }, |
| 11175 | |
| 11176 | { |
| 11177 | .vendor = "Micron/Numonyx/ST", |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 11178 | .name = "N25Q256..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 11179 | .bustype = BUS_SPI, |
| 11180 | .manufacture_id = ST_ID, |
| 11181 | .model_id = ST_N25Q256__3E, |
| 11182 | .total_size = 32768, |
| 11183 | .page_size = 256, |
| 11184 | /* supports SFDP */ |
| 11185 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11186 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11187 | .tested = TEST_UNTESTED, |
| 11188 | .probe = probe_spi_rdid, |
| 11189 | .probe_timing = TIMING_ZERO, |
| 11190 | .block_erasers = |
| 11191 | { |
| 11192 | { |
| 11193 | .eraseblocks = { {4 * 1024, 8192} }, |
| 11194 | .block_erase = spi_block_erase_21, |
| 11195 | }, { |
| 11196 | .eraseblocks = { {4 * 1024, 8192} }, |
| 11197 | .block_erase = spi_block_erase_20, |
| 11198 | }, { |
| 11199 | .eraseblocks = { {64 * 1024, 512} }, |
| 11200 | .block_erase = spi_block_erase_dc, |
| 11201 | }, { |
| 11202 | .eraseblocks = { {64 * 1024, 512} }, |
| 11203 | .block_erase = spi_block_erase_d8, |
| 11204 | }, { |
| 11205 | .eraseblocks = { {32768 * 1024, 1} }, |
| 11206 | .block_erase = spi_block_erase_c7, |
| 11207 | } |
| 11208 | }, |
| 11209 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11210 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11211 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11212 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11213 | .voltage = {2700, 3600}, |
| 11214 | }, |
| 11215 | |
| 11216 | { |
| 11217 | .vendor = "Micron/Numonyx/ST", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11218 | .name = "N25Q512..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */ |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 11219 | .bustype = BUS_SPI, |
| 11220 | .manufacture_id = ST_ID, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11221 | .model_id = ST_N25Q512__1G, |
| 11222 | .total_size = 65536, |
| 11223 | .page_size = 256, |
| 11224 | /* supports SFDP */ |
| 11225 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11226 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11227 | .tested = TEST_UNTESTED, |
| 11228 | .probe = probe_spi_rdid, |
| 11229 | .probe_timing = TIMING_ZERO, |
| 11230 | .block_erasers = |
| 11231 | { |
| 11232 | { |
| 11233 | .eraseblocks = { {4 * 1024, 16384} }, |
| 11234 | .block_erase = spi_block_erase_21, |
| 11235 | }, { |
| 11236 | .eraseblocks = { {4 * 1024, 16384} }, |
| 11237 | .block_erase = spi_block_erase_20, |
| 11238 | }, { |
| 11239 | .eraseblocks = { {64 * 1024, 1024} }, |
| 11240 | .block_erase = spi_block_erase_dc, |
| 11241 | }, { |
| 11242 | .eraseblocks = { {64 * 1024, 1024} }, |
| 11243 | .block_erase = spi_block_erase_d8, |
| 11244 | }, { |
| 11245 | .eraseblocks = { {32768 * 1024, 2} }, |
| 11246 | .block_erase = spi_block_erase_c4, |
| 11247 | } |
| 11248 | }, |
| 11249 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11250 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11251 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11252 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11253 | .voltage = {1700, 2000}, |
| 11254 | }, |
| 11255 | |
| 11256 | { |
| 11257 | .vendor = "Micron/Numonyx/ST", |
| 11258 | .name = "N25Q512..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */ |
| 11259 | .bustype = BUS_SPI, |
| 11260 | .manufacture_id = ST_ID, |
| 11261 | .model_id = ST_N25Q512__3G, |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 11262 | .total_size = 65536, |
| 11263 | .page_size = 256, |
| 11264 | /* supports SFDP */ |
| 11265 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11266 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11267 | .tested = TEST_OK_PREW, |
| 11268 | .probe = probe_spi_rdid, |
| 11269 | .probe_timing = TIMING_ZERO, |
| 11270 | .block_erasers = |
| 11271 | { |
| 11272 | { |
| 11273 | .eraseblocks = { {4 * 1024, 16384} }, |
| 11274 | .block_erase = spi_block_erase_21, |
| 11275 | }, { |
| 11276 | .eraseblocks = { {4 * 1024, 16384} }, |
| 11277 | .block_erase = spi_block_erase_20, |
| 11278 | }, { |
| 11279 | .eraseblocks = { {64 * 1024, 1024} }, |
| 11280 | .block_erase = spi_block_erase_dc, |
| 11281 | }, { |
| 11282 | .eraseblocks = { {64 * 1024, 1024} }, |
| 11283 | .block_erase = spi_block_erase_d8, |
| 11284 | }, { |
Jacob Creedon | e8e7b0e | 2019-07-22 12:21:22 -0700 | [diff] [blame] | 11285 | .eraseblocks = { {32768 * 1024, 2} }, |
| 11286 | .block_erase = spi_block_erase_c4, |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 11287 | } |
| 11288 | }, |
| 11289 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11290 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11291 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11292 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11293 | .voltage = {2700, 3600}, |
| 11294 | }, |
| 11295 | |
| 11296 | { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11297 | .vendor = "Micron", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11298 | .name = "MT25QL01G", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
| 11299 | .bustype = BUS_SPI, |
| 11300 | .manufacture_id = ST_ID, |
| 11301 | .model_id = ST_N25Q00A__3G, |
| 11302 | .total_size = 131072, |
| 11303 | .page_size = 256, |
| 11304 | /* supports SFDP */ |
| 11305 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11306 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11307 | .tested = TEST_OK_PREW, |
| 11308 | .probe = probe_spi_rdid, |
| 11309 | .probe_timing = TIMING_ZERO, |
| 11310 | .block_erasers = |
| 11311 | { |
| 11312 | { |
| 11313 | .eraseblocks = { {4 * 1024, 32768} }, |
| 11314 | .block_erase = spi_block_erase_21, |
| 11315 | }, { |
| 11316 | .eraseblocks = { {4 * 1024, 32768} }, |
| 11317 | .block_erase = spi_block_erase_20, |
| 11318 | }, { |
| 11319 | .eraseblocks = { {32 * 1024, 4096} }, |
| 11320 | .block_erase = spi_block_erase_5c, |
| 11321 | }, { |
| 11322 | .eraseblocks = { {32 * 1024, 4096} }, |
| 11323 | .block_erase = spi_block_erase_52, |
| 11324 | }, { |
| 11325 | .eraseblocks = { {64 * 1024, 2048} }, |
| 11326 | .block_erase = spi_block_erase_dc, |
| 11327 | }, { |
| 11328 | .eraseblocks = { {64 * 1024, 2048} }, |
| 11329 | .block_erase = spi_block_erase_d8, |
| 11330 | }, { |
| 11331 | .eraseblocks = { {65536 * 1024, 2} }, |
| 11332 | .block_erase = spi_block_erase_c4, |
| 11333 | } |
| 11334 | }, |
| 11335 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11336 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11337 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11338 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11339 | .voltage = {2700, 3600}, |
| 11340 | }, |
| 11341 | |
| 11342 | { |
| 11343 | .vendor = "Micron", |
| 11344 | .name = "MT25QU01G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11345 | .bustype = BUS_SPI, |
| 11346 | .manufacture_id = ST_ID, |
| 11347 | .model_id = ST_N25Q00A__1G, |
| 11348 | .total_size = 131072, |
| 11349 | .page_size = 256, |
| 11350 | /* supports SFDP */ |
| 11351 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11352 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11353 | .tested = TEST_UNTESTED, |
| 11354 | .probe = probe_spi_rdid, |
| 11355 | .probe_timing = TIMING_ZERO, |
| 11356 | .block_erasers = |
| 11357 | { |
| 11358 | { |
| 11359 | .eraseblocks = { {4 * 1024, 32768} }, |
| 11360 | .block_erase = spi_block_erase_21, |
| 11361 | }, { |
| 11362 | .eraseblocks = { {4 * 1024, 32768} }, |
| 11363 | .block_erase = spi_block_erase_20, |
| 11364 | }, { |
| 11365 | .eraseblocks = { {32 * 1024, 4096} }, |
| 11366 | .block_erase = spi_block_erase_5c, |
| 11367 | }, { |
| 11368 | .eraseblocks = { {32 * 1024, 4096} }, |
| 11369 | .block_erase = spi_block_erase_52, |
| 11370 | }, { |
| 11371 | .eraseblocks = { {64 * 1024, 2048} }, |
| 11372 | .block_erase = spi_block_erase_dc, |
| 11373 | }, { |
| 11374 | .eraseblocks = { {64 * 1024, 2048} }, |
| 11375 | .block_erase = spi_block_erase_d8, |
| 11376 | }, { |
| 11377 | .eraseblocks = { {65536 * 1024, 2} }, |
| 11378 | .block_erase = spi_block_erase_c4, |
| 11379 | } |
| 11380 | }, |
| 11381 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11382 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11383 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11384 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11385 | .voltage = {1700, 2000}, |
| 11386 | }, |
| 11387 | |
| 11388 | { |
| 11389 | .vendor = "Micron", |
| 11390 | .name = "MT25QL02G", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
| 11391 | .bustype = BUS_SPI, |
| 11392 | .manufacture_id = ST_ID, |
| 11393 | .model_id = ST_MT25QL02G, |
| 11394 | .total_size = 262144, |
| 11395 | .page_size = 256, |
| 11396 | /* supports SFDP */ |
| 11397 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11398 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11399 | .tested = TEST_UNTESTED, |
| 11400 | .probe = probe_spi_rdid, |
| 11401 | .probe_timing = TIMING_ZERO, |
| 11402 | .block_erasers = |
| 11403 | { |
| 11404 | { |
| 11405 | .eraseblocks = { {4 * 1024, 65536} }, |
| 11406 | .block_erase = spi_block_erase_21, |
| 11407 | }, { |
| 11408 | .eraseblocks = { {4 * 1024, 65536} }, |
| 11409 | .block_erase = spi_block_erase_20, |
| 11410 | }, { |
| 11411 | .eraseblocks = { {32 * 1024, 8192} }, |
| 11412 | .block_erase = spi_block_erase_5c, |
| 11413 | }, { |
| 11414 | .eraseblocks = { {32 * 1024, 8192} }, |
| 11415 | .block_erase = spi_block_erase_52, |
| 11416 | }, { |
| 11417 | .eraseblocks = { {64 * 1024, 4096} }, |
| 11418 | .block_erase = spi_block_erase_dc, |
| 11419 | }, { |
| 11420 | .eraseblocks = { {64 * 1024, 4096} }, |
| 11421 | .block_erase = spi_block_erase_d8, |
| 11422 | }, { |
| 11423 | .eraseblocks = { {65536 * 1024, 4} }, |
| 11424 | .block_erase = spi_block_erase_c4, |
| 11425 | } |
| 11426 | }, |
| 11427 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11428 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11429 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11430 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11431 | .voltage = {2700, 3600}, |
| 11432 | }, |
| 11433 | |
| 11434 | { |
| 11435 | .vendor = "Micron", |
| 11436 | .name = "MT25QU02G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11437 | .bustype = BUS_SPI, |
| 11438 | .manufacture_id = ST_ID, |
| 11439 | .model_id = ST_MT25QU02G, |
| 11440 | .total_size = 262144, |
| 11441 | .page_size = 256, |
| 11442 | /* supports SFDP */ |
| 11443 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11444 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11445 | .tested = TEST_UNTESTED, |
| 11446 | .probe = probe_spi_rdid, |
| 11447 | .probe_timing = TIMING_ZERO, |
| 11448 | .block_erasers = |
| 11449 | { |
| 11450 | { |
| 11451 | .eraseblocks = { {4 * 1024, 65536} }, |
| 11452 | .block_erase = spi_block_erase_21, |
| 11453 | }, { |
| 11454 | .eraseblocks = { {4 * 1024, 65536} }, |
| 11455 | .block_erase = spi_block_erase_20, |
| 11456 | }, { |
| 11457 | .eraseblocks = { {32 * 1024, 8192} }, |
| 11458 | .block_erase = spi_block_erase_5c, |
| 11459 | }, { |
| 11460 | .eraseblocks = { {32 * 1024, 8192} }, |
| 11461 | .block_erase = spi_block_erase_52, |
| 11462 | }, { |
| 11463 | .eraseblocks = { {64 * 1024, 4096} }, |
| 11464 | .block_erase = spi_block_erase_dc, |
| 11465 | }, { |
| 11466 | .eraseblocks = { {64 * 1024, 4096} }, |
| 11467 | .block_erase = spi_block_erase_d8, |
| 11468 | }, { |
| 11469 | .eraseblocks = { {65536 * 1024, 4} }, |
| 11470 | .block_erase = spi_block_erase_c4, |
| 11471 | } |
| 11472 | }, |
| 11473 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11474 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11475 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11476 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11477 | .voltage = {1700, 2000}, |
| 11478 | }, |
| 11479 | |
| 11480 | { |
| 11481 | .vendor = "Micron", |
| 11482 | .name = "MT25QU128", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11483 | .bustype = BUS_SPI, |
| 11484 | .manufacture_id = ST_ID, |
| 11485 | .model_id = ST_N25Q128__1E, |
| 11486 | .total_size = 16384, |
| 11487 | .page_size = 256, |
| 11488 | /* supports SFDP */ |
| 11489 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11490 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11491 | .tested = TEST_UNTESTED, |
| 11492 | .probe = probe_spi_rdid, |
| 11493 | .probe_timing = TIMING_ZERO, |
| 11494 | .block_erasers = |
| 11495 | { |
| 11496 | { |
| 11497 | .eraseblocks = { {4 * 1024, 4096} }, |
| 11498 | .block_erase = spi_block_erase_20, |
| 11499 | }, { |
| 11500 | .eraseblocks = { {32 * 1024, 512} }, |
| 11501 | .block_erase = spi_block_erase_52, |
| 11502 | }, { |
| 11503 | .eraseblocks = { {64 * 1024, 256} }, |
| 11504 | .block_erase = spi_block_erase_d8, |
| 11505 | }, { |
| 11506 | .eraseblocks = { {16384 * 1024, 1} }, |
| 11507 | .block_erase = spi_block_erase_c7, |
| 11508 | }, { |
| 11509 | .eraseblocks = { {16384 * 1024, 1} }, |
| 11510 | .block_erase = spi_block_erase_60, |
| 11511 | } |
| 11512 | }, |
| 11513 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11514 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11515 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11516 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11517 | .voltage = {1700, 2000}, |
| 11518 | }, |
| 11519 | |
| 11520 | { |
| 11521 | .vendor = "Micron", |
| 11522 | .name = "MT25QL128", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
| 11523 | .bustype = BUS_SPI, |
| 11524 | .manufacture_id = ST_ID, |
| 11525 | .model_id = ST_N25Q128__3E, |
| 11526 | .total_size = 16384, |
| 11527 | .page_size = 256, |
| 11528 | /* supports SFDP */ |
| 11529 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11530 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11531 | .tested = TEST_UNTESTED, |
| 11532 | .probe = probe_spi_rdid, |
| 11533 | .probe_timing = TIMING_ZERO, |
| 11534 | .block_erasers = |
| 11535 | { |
| 11536 | { |
| 11537 | .eraseblocks = { {4 * 1024, 4096} }, |
| 11538 | .block_erase = spi_block_erase_20, |
| 11539 | }, { |
| 11540 | .eraseblocks = { {32 * 1024, 512} }, |
| 11541 | .block_erase = spi_block_erase_52, |
| 11542 | }, { |
| 11543 | .eraseblocks = { {64 * 1024, 256} }, |
| 11544 | .block_erase = spi_block_erase_d8, |
| 11545 | }, { |
| 11546 | .eraseblocks = { {16384 * 1024, 1} }, |
| 11547 | .block_erase = spi_block_erase_c7, |
| 11548 | }, { |
| 11549 | .eraseblocks = { {16384 * 1024, 1} }, |
| 11550 | .block_erase = spi_block_erase_60, |
| 11551 | } |
| 11552 | }, |
| 11553 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11554 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11555 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11556 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11557 | .voltage = {2700, 3600}, |
| 11558 | }, |
| 11559 | |
| 11560 | { |
| 11561 | .vendor = "Micron", |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 11562 | .name = "MT25QL256", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11563 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 11564 | .manufacture_id = ST_ID, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11565 | .model_id = ST_N25Q256__3E, |
| 11566 | .total_size = 32768, |
| 11567 | .page_size = 256, |
| 11568 | /* supports SFDP */ |
| 11569 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 11570 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11571 | .tested = TEST_UNTESTED, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11572 | .probe = probe_spi_rdid, |
| 11573 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 11574 | .block_erasers = |
| 11575 | { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11576 | { |
| 11577 | .eraseblocks = { {4 * 1024, 8192} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 11578 | .block_erase = spi_block_erase_21, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11579 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 11580 | .eraseblocks = { {4 * 1024, 8192} }, |
| 11581 | .block_erase = spi_block_erase_20, |
| 11582 | }, { |
Jacob Creedon | 045b97e | 2019-07-22 12:26:56 -0700 | [diff] [blame] | 11583 | .eraseblocks = { {32 * 1024, 1024} }, |
| 11584 | .block_erase = spi_block_erase_5c, |
| 11585 | }, { |
| 11586 | .eraseblocks = { {32 * 1024, 1024} }, |
| 11587 | .block_erase = spi_block_erase_52, |
| 11588 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11589 | .eraseblocks = { {64 * 1024, 512} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 11590 | .block_erase = spi_block_erase_dc, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11591 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 11592 | .eraseblocks = { {64 * 1024, 512} }, |
| 11593 | .block_erase = spi_block_erase_d8, |
| 11594 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11595 | .eraseblocks = { {32768 * 1024, 1} }, |
| 11596 | .block_erase = spi_block_erase_c7, |
Jacob Creedon | 045b97e | 2019-07-22 12:26:56 -0700 | [diff] [blame] | 11597 | }, { |
| 11598 | .eraseblocks = { {32768 * 1024, 1} }, |
| 11599 | .block_erase = spi_block_erase_60, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11600 | } |
| 11601 | }, |
| 11602 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11603 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11604 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11605 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11606 | .voltage = {2700, 3600}, |
| 11607 | }, |
| 11608 | |
| 11609 | { |
| 11610 | .vendor = "Micron", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11611 | .name = "MT25QU256", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11612 | .bustype = BUS_SPI, |
| 11613 | .manufacture_id = ST_ID, |
| 11614 | .model_id = ST_N25Q256__1E, |
| 11615 | .total_size = 32768, |
| 11616 | .page_size = 256, |
| 11617 | /* supports SFDP */ |
| 11618 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11619 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11620 | .tested = TEST_UNTESTED, |
| 11621 | .probe = probe_spi_rdid, |
| 11622 | .probe_timing = TIMING_ZERO, |
| 11623 | .block_erasers = |
| 11624 | { |
| 11625 | { |
| 11626 | .eraseblocks = { {4 * 1024, 8192} }, |
| 11627 | .block_erase = spi_block_erase_21, |
| 11628 | }, { |
| 11629 | .eraseblocks = { {4 * 1024, 8192} }, |
| 11630 | .block_erase = spi_block_erase_20, |
| 11631 | }, { |
| 11632 | .eraseblocks = { {32 * 1024, 1024} }, |
| 11633 | .block_erase = spi_block_erase_5c, |
| 11634 | }, { |
| 11635 | .eraseblocks = { {32 * 1024, 1024} }, |
| 11636 | .block_erase = spi_block_erase_52, |
| 11637 | }, { |
| 11638 | .eraseblocks = { {64 * 1024, 512} }, |
| 11639 | .block_erase = spi_block_erase_dc, |
| 11640 | }, { |
| 11641 | .eraseblocks = { {64 * 1024, 512} }, |
| 11642 | .block_erase = spi_block_erase_d8, |
| 11643 | }, { |
| 11644 | .eraseblocks = { {32768 * 1024, 1} }, |
| 11645 | .block_erase = spi_block_erase_c7, |
| 11646 | }, { |
| 11647 | .eraseblocks = { {32768 * 1024, 1} }, |
| 11648 | .block_erase = spi_block_erase_60, |
| 11649 | } |
| 11650 | }, |
| 11651 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11652 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11653 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11654 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11655 | .voltage = {1700, 2000}, |
| 11656 | }, |
| 11657 | |
| 11658 | { |
| 11659 | .vendor = "Micron", |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 11660 | .name = "MT25QL512", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11661 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 11662 | .manufacture_id = ST_ID, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11663 | .model_id = ST_N25Q512__3G, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11664 | .total_size = 65536, |
| 11665 | .page_size = 256, |
| 11666 | /* supports SFDP */ |
| 11667 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 11668 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
Angel Pons | 3ed5a35 | 2018-09-30 16:31:09 +0200 | [diff] [blame] | 11669 | .tested = TEST_OK_PREW, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11670 | .probe = probe_spi_rdid, |
| 11671 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 11672 | .block_erasers = |
| 11673 | { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11674 | { |
| 11675 | .eraseblocks = { {4 * 1024, 16384} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 11676 | .block_erase = spi_block_erase_21, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11677 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 11678 | .eraseblocks = { {4 * 1024, 16384} }, |
| 11679 | .block_erase = spi_block_erase_20, |
| 11680 | }, { |
Jacob Creedon | 045b97e | 2019-07-22 12:26:56 -0700 | [diff] [blame] | 11681 | .eraseblocks = { {32 * 1024, 2048} }, |
| 11682 | .block_erase = spi_block_erase_5c, |
| 11683 | }, { |
| 11684 | .eraseblocks = { {32 * 1024, 2048} }, |
| 11685 | .block_erase = spi_block_erase_52, |
| 11686 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11687 | .eraseblocks = { {64 * 1024, 1024} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 11688 | .block_erase = spi_block_erase_dc, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11689 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 11690 | .eraseblocks = { {64 * 1024, 1024} }, |
| 11691 | .block_erase = spi_block_erase_d8, |
| 11692 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11693 | .eraseblocks = { {65536 * 1024, 1} }, |
| 11694 | .block_erase = spi_block_erase_c7, |
Jacob Creedon | 045b97e | 2019-07-22 12:26:56 -0700 | [diff] [blame] | 11695 | }, { |
| 11696 | .eraseblocks = { {65536 * 1024, 1} }, |
| 11697 | .block_erase = spi_block_erase_60, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11698 | } |
| 11699 | }, |
| 11700 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11701 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11702 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11703 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11704 | .voltage = {2700, 3600}, |
| 11705 | }, |
| 11706 | |
| 11707 | { |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11708 | .vendor = "Micron", |
| 11709 | .name = "MT25QU512", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11710 | .bustype = BUS_SPI, |
| 11711 | .manufacture_id = ST_ID, |
| 11712 | .model_id = ST_N25Q512__1G, |
| 11713 | .total_size = 65536, |
| 11714 | .page_size = 256, |
| 11715 | /* supports SFDP */ |
| 11716 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11717 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11718 | .tested = TEST_OK_PREW, |
| 11719 | .probe = probe_spi_rdid, |
| 11720 | .probe_timing = TIMING_ZERO, |
| 11721 | .block_erasers = |
| 11722 | { |
| 11723 | { |
| 11724 | .eraseblocks = { {4 * 1024, 16384} }, |
| 11725 | .block_erase = spi_block_erase_21, |
| 11726 | }, { |
| 11727 | .eraseblocks = { {4 * 1024, 16384} }, |
| 11728 | .block_erase = spi_block_erase_20, |
| 11729 | }, { |
| 11730 | .eraseblocks = { {32 * 1024, 2048} }, |
| 11731 | .block_erase = spi_block_erase_5c, |
| 11732 | }, { |
| 11733 | .eraseblocks = { {32 * 1024, 2048} }, |
| 11734 | .block_erase = spi_block_erase_52, |
| 11735 | }, { |
| 11736 | .eraseblocks = { {64 * 1024, 1024} }, |
| 11737 | .block_erase = spi_block_erase_dc, |
| 11738 | }, { |
| 11739 | .eraseblocks = { {64 * 1024, 1024} }, |
| 11740 | .block_erase = spi_block_erase_d8, |
| 11741 | }, { |
| 11742 | .eraseblocks = { {65536 * 1024, 1} }, |
| 11743 | .block_erase = spi_block_erase_c7, |
| 11744 | }, { |
| 11745 | .eraseblocks = { {65536 * 1024, 1} }, |
| 11746 | .block_erase = spi_block_erase_60, |
| 11747 | } |
| 11748 | }, |
| 11749 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11750 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11751 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11752 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11753 | .voltage = {1700, 2000}, |
| 11754 | }, |
| 11755 | |
| 11756 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11757 | .vendor = "MoselVitelic", |
| 11758 | .name = "V29C51000B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11759 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11760 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11761 | .model_id = MVC_V29C51000B, |
| 11762 | .total_size = 64, |
| 11763 | .page_size = 512, |
| 11764 | .feature_bits = FEATURE_EITHER_RESET, |
| 11765 | .tested = TEST_UNTESTED, |
| 11766 | .probe = probe_jedec, |
| 11767 | .probe_timing = TIMING_ZERO, |
| 11768 | .block_erasers = |
| 11769 | { |
| 11770 | { |
| 11771 | .eraseblocks = { {512, 128} }, |
| 11772 | .block_erase = erase_sector_jedec, |
| 11773 | }, { |
| 11774 | .eraseblocks = { {64 * 1024, 1} }, |
| 11775 | .block_erase = erase_chip_block_jedec, |
| 11776 | }, |
| 11777 | }, |
| 11778 | .write = write_jedec_1, |
| 11779 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11780 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11781 | }, |
| 11782 | |
| 11783 | { |
| 11784 | .vendor = "MoselVitelic", |
| 11785 | .name = "V29C51000T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11786 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11787 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11788 | .model_id = MVC_V29C51000T, |
| 11789 | .total_size = 64, |
| 11790 | .page_size = 512, |
| 11791 | .feature_bits = FEATURE_EITHER_RESET, |
| 11792 | .tested = TEST_UNTESTED, |
| 11793 | .probe = probe_jedec, |
| 11794 | .probe_timing = TIMING_ZERO, |
| 11795 | .block_erasers = |
| 11796 | { |
| 11797 | { |
| 11798 | .eraseblocks = { {512, 128} }, |
| 11799 | .block_erase = erase_sector_jedec, |
| 11800 | }, { |
| 11801 | .eraseblocks = { {64 * 1024, 1} }, |
| 11802 | .block_erase = erase_chip_block_jedec, |
| 11803 | }, |
| 11804 | }, |
| 11805 | .write = write_jedec_1, |
| 11806 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11807 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11808 | }, |
| 11809 | |
| 11810 | { |
| 11811 | .vendor = "MoselVitelic", |
| 11812 | .name = "V29C51400B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11813 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11814 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11815 | .model_id = MVC_V29C51400B, |
| 11816 | .total_size = 512, |
| 11817 | .page_size = 1024, |
| 11818 | .feature_bits = FEATURE_EITHER_RESET, |
| 11819 | .tested = TEST_UNTESTED, |
| 11820 | .probe = probe_jedec, |
| 11821 | .probe_timing = TIMING_ZERO, |
| 11822 | .block_erasers = |
| 11823 | { |
| 11824 | { |
| 11825 | .eraseblocks = { {1024, 512} }, |
| 11826 | .block_erase = erase_sector_jedec, |
| 11827 | }, { |
| 11828 | .eraseblocks = { {512 * 1024, 1} }, |
| 11829 | .block_erase = erase_chip_block_jedec, |
| 11830 | }, |
| 11831 | }, |
| 11832 | .write = write_jedec_1, |
| 11833 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11834 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11835 | }, |
| 11836 | |
| 11837 | { |
| 11838 | .vendor = "MoselVitelic", |
| 11839 | .name = "V29C51400T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11840 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11841 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11842 | .model_id = MVC_V29C51400T, |
| 11843 | .total_size = 512, |
| 11844 | .page_size = 1024, |
| 11845 | .feature_bits = FEATURE_EITHER_RESET, |
| 11846 | .tested = TEST_UNTESTED, |
| 11847 | .probe = probe_jedec, |
| 11848 | .probe_timing = TIMING_ZERO, |
| 11849 | .block_erasers = |
| 11850 | { |
| 11851 | { |
| 11852 | .eraseblocks = { {1024, 512} }, |
| 11853 | .block_erase = erase_sector_jedec, |
| 11854 | }, { |
| 11855 | .eraseblocks = { {512 * 1024, 1} }, |
| 11856 | .block_erase = erase_chip_block_jedec, |
| 11857 | }, |
| 11858 | }, |
| 11859 | .write = write_jedec_1, |
| 11860 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11861 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11862 | }, |
| 11863 | |
| 11864 | { |
| 11865 | .vendor = "MoselVitelic", |
| 11866 | .name = "V29LC51000", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11867 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11868 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11869 | .model_id = MVC_V29LC51000, |
| 11870 | .total_size = 64, |
| 11871 | .page_size = 512, |
| 11872 | .feature_bits = FEATURE_EITHER_RESET, |
| 11873 | .tested = TEST_UNTESTED, |
| 11874 | .probe = probe_jedec, |
| 11875 | .probe_timing = TIMING_ZERO, |
| 11876 | .block_erasers = |
| 11877 | { |
| 11878 | { |
| 11879 | .eraseblocks = { {512, 128} }, |
| 11880 | .block_erase = erase_sector_jedec, |
| 11881 | }, { |
| 11882 | .eraseblocks = { {64 * 1024, 1} }, |
| 11883 | .block_erase = erase_chip_block_jedec, |
| 11884 | }, |
| 11885 | }, |
| 11886 | .write = write_jedec_1, |
| 11887 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11888 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11889 | }, |
| 11890 | |
| 11891 | { |
| 11892 | .vendor = "MoselVitelic", |
| 11893 | .name = "V29LC51001", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11894 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11895 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11896 | .model_id = MVC_V29LC51001, |
| 11897 | .total_size = 128, |
| 11898 | .page_size = 512, |
| 11899 | .feature_bits = FEATURE_EITHER_RESET, |
| 11900 | .tested = TEST_UNTESTED, |
| 11901 | .probe = probe_jedec, |
| 11902 | .probe_timing = TIMING_ZERO, |
| 11903 | .block_erasers = |
| 11904 | { |
| 11905 | { |
| 11906 | .eraseblocks = { {512, 256} }, |
| 11907 | .block_erase = erase_sector_jedec, |
| 11908 | }, { |
| 11909 | .eraseblocks = { {128 * 1024, 1} }, |
| 11910 | .block_erase = erase_chip_block_jedec, |
| 11911 | }, |
| 11912 | }, |
| 11913 | .write = write_jedec_1, |
| 11914 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11915 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11916 | }, |
| 11917 | |
| 11918 | { |
| 11919 | .vendor = "MoselVitelic", |
| 11920 | .name = "V29LC51002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11921 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11922 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11923 | .model_id = MVC_V29LC51002, |
| 11924 | .total_size = 256, |
| 11925 | .page_size = 512, |
| 11926 | .feature_bits = FEATURE_EITHER_RESET, |
| 11927 | .tested = TEST_UNTESTED, |
| 11928 | .probe = probe_jedec, |
| 11929 | .probe_timing = TIMING_ZERO, |
| 11930 | .block_erasers = |
| 11931 | { |
| 11932 | { |
| 11933 | .eraseblocks = { {512, 512} }, |
| 11934 | .block_erase = erase_sector_jedec, |
| 11935 | }, { |
| 11936 | .eraseblocks = { {256 * 1024, 1} }, |
| 11937 | .block_erase = erase_chip_block_jedec, |
| 11938 | }, |
| 11939 | }, |
| 11940 | .write = write_jedec_1, |
| 11941 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11942 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11943 | }, |
| 11944 | |
| 11945 | { |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 11946 | .vendor = "Nantronics", |
| 11947 | .name = "N25S10", |
| 11948 | .bustype = BUS_SPI, |
| 11949 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 11950 | .model_id = NANTRONICS_N25S10, |
| 11951 | .total_size = 128, |
| 11952 | .page_size = 256, |
| 11953 | .feature_bits = FEATURE_WRSR_WREN, |
| 11954 | .tested = TEST_UNTESTED, |
| 11955 | .probe = probe_spi_rdid, |
| 11956 | .probe_timing = TIMING_ZERO, |
| 11957 | .block_erasers = |
| 11958 | { |
| 11959 | { |
| 11960 | .eraseblocks = { {4 * 1024, 32} }, |
| 11961 | .block_erase = spi_block_erase_20, |
| 11962 | }, { |
| 11963 | .eraseblocks = { {4 * 1024, 32} }, |
| 11964 | .block_erase = spi_block_erase_d7, |
| 11965 | }, { |
| 11966 | .eraseblocks = { {32 * 1024, 4} }, |
| 11967 | .block_erase = spi_block_erase_52, |
| 11968 | }, { |
| 11969 | .eraseblocks = { {64 * 1024, 2} }, |
| 11970 | .block_erase = spi_block_erase_d8, |
| 11971 | }, { |
| 11972 | .eraseblocks = { {128 * 1024, 1} }, |
| 11973 | .block_erase = spi_block_erase_60, |
| 11974 | }, { |
| 11975 | .eraseblocks = { {128 * 1024, 1} }, |
| 11976 | .block_erase = spi_block_erase_c7, |
| 11977 | } |
| 11978 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11979 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 11980 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11981 | .write = spi_chip_write_256, |
| 11982 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 11983 | .voltage = {2700, 3600}, |
| 11984 | }, |
| 11985 | |
| 11986 | { |
| 11987 | .vendor = "Nantronics", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11988 | .name = "N25S16", |
| 11989 | .bustype = BUS_SPI, |
| 11990 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 11991 | .model_id = NANTRONICS_N25S16, |
| 11992 | .total_size = 2048, |
| 11993 | .page_size = 256, |
| 11994 | .feature_bits = FEATURE_WRSR_WREN, |
| 11995 | .tested = TEST_UNTESTED, |
| 11996 | .probe = probe_spi_rdid, |
| 11997 | .probe_timing = TIMING_ZERO, |
| 11998 | .block_erasers = |
| 11999 | { |
| 12000 | { |
| 12001 | .eraseblocks = { {4 * 1024, 512} }, |
| 12002 | .block_erase = spi_block_erase_20, |
| 12003 | }, { |
| 12004 | .eraseblocks = { {64 * 1024, 32} }, |
| 12005 | .block_erase = spi_block_erase_d8, |
| 12006 | }, { |
| 12007 | .eraseblocks = { {2048 * 1024, 1} }, |
| 12008 | .block_erase = spi_block_erase_60, |
| 12009 | }, { |
| 12010 | .eraseblocks = { {2048 * 1024, 1} }, |
| 12011 | .block_erase = spi_block_erase_c7, |
| 12012 | } |
| 12013 | }, |
| 12014 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 12015 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12016 | .write = spi_chip_write_256, |
| 12017 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 12018 | .voltage = {2700, 3600}, |
| 12019 | }, |
| 12020 | |
| 12021 | { |
| 12022 | .vendor = "Nantronics", |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 12023 | .name = "N25S20", |
| 12024 | .bustype = BUS_SPI, |
| 12025 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 12026 | .model_id = NANTRONICS_N25S20, |
| 12027 | .total_size = 256, |
| 12028 | .page_size = 256, |
| 12029 | .feature_bits = FEATURE_WRSR_WREN, |
| 12030 | .tested = TEST_UNTESTED, |
| 12031 | .probe = probe_spi_rdid, |
| 12032 | .probe_timing = TIMING_ZERO, |
| 12033 | .block_erasers = |
| 12034 | { |
| 12035 | { |
| 12036 | .eraseblocks = { {4 * 1024, 64} }, |
| 12037 | .block_erase = spi_block_erase_20, |
| 12038 | }, { |
| 12039 | .eraseblocks = { {4 * 1024, 64} }, |
| 12040 | .block_erase = spi_block_erase_d7, |
| 12041 | }, { |
| 12042 | .eraseblocks = { {32 * 1024, 8} }, |
| 12043 | .block_erase = spi_block_erase_52, |
| 12044 | }, { |
| 12045 | .eraseblocks = { {64 * 1024, 4} }, |
| 12046 | .block_erase = spi_block_erase_d8, |
| 12047 | }, { |
| 12048 | .eraseblocks = { {256 * 1024, 1} }, |
| 12049 | .block_erase = spi_block_erase_60, |
| 12050 | }, { |
| 12051 | .eraseblocks = { {256 * 1024, 1} }, |
| 12052 | .block_erase = spi_block_erase_c7, |
| 12053 | } |
| 12054 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12055 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 12056 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12057 | .write = spi_chip_write_256, |
| 12058 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 12059 | .voltage = {2700, 3600}, |
| 12060 | }, |
| 12061 | |
| 12062 | { |
| 12063 | .vendor = "Nantronics", |
| 12064 | .name = "N25S40", |
| 12065 | .bustype = BUS_SPI, |
| 12066 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 12067 | .model_id = NANTRONICS_N25S40, |
| 12068 | .total_size = 512, |
| 12069 | .page_size = 256, |
| 12070 | .feature_bits = FEATURE_WRSR_WREN, |
| 12071 | .tested = TEST_UNTESTED, |
| 12072 | .probe = probe_spi_rdid, |
| 12073 | .probe_timing = TIMING_ZERO, |
| 12074 | .block_erasers = |
| 12075 | { |
| 12076 | { |
| 12077 | .eraseblocks = { {4 * 1024, 128} }, |
| 12078 | .block_erase = spi_block_erase_20, |
| 12079 | }, { |
| 12080 | .eraseblocks = { {4 * 1024, 128} }, |
| 12081 | .block_erase = spi_block_erase_d7, |
| 12082 | }, { |
| 12083 | .eraseblocks = { {32 * 1024, 16} }, |
| 12084 | .block_erase = spi_block_erase_52, |
| 12085 | }, { |
| 12086 | .eraseblocks = { {64 * 1024, 8} }, |
| 12087 | .block_erase = spi_block_erase_d8, |
| 12088 | }, { |
| 12089 | .eraseblocks = { {512 * 1024, 1} }, |
| 12090 | .block_erase = spi_block_erase_60, |
| 12091 | }, { |
| 12092 | .eraseblocks = { {512 * 1024, 1} }, |
| 12093 | .block_erase = spi_block_erase_c7, |
| 12094 | } |
| 12095 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12096 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 12097 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12098 | .write = spi_chip_write_256, |
| 12099 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 12100 | .voltage = {2700, 3600}, |
| 12101 | }, |
| 12102 | |
| 12103 | { |
| 12104 | .vendor = "Nantronics", |
| 12105 | .name = "N25S80", |
| 12106 | .bustype = BUS_SPI, |
| 12107 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 12108 | .model_id = NANTRONICS_N25S80, |
| 12109 | .total_size = 1024, |
| 12110 | .page_size = 256, |
| 12111 | .feature_bits = FEATURE_WRSR_WREN, |
| 12112 | .tested = TEST_UNTESTED, |
| 12113 | .probe = probe_spi_rdid, |
| 12114 | .probe_timing = TIMING_ZERO, |
| 12115 | .block_erasers = |
| 12116 | { |
| 12117 | { |
| 12118 | .eraseblocks = { {4 * 1024, 256} }, |
| 12119 | .block_erase = spi_block_erase_20, |
| 12120 | }, { |
| 12121 | .eraseblocks = { {32 * 1024, 32} }, |
| 12122 | .block_erase = spi_block_erase_52, |
| 12123 | }, { |
| 12124 | .eraseblocks = { {64 * 1024, 16} }, |
| 12125 | .block_erase = spi_block_erase_d8, |
| 12126 | }, { |
| 12127 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12128 | .block_erase = spi_block_erase_60, |
| 12129 | }, { |
| 12130 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12131 | .block_erase = spi_block_erase_c7, |
| 12132 | } |
| 12133 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12134 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 12135 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12136 | .write = spi_chip_write_256, |
| 12137 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 12138 | .voltage = {2700, 3600}, |
| 12139 | }, |
| 12140 | |
| 12141 | { |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 12142 | .vendor = "PMC", |
| 12143 | .name = "Pm25LD010(C)", |
| 12144 | .bustype = BUS_SPI, |
| 12145 | .manufacture_id = PMC_ID, |
| 12146 | .model_id = PMC_PM25LD010, |
| 12147 | .total_size = 128, |
| 12148 | .page_size = 256, |
| 12149 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 12150 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 12151 | .probe = probe_spi_rdid, |
| 12152 | .probe_timing = TIMING_ZERO, |
| 12153 | .block_erasers = |
| 12154 | { |
| 12155 | { |
| 12156 | .eraseblocks = { {4 * 1024, 32} }, |
| 12157 | .block_erase = spi_block_erase_20, |
| 12158 | }, { |
| 12159 | .eraseblocks = { {4 * 1024, 32} }, |
| 12160 | .block_erase = spi_block_erase_d7, |
| 12161 | }, { |
| 12162 | .eraseblocks = { {32 * 1024, 4} }, |
| 12163 | .block_erase = spi_block_erase_d8, |
| 12164 | }, { |
| 12165 | .eraseblocks = { {128 * 1024, 1} }, |
| 12166 | .block_erase = spi_block_erase_60, |
| 12167 | }, { |
| 12168 | .eraseblocks = { {128 * 1024, 1} }, |
| 12169 | .block_erase = spi_block_erase_c7, |
| 12170 | } |
| 12171 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12172 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 12173 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 12174 | .write = spi_chip_write_256, |
| 12175 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 12176 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */ |
| 12177 | }, |
| 12178 | |
| 12179 | { |
| 12180 | .vendor = "PMC", |
| 12181 | .name = "Pm25LD020(C)", |
| 12182 | .bustype = BUS_SPI, |
| 12183 | .manufacture_id = PMC_ID, |
| 12184 | .model_id = PMC_PM25LD020, |
| 12185 | .total_size = 256, |
| 12186 | .page_size = 256, |
| 12187 | .feature_bits = FEATURE_WRSR_WREN, |
Angel Pons | f5822a8 | 2018-09-30 20:09:58 +0200 | [diff] [blame] | 12188 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 12189 | .probe = probe_spi_rdid, |
| 12190 | .probe_timing = TIMING_ZERO, |
| 12191 | .block_erasers = |
| 12192 | { |
| 12193 | { |
| 12194 | .eraseblocks = { {4 * 1024, 64} }, |
| 12195 | .block_erase = spi_block_erase_20, |
| 12196 | }, { |
| 12197 | .eraseblocks = { {4 * 1024, 64} }, |
| 12198 | .block_erase = spi_block_erase_d7, |
| 12199 | }, { |
| 12200 | .eraseblocks = { {64 * 1024, 4} }, |
| 12201 | .block_erase = spi_block_erase_d8, |
| 12202 | }, { |
| 12203 | .eraseblocks = { {256 * 1024, 1} }, |
| 12204 | .block_erase = spi_block_erase_60, |
| 12205 | }, { |
| 12206 | .eraseblocks = { {256 * 1024, 1} }, |
| 12207 | .block_erase = spi_block_erase_c7, |
| 12208 | } |
| 12209 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12210 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 12211 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 12212 | .write = spi_chip_write_256, |
| 12213 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 12214 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */ |
| 12215 | }, |
| 12216 | |
| 12217 | { |
| 12218 | .vendor = "PMC", |
| 12219 | .name = "Pm25LD040(C)", |
| 12220 | .bustype = BUS_SPI, |
| 12221 | .manufacture_id = PMC_ID, |
| 12222 | .model_id = PMC_PM25LV040, |
| 12223 | .total_size = 512, |
| 12224 | .page_size = 256, |
| 12225 | .feature_bits = FEATURE_WRSR_WREN, |
Angel Pons | 05127bf | 2018-09-30 20:23:24 +0200 | [diff] [blame] | 12226 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 12227 | .probe = probe_spi_rdid, |
| 12228 | .probe_timing = TIMING_ZERO, |
| 12229 | .block_erasers = |
| 12230 | { |
| 12231 | { |
| 12232 | .eraseblocks = { {4 * 1024, 128} }, |
| 12233 | .block_erase = spi_block_erase_20, |
| 12234 | }, { |
| 12235 | .eraseblocks = { {4 * 1024, 128} }, |
| 12236 | .block_erase = spi_block_erase_d7, |
| 12237 | }, { |
| 12238 | .eraseblocks = { {64 * 1024, 8} }, |
| 12239 | .block_erase = spi_block_erase_d8, |
| 12240 | }, { |
| 12241 | .eraseblocks = { {512 * 1024, 1} }, |
| 12242 | .block_erase = spi_block_erase_60, |
| 12243 | }, { |
| 12244 | .eraseblocks = { {512 * 1024, 1} }, |
| 12245 | .block_erase = spi_block_erase_c7, |
| 12246 | } |
| 12247 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12248 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 12249 | .unlock = spi_disable_blockprotect, |
| 12250 | .write = spi_chip_write_256, |
| 12251 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 12252 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */ |
| 12253 | }, |
| 12254 | |
Steven Honeyman | 81a8fb7 | 2015-06-02 22:32:24 +0000 | [diff] [blame] | 12255 | { |
| 12256 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12257 | .name = "Pm25LD256C", |
| 12258 | .bustype = BUS_SPI, |
| 12259 | .manufacture_id = PMC_ID, |
| 12260 | .model_id = PMC_PM25LD256C, |
| 12261 | .total_size = 32, |
| 12262 | .page_size = 256, |
| 12263 | .feature_bits = FEATURE_WRSR_WREN, |
| 12264 | .tested = TEST_UNTESTED, |
| 12265 | .probe = probe_spi_rdid, |
| 12266 | .probe_timing = TIMING_ZERO, |
| 12267 | .block_erasers = |
| 12268 | { |
| 12269 | { |
| 12270 | .eraseblocks = { {4 * 1024, 8} }, |
| 12271 | .block_erase = spi_block_erase_20, |
| 12272 | }, { |
| 12273 | .eraseblocks = { {4 * 1024, 8} }, |
| 12274 | .block_erase = spi_block_erase_d7, |
| 12275 | }, { |
| 12276 | .eraseblocks = { {32 * 1024, 1} }, |
| 12277 | .block_erase = spi_block_erase_d8, |
| 12278 | }, { |
| 12279 | .eraseblocks = { {32 * 1024, 1} }, |
| 12280 | .block_erase = spi_block_erase_60, |
| 12281 | }, { |
| 12282 | .eraseblocks = { {32 * 1024, 1} }, |
| 12283 | .block_erase = spi_block_erase_c7, |
| 12284 | } |
| 12285 | }, |
| 12286 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 12287 | .unlock = spi_disable_blockprotect, |
| 12288 | .write = spi_chip_write_256, |
| 12289 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 12290 | .voltage = {2700, 3600}, |
| 12291 | }, |
| 12292 | |
| 12293 | { |
| 12294 | .vendor = "PMC", |
| 12295 | .name = "Pm25LD512(C)", |
| 12296 | .bustype = BUS_SPI, |
| 12297 | .manufacture_id = PMC_ID, |
| 12298 | .model_id = PMC_PM25LD512, |
| 12299 | .total_size = 64, |
| 12300 | .page_size = 256, |
| 12301 | .feature_bits = FEATURE_WRSR_WREN, |
| 12302 | .tested = TEST_OK_PREW, |
| 12303 | .probe = probe_spi_rdid, |
| 12304 | .probe_timing = TIMING_ZERO, |
| 12305 | .block_erasers = |
| 12306 | { |
| 12307 | { |
| 12308 | .eraseblocks = { {4 * 1024, 16} }, |
| 12309 | .block_erase = spi_block_erase_20, |
| 12310 | }, { |
| 12311 | .eraseblocks = { {4 * 1024, 16} }, |
| 12312 | .block_erase = spi_block_erase_d7, |
| 12313 | }, { |
| 12314 | .eraseblocks = { {32 * 1024, 2} }, |
| 12315 | .block_erase = spi_block_erase_d8, |
| 12316 | }, { |
| 12317 | .eraseblocks = { {64 * 1024, 1} }, |
| 12318 | .block_erase = spi_block_erase_60, |
| 12319 | }, { |
| 12320 | .eraseblocks = { {64 * 1024, 1} }, |
| 12321 | .block_erase = spi_block_erase_c7, |
| 12322 | } |
| 12323 | }, |
| 12324 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 12325 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 12326 | .write = spi_chip_write_256, |
| 12327 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 12328 | .voltage = {2300, 3600}, |
| 12329 | }, |
| 12330 | |
| 12331 | { |
| 12332 | .vendor = "PMC", |
| 12333 | .name = "Pm25LQ016", |
| 12334 | .bustype = BUS_SPI, |
| 12335 | .manufacture_id = PMC_ID, |
| 12336 | .model_id = PMC_PM25LQ016, |
| 12337 | .total_size = 2048, |
| 12338 | .page_size = 256, |
| 12339 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 12340 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12341 | .tested = TEST_UNTESTED, |
| 12342 | .probe = probe_spi_rdid, |
| 12343 | .probe_timing = TIMING_ZERO, |
| 12344 | .block_erasers = |
| 12345 | { |
| 12346 | { |
| 12347 | .eraseblocks = { {4 * 1024, 512} }, |
| 12348 | .block_erase = spi_block_erase_20, |
| 12349 | }, { |
| 12350 | .eraseblocks = { {4 * 1024, 512} }, |
| 12351 | .block_erase = spi_block_erase_d7, |
| 12352 | }, { |
| 12353 | .eraseblocks = { {64 * 1024, 32} }, |
| 12354 | .block_erase = spi_block_erase_d8, |
| 12355 | }, { |
| 12356 | .eraseblocks = { {2048 * 1024, 1} }, |
| 12357 | .block_erase = spi_block_erase_60, |
| 12358 | }, { |
| 12359 | .eraseblocks = { {2048 * 1024, 1} }, |
| 12360 | .block_erase = spi_block_erase_c7, |
| 12361 | } |
| 12362 | }, |
| 12363 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 12364 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12365 | .write = spi_chip_write_256, |
| 12366 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12367 | .voltage = {2300, 3600}, |
| 12368 | }, |
| 12369 | |
| 12370 | { |
| 12371 | .vendor = "PMC", |
Steven Honeyman | 81a8fb7 | 2015-06-02 22:32:24 +0000 | [diff] [blame] | 12372 | .name = "Pm25LQ020", |
| 12373 | .bustype = BUS_SPI, |
| 12374 | .manufacture_id = PMC_ID, |
| 12375 | .model_id = PMC_PM25LQ020, |
| 12376 | .total_size = 256, |
| 12377 | .page_size = 256, |
| 12378 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 12379 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12380 | .tested = TEST_UNTESTED, |
| 12381 | .probe = probe_spi_rdid, |
| 12382 | .probe_timing = TIMING_ZERO, |
| 12383 | .block_erasers = |
| 12384 | { |
| 12385 | { |
| 12386 | .eraseblocks = { {4 * 1024, 64} }, |
| 12387 | .block_erase = spi_block_erase_20, |
| 12388 | }, { |
| 12389 | .eraseblocks = { {4 * 1024, 64} }, |
| 12390 | .block_erase = spi_block_erase_d7, |
| 12391 | }, { |
| 12392 | .eraseblocks = { {64 * 1024, 4} }, |
| 12393 | .block_erase = spi_block_erase_d8, |
| 12394 | }, { |
| 12395 | .eraseblocks = { {256 * 1024, 1} }, |
| 12396 | .block_erase = spi_block_erase_60, |
| 12397 | }, { |
| 12398 | .eraseblocks = { {256 * 1024, 1} }, |
| 12399 | .block_erase = spi_block_erase_c7, |
| 12400 | } |
| 12401 | }, |
| 12402 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 12403 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12404 | .write = spi_chip_write_256, |
| 12405 | .read = spi_chip_read, |
| 12406 | .voltage = {2300, 3600}, |
| 12407 | }, |
| 12408 | |
| 12409 | { |
| 12410 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12411 | .name = "Pm25LQ032C", |
| 12412 | .bustype = BUS_SPI, |
| 12413 | .manufacture_id = PMC_ID, |
| 12414 | .model_id = PMC_PM25LQ032C, |
| 12415 | .total_size = 4096, |
| 12416 | .page_size = 256, |
| 12417 | /* OTP: 64B total; read 0x4B, write 0xB1 */ |
| 12418 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12419 | .tested = TEST_OK_PREW, |
| 12420 | .probe = probe_spi_rdid, |
| 12421 | .probe_timing = TIMING_ZERO, |
| 12422 | .block_erasers = |
| 12423 | { |
| 12424 | { |
| 12425 | .eraseblocks = { {4 * 1024, 1024} }, |
| 12426 | .block_erase = spi_block_erase_20, |
| 12427 | }, { |
| 12428 | .eraseblocks = { {4 * 1024, 1024} }, |
| 12429 | .block_erase = spi_block_erase_d7, |
| 12430 | }, { |
| 12431 | .eraseblocks = { {64 * 1024, 64} }, |
| 12432 | .block_erase = spi_block_erase_d8, |
| 12433 | }, { |
| 12434 | .eraseblocks = { {4096 * 1024, 1} }, |
| 12435 | .block_erase = spi_block_erase_60, |
| 12436 | }, { |
| 12437 | .eraseblocks = { {4096 * 1024, 1} }, |
| 12438 | .block_erase = spi_block_erase_c7, |
| 12439 | } |
| 12440 | }, |
| 12441 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 12442 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12443 | .write = spi_chip_write_256, |
| 12444 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12445 | .voltage = {2700, 3600}, |
| 12446 | }, |
| 12447 | |
| 12448 | { |
| 12449 | .vendor = "PMC", |
Steven Honeyman | 81a8fb7 | 2015-06-02 22:32:24 +0000 | [diff] [blame] | 12450 | .name = "Pm25LQ040", |
| 12451 | .bustype = BUS_SPI, |
| 12452 | .manufacture_id = PMC_ID, |
| 12453 | .model_id = PMC_PM25LQ040, |
| 12454 | .total_size = 512, |
| 12455 | .page_size = 256, |
| 12456 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 12457 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12458 | .tested = TEST_UNTESTED, |
| 12459 | .probe = probe_spi_rdid, |
| 12460 | .probe_timing = TIMING_ZERO, |
| 12461 | .block_erasers = |
| 12462 | { |
| 12463 | { |
| 12464 | .eraseblocks = { {4 * 1024, 128} }, |
| 12465 | .block_erase = spi_block_erase_20, |
| 12466 | }, { |
| 12467 | .eraseblocks = { {4 * 1024, 128} }, |
| 12468 | .block_erase = spi_block_erase_d7, |
| 12469 | }, { |
| 12470 | .eraseblocks = { {64 * 1024, 8} }, |
| 12471 | .block_erase = spi_block_erase_d8, |
| 12472 | }, { |
| 12473 | .eraseblocks = { {512 * 1024, 1} }, |
| 12474 | .block_erase = spi_block_erase_60, |
| 12475 | }, { |
| 12476 | .eraseblocks = { {512 * 1024, 1} }, |
| 12477 | .block_erase = spi_block_erase_c7, |
| 12478 | } |
| 12479 | }, |
| 12480 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 12481 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12482 | .write = spi_chip_write_256, |
| 12483 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12484 | .voltage = {2300, 3600}, |
| 12485 | }, |
| 12486 | |
| 12487 | { |
| 12488 | .vendor = "PMC", |
| 12489 | .name = "Pm25LQ080", |
| 12490 | .bustype = BUS_SPI, |
| 12491 | .manufacture_id = PMC_ID, |
| 12492 | .model_id = PMC_PM25LQ080, |
| 12493 | .total_size = 1024, |
| 12494 | .page_size = 256, |
| 12495 | /* OTP: 64B total; read 0x4B, write 0xB1 */ |
| 12496 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12497 | .tested = TEST_UNTESTED, |
| 12498 | .probe = probe_spi_rdid, |
| 12499 | .probe_timing = TIMING_ZERO, |
| 12500 | .block_erasers = |
| 12501 | { |
| 12502 | { |
| 12503 | .eraseblocks = { {4 * 1024, 256} }, |
| 12504 | .block_erase = spi_block_erase_20, |
| 12505 | }, { |
| 12506 | .eraseblocks = { {4 * 1024, 256} }, |
| 12507 | .block_erase = spi_block_erase_d7, |
| 12508 | }, { |
| 12509 | .eraseblocks = { {64 * 1024, 16} }, |
| 12510 | .block_erase = spi_block_erase_d8, |
| 12511 | }, { |
| 12512 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12513 | .block_erase = spi_block_erase_60, |
| 12514 | }, { |
| 12515 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12516 | .block_erase = spi_block_erase_c7, |
| 12517 | } |
| 12518 | }, |
| 12519 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 12520 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12521 | .write = spi_chip_write_256, |
| 12522 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12523 | .voltage = {2300, 3600}, |
| 12524 | }, |
| 12525 | |
| 12526 | { |
| 12527 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12528 | .name = "Pm25LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12529 | .bustype = BUS_SPI, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 12530 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12531 | .model_id = PMC_PM25LV010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12532 | .total_size = 128, |
| 12533 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12534 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 12535 | .tested = TEST_OK_PREW, |
| 12536 | .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] | 12537 | .probe_timing = TIMING_ZERO, |
| 12538 | .block_erasers = |
| 12539 | { |
| 12540 | { |
| 12541 | .eraseblocks = { {4 * 1024, 32} }, |
| 12542 | .block_erase = spi_block_erase_d7, |
| 12543 | }, { |
| 12544 | .eraseblocks = { {32 * 1024, 4} }, |
| 12545 | .block_erase = spi_block_erase_d8, |
| 12546 | }, { |
| 12547 | .eraseblocks = { {128 * 1024, 1} }, |
| 12548 | .block_erase = spi_block_erase_c7, |
| 12549 | } |
| 12550 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12551 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 12552 | .unlock = spi_disable_blockprotect, |
| 12553 | .write = spi_chip_write_256, |
| 12554 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12555 | .voltage = {2700, 3600}, |
| 12556 | }, |
| 12557 | |
| 12558 | { |
| 12559 | .vendor = "PMC", |
| 12560 | .name = "Pm25LV010A", |
| 12561 | .bustype = BUS_SPI, |
| 12562 | .manufacture_id = PMC_ID, |
| 12563 | .model_id = PMC_PM25LV010, |
| 12564 | .total_size = 128, |
| 12565 | .page_size = 256, |
| 12566 | .feature_bits = FEATURE_WRSR_WREN, |
| 12567 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12568 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12569 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12570 | .block_erasers = |
| 12571 | { |
| 12572 | { |
| 12573 | .eraseblocks = { {4 * 1024, 32} }, |
| 12574 | .block_erase = spi_block_erase_d7, |
| 12575 | }, { |
| 12576 | .eraseblocks = { {32 * 1024, 4} }, |
| 12577 | .block_erase = spi_block_erase_d8, |
| 12578 | }, { |
| 12579 | .eraseblocks = { {128 * 1024, 1} }, |
| 12580 | .block_erase = spi_block_erase_c7, |
| 12581 | } |
| 12582 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12583 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12584 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12585 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 12586 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 12587 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12588 | }, |
| 12589 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12590 | { |
| 12591 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12592 | .name = "Pm25LV016B", |
| 12593 | .bustype = BUS_SPI, |
| 12594 | .manufacture_id = PMC_ID, |
| 12595 | .model_id = PMC_PM25LV016B, |
| 12596 | .total_size = 2048, |
| 12597 | .page_size = 256, |
| 12598 | .feature_bits = FEATURE_WRSR_WREN, |
| 12599 | .tested = TEST_UNTESTED, |
| 12600 | .probe = probe_spi_rdid, |
| 12601 | .probe_timing = TIMING_ZERO, |
| 12602 | .block_erasers = |
| 12603 | { |
| 12604 | { |
| 12605 | .eraseblocks = { {4 * 1024, 512} }, |
| 12606 | .block_erase = spi_block_erase_d7, |
| 12607 | }, { |
| 12608 | .eraseblocks = { {4 * 1024, 512} }, |
| 12609 | .block_erase = spi_block_erase_20, |
| 12610 | }, { |
| 12611 | .eraseblocks = { {64 * 1024, 32} }, |
| 12612 | .block_erase = spi_block_erase_d8, |
| 12613 | }, { |
| 12614 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12615 | .block_erase = spi_block_erase_60, |
| 12616 | }, { |
| 12617 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12618 | .block_erase = spi_block_erase_c7, |
| 12619 | } |
| 12620 | }, |
| 12621 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 12622 | .unlock = spi_disable_blockprotect, |
| 12623 | .write = spi_chip_write_256, |
| 12624 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12625 | .voltage = {2700, 3600}, |
| 12626 | }, |
| 12627 | |
| 12628 | { |
| 12629 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12630 | .name = "Pm25LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12631 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12632 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12633 | .model_id = PMC_PM25LV020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12634 | .total_size = 256, |
| 12635 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12636 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12637 | .tested = TEST_UNTESTED, |
| 12638 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12639 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12640 | .block_erasers = |
| 12641 | { |
| 12642 | { |
| 12643 | .eraseblocks = { {4 * 1024, 64} }, |
| 12644 | .block_erase = spi_block_erase_d7, |
| 12645 | }, { |
| 12646 | .eraseblocks = { {64 * 1024, 4} }, |
| 12647 | .block_erase = spi_block_erase_d8, |
| 12648 | }, { |
| 12649 | .eraseblocks = { {256 * 1024, 1} }, |
| 12650 | .block_erase = spi_block_erase_c7, |
| 12651 | } |
| 12652 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12653 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12654 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12655 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12656 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12657 | .voltage = {2700, 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 | { |
| 12661 | .vendor = "PMC", |
| 12662 | .name = "Pm25LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12663 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12664 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12665 | .model_id = PMC_PM25LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12666 | .total_size = 512, |
| 12667 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12668 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 12669 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12670 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12671 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12672 | .block_erasers = |
| 12673 | { |
| 12674 | { |
| 12675 | .eraseblocks = { {4 * 1024, 128} }, |
| 12676 | .block_erase = spi_block_erase_d7, |
| 12677 | }, { |
| 12678 | .eraseblocks = { {64 * 1024, 8} }, |
| 12679 | .block_erase = spi_block_erase_d8, |
| 12680 | }, { |
| 12681 | .eraseblocks = { {512 * 1024, 1} }, |
| 12682 | .block_erase = spi_block_erase_c7, |
| 12683 | } |
| 12684 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12685 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12686 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12687 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 12688 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12689 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12690 | }, |
| 12691 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12692 | { |
| 12693 | .vendor = "PMC", |
| 12694 | .name = "Pm25LV080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12695 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12696 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12697 | .model_id = PMC_PM25LV080B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12698 | .total_size = 1024, |
| 12699 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12700 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12701 | .tested = TEST_UNTESTED, |
| 12702 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12703 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12704 | .block_erasers = |
| 12705 | { |
| 12706 | { |
| 12707 | .eraseblocks = { {4 * 1024, 256} }, |
| 12708 | .block_erase = spi_block_erase_d7, |
| 12709 | }, { |
| 12710 | .eraseblocks = { {4 * 1024, 256} }, |
| 12711 | .block_erase = spi_block_erase_20, |
| 12712 | }, { |
| 12713 | .eraseblocks = { {64 * 1024, 16} }, |
| 12714 | .block_erase = spi_block_erase_d8, |
| 12715 | }, { |
| 12716 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12717 | .block_erase = spi_block_erase_60, |
| 12718 | }, { |
| 12719 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12720 | .block_erase = spi_block_erase_c7, |
| 12721 | } |
| 12722 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12723 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12724 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12725 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 12726 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12727 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12728 | }, |
| 12729 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12730 | { |
| 12731 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12732 | .name = "Pm25LV512(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12733 | .bustype = BUS_SPI, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12734 | .manufacture_id = PMC_ID_NOPREFIX, |
| 12735 | .model_id = PMC_PM25LV512, |
| 12736 | .total_size = 64, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12737 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12738 | .feature_bits = FEATURE_WRSR_WREN, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12739 | .tested = TEST_OK_PREW, |
| 12740 | .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] | 12741 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12742 | .block_erasers = |
| 12743 | { |
| 12744 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12745 | .eraseblocks = { {4 * 1024, 16} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12746 | .block_erase = spi_block_erase_d7, |
| 12747 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12748 | .eraseblocks = { {32 * 1024, 2} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12749 | .block_erase = spi_block_erase_d8, |
| 12750 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12751 | .eraseblocks = { {64 * 1024, 1} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12752 | .block_erase = spi_block_erase_c7, |
| 12753 | } |
| 12754 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12755 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12756 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12757 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 12758 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 12759 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12760 | }, |
| 12761 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12762 | { |
| 12763 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12764 | .name = "Pm29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12765 | .bustype = BUS_PARALLEL, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 12766 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12767 | .model_id = PMC_PM29F002B, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 12768 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12769 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12770 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 12771 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12772 | .probe = probe_jedec, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 12773 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12774 | .block_erasers = |
| 12775 | { |
| 12776 | { |
| 12777 | .eraseblocks = { |
| 12778 | {16 * 1024, 1}, |
| 12779 | {8 * 1024, 2}, |
| 12780 | {96 * 1024, 1}, |
| 12781 | {128 * 1024, 1}, |
| 12782 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12783 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12784 | }, { |
| 12785 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12786 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12787 | }, |
| 12788 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12789 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 12790 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12791 | .voltage = {4500, 5500}, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 12792 | }, |
| 12793 | |
| 12794 | { |
| 12795 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12796 | .name = "Pm29F002T", |
| 12797 | .bustype = BUS_PARALLEL, |
| 12798 | .manufacture_id = PMC_ID_NOPREFIX, |
| 12799 | .model_id = PMC_PM29F002T, |
| 12800 | .total_size = 256, |
| 12801 | .page_size = 8 * 1024, |
| 12802 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 12803 | .tested = TEST_OK_PREW, |
| 12804 | .probe = probe_jedec, |
| 12805 | .probe_timing = TIMING_FIXME, |
| 12806 | .block_erasers = |
| 12807 | { |
| 12808 | { |
| 12809 | .eraseblocks = { |
| 12810 | {128 * 1024, 1}, |
| 12811 | {96 * 1024, 1}, |
| 12812 | {8 * 1024, 2}, |
| 12813 | {16 * 1024, 1}, |
| 12814 | }, |
| 12815 | .block_erase = erase_sector_jedec, |
| 12816 | }, { |
| 12817 | .eraseblocks = { {256 * 1024, 1} }, |
| 12818 | .block_erase = erase_chip_block_jedec, |
| 12819 | }, |
| 12820 | }, |
| 12821 | .write = write_jedec_1, |
| 12822 | .read = read_memmapped, |
| 12823 | .voltage = {4500, 5500}, |
| 12824 | }, |
| 12825 | |
| 12826 | { |
| 12827 | .vendor = "PMC", |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 12828 | .name = "Pm39LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12829 | .bustype = BUS_PARALLEL, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 12830 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12831 | .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] | 12832 | .total_size = 128, |
| 12833 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12834 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 12835 | .tested = TEST_OK_PREW, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 12836 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 12837 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12838 | .block_erasers = |
| 12839 | { |
| 12840 | { |
| 12841 | .eraseblocks = { {4 * 1024, 32} }, |
| 12842 | .block_erase = erase_sector_jedec, |
| 12843 | }, { |
| 12844 | .eraseblocks = { {64 * 1024, 2} }, |
| 12845 | .block_erase = erase_block_jedec, |
| 12846 | }, { |
| 12847 | .eraseblocks = { {128 * 1024, 1} }, |
| 12848 | .block_erase = erase_chip_block_jedec, |
| 12849 | } |
| 12850 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12851 | .write = write_jedec_1, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 12852 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12853 | .voltage = {2700, 3600}, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 12854 | }, |
| 12855 | |
| 12856 | { |
| 12857 | .vendor = "PMC", |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12858 | .name = "Pm39LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12859 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12860 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12861 | .model_id = PMC_PM39LV020, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12862 | .total_size = 256, |
| 12863 | .page_size = 4096, |
| 12864 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 12865 | .tested = TEST_UNTESTED, |
| 12866 | .probe = probe_jedec, |
| 12867 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 12868 | .block_erasers = |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12869 | { |
| 12870 | { |
| 12871 | .eraseblocks = { {4 * 1024, 64} }, |
| 12872 | .block_erase = erase_sector_jedec, |
| 12873 | }, { |
| 12874 | .eraseblocks = { {64 * 1024, 4} }, |
| 12875 | .block_erase = erase_block_jedec, |
| 12876 | }, { |
| 12877 | .eraseblocks = { {256 * 1024, 1} }, |
| 12878 | .block_erase = erase_chip_block_jedec, |
| 12879 | } |
| 12880 | }, |
| 12881 | .write = write_jedec_1, |
| 12882 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12883 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12884 | }, |
| 12885 | |
| 12886 | { |
| 12887 | .vendor = "PMC", |
| 12888 | .name = "Pm39LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12889 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12890 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12891 | .model_id = PMC_PM39LV040, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12892 | .total_size = 512, |
| 12893 | .page_size = 4096, |
| 12894 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 12895 | .tested = TEST_OK_PR, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12896 | .probe = probe_jedec, |
| 12897 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 12898 | .block_erasers = |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12899 | { |
| 12900 | { |
| 12901 | .eraseblocks = { {4 * 1024, 128} }, |
| 12902 | .block_erase = erase_sector_jedec, |
| 12903 | }, { |
| 12904 | .eraseblocks = { {64 * 1024, 8} }, |
| 12905 | .block_erase = erase_block_jedec, |
| 12906 | }, { |
| 12907 | .eraseblocks = { {512 * 1024, 1} }, |
| 12908 | .block_erase = erase_chip_block_jedec, |
| 12909 | } |
| 12910 | }, |
| 12911 | .write = write_jedec_1, |
| 12912 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12913 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12914 | }, |
Kyösti Mälkki | edab1d2 | 2012-05-20 23:32:33 +0000 | [diff] [blame] | 12915 | |
| 12916 | { |
| 12917 | .vendor = "PMC", |
| 12918 | .name = "Pm39LV512", |
| 12919 | .bustype = BUS_PARALLEL, |
| 12920 | .manufacture_id = PMC_ID_NOPREFIX, |
| 12921 | .model_id = PMC_PM39LV512, |
| 12922 | .total_size = 64, |
| 12923 | .page_size = 4096, |
| 12924 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 12925 | .tested = TEST_OK_PREW, |
| 12926 | .probe = probe_jedec, |
| 12927 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 12928 | .block_erasers = |
| 12929 | { |
| 12930 | { |
| 12931 | .eraseblocks = { {4 * 1024, 16} }, |
| 12932 | .block_erase = erase_sector_jedec, |
| 12933 | }, { |
| 12934 | .eraseblocks = { {64 * 1024, 1} }, |
| 12935 | .block_erase = erase_block_jedec, |
| 12936 | }, { |
| 12937 | .eraseblocks = { {64 * 1024, 1} }, |
| 12938 | .block_erase = erase_chip_block_jedec, |
| 12939 | } |
| 12940 | }, |
| 12941 | .write = write_jedec_1, |
| 12942 | .read = read_memmapped, |
| 12943 | .voltage = {2700, 3600}, |
| 12944 | }, |
| 12945 | |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12946 | { |
| 12947 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12948 | .name = "Pm49FL002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12949 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12950 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12951 | .model_id = PMC_PM49FL002, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12952 | .total_size = 256, |
| 12953 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12954 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12955 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 12956 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 12957 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12958 | .block_erasers = |
| 12959 | { |
| 12960 | { |
| 12961 | .eraseblocks = { {4 * 1024, 64} }, |
| 12962 | .block_erase = erase_sector_jedec, |
| 12963 | }, { |
| 12964 | .eraseblocks = { {16 * 1024, 16} }, |
| 12965 | .block_erase = erase_block_jedec, |
| 12966 | }, { |
| 12967 | .eraseblocks = { {256 * 1024, 1} }, |
| 12968 | .block_erase = erase_chip_block_jedec, |
| 12969 | } |
| 12970 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12971 | .unlock = unlock_regspace2_uniform_32k, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 12972 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12973 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12974 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12975 | }, |
| 12976 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12977 | { |
| 12978 | .vendor = "PMC", |
| 12979 | .name = "Pm49FL004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12980 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12981 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12982 | .model_id = PMC_PM49FL004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12983 | .total_size = 512, |
| 12984 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12985 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 12986 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 12987 | .probe = probe_jedec, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 12988 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12989 | .block_erasers = |
| 12990 | { |
| 12991 | { |
| 12992 | .eraseblocks = { {4 * 1024, 128} }, |
| 12993 | .block_erase = erase_sector_jedec, |
| 12994 | }, { |
| 12995 | .eraseblocks = { {64 * 1024, 8} }, |
| 12996 | .block_erase = erase_block_jedec, |
| 12997 | }, { |
| 12998 | .eraseblocks = { {512 * 1024, 1} }, |
| 12999 | .block_erase = erase_chip_block_jedec, |
| 13000 | } |
| 13001 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13002 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 13003 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13004 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13005 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13006 | }, |
| 13007 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13008 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13009 | .vendor = "SST", |
Idwer Vollering | f3607d1 | 2014-05-07 15:25:04 +0000 | [diff] [blame] | 13010 | .name = "SST25LF020A", |
| 13011 | .bustype = BUS_SPI, |
| 13012 | .manufacture_id = SST_ID, |
| 13013 | .model_id = SST_SST25VF020_REMS, |
| 13014 | .total_size = 256, |
| 13015 | .page_size = 256, |
| 13016 | .feature_bits = FEATURE_WRSR_EWSR, |
| 13017 | .tested = TEST_OK_PREW, |
| 13018 | .probe = probe_spi_rems, |
| 13019 | .probe_timing = TIMING_ZERO, |
| 13020 | .block_erasers = |
| 13021 | { |
| 13022 | { |
| 13023 | .eraseblocks = { {4 * 1024, 64} }, |
| 13024 | .block_erase = spi_block_erase_20, |
| 13025 | }, { |
| 13026 | .eraseblocks = { {32 * 1024, 8} }, |
| 13027 | .block_erase = spi_block_erase_52, |
| 13028 | }, { |
| 13029 | .eraseblocks = { {256 * 1024, 1} }, |
| 13030 | .block_erase = spi_block_erase_60, |
| 13031 | }, |
| 13032 | }, |
| 13033 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 13034 | .unlock = spi_disable_blockprotect, |
| 13035 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 13036 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13037 | .voltage = {2700, 3600}, |
| 13038 | }, |
| 13039 | |
| 13040 | { |
| 13041 | .vendor = "SST", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 13042 | .name = "SST25LF040A", |
| 13043 | .bustype = BUS_SPI, |
| 13044 | .manufacture_id = SST_ID, |
| 13045 | .model_id = SST_SST25VF040_REMS, |
| 13046 | .total_size = 512, |
| 13047 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 13048 | .feature_bits = FEATURE_WRSR_EWSR, |
Uwe Hermann | 4335ec8 | 2011-09-07 20:20:25 +0000 | [diff] [blame] | 13049 | .tested = TEST_OK_PREW, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 13050 | .probe = probe_spi_res2, |
| 13051 | .probe_timing = TIMING_ZERO, |
| 13052 | .block_erasers = |
| 13053 | { |
| 13054 | { |
| 13055 | .eraseblocks = { {4 * 1024, 128} }, |
| 13056 | .block_erase = spi_block_erase_20, |
| 13057 | }, { |
| 13058 | .eraseblocks = { {32 * 1024, 16} }, |
| 13059 | .block_erase = spi_block_erase_52, |
| 13060 | }, { |
| 13061 | .eraseblocks = { {512 * 1024, 1} }, |
| 13062 | .block_erase = spi_block_erase_60, |
| 13063 | }, |
| 13064 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 13065 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 13066 | .unlock = spi_disable_blockprotect, |
| 13067 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 13068 | .read = spi_chip_read, |
| 13069 | .voltage = {3000, 3600}, |
| 13070 | }, |
| 13071 | |
| 13072 | { |
| 13073 | .vendor = "SST", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 13074 | .name = "SST25LF080(A)", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 13075 | .bustype = BUS_SPI, |
| 13076 | .manufacture_id = SST_ID, |
| 13077 | .model_id = SST_SST25VF080_REMS, |
| 13078 | .total_size = 1024, |
| 13079 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 13080 | .feature_bits = FEATURE_WRSR_EITHER, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 13081 | .tested = TEST_UNTESTED, |
| 13082 | .probe = probe_spi_res2, |
| 13083 | .probe_timing = TIMING_ZERO, |
| 13084 | .block_erasers = |
| 13085 | { |
| 13086 | { |
| 13087 | .eraseblocks = { {4 * 1024, 256} }, |
| 13088 | .block_erase = spi_block_erase_20, |
| 13089 | }, { |
| 13090 | .eraseblocks = { {32 * 1024, 32} }, |
| 13091 | .block_erase = spi_block_erase_52, |
| 13092 | }, { |
| 13093 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13094 | .block_erase = spi_block_erase_60, |
| 13095 | }, |
| 13096 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 13097 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 13098 | .unlock = spi_disable_blockprotect, |
| 13099 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 13100 | .read = spi_chip_read, |
| 13101 | .voltage = {3000, 3600}, |
| 13102 | }, |
| 13103 | |
| 13104 | { |
| 13105 | .vendor = "SST", |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13106 | .name = "SST25VF010(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13107 | .bustype = BUS_SPI, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 13108 | .manufacture_id = SST_ID, |
| 13109 | .model_id = SST_SST25VF010_REMS, |
| 13110 | .total_size = 128, |
| 13111 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 13112 | .feature_bits = FEATURE_WRSR_EWSR, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 13113 | .tested = TEST_OK_PREW, |
| 13114 | .probe = probe_spi_rems, |
| 13115 | .probe_timing = TIMING_ZERO, |
| 13116 | .block_erasers = |
| 13117 | { |
| 13118 | { |
| 13119 | .eraseblocks = { {4 * 1024, 32} }, |
| 13120 | .block_erase = spi_block_erase_20, |
| 13121 | }, { |
| 13122 | .eraseblocks = { {32 * 1024, 4} }, |
| 13123 | .block_erase = spi_block_erase_52, |
| 13124 | }, { |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13125 | .eraseblocks = { {32 * 1024, 4} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13126 | .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13127 | }, { |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 13128 | .eraseblocks = { {128 * 1024, 1} }, |
| 13129 | .block_erase = spi_block_erase_60, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13130 | }, { |
| 13131 | .eraseblocks = { {128 * 1024, 1} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13132 | .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13133 | }, |
| 13134 | }, |
| 13135 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 13136 | .unlock = spi_disable_blockprotect, |
| 13137 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13138 | .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13139 | .voltage = {2700, 3600}, |
| 13140 | }, |
| 13141 | |
| 13142 | { |
| 13143 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13144 | .name = "SST25VF016B", |
| 13145 | .bustype = BUS_SPI, |
| 13146 | .manufacture_id = SST_ID, |
| 13147 | .model_id = SST_SST25VF016B, |
| 13148 | .total_size = 2048, |
| 13149 | .page_size = 256, |
| 13150 | .feature_bits = FEATURE_WRSR_EITHER, |
| 13151 | .tested = TEST_OK_PREW, |
| 13152 | .probe = probe_spi_rdid, |
| 13153 | .probe_timing = TIMING_ZERO, |
| 13154 | .block_erasers = |
| 13155 | { |
| 13156 | { |
| 13157 | .eraseblocks = { {4 * 1024, 512} }, |
| 13158 | .block_erase = spi_block_erase_20, |
| 13159 | }, { |
| 13160 | .eraseblocks = { {32 * 1024, 64} }, |
| 13161 | .block_erase = spi_block_erase_52, |
| 13162 | }, { |
| 13163 | .eraseblocks = { {64 * 1024, 32} }, |
| 13164 | .block_erase = spi_block_erase_d8, |
| 13165 | }, { |
| 13166 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 13167 | .block_erase = spi_block_erase_60, |
| 13168 | }, { |
| 13169 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 13170 | .block_erase = spi_block_erase_c7, |
| 13171 | }, |
| 13172 | }, |
| 13173 | .printlock = spi_prettyprint_status_register_sst25vf016, |
| 13174 | .unlock = spi_disable_blockprotect, |
| 13175 | .write = spi_aai_write, |
| 13176 | .read = spi_chip_read, |
| 13177 | .voltage = {2700, 3600}, |
| 13178 | }, |
| 13179 | |
| 13180 | { |
| 13181 | .vendor = "SST", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13182 | .name = "SST25VF020", |
| 13183 | .bustype = BUS_SPI, |
| 13184 | .manufacture_id = SST_ID, |
| 13185 | .model_id = SST_SST25VF020_REMS, |
| 13186 | .total_size = 256, |
| 13187 | .page_size = 256, |
| 13188 | .feature_bits = FEATURE_WRSR_EWSR, |
| 13189 | .tested = TEST_UNTESTED, |
| 13190 | .probe = probe_spi_rems, |
| 13191 | .probe_timing = TIMING_ZERO, |
| 13192 | .block_erasers = |
| 13193 | { |
| 13194 | { |
| 13195 | .eraseblocks = { {4 * 1024, 64} }, |
| 13196 | .block_erase = spi_block_erase_20, |
| 13197 | }, { |
| 13198 | .eraseblocks = { {32 * 1024, 8} }, |
| 13199 | .block_erase = spi_block_erase_52, |
| 13200 | }, { |
| 13201 | .eraseblocks = { {256 * 1024, 1} }, |
| 13202 | .block_erase = spi_block_erase_60, |
| 13203 | }, |
| 13204 | }, |
| 13205 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 13206 | .unlock = spi_disable_blockprotect, |
| 13207 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 13208 | .read = spi_chip_read, /* only */ |
| 13209 | .voltage = {2700, 3600}, |
| 13210 | }, |
| 13211 | |
| 13212 | { |
| 13213 | .vendor = "SST", |
| 13214 | .name = "SST25VF020B", |
| 13215 | .bustype = BUS_SPI, |
| 13216 | .manufacture_id = SST_ID, |
| 13217 | .model_id = SST_SST25VF020B, |
| 13218 | .total_size = 256, |
| 13219 | .page_size = 256, |
| 13220 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 13221 | .tested = TEST_OK_PREW, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13222 | .probe = probe_spi_rdid, |
| 13223 | .probe_timing = TIMING_ZERO, |
| 13224 | .block_erasers = |
| 13225 | { |
| 13226 | { |
| 13227 | .eraseblocks = { {4 * 1024, 64} }, |
| 13228 | .block_erase = spi_block_erase_20, |
| 13229 | }, { |
| 13230 | .eraseblocks = { {32 * 1024, 8} }, |
| 13231 | .block_erase = spi_block_erase_52, |
| 13232 | }, { |
| 13233 | .eraseblocks = { {64 * 1024, 4} }, |
| 13234 | .block_erase = spi_block_erase_d8, |
| 13235 | }, { |
| 13236 | .eraseblocks = { {256 * 1024, 1} }, |
| 13237 | .block_erase = spi_block_erase_60, |
| 13238 | }, { |
| 13239 | .eraseblocks = { {256 * 1024, 1} }, |
| 13240 | .block_erase = spi_block_erase_c7, |
| 13241 | }, |
| 13242 | }, |
| 13243 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */ |
| 13244 | .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */ |
| 13245 | .write = spi_aai_write, /* AAI supported (0xAD) */ |
| 13246 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13247 | .voltage = {2700, 3600}, |
| 13248 | }, |
| 13249 | |
| 13250 | { |
| 13251 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13252 | .name = "SST25VF032B", |
| 13253 | .bustype = BUS_SPI, |
| 13254 | .manufacture_id = SST_ID, |
| 13255 | .model_id = SST_SST25VF032B, |
| 13256 | .total_size = 4096, |
| 13257 | .page_size = 256, |
| 13258 | .feature_bits = FEATURE_WRSR_EWSR, |
| 13259 | .tested = TEST_OK_PREW, |
| 13260 | .probe = probe_spi_rdid, |
| 13261 | .probe_timing = TIMING_ZERO, |
| 13262 | .block_erasers = |
| 13263 | { |
| 13264 | { |
| 13265 | .eraseblocks = { {4 * 1024, 1024} }, |
| 13266 | .block_erase = spi_block_erase_20, |
| 13267 | }, { |
| 13268 | .eraseblocks = { {32 * 1024, 128} }, |
| 13269 | .block_erase = spi_block_erase_52, |
| 13270 | }, { |
| 13271 | .eraseblocks = { {64 * 1024, 64} }, |
| 13272 | .block_erase = spi_block_erase_d8, |
| 13273 | }, { |
| 13274 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 13275 | .block_erase = spi_block_erase_60, |
| 13276 | }, { |
| 13277 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 13278 | .block_erase = spi_block_erase_c7, |
| 13279 | }, |
| 13280 | }, |
| 13281 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
| 13282 | .unlock = spi_disable_blockprotect, |
| 13283 | .write = spi_aai_write, |
| 13284 | .read = spi_chip_read, |
| 13285 | .voltage = {2700, 3600}, |
| 13286 | }, |
| 13287 | |
| 13288 | { |
| 13289 | .vendor = "SST", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13290 | .name = "SST25VF040", |
| 13291 | .bustype = BUS_SPI, |
| 13292 | .manufacture_id = SST_ID, |
| 13293 | .model_id = SST_SST25VF040_REMS, |
| 13294 | .total_size = 512, |
| 13295 | .page_size = 256, |
| 13296 | .feature_bits = FEATURE_WRSR_EWSR, |
| 13297 | .tested = TEST_OK_PR, |
| 13298 | .probe = probe_spi_rems, |
| 13299 | .probe_timing = TIMING_ZERO, |
| 13300 | .block_erasers = |
| 13301 | { |
| 13302 | { |
| 13303 | .eraseblocks = { {4 * 1024, 128} }, |
| 13304 | .block_erase = spi_block_erase_20, |
| 13305 | }, { |
| 13306 | .eraseblocks = { {32 * 1024, 16} }, |
| 13307 | .block_erase = spi_block_erase_52, |
| 13308 | }, { |
| 13309 | .eraseblocks = { {512 * 1024, 1} }, |
| 13310 | .block_erase = spi_block_erase_60, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 13311 | }, |
| 13312 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 13313 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 13314 | .unlock = spi_disable_blockprotect, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13315 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 13316 | .read = spi_chip_read, |
| 13317 | .voltage = {2700, 3600}, |
| 13318 | }, |
| 13319 | |
| 13320 | { |
| 13321 | .vendor = "SST", |
| 13322 | .name = "SST25VF040B", |
| 13323 | .bustype = BUS_SPI, |
| 13324 | .manufacture_id = SST_ID, |
| 13325 | .model_id = SST_SST25VF040B, |
| 13326 | .total_size = 512, |
| 13327 | .page_size = 256, |
| 13328 | .feature_bits = FEATURE_WRSR_EWSR, |
| 13329 | .tested = TEST_OK_PREW, |
| 13330 | .probe = probe_spi_rdid, |
| 13331 | .probe_timing = TIMING_ZERO, |
| 13332 | .block_erasers = |
| 13333 | { |
| 13334 | { |
| 13335 | .eraseblocks = { {4 * 1024, 128} }, |
| 13336 | .block_erase = spi_block_erase_20, |
| 13337 | }, { |
| 13338 | .eraseblocks = { {32 * 1024, 16} }, |
| 13339 | .block_erase = spi_block_erase_52, |
| 13340 | }, { |
| 13341 | .eraseblocks = { {64 * 1024, 8} }, |
| 13342 | .block_erase = spi_block_erase_d8, |
| 13343 | }, { |
| 13344 | .eraseblocks = { {512 * 1024, 1} }, |
| 13345 | .block_erase = spi_block_erase_60, |
| 13346 | }, { |
| 13347 | .eraseblocks = { {512 * 1024, 1} }, |
| 13348 | .block_erase = spi_block_erase_c7, |
| 13349 | }, |
| 13350 | }, |
| 13351 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
| 13352 | .unlock = spi_disable_blockprotect, |
| 13353 | .write = spi_aai_write, /* AAI supported (0xAD) */ |
| 13354 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13355 | .voltage = {2700, 3600}, |
| 13356 | }, |
| 13357 | |
| 13358 | { |
| 13359 | .vendor = "SST", |
| 13360 | .name = "SST25VF040B.REMS", |
| 13361 | .bustype = BUS_SPI, |
| 13362 | .manufacture_id = SST_ID, |
| 13363 | .model_id = SST_SST25VF040B_REMS, |
| 13364 | .total_size = 512, |
| 13365 | .page_size = 256, |
| 13366 | .feature_bits = FEATURE_WRSR_EWSR, |
| 13367 | .tested = TEST_OK_PREW, |
| 13368 | .probe = probe_spi_rems, |
| 13369 | .probe_timing = TIMING_ZERO, |
| 13370 | .block_erasers = |
| 13371 | { |
| 13372 | { |
| 13373 | .eraseblocks = { {4 * 1024, 128} }, |
| 13374 | .block_erase = spi_block_erase_20, |
| 13375 | }, { |
| 13376 | .eraseblocks = { {32 * 1024, 16} }, |
| 13377 | .block_erase = spi_block_erase_52, |
| 13378 | }, { |
| 13379 | .eraseblocks = { {64 * 1024, 8} }, |
| 13380 | .block_erase = spi_block_erase_d8, |
| 13381 | }, { |
| 13382 | .eraseblocks = { {512 * 1024, 1} }, |
| 13383 | .block_erase = spi_block_erase_60, |
| 13384 | }, { |
| 13385 | .eraseblocks = { {512 * 1024, 1} }, |
| 13386 | .block_erase = spi_block_erase_c7, |
| 13387 | }, |
| 13388 | }, |
| 13389 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
| 13390 | .unlock = spi_disable_blockprotect, |
| 13391 | .write = spi_aai_write, |
| 13392 | .read = spi_chip_read, |
| 13393 | .voltage = {2700, 3600}, |
| 13394 | }, |
| 13395 | |
| 13396 | { |
| 13397 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13398 | .name = "SST25VF064C", |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13399 | .bustype = BUS_SPI, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13400 | .manufacture_id = SST_ID, |
| 13401 | .model_id = SST_SST25VF064C, |
| 13402 | .total_size = 8192, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13403 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13404 | .feature_bits = FEATURE_WRSR_EWSR, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13405 | .tested = TEST_OK_PREW, |
| 13406 | .probe = probe_spi_rdid, |
| 13407 | .probe_timing = TIMING_ZERO, |
| 13408 | .block_erasers = |
| 13409 | { |
| 13410 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13411 | .eraseblocks = { {4 * 1024, 2048} }, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13412 | .block_erase = spi_block_erase_20, |
| 13413 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13414 | .eraseblocks = { {32 * 1024, 256} }, |
| 13415 | .block_erase = spi_block_erase_52, |
| 13416 | }, { |
| 13417 | .eraseblocks = { {64 * 1024, 128} }, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13418 | .block_erase = spi_block_erase_d8, |
| 13419 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13420 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13421 | .block_erase = spi_block_erase_60, |
| 13422 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13423 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13424 | .block_erase = spi_block_erase_c7, |
| 13425 | }, |
| 13426 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13427 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
| 13428 | .unlock = spi_disable_blockprotect, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13429 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13430 | .read = spi_chip_read, |
| 13431 | .voltage = {2700, 3600}, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13432 | }, |
| 13433 | |
| 13434 | { |
| 13435 | .vendor = "SST", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13436 | .name = "SST25VF080B", |
| 13437 | .bustype = BUS_SPI, |
| 13438 | .manufacture_id = SST_ID, |
| 13439 | .model_id = SST_SST25VF080B, |
| 13440 | .total_size = 1024, |
| 13441 | .page_size = 256, |
| 13442 | .feature_bits = FEATURE_WRSR_EWSR, |
| 13443 | .tested = TEST_OK_PREW, |
| 13444 | .probe = probe_spi_rdid, |
| 13445 | .probe_timing = TIMING_ZERO, |
| 13446 | .block_erasers = |
| 13447 | { |
| 13448 | { |
| 13449 | .eraseblocks = { {4 * 1024, 256} }, |
| 13450 | .block_erase = spi_block_erase_20, |
| 13451 | }, { |
| 13452 | .eraseblocks = { {32 * 1024, 32} }, |
| 13453 | .block_erase = spi_block_erase_52, |
| 13454 | }, { |
| 13455 | .eraseblocks = { {64 * 1024, 16} }, |
| 13456 | .block_erase = spi_block_erase_d8, |
| 13457 | }, { |
| 13458 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13459 | .block_erase = spi_block_erase_60, |
| 13460 | }, { |
| 13461 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13462 | .block_erase = spi_block_erase_c7, |
| 13463 | }, |
| 13464 | }, |
| 13465 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
| 13466 | .unlock = spi_disable_blockprotect, |
| 13467 | .write = spi_aai_write, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 13468 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 13469 | .voltage = {2700, 3600}, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 13470 | }, |
| 13471 | |
| 13472 | { |
| 13473 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13474 | .name = "SST25VF512(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13475 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13476 | .manufacture_id = SST_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13477 | .model_id = SST_SST25VF512_REMS, |
| 13478 | .total_size = 64, |
| 13479 | .page_size = 256, |
| 13480 | .feature_bits = FEATURE_WRSR_EWSR, |
| 13481 | .tested = TEST_OK_PREW, |
| 13482 | .probe = probe_spi_rems, |
| 13483 | .probe_timing = TIMING_ZERO, |
| 13484 | .block_erasers = |
| 13485 | { |
| 13486 | { |
| 13487 | .eraseblocks = { {4 * 1024, 16} }, |
| 13488 | .block_erase = spi_block_erase_20, |
| 13489 | }, { |
| 13490 | .eraseblocks = { {32 * 1024, 2} }, |
| 13491 | .block_erase = spi_block_erase_52, |
| 13492 | }, { |
| 13493 | .eraseblocks = { {32 * 1024, 2} }, |
| 13494 | .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */ |
| 13495 | }, { |
| 13496 | .eraseblocks = { {64 * 1024, 1} }, |
| 13497 | .block_erase = spi_block_erase_60, |
| 13498 | }, { |
| 13499 | .eraseblocks = { {64 * 1024, 1} }, |
| 13500 | .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */ |
| 13501 | }, |
| 13502 | }, |
| 13503 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 13504 | .unlock = spi_disable_blockprotect, |
| 13505 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 13506 | .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */ |
| 13507 | .voltage = {2700, 3600}, |
| 13508 | }, |
| 13509 | |
| 13510 | { |
| 13511 | .vendor = "SST", |
| 13512 | .name = "SST25WF010", |
| 13513 | .bustype = BUS_SPI, |
| 13514 | .manufacture_id = SST_ID, |
| 13515 | .model_id = SST_SST25WF010, |
| 13516 | .total_size = 128, |
| 13517 | .page_size = 256, |
| 13518 | .feature_bits = FEATURE_WRSR_EITHER, |
| 13519 | .tested = TEST_UNTESTED, |
| 13520 | .probe = probe_spi_rdid, |
| 13521 | .probe_timing = TIMING_ZERO, |
| 13522 | .block_erasers = |
| 13523 | { |
| 13524 | { |
| 13525 | .eraseblocks = { {4 * 1024, 32} }, |
| 13526 | .block_erase = spi_block_erase_20, |
| 13527 | }, { |
| 13528 | .eraseblocks = { {32 * 1024, 4} }, |
| 13529 | .block_erase = spi_block_erase_52, |
| 13530 | }, { |
| 13531 | .eraseblocks = { {1024 * 128, 1} }, |
| 13532 | .block_erase = spi_block_erase_60, |
| 13533 | }, { |
| 13534 | .eraseblocks = { {1024 * 128, 1} }, |
| 13535 | .block_erase = spi_block_erase_c7, |
| 13536 | }, |
| 13537 | }, |
| 13538 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 13539 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 13540 | .write = spi_aai_write, |
| 13541 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13542 | .voltage = {1650, 1950}, |
| 13543 | }, |
| 13544 | |
| 13545 | { |
| 13546 | .vendor = "SST", |
| 13547 | .name = "SST25WF020", |
| 13548 | .bustype = BUS_SPI, |
| 13549 | .manufacture_id = SST_ID, |
| 13550 | .model_id = SST_SST25WF020, |
| 13551 | .total_size = 256, |
| 13552 | .page_size = 256, |
| 13553 | .feature_bits = FEATURE_WRSR_EITHER, |
| 13554 | .tested = TEST_UNTESTED, |
| 13555 | .probe = probe_spi_rdid, |
| 13556 | .probe_timing = TIMING_ZERO, |
| 13557 | .block_erasers = |
| 13558 | { |
| 13559 | { |
| 13560 | .eraseblocks = { {4 * 1024, 64} }, |
| 13561 | .block_erase = spi_block_erase_20, |
| 13562 | }, { |
| 13563 | .eraseblocks = { {32 * 1024, 8} }, |
| 13564 | .block_erase = spi_block_erase_52, |
| 13565 | }, { |
| 13566 | .eraseblocks = { {64 * 1024, 4} }, |
| 13567 | .block_erase = spi_block_erase_d8, |
| 13568 | }, { |
| 13569 | .eraseblocks = { {1024 * 256, 1} }, |
| 13570 | .block_erase = spi_block_erase_60, |
| 13571 | }, { |
| 13572 | .eraseblocks = { {1024 * 256, 1} }, |
| 13573 | .block_erase = spi_block_erase_c7, |
| 13574 | }, |
| 13575 | }, |
| 13576 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 13577 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 13578 | .write = spi_aai_write, |
| 13579 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13580 | .voltage = {1650, 1950}, |
| 13581 | }, |
| 13582 | |
| 13583 | { |
| 13584 | .vendor = "SST", |
| 13585 | .name = "SST25WF020A", |
| 13586 | .bustype = BUS_SPI, |
| 13587 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 13588 | .model_id = SST_SST25WF020A, |
| 13589 | .total_size = 256, |
| 13590 | .page_size = 256, |
| 13591 | .feature_bits = FEATURE_WRSR_WREN, |
| 13592 | .tested = TEST_UNTESTED, |
| 13593 | .probe = probe_spi_rdid, |
| 13594 | .probe_timing = TIMING_ZERO, |
| 13595 | .block_erasers = |
| 13596 | { |
| 13597 | { |
| 13598 | .eraseblocks = { {4 * 1024, 64} }, |
| 13599 | .block_erase = spi_block_erase_20, |
| 13600 | }, { |
| 13601 | .eraseblocks = { {64 * 1024, 4} }, |
| 13602 | .block_erase = spi_block_erase_d8, |
| 13603 | }, { |
| 13604 | .eraseblocks = { {256 * 1024, 1} }, |
| 13605 | .block_erase = spi_block_erase_60, |
| 13606 | }, { |
| 13607 | .eraseblocks = { {256 * 1024, 1} }, |
| 13608 | .block_erase = spi_block_erase_c7, |
| 13609 | }, |
| 13610 | }, |
| 13611 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 13612 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 13613 | .write = spi_chip_write_256, |
| 13614 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13615 | .voltage = {1650, 1950}, |
| 13616 | }, |
| 13617 | |
| 13618 | { |
| 13619 | .vendor = "SST", |
| 13620 | .name = "SST25WF040", |
| 13621 | .bustype = BUS_SPI, |
| 13622 | .manufacture_id = SST_ID, |
| 13623 | .model_id = SST_SST25WF040, |
| 13624 | .total_size = 512, |
| 13625 | .page_size = 256, |
| 13626 | .feature_bits = FEATURE_WRSR_EITHER, |
| 13627 | .tested = TEST_UNTESTED, |
| 13628 | .probe = probe_spi_rdid, |
| 13629 | .probe_timing = TIMING_ZERO, |
| 13630 | .block_erasers = |
| 13631 | { |
| 13632 | { |
| 13633 | .eraseblocks = { {4 * 1024, 128} }, |
| 13634 | .block_erase = spi_block_erase_20, |
| 13635 | }, { |
| 13636 | .eraseblocks = { {32 * 1024, 16} }, |
| 13637 | .block_erase = spi_block_erase_52, |
| 13638 | }, { |
| 13639 | .eraseblocks = { {64 * 1024, 8} }, |
| 13640 | .block_erase = spi_block_erase_d8, |
| 13641 | }, { |
| 13642 | .eraseblocks = { {1024 * 512, 1} }, |
| 13643 | .block_erase = spi_block_erase_60, |
| 13644 | }, { |
| 13645 | .eraseblocks = { {1024 * 512, 1} }, |
| 13646 | .block_erase = spi_block_erase_c7, |
| 13647 | }, |
| 13648 | }, |
| 13649 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 13650 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 13651 | .write = spi_aai_write, |
| 13652 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13653 | .voltage = {1650, 1950}, |
| 13654 | }, |
| 13655 | |
| 13656 | { |
| 13657 | .vendor = "SST", |
| 13658 | .name = "SST25WF040B", |
| 13659 | .bustype = BUS_SPI, |
| 13660 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 13661 | .model_id = SST_SST25WF040B, |
| 13662 | .total_size = 512, |
| 13663 | .page_size = 256, |
| 13664 | .feature_bits = FEATURE_WRSR_WREN, |
| 13665 | .tested = TEST_UNTESTED, |
| 13666 | .probe = probe_spi_rdid, |
| 13667 | .probe_timing = TIMING_ZERO, |
| 13668 | .block_erasers = |
| 13669 | { |
| 13670 | { |
| 13671 | .eraseblocks = { {4 * 1024, 128} }, |
| 13672 | .block_erase = spi_block_erase_20, |
| 13673 | }, { |
| 13674 | .eraseblocks = { {64 * 1024, 8} }, |
| 13675 | .block_erase = spi_block_erase_d8, |
| 13676 | }, { |
| 13677 | .eraseblocks = { {512 * 1024, 1} }, |
| 13678 | .block_erase = spi_block_erase_60, |
| 13679 | }, { |
| 13680 | .eraseblocks = { {512 * 1024, 1} }, |
| 13681 | .block_erase = spi_block_erase_c7, |
| 13682 | }, |
| 13683 | }, |
| 13684 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 13685 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 13686 | .write = spi_chip_write_256, |
| 13687 | .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */ |
| 13688 | .voltage = {1650, 1950}, |
| 13689 | }, |
| 13690 | |
| 13691 | { |
| 13692 | .vendor = "SST", |
| 13693 | .name = "SST25WF080", |
| 13694 | .bustype = BUS_SPI, |
| 13695 | .manufacture_id = SST_ID, |
| 13696 | .model_id = SST_SST25WF080, |
| 13697 | .total_size = 1024, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13698 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 13699 | .feature_bits = FEATURE_WRSR_EITHER, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 13700 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13701 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13702 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13703 | .block_erasers = |
| 13704 | { |
| 13705 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13706 | .eraseblocks = { {4 * 1024, 256} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13707 | .block_erase = spi_block_erase_20, |
| 13708 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13709 | .eraseblocks = { {32 * 1024, 32} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13710 | .block_erase = spi_block_erase_52, |
| 13711 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13712 | .eraseblocks = { {64 * 1024, 16} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13713 | .block_erase = spi_block_erase_d8, |
| 13714 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13715 | .eraseblocks = { {1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13716 | .block_erase = spi_block_erase_60, |
| 13717 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13718 | .eraseblocks = { {1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13719 | .block_erase = spi_block_erase_c7, |
| 13720 | }, |
| 13721 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13722 | .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */ |
| 13723 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 13724 | .write = spi_aai_write, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13725 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13726 | .voltage = {1650, 1950}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13727 | }, |
| 13728 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13729 | { |
| 13730 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13731 | .name = "SST25WF080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13732 | .bustype = BUS_SPI, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13733 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 13734 | .model_id = SST_SST25WF080B, |
| 13735 | .total_size = 1024, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13736 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13737 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | fcf6a8c | 2011-05-18 01:32:00 +0000 | [diff] [blame] | 13738 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13739 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13740 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13741 | .block_erasers = |
| 13742 | { |
| 13743 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13744 | .eraseblocks = { {4 * 1024, 256} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13745 | .block_erase = spi_block_erase_20, |
| 13746 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13747 | .eraseblocks = { {64 * 1024, 16} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13748 | .block_erase = spi_block_erase_d8, |
| 13749 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13750 | .eraseblocks = { {1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13751 | .block_erase = spi_block_erase_60, |
| 13752 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13753 | .eraseblocks = { {1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13754 | .block_erase = spi_block_erase_c7, |
| 13755 | }, |
| 13756 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13757 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 13758 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 13759 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13760 | .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */ |
| 13761 | .voltage = {1650, 1950}, |
| 13762 | }, |
| 13763 | |
| 13764 | { |
| 13765 | .vendor = "SST", |
| 13766 | .name = "SST25WF512", |
| 13767 | .bustype = BUS_SPI, |
| 13768 | .manufacture_id = SST_ID, |
| 13769 | .model_id = SST_SST25WF512, |
| 13770 | .total_size = 64, |
| 13771 | .page_size = 256, |
| 13772 | .feature_bits = FEATURE_WRSR_EITHER, |
| 13773 | .tested = TEST_UNTESTED, |
| 13774 | .probe = probe_spi_rdid, |
| 13775 | .probe_timing = TIMING_ZERO, |
| 13776 | .block_erasers = |
| 13777 | { |
| 13778 | { |
| 13779 | .eraseblocks = { {4 * 1024, 16} }, |
| 13780 | .block_erase = spi_block_erase_20, |
| 13781 | }, { |
| 13782 | .eraseblocks = { {32 * 1024, 2} }, |
| 13783 | .block_erase = spi_block_erase_52, |
| 13784 | }, { |
| 13785 | .eraseblocks = { {1024 * 64, 1} }, |
| 13786 | .block_erase = spi_block_erase_60, |
| 13787 | }, { |
| 13788 | .eraseblocks = { {1024 * 64, 1} }, |
| 13789 | .block_erase = spi_block_erase_c7, |
| 13790 | }, |
| 13791 | }, |
| 13792 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 13793 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 13794 | .write = spi_aai_write, |
| 13795 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13796 | .voltage = {1650, 1950}, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 13797 | }, |
| 13798 | |
| 13799 | { |
| 13800 | .vendor = "SST", |
Wei Hu | 25584de | 2018-04-30 14:02:08 -0700 | [diff] [blame] | 13801 | .name = "SST26VF016B(A)", |
| 13802 | .bustype = BUS_SPI, |
| 13803 | .manufacture_id = SST_ID, |
| 13804 | .model_id = SST_SST26VF016B, |
| 13805 | .total_size = 2048, |
| 13806 | .page_size = 256, |
| 13807 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 13808 | .tested = TEST_OK_PREW, |
| 13809 | .probe = probe_spi_rdid, |
| 13810 | .probe_timing = TIMING_ZERO, |
| 13811 | .block_erasers = |
| 13812 | { |
| 13813 | { |
| 13814 | .eraseblocks = { {4 * 1024, 512} }, |
| 13815 | .block_erase = spi_block_erase_20, |
| 13816 | }, { |
| 13817 | .eraseblocks = { |
| 13818 | {8 * 1024, 4}, |
| 13819 | {32 * 1024, 1}, |
| 13820 | {64 * 1024, 30}, |
| 13821 | {32 * 1024, 1}, |
| 13822 | {8 * 1024, 4}, |
| 13823 | }, |
| 13824 | .block_erase = spi_block_erase_d8, |
| 13825 | }, { |
| 13826 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 13827 | .block_erase = spi_block_erase_c7, |
| 13828 | }, |
| 13829 | }, |
| 13830 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 13831 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 13832 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 13833 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 13834 | .voltage = {2700, 3600}, |
| 13835 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 13836 | |
Wei Hu | 25584de | 2018-04-30 14:02:08 -0700 | [diff] [blame] | 13837 | { |
| 13838 | .vendor = "SST", |
| 13839 | .name = "SST26VF032B(A)", |
| 13840 | .bustype = BUS_SPI, |
| 13841 | .manufacture_id = SST_ID, |
| 13842 | .model_id = SST_SST26VF032B, |
| 13843 | .total_size = 4096, |
| 13844 | .page_size = 256, |
| 13845 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 13846 | .tested = TEST_UNTESTED, |
| 13847 | .probe = probe_spi_rdid, |
| 13848 | .probe_timing = TIMING_ZERO, |
| 13849 | .block_erasers = |
| 13850 | { |
| 13851 | { |
| 13852 | .eraseblocks = { {4 * 1024, 1024} }, |
| 13853 | .block_erase = spi_block_erase_20, |
| 13854 | }, { |
| 13855 | .eraseblocks = { |
| 13856 | {8 * 1024, 4}, |
| 13857 | {32 * 1024, 1}, |
| 13858 | {64 * 1024, 62}, |
| 13859 | {32 * 1024, 1}, |
| 13860 | {8 * 1024, 4}, |
| 13861 | }, |
| 13862 | .block_erase = spi_block_erase_d8, |
| 13863 | }, { |
| 13864 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 13865 | .block_erase = spi_block_erase_c7, |
| 13866 | }, |
| 13867 | }, |
| 13868 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 13869 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 13870 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 13871 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 13872 | .voltage = {2700, 3600}, |
| 13873 | }, |
| 13874 | |
Wei Hu | 25584de | 2018-04-30 14:02:08 -0700 | [diff] [blame] | 13875 | { |
| 13876 | .vendor = "SST", |
| 13877 | .name = "SST26VF064B(A)", |
| 13878 | .bustype = BUS_SPI, |
| 13879 | .manufacture_id = SST_ID, |
| 13880 | .model_id = SST_SST26VF064B, |
| 13881 | .total_size = 8192, |
| 13882 | .page_size = 256, |
| 13883 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 13884 | .tested = TEST_OK_PREW, |
| 13885 | .probe = probe_spi_rdid, |
| 13886 | .probe_timing = TIMING_ZERO, |
| 13887 | .block_erasers = |
| 13888 | { |
| 13889 | { |
| 13890 | .eraseblocks = { {4 * 1024, 2048} }, |
| 13891 | .block_erase = spi_block_erase_20, |
| 13892 | }, { |
| 13893 | .eraseblocks = { |
| 13894 | {8 * 1024, 4}, |
| 13895 | {32 * 1024, 1}, |
| 13896 | {64 * 1024, 126}, |
| 13897 | {32 * 1024, 1}, |
| 13898 | {8 * 1024, 4}, |
| 13899 | }, |
| 13900 | .block_erase = spi_block_erase_d8, |
| 13901 | }, { |
| 13902 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 13903 | .block_erase = spi_block_erase_c7, |
| 13904 | }, |
| 13905 | }, |
| 13906 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 13907 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 13908 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 13909 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 13910 | .voltage = {2700, 3600}, |
| 13911 | }, |
| 13912 | |
| 13913 | { |
| 13914 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13915 | .name = "SST28SF040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13916 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13917 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13918 | .model_id = SST_SST28SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13919 | .total_size = 512, |
| 13920 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13921 | .feature_bits = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13922 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13923 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 13924 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13925 | .block_erasers = |
| 13926 | { |
| 13927 | { |
| 13928 | .eraseblocks = { {128, 4096} }, |
| 13929 | .block_erase = erase_sector_28sf040, |
| 13930 | }, { |
| 13931 | .eraseblocks = { {512 * 1024, 1} }, |
| 13932 | .block_erase = erase_chip_28sf040, |
| 13933 | } |
| 13934 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 13935 | .unlock = unprotect_28sf040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13936 | .write = write_28sf040, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13937 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13938 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13939 | }, |
| 13940 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13941 | { |
| 13942 | .vendor = "SST", |
| 13943 | .name = "SST29EE010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13944 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13945 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13946 | .model_id = SST_SST29EE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13947 | .total_size = 128, |
| 13948 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13949 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 13950 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13951 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13952 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13953 | .block_erasers = |
| 13954 | { |
| 13955 | { |
| 13956 | .eraseblocks = { {128 * 1024, 1} }, |
| 13957 | .block_erase = erase_chip_block_jedec, |
| 13958 | } |
| 13959 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13960 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13961 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13962 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13963 | }, |
| 13964 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13965 | { |
| 13966 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13967 | .name = "SST29EE020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13968 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13969 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13970 | .model_id = SST_SST29EE020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13971 | .total_size = 256, |
| 13972 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13973 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 13974 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13975 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13976 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13977 | .block_erasers = |
| 13978 | { |
| 13979 | { |
| 13980 | .eraseblocks = { {256 * 1024, 1} }, |
| 13981 | .block_erase = erase_chip_block_jedec, |
| 13982 | } |
| 13983 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13984 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13985 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13986 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13987 | }, |
| 13988 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13989 | { |
| 13990 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13991 | .name = "SST29LE010", |
| 13992 | .bustype = BUS_PARALLEL, |
| 13993 | .manufacture_id = SST_ID, |
| 13994 | .model_id = SST_SST29LE010, |
| 13995 | .total_size = 128, |
| 13996 | .page_size = 128, |
| 13997 | .feature_bits = FEATURE_LONG_RESET, |
| 13998 | .tested = TEST_UNTESTED, |
| 13999 | .probe = probe_jedec, |
| 14000 | .probe_timing = 10, |
| 14001 | .block_erasers = |
| 14002 | { |
| 14003 | { |
| 14004 | .eraseblocks = { {128 * 1024, 1} }, |
| 14005 | .block_erase = erase_chip_block_jedec, |
| 14006 | } |
| 14007 | }, |
| 14008 | .write = write_jedec, |
| 14009 | .read = read_memmapped, |
| 14010 | .voltage = {3000, 3600}, |
| 14011 | }, |
| 14012 | |
| 14013 | { |
| 14014 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14015 | .name = "SST29LE020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14016 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14017 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14018 | .model_id = SST_SST29LE020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14019 | .total_size = 256, |
| 14020 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14021 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 14022 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14023 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14024 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14025 | .block_erasers = |
| 14026 | { |
| 14027 | { |
| 14028 | .eraseblocks = { {256 * 1024, 1} }, |
| 14029 | .block_erase = erase_chip_block_jedec, |
| 14030 | } |
| 14031 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14032 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14033 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14034 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14035 | }, |
| 14036 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14037 | { |
| 14038 | .vendor = "SST", |
| 14039 | .name = "SST39SF010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14040 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14041 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14042 | .model_id = SST_SST39SF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14043 | .total_size = 128, |
| 14044 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14045 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 14046 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14047 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 14048 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14049 | .block_erasers = |
| 14050 | { |
| 14051 | { |
| 14052 | .eraseblocks = { {4 * 1024, 32} }, |
| 14053 | .block_erase = erase_sector_jedec, |
| 14054 | }, { |
| 14055 | .eraseblocks = { {128 * 1024, 1} }, |
| 14056 | .block_erase = erase_chip_block_jedec, |
| 14057 | } |
| 14058 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14059 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14060 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14061 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14062 | }, |
| 14063 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14064 | { |
| 14065 | .vendor = "SST", |
| 14066 | .name = "SST39SF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14067 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14068 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14069 | .model_id = SST_SST39SF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14070 | .total_size = 256, |
| 14071 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14072 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 19f46f2 | 2011-06-18 22:56:14 +0000 | [diff] [blame] | 14073 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14074 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14075 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14076 | .block_erasers = |
| 14077 | { |
| 14078 | { |
| 14079 | .eraseblocks = { {4 * 1024, 64} }, |
| 14080 | .block_erase = erase_sector_jedec, |
| 14081 | }, { |
| 14082 | .eraseblocks = { {256 * 1024, 1} }, |
| 14083 | .block_erase = erase_chip_block_jedec, |
| 14084 | } |
| 14085 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14086 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14087 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14088 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14089 | }, |
| 14090 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14091 | { |
| 14092 | .vendor = "SST", |
| 14093 | .name = "SST39SF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14094 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14095 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14096 | .model_id = SST_SST39SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14097 | .total_size = 512, |
| 14098 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14099 | .feature_bits = FEATURE_EITHER_RESET, |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 14100 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14101 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14102 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14103 | .block_erasers = |
| 14104 | { |
| 14105 | { |
| 14106 | .eraseblocks = { {4 * 1024, 128} }, |
| 14107 | .block_erase = erase_sector_jedec, |
| 14108 | }, { |
| 14109 | .eraseblocks = { {512 * 1024, 1} }, |
| 14110 | .block_erase = erase_chip_block_jedec, |
| 14111 | } |
| 14112 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14113 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14114 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14115 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14116 | }, |
| 14117 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14118 | { |
| 14119 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14120 | .name = "SST39SF512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14121 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14122 | .manufacture_id = SST_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14123 | .model_id = SST_SST39SF512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14124 | .total_size = 64, |
| 14125 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14126 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 14127 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14128 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14129 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14130 | .block_erasers = |
| 14131 | { |
| 14132 | { |
| 14133 | .eraseblocks = { {4 * 1024, 16} }, |
| 14134 | .block_erase = erase_sector_jedec, |
| 14135 | }, { |
| 14136 | .eraseblocks = { {64 * 1024, 1} }, |
| 14137 | .block_erase = erase_chip_block_jedec, |
| 14138 | } |
| 14139 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14140 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14141 | .read = read_memmapped, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14142 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14143 | }, |
| 14144 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14145 | { |
| 14146 | .vendor = "SST", |
| 14147 | .name = "SST39VF010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14148 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14149 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14150 | .model_id = SST_SST39VF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14151 | .total_size = 128, |
| 14152 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14153 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 14154 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14155 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14156 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14157 | .block_erasers = |
| 14158 | { |
| 14159 | { |
| 14160 | .eraseblocks = { {4 * 1024, 32} }, |
| 14161 | .block_erase = erase_sector_jedec, |
| 14162 | }, { |
| 14163 | .eraseblocks = { {128 * 1024, 1} }, |
| 14164 | .block_erase = erase_chip_block_jedec, |
| 14165 | } |
| 14166 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14167 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14168 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14169 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14170 | }, |
| 14171 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14172 | { |
| 14173 | .vendor = "SST", |
| 14174 | .name = "SST39VF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14175 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14176 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14177 | .model_id = SST_SST39VF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14178 | .total_size = 256, |
| 14179 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14180 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 14181 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14182 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14183 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14184 | .block_erasers = |
| 14185 | { |
| 14186 | { |
| 14187 | .eraseblocks = { {4 * 1024, 64} }, |
| 14188 | .block_erase = erase_sector_jedec, |
| 14189 | }, { |
| 14190 | .eraseblocks = { {256 * 1024, 1} }, |
| 14191 | .block_erase = erase_chip_block_jedec, |
| 14192 | } |
| 14193 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14194 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14195 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14196 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14197 | }, |
| 14198 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14199 | { |
| 14200 | .vendor = "SST", |
| 14201 | .name = "SST39VF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14202 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14203 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14204 | .model_id = SST_SST39VF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14205 | .total_size = 512, |
| 14206 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14207 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 14208 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14209 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14210 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14211 | .block_erasers = |
| 14212 | { |
| 14213 | { |
| 14214 | .eraseblocks = { {4 * 1024, 128} }, |
| 14215 | .block_erase = erase_sector_jedec, |
| 14216 | }, { |
| 14217 | .eraseblocks = { {512 * 1024, 1} }, |
| 14218 | .block_erase = erase_chip_block_jedec, |
| 14219 | } |
| 14220 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14221 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14222 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14223 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 90eff15 | 2008-12-08 23:51:45 +0000 | [diff] [blame] | 14224 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14225 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14226 | { |
| 14227 | .vendor = "SST", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 14228 | .name = "SST39VF080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14229 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 14230 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14231 | .model_id = SST_SST39VF080, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 14232 | .total_size = 1024, |
| 14233 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14234 | .feature_bits = FEATURE_EITHER_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 14235 | .tested = TEST_UNTESTED, |
| 14236 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14237 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14238 | .block_erasers = |
| 14239 | { |
| 14240 | { |
| 14241 | .eraseblocks = { {4 * 1024, 256} }, |
| 14242 | .block_erase = erase_sector_jedec, |
| 14243 | }, { |
| 14244 | .eraseblocks = { {64 * 1024, 16} }, |
| 14245 | .block_erase = erase_block_jedec, |
| 14246 | }, { |
| 14247 | .eraseblocks = { {1024 * 1024, 1} }, |
| 14248 | .block_erase = erase_chip_block_jedec, |
| 14249 | } |
| 14250 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14251 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14252 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14253 | .voltage = {2700, 3600}, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 14254 | }, |
| 14255 | |
| 14256 | { |
| 14257 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14258 | .name = "SST39VF512", |
| 14259 | .bustype = BUS_PARALLEL, |
| 14260 | .manufacture_id = SST_ID, |
| 14261 | .model_id = SST_SST39VF512, |
| 14262 | .total_size = 64, |
| 14263 | .page_size = 4096, |
| 14264 | .feature_bits = FEATURE_EITHER_RESET, |
| 14265 | .tested = TEST_OK_PREW, |
| 14266 | .probe = probe_jedec, |
| 14267 | .probe_timing = 1, /* 150 ns */ |
| 14268 | .block_erasers = |
| 14269 | { |
| 14270 | { |
| 14271 | .eraseblocks = { {4 * 1024, 16} }, |
| 14272 | .block_erase = erase_sector_jedec, |
| 14273 | }, { |
| 14274 | .eraseblocks = { {64 * 1024, 1} }, |
| 14275 | .block_erase = erase_chip_block_jedec, |
| 14276 | } |
| 14277 | }, |
| 14278 | .write = write_jedec_1, |
| 14279 | .read = read_memmapped, |
| 14280 | .voltage = {2700, 3600}, |
| 14281 | }, |
| 14282 | |
| 14283 | { |
| 14284 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14285 | .name = "SST49LF002A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14286 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14287 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14288 | .model_id = SST_SST49LF002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14289 | .total_size = 256, |
| 14290 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14291 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 14292 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14293 | .probe = probe_jedec, |
| 14294 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14295 | .block_erasers = |
| 14296 | { |
| 14297 | { |
| 14298 | .eraseblocks = { {4 * 1024, 64} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14299 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14300 | }, { |
| 14301 | .eraseblocks = { {16 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14302 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14303 | }, { |
| 14304 | .eraseblocks = { {256 * 1024, 1} }, |
| 14305 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 14306 | } |
| 14307 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14308 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14309 | .unlock = unlock_sst_fwhub, |
| 14310 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14311 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14312 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14313 | }, |
| 14314 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14315 | { |
| 14316 | .vendor = "SST", |
| 14317 | .name = "SST49LF003A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14318 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14319 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14320 | .model_id = SST_SST49LF003A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14321 | .total_size = 384, |
| 14322 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14323 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 14324 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14325 | .probe = probe_jedec, |
| 14326 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14327 | .block_erasers = |
| 14328 | { |
| 14329 | { |
| 14330 | .eraseblocks = { {4 * 1024, 96} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14331 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14332 | }, { |
| 14333 | .eraseblocks = { {64 * 1024, 6} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14334 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14335 | }, { |
| 14336 | .eraseblocks = { {384 * 1024, 1} }, |
| 14337 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 14338 | } |
| 14339 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14340 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14341 | .unlock = unlock_sst_fwhub, |
| 14342 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14343 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14344 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14345 | }, |
| 14346 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14347 | { |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 14348 | /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB) |
| 14349 | * and is only honored for 64k block erase, but not 4k sector erase. |
| 14350 | */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14351 | .vendor = "SST", |
| 14352 | .name = "SST49LF004A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14353 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14354 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14355 | .model_id = SST_SST49LF004A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14356 | .total_size = 512, |
| 14357 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14358 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 14359 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14360 | .probe = probe_jedec, |
| 14361 | .probe_timing = 1, /* 150 ns */ |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 14362 | .block_erasers = |
| 14363 | { |
| 14364 | { |
| 14365 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14366 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 14367 | }, { |
| 14368 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14369 | .block_erase = erase_block_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 14370 | }, { |
| 14371 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14372 | .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] | 14373 | }, |
| 14374 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14375 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14376 | .unlock = unlock_sst_fwhub, |
| 14377 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14378 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14379 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14380 | }, |
| 14381 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14382 | { |
| 14383 | .vendor = "SST", |
| 14384 | .name = "SST49LF004C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14385 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14386 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14387 | .model_id = SST_SST49LF004C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14388 | .total_size = 512, |
| 14389 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14390 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14391 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14392 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14393 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14394 | .block_erasers = |
| 14395 | { |
| 14396 | { |
| 14397 | .eraseblocks = { {4 * 1024, 128} }, |
| 14398 | .block_erase = erase_sector_49lfxxxc, |
| 14399 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14400 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14401 | {64 * 1024, 7}, |
| 14402 | {32 * 1024, 1}, |
| 14403 | {8 * 1024, 2}, |
| 14404 | {16 * 1024, 1}, |
| 14405 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 14406 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14407 | } |
| 14408 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14409 | .printlock = printlock_regspace2_block_eraser_1, |
| 14410 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 14411 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14412 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14413 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14414 | }, |
| 14415 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14416 | { |
| 14417 | .vendor = "SST", |
| 14418 | .name = "SST49LF008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14419 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14420 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14421 | .model_id = SST_SST49LF008A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14422 | .total_size = 1024, |
| 14423 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14424 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 14425 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14426 | .probe = probe_jedec, |
| 14427 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14428 | .block_erasers = |
| 14429 | { |
| 14430 | { |
| 14431 | .eraseblocks = { {4 * 1024, 256} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14432 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14433 | }, { |
| 14434 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14435 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14436 | }, { |
| 14437 | .eraseblocks = { {1024 * 1024, 1} }, |
| 14438 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 14439 | } |
| 14440 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14441 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14442 | .unlock = unlock_sst_fwhub, |
| 14443 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14444 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14445 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14446 | }, |
| 14447 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14448 | { |
| 14449 | .vendor = "SST", |
| 14450 | .name = "SST49LF008C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14451 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14452 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14453 | .model_id = SST_SST49LF008C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14454 | .total_size = 1024, |
| 14455 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14456 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14457 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14458 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14459 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14460 | .block_erasers = |
| 14461 | { |
| 14462 | { |
| 14463 | .eraseblocks = { {4 * 1024, 256} }, |
| 14464 | .block_erase = erase_sector_49lfxxxc, |
| 14465 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14466 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14467 | {64 * 1024, 15}, |
| 14468 | {32 * 1024, 1}, |
| 14469 | {8 * 1024, 2}, |
| 14470 | {16 * 1024, 1}, |
| 14471 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 14472 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14473 | } |
| 14474 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14475 | .printlock = printlock_regspace2_block_eraser_1, |
| 14476 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 14477 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14478 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14479 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14480 | }, |
| 14481 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14482 | { |
| 14483 | .vendor = "SST", |
| 14484 | .name = "SST49LF016C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14485 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14486 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14487 | .model_id = SST_SST49LF016C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14488 | .total_size = 2048, |
| 14489 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14490 | .feature_bits = FEATURE_REGISTERMAP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 14491 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14492 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14493 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14494 | .block_erasers = |
| 14495 | { |
| 14496 | { |
| 14497 | .eraseblocks = { {4 * 1024, 512} }, |
| 14498 | .block_erase = erase_sector_49lfxxxc, |
| 14499 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14500 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14501 | {64 * 1024, 31}, |
| 14502 | {32 * 1024, 1}, |
| 14503 | {8 * 1024, 2}, |
| 14504 | {16 * 1024, 1}, |
| 14505 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 14506 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14507 | } |
| 14508 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14509 | .printlock = printlock_regspace2_block_eraser_1, |
| 14510 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 14511 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14512 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14513 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14514 | }, |
| 14515 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14516 | { |
| 14517 | .vendor = "SST", |
| 14518 | .name = "SST49LF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14519 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14520 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14521 | .model_id = SST_SST49LF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14522 | .total_size = 256, |
| 14523 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14524 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 14525 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14526 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14527 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14528 | .block_erasers = |
| 14529 | { |
| 14530 | { |
| 14531 | .eraseblocks = { {4 * 1024, 64} }, |
| 14532 | .block_erase = erase_sector_jedec, |
| 14533 | }, { |
| 14534 | .eraseblocks = { {16 * 1024, 16} }, |
| 14535 | .block_erase = erase_block_jedec, |
| 14536 | }, { |
| 14537 | .eraseblocks = { {256 * 1024, 1} }, |
| 14538 | .block_erase = NULL, |
| 14539 | } |
| 14540 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14541 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14542 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14543 | .voltage = {3000, 3600}, |
Sven Schnelle | c208dfb | 2009-01-07 12:35:09 +0000 | [diff] [blame] | 14544 | }, |
| 14545 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14546 | { |
| 14547 | .vendor = "SST", |
| 14548 | .name = "SST49LF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14549 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14550 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14551 | .model_id = SST_SST49LF020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14552 | .total_size = 256, |
Carl-Daniel Hailfinger | da65432 | 2009-07-23 01:44:38 +0000 | [diff] [blame] | 14553 | .page_size = 4 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14554 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 14555 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14556 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14557 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14558 | .block_erasers = |
| 14559 | { |
| 14560 | { |
| 14561 | .eraseblocks = { {4 * 1024, 64} }, |
| 14562 | .block_erase = erase_sector_jedec, |
| 14563 | }, { |
| 14564 | .eraseblocks = { {16 * 1024, 16} }, |
| 14565 | .block_erase = erase_block_jedec, |
| 14566 | }, { |
| 14567 | .eraseblocks = { {256 * 1024, 1} }, |
| 14568 | .block_erase = NULL, |
| 14569 | } |
| 14570 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14571 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14572 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14573 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14574 | }, |
| 14575 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14576 | { |
| 14577 | .vendor = "SST", |
| 14578 | .name = "SST49LF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14579 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14580 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14581 | .model_id = SST_SST49LF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14582 | .total_size = 512, |
| 14583 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14584 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 14585 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14586 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14587 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14588 | .block_erasers = |
| 14589 | { |
| 14590 | { |
| 14591 | .eraseblocks = { {4 * 1024, 128} }, |
| 14592 | .block_erase = erase_sector_jedec, |
| 14593 | }, { |
| 14594 | .eraseblocks = { {64 * 1024, 8} }, |
| 14595 | .block_erase = erase_block_jedec, |
| 14596 | }, { |
| 14597 | .eraseblocks = { {512 * 1024, 1} }, |
| 14598 | .block_erase = NULL, |
| 14599 | } |
| 14600 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14601 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14602 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14603 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14604 | }, |
| 14605 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14606 | { |
| 14607 | .vendor = "SST", |
| 14608 | .name = "SST49LF040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14609 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14610 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14611 | .model_id = SST_SST49LF040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14612 | .total_size = 512, |
| 14613 | .page_size = 64 * 1024, |
Joshua Roys | a84b0bd | 2010-08-16 22:12:39 +0000 | [diff] [blame] | 14614 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 14615 | .tested = TEST_OK_PREW, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14616 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14617 | .probe_timing = 1, /* 150ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14618 | .block_erasers = |
| 14619 | { |
| 14620 | { |
| 14621 | .eraseblocks = { {4 * 1024, 128} }, |
| 14622 | .block_erase = erase_sector_jedec, |
| 14623 | }, { |
| 14624 | .eraseblocks = { {64 * 1024, 8} }, |
| 14625 | .block_erase = erase_block_jedec, |
| 14626 | }, { |
| 14627 | .eraseblocks = { {512 * 1024, 1} }, |
| 14628 | .block_erase = NULL, |
| 14629 | } |
| 14630 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14631 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14632 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14633 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14634 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14635 | }, |
| 14636 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14637 | { |
| 14638 | .vendor = "SST", |
| 14639 | .name = "SST49LF080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14640 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14641 | .manufacture_id = SST_ID, |
Elyes HAOUAS | 124ef38 | 2018-03-27 12:15:09 +0200 | [diff] [blame] | 14642 | .model_id = SST_SST49LF080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14643 | .total_size = 1024, |
| 14644 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14645 | .feature_bits = FEATURE_EITHER_RESET, |
Brandon Dowdy | f07bf32 | 2011-03-06 18:31:11 +0000 | [diff] [blame] | 14646 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14647 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14648 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14649 | .block_erasers = |
| 14650 | { |
| 14651 | { |
| 14652 | .eraseblocks = { {4 * 1024, 256} }, |
| 14653 | .block_erase = erase_sector_jedec, |
| 14654 | }, { |
| 14655 | .eraseblocks = { {64 * 1024, 16} }, |
| 14656 | .block_erase = erase_block_jedec, |
| 14657 | }, { |
| 14658 | .eraseblocks = { {1024 * 1024, 1} }, |
| 14659 | .block_erase = NULL, |
| 14660 | } |
| 14661 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14662 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14663 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14664 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14665 | }, |
| 14666 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14667 | { |
| 14668 | .vendor = "SST", |
| 14669 | .name = "SST49LF160C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14670 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14671 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14672 | .model_id = SST_SST49LF160C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14673 | .total_size = 2048, |
| 14674 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14675 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14676 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14677 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14678 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14679 | .block_erasers = |
| 14680 | { |
| 14681 | { |
| 14682 | .eraseblocks = { {4 * 1024, 512} }, |
| 14683 | .block_erase = erase_sector_49lfxxxc, |
| 14684 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14685 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14686 | {64 * 1024, 31}, |
| 14687 | {32 * 1024, 1}, |
| 14688 | {8 * 1024, 2}, |
| 14689 | {16 * 1024, 1}, |
| 14690 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 14691 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14692 | } |
| 14693 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14694 | .printlock = printlock_regspace2_block_eraser_1, |
| 14695 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 14696 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14697 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14698 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14699 | }, |
| 14700 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14701 | { |
| 14702 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14703 | .name = "M29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14704 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14705 | .manufacture_id = ST_ID, |
| 14706 | .model_id = ST_M29F002B, |
| 14707 | .total_size = 256, |
| 14708 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14709 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14710 | .tested = TEST_UNTESTED, |
| 14711 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14712 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14713 | .block_erasers = |
| 14714 | { |
| 14715 | { |
| 14716 | .eraseblocks = { |
| 14717 | {16 * 1024, 1}, |
| 14718 | {8 * 1024, 2}, |
| 14719 | {32 * 1024, 1}, |
| 14720 | {64 * 1024, 3}, |
| 14721 | }, |
| 14722 | .block_erase = erase_sector_jedec, |
| 14723 | }, { |
| 14724 | .eraseblocks = { {256 * 1024, 1} }, |
| 14725 | .block_erase = erase_chip_block_jedec, |
| 14726 | } |
| 14727 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14728 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14729 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 14730 | .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] | 14731 | }, |
| 14732 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14733 | { |
| 14734 | .vendor = "ST", |
| 14735 | .name = "M29F002T/NT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14736 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14737 | .manufacture_id = ST_ID, |
| 14738 | .model_id = ST_M29F002T, |
| 14739 | .total_size = 256, |
| 14740 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14741 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 14742 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14743 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14744 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14745 | .block_erasers = |
| 14746 | { |
| 14747 | { |
| 14748 | .eraseblocks = { |
| 14749 | {64 * 1024, 3}, |
| 14750 | {32 * 1024, 1}, |
| 14751 | {8 * 1024, 2}, |
| 14752 | {16 * 1024, 1}, |
| 14753 | }, |
| 14754 | .block_erase = erase_sector_jedec, |
| 14755 | }, { |
| 14756 | .eraseblocks = { {256 * 1024, 1} }, |
| 14757 | .block_erase = erase_chip_block_jedec, |
| 14758 | } |
| 14759 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14760 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14761 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 14762 | .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] | 14763 | }, |
| 14764 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14765 | { |
| 14766 | .vendor = "ST", |
| 14767 | .name = "M29F040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14768 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14769 | .manufacture_id = ST_ID, |
| 14770 | .model_id = ST_M29F040B, |
| 14771 | .total_size = 512, |
| 14772 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14773 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 14774 | .tested = TEST_UNTESTED, |
| 14775 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 14776 | .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14777 | .block_erasers = |
| 14778 | { |
| 14779 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14780 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14781 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14782 | }, { |
| 14783 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14784 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14785 | } |
| 14786 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14787 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14788 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14789 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14790 | }, |
| 14791 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14792 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14793 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14794 | .vendor = "ST", |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 14795 | .name = "M29F400BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14796 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 14797 | .manufacture_id = ST_ID, |
| 14798 | .model_id = ST_M29F400BB, |
| 14799 | .total_size = 512, |
| 14800 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14801 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 14802 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14803 | .probe = probe_jedec, |
| 14804 | .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] | 14805 | .block_erasers = |
| 14806 | { |
| 14807 | { |
| 14808 | .eraseblocks = { |
| 14809 | {16 * 1024, 1}, |
| 14810 | {8 * 1024, 2}, |
| 14811 | {32 * 1024, 1}, |
| 14812 | {64 * 1024, 7}, |
| 14813 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14814 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 14815 | }, { |
| 14816 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14817 | .block_erase = erase_chip_block_jedec, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 14818 | } |
| 14819 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14820 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 14821 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14822 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 14823 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 14824 | |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 14825 | { |
| 14826 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
| 14827 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14828 | .name = "M29F400BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14829 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14830 | .manufacture_id = ST_ID, |
| 14831 | .model_id = ST_M29F400BT, |
| 14832 | .total_size = 512, |
| 14833 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14834 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14835 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14836 | .probe = probe_jedec, |
| 14837 | .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] | 14838 | .block_erasers = |
| 14839 | { |
| 14840 | { |
| 14841 | .eraseblocks = { |
| 14842 | {64 * 1024, 7}, |
| 14843 | {32 * 1024, 1}, |
| 14844 | {8 * 1024, 2}, |
| 14845 | {16 * 1024, 1}, |
| 14846 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14847 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14848 | }, { |
| 14849 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14850 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14851 | } |
| 14852 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14853 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14854 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14855 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14856 | }, |
| 14857 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14858 | { |
| 14859 | .vendor = "ST", |
| 14860 | .name = "M29W010B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14861 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14862 | .manufacture_id = ST_ID, |
| 14863 | .model_id = ST_M29W010B, |
| 14864 | .total_size = 128, |
| 14865 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14866 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14867 | .tested = TEST_UNTESTED, |
| 14868 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14869 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14870 | .block_erasers = |
| 14871 | { |
| 14872 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14873 | .eraseblocks = { {16 * 1024, 8} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14874 | .block_erase = erase_sector_jedec, |
| 14875 | }, { |
| 14876 | .eraseblocks = { {128 * 1024, 1} }, |
| 14877 | .block_erase = erase_chip_block_jedec, |
| 14878 | } |
| 14879 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14880 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14881 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14882 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14883 | }, |
| 14884 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14885 | { |
| 14886 | .vendor = "ST", |
| 14887 | .name = "M29W040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14888 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14889 | .manufacture_id = ST_ID, |
| 14890 | .model_id = ST_M29W040B, |
| 14891 | .total_size = 512, |
| 14892 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14893 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14894 | .tested = TEST_UNTESTED, |
| 14895 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14896 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14897 | .block_erasers = |
| 14898 | { |
| 14899 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14900 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14901 | .block_erase = erase_sector_jedec, |
| 14902 | }, { |
| 14903 | .eraseblocks = { {512 * 1024, 1} }, |
| 14904 | .block_erase = erase_chip_block_jedec, |
| 14905 | } |
| 14906 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14907 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14908 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14909 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14910 | }, |
| 14911 | |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 14912 | { |
| 14913 | .vendor = "ST", |
| 14914 | .name = "M29W512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14915 | .bustype = BUS_PARALLEL, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 14916 | .manufacture_id = ST_ID, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 14917 | .model_id = ST_M29W512B, |
| 14918 | .total_size = 64, |
| 14919 | .page_size = 64 * 1024, |
| 14920 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14921 | .tested = TEST_OK_PREW, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 14922 | .probe = probe_jedec, |
| 14923 | .probe_timing = TIMING_ZERO, |
| 14924 | .block_erasers = |
| 14925 | { |
| 14926 | { |
| 14927 | .eraseblocks = { {64 * 1024, 1} }, |
| 14928 | .block_erase = erase_chip_block_jedec, |
| 14929 | } |
| 14930 | }, |
| 14931 | .write = write_jedec_1, |
| 14932 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14933 | .voltage = {2700, 3600}, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 14934 | }, |
Jeffrey A. Kent | ba7c922 | 2010-02-01 05:49:46 +0000 | [diff] [blame] | 14935 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14936 | { |
| 14937 | .vendor = "ST", |
| 14938 | .name = "M50FLW040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14939 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14940 | .manufacture_id = ST_ID, |
| 14941 | .model_id = ST_M50FLW040A, |
| 14942 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14943 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14944 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14945 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14946 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 14947 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14948 | .block_erasers = |
| 14949 | { |
| 14950 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14951 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14952 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14953 | {64 * 1024, 5}, /* block */ |
| 14954 | {4 * 1024, 16}, /* sector */ |
| 14955 | {4 * 1024, 16}, /* sector */ |
| 14956 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 14957 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14958 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14959 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14960 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14961 | } |
| 14962 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14963 | .unlock = unlock_regspace2_uniform_64k, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 14964 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14965 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14966 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14967 | }, |
| 14968 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14969 | { |
| 14970 | .vendor = "ST", |
| 14971 | .name = "M50FLW040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14972 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14973 | .manufacture_id = ST_ID, |
| 14974 | .model_id = ST_M50FLW040B, |
| 14975 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14976 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14977 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14978 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14979 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 14980 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14981 | .block_erasers = |
| 14982 | { |
| 14983 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14984 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14985 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14986 | {4 * 1024, 16}, /* sector */ |
| 14987 | {64 * 1024, 5}, /* block */ |
| 14988 | {4 * 1024, 16}, /* sector */ |
| 14989 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 14990 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14991 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14992 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14993 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14994 | } |
| 14995 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14996 | .unlock = unlock_regspace2_uniform_64k, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 14997 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14998 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14999 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15000 | }, |
| 15001 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15002 | { |
| 15003 | .vendor = "ST", |
| 15004 | .name = "M50FLW080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15005 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15006 | .manufacture_id = ST_ID, |
| 15007 | .model_id = ST_M50FLW080A, |
| 15008 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 15009 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15010 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15011 | .tested = TEST_OK_PR, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15012 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 15013 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15014 | .block_erasers = |
| 15015 | { |
| 15016 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15017 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 15018 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15019 | {64 * 1024, 13}, /* block */ |
| 15020 | {4 * 1024, 16}, /* sector */ |
| 15021 | {4 * 1024, 16}, /* sector */ |
| 15022 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 15023 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15024 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15025 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15026 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15027 | } |
| 15028 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15029 | .printlock = printlock_regspace2_block_eraser_0, |
| 15030 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15031 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15032 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15033 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15034 | }, |
| 15035 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15036 | { |
| 15037 | .vendor = "ST", |
| 15038 | .name = "M50FLW080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15039 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15040 | .manufacture_id = ST_ID, |
| 15041 | .model_id = ST_M50FLW080B, |
| 15042 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 15043 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15044 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15045 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15046 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 15047 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15048 | .block_erasers = |
| 15049 | { |
| 15050 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15051 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 15052 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15053 | {4 * 1024, 16}, /* sector */ |
| 15054 | {64 * 1024, 13}, /* block */ |
| 15055 | {4 * 1024, 16}, /* sector */ |
| 15056 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 15057 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15058 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15059 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15060 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15061 | } |
| 15062 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15063 | .printlock = printlock_regspace2_block_eraser_0, |
| 15064 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15065 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15066 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15067 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15068 | }, |
| 15069 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15070 | { |
| 15071 | .vendor = "ST", |
| 15072 | .name = "M50FW002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15073 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15074 | .manufacture_id = ST_ID, |
| 15075 | .model_id = ST_M50FW002, |
| 15076 | .total_size = 256, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 15077 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15078 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15079 | .tested = TEST_OK_PR, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15080 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15081 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15082 | .block_erasers = |
| 15083 | { |
| 15084 | { |
| 15085 | .eraseblocks = { |
| 15086 | {64 * 1024, 3}, |
| 15087 | {32 * 1024, 1}, |
| 15088 | {8 * 1024, 2}, |
| 15089 | {16 * 1024, 1}, |
| 15090 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15091 | .block_erase = erase_block_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15092 | }, { |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 15093 | .eraseblocks = { {256 * 1024, 1} }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15094 | .block_erase = NULL, /* Only in A/A mux mode */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15095 | } |
| 15096 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15097 | .printlock = printlock_regspace2_block_eraser_0, |
| 15098 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15099 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15100 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15101 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15102 | }, |
| 15103 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15104 | { |
| 15105 | .vendor = "ST", |
| 15106 | .name = "M50FW016", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15107 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15108 | .manufacture_id = ST_ID, |
| 15109 | .model_id = ST_M50FW016, |
| 15110 | .total_size = 2048, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 15111 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15112 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15113 | .tested = TEST_UNTESTED, |
| 15114 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 15115 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15116 | .block_erasers = |
| 15117 | { |
| 15118 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15119 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15120 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15121 | } |
| 15122 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15123 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15124 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15125 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15126 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15127 | }, |
| 15128 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15129 | { |
| 15130 | .vendor = "ST", |
| 15131 | .name = "M50FW040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15132 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15133 | .manufacture_id = ST_ID, |
| 15134 | .model_id = ST_M50FW040, |
| 15135 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 15136 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15137 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15138 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15139 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 15140 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15141 | .block_erasers = |
| 15142 | { |
| 15143 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15144 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15145 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15146 | } |
| 15147 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15148 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15149 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15150 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15151 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15152 | }, |
| 15153 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15154 | { |
| 15155 | .vendor = "ST", |
| 15156 | .name = "M50FW080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15157 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15158 | .manufacture_id = ST_ID, |
| 15159 | .model_id = ST_M50FW080, |
| 15160 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 15161 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15162 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15163 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15164 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 15165 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15166 | .block_erasers = |
| 15167 | { |
| 15168 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15169 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15170 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15171 | } |
| 15172 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15173 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15174 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15175 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15176 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15177 | }, |
| 15178 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15179 | { |
| 15180 | .vendor = "ST", |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 15181 | .name = "M50LPW080", |
| 15182 | .bustype = BUS_LPC, /* A/A Mux */ |
| 15183 | .manufacture_id = ST_ID, |
| 15184 | .model_id = ST_M50LPW080, |
| 15185 | .total_size = 1024, |
| 15186 | .page_size = 0, |
| 15187 | .feature_bits = FEATURE_REGISTERMAP, |
| 15188 | .tested = TEST_UNTESTED, |
| 15189 | .probe = probe_82802ab, |
| 15190 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 15191 | .block_erasers = |
| 15192 | { |
| 15193 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15194 | .eraseblocks = { {64 * 1024, 16} }, |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 15195 | .block_erase = erase_block_82802ab, |
| 15196 | } |
| 15197 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15198 | .unlock = unlock_regspace2_uniform_64k, |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 15199 | .write = write_82802ab, |
| 15200 | .read = read_memmapped, |
| 15201 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
| 15202 | }, |
| 15203 | |
| 15204 | { |
| 15205 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15206 | .name = "M50LPW116", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15207 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15208 | .manufacture_id = ST_ID, |
| 15209 | .model_id = ST_M50LPW116, |
| 15210 | .total_size = 2048, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 15211 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15212 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15213 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15214 | .probe = probe_82802ab, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 15215 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15216 | .block_erasers = |
| 15217 | { |
| 15218 | { |
| 15219 | .eraseblocks = { |
| 15220 | {4 * 1024, 16}, |
| 15221 | {64 * 1024, 30}, |
| 15222 | {32 * 1024, 1}, |
| 15223 | {8 * 1024, 2}, |
| 15224 | {16 * 1024, 1}, |
| 15225 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15226 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15227 | } |
| 15228 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15229 | .printlock = printlock_regspace2_block_eraser_0, |
| 15230 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15231 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15232 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15233 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15234 | }, |
| 15235 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15236 | { |
Konstantin Grudnev | 3d8868c | 2019-07-23 00:48:54 +0300 | [diff] [blame] | 15237 | .vendor = "ST", |
| 15238 | .name = "M95M02", |
| 15239 | .bustype = BUS_SPI, |
| 15240 | .manufacture_id = ST_ID, |
| 15241 | .model_id = ST_M95M02, |
| 15242 | .total_size = 256, |
| 15243 | .page_size = 256, |
| 15244 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_NO_ERASE | FEATURE_ERASED_ZERO, |
| 15245 | .tested = TEST_OK_PREW, |
| 15246 | .probe = probe_spi_st95, |
| 15247 | .probe_timing = TIMING_ZERO, |
| 15248 | .block_erasers = |
| 15249 | { |
| 15250 | { |
| 15251 | .eraseblocks = { {256 * 1024, 1} }, |
| 15252 | .block_erase = spi_block_erase_emulation, |
| 15253 | } |
| 15254 | }, |
| 15255 | |
| 15256 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 15257 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 15258 | .write = spi_chip_write_256, |
| 15259 | .read = spi_chip_read, |
| 15260 | .voltage = {2500, 5500}, |
| 15261 | }, |
| 15262 | |
| 15263 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 15264 | .vendor = "Sanyo", |
| 15265 | .name = "LE25FU106B", |
| 15266 | .bustype = BUS_SPI, |
| 15267 | .manufacture_id = SANYO_ID, |
| 15268 | .model_id = SANYO_LE25FU106B, |
| 15269 | .total_size = 128, |
| 15270 | .page_size = 256, |
| 15271 | .feature_bits = FEATURE_WRSR_WREN, |
| 15272 | .tested = TEST_UNTESTED, |
| 15273 | .probe = probe_spi_res2, |
| 15274 | .probe_timing = TIMING_ZERO, |
| 15275 | .block_erasers = |
| 15276 | { |
| 15277 | /* FIXME: Is this correct? |
| 15278 | { |
| 15279 | .eraseblocks = { {2 * 1024, 64} }, |
| 15280 | .block_erase = spi_block_erase_d7, |
| 15281 | },*/ |
| 15282 | { |
| 15283 | .eraseblocks = { {32 * 1024, 4} }, |
| 15284 | .block_erase = spi_block_erase_d8, |
| 15285 | }, { |
| 15286 | .eraseblocks = { {128 * 1024, 1} }, |
| 15287 | .block_erase = spi_block_erase_c7, |
| 15288 | } |
| 15289 | }, |
| 15290 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 15291 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 15292 | .write = spi_chip_write_256, |
| 15293 | .read = spi_chip_read, |
| 15294 | .voltage = {2300, 3600}, |
| 15295 | }, |
| 15296 | |
| 15297 | { |
| 15298 | .vendor = "Sanyo", |
| 15299 | .name = "LE25FU206", |
| 15300 | .bustype = BUS_SPI, |
| 15301 | .manufacture_id = SANYO_ID, |
| 15302 | .model_id = SANYO_LE25FU206, |
| 15303 | .total_size = 256, |
| 15304 | .page_size = 256, |
| 15305 | .feature_bits = FEATURE_WRSR_WREN, |
| 15306 | .tested = TEST_UNTESTED, |
| 15307 | .probe = probe_spi_res2, |
| 15308 | .probe_timing = TIMING_ZERO, |
| 15309 | .block_erasers = |
| 15310 | { |
| 15311 | { |
| 15312 | .eraseblocks = { {4 * 1024, 64} }, |
| 15313 | .block_erase = spi_block_erase_d7, |
| 15314 | }, { |
| 15315 | .eraseblocks = { {64 * 1024, 4} }, |
| 15316 | .block_erase = spi_block_erase_d8, |
| 15317 | }, { |
| 15318 | .eraseblocks = { {256 * 1024, 1} }, |
| 15319 | .block_erase = spi_block_erase_c7, |
| 15320 | } |
| 15321 | }, |
| 15322 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 15323 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 15324 | .write = spi_chip_write_256, |
| 15325 | .read = spi_chip_read, |
| 15326 | .voltage = {2300, 3600}, |
| 15327 | }, |
| 15328 | |
| 15329 | { |
| 15330 | .vendor = "Sanyo", |
| 15331 | .name = "LE25FU206A", |
| 15332 | .bustype = BUS_SPI, |
| 15333 | .manufacture_id = SANYO_ID, |
| 15334 | .model_id = SANYO_LE25FU206A, |
| 15335 | .total_size = 256, |
| 15336 | .page_size = 256, |
| 15337 | .tested = TEST_UNTESTED, |
| 15338 | .probe = probe_spi_rdid, |
| 15339 | .probe_timing = TIMING_ZERO, |
| 15340 | .block_erasers = |
| 15341 | { |
| 15342 | { |
| 15343 | .eraseblocks = { {4 * 1024, 64} }, |
| 15344 | .block_erase = spi_block_erase_20, |
| 15345 | }, { |
| 15346 | .eraseblocks = { {4 * 1024, 64} }, |
| 15347 | .block_erase = spi_block_erase_d7, |
| 15348 | }, { |
| 15349 | .eraseblocks = { {64 * 1024, 4} }, |
| 15350 | .block_erase = spi_block_erase_d8, |
| 15351 | }, { |
| 15352 | .eraseblocks = { {256 * 1024, 1} }, |
| 15353 | .block_erase = spi_block_erase_60, |
| 15354 | }, { |
| 15355 | .eraseblocks = { {256 * 1024, 1} }, |
| 15356 | .block_erase = spi_block_erase_c7, |
| 15357 | } |
| 15358 | }, |
| 15359 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 15360 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 15361 | .write = spi_chip_write_256, |
| 15362 | .read = spi_chip_read, |
| 15363 | .voltage = {2300, 3600}, |
| 15364 | }, |
| 15365 | |
| 15366 | { |
| 15367 | .vendor = "Sanyo", |
| 15368 | .name = "LE25FU406B", |
| 15369 | .bustype = BUS_SPI, |
| 15370 | .manufacture_id = SANYO_ID, |
| 15371 | .model_id = SANYO_LE25FU406B, |
| 15372 | .total_size = 512, |
| 15373 | .page_size = 256, |
| 15374 | .feature_bits = FEATURE_WRSR_WREN, |
| 15375 | .tested = TEST_OK_PREW, |
| 15376 | .probe = probe_spi_res2, |
| 15377 | .probe_timing = TIMING_ZERO, |
| 15378 | .block_erasers = |
| 15379 | { |
| 15380 | { |
| 15381 | .eraseblocks = { {4 * 1024, 128} }, |
| 15382 | .block_erase = spi_block_erase_d7, |
| 15383 | }, { |
| 15384 | .eraseblocks = { {64 * 1024, 8} }, |
| 15385 | .block_erase = spi_block_erase_d8, |
| 15386 | }, { |
| 15387 | .eraseblocks = { {512 * 1024, 1} }, |
| 15388 | .block_erase = spi_block_erase_c7, |
| 15389 | } |
| 15390 | }, |
| 15391 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 15392 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 15393 | .write = spi_chip_write_256, |
| 15394 | .read = spi_chip_read, |
| 15395 | .voltage = {2300, 3600}, |
| 15396 | }, |
| 15397 | |
| 15398 | { |
| 15399 | .vendor = "Sanyo", |
| 15400 | .name = "LE25FU406C/LE25U40CMC", |
| 15401 | .bustype = BUS_SPI, |
| 15402 | .manufacture_id = SANYO_ID, |
| 15403 | .model_id = SANYO_LE25FU406C, |
| 15404 | .total_size = 512, |
| 15405 | .page_size = 256, |
| 15406 | .feature_bits = FEATURE_WRSR_WREN, |
| 15407 | .tested = TEST_OK_PREW, |
| 15408 | .probe = probe_spi_rdid, |
| 15409 | .probe_timing = TIMING_ZERO, |
| 15410 | .block_erasers = |
| 15411 | { |
| 15412 | { |
| 15413 | .eraseblocks = { {4 * 1024, 128} }, |
| 15414 | .block_erase = spi_block_erase_20, |
| 15415 | }, { |
| 15416 | .eraseblocks = { {4 * 1024, 128} }, |
| 15417 | .block_erase = spi_block_erase_d7, |
| 15418 | }, { |
| 15419 | .eraseblocks = { {64 * 1024, 8} }, |
| 15420 | .block_erase = spi_block_erase_d8, |
| 15421 | }, { |
| 15422 | .eraseblocks = { {512 * 1024, 1} }, |
| 15423 | .block_erase = spi_block_erase_60, |
| 15424 | }, { |
| 15425 | .eraseblocks = { {512 * 1024, 1} }, |
| 15426 | .block_erase = spi_block_erase_c7, |
| 15427 | } |
| 15428 | }, |
| 15429 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 15430 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 15431 | .write = spi_chip_write_256, |
| 15432 | .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */ |
| 15433 | .voltage = {2300, 3600}, |
| 15434 | }, |
| 15435 | |
| 15436 | { |
| 15437 | .vendor = "Sanyo", |
| 15438 | .name = "LE25FW106", |
| 15439 | .bustype = BUS_SPI, |
| 15440 | .manufacture_id = SANYO_ID, |
| 15441 | .model_id = SANYO_LE25FW106, |
| 15442 | .total_size = 128, |
| 15443 | .page_size = 256, |
| 15444 | .feature_bits = FEATURE_WRSR_WREN, |
| 15445 | .tested = TEST_OK_PREW, |
| 15446 | .probe = probe_spi_res2, |
| 15447 | .probe_timing = TIMING_ZERO, |
| 15448 | .block_erasers = |
| 15449 | { |
| 15450 | { |
| 15451 | .eraseblocks = { {2 * 1024, 64} }, |
| 15452 | .block_erase = spi_block_erase_d7, |
| 15453 | }, { |
| 15454 | .eraseblocks = { {32 * 1024, 4} }, |
| 15455 | .block_erase = spi_block_erase_d8, |
| 15456 | }, { |
| 15457 | .eraseblocks = { {128 * 1024, 1} }, |
| 15458 | .block_erase = spi_block_erase_c7, |
| 15459 | } |
| 15460 | }, |
| 15461 | .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */ |
| 15462 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 15463 | .write = spi_chip_write_256, |
| 15464 | .read = spi_chip_read, |
| 15465 | .voltage = {2700, 3600}, |
| 15466 | }, |
| 15467 | |
| 15468 | { |
| 15469 | .vendor = "Sanyo", |
| 15470 | .name = "LE25FW203A", |
| 15471 | .bustype = BUS_SPI, |
| 15472 | .manufacture_id = SANYO_ID, |
| 15473 | .model_id = SANYO_LE25FW203A, |
| 15474 | .total_size = 256, |
| 15475 | .page_size = 256, |
| 15476 | .tested = TEST_UNTESTED, |
| 15477 | .probe = probe_spi_rdid, |
| 15478 | .probe_timing = TIMING_ZERO, |
| 15479 | .block_erasers = |
| 15480 | { |
| 15481 | { |
| 15482 | .eraseblocks = { {256, 1024} }, |
| 15483 | .block_erase = spi_block_erase_db, |
| 15484 | }, { |
| 15485 | .eraseblocks = { {64 * 1024, 4} }, |
| 15486 | .block_erase = spi_block_erase_d8, |
| 15487 | }, { |
| 15488 | .eraseblocks = { {256 * 1024, 1} }, |
| 15489 | .block_erase = spi_block_erase_c7, |
| 15490 | } |
| 15491 | }, |
| 15492 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 15493 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 15494 | .write = spi_chip_write_256, |
| 15495 | .read = spi_chip_read, |
| 15496 | .voltage = {2700, 3600}, |
| 15497 | }, |
| 15498 | |
| 15499 | { |
| 15500 | .vendor = "Sanyo", |
| 15501 | .name = "LE25FW403A", |
| 15502 | .bustype = BUS_SPI, |
| 15503 | .manufacture_id = SANYO_ID, |
| 15504 | .model_id = SANYO_LE25FW403A, |
| 15505 | .total_size = 512, |
| 15506 | .page_size = 256, |
| 15507 | .tested = TEST_UNTESTED, |
| 15508 | .probe = probe_spi_rdid, |
| 15509 | .probe_timing = TIMING_ZERO, |
| 15510 | .block_erasers = |
| 15511 | { |
| 15512 | { |
| 15513 | .eraseblocks = { {256, 2 * 1024} }, |
| 15514 | .block_erase = spi_block_erase_db, |
| 15515 | }, { |
| 15516 | .eraseblocks = { {64 * 1024, 8} }, |
| 15517 | .block_erase = spi_block_erase_d8, |
| 15518 | }, { |
| 15519 | .eraseblocks = { {512 * 1024, 1} }, |
| 15520 | .block_erase = spi_block_erase_c7, |
| 15521 | } |
| 15522 | }, |
| 15523 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 15524 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 15525 | .write = spi_chip_write_256, |
| 15526 | .read = spi_chip_read, |
| 15527 | .voltage = {2700, 3600}, |
| 15528 | }, |
| 15529 | |
| 15530 | { |
| 15531 | .vendor = "Sanyo", |
| 15532 | .name = "LE25FW406A", |
| 15533 | .bustype = BUS_SPI, |
| 15534 | .manufacture_id = SANYO_ID, |
| 15535 | .model_id = SANYO_LE25FW406A, |
| 15536 | .total_size = 512, |
| 15537 | .page_size = 256, |
| 15538 | .feature_bits = FEATURE_WRSR_WREN, |
| 15539 | .tested = TEST_OK_PREW, |
| 15540 | .probe = probe_spi_res2, |
| 15541 | .probe_timing = TIMING_ZERO, |
| 15542 | .block_erasers = |
| 15543 | { |
| 15544 | { |
| 15545 | .eraseblocks = { {4 * 1024, 128} }, |
| 15546 | .block_erase = spi_block_erase_d7, |
| 15547 | }, { |
| 15548 | .eraseblocks = { {64 * 1024, 8} }, |
| 15549 | .block_erase = spi_block_erase_d8, |
| 15550 | }, { |
| 15551 | .eraseblocks = { {512 * 1024, 1} }, |
| 15552 | .block_erase = spi_block_erase_c7, |
| 15553 | } |
| 15554 | }, |
| 15555 | .printlock = spi_prettyprint_status_register_plain, |
| 15556 | .unlock = spi_disable_blockprotect, |
| 15557 | .write = spi_chip_write_256, |
| 15558 | .read = spi_chip_read, |
| 15559 | .voltage = {2700, 3600}, |
| 15560 | }, |
| 15561 | |
| 15562 | { |
| 15563 | .vendor = "Sanyo", |
| 15564 | .name = "LE25FW418A", |
| 15565 | .bustype = BUS_SPI, |
| 15566 | .manufacture_id = SANYO_ID, |
| 15567 | .model_id = SANYO_LE25FW418A, |
| 15568 | .total_size = 512, |
| 15569 | .page_size = 256, |
| 15570 | .feature_bits = FEATURE_WRSR_WREN, |
| 15571 | .tested = TEST_UNTESTED, |
| 15572 | .probe = probe_spi_res2, |
| 15573 | .probe_timing = TIMING_ZERO, |
| 15574 | .block_erasers = |
| 15575 | { |
| 15576 | { |
| 15577 | .eraseblocks = { {4 * 1024, 128} }, |
| 15578 | .block_erase = spi_block_erase_d7, |
| 15579 | }, { |
| 15580 | .eraseblocks = { {64 * 1024, 8} }, |
| 15581 | .block_erase = spi_block_erase_d8, |
| 15582 | }, { |
| 15583 | .eraseblocks = { {512 * 1024, 1} }, |
| 15584 | .block_erase = spi_block_erase_c7, |
| 15585 | } |
| 15586 | }, |
| 15587 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 15588 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 15589 | .write = spi_chip_write_256, |
| 15590 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 15591 | .voltage = {2700, 3600}, |
| 15592 | }, |
| 15593 | |
| 15594 | { |
| 15595 | .vendor = "Sanyo", |
| 15596 | .name = "LE25FW806", |
| 15597 | .bustype = BUS_SPI, |
| 15598 | .manufacture_id = SANYO_ID, |
| 15599 | .model_id = SANYO_LE25FW806, |
| 15600 | .total_size = 1024, |
| 15601 | .page_size = 256, |
| 15602 | .feature_bits = FEATURE_WRSR_WREN, |
| 15603 | .tested = TEST_UNTESTED, |
| 15604 | .probe = probe_spi_res2, |
| 15605 | .probe_timing = TIMING_ZERO, |
| 15606 | .block_erasers = |
| 15607 | { |
| 15608 | { |
| 15609 | .eraseblocks = { {4 * 1024, 256} }, |
| 15610 | .block_erase = spi_block_erase_20, |
| 15611 | }, { |
| 15612 | .eraseblocks = { {4 * 1024, 256} }, |
| 15613 | .block_erase = spi_block_erase_d7, |
| 15614 | }, { |
| 15615 | .eraseblocks = { {64 * 1024, 16} }, |
| 15616 | .block_erase = spi_block_erase_d8, |
| 15617 | }, { |
| 15618 | .eraseblocks = { {1024 * 1024, 1} }, |
| 15619 | .block_erase = spi_block_erase_c7, |
| 15620 | } |
| 15621 | }, |
| 15622 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 15623 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 15624 | .write = spi_chip_write_256, |
| 15625 | .read = spi_chip_read, |
| 15626 | .voltage = {2700, 3600}, |
| 15627 | }, |
| 15628 | |
| 15629 | { |
| 15630 | .vendor = "Sanyo", |
| 15631 | .name = "LE25FW808", |
| 15632 | .bustype = BUS_SPI, |
| 15633 | .manufacture_id = SANYO_ID, |
| 15634 | .model_id = SANYO_LE25FW808, |
| 15635 | .total_size = 1024, |
| 15636 | .page_size = 256, |
| 15637 | .feature_bits = FEATURE_WRSR_WREN, |
| 15638 | .tested = TEST_UNTESTED, |
| 15639 | .probe = probe_spi_res2, |
| 15640 | .probe_timing = TIMING_ZERO, |
| 15641 | .block_erasers = |
| 15642 | { |
| 15643 | { |
| 15644 | .eraseblocks = { {8 * 1024, 128} }, |
| 15645 | .block_erase = spi_block_erase_d7, |
| 15646 | }, { |
| 15647 | .eraseblocks = { {64 * 1024, 16} }, |
| 15648 | .block_erase = spi_block_erase_d8, |
| 15649 | }, { |
| 15650 | .eraseblocks = { {1024 * 1024, 1} }, |
| 15651 | .block_erase = spi_block_erase_c7, |
| 15652 | } |
| 15653 | }, |
| 15654 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 15655 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 15656 | .write = spi_chip_write_256, |
| 15657 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 15658 | .voltage = {2700, 3600}, |
| 15659 | }, |
| 15660 | |
| 15661 | { |
| 15662 | .vendor = "Sharp", |
| 15663 | .name = "LH28F008BJT-BTLZ1", |
| 15664 | .bustype = BUS_PARALLEL, |
| 15665 | .manufacture_id = SHARP_ID, |
| 15666 | .model_id = SHARP_LH28F008BJ__PB, |
| 15667 | .total_size = 1024, |
| 15668 | .page_size = 64 * 1024, |
| 15669 | .tested = TEST_OK_PREW, |
| 15670 | .probe = probe_82802ab, |
| 15671 | .probe_timing = TIMING_ZERO, |
| 15672 | .block_erasers = |
| 15673 | { |
| 15674 | { |
| 15675 | .eraseblocks = { |
| 15676 | {8 * 1024, 8}, |
| 15677 | {64 * 1024, 15} |
| 15678 | }, |
| 15679 | .block_erase = erase_block_82802ab, |
| 15680 | }, { |
| 15681 | .eraseblocks = { {1024 * 1024, 1} }, |
| 15682 | .block_erase = erase_sector_49lfxxxc, |
| 15683 | } |
| 15684 | }, |
| 15685 | .unlock = unlock_lh28f008bjt, |
| 15686 | .write = write_82802ab, |
| 15687 | .read = read_memmapped, |
| 15688 | .voltage = {2700, 3600}, |
| 15689 | }, |
| 15690 | |
| 15691 | { |
| 15692 | .vendor = "Sharp", |
| 15693 | .name = "LHF00L04", |
| 15694 | .bustype = BUS_FWH, /* A/A Mux */ |
| 15695 | .manufacture_id = SHARP_ID, |
| 15696 | .model_id = SHARP_LHF00L04, |
| 15697 | .total_size = 1024, |
| 15698 | .page_size = 64 * 1024, |
| 15699 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
| 15700 | .tested = TEST_UNTESTED, |
| 15701 | .probe = probe_82802ab, |
| 15702 | .probe_timing = TIMING_ZERO, |
| 15703 | .block_erasers = |
| 15704 | { |
| 15705 | { |
| 15706 | .eraseblocks = { |
| 15707 | {64 * 1024, 15}, |
| 15708 | {8 * 1024, 8} |
| 15709 | }, |
| 15710 | .block_erase = erase_block_82802ab, |
| 15711 | }, { |
| 15712 | .eraseblocks = { |
| 15713 | {1024 * 1024, 1} |
| 15714 | }, |
| 15715 | .block_erase = NULL, /* 30 D0, only in A/A mux mode */ |
| 15716 | }, |
| 15717 | }, |
| 15718 | .unlock = unlock_regspace2_uniform_64k, |
| 15719 | .write = write_82802ab, |
| 15720 | .read = read_memmapped, |
| 15721 | .voltage = {3000, 3600}, |
| 15722 | }, |
| 15723 | |
| 15724 | { |
| 15725 | .vendor = "Spansion", |
| 15726 | .name = "S25FL004A", |
| 15727 | .bustype = BUS_SPI, |
| 15728 | .manufacture_id = SPANSION_ID, |
| 15729 | .model_id = SPANSION_S25FL004A, |
| 15730 | .total_size = 512, |
| 15731 | .page_size = 256, |
| 15732 | .feature_bits = FEATURE_WRSR_WREN, |
| 15733 | .tested = TEST_UNTESTED, |
| 15734 | .probe = probe_spi_rdid, |
| 15735 | .probe_timing = TIMING_ZERO, |
| 15736 | .block_erasers = |
| 15737 | { |
| 15738 | { |
| 15739 | .eraseblocks = { {64 * 1024, 8} }, |
| 15740 | .block_erase = spi_block_erase_d8, |
| 15741 | }, { |
| 15742 | .eraseblocks = { {512 * 1024, 1} }, |
| 15743 | .block_erase = spi_block_erase_c7, |
| 15744 | } |
| 15745 | }, |
| 15746 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15747 | .unlock = spi_disable_blockprotect, |
| 15748 | .write = spi_chip_write_256, |
| 15749 | .read = spi_chip_read, |
| 15750 | .voltage = {2700, 3600}, |
| 15751 | }, |
| 15752 | |
| 15753 | { |
| 15754 | .vendor = "Spansion", |
| 15755 | .name = "S25FL008A", |
| 15756 | .bustype = BUS_SPI, |
| 15757 | .manufacture_id = SPANSION_ID, |
| 15758 | .model_id = SPANSION_S25FL008A, |
| 15759 | .total_size = 1024, |
| 15760 | .page_size = 256, |
| 15761 | .feature_bits = FEATURE_WRSR_WREN, |
| 15762 | .tested = TEST_OK_PRE, |
| 15763 | .probe = probe_spi_rdid, |
| 15764 | .probe_timing = TIMING_ZERO, |
| 15765 | .block_erasers = |
| 15766 | { |
| 15767 | { |
| 15768 | .eraseblocks = { {64 * 1024, 16} }, |
| 15769 | .block_erase = spi_block_erase_d8, |
| 15770 | }, { |
| 15771 | .eraseblocks = { {1024 * 1024, 1} }, |
| 15772 | .block_erase = spi_block_erase_c7, |
| 15773 | } |
| 15774 | }, |
| 15775 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15776 | .unlock = spi_disable_blockprotect, |
| 15777 | .write = spi_chip_write_256, |
| 15778 | .read = spi_chip_read, |
| 15779 | .voltage = {2700, 3600}, |
| 15780 | }, |
| 15781 | |
| 15782 | { |
| 15783 | .vendor = "Spansion", |
| 15784 | .name = "S25FL016A", |
| 15785 | .bustype = BUS_SPI, |
| 15786 | .manufacture_id = SPANSION_ID, |
| 15787 | .model_id = SPANSION_S25FL016A, |
| 15788 | .total_size = 2048, |
| 15789 | .page_size = 256, |
| 15790 | .feature_bits = FEATURE_WRSR_WREN, |
| 15791 | .tested = TEST_OK_PREW, |
| 15792 | .probe = probe_spi_rdid, |
| 15793 | .probe_timing = TIMING_ZERO, |
| 15794 | .block_erasers = |
| 15795 | { |
| 15796 | { |
| 15797 | .eraseblocks = { {64 * 1024, 32} }, |
| 15798 | .block_erase = spi_block_erase_d8, |
| 15799 | }, { |
| 15800 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 15801 | .block_erase = spi_block_erase_c7, |
| 15802 | } |
| 15803 | }, |
| 15804 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15805 | .unlock = spi_disable_blockprotect, |
| 15806 | .write = spi_chip_write_256, |
| 15807 | .read = spi_chip_read, |
| 15808 | .voltage = {2700, 3600}, |
| 15809 | }, |
| 15810 | |
| 15811 | { |
| 15812 | .vendor = "Spansion", |
| 15813 | .name = "S25FL032A/P", |
| 15814 | .bustype = BUS_SPI, |
| 15815 | .manufacture_id = SPANSION_ID, |
| 15816 | .model_id = SPANSION_S25FL032A, |
| 15817 | .total_size = 4096, |
| 15818 | .page_size = 256, |
| 15819 | .feature_bits = FEATURE_WRSR_WREN, |
| 15820 | .tested = TEST_OK_PREW, |
| 15821 | .probe = probe_spi_rdid, |
| 15822 | .probe_timing = TIMING_ZERO, |
| 15823 | .block_erasers = |
| 15824 | { |
| 15825 | { |
| 15826 | .eraseblocks = { {64 * 1024, 64} }, |
| 15827 | .block_erase = spi_block_erase_d8, |
| 15828 | }, { |
| 15829 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 15830 | .block_erase = spi_block_erase_c7, |
| 15831 | } |
| 15832 | }, |
| 15833 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15834 | .unlock = spi_disable_blockprotect, |
| 15835 | .write = spi_chip_write_256, |
| 15836 | .read = spi_chip_read, |
| 15837 | .voltage = {2700, 3600}, |
| 15838 | }, |
| 15839 | |
| 15840 | { |
| 15841 | .vendor = "Spansion", |
| 15842 | .name = "S25FL064A/P", |
| 15843 | .bustype = BUS_SPI, |
| 15844 | .manufacture_id = SPANSION_ID, |
| 15845 | .model_id = SPANSION_S25FL064A, |
| 15846 | .total_size = 8192, |
| 15847 | .page_size = 256, |
| 15848 | .feature_bits = FEATURE_WRSR_WREN, |
| 15849 | .tested = TEST_OK_PREW, |
| 15850 | .probe = probe_spi_rdid, |
| 15851 | .probe_timing = TIMING_ZERO, |
| 15852 | .block_erasers = |
| 15853 | { |
| 15854 | { |
| 15855 | .eraseblocks = { {64 * 1024, 128} }, |
| 15856 | .block_erase = spi_block_erase_d8, |
| 15857 | }, { |
| 15858 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 15859 | .block_erase = spi_block_erase_c7, |
| 15860 | } |
| 15861 | }, |
| 15862 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15863 | .unlock = spi_disable_blockprotect, |
| 15864 | .write = spi_chip_write_256, |
| 15865 | .read = spi_chip_read, |
| 15866 | .voltage = {2700, 3600}, |
| 15867 | }, |
| 15868 | |
| 15869 | { |
| 15870 | .vendor = "Spansion", |
| 15871 | .name = "S25FL116K/S25FL216K", /* FIXME: separate them */ |
| 15872 | .bustype = BUS_SPI, |
| 15873 | .manufacture_id = SPANSION_ID, |
| 15874 | .model_id = SPANSION_S25FL216, |
| 15875 | .total_size = 2048, |
| 15876 | .page_size = 256, |
| 15877 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */ |
| 15878 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15879 | .tested = TEST_UNTESTED, |
| 15880 | .probe = probe_spi_rdid, |
| 15881 | .probe_timing = TIMING_ZERO, |
| 15882 | .block_erasers = |
| 15883 | { |
| 15884 | { |
| 15885 | .eraseblocks = { {4 * 1024, 512} }, |
| 15886 | .block_erase = spi_block_erase_20, |
| 15887 | }, { |
| 15888 | .eraseblocks = { {64 * 1024, 32} }, |
| 15889 | .block_erase = spi_block_erase_d8, |
| 15890 | }, { |
| 15891 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 15892 | .block_erase = spi_block_erase_60, |
| 15893 | }, { |
| 15894 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 15895 | .block_erase = spi_block_erase_c7, |
| 15896 | } |
| 15897 | }, |
| 15898 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 15899 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 15900 | .write = spi_chip_write_256, |
| 15901 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
| 15902 | .voltage = {2700, 3600}, |
| 15903 | }, |
| 15904 | |
| 15905 | { |
| 15906 | .vendor = "Spansion", |
| 15907 | .name = "S25FL127S-256kB", /* uniform 256kB sectors */ |
| 15908 | .bustype = BUS_SPI, |
| 15909 | .manufacture_id = SPANSION_ID, |
| 15910 | .model_id = SPANSION_S25FL128, |
| 15911 | .total_size = 16384, |
| 15912 | .page_size = 512, |
| 15913 | /* supports 4B addressing */ |
| 15914 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 15915 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15916 | .tested = TEST_UNTESTED, |
| 15917 | .probe = probe_spi_rdid, |
| 15918 | .probe_timing = TIMING_ZERO, |
| 15919 | .block_erasers = |
| 15920 | { |
| 15921 | { |
| 15922 | .eraseblocks = { {256 * 1024, 64} }, |
| 15923 | .block_erase = spi_block_erase_d8, |
| 15924 | }, { |
| 15925 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15926 | .block_erase = spi_block_erase_60, |
| 15927 | }, { |
| 15928 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15929 | .block_erase = spi_block_erase_c7, |
| 15930 | } |
| 15931 | }, |
| 15932 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 15933 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 15934 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 15935 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15936 | .voltage = {2700, 3600}, |
| 15937 | }, |
| 15938 | |
| 15939 | { |
| 15940 | .vendor = "Spansion", |
| 15941 | .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 15942 | .bustype = BUS_SPI, |
| 15943 | .manufacture_id = SPANSION_ID, |
| 15944 | .model_id = SPANSION_S25FL128, |
| 15945 | .total_size = 16384, |
| 15946 | .page_size = 256, |
| 15947 | /* supports 4B addressing */ |
| 15948 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 15949 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15950 | .tested = TEST_OK_PREW, |
| 15951 | /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */ |
| 15952 | .probe = probe_spi_rdid, |
| 15953 | .probe_timing = TIMING_ZERO, |
| 15954 | .block_erasers = |
| 15955 | { |
| 15956 | { |
| 15957 | /* This chip supports erasing of 32 so-called "parameter sectors" with |
| 15958 | * opcode 0x20 which may be configured to be on top or bottom of the address |
| 15959 | * space. Trying to access an address outside these 4kB blocks does have no |
| 15960 | * effect on the memory contents, e.g. |
| 15961 | .eraseblocks = { |
| 15962 | {4 * 1024, 32}, |
| 15963 | {64 * 1024, 254} // inaccessible |
| 15964 | }, |
| 15965 | .block_erase = spi_block_erase_20, |
| 15966 | }, { */ |
| 15967 | .eraseblocks = { { 64 * 1024, 256} }, |
| 15968 | .block_erase = spi_block_erase_d8, |
| 15969 | }, { |
| 15970 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15971 | .block_erase = spi_block_erase_60, |
| 15972 | }, { |
| 15973 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15974 | .block_erase = spi_block_erase_c7, |
| 15975 | } |
| 15976 | }, |
| 15977 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 15978 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 15979 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 15980 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15981 | .voltage = {2700, 3600}, |
| 15982 | }, |
| 15983 | |
| 15984 | { |
| 15985 | .vendor = "Spansion", |
| 15986 | .name = "S25FL128P......0", /* uniform 64 kB sectors */ |
| 15987 | .bustype = BUS_SPI, |
| 15988 | .manufacture_id = SPANSION_ID, |
| 15989 | .model_id = SPANSION_S25FL128, |
| 15990 | .total_size = 16384, |
| 15991 | .page_size = 256, |
| 15992 | .feature_bits = FEATURE_WRSR_WREN, |
| 15993 | .tested = TEST_OK_PREW, |
| 15994 | .probe = probe_spi_rdid, |
| 15995 | .probe_timing = TIMING_ZERO, |
| 15996 | .block_erasers = |
| 15997 | { |
| 15998 | { |
| 15999 | .eraseblocks = { {64 * 1024, 256} }, |
| 16000 | .block_erase = spi_block_erase_20, |
| 16001 | }, { |
| 16002 | .eraseblocks = { {64 * 1024, 256} }, |
| 16003 | .block_erase = spi_block_erase_d8, |
| 16004 | }, { |
| 16005 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16006 | .block_erase = spi_block_erase_60, |
| 16007 | }, { |
| 16008 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16009 | .block_erase = spi_block_erase_c7, |
| 16010 | } |
| 16011 | }, |
| 16012 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 16013 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 16014 | .write = spi_chip_write_256, |
| 16015 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 16016 | .voltage = {2700, 3600}, |
| 16017 | }, |
| 16018 | |
| 16019 | { |
| 16020 | .vendor = "Spansion", |
| 16021 | .name = "S25FL128P......1", /* uniform 256kB sectors */ |
| 16022 | .bustype = BUS_SPI, |
| 16023 | .manufacture_id = SPANSION_ID, |
| 16024 | .model_id = SPANSION_S25FL128, |
| 16025 | .total_size = 16384, |
| 16026 | .page_size = 256, |
| 16027 | .feature_bits = FEATURE_WRSR_WREN, |
| 16028 | .tested = TEST_UNTESTED, |
| 16029 | .probe = probe_spi_rdid, |
| 16030 | .probe_timing = TIMING_ZERO, |
| 16031 | .block_erasers = |
| 16032 | { |
| 16033 | { |
| 16034 | .eraseblocks = { {256 * 1024, 64} }, |
| 16035 | .block_erase = spi_block_erase_d8, |
| 16036 | }, { |
| 16037 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16038 | .block_erase = spi_block_erase_c7, |
| 16039 | } |
| 16040 | }, |
| 16041 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 16042 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 16043 | .write = spi_chip_write_256, |
| 16044 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 16045 | .voltage = {2700, 3600}, |
| 16046 | }, |
| 16047 | |
| 16048 | { |
| 16049 | .vendor = "Spansion", |
| 16050 | .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 16051 | .bustype = BUS_SPI, |
| 16052 | .manufacture_id = SPANSION_ID, |
| 16053 | .model_id = SPANSION_S25FL128, |
| 16054 | .total_size = 16384, |
| 16055 | .page_size = 256, |
| 16056 | /* supports 4B addressing */ |
| 16057 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 16058 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16059 | .tested = TEST_OK_PREW, |
| 16060 | .probe = probe_spi_rdid, |
| 16061 | .probe_timing = TIMING_ZERO, |
| 16062 | .block_erasers = |
| 16063 | { |
| 16064 | { |
| 16065 | /* This chip supports erasing of the 32 so-called "parameter sectors" with |
| 16066 | * opcode 0x20. Trying to access an address outside these 4kB blocks does |
| 16067 | * have no effect on the memory contents, but sets a flag in the SR. |
| 16068 | .eraseblocks = { |
| 16069 | {4 * 1024, 32}, |
| 16070 | {64 * 1024, 254} // inaccessible |
| 16071 | }, |
| 16072 | .block_erase = spi_block_erase_20, |
| 16073 | }, { */ |
| 16074 | .eraseblocks = { { 64 * 1024, 256} }, |
| 16075 | .block_erase = spi_block_erase_d8, |
| 16076 | }, { |
| 16077 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16078 | .block_erase = spi_block_erase_60, |
| 16079 | }, { |
| 16080 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16081 | .block_erase = spi_block_erase_c7, |
| 16082 | } |
| 16083 | }, |
| 16084 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 16085 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 16086 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 16087 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 16088 | .voltage = {2700, 3600}, |
| 16089 | }, |
| 16090 | |
| 16091 | { |
| 16092 | .vendor = "Spansion", |
| 16093 | .name = "S25FL128S......1", /* uniform 256 kB sectors */ |
| 16094 | .bustype = BUS_SPI, |
| 16095 | .manufacture_id = SPANSION_ID, |
| 16096 | .model_id = SPANSION_S25FL128, |
| 16097 | .total_size = 16384, |
| 16098 | .page_size = 512, |
| 16099 | /* supports 4B addressing */ |
| 16100 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 16101 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16102 | .tested = TEST_UNTESTED, |
| 16103 | .probe = probe_spi_rdid, |
| 16104 | .probe_timing = TIMING_ZERO, |
| 16105 | .block_erasers = |
| 16106 | { |
| 16107 | { |
| 16108 | .eraseblocks = { {256 * 1024, 64} }, |
| 16109 | .block_erase = spi_block_erase_d8, |
| 16110 | }, { |
| 16111 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16112 | .block_erase = spi_block_erase_60, |
| 16113 | }, { |
| 16114 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16115 | .block_erase = spi_block_erase_c7, |
| 16116 | } |
| 16117 | }, |
| 16118 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 16119 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 16120 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 16121 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 16122 | .voltage = {2700, 3600}, |
| 16123 | }, |
| 16124 | |
| 16125 | { |
| 16126 | .vendor = "Spansion", |
| 16127 | .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 16128 | .bustype = BUS_SPI, |
| 16129 | .manufacture_id = SPANSION_ID, |
| 16130 | .model_id = SPANSION_S25FL128, |
| 16131 | .total_size = 16384, |
| 16132 | .page_size = 256, |
| 16133 | /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */ |
| 16134 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16135 | .tested = TEST_OK_PREW, |
| 16136 | .probe = probe_spi_rdid, |
| 16137 | .probe_timing = TIMING_ZERO, |
| 16138 | .block_erasers = |
| 16139 | { |
| 16140 | { |
| 16141 | /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with |
| 16142 | * opcode 0x20. Trying to access an address outside these 4kB blocks does have no |
| 16143 | * effect on the memory contents, but sets a flag in the SR. |
| 16144 | .eraseblocks = { |
| 16145 | {4 * 1024, 32}, |
| 16146 | {64 * 1024, 254} // inaccessible |
| 16147 | }, |
| 16148 | .block_erase = spi_block_erase_20, |
| 16149 | }, { */ |
| 16150 | /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs |
| 16151 | .eraseblocks = { |
| 16152 | {8 * 1024, 16}, |
| 16153 | {64 * 1024, 254} // inaccessible |
| 16154 | }, |
| 16155 | .block_erase = spi_block_erase_40, |
| 16156 | }, { */ |
| 16157 | .eraseblocks = { { 64 * 1024, 256} }, |
| 16158 | .block_erase = spi_block_erase_d8, |
| 16159 | }, { |
| 16160 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16161 | .block_erase = spi_block_erase_60, |
| 16162 | }, { |
| 16163 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16164 | .block_erase = spi_block_erase_c7, |
| 16165 | } |
| 16166 | }, |
| 16167 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */ |
| 16168 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 16169 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 16170 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 16171 | .voltage = {2700, 3600}, |
| 16172 | }, |
| 16173 | |
| 16174 | { |
| 16175 | .vendor = "Spansion", |
| 16176 | .name = "S25FL129P......1", /* uniform 256 kB sectors */ |
| 16177 | .bustype = BUS_SPI, |
| 16178 | .manufacture_id = SPANSION_ID, |
| 16179 | .model_id = SPANSION_S25FL128, |
| 16180 | .total_size = 16384, |
| 16181 | .page_size = 256, |
| 16182 | /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */ |
| 16183 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16184 | .tested = TEST_UNTESTED, |
| 16185 | .probe = probe_spi_rdid, |
| 16186 | .probe_timing = TIMING_ZERO, |
| 16187 | .block_erasers = |
| 16188 | { |
| 16189 | { |
| 16190 | .eraseblocks = { {256 * 1024, 64} }, |
| 16191 | .block_erase = spi_block_erase_d8, |
| 16192 | }, { |
| 16193 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16194 | .block_erase = spi_block_erase_60, |
| 16195 | }, { |
| 16196 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16197 | .block_erase = spi_block_erase_c7, |
| 16198 | } |
| 16199 | }, |
| 16200 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */ |
| 16201 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 16202 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 16203 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 16204 | .voltage = {2700, 3600}, |
| 16205 | }, |
| 16206 | |
| 16207 | { |
| 16208 | .vendor = "Spansion", |
| 16209 | .name = "S25FL132K", |
| 16210 | .bustype = BUS_SPI, |
| 16211 | .manufacture_id = SPANSION_ID, |
| 16212 | .model_id = SPANSION_S25FL132K, |
| 16213 | .total_size = 4096, |
| 16214 | .page_size = 256, |
| 16215 | /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 16216 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16217 | .tested = TEST_UNTESTED, |
| 16218 | .probe = probe_spi_rdid, |
| 16219 | .probe_timing = TIMING_ZERO, |
| 16220 | .block_erasers = |
| 16221 | { |
| 16222 | { |
| 16223 | .eraseblocks = { {4 * 1024, 1024} }, |
| 16224 | .block_erase = spi_block_erase_20, |
| 16225 | }, { |
| 16226 | .eraseblocks = { {64 * 1024, 64} }, |
| 16227 | .block_erase = spi_block_erase_d8, |
| 16228 | }, { |
| 16229 | .eraseblocks = { { 4096 * 1024, 1} }, |
| 16230 | .block_erase = spi_block_erase_60, |
| 16231 | }, { |
| 16232 | .eraseblocks = { { 4096 * 1024, 1} }, |
| 16233 | .block_erase = spi_block_erase_c7, |
| 16234 | } |
| 16235 | }, |
| 16236 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */ |
| 16237 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 16238 | .write = spi_chip_write_256, |
| 16239 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 16240 | .voltage = {2700, 3600}, |
| 16241 | }, |
| 16242 | |
| 16243 | { |
| 16244 | .vendor = "Spansion", |
| 16245 | .name = "S25FL164K", |
| 16246 | .bustype = BUS_SPI, |
| 16247 | .manufacture_id = SPANSION_ID, |
| 16248 | .model_id = SPANSION_S25FL164K, |
| 16249 | .total_size = 8192, |
| 16250 | .page_size = 256, |
| 16251 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 16252 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16253 | .tested = TEST_OK_PREW, |
| 16254 | .probe = probe_spi_rdid, |
| 16255 | .probe_timing = TIMING_ZERO, |
| 16256 | .block_erasers = |
| 16257 | { |
| 16258 | { |
| 16259 | .eraseblocks = { {4 * 1024, 2048} }, |
| 16260 | .block_erase = spi_block_erase_20, |
| 16261 | }, { |
| 16262 | .eraseblocks = { {64 * 1024, 128} }, |
| 16263 | .block_erase = spi_block_erase_d8, |
| 16264 | }, { |
| 16265 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 16266 | .block_erase = spi_block_erase_60, |
| 16267 | }, { |
| 16268 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 16269 | .block_erase = spi_block_erase_c7, |
| 16270 | } |
| 16271 | }, |
| 16272 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */ |
| 16273 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 16274 | .write = spi_chip_write_256, |
| 16275 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 16276 | .voltage = {2700, 3600}, |
| 16277 | }, |
| 16278 | |
| 16279 | { |
| 16280 | .vendor = "Spansion", |
| 16281 | .name = "S25FL204K", |
| 16282 | .bustype = BUS_SPI, |
| 16283 | .manufacture_id = SPANSION_ID, |
| 16284 | .model_id = SPANSION_S25FL204, |
| 16285 | .total_size = 512, |
| 16286 | .page_size = 256, |
| 16287 | .feature_bits = FEATURE_WRSR_WREN, |
| 16288 | .tested = TEST_OK_PR, |
| 16289 | .probe = probe_spi_rdid, |
| 16290 | .probe_timing = TIMING_ZERO, |
| 16291 | .block_erasers = |
| 16292 | { |
| 16293 | { |
| 16294 | .eraseblocks = { {4 * 1024, 128} }, |
| 16295 | .block_erase = spi_block_erase_20, |
| 16296 | }, { |
| 16297 | .eraseblocks = { {64 * 1024, 8} }, |
| 16298 | .block_erase = spi_block_erase_d8, |
| 16299 | }, { |
| 16300 | .eraseblocks = { { 512 * 1024, 1} }, |
| 16301 | .block_erase = spi_block_erase_60, |
| 16302 | }, { |
| 16303 | .eraseblocks = { { 512 * 1024, 1} }, |
| 16304 | .block_erase = spi_block_erase_c7, |
| 16305 | } |
| 16306 | }, |
| 16307 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 16308 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 16309 | .write = spi_chip_write_256, |
| 16310 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
| 16311 | .voltage = {2700, 3600}, |
| 16312 | }, |
| 16313 | |
| 16314 | { |
| 16315 | .vendor = "Spansion", |
| 16316 | .name = "S25FL208K", |
| 16317 | .bustype = BUS_SPI, |
| 16318 | .manufacture_id = SPANSION_ID, |
| 16319 | .model_id = SPANSION_S25FL208, |
| 16320 | .total_size = 1024, |
| 16321 | .page_size = 256, |
| 16322 | .feature_bits = FEATURE_WRSR_WREN, |
| 16323 | .tested = TEST_OK_PREW, |
| 16324 | .probe = probe_spi_rdid, |
| 16325 | .probe_timing = TIMING_ZERO, |
| 16326 | .block_erasers = |
| 16327 | { |
| 16328 | { |
| 16329 | .eraseblocks = { {4 * 1024, 256} }, |
| 16330 | .block_erase = spi_block_erase_20, |
| 16331 | }, { |
| 16332 | .eraseblocks = { {64 * 1024, 16} }, |
| 16333 | .block_erase = spi_block_erase_d8, |
| 16334 | }, { |
| 16335 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 16336 | .block_erase = spi_block_erase_60, |
| 16337 | }, { |
| 16338 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 16339 | .block_erase = spi_block_erase_c7, |
| 16340 | } |
| 16341 | }, |
| 16342 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 16343 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 16344 | .write = spi_chip_write_256, |
| 16345 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
| 16346 | .voltage = {2700, 3600}, |
| 16347 | }, |
| 16348 | |
| 16349 | { |
| 16350 | .vendor = "Spansion", |
| 16351 | .name = "S25FL256S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 16352 | .bustype = BUS_SPI, |
| 16353 | .manufacture_id = SPANSION_ID, |
| 16354 | .model_id = SPANSION_S25FL256, |
| 16355 | .total_size = 32768, |
| 16356 | .page_size = 256, |
| 16357 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 16358 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_EAR7, |
| 16359 | .tested = TEST_OK_PREW, |
| 16360 | .probe = probe_spi_rdid, |
| 16361 | .probe_timing = TIMING_ZERO, |
| 16362 | .block_erasers = |
| 16363 | { |
| 16364 | { |
| 16365 | /* This chip supports erasing of the 32 so-called "parameter sectors" with |
| 16366 | * opcode 0x20. Trying to access an address outside these 4kB blocks does |
| 16367 | * have no effect on the memory contents, but sets a flag in the SR. |
| 16368 | .eraseblocks = { |
| 16369 | {4 * 1024, 32}, |
| 16370 | {64 * 1024, 254} // inaccessible |
| 16371 | }, |
| 16372 | .block_erase = spi_block_erase_20, |
| 16373 | }, { */ |
| 16374 | .eraseblocks = { { 64 * 1024, 512} }, |
| 16375 | .block_erase = spi_block_erase_dc, |
| 16376 | }, { |
| 16377 | .eraseblocks = { { 64 * 1024, 512} }, |
| 16378 | .block_erase = spi_block_erase_d8, |
| 16379 | }, { |
| 16380 | .eraseblocks = { { 32768 * 1024, 1} }, |
| 16381 | .block_erase = spi_block_erase_60, |
| 16382 | }, { |
| 16383 | .eraseblocks = { { 32768 * 1024, 1} }, |
| 16384 | .block_erase = spi_block_erase_c7, |
| 16385 | } |
| 16386 | }, |
| 16387 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 16388 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 16389 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 16390 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 16391 | .voltage = {2700, 3600}, |
| 16392 | .wrea_override = 0x17, |
| 16393 | }, |
| 16394 | |
| 16395 | { |
Bernhard Urban-Forster | 05c629b | 2020-02-02 21:29:48 +0100 | [diff] [blame] | 16396 | .vendor = "Spansion", |
| 16397 | .name = "S25FL512S", |
| 16398 | .bustype = BUS_SPI, |
| 16399 | .manufacture_id = SPANSION_ID, |
| 16400 | .model_id = SPANSION_S25FL512, |
| 16401 | .total_size = 65536, /* 512 Mb (=> 64 MB)) */ |
| 16402 | .page_size = 256, |
| 16403 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 16404 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_NATIVE, |
| 16405 | .tested = TEST_OK_PREW, |
| 16406 | .probe = probe_spi_rdid, |
| 16407 | .probe_timing = TIMING_ZERO, |
| 16408 | .block_erasers = |
| 16409 | { |
| 16410 | { |
| 16411 | .eraseblocks = { { 256 * 1024, 256} }, |
| 16412 | .block_erase = spi_block_erase_dc, |
| 16413 | }, { |
| 16414 | .eraseblocks = { { 65536 * 1024, 1} }, |
| 16415 | .block_erase = spi_block_erase_60, |
| 16416 | }, { |
| 16417 | .eraseblocks = { { 65536 * 1024, 1} }, |
| 16418 | .block_erase = spi_block_erase_c7, |
| 16419 | } |
| 16420 | }, |
| 16421 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 16422 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 16423 | .write = spi_chip_write_256, /* Multi I/O supported, IGNORE for now */ |
| 16424 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 16425 | .voltage = {2700, 3600}, |
| 16426 | }, |
| 16427 | |
| 16428 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16429 | .vendor = "SyncMOS/MoselVitelic", |
| 16430 | .name = "{F,S,V}29C51001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16431 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16432 | .manufacture_id = SYNCMOS_MVC_ID, |
| 16433 | .model_id = SM_MVC_29C51001B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16434 | .total_size = 128, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16435 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16436 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16437 | .tested = TEST_UNTESTED, |
| 16438 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 16439 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16440 | .block_erasers = |
| 16441 | { |
| 16442 | { |
| 16443 | .eraseblocks = { {512, 256} }, |
| 16444 | .block_erase = erase_sector_jedec, |
| 16445 | }, { |
| 16446 | .eraseblocks = { {128 * 1024, 1} }, |
| 16447 | .block_erase = erase_chip_block_jedec, |
| 16448 | }, |
| 16449 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16450 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16451 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16452 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16453 | }, |
| 16454 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16455 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16456 | .vendor = "SyncMOS/MoselVitelic", |
| 16457 | .name = "{F,S,V}29C51001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16458 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16459 | .manufacture_id = SYNCMOS_MVC_ID, |
| 16460 | .model_id = SM_MVC_29C51001T, |
| 16461 | .total_size = 128, |
| 16462 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16463 | .feature_bits = FEATURE_EITHER_RESET, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16464 | .tested = TEST_UNTESTED, |
| 16465 | .probe = probe_jedec, |
| 16466 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 16467 | .block_erasers = |
| 16468 | { |
| 16469 | { |
| 16470 | .eraseblocks = { {512, 256} }, |
| 16471 | .block_erase = erase_sector_jedec, |
| 16472 | }, { |
| 16473 | .eraseblocks = { {128 * 1024, 1} }, |
| 16474 | .block_erase = erase_chip_block_jedec, |
| 16475 | }, |
| 16476 | }, |
| 16477 | .write = write_jedec_1, |
| 16478 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16479 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16480 | }, |
| 16481 | |
| 16482 | { |
| 16483 | .vendor = "SyncMOS/MoselVitelic", |
| 16484 | .name = "{F,S,V}29C51002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16485 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16486 | .manufacture_id = SYNCMOS_MVC_ID, |
| 16487 | .model_id = SM_MVC_29C51002B, |
| 16488 | .total_size = 256, |
| 16489 | .page_size = 512, |
| 16490 | .feature_bits = FEATURE_EITHER_RESET, |
| 16491 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16492 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 16493 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16494 | .block_erasers = |
| 16495 | { |
| 16496 | { |
| 16497 | .eraseblocks = { {512, 512} }, |
| 16498 | .block_erase = erase_sector_jedec, |
| 16499 | }, { |
| 16500 | .eraseblocks = { {256 * 1024, 1} }, |
| 16501 | .block_erase = erase_chip_block_jedec, |
| 16502 | }, |
| 16503 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16504 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16505 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16506 | }, |
| 16507 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16508 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16509 | .vendor = "SyncMOS/MoselVitelic", |
| 16510 | .name = "{F,S,V}29C51002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16511 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16512 | .manufacture_id = SYNCMOS_MVC_ID, |
| 16513 | .model_id = SM_MVC_29C51002T, |
| 16514 | .total_size = 256, |
| 16515 | .page_size = 512, |
| 16516 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 16517 | .tested = TEST_OK_PREW, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16518 | .probe = probe_jedec, |
| 16519 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 16520 | .block_erasers = |
| 16521 | { |
| 16522 | { |
| 16523 | .eraseblocks = { {512, 512} }, |
| 16524 | .block_erase = erase_sector_jedec, |
| 16525 | }, { |
| 16526 | .eraseblocks = { {256 * 1024, 1} }, |
| 16527 | .block_erase = erase_chip_block_jedec, |
| 16528 | }, |
| 16529 | }, |
| 16530 | .write = write_jedec_1, |
| 16531 | .read = read_memmapped, |
| 16532 | }, |
| 16533 | |
| 16534 | { |
| 16535 | .vendor = "SyncMOS/MoselVitelic", |
| 16536 | .name = "{F,S,V}29C51004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16537 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16538 | .manufacture_id = SYNCMOS_MVC_ID, |
| 16539 | .model_id = SM_MVC_29C51004B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16540 | .total_size = 512, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16541 | .page_size = 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16542 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16543 | .tested = TEST_UNTESTED, |
| 16544 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 16545 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16546 | .block_erasers = |
| 16547 | { |
| 16548 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16549 | .eraseblocks = { {1024, 512} }, |
| 16550 | .block_erase = erase_sector_jedec, |
| 16551 | }, { |
| 16552 | .eraseblocks = { {512 * 1024, 1} }, |
| 16553 | .block_erase = erase_chip_block_jedec, |
| 16554 | }, |
| 16555 | }, |
| 16556 | .write = write_jedec_1, |
| 16557 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16558 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16559 | }, |
| 16560 | |
| 16561 | { |
| 16562 | .vendor = "SyncMOS/MoselVitelic", |
| 16563 | .name = "{F,S,V}29C51004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16564 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16565 | .manufacture_id = SYNCMOS_MVC_ID, |
| 16566 | .model_id = SM_MVC_29C51004T, |
| 16567 | .total_size = 512, |
| 16568 | .page_size = 1024, |
| 16569 | .feature_bits = FEATURE_EITHER_RESET, |
| 16570 | .tested = TEST_UNTESTED, |
| 16571 | .probe = probe_jedec, |
| 16572 | .probe_timing = TIMING_ZERO, |
| 16573 | .block_erasers = |
| 16574 | { |
| 16575 | { |
| 16576 | .eraseblocks = { {1024, 512} }, |
| 16577 | .block_erase = erase_sector_jedec, |
| 16578 | }, { |
| 16579 | .eraseblocks = { {512 * 1024, 1} }, |
| 16580 | .block_erase = erase_chip_block_jedec, |
| 16581 | }, |
| 16582 | }, |
| 16583 | .write = write_jedec_1, |
| 16584 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16585 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16586 | }, |
| 16587 | |
| 16588 | { |
| 16589 | .vendor = "SyncMOS/MoselVitelic", |
| 16590 | .name = "{S,V}29C31004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16591 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16592 | .manufacture_id = SYNCMOS_MVC_ID, |
| 16593 | .model_id = SM_MVC_29C31004B, |
| 16594 | .total_size = 512, |
| 16595 | .page_size = 1024, |
| 16596 | .feature_bits = FEATURE_EITHER_RESET, |
| 16597 | .tested = TEST_UNTESTED, |
| 16598 | .probe = probe_jedec, |
| 16599 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 16600 | .block_erasers = |
| 16601 | { |
| 16602 | { |
| 16603 | .eraseblocks = { {1024, 512} }, |
| 16604 | .block_erase = erase_sector_jedec, |
| 16605 | }, { |
| 16606 | .eraseblocks = { {512 * 1024, 1} }, |
| 16607 | .block_erase = erase_chip_block_jedec, |
| 16608 | }, |
| 16609 | }, |
| 16610 | .write = write_jedec_1, |
| 16611 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16612 | .voltage = {3000, 3600}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16613 | }, |
| 16614 | |
| 16615 | { |
| 16616 | .vendor = "SyncMOS/MoselVitelic", |
| 16617 | .name = "{S,V}29C31004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16618 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16619 | .manufacture_id = SYNCMOS_MVC_ID, |
| 16620 | .model_id = SM_MVC_29C31004T, |
| 16621 | .total_size = 512, |
| 16622 | .page_size = 1024, |
| 16623 | .feature_bits = FEATURE_EITHER_RESET, |
| 16624 | .tested = TEST_UNTESTED, |
| 16625 | .probe = probe_jedec, |
| 16626 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 16627 | .block_erasers = |
| 16628 | { |
| 16629 | { |
| 16630 | .eraseblocks = { {1024, 512} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16631 | .block_erase = erase_sector_jedec, |
| 16632 | }, { |
| 16633 | .eraseblocks = { {512 * 1024, 1} }, |
| 16634 | .block_erase = erase_chip_block_jedec, |
| 16635 | }, |
| 16636 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16637 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16638 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16639 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16640 | }, |
| 16641 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16642 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 16643 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16644 | .name = "TMS29F002RB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16645 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16646 | .manufacture_id = TI_OLD_ID, |
| 16647 | .model_id = TI_TMS29F002RB, |
| 16648 | .total_size = 256, |
| 16649 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16650 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16651 | .tested = TEST_UNTESTED, |
| 16652 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 16653 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16654 | .block_erasers = |
| 16655 | { |
| 16656 | { |
| 16657 | .eraseblocks = { |
| 16658 | {16 * 1024, 1}, |
| 16659 | {8 * 1024, 2}, |
| 16660 | {32 * 1024, 1}, |
| 16661 | {64 * 1024, 3}, |
| 16662 | }, |
| 16663 | .block_erase = erase_sector_jedec, |
| 16664 | }, { |
| 16665 | .eraseblocks = { {256 * 1024, 1} }, |
| 16666 | .block_erase = erase_chip_block_jedec, |
| 16667 | }, |
| 16668 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16669 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16670 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16671 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16672 | }, |
| 16673 | |
| 16674 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 16675 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16676 | .name = "TMS29F002RT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16677 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16678 | .manufacture_id = TI_OLD_ID, |
| 16679 | .model_id = TI_TMS29F002RT, |
| 16680 | .total_size = 256, |
| 16681 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16682 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16683 | .tested = TEST_UNTESTED, |
| 16684 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 16685 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16686 | .block_erasers = |
| 16687 | { |
| 16688 | { |
| 16689 | .eraseblocks = { |
| 16690 | {64 * 1024, 3}, |
| 16691 | {32 * 1024, 1}, |
| 16692 | {8 * 1024, 2}, |
| 16693 | {16 * 1024, 1}, |
| 16694 | }, |
| 16695 | .block_erase = erase_sector_jedec, |
| 16696 | }, { |
| 16697 | .eraseblocks = { {256 * 1024, 1} }, |
| 16698 | .block_erase = erase_chip_block_jedec, |
| 16699 | }, |
| 16700 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16701 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16702 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16703 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16704 | }, |
| 16705 | |
| 16706 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16707 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16708 | .name = "W25P16", |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 16709 | .bustype = BUS_SPI, |
| 16710 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16711 | .model_id = WINBOND_NEX_W25P16, |
| 16712 | .total_size = 2048, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 16713 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16714 | .feature_bits = FEATURE_WRSR_WREN, |
| 16715 | .tested = TEST_UNTESTED, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 16716 | .probe = probe_spi_rdid, |
| 16717 | .probe_timing = TIMING_ZERO, |
| 16718 | .block_erasers = |
| 16719 | { |
| 16720 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16721 | .eraseblocks = { {64 * 1024, 32} }, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 16722 | .block_erase = spi_block_erase_d8, |
| 16723 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16724 | .eraseblocks = { {2048 * 1024, 1} }, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 16725 | .block_erase = spi_block_erase_c7, |
| 16726 | } |
| 16727 | }, |
| 16728 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16729 | .unlock = spi_disable_blockprotect, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16730 | .write = spi_chip_write_256, |
| 16731 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 16732 | .voltage = {2700, 3600}, |
| 16733 | }, |
| 16734 | |
| 16735 | { |
| 16736 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16737 | .name = "W25P32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16738 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 16739 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16740 | .model_id = WINBOND_NEX_W25P32, |
| 16741 | .total_size = 4096, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 16742 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16743 | .feature_bits = FEATURE_WRSR_WREN, |
| 16744 | .tested = TEST_UNTESTED, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 16745 | .probe = probe_spi_rdid, |
| 16746 | .probe_timing = TIMING_ZERO, |
| 16747 | .block_erasers = |
| 16748 | { |
| 16749 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16750 | .eraseblocks = { {64 * 1024, 64} }, |
| 16751 | .block_erase = spi_block_erase_d8, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 16752 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16753 | .eraseblocks = { {4096 * 1024, 1} }, |
| 16754 | .block_erase = spi_block_erase_c7, |
| 16755 | } |
| 16756 | }, |
| 16757 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16758 | .unlock = spi_disable_blockprotect, |
| 16759 | .write = spi_chip_write_256, |
| 16760 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 16761 | .voltage = {2700, 3600}, |
| 16762 | }, |
| 16763 | |
| 16764 | { |
| 16765 | .vendor = "Winbond", |
| 16766 | .name = "W25P80", |
| 16767 | .bustype = BUS_SPI, |
| 16768 | .manufacture_id = WINBOND_NEX_ID, |
| 16769 | .model_id = WINBOND_NEX_W25P80, |
| 16770 | .total_size = 1024, |
| 16771 | .page_size = 256, |
| 16772 | .feature_bits = FEATURE_WRSR_WREN, |
| 16773 | .tested = TEST_UNTESTED, |
| 16774 | .probe = probe_spi_rdid, |
| 16775 | .probe_timing = TIMING_ZERO, |
| 16776 | .block_erasers = |
| 16777 | { |
| 16778 | { |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 16779 | .eraseblocks = { {64 * 1024, 16} }, |
| 16780 | .block_erase = spi_block_erase_d8, |
| 16781 | }, { |
| 16782 | .eraseblocks = { {1024 * 1024, 1} }, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 16783 | .block_erase = spi_block_erase_c7, |
| 16784 | } |
| 16785 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 16786 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 16787 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 16788 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16789 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16790 | .voltage = {2700, 3600}, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 16791 | }, |
| 16792 | |
| 16793 | { |
| 16794 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16795 | .name = "W25Q128.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16796 | .bustype = BUS_SPI, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 16797 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16798 | .model_id = WINBOND_NEX_W25Q128_V, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 16799 | .total_size = 16384, |
| 16800 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16801 | /* supports SFDP */ |
| 16802 | /* 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] | 16803 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 16804 | .tested = TEST_OK_PREW, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 16805 | .probe = probe_spi_rdid, |
| 16806 | .probe_timing = TIMING_ZERO, |
| 16807 | .block_erasers = |
| 16808 | { |
| 16809 | { |
| 16810 | .eraseblocks = { {4 * 1024, 4096} }, |
| 16811 | .block_erase = spi_block_erase_20, |
| 16812 | }, { |
| 16813 | .eraseblocks = { {32 * 1024, 512} }, |
| 16814 | .block_erase = spi_block_erase_52, |
| 16815 | }, { |
| 16816 | .eraseblocks = { {64 * 1024, 256} }, |
| 16817 | .block_erase = spi_block_erase_d8, |
| 16818 | }, { |
| 16819 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 16820 | .block_erase = spi_block_erase_60, |
| 16821 | }, { |
| 16822 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 16823 | .block_erase = spi_block_erase_c7, |
| 16824 | } |
| 16825 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 16826 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 16827 | .unlock = spi_disable_blockprotect, |
| 16828 | .write = spi_chip_write_256, |
| 16829 | .read = spi_chip_read, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16830 | .voltage = {2700, 3600}, |
| 16831 | }, |
| 16832 | |
| 16833 | { |
| 16834 | .vendor = "Winbond", |
Patrick Rudolph | 3432349 | 2018-10-04 14:59:40 +0200 | [diff] [blame] | 16835 | .name = "W25Q128.V..M", |
| 16836 | .bustype = BUS_SPI, |
| 16837 | .manufacture_id = WINBOND_NEX_ID, |
| 16838 | .model_id = WINBOND_NEX_W25Q128_V_M, |
| 16839 | .total_size = 16384, |
| 16840 | .page_size = 256, |
| 16841 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 16842 | .tested = TEST_OK_PREW, |
| 16843 | .probe = probe_spi_rdid, |
| 16844 | .probe_timing = TIMING_ZERO, |
| 16845 | .block_erasers = |
| 16846 | { |
| 16847 | { |
| 16848 | .eraseblocks = { {4 * 1024, 4096} }, |
| 16849 | .block_erase = spi_block_erase_20, |
| 16850 | }, { |
| 16851 | .eraseblocks = { {32 * 1024, 512} }, |
| 16852 | .block_erase = spi_block_erase_52, |
| 16853 | }, { |
| 16854 | .eraseblocks = { {64 * 1024, 256} }, |
| 16855 | .block_erase = spi_block_erase_d8, |
| 16856 | }, { |
| 16857 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 16858 | .block_erase = spi_block_erase_60, |
| 16859 | }, { |
| 16860 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 16861 | .block_erase = spi_block_erase_c7, |
| 16862 | } |
| 16863 | }, |
Alan Green | a1fc01d | 2019-09-23 17:12:44 +1000 | [diff] [blame] | 16864 | .printlock = spi_prettyprint_status_register_plain, |
Patrick Rudolph | 3432349 | 2018-10-04 14:59:40 +0200 | [diff] [blame] | 16865 | .unlock = spi_disable_blockprotect, |
| 16866 | .write = spi_chip_write_256, |
| 16867 | .read = spi_chip_read, |
| 16868 | .voltage = {2700, 3600}, |
| 16869 | }, |
| 16870 | |
| 16871 | { |
| 16872 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16873 | .name = "W25Q128.W", |
| 16874 | .bustype = BUS_SPI, |
| 16875 | .manufacture_id = WINBOND_NEX_ID, |
| 16876 | .model_id = WINBOND_NEX_W25Q128_W, |
| 16877 | .total_size = 16384, |
| 16878 | .page_size = 256, |
| 16879 | /* supports SFDP */ |
| 16880 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16881 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 16882 | .tested = TEST_OK_PREW, |
| 16883 | .probe = probe_spi_rdid, |
| 16884 | .probe_timing = TIMING_ZERO, |
| 16885 | .block_erasers = |
| 16886 | { |
| 16887 | { |
| 16888 | .eraseblocks = { {4 * 1024, 4096} }, |
| 16889 | .block_erase = spi_block_erase_20, |
| 16890 | }, { |
| 16891 | .eraseblocks = { {32 * 1024, 512} }, |
| 16892 | .block_erase = spi_block_erase_52, |
| 16893 | }, { |
| 16894 | .eraseblocks = { {64 * 1024, 256} }, |
| 16895 | .block_erase = spi_block_erase_d8, |
| 16896 | }, { |
| 16897 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 16898 | .block_erase = spi_block_erase_60, |
| 16899 | }, { |
| 16900 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 16901 | .block_erase = spi_block_erase_c7, |
| 16902 | } |
| 16903 | }, |
| 16904 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16905 | .unlock = spi_disable_blockprotect, |
| 16906 | .write = spi_chip_write_256, |
| 16907 | .read = spi_chip_read, |
| 16908 | .voltage = {1650, 1950}, |
| 16909 | }, |
| 16910 | |
| 16911 | { |
| 16912 | .vendor = "Winbond", |
Peichao Wang | 1a11949 | 2019-11-11 15:26:41 +0800 | [diff] [blame] | 16913 | .name = "W25Q128.JW.DTR", |
| 16914 | .bustype = BUS_SPI, |
| 16915 | .manufacture_id = WINBOND_NEX_ID, |
| 16916 | .model_id = WINBOND_NEX_W25Q128_DTR, |
| 16917 | .total_size = 16384, |
| 16918 | .page_size = 256, |
| 16919 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 16920 | .tested = TEST_OK_PREW, |
| 16921 | .probe = probe_spi_rdid, |
| 16922 | .probe_timing = TIMING_ZERO, |
| 16923 | .block_erasers = |
| 16924 | { |
| 16925 | { |
| 16926 | .eraseblocks = { {4 * 1024, 4096} }, |
| 16927 | .block_erase = spi_block_erase_20, |
| 16928 | }, { |
| 16929 | .eraseblocks = { {32 * 1024, 512} }, |
| 16930 | .block_erase = spi_block_erase_52, |
| 16931 | }, { |
| 16932 | .eraseblocks = { {64 * 1024, 256} }, |
| 16933 | .block_erase = spi_block_erase_d8, |
| 16934 | }, { |
| 16935 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 16936 | .block_erase = spi_block_erase_60, |
| 16937 | }, { |
| 16938 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 16939 | .block_erase = spi_block_erase_c7, |
| 16940 | } |
| 16941 | }, |
| 16942 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16943 | .unlock = spi_disable_blockprotect, |
| 16944 | .write = spi_chip_write_256, |
| 16945 | .read = spi_chip_read, |
| 16946 | .voltage = {1650, 1950}, |
| 16947 | }, |
| 16948 | |
| 16949 | { |
| 16950 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16951 | .name = "W25Q16.V", |
| 16952 | .bustype = BUS_SPI, |
| 16953 | .manufacture_id = WINBOND_NEX_ID, |
| 16954 | .model_id = WINBOND_NEX_W25Q16_V, |
| 16955 | .total_size = 2048, |
| 16956 | .page_size = 256, |
| 16957 | /* supports SFDP */ |
| 16958 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16959 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16960 | .tested = TEST_OK_PREW, |
| 16961 | .probe = probe_spi_rdid, |
| 16962 | .probe_timing = TIMING_ZERO, |
| 16963 | .block_erasers = |
| 16964 | { |
| 16965 | { |
| 16966 | .eraseblocks = { {4 * 1024, 512} }, |
| 16967 | .block_erase = spi_block_erase_20, |
| 16968 | }, { |
| 16969 | .eraseblocks = { {32 * 1024, 64} }, |
| 16970 | .block_erase = spi_block_erase_52, |
| 16971 | }, { |
| 16972 | .eraseblocks = { {64 * 1024, 32} }, |
| 16973 | .block_erase = spi_block_erase_d8, |
| 16974 | }, { |
| 16975 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 16976 | .block_erase = spi_block_erase_60, |
| 16977 | }, { |
| 16978 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 16979 | .block_erase = spi_block_erase_c7, |
| 16980 | } |
| 16981 | }, |
| 16982 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16983 | .unlock = spi_disable_blockprotect, |
| 16984 | .write = spi_chip_write_256, |
| 16985 | .read = spi_chip_read, |
| 16986 | .voltage = {2700, 3600}, |
| 16987 | }, |
| 16988 | |
| 16989 | { |
| 16990 | .vendor = "Winbond", |
| 16991 | .name = "W25Q16.W", |
| 16992 | .bustype = BUS_SPI, |
| 16993 | .manufacture_id = WINBOND_NEX_ID, |
| 16994 | .model_id = WINBOND_NEX_W25Q16_W, |
| 16995 | .total_size = 2048, |
| 16996 | .page_size = 256, |
| 16997 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16998 | /* QPI enable 0x38, disable 0xFF */ |
| 16999 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 17000 | .tested = TEST_UNTESTED, |
| 17001 | .probe = probe_spi_rdid, |
| 17002 | .probe_timing = TIMING_ZERO, |
| 17003 | .block_erasers = |
| 17004 | { |
| 17005 | { |
| 17006 | .eraseblocks = { {4 * 1024, 512} }, |
| 17007 | .block_erase = spi_block_erase_20, |
| 17008 | }, { |
| 17009 | .eraseblocks = { {32 * 1024, 64} }, |
| 17010 | .block_erase = spi_block_erase_52, |
| 17011 | }, { |
| 17012 | .eraseblocks = { {64 * 1024, 32} }, |
| 17013 | .block_erase = spi_block_erase_d8, |
| 17014 | }, { |
| 17015 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 17016 | .block_erase = spi_block_erase_60, |
| 17017 | }, { |
| 17018 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 17019 | .block_erase = spi_block_erase_c7, |
| 17020 | } |
| 17021 | }, |
| 17022 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17023 | .unlock = spi_disable_blockprotect, |
| 17024 | .write = spi_chip_write_256, |
| 17025 | .read = spi_chip_read, |
| 17026 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 17027 | }, |
| 17028 | |
| 17029 | { |
| 17030 | .vendor = "Winbond", |
| 17031 | .name = "W25Q20.W", |
| 17032 | .bustype = BUS_SPI, |
| 17033 | .manufacture_id = WINBOND_NEX_ID, |
| 17034 | .model_id = WINBOND_NEX_W25Q20_W, |
| 17035 | .total_size = 256, |
| 17036 | .page_size = 256, |
| 17037 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 17038 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 17039 | .tested = TEST_UNTESTED, |
| 17040 | .probe = probe_spi_rdid, |
| 17041 | .probe_timing = TIMING_ZERO, |
| 17042 | .block_erasers = |
| 17043 | { |
| 17044 | { |
| 17045 | .eraseblocks = { {4 * 1024, 64} }, |
| 17046 | .block_erase = spi_block_erase_20, |
| 17047 | }, { |
| 17048 | .eraseblocks = { {32 * 1024, 8} }, |
| 17049 | .block_erase = spi_block_erase_52, |
| 17050 | }, { |
| 17051 | .eraseblocks = { {64 * 1024, 4} }, |
| 17052 | .block_erase = spi_block_erase_d8, |
| 17053 | }, { |
| 17054 | .eraseblocks = { {256 * 1024, 1} }, |
| 17055 | .block_erase = spi_block_erase_60, |
| 17056 | }, { |
| 17057 | .eraseblocks = { {256 * 1024, 1} }, |
| 17058 | .block_erase = spi_block_erase_c7, |
| 17059 | } |
| 17060 | }, |
| 17061 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17062 | .unlock = spi_disable_blockprotect, |
| 17063 | .write = spi_chip_write_256, |
| 17064 | .read = spi_chip_read, |
| 17065 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 17066 | }, |
| 17067 | |
| 17068 | { |
| 17069 | .vendor = "Winbond", |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 17070 | .name = "W25Q256.V", |
| 17071 | .bustype = BUS_SPI, |
| 17072 | .manufacture_id = WINBOND_NEX_ID, |
| 17073 | .model_id = WINBOND_NEX_W25Q256_V, |
| 17074 | .total_size = 32768, |
| 17075 | .page_size = 256, |
| 17076 | /* supports SFDP */ |
| 17077 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 17078 | /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */ |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 17079 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN |
| 17080 | | FEATURE_4BA_EXT_ADDR | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ, |
Angel Pons | 3130cbd | 2018-09-30 19:32:30 +0200 | [diff] [blame] | 17081 | .tested = TEST_OK_PREW, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 17082 | .probe = probe_spi_rdid, |
| 17083 | .probe_timing = TIMING_ZERO, |
| 17084 | .block_erasers = |
| 17085 | { |
| 17086 | { |
| 17087 | .eraseblocks = { {4 * 1024, 8192} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 17088 | .block_erase = spi_block_erase_20, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 17089 | }, { |
| 17090 | .eraseblocks = { {32 * 1024, 1024} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 17091 | .block_erase = spi_block_erase_52, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 17092 | }, { |
| 17093 | .eraseblocks = { {64 * 1024, 512} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 17094 | .block_erase = spi_block_erase_d8, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 17095 | }, { |
| 17096 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 17097 | .block_erase = spi_block_erase_60, |
| 17098 | }, { |
| 17099 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 17100 | .block_erase = spi_block_erase_c7, |
| 17101 | } |
| 17102 | }, |
| 17103 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17104 | .unlock = spi_disable_blockprotect, |
| 17105 | .write = spi_chip_write_256, |
| 17106 | .read = spi_chip_read, |
| 17107 | .voltage = {2700, 3600}, |
| 17108 | }, |
| 17109 | |
| 17110 | { |
| 17111 | .vendor = "Winbond", |
David Hendricks | 4987679 | 2018-10-27 20:19:42 +0000 | [diff] [blame] | 17112 | .name = "W25Q256JV_M", |
| 17113 | .bustype = BUS_SPI, |
| 17114 | .manufacture_id = WINBOND_NEX_ID, |
| 17115 | .model_id = WINBOND_NEX_W25Q256JV_M, |
| 17116 | .total_size = 32768, |
| 17117 | .page_size = 256, |
| 17118 | /* supports SFDP */ |
| 17119 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 17120 | /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */ |
| 17121 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
| 17122 | .tested = TEST_OK_PREW, |
| 17123 | .probe = probe_spi_rdid, |
| 17124 | .probe_timing = TIMING_ZERO, |
| 17125 | .block_erasers = |
| 17126 | { |
| 17127 | { |
| 17128 | .eraseblocks = { {4 * 1024, 8192} }, |
| 17129 | .block_erase = spi_block_erase_21, |
| 17130 | }, { |
| 17131 | .eraseblocks = { {4 * 1024, 8192} }, |
| 17132 | .block_erase = spi_block_erase_20, |
| 17133 | }, { |
| 17134 | .eraseblocks = { {32 * 1024, 1024} }, |
| 17135 | .block_erase = spi_block_erase_52, |
| 17136 | }, { |
| 17137 | .eraseblocks = { {64 * 1024, 512} }, |
| 17138 | .block_erase = spi_block_erase_dc, |
| 17139 | }, { |
| 17140 | .eraseblocks = { {64 * 1024, 512} }, |
| 17141 | .block_erase = spi_block_erase_d8, |
| 17142 | }, { |
| 17143 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 17144 | .block_erase = spi_block_erase_60, |
| 17145 | }, { |
| 17146 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 17147 | .block_erase = spi_block_erase_c7, |
| 17148 | } |
| 17149 | }, |
| 17150 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17151 | .unlock = spi_disable_blockprotect, |
| 17152 | .write = spi_chip_write_256, |
| 17153 | .read = spi_chip_read, |
| 17154 | .voltage = {2700, 3600}, |
| 17155 | }, |
| 17156 | |
| 17157 | { |
| 17158 | .vendor = "Winbond", |
el-coderon | 0120985 | 2020-04-29 12:12:53 +0200 | [diff] [blame] | 17159 | .name = "W25Q256.W", |
| 17160 | .bustype = BUS_SPI, |
| 17161 | .manufacture_id = WINBOND_NEX_ID, |
| 17162 | .model_id = WINBOND_NEX_W25Q256_W, |
| 17163 | .total_size = 32768, |
| 17164 | .page_size = 256, |
| 17165 | /* supports SFDP */ |
| 17166 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 17167 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN |
| 17168 | | FEATURE_4BA_EXT_ADDR | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ, |
| 17169 | .tested = TEST_OK_PREW, |
| 17170 | .probe = probe_spi_rdid, |
| 17171 | .probe_timing = TIMING_ZERO, |
| 17172 | .block_erasers = |
| 17173 | { |
| 17174 | { |
| 17175 | .eraseblocks = { {4 * 1024, 8192} }, |
| 17176 | .block_erase = spi_block_erase_20, |
| 17177 | }, { |
| 17178 | .eraseblocks = { {32 * 1024, 1024} }, |
| 17179 | .block_erase = spi_block_erase_52, |
| 17180 | }, { |
| 17181 | .eraseblocks = { {64 * 1024, 512} }, |
| 17182 | .block_erase = spi_block_erase_d8, |
| 17183 | }, { |
| 17184 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 17185 | .block_erase = spi_block_erase_60, |
| 17186 | }, { |
| 17187 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 17188 | .block_erase = spi_block_erase_c7, |
| 17189 | } |
| 17190 | }, |
| 17191 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17192 | .unlock = spi_disable_blockprotect, |
| 17193 | .write = spi_chip_write_256, |
| 17194 | .read = spi_chip_read, |
| 17195 | .voltage = {1650, 1950}, |
| 17196 | }, |
| 17197 | |
| 17198 | { |
| 17199 | .vendor = "Winbond", |
David Hendricks | 3153260 | 2020-08-16 17:14:56 -0700 | [diff] [blame] | 17200 | .name = "W25Q256JW_DTR", |
| 17201 | .bustype = BUS_SPI, |
| 17202 | .manufacture_id = WINBOND_NEX_ID, |
| 17203 | .model_id = WINBOND_NEX_W25Q256_DTR, |
| 17204 | .total_size = 32768, |
| 17205 | .page_size = 256, |
| 17206 | /* supports SFDP */ |
| 17207 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 17208 | /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */ |
| 17209 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
| 17210 | .tested = TEST_OK_PREW, |
| 17211 | .probe = probe_spi_rdid, |
| 17212 | .probe_timing = TIMING_ZERO, |
| 17213 | .block_erasers = |
| 17214 | { |
| 17215 | { |
| 17216 | .eraseblocks = { {4 * 1024, 8192} }, |
| 17217 | .block_erase = spi_block_erase_21, |
| 17218 | }, { |
| 17219 | .eraseblocks = { {4 * 1024, 8192} }, |
| 17220 | .block_erase = spi_block_erase_20, |
| 17221 | }, { |
| 17222 | .eraseblocks = { {32 * 1024, 1024} }, |
| 17223 | .block_erase = spi_block_erase_52, |
| 17224 | }, { |
| 17225 | .eraseblocks = { {64 * 1024, 512} }, |
| 17226 | .block_erase = spi_block_erase_dc, |
| 17227 | }, { |
| 17228 | .eraseblocks = { {64 * 1024, 512} }, |
| 17229 | .block_erase = spi_block_erase_d8, |
| 17230 | }, { |
| 17231 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 17232 | .block_erase = spi_block_erase_60, |
| 17233 | }, { |
| 17234 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 17235 | .block_erase = spi_block_erase_c7, |
| 17236 | } |
| 17237 | }, |
| 17238 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17239 | .unlock = spi_disable_blockprotect, |
| 17240 | .write = spi_chip_write_256, |
| 17241 | .read = spi_chip_read, |
| 17242 | .voltage = {1700, 1950}, |
| 17243 | }, |
| 17244 | |
| 17245 | { |
| 17246 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17247 | .name = "W25Q32.V", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17248 | .bustype = BUS_SPI, |
| 17249 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17250 | .model_id = WINBOND_NEX_W25Q32_V, |
| 17251 | .total_size = 4096, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17252 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17253 | /* supports SFDP */ |
| 17254 | /* 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] | 17255 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17256 | .tested = TEST_OK_PREW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17257 | .probe = probe_spi_rdid, |
| 17258 | .probe_timing = TIMING_ZERO, |
| 17259 | .block_erasers = |
| 17260 | { |
| 17261 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17262 | .eraseblocks = { {4 * 1024, 1024} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17263 | .block_erase = spi_block_erase_20, |
| 17264 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17265 | .eraseblocks = { {32 * 1024, 128} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17266 | .block_erase = spi_block_erase_52, |
| 17267 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17268 | .eraseblocks = { {64 * 1024, 64} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17269 | .block_erase = spi_block_erase_d8, |
| 17270 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17271 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17272 | .block_erase = spi_block_erase_60, |
| 17273 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17274 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 17275 | .block_erase = spi_block_erase_c7, |
| 17276 | } |
| 17277 | }, |
| 17278 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17279 | .unlock = spi_disable_blockprotect, |
| 17280 | .write = spi_chip_write_256, |
| 17281 | .read = spi_chip_read, |
| 17282 | .voltage = {2700, 3600}, |
| 17283 | }, |
| 17284 | |
| 17285 | { |
| 17286 | .vendor = "Winbond", |
| 17287 | .name = "W25Q32.W", |
| 17288 | .bustype = BUS_SPI, |
| 17289 | .manufacture_id = WINBOND_NEX_ID, |
| 17290 | .model_id = WINBOND_NEX_W25Q32_W, |
| 17291 | .total_size = 4096, |
| 17292 | .page_size = 256, |
| 17293 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 17294 | /* QPI enable 0x38, disable 0xFF */ |
| 17295 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 17296 | .tested = TEST_OK_PREW, |
| 17297 | .probe = probe_spi_rdid, |
| 17298 | .probe_timing = TIMING_ZERO, |
| 17299 | .block_erasers = |
| 17300 | { |
| 17301 | { |
| 17302 | .eraseblocks = { {4 * 1024, 1024} }, |
| 17303 | .block_erase = spi_block_erase_20, |
| 17304 | }, { |
| 17305 | .eraseblocks = { {32 * 1024, 128} }, |
| 17306 | .block_erase = spi_block_erase_52, |
| 17307 | }, { |
| 17308 | .eraseblocks = { {64 * 1024, 64} }, |
| 17309 | .block_erase = spi_block_erase_d8, |
| 17310 | }, { |
| 17311 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 17312 | .block_erase = spi_block_erase_60, |
| 17313 | }, { |
| 17314 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17315 | .block_erase = spi_block_erase_c7, |
| 17316 | } |
| 17317 | }, |
| 17318 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17319 | .unlock = spi_disable_blockprotect, |
| 17320 | .write = spi_chip_write_256, |
| 17321 | .read = spi_chip_read, |
| 17322 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 17323 | }, |
| 17324 | |
| 17325 | { |
| 17326 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17327 | .name = "W25Q40.V", |
| 17328 | .bustype = BUS_SPI, |
| 17329 | .manufacture_id = WINBOND_NEX_ID, |
| 17330 | .model_id = WINBOND_NEX_W25Q40_V, |
| 17331 | .total_size = 512, |
| 17332 | .page_size = 256, |
| 17333 | /* supports SFDP */ |
| 17334 | /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 17335 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 17336 | .tested = TEST_OK_PREW, |
| 17337 | .probe = probe_spi_rdid, |
| 17338 | .probe_timing = TIMING_ZERO, |
| 17339 | .block_erasers = |
| 17340 | { |
| 17341 | { |
| 17342 | .eraseblocks = { {4 * 1024, 128} }, |
| 17343 | .block_erase = spi_block_erase_20, |
| 17344 | }, { |
| 17345 | .eraseblocks = { {32 * 1024, 16} }, |
| 17346 | .block_erase = spi_block_erase_52, |
| 17347 | }, { |
| 17348 | .eraseblocks = { {64 * 1024, 8} }, |
| 17349 | .block_erase = spi_block_erase_d8, |
| 17350 | }, { |
| 17351 | .eraseblocks = { {512 * 1024, 1} }, |
| 17352 | .block_erase = spi_block_erase_60, |
| 17353 | }, { |
| 17354 | .eraseblocks = { {512 * 1024, 1} }, |
| 17355 | .block_erase = spi_block_erase_c7, |
| 17356 | } |
| 17357 | }, |
| 17358 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17359 | .unlock = spi_disable_blockprotect, |
| 17360 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 17361 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 17362 | .voltage = {2700, 3600}, |
| 17363 | }, |
| 17364 | |
| 17365 | { |
| 17366 | .vendor = "Winbond", |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 17367 | .name = "W25Q40BW", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17368 | .bustype = BUS_SPI, |
| 17369 | .manufacture_id = WINBOND_NEX_ID, |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 17370 | .model_id = WINBOND_NEX_W25Q40BW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17371 | .total_size = 512, |
| 17372 | .page_size = 256, |
| 17373 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 17374 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Angel Pons | 3164a0c | 2018-09-30 20:26:06 +0200 | [diff] [blame] | 17375 | .tested = TEST_OK_PREW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17376 | .probe = probe_spi_rdid, |
| 17377 | .probe_timing = TIMING_ZERO, |
| 17378 | .block_erasers = |
| 17379 | { |
| 17380 | { |
| 17381 | .eraseblocks = { {4 * 1024, 128} }, |
| 17382 | .block_erase = spi_block_erase_20, |
| 17383 | }, { |
| 17384 | .eraseblocks = { {32 * 1024, 16} }, |
| 17385 | .block_erase = spi_block_erase_52, |
| 17386 | }, { |
| 17387 | .eraseblocks = { {64 * 1024, 8} }, |
| 17388 | .block_erase = spi_block_erase_d8, |
| 17389 | }, { |
| 17390 | .eraseblocks = { {512 * 1024, 1} }, |
| 17391 | .block_erase = spi_block_erase_60, |
| 17392 | }, { |
| 17393 | .eraseblocks = { {512 * 1024, 1} }, |
| 17394 | .block_erase = spi_block_erase_c7, |
| 17395 | } |
| 17396 | }, |
| 17397 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17398 | .unlock = spi_disable_blockprotect, |
| 17399 | .write = spi_chip_write_256, |
| 17400 | .read = spi_chip_read, |
| 17401 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 17402 | }, |
| 17403 | |
| 17404 | { |
| 17405 | .vendor = "Winbond", |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 17406 | .name = "W25Q40EW", |
| 17407 | .bustype = BUS_SPI, |
| 17408 | .manufacture_id = WINBOND_NEX_ID, |
| 17409 | .model_id = WINBOND_NEX_W25Q40EW, |
| 17410 | .total_size = 512, |
| 17411 | .page_size = 256, |
| 17412 | /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 17413 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Alan Green | 07b8a17 | 2019-09-23 16:47:05 +1000 | [diff] [blame] | 17414 | .tested = TEST_OK_PREW, |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 17415 | .probe = probe_spi_rdid, |
| 17416 | .probe_timing = TIMING_ZERO, |
| 17417 | .block_erasers = |
| 17418 | { |
| 17419 | { |
| 17420 | .eraseblocks = { {4 * 1024, 128} }, |
| 17421 | .block_erase = spi_block_erase_20, |
| 17422 | }, { |
| 17423 | .eraseblocks = { {32 * 1024, 16} }, |
| 17424 | .block_erase = spi_block_erase_52, |
| 17425 | }, { |
| 17426 | .eraseblocks = { {64 * 1024, 8} }, |
| 17427 | .block_erase = spi_block_erase_d8, |
| 17428 | }, { |
| 17429 | .eraseblocks = { {512 * 1024, 1} }, |
| 17430 | .block_erase = spi_block_erase_60, |
| 17431 | }, { |
| 17432 | .eraseblocks = { {512 * 1024, 1} }, |
| 17433 | .block_erase = spi_block_erase_c7, |
| 17434 | } |
| 17435 | }, |
| 17436 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17437 | .unlock = spi_disable_blockprotect, |
| 17438 | .write = spi_chip_write_256, |
| 17439 | .read = spi_chip_read, |
| 17440 | .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 17441 | }, |
| 17442 | |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 17443 | { |
| 17444 | .vendor = "Winbond", |
Joel Stanley | 5543961 | 2019-07-27 19:25:35 +0930 | [diff] [blame] | 17445 | .name = "W25Q512JV", |
| 17446 | .bustype = BUS_SPI, |
| 17447 | .manufacture_id = WINBOND_NEX_ID, |
| 17448 | .model_id = WINBOND_NEX_W25Q512JV, |
| 17449 | .total_size = 64 * 1024, |
| 17450 | .page_size = 256, |
| 17451 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
| 17452 | .tested = TEST_OK_PREW, |
| 17453 | .probe = probe_spi_rdid, |
| 17454 | .probe_timing = TIMING_ZERO, |
| 17455 | .block_erasers = |
| 17456 | { |
| 17457 | { |
| 17458 | .eraseblocks = { {4 * 1024, 16384} }, |
| 17459 | .block_erase = spi_block_erase_21, |
| 17460 | }, { |
| 17461 | .eraseblocks = { {4 * 1024, 16384} }, |
| 17462 | .block_erase = spi_block_erase_20, |
| 17463 | }, { |
| 17464 | .eraseblocks = { {32 * 1024, 2048} }, |
| 17465 | .block_erase = spi_block_erase_52, |
| 17466 | }, { |
| 17467 | .eraseblocks = { {64 * 1024, 1024} }, |
| 17468 | .block_erase = spi_block_erase_dc, |
| 17469 | }, { |
| 17470 | .eraseblocks = { {64 * 1024, 1024} }, |
| 17471 | .block_erase = spi_block_erase_d8, |
| 17472 | }, { |
| 17473 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 17474 | .block_erase = spi_block_erase_60, |
| 17475 | }, { |
| 17476 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 17477 | .block_erase = spi_block_erase_c7, |
| 17478 | } |
| 17479 | }, |
| 17480 | .printlock = spi_prettyprint_status_register_plain, |
| 17481 | .unlock = spi_disable_blockprotect, |
| 17482 | .write = spi_chip_write_256, |
| 17483 | .read = spi_chip_read, |
| 17484 | .voltage = {2700, 3600}, |
| 17485 | }, |
| 17486 | |
| 17487 | { |
| 17488 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17489 | .name = "W25Q64.V", |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 17490 | .bustype = BUS_SPI, |
| 17491 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17492 | .model_id = WINBOND_NEX_W25Q64_V, |
| 17493 | .total_size = 8192, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 17494 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17495 | /* supports SFDP */ |
| 17496 | /* 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] | 17497 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 17498 | .tested = TEST_OK_PREW, |
| 17499 | .probe = probe_spi_rdid, |
| 17500 | .probe_timing = TIMING_ZERO, |
| 17501 | .block_erasers = |
| 17502 | { |
| 17503 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17504 | .eraseblocks = { {4 * 1024, 2048} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 17505 | .block_erase = spi_block_erase_20, |
| 17506 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17507 | .eraseblocks = { {32 * 1024, 256} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 17508 | .block_erase = spi_block_erase_52, |
| 17509 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17510 | .eraseblocks = { {64 * 1024, 128} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 17511 | .block_erase = spi_block_erase_d8, |
| 17512 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17513 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 17514 | .block_erase = spi_block_erase_60, |
| 17515 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17516 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 17517 | .block_erase = spi_block_erase_c7, |
| 17518 | } |
| 17519 | }, |
| 17520 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17521 | .unlock = spi_disable_blockprotect, |
| 17522 | .write = spi_chip_write_256, |
| 17523 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17524 | .voltage = {2700, 3600}, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17525 | }, |
| 17526 | |
| 17527 | { |
| 17528 | .vendor = "Winbond", |
| 17529 | .name = "W25Q64.W", |
| 17530 | .bustype = BUS_SPI, |
| 17531 | .manufacture_id = WINBOND_NEX_ID, |
| 17532 | .model_id = WINBOND_NEX_W25Q64_W, |
| 17533 | .total_size = 8192, |
| 17534 | .page_size = 256, |
| 17535 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 17536 | /* QPI enable 0x38, disable 0xFF */ |
| 17537 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 17538 | .tested = TEST_OK_PREW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17539 | .probe = probe_spi_rdid, |
| 17540 | .probe_timing = TIMING_ZERO, |
| 17541 | .block_erasers = |
| 17542 | { |
| 17543 | { |
| 17544 | .eraseblocks = { {4 * 1024, 2048} }, |
| 17545 | .block_erase = spi_block_erase_20, |
| 17546 | }, { |
| 17547 | .eraseblocks = { {32 * 1024, 256} }, |
| 17548 | .block_erase = spi_block_erase_52, |
| 17549 | }, { |
| 17550 | .eraseblocks = { {64 * 1024, 128} }, |
| 17551 | .block_erase = spi_block_erase_d8, |
| 17552 | }, { |
| 17553 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 17554 | .block_erase = spi_block_erase_60, |
| 17555 | }, { |
| 17556 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 17557 | .block_erase = spi_block_erase_c7, |
| 17558 | } |
| 17559 | }, |
| 17560 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17561 | .unlock = spi_disable_blockprotect, |
| 17562 | .write = spi_chip_write_256, |
| 17563 | .read = spi_chip_read, |
| 17564 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 17565 | }, |
| 17566 | |
| 17567 | { |
| 17568 | .vendor = "Winbond", |
Scott Chao | 1bbc501 | 2020-04-08 22:10:50 +0800 | [diff] [blame] | 17569 | .name = "W25Q64JW", |
| 17570 | .bustype = BUS_SPI, |
| 17571 | .manufacture_id = WINBOND_NEX_ID, |
| 17572 | .model_id = WINBOND_NEX_W25Q64JW, |
| 17573 | .total_size = 8192, |
| 17574 | .page_size = 256, |
| 17575 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 17576 | /* QPI enable 0x38, disable 0xFF */ |
| 17577 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 17578 | .tested = TEST_OK_PREW, |
| 17579 | .probe = probe_spi_rdid, |
| 17580 | .probe_timing = TIMING_ZERO, |
| 17581 | .block_erasers = |
| 17582 | { |
| 17583 | { |
| 17584 | .eraseblocks = { {4 * 1024, 2048} }, |
| 17585 | .block_erase = spi_block_erase_20, |
| 17586 | }, { |
| 17587 | .eraseblocks = { {32 * 1024, 256} }, |
| 17588 | .block_erase = spi_block_erase_52, |
| 17589 | }, { |
| 17590 | .eraseblocks = { {64 * 1024, 128} }, |
| 17591 | .block_erase = spi_block_erase_d8, |
| 17592 | }, { |
| 17593 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 17594 | .block_erase = spi_block_erase_60, |
| 17595 | }, { |
| 17596 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 17597 | .block_erase = spi_block_erase_c7, |
| 17598 | } |
| 17599 | }, |
| 17600 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17601 | .unlock = spi_disable_blockprotect, |
| 17602 | .write = spi_chip_write_256, |
| 17603 | .read = spi_chip_read, |
| 17604 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 17605 | }, |
| 17606 | |
| 17607 | { |
| 17608 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17609 | .name = "W25Q80.V", |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 17610 | .bustype = BUS_SPI, |
| 17611 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17612 | .model_id = WINBOND_NEX_W25Q80_V, |
| 17613 | .total_size = 1024, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 17614 | .page_size = 256, |
| 17615 | /* supports SFDP */ |
| 17616 | /* 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] | 17617 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 48729d3 | 2017-12-08 14:44:07 -0800 | [diff] [blame] | 17618 | .tested = TEST_OK_PREW, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 17619 | .probe = probe_spi_rdid, |
| 17620 | .probe_timing = TIMING_ZERO, |
| 17621 | .block_erasers = |
| 17622 | { |
| 17623 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17624 | .eraseblocks = { {4 * 1024, 256} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 17625 | .block_erase = spi_block_erase_20, |
| 17626 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17627 | .eraseblocks = { {32 * 1024, 32} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 17628 | .block_erase = spi_block_erase_52, |
| 17629 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17630 | .eraseblocks = { {64 * 1024, 16} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 17631 | .block_erase = spi_block_erase_d8, |
| 17632 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17633 | .eraseblocks = { {1024 * 1024, 1} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 17634 | .block_erase = spi_block_erase_60, |
| 17635 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17636 | .eraseblocks = { {1024 * 1024, 1} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 17637 | .block_erase = spi_block_erase_c7, |
| 17638 | } |
| 17639 | }, |
| 17640 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17641 | .unlock = spi_disable_blockprotect, |
| 17642 | .write = spi_chip_write_256, |
| 17643 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17644 | .voltage = {2700, 3600}, |
| 17645 | }, |
| 17646 | |
| 17647 | { |
| 17648 | .vendor = "Winbond", |
| 17649 | .name = "W25Q80BW", |
| 17650 | .bustype = BUS_SPI, |
| 17651 | .manufacture_id = WINBOND_NEX_ID, |
| 17652 | .model_id = WINBOND_NEX_W25Q80BW, |
| 17653 | .total_size = 1024, |
| 17654 | .page_size = 256, |
| 17655 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 17656 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 17657 | .tested = TEST_OK_PREW, |
| 17658 | .probe = probe_spi_rdid, |
| 17659 | .probe_timing = TIMING_ZERO, |
| 17660 | .block_erasers = |
| 17661 | { |
| 17662 | { |
| 17663 | .eraseblocks = { {4 * 1024, 256} }, |
| 17664 | .block_erase = spi_block_erase_20, |
| 17665 | }, { |
| 17666 | .eraseblocks = { {32 * 1024, 32} }, |
| 17667 | .block_erase = spi_block_erase_52, |
| 17668 | }, { |
| 17669 | .eraseblocks = { {64 * 1024, 16} }, |
| 17670 | .block_erase = spi_block_erase_d8, |
| 17671 | }, { |
| 17672 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 17673 | .block_erase = spi_block_erase_60, |
| 17674 | }, { |
| 17675 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 17676 | .block_erase = spi_block_erase_c7, |
| 17677 | } |
| 17678 | }, |
| 17679 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17680 | .unlock = spi_disable_blockprotect, |
| 17681 | .write = spi_chip_write_256, |
| 17682 | .read = spi_chip_read, |
| 17683 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 17684 | }, |
| 17685 | |
| 17686 | { |
| 17687 | .vendor = "Winbond", |
| 17688 | .name = "W25Q80EW", |
| 17689 | .bustype = BUS_SPI, |
| 17690 | .manufacture_id = WINBOND_NEX_ID, |
| 17691 | .model_id = WINBOND_NEX_W25Q80EW, |
| 17692 | .total_size = 1024, |
| 17693 | .page_size = 256, |
| 17694 | /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 17695 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 17696 | .tested = TEST_OK_PREW, |
| 17697 | .probe = probe_spi_rdid, |
| 17698 | .probe_timing = TIMING_ZERO, |
| 17699 | .block_erasers = |
| 17700 | { |
| 17701 | { |
| 17702 | .eraseblocks = { {4 * 1024, 256} }, |
| 17703 | .block_erase = spi_block_erase_20, |
| 17704 | }, { |
| 17705 | .eraseblocks = { {32 * 1024, 32} }, |
| 17706 | .block_erase = spi_block_erase_52, |
| 17707 | }, { |
| 17708 | .eraseblocks = { {64 * 1024, 16} }, |
| 17709 | .block_erase = spi_block_erase_d8, |
| 17710 | }, { |
| 17711 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 17712 | .block_erase = spi_block_erase_60, |
| 17713 | }, { |
| 17714 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 17715 | .block_erase = spi_block_erase_c7, |
| 17716 | } |
| 17717 | }, |
| 17718 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17719 | .unlock = spi_disable_blockprotect, |
| 17720 | .write = spi_chip_write_256, |
| 17721 | .read = spi_chip_read, |
| 17722 | .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 17723 | }, |
| 17724 | |
| 17725 | { |
| 17726 | .vendor = "Winbond", |
Jacob Appelbaum | ebbdc02 | 2019-09-02 09:10:43 -0400 | [diff] [blame] | 17727 | .name = "W25X05", |
| 17728 | .bustype = BUS_SPI, |
| 17729 | .manufacture_id = WINBOND_NEX_ID, |
| 17730 | .model_id = WINBOND_NEX_W25X05, |
| 17731 | .total_size = 64, |
| 17732 | .page_size = 256, |
| 17733 | .feature_bits = FEATURE_WRSR_WREN, |
| 17734 | .tested = TEST_OK_PREW, |
| 17735 | .probe = probe_spi_rdid, |
| 17736 | .probe_timing = TIMING_ZERO, |
| 17737 | .block_erasers = |
| 17738 | { |
| 17739 | { |
| 17740 | .eraseblocks = { {4 * 1024, 16} }, |
| 17741 | .block_erase = spi_block_erase_20, |
| 17742 | }, { |
| 17743 | .eraseblocks = { {32 * 1024, 2} }, |
| 17744 | .block_erase = spi_block_erase_52, |
| 17745 | }, { |
| 17746 | .eraseblocks = { {64 * 1024, 1} }, |
| 17747 | .block_erase = spi_block_erase_d8, |
| 17748 | } |
| 17749 | }, |
| 17750 | .printlock = spi_prettyprint_status_register_plain, |
| 17751 | .unlock = spi_disable_blockprotect, |
| 17752 | .write = spi_chip_write_256, |
| 17753 | .read = spi_chip_read, |
| 17754 | .voltage = {2300, 3600}, |
| 17755 | }, |
| 17756 | |
| 17757 | { |
| 17758 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 17759 | .name = "W25X10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17760 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17761 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17762 | .model_id = WINBOND_NEX_W25X10, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17763 | .total_size = 128, |
| 17764 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 17765 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 17766 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17767 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 17768 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17769 | .block_erasers = |
| 17770 | { |
| 17771 | { |
| 17772 | .eraseblocks = { {4 * 1024, 32} }, |
| 17773 | .block_erase = spi_block_erase_20, |
| 17774 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17775 | .eraseblocks = { {64 * 1024, 2} }, |
| 17776 | .block_erase = spi_block_erase_d8, |
| 17777 | }, { |
| 17778 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17779 | .block_erase = spi_block_erase_c7, |
| 17780 | } |
| 17781 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 17782 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 17783 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 17784 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17785 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17786 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17787 | }, |
| 17788 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17789 | { |
| 17790 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 17791 | .name = "W25X16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17792 | .bustype = BUS_SPI, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 17793 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17794 | .model_id = WINBOND_NEX_W25X16, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 17795 | .total_size = 2048, |
| 17796 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 17797 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 17798 | .tested = TEST_OK_PREW, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 17799 | .probe = probe_spi_rdid, |
| 17800 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17801 | .block_erasers = |
| 17802 | { |
| 17803 | { |
| 17804 | .eraseblocks = { {4 * 1024, 512} }, |
| 17805 | .block_erase = spi_block_erase_20, |
| 17806 | }, { |
| 17807 | .eraseblocks = { {32 * 1024, 64} }, |
| 17808 | .block_erase = spi_block_erase_52, |
| 17809 | }, { |
| 17810 | .eraseblocks = { {64 * 1024, 32} }, |
| 17811 | .block_erase = spi_block_erase_d8, |
| 17812 | }, { |
| 17813 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 17814 | .block_erase = spi_block_erase_60, |
| 17815 | }, { |
| 17816 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 17817 | .block_erase = spi_block_erase_c7, |
| 17818 | } |
| 17819 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 17820 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 17821 | .unlock = spi_disable_blockprotect, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 17822 | .write = spi_chip_write_256, |
| 17823 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17824 | .voltage = {2700, 3600}, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 17825 | }, |
| 17826 | |
| 17827 | { |
| 17828 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17829 | .name = "W25X20", |
| 17830 | .bustype = BUS_SPI, |
| 17831 | .manufacture_id = WINBOND_NEX_ID, |
| 17832 | .model_id = WINBOND_NEX_W25X20, |
| 17833 | .total_size = 256, |
| 17834 | .page_size = 256, |
| 17835 | .feature_bits = FEATURE_WRSR_WREN, |
| 17836 | .tested = TEST_OK_PREW, |
| 17837 | .probe = probe_spi_rdid, |
| 17838 | .probe_timing = TIMING_ZERO, |
| 17839 | .block_erasers = |
| 17840 | { |
| 17841 | { |
| 17842 | .eraseblocks = { {4 * 1024, 64} }, |
| 17843 | .block_erase = spi_block_erase_20, |
| 17844 | }, { |
| 17845 | .eraseblocks = { {64 * 1024, 4} }, |
| 17846 | .block_erase = spi_block_erase_d8, |
| 17847 | }, { |
| 17848 | .eraseblocks = { {256 * 1024, 1} }, |
| 17849 | .block_erase = spi_block_erase_c7, |
| 17850 | } |
| 17851 | }, |
| 17852 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17853 | .unlock = spi_disable_blockprotect, |
| 17854 | .write = spi_chip_write_256, |
| 17855 | .read = spi_chip_read, |
| 17856 | .voltage = {2700, 3600}, |
| 17857 | }, |
| 17858 | |
| 17859 | { |
| 17860 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 17861 | .name = "W25X32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17862 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17863 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17864 | .model_id = WINBOND_NEX_W25X32, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17865 | .total_size = 4096, |
| 17866 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 17867 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 17868 | .tested = TEST_OK_PREW, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17869 | .probe = probe_spi_rdid, |
| 17870 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17871 | .block_erasers = |
| 17872 | { |
| 17873 | { |
| 17874 | .eraseblocks = { {4 * 1024, 1024} }, |
| 17875 | .block_erase = spi_block_erase_20, |
| 17876 | }, { |
| 17877 | .eraseblocks = { {32 * 1024, 128} }, |
| 17878 | .block_erase = spi_block_erase_52, |
| 17879 | }, { |
| 17880 | .eraseblocks = { {64 * 1024, 64} }, |
| 17881 | .block_erase = spi_block_erase_d8, |
| 17882 | }, { |
| 17883 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 17884 | .block_erase = spi_block_erase_60, |
| 17885 | }, { |
| 17886 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 17887 | .block_erase = spi_block_erase_c7, |
| 17888 | } |
| 17889 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 17890 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 17891 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17892 | .write = spi_chip_write_256, |
| 17893 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17894 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17895 | }, |
| 17896 | |
| 17897 | { |
| 17898 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17899 | .name = "W25X40", |
| 17900 | .bustype = BUS_SPI, |
| 17901 | .manufacture_id = WINBOND_NEX_ID, |
| 17902 | .model_id = WINBOND_NEX_W25X40, |
| 17903 | .total_size = 512, |
| 17904 | .page_size = 256, |
| 17905 | .feature_bits = FEATURE_WRSR_WREN, |
| 17906 | .tested = TEST_OK_PREW, |
| 17907 | .probe = probe_spi_rdid, |
| 17908 | .probe_timing = TIMING_ZERO, |
| 17909 | .block_erasers = |
| 17910 | { |
| 17911 | { |
| 17912 | .eraseblocks = { {4 * 1024, 128} }, |
| 17913 | .block_erase = spi_block_erase_20, |
| 17914 | }, { |
| 17915 | .eraseblocks = { {64 * 1024, 8} }, |
| 17916 | .block_erase = spi_block_erase_d8, |
| 17917 | }, { |
| 17918 | .eraseblocks = { {512 * 1024, 1} }, |
| 17919 | .block_erase = spi_block_erase_c7, |
| 17920 | } |
| 17921 | }, |
| 17922 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17923 | .unlock = spi_disable_blockprotect, |
| 17924 | .write = spi_chip_write_256, |
| 17925 | .read = spi_chip_read, |
| 17926 | .voltage = {2700, 3600}, |
| 17927 | }, |
| 17928 | |
| 17929 | { |
| 17930 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 17931 | .name = "W25X64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17932 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17933 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17934 | .model_id = WINBOND_NEX_W25X64, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17935 | .total_size = 8192, |
| 17936 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 17937 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 17938 | .tested = TEST_OK_PREW, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17939 | .probe = probe_spi_rdid, |
| 17940 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17941 | .block_erasers = |
| 17942 | { |
| 17943 | { |
| 17944 | .eraseblocks = { {4 * 1024, 2048} }, |
| 17945 | .block_erase = spi_block_erase_20, |
| 17946 | }, { |
| 17947 | .eraseblocks = { {32 * 1024, 256} }, |
| 17948 | .block_erase = spi_block_erase_52, |
| 17949 | }, { |
| 17950 | .eraseblocks = { {64 * 1024, 128} }, |
| 17951 | .block_erase = spi_block_erase_d8, |
| 17952 | }, { |
| 17953 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 17954 | .block_erase = spi_block_erase_60, |
| 17955 | }, { |
| 17956 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 17957 | .block_erase = spi_block_erase_c7, |
| 17958 | } |
| 17959 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 17960 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 17961 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17962 | .write = spi_chip_write_256, |
| 17963 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17964 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17965 | }, |
| 17966 | |
| 17967 | { |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 17968 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17969 | .name = "W25X80", |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 17970 | .bustype = BUS_SPI, |
| 17971 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17972 | .model_id = WINBOND_NEX_W25X80, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 17973 | .total_size = 1024, |
| 17974 | .page_size = 256, |
| 17975 | .feature_bits = FEATURE_WRSR_WREN, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17976 | .tested = TEST_OK_PREW, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 17977 | .probe = probe_spi_rdid, |
| 17978 | .probe_timing = TIMING_ZERO, |
| 17979 | .block_erasers = |
David Hendricks | c9ee0ed | 2018-02-11 17:40:53 -0800 | [diff] [blame] | 17980 | { |
| 17981 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17982 | .eraseblocks = { {4 * 1024, 256} }, |
| 17983 | .block_erase = spi_block_erase_20, |
| 17984 | }, { |
David Hendricks | c9ee0ed | 2018-02-11 17:40:53 -0800 | [diff] [blame] | 17985 | .eraseblocks = { {64 * 1024, 16} }, |
| 17986 | .block_erase = spi_block_erase_d8, |
| 17987 | }, { |
| 17988 | .eraseblocks = { {1024 * 1024, 1} }, |
| 17989 | .block_erase = spi_block_erase_c7, |
| 17990 | } |
| 17991 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 17992 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17993 | .unlock = spi_disable_blockprotect, |
| 17994 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17995 | .read = spi_chip_read, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 17996 | .voltage = {2700, 3600}, |
David Hendricks | c9ee0ed | 2018-02-11 17:40:53 -0800 | [diff] [blame] | 17997 | }, |
| 17998 | |
Alan Green | f29ea36 | 2019-06-27 17:14:02 +1000 | [diff] [blame] | 17999 | /* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */ |
| 18000 | { |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 18001 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18002 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18003 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18004 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18005 | .model_id = WINBOND_W29C010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18006 | .total_size = 128, |
| 18007 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18008 | .feature_bits = FEATURE_LONG_RESET, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 18009 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18010 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 18011 | .probe_timing = 10, /* used datasheet for the W29C011A */ |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 18012 | .block_erasers = |
| 18013 | { |
| 18014 | { |
| 18015 | .eraseblocks = { {128 * 1024, 1} }, |
| 18016 | .block_erase = erase_chip_block_jedec, |
| 18017 | } |
| 18018 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18019 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18020 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18021 | }, |
| 18022 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18023 | { |
| 18024 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18025 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old", |
| 18026 | .bustype = BUS_PARALLEL, |
| 18027 | .manufacture_id = WINBOND_ID, |
| 18028 | .model_id = WINBOND_W29C010, |
| 18029 | .total_size = 128, |
| 18030 | .page_size = 128, |
| 18031 | .feature_bits = FEATURE_LONG_RESET, |
| 18032 | .tested = TEST_OK_PREW, |
| 18033 | .probe = probe_w29ee011, |
| 18034 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */ |
| 18035 | .block_erasers = |
| 18036 | { |
| 18037 | { |
| 18038 | .eraseblocks = { {128 * 1024, 1} }, |
| 18039 | .block_erase = erase_chip_block_jedec, |
| 18040 | } |
| 18041 | }, |
| 18042 | .write = write_jedec, |
| 18043 | .read = read_memmapped, |
| 18044 | }, |
| 18045 | |
| 18046 | { |
| 18047 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18048 | .name = "W29C020(C)/W29C022", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18049 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18050 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18051 | .model_id = WINBOND_W29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18052 | .total_size = 256, |
| 18053 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18054 | .feature_bits = FEATURE_LONG_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 18055 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18056 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 18057 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 18058 | .block_erasers = |
| 18059 | { |
| 18060 | { |
| 18061 | .eraseblocks = { {256 * 1024, 1} }, |
| 18062 | .block_erase = erase_chip_block_jedec, |
| 18063 | } |
| 18064 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18065 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18066 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 18067 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18068 | }, |
| 18069 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18070 | { |
| 18071 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18072 | .name = "W29C040/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18073 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18074 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18075 | .model_id = WINBOND_W29C040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18076 | .total_size = 512, |
| 18077 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18078 | .feature_bits = FEATURE_LONG_RESET, |
| 18079 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18080 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 18081 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 18082 | .block_erasers = |
| 18083 | { |
| 18084 | { |
| 18085 | .eraseblocks = { {512 * 1024, 1} }, |
| 18086 | .block_erase = erase_chip_block_jedec, |
| 18087 | } |
| 18088 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18089 | .write = write_jedec, |
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 = {4500, 5500}, |
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", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18096 | .name = "W29C512A/W29EE512", |
| 18097 | .bustype = BUS_PARALLEL, |
| 18098 | .manufacture_id = WINBOND_ID, |
| 18099 | .model_id = WINBOND_W29C512A, |
| 18100 | .total_size = 64, |
| 18101 | .page_size = 128, |
| 18102 | .feature_bits = FEATURE_LONG_RESET, |
| 18103 | .tested = TEST_OK_PREW, |
| 18104 | .probe = probe_jedec, |
| 18105 | .probe_timing = 10, |
| 18106 | .block_erasers = |
| 18107 | { |
| 18108 | { |
| 18109 | .eraseblocks = { {64 * 1024, 1} }, |
| 18110 | .block_erase = erase_chip_block_jedec, |
| 18111 | } |
| 18112 | }, |
| 18113 | .write = write_jedec, |
| 18114 | .read = read_memmapped, |
| 18115 | .voltage = {4500, 5500}, |
| 18116 | }, |
| 18117 | |
| 18118 | { |
| 18119 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 18120 | .name = "W29GL032CB", |
| 18121 | .bustype = BUS_PARALLEL, |
| 18122 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 18123 | .model_id = WINBOND_W29GL032CB, |
| 18124 | .total_size = 4096, |
| 18125 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 18126 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 18127 | .tested = TEST_UNTESTED, |
| 18128 | .probe = probe_jedec_29gl, |
| 18129 | .probe_timing = TIMING_ZERO, |
| 18130 | .block_erasers = |
| 18131 | { |
| 18132 | { |
| 18133 | .eraseblocks = { |
| 18134 | {8 * 1024, 8}, |
| 18135 | {64 * 1024, 63}, |
| 18136 | }, |
| 18137 | .block_erase = erase_sector_jedec, |
| 18138 | }, { |
| 18139 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18140 | .block_erase = erase_chip_block_jedec, |
| 18141 | }, |
| 18142 | }, |
| 18143 | .write = write_jedec_1, |
| 18144 | .read = read_memmapped, |
| 18145 | .voltage = {2700, 3600}, |
| 18146 | }, |
| 18147 | |
| 18148 | { |
| 18149 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18150 | .name = "W29GL032CH/L", |
| 18151 | .bustype = BUS_PARALLEL, |
| 18152 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 18153 | .model_id = WINBOND_W29GL032CHL, |
| 18154 | .total_size = 4096, |
| 18155 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 18156 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 18157 | .tested = TEST_UNTESTED, |
| 18158 | .probe = probe_jedec_29gl, |
| 18159 | .probe_timing = TIMING_ZERO, |
| 18160 | .block_erasers = |
| 18161 | { |
| 18162 | { |
| 18163 | .eraseblocks = { {64 * 1024, 64} }, |
| 18164 | .block_erase = erase_sector_jedec, |
| 18165 | }, { |
| 18166 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18167 | .block_erase = erase_chip_block_jedec, |
| 18168 | }, |
| 18169 | }, |
| 18170 | .write = write_jedec_1, |
| 18171 | .read = read_memmapped, |
| 18172 | .voltage = {2700, 3600}, |
| 18173 | }, |
| 18174 | |
| 18175 | { |
| 18176 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 18177 | .name = "W29GL032CT", |
| 18178 | .bustype = BUS_PARALLEL, |
| 18179 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 18180 | .model_id = WINBOND_W29GL032CT, |
| 18181 | .total_size = 4096, |
| 18182 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 18183 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 18184 | .tested = TEST_UNTESTED, |
| 18185 | .probe = probe_jedec_29gl, |
| 18186 | .probe_timing = TIMING_ZERO, |
| 18187 | .block_erasers = |
| 18188 | { |
| 18189 | { |
| 18190 | .eraseblocks = { |
| 18191 | {64 * 1024, 63}, |
| 18192 | {8 * 1024, 8}, |
| 18193 | }, |
| 18194 | .block_erase = erase_sector_jedec, |
| 18195 | }, { |
| 18196 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18197 | .block_erase = erase_chip_block_jedec, |
| 18198 | }, |
| 18199 | }, |
| 18200 | .write = write_jedec_1, |
| 18201 | .read = read_memmapped, |
| 18202 | .voltage = {2700, 3600}, |
| 18203 | }, |
| 18204 | |
| 18205 | { |
| 18206 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 18207 | .name = "W29GL064CB", |
| 18208 | .bustype = BUS_PARALLEL, |
| 18209 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 18210 | .model_id = WINBOND_W29GL064CB, |
| 18211 | .total_size = 8192, |
| 18212 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 18213 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 18214 | .tested = TEST_UNTESTED, |
| 18215 | .probe = probe_jedec_29gl, |
| 18216 | .probe_timing = TIMING_ZERO, |
| 18217 | .block_erasers = |
| 18218 | { |
| 18219 | { |
| 18220 | .eraseblocks = { |
| 18221 | {8 * 1024, 8}, |
| 18222 | {64 * 1024, 127}, |
| 18223 | }, |
| 18224 | .block_erase = erase_sector_jedec, |
| 18225 | }, { |
| 18226 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 18227 | .block_erase = erase_chip_block_jedec, |
| 18228 | }, |
| 18229 | }, |
| 18230 | .write = write_jedec_1, |
| 18231 | .read = read_memmapped, |
| 18232 | .voltage = {2700, 3600}, |
| 18233 | }, |
| 18234 | |
| 18235 | { |
| 18236 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18237 | .name = "W29GL064CH/L", |
| 18238 | .bustype = BUS_PARALLEL, |
| 18239 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 18240 | .model_id = WINBOND_W29GL064CHL, |
| 18241 | .total_size = 8192, |
| 18242 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 18243 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 18244 | .tested = TEST_UNTESTED, |
| 18245 | .probe = probe_jedec_29gl, |
| 18246 | .probe_timing = TIMING_ZERO, |
| 18247 | .block_erasers = |
| 18248 | { |
| 18249 | { |
| 18250 | .eraseblocks = { {64 * 1024, 128} }, |
| 18251 | .block_erase = erase_sector_jedec, |
| 18252 | }, { |
| 18253 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 18254 | .block_erase = erase_chip_block_jedec, |
| 18255 | }, |
| 18256 | }, |
| 18257 | .write = write_jedec_1, |
| 18258 | .read = read_memmapped, |
| 18259 | .voltage = {2700, 3600}, |
| 18260 | }, |
| 18261 | |
| 18262 | { |
| 18263 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 18264 | .name = "W29GL064CT", |
| 18265 | .bustype = BUS_PARALLEL, |
| 18266 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 18267 | .model_id = WINBOND_W29GL064CT, |
| 18268 | .total_size = 8192, |
| 18269 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 18270 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 18271 | .tested = TEST_UNTESTED, |
| 18272 | .probe = probe_jedec_29gl, |
| 18273 | .probe_timing = TIMING_ZERO, |
| 18274 | .block_erasers = |
| 18275 | { |
| 18276 | { |
| 18277 | .eraseblocks = { |
| 18278 | {64 * 1024, 127}, |
| 18279 | {8 * 1024, 8}, |
| 18280 | }, |
| 18281 | .block_erase = erase_sector_jedec, |
| 18282 | }, { |
| 18283 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 18284 | .block_erase = erase_chip_block_jedec, |
| 18285 | }, |
| 18286 | }, |
| 18287 | .write = write_jedec_1, |
| 18288 | .read = read_memmapped, |
| 18289 | .voltage = {2700, 3600}, |
| 18290 | }, |
| 18291 | |
| 18292 | { |
| 18293 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 18294 | .name = "W29GL128C", |
| 18295 | .bustype = BUS_PARALLEL, |
| 18296 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 18297 | .model_id = WINBOND_W29GL128CHL, |
| 18298 | .total_size = 16384, |
| 18299 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 18300 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 18301 | .tested = TEST_UNTESTED, |
| 18302 | .probe = probe_jedec_29gl, |
| 18303 | .probe_timing = TIMING_ZERO, |
| 18304 | .block_erasers = |
| 18305 | { |
| 18306 | { |
| 18307 | .eraseblocks = { {128 * 1024, 128} }, |
| 18308 | .block_erase = erase_sector_jedec, |
| 18309 | }, { |
| 18310 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 18311 | .block_erase = erase_chip_block_jedec, |
| 18312 | }, |
| 18313 | }, |
| 18314 | .write = write_jedec_1, |
| 18315 | .read = read_memmapped, |
| 18316 | .voltage = {2700, 3600}, |
| 18317 | }, |
| 18318 | |
| 18319 | { |
| 18320 | .vendor = "Winbond", |
Kyösti Mälkki | c31243e | 2012-10-28 01:50:08 +0000 | [diff] [blame] | 18321 | .name = "W39F010", |
| 18322 | .bustype = BUS_PARALLEL, |
| 18323 | .manufacture_id = WINBOND_ID, |
| 18324 | .model_id = WINBOND_W39F010, |
| 18325 | .total_size = 128, |
| 18326 | .page_size = 4 * 1024, |
| 18327 | .feature_bits = FEATURE_EITHER_RESET, |
| 18328 | .tested = TEST_OK_PREW, |
| 18329 | .probe = probe_jedec, |
| 18330 | .probe_timing = 10, |
| 18331 | .block_erasers = |
| 18332 | { |
| 18333 | { |
| 18334 | .eraseblocks = { {4 * 1024, 32} }, |
| 18335 | .block_erase = erase_block_jedec, |
| 18336 | }, { |
| 18337 | .eraseblocks = { {128 * 1024, 1} }, |
| 18338 | .block_erase = erase_chip_block_jedec, |
| 18339 | } |
| 18340 | }, |
| 18341 | .printlock = printlock_w39f010, |
| 18342 | .write = write_jedec_1, |
| 18343 | .read = read_memmapped, |
| 18344 | .voltage = {4500, 5500}, |
| 18345 | }, |
| 18346 | |
| 18347 | { |
| 18348 | .vendor = "Winbond", |
| 18349 | .name = "W39L010", |
| 18350 | .bustype = BUS_PARALLEL, |
| 18351 | .manufacture_id = WINBOND_ID, |
| 18352 | .model_id = WINBOND_W39L010, |
| 18353 | .total_size = 128, |
| 18354 | .page_size = 4 * 1024, |
| 18355 | .feature_bits = FEATURE_EITHER_RESET, |
| 18356 | .tested = TEST_UNTESTED, |
| 18357 | .probe = probe_jedec, |
| 18358 | .probe_timing = 10, |
| 18359 | .block_erasers = |
| 18360 | { |
| 18361 | { |
| 18362 | .eraseblocks = { {4 * 1024, 32} }, |
| 18363 | .block_erase = erase_block_jedec, |
| 18364 | }, { |
| 18365 | .eraseblocks = { {128 * 1024, 1} }, |
| 18366 | .block_erase = erase_chip_block_jedec, |
| 18367 | } |
| 18368 | }, |
| 18369 | .printlock = printlock_w39l010, |
| 18370 | .write = write_jedec_1, |
| 18371 | .read = read_memmapped, |
| 18372 | .voltage = {3000, 3600}, |
| 18373 | }, |
| 18374 | |
| 18375 | { |
| 18376 | .vendor = "Winbond", |
| 18377 | .name = "W39L020", |
| 18378 | .bustype = BUS_PARALLEL, |
| 18379 | .manufacture_id = WINBOND_ID, |
| 18380 | .model_id = WINBOND_W39L020, |
| 18381 | .total_size = 256, |
| 18382 | .page_size = 4 * 1024, |
| 18383 | .feature_bits = FEATURE_EITHER_RESET, |
| 18384 | .tested = TEST_UNTESTED, |
| 18385 | .probe = probe_jedec, |
| 18386 | .probe_timing = 10, |
| 18387 | .block_erasers = |
| 18388 | { |
| 18389 | { |
| 18390 | .eraseblocks = { {4 * 1024, 64} }, |
| 18391 | .block_erase = erase_block_jedec, |
| 18392 | }, { |
| 18393 | .eraseblocks = { {64 * 1024, 4} }, |
| 18394 | .block_erase = erase_sector_jedec, |
| 18395 | }, { |
| 18396 | .eraseblocks = { {256 * 1024, 1} }, |
| 18397 | .block_erase = erase_chip_block_jedec, |
| 18398 | } |
| 18399 | }, |
| 18400 | .printlock = printlock_w39l020, |
| 18401 | .write = write_jedec_1, |
| 18402 | .read = read_memmapped, |
| 18403 | .voltage = {3000, 3600}, |
| 18404 | }, |
| 18405 | |
| 18406 | { |
| 18407 | .vendor = "Winbond", |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 18408 | .name = "W39L040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18409 | .bustype = BUS_PARALLEL, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 18410 | .manufacture_id = WINBOND_ID, |
| 18411 | .model_id = WINBOND_W39L040, |
| 18412 | .total_size = 512, |
| 18413 | .page_size = 64 * 1024, |
| 18414 | .feature_bits = FEATURE_EITHER_RESET, |
| 18415 | .tested = TEST_OK_PR, |
| 18416 | .probe = probe_jedec, |
| 18417 | .probe_timing = 10, |
| 18418 | .block_erasers = |
| 18419 | { |
| 18420 | { |
| 18421 | .eraseblocks = { {4 * 1024, 128} }, |
| 18422 | .block_erase = erase_block_jedec, |
| 18423 | }, { |
| 18424 | .eraseblocks = { {64 * 1024, 8} }, |
| 18425 | .block_erase = erase_sector_jedec, |
| 18426 | }, { |
| 18427 | .eraseblocks = { {512 * 1024, 1} }, |
| 18428 | .block_erase = erase_chip_block_jedec, |
| 18429 | } |
| 18430 | }, |
| 18431 | .printlock = printlock_w39l040, |
| 18432 | .write = write_jedec_1, |
| 18433 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 18434 | .voltage = {3000, 3600}, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 18435 | }, |
| 18436 | |
| 18437 | { |
| 18438 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18439 | .name = "W39V040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18440 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18441 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18442 | .model_id = WINBOND_W39V040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18443 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 18444 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18445 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 18446 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18447 | .probe = probe_jedec, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 18448 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 18449 | .block_erasers = |
| 18450 | { |
| 18451 | { |
| 18452 | .eraseblocks = { {64 * 1024, 8} }, |
| 18453 | .block_erase = erase_sector_jedec, |
| 18454 | }, { |
| 18455 | .eraseblocks = { {512 * 1024, 1} }, |
| 18456 | .block_erase = erase_chip_block_jedec, |
| 18457 | } |
| 18458 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 18459 | .printlock = printlock_w39v040a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18460 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18461 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 18462 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18463 | }, |
| 18464 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18465 | { |
| 18466 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 18467 | .name = "W39V040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18468 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18469 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18470 | .model_id = WINBOND_W39V040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18471 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 18472 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18473 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 18474 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18475 | .probe = probe_jedec, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 18476 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 18477 | .block_erasers = |
| 18478 | { |
| 18479 | { |
| 18480 | .eraseblocks = { {64 * 1024, 8} }, |
| 18481 | .block_erase = erase_sector_jedec, |
| 18482 | }, { |
| 18483 | .eraseblocks = { {512 * 1024, 1} }, |
| 18484 | .block_erase = erase_chip_block_jedec, |
| 18485 | } |
| 18486 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 18487 | .printlock = printlock_w39v040b, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18488 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18489 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 18490 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18491 | }, |
| 18492 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18493 | { |
| 18494 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 18495 | .name = "W39V040C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18496 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18497 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18498 | .model_id = WINBOND_W39V040C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18499 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 18500 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18501 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 18502 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18503 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 18504 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 18505 | .block_erasers = |
| 18506 | { |
| 18507 | { |
| 18508 | .eraseblocks = { {64 * 1024, 8} }, |
| 18509 | .block_erase = erase_sector_jedec, |
| 18510 | }, { |
| 18511 | .eraseblocks = { {512 * 1024, 1} }, |
| 18512 | .block_erase = erase_chip_block_jedec, |
| 18513 | } |
| 18514 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 18515 | .printlock = printlock_w39v040c, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18516 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18517 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 18518 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18519 | }, |
| 18520 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18521 | { |
| 18522 | .vendor = "Winbond", |
| 18523 | .name = "W39V040FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18524 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18525 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18526 | .model_id = WINBOND_W39V040FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18527 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 18528 | .page_size = 64 * 1024, |
Michael Karcher | c9b6341 | 2010-05-30 16:55:18 +0000 | [diff] [blame] | 18529 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 18530 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18531 | .probe = probe_jedec, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 18532 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 18533 | .block_erasers = |
| 18534 | { |
| 18535 | { |
| 18536 | .eraseblocks = { {4 * 1024, 128} }, |
| 18537 | .block_erase = erase_block_jedec, |
| 18538 | }, { |
| 18539 | .eraseblocks = { {64 * 1024, 8} }, |
| 18540 | .block_erase = erase_sector_jedec, |
| 18541 | }, { |
| 18542 | .eraseblocks = { {512 * 1024, 1} }, |
| 18543 | .block_erase = erase_chip_block_jedec, |
| 18544 | } |
| 18545 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 18546 | .printlock = printlock_w39v040fa, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 18547 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18548 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18549 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 18550 | .voltage = {3000, 3600}, |
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 = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 18555 | .name = "W39V040FB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18556 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 18557 | .manufacture_id = WINBOND_ID, |
| 18558 | .model_id = WINBOND_W39V040B, |
| 18559 | .total_size = 512, |
| 18560 | .page_size = 64 * 1024, |
| 18561 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 18562 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 18563 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 18564 | .probe_timing = 10, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 18565 | .block_erasers = |
| 18566 | { |
| 18567 | { |
| 18568 | .eraseblocks = { {64 * 1024, 8} }, |
| 18569 | .block_erase = erase_sector_jedec, |
| 18570 | }, { |
| 18571 | .eraseblocks = { {512 * 1024, 1} }, |
| 18572 | .block_erase = erase_chip_block_jedec, |
| 18573 | } |
| 18574 | }, |
| 18575 | .printlock = printlock_w39v040fb, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 18576 | .unlock = unlock_regspace2_uniform_64k, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 18577 | .write = write_jedec_1, |
| 18578 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 18579 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 18580 | }, |
| 18581 | |
| 18582 | { |
| 18583 | .vendor = "Winbond", |
| 18584 | .name = "W39V040FC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18585 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 18586 | .manufacture_id = WINBOND_ID, |
| 18587 | .model_id = WINBOND_W39V040C, |
| 18588 | .total_size = 512, |
| 18589 | .page_size = 64 * 1024, |
| 18590 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 18591 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 18592 | .probe = probe_jedec, |
| 18593 | .probe_timing = 10, |
| 18594 | .block_erasers = |
| 18595 | { |
| 18596 | { |
| 18597 | .eraseblocks = { {64 * 1024, 8} }, |
| 18598 | .block_erase = erase_sector_jedec, |
| 18599 | }, { |
| 18600 | .eraseblocks = { {512 * 1024, 1} }, |
| 18601 | .block_erase = erase_chip_block_jedec, |
| 18602 | } |
| 18603 | }, |
| 18604 | .printlock = printlock_w39v040fc, |
| 18605 | .write = write_jedec_1, |
| 18606 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 18607 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 18608 | }, |
| 18609 | |
| 18610 | { |
| 18611 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18612 | .name = "W39V080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18613 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18614 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18615 | .model_id = WINBOND_W39V080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18616 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 18617 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18618 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 18619 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18620 | .probe = probe_jedec, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 18621 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 18622 | .block_erasers = |
| 18623 | { |
| 18624 | { |
| 18625 | .eraseblocks = { {64 * 1024, 16} }, |
| 18626 | .block_erase = erase_sector_jedec, |
| 18627 | }, { |
| 18628 | .eraseblocks = { {1024 * 1024, 1} }, |
| 18629 | .block_erase = erase_chip_block_jedec, |
| 18630 | } |
| 18631 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 18632 | .printlock = printlock_w39v080a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18633 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18634 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 18635 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18636 | }, |
| 18637 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18638 | { |
| 18639 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18640 | .name = "W39V080FA", |
| 18641 | .bustype = BUS_FWH, |
| 18642 | .manufacture_id = WINBOND_ID, |
| 18643 | .model_id = WINBOND_W39V080FA, |
| 18644 | .total_size = 1024, |
| 18645 | .page_size = 64 * 1024, |
| 18646 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
| 18647 | .tested = TEST_OK_PREW, |
| 18648 | .probe = probe_jedec, |
| 18649 | .probe_timing = 10, |
| 18650 | .block_erasers = |
| 18651 | { |
| 18652 | { |
| 18653 | .eraseblocks = { {64 * 1024, 16} }, |
| 18654 | .block_erase = erase_sector_jedec, |
| 18655 | }, { |
| 18656 | .eraseblocks = { {1024 * 1024, 1} }, |
| 18657 | .block_erase = erase_chip_block_jedec, |
| 18658 | } |
| 18659 | }, |
| 18660 | .printlock = printlock_w39v080fa, |
| 18661 | .unlock = unlock_regspace2_uniform_64k, |
| 18662 | .write = write_jedec_1, |
| 18663 | .read = read_memmapped, |
| 18664 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
| 18665 | }, |
| 18666 | |
| 18667 | { |
| 18668 | .vendor = "Winbond", |
| 18669 | .name = "W39V080FA (dual mode)", |
| 18670 | .bustype = BUS_FWH, |
| 18671 | .manufacture_id = WINBOND_ID, |
| 18672 | .model_id = WINBOND_W39V080FA_DM, |
| 18673 | .total_size = 512, |
| 18674 | .page_size = 64 * 1024, |
| 18675 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
| 18676 | .tested = TEST_UNTESTED, |
| 18677 | .probe = probe_jedec, |
| 18678 | .probe_timing = 10, |
| 18679 | .block_erasers = |
| 18680 | { |
| 18681 | { |
| 18682 | .eraseblocks = { {64 * 1024, 8} }, |
| 18683 | .block_erase = erase_sector_jedec, |
| 18684 | }, { |
| 18685 | .eraseblocks = { {512 * 1024, 1} }, |
| 18686 | .block_erase = erase_chip_block_jedec, |
| 18687 | } |
| 18688 | }, |
| 18689 | .printlock = printlock_w39v080fa_dual, |
| 18690 | .write = write_jedec_1, |
| 18691 | .read = read_memmapped, |
| 18692 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
| 18693 | }, |
| 18694 | |
| 18695 | { |
| 18696 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18697 | .name = "W49F002U/N", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18698 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18699 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18700 | .model_id = WINBOND_W49F002U, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18701 | .total_size = 256, |
| 18702 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18703 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 18704 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18705 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 18706 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 18707 | .block_erasers = |
| 18708 | { |
| 18709 | { |
| 18710 | .eraseblocks = { |
| 18711 | {128 * 1024, 1}, |
| 18712 | {96 * 1024, 1}, |
| 18713 | {8 * 1024, 2}, |
| 18714 | {16 * 1024, 1}, |
| 18715 | }, |
| 18716 | .block_erase = erase_sector_jedec, |
| 18717 | }, { |
| 18718 | .eraseblocks = { {256 * 1024, 1} }, |
| 18719 | .block_erase = erase_chip_block_jedec, |
| 18720 | } |
| 18721 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18722 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18723 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 18724 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18725 | }, |
| 18726 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18727 | { |
| 18728 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 18729 | .name = "W49F020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18730 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 18731 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18732 | .model_id = WINBOND_W49F020, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 18733 | .total_size = 256, |
| 18734 | .page_size = 128, |
| 18735 | .feature_bits = FEATURE_EITHER_RESET, |
| 18736 | .tested = TEST_OK_PROBE, |
| 18737 | .probe = probe_jedec, |
| 18738 | .probe_timing = 10, |
| 18739 | .block_erasers = |
| 18740 | { |
| 18741 | { |
| 18742 | .eraseblocks = { {256 * 1024, 1} }, |
| 18743 | .block_erase = erase_chip_block_jedec, |
| 18744 | } |
| 18745 | }, |
| 18746 | .write = write_jedec_1, |
| 18747 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 18748 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 18749 | }, |
| 18750 | |
| 18751 | { |
| 18752 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18753 | .name = "W49V002A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18754 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18755 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18756 | .model_id = WINBOND_W49V002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18757 | .total_size = 256, |
| 18758 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18759 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 18760 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18761 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 18762 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 18763 | .block_erasers = |
| 18764 | { |
| 18765 | { |
| 18766 | .eraseblocks = { |
| 18767 | {64 * 1024, 3}, |
| 18768 | {32 * 1024, 1}, |
| 18769 | {8 * 1024, 2}, |
| 18770 | {16 * 1024, 1}, |
| 18771 | }, |
| 18772 | .block_erase = erase_sector_jedec, |
| 18773 | }, { |
| 18774 | .eraseblocks = { {256 * 1024, 1} }, |
| 18775 | .block_erase = erase_chip_block_jedec, |
| 18776 | } |
| 18777 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18778 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18779 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 18780 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18781 | }, |
| 18782 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18783 | { |
| 18784 | .vendor = "Winbond", |
| 18785 | .name = "W49V002FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18786 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18787 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18788 | .model_id = WINBOND_W49V002FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18789 | .total_size = 256, |
| 18790 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18791 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 18792 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18793 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 18794 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 18795 | .block_erasers = |
| 18796 | { |
| 18797 | { |
| 18798 | .eraseblocks = { |
| 18799 | {64 * 1024, 3}, |
| 18800 | {32 * 1024, 1}, |
| 18801 | {8 * 1024, 2}, |
| 18802 | {16 * 1024, 1}, |
| 18803 | }, |
| 18804 | .block_erase = erase_sector_jedec, |
| 18805 | }, { |
| 18806 | .eraseblocks = { {256 * 1024, 1} }, |
| 18807 | .block_erase = erase_chip_block_jedec, |
| 18808 | } |
| 18809 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18810 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18811 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 18812 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18813 | }, |
| 18814 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18815 | { |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 18816 | .vendor = "XMC", |
| 18817 | .name = "XM25QH128C", |
| 18818 | .bustype = BUS_SPI, |
| 18819 | .manufacture_id = ST_ID, |
| 18820 | .model_id = XMC_XM25QH128C, |
| 18821 | .total_size = 16384, |
| 18822 | .page_size = 256, |
| 18823 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 18824 | .tested = TEST_UNTESTED, |
| 18825 | .probe = probe_spi_rdid, |
| 18826 | .probe_timing = TIMING_ZERO, |
| 18827 | .block_erasers = |
| 18828 | { |
| 18829 | { |
| 18830 | .eraseblocks = { {4 * 1024, 4096} }, |
| 18831 | .block_erase = spi_block_erase_20, |
| 18832 | }, { |
| 18833 | .eraseblocks = { {32 * 1024, 512} }, |
| 18834 | .block_erase = spi_block_erase_52, |
| 18835 | }, { |
| 18836 | .eraseblocks = { {64 * 1024, 256} }, |
| 18837 | .block_erase = spi_block_erase_d8, |
| 18838 | }, { |
| 18839 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 18840 | .block_erase = spi_block_erase_60, |
| 18841 | }, { |
| 18842 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 18843 | .block_erase = spi_block_erase_c7, |
| 18844 | } |
| 18845 | }, |
| 18846 | .printlock = spi_prettyprint_status_register_plain, |
| 18847 | .unlock = spi_disable_blockprotect, |
| 18848 | .write = spi_chip_write_256, |
| 18849 | .read = spi_chip_read, |
| 18850 | .voltage = {2700, 3600}, |
| 18851 | }, |
| 18852 | |
| 18853 | { |
| 18854 | .vendor = "XMC", |
| 18855 | .name = "XM25QH256C", |
| 18856 | .bustype = BUS_SPI, |
| 18857 | .manufacture_id = ST_ID, |
| 18858 | .model_id = XMC_XM25QH256C, |
| 18859 | .total_size = 32768, |
| 18860 | .page_size = 256, |
| 18861 | /* supports SFDP */ |
| 18862 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 18863 | .tested = TEST_UNTESTED, |
| 18864 | .probe = probe_spi_rdid, |
| 18865 | .probe_timing = TIMING_ZERO, |
| 18866 | .block_erasers = |
| 18867 | { |
| 18868 | { |
| 18869 | .eraseblocks = { {4 * 1024, 8192} }, |
| 18870 | .block_erase = spi_block_erase_21, |
| 18871 | }, { |
| 18872 | .eraseblocks = { {4 * 1024, 8192} }, |
| 18873 | .block_erase = spi_block_erase_20, |
| 18874 | }, { |
| 18875 | .eraseblocks = { {32 * 1024, 1024} }, |
| 18876 | .block_erase = spi_block_erase_52, |
| 18877 | }, { |
| 18878 | .eraseblocks = { {64 * 1024, 512} }, |
| 18879 | .block_erase = spi_block_erase_dc, |
| 18880 | }, { |
| 18881 | .eraseblocks = { {64 * 1024, 512} }, |
| 18882 | .block_erase = spi_block_erase_d8, |
| 18883 | }, { |
| 18884 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 18885 | .block_erase = spi_block_erase_60, |
| 18886 | }, { |
| 18887 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 18888 | .block_erase = spi_block_erase_c7, |
| 18889 | } |
| 18890 | }, |
| 18891 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18892 | .unlock = spi_disable_blockprotect, |
| 18893 | .write = spi_chip_write_256, |
| 18894 | .read = spi_chip_read, |
| 18895 | .voltage = {2700, 3600}, |
| 18896 | }, |
| 18897 | |
| 18898 | { |
| 18899 | .vendor = "XMC", |
| 18900 | .name = "XM25QH64C", |
| 18901 | .bustype = BUS_SPI, |
| 18902 | .manufacture_id = ST_ID, |
| 18903 | .model_id = XMC_XM25QH64C, |
| 18904 | .total_size = 8192, |
| 18905 | .page_size = 256, |
| 18906 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 18907 | .tested = TEST_UNTESTED, |
| 18908 | .probe = probe_spi_rdid, |
| 18909 | .probe_timing = TIMING_ZERO, |
| 18910 | .block_erasers = |
| 18911 | { |
| 18912 | { |
| 18913 | .eraseblocks = { {4 * 1024, 2048} }, |
| 18914 | .block_erase = spi_block_erase_20, |
| 18915 | }, { |
| 18916 | .eraseblocks = { {32 * 1024, 256} }, |
| 18917 | .block_erase = spi_block_erase_52, |
| 18918 | }, { |
| 18919 | .eraseblocks = { {64 * 1024, 128} }, |
| 18920 | .block_erase = spi_block_erase_d8, |
| 18921 | }, { |
| 18922 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 18923 | .block_erase = spi_block_erase_60, |
| 18924 | }, { |
| 18925 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 18926 | .block_erase = spi_block_erase_c7, |
| 18927 | } |
| 18928 | }, |
| 18929 | .printlock = spi_prettyprint_status_register_plain, |
| 18930 | .unlock = spi_disable_blockprotect, |
| 18931 | .write = spi_chip_write_256, |
| 18932 | .read = spi_chip_read, |
| 18933 | .voltage = {2700, 3600}, |
| 18934 | }, |
| 18935 | |
| 18936 | { |
| 18937 | .vendor = "XMC", |
| 18938 | .name = "XM25QU128C", |
| 18939 | .bustype = BUS_SPI, |
| 18940 | .manufacture_id = ST_ID, |
| 18941 | .model_id = XMC_XM25QU128C, |
| 18942 | .total_size = 16384, |
| 18943 | .page_size = 256, |
| 18944 | /* supports SFDP */ |
| 18945 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 18946 | .tested = TEST_UNTESTED, |
| 18947 | .probe = probe_spi_rdid, |
| 18948 | .probe_timing = TIMING_ZERO, |
| 18949 | .block_erasers = |
| 18950 | { |
| 18951 | { |
| 18952 | .eraseblocks = { {4 * 1024, 4096} }, |
| 18953 | .block_erase = spi_block_erase_20, |
| 18954 | }, { |
| 18955 | .eraseblocks = { {32 * 1024, 512} }, |
| 18956 | .block_erase = spi_block_erase_52, |
| 18957 | }, { |
| 18958 | .eraseblocks = { {64 * 1024, 256} }, |
| 18959 | .block_erase = spi_block_erase_d8, |
| 18960 | }, { |
| 18961 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 18962 | .block_erase = spi_block_erase_60, |
| 18963 | }, { |
| 18964 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 18965 | .block_erase = spi_block_erase_c7, |
| 18966 | } |
| 18967 | }, |
| 18968 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18969 | .unlock = spi_disable_blockprotect, |
| 18970 | .write = spi_chip_write_256, |
| 18971 | .read = spi_chip_read, |
| 18972 | .voltage = {1650, 1950}, |
| 18973 | }, |
| 18974 | |
| 18975 | { |
| 18976 | .vendor = "XMC", |
| 18977 | .name = "XM25QU256C", |
| 18978 | .bustype = BUS_SPI, |
| 18979 | .manufacture_id = ST_ID, |
| 18980 | .model_id = XMC_XM25QU256C, |
| 18981 | .total_size = 32768, |
| 18982 | .page_size = 256, |
| 18983 | /* supports SFDP */ |
| 18984 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 18985 | .tested = TEST_UNTESTED, |
| 18986 | .probe = probe_spi_rdid, |
| 18987 | .probe_timing = TIMING_ZERO, |
| 18988 | .block_erasers = |
| 18989 | { |
| 18990 | { |
| 18991 | .eraseblocks = { {4 * 1024, 8192} }, |
| 18992 | .block_erase = spi_block_erase_21, |
| 18993 | }, { |
| 18994 | .eraseblocks = { {4 * 1024, 8192} }, |
| 18995 | .block_erase = spi_block_erase_20, |
| 18996 | }, { |
| 18997 | .eraseblocks = { {32 * 1024, 1024} }, |
| 18998 | .block_erase = spi_block_erase_52, |
| 18999 | }, { |
| 19000 | .eraseblocks = { {64 * 1024, 512} }, |
| 19001 | .block_erase = spi_block_erase_dc, |
| 19002 | }, { |
| 19003 | .eraseblocks = { {64 * 1024, 512} }, |
| 19004 | .block_erase = spi_block_erase_d8, |
| 19005 | }, { |
| 19006 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 19007 | .block_erase = spi_block_erase_60, |
| 19008 | }, { |
| 19009 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 19010 | .block_erase = spi_block_erase_c7, |
| 19011 | } |
| 19012 | }, |
| 19013 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19014 | .unlock = spi_disable_blockprotect, |
| 19015 | .write = spi_chip_write_256, |
| 19016 | .read = spi_chip_read, |
| 19017 | .voltage = {1650, 1950}, |
| 19018 | }, |
| 19019 | |
| 19020 | { |
| 19021 | .vendor = "XMC", |
| 19022 | .name = "XM25QU64C", |
| 19023 | .bustype = BUS_SPI, |
| 19024 | .manufacture_id = ST_ID, |
| 19025 | .model_id = XMC_XM25QU64C, |
| 19026 | .total_size = 8192, |
| 19027 | .page_size = 256, |
| 19028 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 19029 | .tested = TEST_UNTESTED, |
| 19030 | .probe = probe_spi_rdid, |
| 19031 | .probe_timing = TIMING_ZERO, |
| 19032 | .block_erasers = |
| 19033 | { |
| 19034 | { |
| 19035 | .eraseblocks = { {4 * 1024, 2048} }, |
| 19036 | .block_erase = spi_block_erase_20, |
| 19037 | }, { |
| 19038 | .eraseblocks = { {32 * 1024, 256} }, |
| 19039 | .block_erase = spi_block_erase_52, |
| 19040 | }, { |
| 19041 | .eraseblocks = { {64 * 1024, 128} }, |
| 19042 | .block_erase = spi_block_erase_d8, |
| 19043 | }, { |
| 19044 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 19045 | .block_erase = spi_block_erase_60, |
| 19046 | }, { |
| 19047 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 19048 | .block_erase = spi_block_erase_c7, |
| 19049 | } |
| 19050 | }, |
| 19051 | .printlock = spi_prettyprint_status_register_plain, |
| 19052 | .unlock = spi_disable_blockprotect, |
| 19053 | .write = spi_chip_write_256, |
| 19054 | .read = spi_chip_read, |
| 19055 | .voltage = {1650, 1950}, |
| 19056 | }, |
| 19057 | |
| 19058 | { |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 19059 | .vendor = "Zetta Device", |
| 19060 | .name = "ZD25D20", |
| 19061 | .bustype = BUS_SPI, |
| 19062 | .manufacture_id = ZETTADEVICE_ID, |
| 19063 | .model_id = ZETTADEVICE_ZD25D20, |
| 19064 | .total_size = 256, |
| 19065 | .page_size = 256, |
| 19066 | .feature_bits = FEATURE_WRSR_WREN, |
| 19067 | .tested = TEST_UNTESTED, |
| 19068 | .probe = probe_spi_rdid, |
| 19069 | .probe_timing = TIMING_ZERO, |
| 19070 | .block_erasers = |
David Hendricks | a72d5a9 | 2018-02-11 17:58:44 -0800 | [diff] [blame] | 19071 | { |
| 19072 | { |
| 19073 | .eraseblocks = { {4 * 1024, 64} }, |
| 19074 | .block_erase = spi_block_erase_20, |
| 19075 | }, { |
| 19076 | .eraseblocks = { {32 * 1024, 8} }, |
| 19077 | .block_erase = spi_block_erase_52, |
| 19078 | }, { |
| 19079 | .eraseblocks = { {64 * 1024, 4} }, |
| 19080 | .block_erase = spi_block_erase_d8, |
| 19081 | }, { |
| 19082 | .eraseblocks = { {256 * 1024, 1} }, |
| 19083 | .block_erase = spi_block_erase_60, |
| 19084 | }, { |
| 19085 | .eraseblocks = { {256 * 1024, 1} }, |
| 19086 | .block_erase = spi_block_erase_c7, |
| 19087 | } |
| 19088 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 19089 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19090 | .unlock = spi_disable_blockprotect, |
| 19091 | .write = spi_chip_write_256, |
| 19092 | .read = spi_chip_read, |
| 19093 | .voltage = {2700, 3600}, |
David Hendricks | a72d5a9 | 2018-02-11 17:58:44 -0800 | [diff] [blame] | 19094 | }, |
| 19095 | |
| 19096 | { |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 19097 | .vendor = "Zetta Device", |
| 19098 | .name = "ZD25D40", |
| 19099 | .bustype = BUS_SPI, |
| 19100 | .manufacture_id = ZETTADEVICE_ID, |
| 19101 | .model_id = ZETTADEVICE_ZD25D40, |
| 19102 | .total_size = 512, |
| 19103 | .page_size = 256, |
| 19104 | .feature_bits = FEATURE_WRSR_WREN, |
| 19105 | .tested = TEST_UNTESTED, |
| 19106 | .probe = probe_spi_rdid, |
| 19107 | .probe_timing = TIMING_ZERO, |
| 19108 | .block_erasers = |
nybash | cbb46e2 | 2018-02-11 17:53:49 -0800 | [diff] [blame] | 19109 | { |
| 19110 | { |
| 19111 | .eraseblocks = { {4 * 1024, 128} }, |
| 19112 | .block_erase = spi_block_erase_20, |
| 19113 | }, { |
| 19114 | .eraseblocks = { {32 * 1024, 16} }, |
| 19115 | .block_erase = spi_block_erase_52, |
| 19116 | }, { |
| 19117 | .eraseblocks = { {64 * 1024, 8} }, |
| 19118 | .block_erase = spi_block_erase_d8, |
| 19119 | }, { |
| 19120 | .eraseblocks = { {512 * 1024, 1} }, |
| 19121 | .block_erase = spi_block_erase_60, |
| 19122 | }, { |
| 19123 | .eraseblocks = { {512 * 1024, 1} }, |
| 19124 | .block_erase = spi_block_erase_c7, |
| 19125 | } |
| 19126 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 19127 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19128 | .unlock = spi_disable_blockprotect, |
| 19129 | .write = spi_chip_write_256, |
| 19130 | .read = spi_chip_read, |
| 19131 | .voltage = {2700, 3600}, |
nybash | cbb46e2 | 2018-02-11 17:53:49 -0800 | [diff] [blame] | 19132 | }, |
| 19133 | |
Stefan Tauner | ac1b4c8 | 2012-02-17 14:51:04 +0000 | [diff] [blame] | 19134 | { |
Alan Green | dd59220 | 2019-08-23 10:11:37 +1000 | [diff] [blame] | 19135 | .vendor = "Unknown", |
| 19136 | .name = "SFDP-capable chip", |
| 19137 | .bustype = BUS_SPI, |
| 19138 | .manufacture_id = GENERIC_MANUF_ID, |
| 19139 | .model_id = SFDP_DEVICE_ID, |
| 19140 | .total_size = 0, /* set by probing function */ |
| 19141 | .page_size = 0, /* set by probing function */ |
| 19142 | .feature_bits = 0, /* set by probing function */ |
| 19143 | /* We present our own "report this" text hence we do not */ |
| 19144 | /* want the default "This flash part has status UNTESTED..." */ |
| 19145 | /* text to be printed. */ |
| 19146 | .tested = TEST_OK_PREW, |
| 19147 | .probe = probe_spi_sfdp, |
| 19148 | .block_erasers = {}, /* set by probing function */ |
| 19149 | .unlock = spi_disable_blockprotect, /* is this safe? */ |
| 19150 | .write = NULL, /* set by probing function */ |
| 19151 | .read = spi_chip_read, |
| 19152 | /* FIXME: some vendor extensions define this */ |
| 19153 | .voltage = {0}, |
| 19154 | }, |
| 19155 | |
| 19156 | { |
Carl-Daniel Hailfinger | 532c717 | 2011-11-04 21:35:26 +0000 | [diff] [blame] | 19157 | .vendor = "Programmer", |
| 19158 | .name = "Opaque flash chip", |
| 19159 | .bustype = BUS_PROG, |
| 19160 | .manufacture_id = PROGMANUF_ID, |
| 19161 | .model_id = PROGDEV_ID, |
| 19162 | .total_size = 0, |
| 19163 | .page_size = 256, |
| 19164 | /* probe is assumed to work, rest will be filled in by probe */ |
| 19165 | .tested = TEST_OK_PROBE, |
| 19166 | .probe = probe_opaque, |
| 19167 | /* eraseblock sizes will be set by the probing function */ |
| 19168 | .block_erasers = |
| 19169 | { |
| 19170 | { |
| 19171 | .block_erase = erase_opaque, |
| 19172 | } |
| 19173 | }, |
| 19174 | .write = write_opaque, |
| 19175 | .read = read_opaque, |
| 19176 | }, |
| 19177 | |
| 19178 | { |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 19179 | .vendor = "AMIC", |
| 19180 | .name = "unknown AMIC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19181 | .bustype = BUS_SPI, |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 19182 | .manufacture_id = AMIC_ID, |
| 19183 | .model_id = GENERIC_DEVICE_ID, |
| 19184 | .total_size = 0, |
| 19185 | .page_size = 256, |
| 19186 | .tested = TEST_BAD_PREW, |
| 19187 | .probe = probe_spi_rdid4, |
| 19188 | .probe_timing = TIMING_ZERO, |
| 19189 | .write = NULL, |
| 19190 | .read = NULL, |
| 19191 | }, |
| 19192 | |
| 19193 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19194 | .vendor = "Atmel", |
| 19195 | .name = "unknown Atmel SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19196 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19197 | .manufacture_id = ATMEL_ID, |
| 19198 | .model_id = GENERIC_DEVICE_ID, |
| 19199 | .total_size = 0, |
| 19200 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 19201 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19202 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 19203 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19204 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 19205 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 19206 | }, |
| 19207 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19208 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 19209 | .vendor = "Eon", |
| 19210 | .name = "unknown Eon SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19211 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19212 | .manufacture_id = EON_ID_NOPREFIX, |
| 19213 | .model_id = GENERIC_DEVICE_ID, |
| 19214 | .total_size = 0, |
| 19215 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 19216 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19217 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 19218 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19219 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 19220 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 19221 | }, |
| 19222 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19223 | { |
| 19224 | .vendor = "Macronix", |
| 19225 | .name = "unknown Macronix SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19226 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 19227 | .manufacture_id = MACRONIX_ID, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19228 | .model_id = GENERIC_DEVICE_ID, |
| 19229 | .total_size = 0, |
| 19230 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 19231 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19232 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 19233 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19234 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 19235 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 19236 | }, |
| 19237 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19238 | { |
| 19239 | .vendor = "PMC", |
| 19240 | .name = "unknown PMC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19241 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19242 | .manufacture_id = PMC_ID, |
| 19243 | .model_id = GENERIC_DEVICE_ID, |
| 19244 | .total_size = 0, |
| 19245 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 19246 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19247 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 19248 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19249 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 19250 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 19251 | }, |
| 19252 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19253 | { |
| 19254 | .vendor = "SST", |
| 19255 | .name = "unknown SST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19256 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19257 | .manufacture_id = SST_ID, |
| 19258 | .model_id = GENERIC_DEVICE_ID, |
| 19259 | .total_size = 0, |
| 19260 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 19261 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19262 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 19263 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19264 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 19265 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 19266 | }, |
| 19267 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19268 | { |
| 19269 | .vendor = "ST", |
| 19270 | .name = "unknown ST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19271 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19272 | .manufacture_id = ST_ID, |
| 19273 | .model_id = GENERIC_DEVICE_ID, |
| 19274 | .total_size = 0, |
| 19275 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 19276 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19277 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 19278 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19279 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 19280 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 19281 | }, |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 19282 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 19283 | { |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 19284 | .vendor = "Sanyo", |
| 19285 | .name = "unknown Sanyo SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19286 | .bustype = BUS_SPI, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 19287 | .manufacture_id = SANYO_ID, |
| 19288 | .model_id = GENERIC_DEVICE_ID, |
| 19289 | .total_size = 0, |
| 19290 | .page_size = 256, |
| 19291 | .tested = TEST_BAD_PREW, |
| 19292 | .probe = probe_spi_rdid, |
| 19293 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 19294 | .write = NULL, |
| 19295 | .read = NULL, |
| 19296 | }, |
| 19297 | |
| 19298 | { |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 19299 | .vendor = "Winbond", |
| 19300 | .name = "unknown Winbond (ex Nexcom) SPI chip", |
| 19301 | .bustype = BUS_SPI, |
| 19302 | .manufacture_id = WINBOND_NEX_ID, |
| 19303 | .model_id = GENERIC_DEVICE_ID, |
| 19304 | .total_size = 0, |
| 19305 | .page_size = 256, |
| 19306 | .tested = TEST_BAD_PREW, |
| 19307 | .probe = probe_spi_rdid, |
| 19308 | .probe_timing = TIMING_ZERO, |
| 19309 | .write = NULL, |
| 19310 | .read = NULL, |
| 19311 | }, |
| 19312 | |
| 19313 | { |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 19314 | .vendor = "Generic", |
| 19315 | .name = "unknown SPI chip (RDID)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19316 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 19317 | .manufacture_id = GENERIC_MANUF_ID, |
| 19318 | .model_id = GENERIC_DEVICE_ID, |
| 19319 | .total_size = 0, |
| 19320 | .page_size = 256, |
| 19321 | .tested = TEST_BAD_PREW, |
| 19322 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 19323 | .write = NULL, |
| 19324 | }, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 19325 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 19326 | { |
| 19327 | .vendor = "Generic", |
| 19328 | .name = "unknown SPI chip (REMS)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19329 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 19330 | .manufacture_id = GENERIC_MANUF_ID, |
| 19331 | .model_id = GENERIC_DEVICE_ID, |
| 19332 | .total_size = 0, |
| 19333 | .page_size = 256, |
| 19334 | .tested = TEST_BAD_PREW, |
| 19335 | .probe = probe_spi_rems, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 19336 | .write = NULL, |
| 19337 | }, |
| 19338 | |
Stefan Tauner | 96658be | 2014-05-26 22:05:31 +0000 | [diff] [blame] | 19339 | {0} |
Stephan Guilloux | 72cf565 | 2009-04-21 01:46:07 +0000 | [diff] [blame] | 19340 | }; |
Stefan Tauner | 96658be | 2014-05-26 22:05:31 +0000 | [diff] [blame] | 19341 | |
| 19342 | const unsigned int flashchips_size = ARRAY_SIZE(flashchips); |