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", |
Hal Martin | 49e23d2 | 2018-05-27 14:18:43 +0200 | [diff] [blame] | 2334 | .name = "AT25SL128A", |
| 2335 | .bustype = BUS_SPI, |
| 2336 | .manufacture_id = ATMEL_ID, |
| 2337 | .model_id = ATMEL_AT25SL128A, |
| 2338 | .total_size = 16384, |
| 2339 | .page_size = 256, |
| 2340 | /* supports SFDP */ |
| 2341 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 2342 | .tested = TEST_OK_PREW, |
| 2343 | .probe = probe_spi_rdid, |
| 2344 | .probe_timing = TIMING_ZERO, |
| 2345 | .block_erasers = |
| 2346 | { |
| 2347 | { |
| 2348 | .eraseblocks = { {4 * 1024, 4096} }, |
| 2349 | .block_erase = spi_block_erase_20, |
| 2350 | }, { |
| 2351 | .eraseblocks = { {32 * 1024, 512} }, |
| 2352 | .block_erase = spi_block_erase_52, |
| 2353 | }, { |
| 2354 | .eraseblocks = { {64 * 1024, 256} }, |
| 2355 | .block_erase = spi_block_erase_d8, |
| 2356 | }, { |
| 2357 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 2358 | .block_erase = spi_block_erase_60, |
| 2359 | }, { |
| 2360 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 2361 | .block_erase = spi_block_erase_c7, |
| 2362 | } |
| 2363 | }, |
| 2364 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 2365 | .unlock = spi_disable_blockprotect, |
| 2366 | .write = spi_chip_write_256, |
| 2367 | .read = spi_chip_read, |
| 2368 | .voltage = {1700, 2000}, |
| 2369 | }, |
| 2370 | |
| 2371 | { |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 2372 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2373 | .name = "AT26DF041", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2374 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2375 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2376 | .model_id = ATMEL_AT26DF041, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2377 | .total_size = 512, |
| 2378 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2379 | /* 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] | 2380 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2381 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2382 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2383 | .block_erasers = |
| 2384 | { |
| 2385 | { |
Stefan Tauner | 94b39b4 | 2012-10-27 00:06:02 +0000 | [diff] [blame] | 2386 | .eraseblocks = { {256, 2048} }, |
| 2387 | .block_erase = spi_block_erase_81, |
| 2388 | }, { |
| 2389 | .eraseblocks = { {2 * 1024, 256} }, |
| 2390 | .block_erase = spi_block_erase_50, |
| 2391 | }, { |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2392 | .eraseblocks = { {4 * 1024, 128} }, |
| 2393 | .block_erase = spi_block_erase_20, |
| 2394 | } |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2395 | }, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2396 | .printlock = spi_prettyprint_status_register_plain, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2397 | /* 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] | 2398 | .write = spi_chip_write_1, |
| 2399 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2400 | .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] | 2401 | }, |
| 2402 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2403 | { |
| 2404 | .vendor = "Atmel", |
| 2405 | .name = "AT26DF081A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2406 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2407 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2408 | .model_id = ATMEL_AT26DF081A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2409 | .total_size = 1024, |
| 2410 | .page_size = 256, |
Mathias Krause | 2c3afa3 | 2011-01-17 07:45:54 +0000 | [diff] [blame] | 2411 | .feature_bits = FEATURE_WRSR_WREN, |
| 2412 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2413 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2414 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2415 | .block_erasers = |
| 2416 | { |
| 2417 | { |
| 2418 | .eraseblocks = { {4 * 1024, 256} }, |
| 2419 | .block_erase = spi_block_erase_20, |
| 2420 | }, { |
| 2421 | .eraseblocks = { {32 * 1024, 32} }, |
| 2422 | .block_erase = spi_block_erase_52, |
| 2423 | }, { |
| 2424 | .eraseblocks = { {64 * 1024, 16} }, |
| 2425 | .block_erase = spi_block_erase_d8, |
| 2426 | }, { |
| 2427 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2428 | .block_erase = spi_block_erase_60, |
| 2429 | }, { |
| 2430 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2431 | .block_erase = spi_block_erase_c7, |
| 2432 | } |
| 2433 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2434 | .printlock = spi_prettyprint_status_register_at26df081a, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2435 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2436 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2437 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2438 | .voltage = {2700, 3600}, |
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 = "AT26DF161", |
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_AT26DF161, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2447 | .total_size = 2048, |
| 2448 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2449 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 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, 512} }, |
| 2457 | .block_erase = spi_block_erase_20, |
| 2458 | }, { |
| 2459 | .eraseblocks = { {32 * 1024, 64} }, |
| 2460 | .block_erase = spi_block_erase_52, |
| 2461 | }, { |
| 2462 | .eraseblocks = { {64 * 1024, 32} }, |
| 2463 | .block_erase = spi_block_erase_d8, |
| 2464 | }, { |
| 2465 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2466 | .block_erase = spi_block_erase_60, |
| 2467 | }, { |
| 2468 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2469 | .block_erase = spi_block_erase_c7, |
| 2470 | } |
| 2471 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 2472 | .printlock = spi_prettyprint_status_register_at25df, |
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 = "AT26DF161A", |
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_AT26DF161A, |
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 | cecb2c5 | 2013-06-20 22:55:41 +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 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2510 | .printlock = spi_prettyprint_status_register_at26df081a, |
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 = "AT26F004", |
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_AT26F004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2523 | .total_size = 512, |
| 2524 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2525 | .feature_bits = FEATURE_WRSR_WREN, |
Alan Green | 908adf4 | 2019-07-03 15:34:06 +1000 | [diff] [blame] | 2526 | .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD}, |
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, 128} }, |
| 2533 | .block_erase = spi_block_erase_20, |
| 2534 | }, { |
| 2535 | .eraseblocks = { {32 * 1024, 16} }, |
| 2536 | .block_erase = spi_block_erase_52, |
| 2537 | }, { |
| 2538 | .eraseblocks = { {64 * 1024, 8} }, |
| 2539 | .block_erase = spi_block_erase_d8, |
| 2540 | }, { |
| 2541 | .eraseblocks = { {512 * 1024, 1} }, |
| 2542 | .block_erase = spi_block_erase_60, |
| 2543 | }, { |
| 2544 | .eraseblocks = { {512 * 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_plain, /* TODO: improve */ |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2549 | .write = NULL, /* Incompatible Page write */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2550 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2551 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2552 | }, |
| 2553 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2554 | { |
| 2555 | .vendor = "Atmel", |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2556 | .name = "AT29C010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2557 | .bustype = BUS_PARALLEL, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2558 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2559 | .model_id = ATMEL_AT29C010A, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2560 | .total_size = 128, |
| 2561 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2562 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 2563 | .tested = TEST_OK_PRE, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2564 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 2565 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2566 | .block_erasers = |
| 2567 | { |
| 2568 | { |
| 2569 | .eraseblocks = { {128 * 1024, 1} }, |
| 2570 | .block_erase = erase_chip_block_jedec, |
| 2571 | } |
| 2572 | }, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2573 | .write = write_jedec, /* FIXME */ |
| 2574 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2575 | .voltage = {4500, 5500}, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2576 | }, |
| 2577 | |
| 2578 | { |
| 2579 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2580 | .name = "AT29C020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2581 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2582 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2583 | .model_id = ATMEL_AT29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2584 | .total_size = 256, |
| 2585 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2586 | .feature_bits = FEATURE_LONG_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 2587 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2588 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 2589 | .probe_timing = 10000, /* 10ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2590 | .block_erasers = |
| 2591 | { |
| 2592 | { |
| 2593 | .eraseblocks = { {256 * 1024, 1} }, |
| 2594 | .block_erase = erase_chip_block_jedec, |
| 2595 | } |
| 2596 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2597 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2598 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2599 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2600 | }, |
| 2601 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2602 | { |
| 2603 | .vendor = "Atmel", |
| 2604 | .name = "AT29C040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2605 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2606 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2607 | .model_id = ATMEL_AT29C040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2608 | .total_size = 512, |
| 2609 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2610 | .feature_bits = FEATURE_LONG_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2611 | .tested = TEST_UNTESTED, |
| 2612 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 2613 | .probe_timing = 10000, /* 10 ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2614 | .block_erasers = |
| 2615 | { |
| 2616 | { |
| 2617 | .eraseblocks = { {512 * 1024, 1} }, |
| 2618 | .block_erase = erase_chip_block_jedec, |
| 2619 | } |
| 2620 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2621 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2622 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2623 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2624 | }, |
| 2625 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2626 | { |
| 2627 | .vendor = "Atmel", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 2628 | .name = "AT29C512", |
| 2629 | .bustype = BUS_PARALLEL, |
| 2630 | .manufacture_id = ATMEL_ID, |
| 2631 | .model_id = ATMEL_AT29C512, |
| 2632 | .total_size = 64, |
| 2633 | .page_size = 128, |
| 2634 | .feature_bits = FEATURE_LONG_RESET, |
| 2635 | .tested = TEST_OK_PREW, |
| 2636 | .probe = probe_jedec, |
| 2637 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
| 2638 | .block_erasers = |
| 2639 | { |
| 2640 | { |
| 2641 | .eraseblocks = { {64 * 1024, 1} }, |
| 2642 | .block_erase = erase_chip_block_jedec, |
| 2643 | } |
| 2644 | }, |
| 2645 | .write = write_jedec, |
| 2646 | .read = read_memmapped, |
| 2647 | .voltage = {4500, 5500}, |
| 2648 | }, |
| 2649 | |
| 2650 | { |
| 2651 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2652 | .name = "AT45CS1282", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2653 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2654 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2655 | .model_id = ATMEL_AT45CS1282, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2656 | .total_size = 16896, /* No power of two sizes */ |
| 2657 | .page_size = 1056, /* No power of two sizes */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2658 | /* 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] | 2659 | /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */ |
| 2660 | .feature_bits = FEATURE_OTP, |
| 2661 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2662 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2663 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | 1dd5d3a | 2013-08-27 18:02:19 +0000 | [diff] [blame] | 2664 | .block_erasers = |
| 2665 | { |
| 2666 | { |
| 2667 | .eraseblocks = { |
| 2668 | {8 * 1056, 1}, /* sector 0a: opcode 50h */ |
| 2669 | {248 * 1056, 1}, /* sector 0b: opcode 7Ch */ |
| 2670 | {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */ |
| 2671 | }, |
| 2672 | .block_erase = spi_erase_at45cs_sector, |
| 2673 | } |
| 2674 | }, |
| 2675 | .printlock = spi_prettyprint_status_register_plain, |
Stefan Tauner | 1dd5d3a | 2013-08-27 18:02:19 +0000 | [diff] [blame] | 2676 | .write = spi_write_at45db, |
| 2677 | .read = spi_read_at45db, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2678 | .voltage = {2700, 3600}, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2679 | .gran = write_gran_1056bytes, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2680 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2681 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2682 | { |
| 2683 | .vendor = "Atmel", |
| 2684 | .name = "AT45DB011D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2685 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2686 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2687 | .model_id = ATMEL_AT45DB011D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2688 | .total_size = 128, /* or 132, determined from status register */ |
| 2689 | .page_size = 256, /* or 264, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2690 | /* 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] | 2691 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2692 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 2693 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2694 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2695 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2696 | .block_erasers = |
| 2697 | { |
| 2698 | { |
| 2699 | .eraseblocks = { {256, 512} }, |
| 2700 | .block_erase = spi_erase_at45db_page, |
| 2701 | }, { |
| 2702 | .eraseblocks = { {8 * 256, 512/8} }, |
| 2703 | .block_erase = spi_erase_at45db_block, |
| 2704 | }, { |
| 2705 | .eraseblocks = { |
| 2706 | {8 * 256, 1}, |
| 2707 | {120 * 256, 1}, |
| 2708 | {128 * 256, 3}, |
| 2709 | }, |
| 2710 | .block_erase = spi_erase_at45db_sector |
| 2711 | }, { |
| 2712 | .eraseblocks = { {128 * 1024, 1} }, |
| 2713 | .block_erase = spi_erase_at45db_chip, |
| 2714 | } |
| 2715 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2716 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2717 | .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] | 2718 | /* granularity will be set by the probing function. */ |
| 2719 | .write = spi_write_at45db, |
| 2720 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2721 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2722 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2723 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2724 | { |
| 2725 | .vendor = "Atmel", |
| 2726 | .name = "AT45DB021D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2727 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2728 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2729 | .model_id = ATMEL_AT45DB021D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2730 | .total_size = 256, /* or 264, determined from status register */ |
| 2731 | .page_size = 256, /* or 264, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2732 | /* 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] | 2733 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2734 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 2735 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2736 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2737 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2738 | .block_erasers = |
| 2739 | { |
| 2740 | { |
| 2741 | .eraseblocks = { {256, 1024} }, |
| 2742 | .block_erase = spi_erase_at45db_page, |
| 2743 | }, { |
| 2744 | .eraseblocks = { {8 * 256, 1024/8} }, |
| 2745 | .block_erase = spi_erase_at45db_block, |
| 2746 | }, { |
| 2747 | .eraseblocks = { |
| 2748 | {8 * 256, 1}, |
| 2749 | {120 * 256, 1}, |
| 2750 | {128 * 256, 7}, |
| 2751 | }, |
| 2752 | .block_erase = spi_erase_at45db_sector |
| 2753 | }, { |
| 2754 | .eraseblocks = { {256 * 1024, 1} }, |
| 2755 | .block_erase = spi_erase_at45db_chip, |
| 2756 | } |
| 2757 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2758 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2759 | .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] | 2760 | /* granularity will be set by the probing function. */ |
| 2761 | .write = spi_write_at45db, |
| 2762 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2763 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2764 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2765 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2766 | { |
| 2767 | .vendor = "Atmel", |
| 2768 | .name = "AT45DB041D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2769 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2770 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2771 | .model_id = ATMEL_AT45DB041D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2772 | .total_size = 512, /* or 528, determined from status register */ |
| 2773 | .page_size = 256, /* or 264, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2774 | /* 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] | 2775 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2776 | .feature_bits = FEATURE_OTP, |
| 2777 | .tested = TEST_OK_PREW, |
| 2778 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2779 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2780 | .block_erasers = |
| 2781 | { |
| 2782 | { |
| 2783 | .eraseblocks = { {256, 2048} }, |
| 2784 | .block_erase = spi_erase_at45db_page, |
| 2785 | }, { |
| 2786 | .eraseblocks = { {8 * 256, 2048/8} }, |
| 2787 | .block_erase = spi_erase_at45db_block, |
| 2788 | }, { |
| 2789 | .eraseblocks = { |
| 2790 | {8 * 256, 1}, |
| 2791 | {248 * 256, 1}, |
| 2792 | {256 * 256, 7}, |
| 2793 | }, |
| 2794 | .block_erase = spi_erase_at45db_sector |
| 2795 | }, { |
| 2796 | .eraseblocks = { {512 * 1024, 1} }, |
| 2797 | .block_erase = spi_erase_at45db_chip, |
| 2798 | } |
| 2799 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2800 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2801 | .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] | 2802 | /* granularity will be set by the probing function. */ |
| 2803 | .write = spi_write_at45db, |
| 2804 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 2805 | .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] | 2806 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2807 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2808 | { |
| 2809 | .vendor = "Atmel", |
| 2810 | .name = "AT45DB081D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2811 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2812 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2813 | .model_id = ATMEL_AT45DB081D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2814 | .total_size = 1024, /* or 1056, determined from status register */ |
| 2815 | .page_size = 256, /* or 264, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2816 | /* 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] | 2817 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2818 | .feature_bits = FEATURE_OTP, |
Angel Pons | 250aeba | 2018-09-30 20:28:22 +0200 | [diff] [blame] | 2819 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2820 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2821 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2822 | .block_erasers = |
| 2823 | { |
| 2824 | { |
| 2825 | .eraseblocks = { {256, 4096} }, |
| 2826 | .block_erase = spi_erase_at45db_page, |
| 2827 | }, { |
| 2828 | .eraseblocks = { {8 * 256, 4096/8} }, |
| 2829 | .block_erase = spi_erase_at45db_block, |
| 2830 | }, { |
| 2831 | .eraseblocks = { |
| 2832 | {8 * 256, 1}, |
| 2833 | {248 * 256, 1}, |
| 2834 | {256 * 256, 15}, |
| 2835 | }, |
| 2836 | .block_erase = spi_erase_at45db_sector |
| 2837 | }, { |
| 2838 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2839 | .block_erase = spi_erase_at45db_chip, |
| 2840 | } |
| 2841 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2842 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2843 | .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] | 2844 | /* granularity will be set by the probing function. */ |
| 2845 | .write = spi_write_at45db, |
| 2846 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2847 | .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] | 2848 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2849 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2850 | { |
| 2851 | .vendor = "Atmel", |
| 2852 | .name = "AT45DB161D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2853 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2854 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2855 | .model_id = ATMEL_AT45DB161D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2856 | .total_size = 2048, /* or 2112, determined from status register */ |
| 2857 | .page_size = 512, /* or 528, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2858 | /* 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] | 2859 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2860 | .feature_bits = FEATURE_OTP, |
| 2861 | .tested = TEST_OK_PREW, |
| 2862 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2863 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2864 | .block_erasers = |
| 2865 | { |
| 2866 | { |
| 2867 | .eraseblocks = { {512, 4096} }, |
| 2868 | .block_erase = spi_erase_at45db_page, |
| 2869 | }, { |
| 2870 | .eraseblocks = { {8 * 512, 4096/8} }, |
| 2871 | .block_erase = spi_erase_at45db_block, |
| 2872 | }, { |
| 2873 | .eraseblocks = { |
| 2874 | {8 * 512, 1}, |
| 2875 | {248 * 512, 1}, |
| 2876 | {256 * 512, 15}, |
| 2877 | }, |
| 2878 | .block_erase = spi_erase_at45db_sector |
| 2879 | }, { |
| 2880 | .eraseblocks = { {2048 * 1024, 1} }, |
| 2881 | .block_erase = spi_erase_at45db_chip, |
| 2882 | } |
| 2883 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2884 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2885 | .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] | 2886 | /* granularity will be set by the probing function. */ |
| 2887 | .write = spi_write_at45db, |
| 2888 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2889 | .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] | 2890 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2891 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2892 | { |
| 2893 | .vendor = "Atmel", |
| 2894 | .name = "AT45DB321C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2895 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2896 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2897 | .model_id = ATMEL_AT45DB321C, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2898 | .total_size = 4224, /* No power of two sizes */ |
| 2899 | .page_size = 528, /* No power of two sizes */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2900 | /* 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] | 2901 | /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */ |
| 2902 | .feature_bits = FEATURE_OTP, |
| 2903 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2904 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2905 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | fdc4f7e | 2013-08-27 18:02:12 +0000 | [diff] [blame] | 2906 | .block_erasers = |
| 2907 | { |
| 2908 | { |
| 2909 | .eraseblocks = { {528, 8192} }, |
| 2910 | .block_erase = spi_erase_at45db_page, |
| 2911 | }, { |
| 2912 | .eraseblocks = { {8 * 528, 8192/8} }, |
| 2913 | .block_erase = spi_erase_at45db_block, |
| 2914 | }, /* Although the datasheets describes sectors (which can be write protected) |
| 2915 | * there seems to be no erase functions for them. |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 2916 | { |
Stefan Tauner | fdc4f7e | 2013-08-27 18:02:12 +0000 | [diff] [blame] | 2917 | .eraseblocks = { |
| 2918 | {8 * 528, 1}, |
| 2919 | {120 * 528, 1}, |
| 2920 | {128 * 528, 63}, |
| 2921 | }, |
| 2922 | .block_erase = spi_erase_at45db_sector |
| 2923 | }, */ { |
| 2924 | .eraseblocks = { {4224 * 1024, 1} }, |
| 2925 | .block_erase = spi_erase_at45db_chip, |
| 2926 | } |
| 2927 | }, |
| 2928 | .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */ |
Stefan Tauner | fdc4f7e | 2013-08-27 18:02:12 +0000 | [diff] [blame] | 2929 | .write = spi_write_at45db, |
| 2930 | .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2931 | .voltage = {2700, 3600}, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2932 | .gran = write_gran_528bytes, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2933 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2934 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2935 | { |
| 2936 | .vendor = "Atmel", |
| 2937 | .name = "AT45DB321D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2938 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2939 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2940 | .model_id = ATMEL_AT45DB321D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2941 | .total_size = 4096, /* or 4224, determined from status register */ |
| 2942 | .page_size = 512, /* or 528, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2943 | /* 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] | 2944 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 2945 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 2946 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2947 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2948 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2949 | .block_erasers = |
| 2950 | { |
| 2951 | { |
| 2952 | .eraseblocks = { {512, 8192} }, |
| 2953 | .block_erase = spi_erase_at45db_page, |
| 2954 | }, { |
| 2955 | .eraseblocks = { {8 * 512, 8192/8} }, |
| 2956 | .block_erase = spi_erase_at45db_block, |
| 2957 | }, { |
| 2958 | .eraseblocks = { |
| 2959 | {8 * 512, 1}, |
| 2960 | {120 * 512, 1}, |
| 2961 | {128 * 512, 63}, |
| 2962 | }, |
| 2963 | .block_erase = spi_erase_at45db_sector |
| 2964 | }, { |
| 2965 | .eraseblocks = { {4096 * 1024, 1} }, |
| 2966 | .block_erase = spi_erase_at45db_chip, |
| 2967 | } |
| 2968 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2969 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2970 | .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] | 2971 | /* granularity will be set by the probing function. */ |
| 2972 | .write = spi_write_at45db, |
| 2973 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 2974 | .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */ |
| 2975 | }, |
| 2976 | |
| 2977 | { |
| 2978 | .vendor = "Atmel", |
| 2979 | .name = "AT45DB321E", |
| 2980 | .bustype = BUS_SPI, |
| 2981 | .manufacture_id = ATMEL_ID, |
| 2982 | .model_id = ATMEL_AT45DB321C, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2983 | .total_size = 4096, /* or 4224, determined from status register */ |
| 2984 | .page_size = 512, /* or 528, determined from status register */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2985 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
| 2986 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2987 | .feature_bits = FEATURE_OTP, |
| 2988 | .tested = TEST_UNTESTED, |
| 2989 | .probe = probe_spi_at45db, |
| 2990 | .probe_timing = TIMING_ZERO, |
| 2991 | .block_erasers = |
| 2992 | { |
| 2993 | { |
| 2994 | .eraseblocks = { {512, 8192} }, |
| 2995 | .block_erase = spi_erase_at45db_page, |
| 2996 | }, { |
| 2997 | .eraseblocks = { {8 * 512, 8192/8} }, |
| 2998 | .block_erase = spi_erase_at45db_block, |
| 2999 | }, { |
| 3000 | .eraseblocks = { |
| 3001 | {8 * 512, 1}, |
| 3002 | {120 * 512, 1}, |
| 3003 | {128 * 512, 63}, |
| 3004 | }, |
| 3005 | .block_erase = spi_erase_at45db_sector |
| 3006 | }, { |
| 3007 | .eraseblocks = { {4096 * 1024, 1} }, |
| 3008 | .block_erase = spi_erase_at45db_chip, |
| 3009 | } |
| 3010 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3011 | .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */ |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3012 | .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] | 3013 | /* granularity will be set by the probing function. */ |
| 3014 | .write = spi_write_at45db, |
| 3015 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 3016 | .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] | 3017 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3018 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3019 | { |
| 3020 | .vendor = "Atmel", |
| 3021 | .name = "AT45DB642D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3022 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3023 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3024 | .model_id = ATMEL_AT45DB642D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 3025 | .total_size = 8192, /* or 8448, determined from status register */ |
| 3026 | .page_size = 1024, /* or 1056, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3027 | /* 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] | 3028 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 3029 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 3030 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3031 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3032 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3033 | .block_erasers = |
| 3034 | { |
| 3035 | { |
| 3036 | .eraseblocks = { {1024, 8192} }, |
| 3037 | .block_erase = spi_erase_at45db_page, |
| 3038 | }, { |
| 3039 | .eraseblocks = { {8 * 1024, 8192/8} }, |
| 3040 | .block_erase = spi_erase_at45db_block, |
| 3041 | }, { |
| 3042 | .eraseblocks = { |
| 3043 | {8 * 1024, 1}, |
| 3044 | {248 * 1024, 1}, |
| 3045 | {256 * 1024, 31}, |
| 3046 | }, |
| 3047 | .block_erase = spi_erase_at45db_sector |
| 3048 | }, { |
| 3049 | .eraseblocks = { {8192 * 1024, 1} }, |
| 3050 | .block_erase = spi_erase_at45db_chip, |
| 3051 | } |
| 3052 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3053 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3054 | .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] | 3055 | /* granularity will be set by the probing function. */ |
| 3056 | .write = spi_write_at45db, |
| 3057 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3058 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 3059 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3060 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3061 | { |
| 3062 | .vendor = "Atmel", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3063 | .name = "AT49(H)F010", |
| 3064 | .bustype = BUS_PARALLEL, |
| 3065 | .manufacture_id = ATMEL_ID, |
| 3066 | .model_id = ATMEL_AT49F010, |
| 3067 | .total_size = 128, |
| 3068 | .page_size = 0, /* unused */ |
| 3069 | .feature_bits = FEATURE_EITHER_RESET, |
| 3070 | .tested = TEST_OK_PREW, |
| 3071 | .probe = probe_jedec, |
| 3072 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3073 | .block_erasers = |
| 3074 | { |
| 3075 | { |
| 3076 | .eraseblocks = { {128 * 1024, 1} }, |
| 3077 | .block_erase = erase_chip_block_jedec, |
| 3078 | } |
| 3079 | }, |
| 3080 | .printlock = printlock_at49f, |
| 3081 | .write = write_jedec_1, |
| 3082 | .read = read_memmapped, |
| 3083 | .voltage = {4500, 5500}, |
| 3084 | }, |
| 3085 | |
| 3086 | { |
| 3087 | .vendor = "Atmel", |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3088 | .name = "AT49BV512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3089 | .bustype = BUS_PARALLEL, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3090 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3091 | .model_id = ATMEL_AT49BV512, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3092 | .total_size = 64, |
| 3093 | .page_size = 64, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3094 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 3095 | .tested = TEST_OK_PREW, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3096 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3097 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 3098 | .block_erasers = |
| 3099 | { |
| 3100 | { |
| 3101 | .eraseblocks = { {64 * 1024, 1} }, |
| 3102 | .block_erase = erase_chip_block_jedec, |
| 3103 | } |
| 3104 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3105 | .write = write_jedec_1, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3106 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3107 | .voltage = {2700, 3600}, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3108 | }, |
| 3109 | |
| 3110 | { |
| 3111 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3112 | .name = "AT49F002(N)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3113 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3114 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3115 | .model_id = ATMEL_AT49F002N, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3116 | .total_size = 256, |
| 3117 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3118 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3119 | .tested = TEST_UNTESTED, |
| 3120 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3121 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 3122 | .block_erasers = |
| 3123 | { |
| 3124 | { |
| 3125 | .eraseblocks = { |
| 3126 | {16 * 1024, 1}, |
| 3127 | {8 * 1024, 2}, |
| 3128 | {96 * 1024, 1}, |
| 3129 | {128 * 1024, 1}, |
| 3130 | }, |
| 3131 | .block_erase = erase_sector_jedec, |
| 3132 | }, { |
| 3133 | .eraseblocks = { {256 * 1024, 1} }, |
| 3134 | .block_erase = erase_chip_block_jedec, |
| 3135 | } |
| 3136 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3137 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3138 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3139 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3140 | }, |
| 3141 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3142 | { |
| 3143 | .vendor = "Atmel", |
| 3144 | .name = "AT49F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3145 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3146 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3147 | .model_id = ATMEL_AT49F002NT, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3148 | .total_size = 256, |
| 3149 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3150 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 3151 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3152 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3153 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 3154 | .block_erasers = |
| 3155 | { |
| 3156 | { |
| 3157 | .eraseblocks = { |
| 3158 | {128 * 1024, 1}, |
| 3159 | {96 * 1024, 1}, |
| 3160 | {8 * 1024, 2}, |
| 3161 | {16 * 1024, 1}, |
| 3162 | }, |
| 3163 | .block_erase = erase_sector_jedec, |
| 3164 | }, { |
| 3165 | .eraseblocks = { {256 * 1024, 1} }, |
| 3166 | .block_erase = erase_chip_block_jedec, |
| 3167 | } |
| 3168 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3169 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3170 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3171 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3172 | }, |
| 3173 | |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 3174 | { |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3175 | .vendor = "Atmel", |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 3176 | .name = "AT49F020", |
| 3177 | .bustype = BUS_PARALLEL, |
| 3178 | .manufacture_id = ATMEL_ID, |
| 3179 | .model_id = ATMEL_AT49F020, |
| 3180 | .total_size = 256, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3181 | .page_size = 0, /* unused */ |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 3182 | .feature_bits = FEATURE_EITHER_RESET, |
| 3183 | .tested = TEST_OK_PRE, |
| 3184 | .probe = probe_jedec, |
| 3185 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3186 | .block_erasers = |
| 3187 | { |
| 3188 | { |
| 3189 | .eraseblocks = { {256 * 1024, 1} }, |
| 3190 | .block_erase = erase_chip_block_jedec, |
| 3191 | } |
| 3192 | /* Chip features an optional permanent write protection |
| 3193 | * of the first 8 kB. The erase function is the same as |
| 3194 | * above, but 00000H to 01FFFH will not be erased. |
| 3195 | * FIXME: add another eraser when partial erasers are |
| 3196 | * supported. |
| 3197 | */ |
| 3198 | }, |
| 3199 | .printlock = printlock_at49f, |
| 3200 | .write = write_jedec_1, |
| 3201 | .read = read_memmapped, |
| 3202 | .voltage = {4500, 5500}, |
| 3203 | }, |
| 3204 | |
| 3205 | { |
| 3206 | .vendor = "Atmel", |
| 3207 | .name = "AT49F040", |
| 3208 | .bustype = BUS_PARALLEL, |
| 3209 | .manufacture_id = ATMEL_ID, |
| 3210 | .model_id = ATMEL_AT49F040, |
| 3211 | .total_size = 512, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3212 | .page_size = 0, /* unused */ |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 3213 | .feature_bits = FEATURE_EITHER_RESET, |
| 3214 | .tested = TEST_UNTESTED, |
| 3215 | .probe = probe_jedec, |
| 3216 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3217 | .block_erasers = |
| 3218 | { |
| 3219 | { |
| 3220 | .eraseblocks = { {512 * 1024, 1} }, |
| 3221 | .block_erase = erase_chip_block_jedec, |
| 3222 | } |
| 3223 | /* Chip features an optional permanent write protection |
| 3224 | * of the first 16 kB. The erase function is the same as |
| 3225 | * above, but 00000H to 03FFFH will not be erased. |
| 3226 | * FIXME: add another eraser when partial erasers are |
| 3227 | * supported. |
| 3228 | */ |
| 3229 | }, |
| 3230 | .printlock = printlock_at49f, |
| 3231 | .write = write_jedec_1, |
| 3232 | .read = read_memmapped, |
| 3233 | .voltage = {4500, 5500}, |
| 3234 | }, |
| 3235 | |
| 3236 | { |
| 3237 | .vendor = "Atmel", |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3238 | .name = "AT49F080", |
| 3239 | .bustype = BUS_PARALLEL, |
| 3240 | .manufacture_id = ATMEL_ID, |
| 3241 | .model_id = ATMEL_AT49F080, |
| 3242 | .total_size = 1024, |
| 3243 | .page_size = 0, /* unused */ |
| 3244 | .feature_bits = FEATURE_EITHER_RESET, |
| 3245 | .tested = TEST_UNTESTED, |
| 3246 | .probe = probe_jedec, |
| 3247 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3248 | .block_erasers = |
| 3249 | { |
| 3250 | { |
| 3251 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3252 | .block_erase = erase_chip_block_jedec, |
| 3253 | } |
| 3254 | /* Chip features an optional permanent write protection |
| 3255 | * of the first 16 kB. The erase function is the same as |
| 3256 | * above, but 00000H to 03FFFH will not be erased. |
| 3257 | * FIXME: add another eraser when partial erasers are |
| 3258 | * supported. |
| 3259 | */ |
| 3260 | }, |
| 3261 | .printlock = printlock_at49f, |
| 3262 | .write = write_jedec_1, |
| 3263 | .read = read_memmapped, |
| 3264 | .voltage = {4500, 5500}, |
| 3265 | }, |
| 3266 | |
| 3267 | { |
| 3268 | /* 'top' version of AT49F080. equal in all aspects but the boot block address */ |
| 3269 | .vendor = "Atmel", |
| 3270 | .name = "AT49F080T", |
| 3271 | .bustype = BUS_PARALLEL, |
| 3272 | .manufacture_id = ATMEL_ID, |
| 3273 | .model_id = ATMEL_AT49F080T, |
| 3274 | .total_size = 1024, |
| 3275 | .page_size = 0, /* unused */ |
| 3276 | .feature_bits = FEATURE_EITHER_RESET, |
| 3277 | .tested = TEST_UNTESTED, |
| 3278 | .probe = probe_jedec, |
| 3279 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3280 | .block_erasers = |
| 3281 | { |
| 3282 | { |
| 3283 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3284 | .block_erase = erase_chip_block_jedec, |
| 3285 | } |
| 3286 | /* Chip features an optional permanent write protection |
| 3287 | * of the first 16 kB. The erase function is the same as |
| 3288 | * above, but FC000H to FFFFFH will not be erased. |
| 3289 | * FIXME: add another eraser when partial erasers are |
| 3290 | * supported. |
| 3291 | */ |
| 3292 | }, |
| 3293 | .printlock = printlock_at49f, |
| 3294 | .write = write_jedec_1, |
| 3295 | .read = read_memmapped, |
| 3296 | .voltage = {4500, 5500}, |
| 3297 | }, |
| 3298 | |
| 3299 | { |
| 3300 | .vendor = "Atmel", |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3301 | .name = "AT49LH002", |
| 3302 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 3303 | .manufacture_id = ATMEL_ID, |
| 3304 | .model_id = ATMEL_AT49LH002, |
| 3305 | .total_size = 256, |
| 3306 | .page_size = 0, /* unused */ |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3307 | .feature_bits = FEATURE_REGISTERMAP, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3308 | .tested = TEST_UNTESTED, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3309 | .probe = probe_82802ab, |
| 3310 | .probe_timing = TIMING_ZERO, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3311 | .block_erasers = |
| 3312 | { |
| 3313 | { |
| 3314 | .eraseblocks = { |
| 3315 | {64 * 1024, 3}, |
| 3316 | {32 * 1024, 1}, |
| 3317 | {8 * 1024, 2}, |
| 3318 | {16 * 1024, 1}, |
| 3319 | }, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3320 | .block_erase = NULL, /* TODO: Implement. */ |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3321 | }, { |
| 3322 | .eraseblocks = { |
| 3323 | {64 * 1024, 4}, |
| 3324 | }, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3325 | .block_erase = erase_block_82802ab, |
| 3326 | }, |
| 3327 | }, |
| 3328 | .printlock = printlock_regspace2_block_eraser_0, |
| 3329 | .unlock = unlock_regspace2_block_eraser_0, |
| 3330 | .write = write_82802ab, |
| 3331 | .read = read_memmapped, |
| 3332 | .voltage = {3000, 3600}, |
| 3333 | }, |
| 3334 | |
| 3335 | { |
| 3336 | .vendor = "Atmel", |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3337 | .name = "AT49LH004", |
| 3338 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 3339 | .manufacture_id = ATMEL_ID, |
| 3340 | .model_id = ATMEL_AT49LH004, |
| 3341 | .total_size = 512, |
| 3342 | .page_size = 0, /* unused */ |
| 3343 | .feature_bits = FEATURE_REGISTERMAP, |
| 3344 | .tested = TEST_UNTESTED, |
| 3345 | .probe = probe_82802ab, |
| 3346 | .probe_timing = TIMING_ZERO, |
| 3347 | .block_erasers = |
| 3348 | { |
| 3349 | { |
| 3350 | .eraseblocks = { |
| 3351 | {64 * 1024, 7}, |
| 3352 | {32 * 1024, 1}, |
| 3353 | {8 * 1024, 2}, |
| 3354 | {16 * 1024, 1}, |
| 3355 | }, |
| 3356 | .block_erase = erase_block_82802ab, |
| 3357 | }, { |
| 3358 | .eraseblocks = { |
| 3359 | {64 * 1024, 8}, |
| 3360 | }, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3361 | .block_erase = NULL, /* TODO: Implement. */ |
| 3362 | }, |
| 3363 | }, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3364 | .printlock = printlock_regspace2_block_eraser_0, |
| 3365 | .unlock = unlock_regspace2_block_eraser_0, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3366 | .write = write_82802ab, |
| 3367 | .read = read_memmapped, |
| 3368 | .voltage = {3000, 3600}, |
| 3369 | }, |
| 3370 | |
| 3371 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3372 | .vendor = "Atmel", |
| 3373 | .name = "AT49LH00B4", |
| 3374 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 3375 | .manufacture_id = ATMEL_ID, |
| 3376 | .model_id = ATMEL_AT49LH00B4, |
| 3377 | .total_size = 512, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3378 | .page_size = 0, /* unused */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3379 | .feature_bits = FEATURE_REGISTERMAP, |
| 3380 | .tested = TEST_UNTESTED, |
| 3381 | .probe = probe_82802ab, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3382 | .probe_timing = TIMING_ZERO, |
| 3383 | .block_erasers = |
| 3384 | { |
| 3385 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3386 | .eraseblocks = { |
| 3387 | {8 * 1024, 2}, |
| 3388 | {16 * 1024, 1}, |
| 3389 | {32 * 1024, 1}, |
| 3390 | {64 * 1024, 7}, |
| 3391 | }, |
| 3392 | .block_erase = NULL, /* TODO: Implement. */ |
| 3393 | }, { |
| 3394 | .eraseblocks = { |
| 3395 | {64 * 1024, 8}, |
| 3396 | }, |
| 3397 | .block_erase = erase_block_82802ab, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3398 | }, |
| 3399 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3400 | .printlock = printlock_regspace2_block_eraser_0, |
| 3401 | .unlock = unlock_regspace2_block_eraser_0, |
| 3402 | .write = write_82802ab, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3403 | .read = read_memmapped, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3404 | .voltage = {3000, 3600}, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3405 | }, |
| 3406 | |
| 3407 | { |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3408 | .vendor = "Bright", |
| 3409 | .name = "BM29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3410 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3411 | .manufacture_id = BRIGHT_ID, |
| 3412 | .model_id = BRIGHT_BM29F040, |
| 3413 | .total_size = 512, |
| 3414 | .page_size = 64 * 1024, |
| 3415 | .feature_bits = FEATURE_EITHER_RESET, |
| 3416 | .tested = TEST_OK_PR, |
| 3417 | .probe = probe_jedec, |
| 3418 | .probe_timing = TIMING_ZERO, |
| 3419 | .block_erasers = |
| 3420 | { |
| 3421 | { |
| 3422 | .eraseblocks = { {64 * 1024, 8} }, |
| 3423 | .block_erase = erase_sector_jedec, |
| 3424 | }, { |
| 3425 | .eraseblocks = { {512 * 1024, 1} }, |
| 3426 | .block_erase = erase_chip_block_jedec, |
| 3427 | }, |
| 3428 | }, |
| 3429 | .write = write_jedec_1, |
| 3430 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 3431 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3432 | }, |
| 3433 | |
| 3434 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3435 | .vendor = "Catalyst", |
| 3436 | .name = "CAT28F512", |
| 3437 | .bustype = BUS_PARALLEL, |
| 3438 | .manufacture_id = CATALYST_ID, |
| 3439 | .model_id = CATALYST_CAT28F512, |
| 3440 | .total_size = 64, |
| 3441 | .page_size = 0, /* unused */ |
| 3442 | .feature_bits = 0, |
Alan Green | 908adf4 | 2019-07-03 15:34:06 +1000 | [diff] [blame] | 3443 | .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD}, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3444 | .probe = probe_jedec, /* FIXME! */ |
| 3445 | .probe_timing = TIMING_ZERO, |
| 3446 | .block_erasers = |
| 3447 | { |
| 3448 | { |
| 3449 | .eraseblocks = { {64 * 1024, 1} }, |
| 3450 | .block_erase = NULL, /* TODO */ |
| 3451 | }, |
| 3452 | }, |
| 3453 | .write = NULL, /* TODO */ |
| 3454 | .read = read_memmapped, |
| 3455 | .voltage = {4500, 5500}, |
| 3456 | }, |
| 3457 | |
| 3458 | { |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3459 | .vendor = "ENE", |
| 3460 | .name = "KB9012 (EDI)", |
| 3461 | .bustype = BUS_SPI, |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3462 | .total_size = 128, |
| 3463 | .page_size = 128, |
| 3464 | .feature_bits = FEATURE_ERASED_ZERO, |
| 3465 | .tested = TEST_OK_PREW, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3466 | .spi_cmd_set = SPI_EDI, |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3467 | .probe = edi_probe_kb9012, |
| 3468 | .probe_timing = TIMING_ZERO, |
| 3469 | .block_erasers = |
| 3470 | { |
| 3471 | { |
| 3472 | .eraseblocks = { {128, 1024} }, |
| 3473 | .block_erase = edi_chip_block_erase, |
| 3474 | }, |
| 3475 | }, |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3476 | .write = edi_chip_write, |
| 3477 | .read = edi_chip_read, |
| 3478 | .voltage = {2700, 3600}, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3479 | .gran = write_gran_128bytes, |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3480 | }, |
| 3481 | |
| 3482 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3483 | .vendor = "ESI", |
| 3484 | .name = "ES25P16", |
| 3485 | .bustype = BUS_SPI, |
| 3486 | .manufacture_id = EXCEL_ID_NOPREFIX, |
| 3487 | .model_id = EXCEL_ES25P16, |
| 3488 | .total_size = 2 * 1024, |
| 3489 | .page_size = 256, |
| 3490 | /* 256-byte parameter page separate from memory array: |
| 3491 | * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */ |
| 3492 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3493 | .tested = TEST_UNTESTED, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3494 | .probe = probe_spi_rdid, |
| 3495 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3496 | .block_erasers = |
| 3497 | { |
| 3498 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3499 | .eraseblocks = { {64 * 1024, 32} }, |
| 3500 | .block_erase = spi_block_erase_d8, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3501 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3502 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3503 | .block_erase = spi_block_erase_c7, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3504 | } |
| 3505 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3506 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 3507 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 3508 | .write = spi_chip_write_256, |
| 3509 | .read = spi_chip_read, /* Fast Read (0x0B) supported */ |
| 3510 | .voltage = {2700, 3600}, |
| 3511 | }, |
| 3512 | |
| 3513 | { |
| 3514 | .vendor = "ESI", |
| 3515 | .name = "ES25P40", |
| 3516 | .bustype = BUS_SPI, |
| 3517 | .manufacture_id = EXCEL_ID_NOPREFIX, |
| 3518 | .model_id = EXCEL_ES25P40, |
| 3519 | .total_size = 512, |
| 3520 | .page_size = 256, |
| 3521 | /* 256-byte parameter page separate from memory array: |
| 3522 | * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */ |
| 3523 | .feature_bits = FEATURE_WRSR_WREN, |
| 3524 | .tested = TEST_UNTESTED, |
| 3525 | .probe = probe_spi_rdid, |
| 3526 | .probe_timing = TIMING_ZERO, |
| 3527 | .block_erasers = |
| 3528 | { |
| 3529 | { |
| 3530 | .eraseblocks = { {64 * 1024, 8} }, |
| 3531 | .block_erase = spi_block_erase_d8, |
| 3532 | }, { |
| 3533 | .eraseblocks = { {512 * 1024, 1} }, |
| 3534 | .block_erase = spi_block_erase_c7, |
| 3535 | } |
| 3536 | }, |
| 3537 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 3538 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 3539 | .write = spi_chip_write_256, |
| 3540 | .read = spi_chip_read, /* Fast Read (0x0B) supported */ |
| 3541 | .voltage = {2700, 3600}, |
| 3542 | }, |
| 3543 | |
| 3544 | { |
| 3545 | .vendor = "ESI", |
| 3546 | .name = "ES25P80", |
| 3547 | .bustype = BUS_SPI, |
| 3548 | .manufacture_id = EXCEL_ID_NOPREFIX, |
| 3549 | .model_id = EXCEL_ES25P80, |
| 3550 | .total_size = 1024, |
| 3551 | .page_size = 256, |
| 3552 | /* 256-byte parameter page separate from memory array: |
| 3553 | * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */ |
| 3554 | .feature_bits = FEATURE_WRSR_WREN, |
| 3555 | .tested = TEST_UNTESTED, |
| 3556 | .probe = probe_spi_rdid, |
| 3557 | .probe_timing = TIMING_ZERO, |
| 3558 | .block_erasers = |
| 3559 | { |
| 3560 | { |
| 3561 | .eraseblocks = { {64 * 1024, 16} }, |
| 3562 | .block_erase = spi_block_erase_d8, |
| 3563 | }, { |
| 3564 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3565 | .block_erase = spi_block_erase_c7, |
| 3566 | } |
| 3567 | }, |
| 3568 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 3569 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 3570 | .write = spi_chip_write_256, |
| 3571 | .read = spi_chip_read, /* Fast Read (0x0B) supported */ |
| 3572 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3573 | }, |
| 3574 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3575 | { |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3576 | .vendor = "ESMT", |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3577 | .name = "F25L008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3578 | .bustype = BUS_SPI, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3579 | .manufacture_id = ESMT_ID, |
| 3580 | .model_id = ESMT_F25L008A, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3581 | .total_size = 1024, |
| 3582 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3583 | .feature_bits = FEATURE_WRSR_EITHER, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 3584 | .tested = TEST_OK_PREW, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3585 | .probe = probe_spi_rdid, |
| 3586 | .probe_timing = TIMING_ZERO, |
| 3587 | .block_erasers = |
| 3588 | { |
| 3589 | { |
| 3590 | .eraseblocks = { {4 * 1024, 256} }, |
| 3591 | .block_erase = spi_block_erase_20, |
| 3592 | }, { |
| 3593 | .eraseblocks = { {64 * 1024, 16} }, |
| 3594 | .block_erase = spi_block_erase_d8, |
| 3595 | }, { |
| 3596 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3597 | .block_erase = spi_block_erase_60, |
| 3598 | }, { |
| 3599 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3600 | .block_erase = spi_block_erase_c7, |
| 3601 | } |
| 3602 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3603 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3604 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 9a795d8 | 2010-07-14 16:19:05 +0000 | [diff] [blame] | 3605 | .write = spi_chip_write_1, |
Michael Karcher | 4497e86 | 2010-07-10 19:34:15 +0000 | [diff] [blame] | 3606 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3607 | .voltage = {2700, 3600}, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3608 | }, |
| 3609 | |
| 3610 | { |
Stefan Tauner | 85f09f7 | 2014-05-27 21:27:14 +0000 | [diff] [blame] | 3611 | .vendor = "ESMT", |
| 3612 | .name = "F25L32PA", |
| 3613 | .bustype = BUS_SPI, |
| 3614 | .manufacture_id = ESMT_ID, |
| 3615 | .model_id = ESMT_F25L32PA, |
| 3616 | .total_size = 4096, |
| 3617 | .page_size = 256, |
| 3618 | .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP, |
| 3619 | .tested = TEST_UNTESTED, |
| 3620 | .probe = probe_spi_rdid, |
| 3621 | .probe_timing = TIMING_ZERO, |
| 3622 | .block_erasers = |
| 3623 | { |
| 3624 | { |
| 3625 | .eraseblocks = { {4 * 1024, 1024} }, |
| 3626 | .block_erase = spi_block_erase_20, |
| 3627 | }, { |
| 3628 | .eraseblocks = { {64 * 1024, 64} }, |
| 3629 | .block_erase = spi_block_erase_d8, |
| 3630 | }, { |
| 3631 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3632 | .block_erase = spi_block_erase_60, |
| 3633 | }, { |
| 3634 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3635 | .block_erase = spi_block_erase_c7, |
| 3636 | } |
| 3637 | }, |
| 3638 | .printlock = spi_prettyprint_status_register_bp2_bpl, |
| 3639 | .unlock = spi_disable_blockprotect, |
| 3640 | .write = spi_chip_write_256, |
| 3641 | .read = spi_chip_read, |
| 3642 | .voltage = {2700, 3600}, |
| 3643 | }, |
| 3644 | |
| 3645 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3646 | .vendor = "ESMT", |
| 3647 | .name = "F49B002UA", |
| 3648 | .bustype = BUS_PARALLEL, |
| 3649 | .manufacture_id = ESMT_ID, |
| 3650 | .model_id = ESMT_F49B002UA, |
| 3651 | .total_size = 256, |
| 3652 | .page_size = 4096, |
| 3653 | .feature_bits = FEATURE_EITHER_RESET, |
| 3654 | .tested = TEST_UNTESTED, |
| 3655 | .probe = probe_jedec, |
| 3656 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3657 | .block_erasers = |
| 3658 | { |
| 3659 | { |
| 3660 | .eraseblocks = { |
| 3661 | {128 * 1024, 1}, |
| 3662 | {96 * 1024, 1}, |
| 3663 | {8 * 1024, 2}, |
| 3664 | {16 * 1024, 1}, |
| 3665 | }, |
| 3666 | .block_erase = erase_sector_jedec, |
| 3667 | }, { |
| 3668 | .eraseblocks = { {256 * 1024, 1} }, |
| 3669 | .block_erase = erase_chip_block_jedec, |
| 3670 | } |
| 3671 | }, |
| 3672 | .write = write_jedec_1, |
| 3673 | .read = read_memmapped, |
| 3674 | .voltage = {4500, 5500}, |
| 3675 | }, |
| 3676 | |
| 3677 | { |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3678 | .vendor = "Eon", |
| 3679 | .name = "EN25B05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3680 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3681 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3682 | .model_id = EON_EN25B05, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3683 | .total_size = 64, |
| 3684 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3685 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3686 | .tested = TEST_UNTESTED, |
| 3687 | .probe = probe_spi_rdid, |
| 3688 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3689 | .block_erasers = |
| 3690 | { |
| 3691 | { |
| 3692 | .eraseblocks = { |
| 3693 | {4 * 1024, 2}, |
| 3694 | {8 * 1024, 1}, |
| 3695 | {16 * 1024, 1}, |
| 3696 | {32 * 1024, 1}, |
| 3697 | }, |
| 3698 | .block_erase = spi_block_erase_d8, |
| 3699 | }, { |
| 3700 | .eraseblocks = { {64 * 1024, 1} }, |
| 3701 | .block_erase = spi_block_erase_c7, |
| 3702 | } |
| 3703 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3704 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3705 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3706 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3707 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3708 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3709 | }, |
| 3710 | |
| 3711 | { |
| 3712 | .vendor = "Eon", |
| 3713 | .name = "EN25B05T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3714 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3715 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3716 | .model_id = EON_EN25B05, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3717 | .total_size = 64, |
| 3718 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3719 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3720 | .tested = TEST_UNTESTED, |
| 3721 | .probe = probe_spi_rdid, |
| 3722 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3723 | .block_erasers = |
| 3724 | { |
| 3725 | { |
| 3726 | .eraseblocks = { |
| 3727 | {32 * 1024, 1}, |
| 3728 | {16 * 1024, 1}, |
| 3729 | {8 * 1024, 1}, |
| 3730 | {4 * 1024, 2}, |
| 3731 | }, |
| 3732 | .block_erase = spi_block_erase_d8, |
| 3733 | }, { |
| 3734 | .eraseblocks = { {64 * 1024, 1} }, |
| 3735 | .block_erase = spi_block_erase_c7, |
| 3736 | } |
| 3737 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3738 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3739 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3740 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3741 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3742 | .voltage = {2700, 3600}, |
| 3743 | }, |
| 3744 | |
| 3745 | { |
| 3746 | .vendor = "Eon", |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3747 | .name = "EN25B10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3748 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3749 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3750 | .model_id = EON_EN25B10, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3751 | .total_size = 128, |
| 3752 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3753 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3754 | .tested = TEST_UNTESTED, |
| 3755 | .probe = probe_spi_rdid, |
| 3756 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3757 | .block_erasers = |
| 3758 | { |
| 3759 | { |
| 3760 | .eraseblocks = { |
| 3761 | {4 * 1024, 2}, |
| 3762 | {8 * 1024, 1}, |
| 3763 | {16 * 1024, 1}, |
| 3764 | {32 * 1024, 3}, |
| 3765 | }, |
| 3766 | .block_erase = spi_block_erase_d8, |
| 3767 | }, { |
| 3768 | .eraseblocks = { {128 * 1024, 1} }, |
| 3769 | .block_erase = spi_block_erase_c7, |
| 3770 | } |
| 3771 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3772 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3773 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3774 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3775 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3776 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3777 | }, |
| 3778 | |
| 3779 | { |
| 3780 | .vendor = "Eon", |
| 3781 | .name = "EN25B10T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3782 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3783 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3784 | .model_id = EON_EN25B10, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3785 | .total_size = 128, |
| 3786 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3787 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 3788 | .tested = TEST_OK_PREW, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3789 | .probe = probe_spi_rdid, |
| 3790 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3791 | .block_erasers = |
| 3792 | { |
| 3793 | { |
| 3794 | .eraseblocks = { |
| 3795 | {32 * 1024, 3}, |
| 3796 | {16 * 1024, 1}, |
| 3797 | {8 * 1024, 1}, |
| 3798 | {4 * 1024, 2}, |
| 3799 | }, |
| 3800 | .block_erase = spi_block_erase_d8, |
| 3801 | }, { |
| 3802 | .eraseblocks = { {128 * 1024, 1} }, |
| 3803 | .block_erase = spi_block_erase_c7, |
| 3804 | } |
| 3805 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3806 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3807 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3808 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3809 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3810 | .voltage = {2700, 3600}, |
| 3811 | }, |
| 3812 | |
| 3813 | { |
| 3814 | .vendor = "Eon", |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3815 | .name = "EN25B16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3816 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3817 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3818 | .model_id = EON_EN25B16, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3819 | .total_size = 2048, |
| 3820 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3821 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3822 | .tested = TEST_UNTESTED, |
| 3823 | .probe = probe_spi_rdid, |
| 3824 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3825 | .block_erasers = |
| 3826 | { |
| 3827 | { |
| 3828 | .eraseblocks = { |
| 3829 | {4 * 1024, 2}, |
| 3830 | {8 * 1024, 1}, |
| 3831 | {16 * 1024, 1}, |
| 3832 | {32 * 1024, 1}, |
| 3833 | {64 * 1024, 31}, |
| 3834 | }, |
| 3835 | .block_erase = spi_block_erase_d8, |
| 3836 | }, { |
| 3837 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3838 | .block_erase = spi_block_erase_c7, |
| 3839 | } |
| 3840 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3841 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3842 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3843 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3844 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3845 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3846 | }, |
| 3847 | |
| 3848 | { |
| 3849 | .vendor = "Eon", |
| 3850 | .name = "EN25B16T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3851 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3852 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3853 | .model_id = EON_EN25B16, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3854 | .total_size = 2048, |
| 3855 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3856 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3857 | .tested = TEST_UNTESTED, |
| 3858 | .probe = probe_spi_rdid, |
| 3859 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3860 | .block_erasers = |
| 3861 | { |
| 3862 | { |
| 3863 | .eraseblocks = { |
| 3864 | {64 * 1024, 31}, |
| 3865 | {32 * 1024, 1}, |
| 3866 | {16 * 1024, 1}, |
| 3867 | {8 * 1024, 1}, |
| 3868 | {4 * 1024, 2}, |
| 3869 | }, |
| 3870 | .block_erase = spi_block_erase_d8, |
| 3871 | }, { |
| 3872 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3873 | .block_erase = spi_block_erase_c7, |
| 3874 | } |
| 3875 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3876 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3877 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3878 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3879 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3880 | .voltage = {2700, 3600}, |
| 3881 | }, |
| 3882 | |
| 3883 | { |
| 3884 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3885 | .name = "EN25B20", |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3886 | .bustype = BUS_SPI, |
| 3887 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3888 | .model_id = EON_EN25B20, |
| 3889 | .total_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3890 | .page_size = 256, |
| 3891 | .feature_bits = FEATURE_WRSR_WREN, |
| 3892 | .tested = TEST_UNTESTED, |
| 3893 | .probe = probe_spi_rdid, |
| 3894 | .probe_timing = TIMING_ZERO, |
| 3895 | .block_erasers = |
| 3896 | { |
| 3897 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3898 | .eraseblocks = { |
| 3899 | {4 * 1024, 2}, |
| 3900 | {8 * 1024, 1}, |
| 3901 | {16 * 1024, 1}, |
| 3902 | {32 * 1024, 1}, |
| 3903 | {64 * 1024, 3} |
| 3904 | }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3905 | .block_erase = spi_block_erase_d8, |
| 3906 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3907 | .eraseblocks = { {256 * 1024, 1} }, |
| 3908 | .block_erase = spi_block_erase_c7, |
| 3909 | } |
| 3910 | }, |
| 3911 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 3912 | .unlock = spi_disable_blockprotect, |
| 3913 | .write = spi_chip_write_256, |
| 3914 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3915 | .voltage = {2700, 3600}, |
| 3916 | }, |
| 3917 | |
| 3918 | { |
| 3919 | .vendor = "Eon", |
| 3920 | .name = "EN25B20T", |
| 3921 | .bustype = BUS_SPI, |
| 3922 | .manufacture_id = EON_ID_NOPREFIX, |
| 3923 | .model_id = EON_EN25B20, |
| 3924 | .total_size = 256, |
| 3925 | .page_size = 256, |
| 3926 | .feature_bits = FEATURE_WRSR_WREN, |
| 3927 | .tested = TEST_UNTESTED, |
| 3928 | .probe = probe_spi_rdid, |
| 3929 | .probe_timing = TIMING_ZERO, |
| 3930 | .block_erasers = |
| 3931 | { |
| 3932 | { |
| 3933 | .eraseblocks = { |
| 3934 | {64 * 1024, 3}, |
| 3935 | {32 * 1024, 1}, |
| 3936 | {16 * 1024, 1}, |
| 3937 | {8 * 1024, 1}, |
| 3938 | {4 * 1024, 2}, |
| 3939 | }, |
| 3940 | .block_erase = spi_block_erase_d8, |
| 3941 | }, { |
| 3942 | .eraseblocks = { {256 * 1024, 1} }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3943 | .block_erase = spi_block_erase_c7, |
| 3944 | } |
| 3945 | }, |
| 3946 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 3947 | .unlock = spi_disable_blockprotect, |
| 3948 | .write = spi_chip_write_256, |
| 3949 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3950 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3951 | }, |
| 3952 | |
| 3953 | { |
| 3954 | .vendor = "Eon", |
| 3955 | .name = "EN25B32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3956 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3957 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3958 | .model_id = EON_EN25B32, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3959 | .total_size = 4096, |
| 3960 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3961 | /* OTP: 512B total; enter 0x3A */ |
| 3962 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3963 | .tested = TEST_UNTESTED, |
| 3964 | .probe = probe_spi_rdid, |
| 3965 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3966 | .block_erasers = |
| 3967 | { |
| 3968 | { |
| 3969 | .eraseblocks = { |
| 3970 | {4 * 1024, 2}, |
| 3971 | {8 * 1024, 1}, |
| 3972 | {16 * 1024, 1}, |
| 3973 | {32 * 1024, 1}, |
| 3974 | {64 * 1024, 63}, |
| 3975 | }, |
| 3976 | .block_erase = spi_block_erase_d8, |
| 3977 | }, { |
| 3978 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3979 | .block_erase = spi_block_erase_c7, |
| 3980 | } |
| 3981 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3982 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3983 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3984 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3985 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3986 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3987 | }, |
| 3988 | |
| 3989 | { |
| 3990 | .vendor = "Eon", |
| 3991 | .name = "EN25B32T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3992 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3993 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3994 | .model_id = EON_EN25B32, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3995 | .total_size = 4096, |
| 3996 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3997 | /* OTP: 512B total; enter 0x3A */ |
| 3998 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3999 | .tested = TEST_UNTESTED, |
| 4000 | .probe = probe_spi_rdid, |
| 4001 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4002 | .block_erasers = |
| 4003 | { |
| 4004 | { |
| 4005 | .eraseblocks = { |
| 4006 | {64 * 1024, 63}, |
| 4007 | {32 * 1024, 1}, |
| 4008 | {16 * 1024, 1}, |
| 4009 | {8 * 1024, 1}, |
| 4010 | {4 * 1024, 2}, |
| 4011 | }, |
| 4012 | .block_erase = spi_block_erase_d8, |
| 4013 | }, { |
| 4014 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4015 | .block_erase = spi_block_erase_c7, |
| 4016 | } |
| 4017 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4018 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4019 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4020 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4021 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4022 | .voltage = {2700, 3600}, |
| 4023 | }, |
| 4024 | |
| 4025 | { |
| 4026 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4027 | .name = "EN25B40", |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4028 | .bustype = BUS_SPI, |
| 4029 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4030 | .model_id = EON_EN25B40, |
| 4031 | .total_size = 512, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4032 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4033 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4034 | .tested = TEST_UNTESTED, |
| 4035 | .probe = probe_spi_rdid, |
| 4036 | .probe_timing = TIMING_ZERO, |
| 4037 | .block_erasers = |
| 4038 | { |
| 4039 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4040 | .eraseblocks = { |
| 4041 | {4 * 1024, 2}, |
| 4042 | {8 * 1024, 1}, |
| 4043 | {16 * 1024, 1}, |
| 4044 | {32 * 1024, 1}, |
| 4045 | {64 * 1024, 7} |
| 4046 | }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4047 | .block_erase = spi_block_erase_d8, |
| 4048 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4049 | .eraseblocks = { {512 * 1024, 1} }, |
| 4050 | .block_erase = spi_block_erase_c7, |
| 4051 | } |
| 4052 | }, |
| 4053 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4054 | .unlock = spi_disable_blockprotect, |
| 4055 | .write = spi_chip_write_256, |
| 4056 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4057 | .voltage = {2700, 3600}, |
| 4058 | }, |
| 4059 | |
| 4060 | { |
| 4061 | .vendor = "Eon", |
| 4062 | .name = "EN25B40T", |
| 4063 | .bustype = BUS_SPI, |
| 4064 | .manufacture_id = EON_ID_NOPREFIX, |
| 4065 | .model_id = EON_EN25B40, |
| 4066 | .total_size = 512, |
| 4067 | .page_size = 256, |
| 4068 | .feature_bits = FEATURE_WRSR_WREN, |
| 4069 | .tested = TEST_UNTESTED, |
| 4070 | .probe = probe_spi_rdid, |
| 4071 | .probe_timing = TIMING_ZERO, |
| 4072 | .block_erasers = |
| 4073 | { |
| 4074 | { |
| 4075 | .eraseblocks = { |
| 4076 | {64 * 1024, 7}, |
| 4077 | {32 * 1024, 1}, |
| 4078 | {16 * 1024, 1}, |
| 4079 | {8 * 1024, 1}, |
| 4080 | {4 * 1024, 2}, |
| 4081 | }, |
| 4082 | .block_erase = spi_block_erase_d8, |
| 4083 | }, { |
| 4084 | .eraseblocks = { {512 * 1024, 1} }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4085 | .block_erase = spi_block_erase_c7, |
| 4086 | } |
| 4087 | }, |
| 4088 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4089 | .unlock = spi_disable_blockprotect, |
| 4090 | .write = spi_chip_write_256, |
| 4091 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4092 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4093 | }, |
| 4094 | |
| 4095 | { |
| 4096 | .vendor = "Eon", |
| 4097 | .name = "EN25B64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4098 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4099 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4100 | .model_id = EON_EN25B64, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4101 | .total_size = 8192, |
| 4102 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4103 | /* OTP: 512B total; enter 0x3A */ |
| 4104 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4105 | .tested = TEST_UNTESTED, |
| 4106 | .probe = probe_spi_rdid, |
| 4107 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4108 | .block_erasers = |
| 4109 | { |
| 4110 | { |
| 4111 | .eraseblocks = { |
| 4112 | {4 * 1024, 2}, |
| 4113 | {8 * 1024, 1}, |
| 4114 | {16 * 1024, 1}, |
| 4115 | {32 * 1024, 1}, |
| 4116 | {64 * 1024, 127}, |
| 4117 | }, |
| 4118 | .block_erase = spi_block_erase_d8, |
| 4119 | }, { |
| 4120 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4121 | .block_erase = spi_block_erase_c7, |
| 4122 | } |
| 4123 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4124 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4125 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4126 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4127 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4128 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4129 | }, |
| 4130 | |
| 4131 | { |
| 4132 | .vendor = "Eon", |
| 4133 | .name = "EN25B64T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4134 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4135 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4136 | .model_id = EON_EN25B64, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4137 | .total_size = 8192, |
| 4138 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4139 | /* OTP: 512B total; enter 0x3A */ |
| 4140 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4141 | .tested = TEST_UNTESTED, |
| 4142 | .probe = probe_spi_rdid, |
| 4143 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4144 | .block_erasers = |
| 4145 | { |
| 4146 | { |
| 4147 | .eraseblocks = { |
| 4148 | {64 * 1024, 127}, |
| 4149 | {32 * 1024, 1}, |
| 4150 | {16 * 1024, 1}, |
| 4151 | {8 * 1024, 1}, |
| 4152 | {4 * 1024, 2}, |
| 4153 | }, |
| 4154 | .block_erase = spi_block_erase_d8, |
| 4155 | }, { |
| 4156 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4157 | .block_erase = spi_block_erase_c7, |
| 4158 | } |
| 4159 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4160 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4161 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4162 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4163 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4164 | .voltage = {2700, 3600}, |
| 4165 | }, |
| 4166 | |
| 4167 | { |
| 4168 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4169 | .name = "EN25B80", |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4170 | .bustype = BUS_SPI, |
| 4171 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4172 | .model_id = EON_EN25B80, |
| 4173 | .total_size = 1024, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4174 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4175 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4176 | .tested = TEST_UNTESTED, |
| 4177 | .probe = probe_spi_rdid, |
| 4178 | .probe_timing = TIMING_ZERO, |
| 4179 | .block_erasers = |
| 4180 | { |
| 4181 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4182 | .eraseblocks = { |
| 4183 | {4 * 1024, 2}, |
| 4184 | {8 * 1024, 1}, |
| 4185 | {16 * 1024, 1}, |
| 4186 | {32 * 1024, 1}, |
| 4187 | {64 * 1024, 15} |
| 4188 | }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4189 | .block_erase = spi_block_erase_d8, |
| 4190 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4191 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4192 | .block_erase = spi_block_erase_c7, |
| 4193 | } |
| 4194 | }, |
| 4195 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4196 | .unlock = spi_disable_blockprotect, |
| 4197 | .write = spi_chip_write_256, |
| 4198 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4199 | .voltage = {2700, 3600}, |
| 4200 | }, |
| 4201 | |
| 4202 | { |
| 4203 | .vendor = "Eon", |
| 4204 | .name = "EN25B80T", |
| 4205 | .bustype = BUS_SPI, |
| 4206 | .manufacture_id = EON_ID_NOPREFIX, |
| 4207 | .model_id = EON_EN25B80, |
| 4208 | .total_size = 1024, |
| 4209 | .page_size = 256, |
| 4210 | .feature_bits = FEATURE_WRSR_WREN, |
| 4211 | .tested = TEST_UNTESTED, |
| 4212 | .probe = probe_spi_rdid, |
| 4213 | .probe_timing = TIMING_ZERO, |
| 4214 | .block_erasers = |
| 4215 | { |
| 4216 | { |
| 4217 | .eraseblocks = { |
| 4218 | {64 * 1024, 15}, |
| 4219 | {32 * 1024, 1}, |
| 4220 | {16 * 1024, 1}, |
| 4221 | {8 * 1024, 1}, |
| 4222 | {4 * 1024, 2}, |
| 4223 | }, |
| 4224 | .block_erase = spi_block_erase_d8, |
| 4225 | }, { |
| 4226 | .eraseblocks = { {1024 * 1024, 1} }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4227 | .block_erase = spi_block_erase_c7, |
| 4228 | } |
| 4229 | }, |
| 4230 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4231 | .unlock = spi_disable_blockprotect, |
| 4232 | .write = spi_chip_write_256, |
| 4233 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4234 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4235 | }, |
| 4236 | |
| 4237 | { |
| 4238 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4239 | .name = "EN25F05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4240 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4241 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4242 | .model_id = EON_EN25F05, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4243 | .total_size = 64, |
| 4244 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4245 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 4246 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4247 | .probe = probe_spi_rdid, |
| 4248 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4249 | .block_erasers = |
| 4250 | { |
| 4251 | { |
| 4252 | .eraseblocks = { {4 * 1024, 16} }, |
| 4253 | .block_erase = spi_block_erase_20, |
| 4254 | }, { |
| 4255 | .eraseblocks = { {32 * 1024, 2} }, |
| 4256 | .block_erase = spi_block_erase_d8, |
| 4257 | }, { |
| 4258 | .eraseblocks = { {32 * 1024, 2} }, |
| 4259 | .block_erase = spi_block_erase_52, |
| 4260 | }, { |
| 4261 | .eraseblocks = { {64 * 1024, 1} }, |
| 4262 | .block_erase = spi_block_erase_60, |
| 4263 | }, { |
| 4264 | .eraseblocks = { {64 * 1024, 1} }, |
| 4265 | .block_erase = spi_block_erase_c7, |
| 4266 | } |
| 4267 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4268 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4269 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4270 | .write = spi_chip_write_256, |
| 4271 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4272 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4273 | }, |
| 4274 | |
| 4275 | { |
| 4276 | .vendor = "Eon", |
| 4277 | .name = "EN25F10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4278 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4279 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4280 | .model_id = EON_EN25F10, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4281 | .total_size = 128, |
| 4282 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4283 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4284 | .tested = TEST_UNTESTED, |
| 4285 | .probe = probe_spi_rdid, |
| 4286 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4287 | .block_erasers = |
| 4288 | { |
| 4289 | { |
| 4290 | .eraseblocks = { {4 * 1024, 32} }, |
| 4291 | .block_erase = spi_block_erase_20, |
| 4292 | }, { |
| 4293 | .eraseblocks = { {32 * 1024, 4} }, |
| 4294 | .block_erase = spi_block_erase_d8, |
| 4295 | }, { |
| 4296 | .eraseblocks = { {32 * 1024, 4} }, |
| 4297 | .block_erase = spi_block_erase_52, |
| 4298 | }, { |
| 4299 | .eraseblocks = { {128 * 1024, 1} }, |
| 4300 | .block_erase = spi_block_erase_60, |
| 4301 | }, { |
| 4302 | .eraseblocks = { {128 * 1024, 1} }, |
| 4303 | .block_erase = spi_block_erase_c7, |
| 4304 | } |
| 4305 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4306 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4307 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4308 | .write = spi_chip_write_256, |
| 4309 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4310 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4311 | }, |
| 4312 | |
| 4313 | { |
| 4314 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4315 | .name = "EN25F16", |
| 4316 | .bustype = BUS_SPI, |
| 4317 | .manufacture_id = EON_ID_NOPREFIX, |
| 4318 | .model_id = EON_EN25F16, |
| 4319 | .total_size = 2048, |
| 4320 | .page_size = 256, |
| 4321 | .feature_bits = FEATURE_WRSR_WREN, |
| 4322 | .tested = TEST_OK_PREW, |
| 4323 | .probe = probe_spi_rdid, |
| 4324 | .probe_timing = TIMING_ZERO, |
| 4325 | .block_erasers = |
| 4326 | { |
| 4327 | { |
| 4328 | .eraseblocks = { {4 * 1024, 512} }, |
| 4329 | .block_erase = spi_block_erase_20, |
| 4330 | }, { |
| 4331 | .eraseblocks = { {64 * 1024, 32} }, |
| 4332 | .block_erase = spi_block_erase_d8, |
| 4333 | }, { |
| 4334 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4335 | .block_erase = spi_block_erase_60, |
| 4336 | }, { |
| 4337 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4338 | .block_erase = spi_block_erase_c7, |
| 4339 | } |
| 4340 | }, |
| 4341 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4342 | .unlock = spi_disable_blockprotect, |
| 4343 | .write = spi_chip_write_256, |
| 4344 | .read = spi_chip_read, |
| 4345 | .voltage = {2700, 3600}, |
| 4346 | }, |
| 4347 | |
| 4348 | { |
| 4349 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4350 | .name = "EN25F20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4351 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4352 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4353 | .model_id = EON_EN25F20, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4354 | .total_size = 256, |
| 4355 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4356 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4357 | .tested = TEST_UNTESTED, |
| 4358 | .probe = probe_spi_rdid, |
| 4359 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4360 | .block_erasers = |
| 4361 | { |
| 4362 | { |
| 4363 | .eraseblocks = { {4 * 1024, 64} }, |
| 4364 | .block_erase = spi_block_erase_20, |
| 4365 | }, { |
| 4366 | .eraseblocks = { {64 * 1024, 4} }, |
| 4367 | .block_erase = spi_block_erase_d8, |
| 4368 | }, { |
| 4369 | .eraseblocks = { {64 * 1024, 4} }, |
| 4370 | .block_erase = spi_block_erase_52, |
| 4371 | }, { |
| 4372 | .eraseblocks = { {256 * 1024, 1} }, |
| 4373 | .block_erase = spi_block_erase_60, |
| 4374 | }, { |
| 4375 | .eraseblocks = { {256 * 1024, 1} }, |
| 4376 | .block_erase = spi_block_erase_c7, |
| 4377 | } |
| 4378 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4379 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4380 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4381 | .write = spi_chip_write_256, |
| 4382 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4383 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4384 | }, |
| 4385 | |
| 4386 | { |
| 4387 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4388 | .name = "EN25F32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4389 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4390 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4391 | .model_id = EON_EN25F32, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4392 | .total_size = 4096, |
| 4393 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4394 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 4395 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4396 | .probe = probe_spi_rdid, |
| 4397 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4398 | .block_erasers = |
| 4399 | { |
| 4400 | { |
| 4401 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4402 | .block_erase = spi_block_erase_20, |
| 4403 | }, { |
| 4404 | .eraseblocks = { {64 * 1024, 64} }, |
| 4405 | .block_erase = spi_block_erase_d8, |
| 4406 | }, { |
| 4407 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4408 | .block_erase = spi_block_erase_60, |
| 4409 | }, { |
| 4410 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4411 | .block_erase = spi_block_erase_c7, |
| 4412 | } |
| 4413 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4414 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4415 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4416 | .write = spi_chip_write_256, |
| 4417 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4418 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4419 | }, |
| 4420 | |
| 4421 | { |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4422 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4423 | .name = "EN25F40", |
| 4424 | .bustype = BUS_SPI, |
| 4425 | .manufacture_id = EON_ID_NOPREFIX, |
| 4426 | .model_id = EON_EN25F40, |
| 4427 | .total_size = 512, |
| 4428 | .page_size = 256, |
| 4429 | .feature_bits = FEATURE_WRSR_WREN, |
| 4430 | .tested = TEST_OK_PREW, |
| 4431 | .probe = probe_spi_rdid, |
| 4432 | .probe_timing = TIMING_ZERO, |
| 4433 | .block_erasers = |
| 4434 | { |
| 4435 | { |
| 4436 | .eraseblocks = { {4 * 1024, 128} }, |
| 4437 | .block_erase = spi_block_erase_20, |
| 4438 | }, { |
| 4439 | .eraseblocks = { {64 * 1024, 8} }, |
| 4440 | .block_erase = spi_block_erase_d8, |
| 4441 | }, { |
| 4442 | .eraseblocks = { {512 * 1024, 1} }, |
| 4443 | .block_erase = spi_block_erase_60, |
| 4444 | }, { |
| 4445 | .eraseblocks = { {512 * 1024, 1} }, |
| 4446 | .block_erase = spi_block_erase_c7, |
| 4447 | }, |
| 4448 | }, |
| 4449 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4450 | .unlock = spi_disable_blockprotect, |
| 4451 | .write = spi_chip_write_256, |
| 4452 | .read = spi_chip_read, |
| 4453 | .voltage = {2700, 3600}, |
| 4454 | }, |
| 4455 | |
| 4456 | { |
| 4457 | .vendor = "Eon", |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4458 | .name = "EN25F64", |
| 4459 | .bustype = BUS_SPI, |
| 4460 | .manufacture_id = EON_ID_NOPREFIX, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 4461 | .model_id = EON_EN25F64, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4462 | .total_size = 8192, |
| 4463 | .page_size = 256, |
| 4464 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 4465 | .tested = TEST_OK_PREW, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4466 | .probe = probe_spi_rdid, |
| 4467 | .probe_timing = TIMING_ZERO, |
| 4468 | .block_erasers = |
| 4469 | { |
| 4470 | { |
| 4471 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4472 | .block_erase = spi_block_erase_20, |
| 4473 | }, { |
| 4474 | .eraseblocks = { {64 * 1024, 128} }, |
| 4475 | .block_erase = spi_block_erase_d8, |
| 4476 | }, { |
| 4477 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4478 | .block_erase = spi_block_erase_60, |
| 4479 | }, { |
| 4480 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4481 | .block_erase = spi_block_erase_c7, |
| 4482 | } |
| 4483 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4484 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4485 | .unlock = spi_disable_blockprotect, |
| 4486 | .write = spi_chip_write_256, |
| 4487 | .read = spi_chip_read, |
| 4488 | .voltage = {2700, 3600}, |
| 4489 | }, |
| 4490 | |
| 4491 | { |
| 4492 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4493 | .name = "EN25F80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4494 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4495 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4496 | .model_id = EON_EN25F80, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4497 | .total_size = 1024, |
| 4498 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4499 | .feature_bits = FEATURE_WRSR_WREN, |
| 4500 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4501 | .probe = probe_spi_rdid, |
| 4502 | .probe_timing = TIMING_ZERO, |
| 4503 | .block_erasers = |
| 4504 | { |
| 4505 | { |
| 4506 | .eraseblocks = { {4 * 1024, 256} }, |
| 4507 | .block_erase = spi_block_erase_20, |
| 4508 | }, { |
| 4509 | .eraseblocks = { {64 * 1024, 16} }, |
| 4510 | .block_erase = spi_block_erase_d8, |
| 4511 | }, { |
| 4512 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4513 | .block_erase = spi_block_erase_60, |
| 4514 | }, { |
| 4515 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4516 | .block_erase = spi_block_erase_c7, |
| 4517 | } |
| 4518 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4519 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4520 | .unlock = spi_disable_blockprotect, |
| 4521 | .write = spi_chip_write_256, |
| 4522 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4523 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4524 | }, |
| 4525 | |
| 4526 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4527 | .vendor = "Eon", |
| 4528 | .name = "EN25P05", |
| 4529 | .bustype = BUS_SPI, |
| 4530 | .manufacture_id = EON_ID_NOPREFIX, |
| 4531 | .model_id = EON_EN25B05, |
| 4532 | .total_size = 64, |
| 4533 | .page_size = 256, |
| 4534 | .feature_bits = FEATURE_WRSR_WREN, |
| 4535 | .tested = TEST_UNTESTED, |
| 4536 | .probe = probe_spi_rdid, |
| 4537 | .probe_timing = TIMING_ZERO, |
| 4538 | .block_erasers = |
| 4539 | { |
| 4540 | { |
| 4541 | .eraseblocks = { |
| 4542 | {32 * 1024, 2} }, |
| 4543 | .block_erase = spi_block_erase_d8, |
| 4544 | }, { |
| 4545 | .eraseblocks = { {64 * 1024, 1} }, |
| 4546 | .block_erase = spi_block_erase_c7, |
| 4547 | } |
| 4548 | }, |
| 4549 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4550 | .unlock = spi_disable_blockprotect, |
| 4551 | .write = spi_chip_write_256, |
| 4552 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4553 | .voltage = {2700, 3600}, |
| 4554 | }, |
| 4555 | |
| 4556 | { |
| 4557 | .vendor = "Eon", |
| 4558 | .name = "EN25P10", |
| 4559 | .bustype = BUS_SPI, |
| 4560 | .manufacture_id = EON_ID_NOPREFIX, |
| 4561 | .model_id = EON_EN25B10, |
| 4562 | .total_size = 128, |
| 4563 | .page_size = 256, |
| 4564 | .feature_bits = FEATURE_WRSR_WREN, |
| 4565 | .tested = TEST_UNTESTED, |
| 4566 | .probe = probe_spi_rdid, |
| 4567 | .probe_timing = TIMING_ZERO, |
| 4568 | .block_erasers = |
| 4569 | { |
| 4570 | { |
| 4571 | .eraseblocks = { {32 * 1024, 4} }, |
| 4572 | .block_erase = spi_block_erase_d8, |
| 4573 | }, { |
| 4574 | .eraseblocks = { {128 * 1024, 1} }, |
| 4575 | .block_erase = spi_block_erase_c7, |
| 4576 | } |
| 4577 | }, |
| 4578 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4579 | .unlock = spi_disable_blockprotect, |
| 4580 | .write = spi_chip_write_256, |
| 4581 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4582 | .voltage = {2700, 3600}, |
| 4583 | }, |
| 4584 | |
| 4585 | { |
| 4586 | .vendor = "Eon", |
| 4587 | .name = "EN25P16", |
| 4588 | .bustype = BUS_SPI, |
| 4589 | .manufacture_id = EON_ID_NOPREFIX, |
| 4590 | .model_id = EON_EN25B16, |
| 4591 | .total_size = 2048, |
| 4592 | .page_size = 256, |
| 4593 | .feature_bits = FEATURE_WRSR_WREN, |
| 4594 | .tested = TEST_UNTESTED, |
| 4595 | .probe = probe_spi_rdid, |
| 4596 | .probe_timing = TIMING_ZERO, |
| 4597 | .block_erasers = |
| 4598 | { |
| 4599 | { |
| 4600 | .eraseblocks = { {64 * 1024, 32} }, |
| 4601 | .block_erase = spi_block_erase_d8, |
| 4602 | }, { |
| 4603 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4604 | .block_erase = spi_block_erase_c7, |
| 4605 | } |
| 4606 | }, |
| 4607 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4608 | .unlock = spi_disable_blockprotect, |
| 4609 | .write = spi_chip_write_256, |
| 4610 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4611 | .voltage = {2700, 3600}, |
| 4612 | }, |
| 4613 | |
| 4614 | { |
| 4615 | .vendor = "Eon", |
| 4616 | .name = "EN25P20", |
| 4617 | .bustype = BUS_SPI, |
| 4618 | .manufacture_id = EON_ID_NOPREFIX, |
| 4619 | .model_id = EON_EN25B20, |
| 4620 | .total_size = 256, |
| 4621 | .page_size = 256, |
| 4622 | .feature_bits = FEATURE_WRSR_WREN, |
| 4623 | .tested = TEST_UNTESTED, |
| 4624 | .probe = probe_spi_rdid, |
| 4625 | .probe_timing = TIMING_ZERO, |
| 4626 | .block_erasers = |
| 4627 | { |
| 4628 | { |
| 4629 | .eraseblocks = { {64 * 1024, 4} }, |
| 4630 | .block_erase = spi_block_erase_d8, |
| 4631 | }, { |
| 4632 | .eraseblocks = { {256 * 1024, 1} }, |
| 4633 | .block_erase = spi_block_erase_c7, |
| 4634 | } |
| 4635 | }, |
| 4636 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4637 | .unlock = spi_disable_blockprotect, |
| 4638 | .write = spi_chip_write_256, |
| 4639 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4640 | .voltage = {2700, 3600}, |
| 4641 | }, |
| 4642 | |
| 4643 | { |
| 4644 | .vendor = "Eon", |
| 4645 | .name = "EN25P32", /* Uniform version of EN25B32 */ |
| 4646 | .bustype = BUS_SPI, |
| 4647 | .manufacture_id = EON_ID_NOPREFIX, |
| 4648 | .model_id = EON_EN25B32, |
| 4649 | .total_size = 4096, |
| 4650 | .page_size = 256, |
| 4651 | /* OTP: 512B total; enter 0x3A */ |
| 4652 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4653 | .tested = TEST_UNTESTED, |
| 4654 | .probe = probe_spi_rdid, |
| 4655 | .probe_timing = TIMING_ZERO, |
| 4656 | .block_erasers = |
| 4657 | { |
| 4658 | { |
| 4659 | .eraseblocks = { {64 * 1024, 64} }, |
| 4660 | .block_erase = spi_block_erase_d8, |
| 4661 | }, { |
| 4662 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4663 | .block_erase = spi_block_erase_c7, |
| 4664 | } |
| 4665 | }, |
| 4666 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4667 | .unlock = spi_disable_blockprotect, |
| 4668 | .write = spi_chip_write_256, |
| 4669 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4670 | .voltage = {2700, 3600}, |
| 4671 | }, |
| 4672 | |
| 4673 | { |
| 4674 | .vendor = "Eon", |
| 4675 | .name = "EN25P40", |
| 4676 | .bustype = BUS_SPI, |
| 4677 | .manufacture_id = EON_ID_NOPREFIX, |
| 4678 | .model_id = EON_EN25B40, |
| 4679 | .total_size = 512, |
| 4680 | .page_size = 256, |
| 4681 | .feature_bits = FEATURE_WRSR_WREN, |
| 4682 | .tested = TEST_UNTESTED, |
| 4683 | .probe = probe_spi_rdid, |
| 4684 | .probe_timing = TIMING_ZERO, |
| 4685 | .block_erasers = |
| 4686 | { |
| 4687 | { |
| 4688 | .eraseblocks = { {64 * 1024, 8} }, |
| 4689 | .block_erase = spi_block_erase_d8, |
| 4690 | }, { |
| 4691 | .eraseblocks = { {512 * 1024, 1} }, |
| 4692 | .block_erase = spi_block_erase_c7, |
| 4693 | } |
| 4694 | }, |
| 4695 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4696 | .unlock = spi_disable_blockprotect, |
| 4697 | .write = spi_chip_write_256, |
| 4698 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4699 | .voltage = {2700, 3600}, |
| 4700 | }, |
| 4701 | |
| 4702 | { |
| 4703 | .vendor = "Eon", |
| 4704 | .name = "EN25P64", |
| 4705 | .bustype = BUS_SPI, |
| 4706 | .manufacture_id = EON_ID_NOPREFIX, |
| 4707 | .model_id = EON_EN25B64, |
| 4708 | .total_size = 8192, |
| 4709 | .page_size = 256, |
| 4710 | /* OTP: 512B total; enter 0x3A */ |
| 4711 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4712 | .tested = TEST_UNTESTED, |
| 4713 | .probe = probe_spi_rdid, |
| 4714 | .probe_timing = TIMING_ZERO, |
| 4715 | .block_erasers = |
| 4716 | { |
| 4717 | { |
| 4718 | .eraseblocks = { {64 * 1024, 128} }, |
| 4719 | .block_erase = spi_block_erase_d8, |
| 4720 | }, { |
| 4721 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4722 | .block_erase = spi_block_erase_c7, |
| 4723 | } |
| 4724 | }, |
| 4725 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4726 | .unlock = spi_disable_blockprotect, |
| 4727 | .write = spi_chip_write_256, |
| 4728 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4729 | .voltage = {2700, 3600}, |
| 4730 | }, |
| 4731 | |
| 4732 | { |
| 4733 | .vendor = "Eon", |
| 4734 | .name = "EN25P80", |
| 4735 | .bustype = BUS_SPI, |
| 4736 | .manufacture_id = EON_ID_NOPREFIX, |
| 4737 | .model_id = EON_EN25B80, |
| 4738 | .total_size = 1024, |
| 4739 | .page_size = 256, |
| 4740 | .feature_bits = FEATURE_WRSR_WREN, |
| 4741 | .tested = TEST_UNTESTED, |
| 4742 | .probe = probe_spi_rdid, |
| 4743 | .probe_timing = TIMING_ZERO, |
| 4744 | .block_erasers = |
| 4745 | { |
| 4746 | { |
| 4747 | .eraseblocks = { {64 * 1024, 16} }, |
| 4748 | .block_erase = spi_block_erase_d8, |
| 4749 | }, { |
| 4750 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4751 | .block_erase = spi_block_erase_c7, |
| 4752 | } |
| 4753 | }, |
| 4754 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4755 | .unlock = spi_disable_blockprotect, |
| 4756 | .write = spi_chip_write_256, |
| 4757 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4758 | .voltage = {2700, 3600}, |
| 4759 | }, |
| 4760 | |
| 4761 | { |
| 4762 | .vendor = "Eon", |
| 4763 | .name = "EN25Q128", |
| 4764 | .bustype = BUS_SPI, |
| 4765 | .manufacture_id = EON_ID_NOPREFIX, |
| 4766 | .model_id = EON_EN25Q128, |
| 4767 | .total_size = 16384, |
| 4768 | .page_size = 256, |
| 4769 | /* OTP: 512B total; enter 0x3A */ |
| 4770 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4771 | .tested = TEST_OK_PREW, |
| 4772 | .probe = probe_spi_rdid, |
| 4773 | .probe_timing = TIMING_ZERO, |
| 4774 | .block_erasers = |
| 4775 | { |
| 4776 | { |
| 4777 | .eraseblocks = { {4 * 1024, 4096} }, |
| 4778 | .block_erase = spi_block_erase_20, |
| 4779 | }, { |
| 4780 | .eraseblocks = { {64 * 1024, 256} }, |
| 4781 | .block_erase = spi_block_erase_d8, |
| 4782 | }, { |
| 4783 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4784 | .block_erase = spi_block_erase_60, |
| 4785 | }, { |
| 4786 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4787 | .block_erase = spi_block_erase_c7, |
| 4788 | } |
| 4789 | }, |
| 4790 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4791 | .unlock = spi_disable_blockprotect, |
| 4792 | .write = spi_chip_write_256, |
| 4793 | .read = spi_chip_read, |
| 4794 | }, |
| 4795 | |
| 4796 | { |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4797 | /* Note: EN25D16 is an evil twin which shares the model ID |
| 4798 | but has different write protection capabilities */ |
| 4799 | .vendor = "Eon", |
| 4800 | .name = "EN25Q16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4801 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4802 | .manufacture_id = EON_ID_NOPREFIX, |
| 4803 | .model_id = EON_EN25Q16, |
| 4804 | .total_size = 2048, |
| 4805 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4806 | /* OTP: D16 512B/Q16 128B total; enter 0x3A */ |
| 4807 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4808 | .tested = TEST_UNTESTED, |
| 4809 | .probe = probe_spi_rdid, |
| 4810 | .probe_timing = TIMING_ZERO, |
| 4811 | .block_erasers = |
| 4812 | { |
| 4813 | { |
| 4814 | .eraseblocks = { {4 * 1024, 512} }, |
| 4815 | .block_erase = spi_block_erase_20, |
| 4816 | }, { |
| 4817 | .eraseblocks = { {64 * 1024, 32} }, |
| 4818 | .block_erase = spi_block_erase_d8, |
| 4819 | }, { |
| 4820 | /* not supported by Q16 version */ |
| 4821 | .eraseblocks = { {64 * 1024, 32} }, |
| 4822 | .block_erase = spi_block_erase_52, |
| 4823 | }, { |
| 4824 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4825 | .block_erase = spi_block_erase_60, |
| 4826 | }, { |
| 4827 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4828 | .block_erase = spi_block_erase_c7, |
| 4829 | } |
| 4830 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4831 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4832 | .unlock = spi_disable_blockprotect, |
| 4833 | .write = spi_chip_write_256, |
| 4834 | .read = spi_chip_read, |
| 4835 | .voltage = {2700, 3600}, |
| 4836 | }, |
| 4837 | |
| 4838 | { |
| 4839 | .vendor = "Eon", |
| 4840 | .name = "EN25Q32(A/B)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4841 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4842 | .manufacture_id = EON_ID_NOPREFIX, |
| 4843 | .model_id = EON_EN25Q32, |
| 4844 | .total_size = 4096, |
| 4845 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4846 | /* OTP: 512B total; enter 0x3A */ |
| 4847 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4848 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4849 | .probe = probe_spi_rdid, |
| 4850 | .probe_timing = TIMING_ZERO, |
| 4851 | .block_erasers = |
| 4852 | { |
| 4853 | { |
| 4854 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4855 | .block_erase = spi_block_erase_20, |
| 4856 | }, { |
| 4857 | .eraseblocks = { {64 * 1024, 64} }, |
| 4858 | .block_erase = spi_block_erase_d8, |
| 4859 | }, { |
| 4860 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4861 | .block_erase = spi_block_erase_60, |
| 4862 | }, { |
| 4863 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4864 | .block_erase = spi_block_erase_c7, |
| 4865 | } |
| 4866 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4867 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4868 | .unlock = spi_disable_blockprotect, |
| 4869 | .write = spi_chip_write_256, |
| 4870 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4871 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4872 | }, |
| 4873 | |
| 4874 | { |
| 4875 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4876 | .name = "EN25Q40", |
| 4877 | .bustype = BUS_SPI, |
| 4878 | .manufacture_id = EON_ID_NOPREFIX, |
| 4879 | .model_id = EON_EN25Q40, |
| 4880 | .total_size = 512, |
| 4881 | .page_size = 256, |
| 4882 | /* OTP: 256B total; enter 0x3A */ |
| 4883 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4884 | .tested = TEST_UNTESTED, |
| 4885 | .probe = probe_spi_rdid, |
| 4886 | .probe_timing = TIMING_ZERO, |
| 4887 | .block_erasers = |
| 4888 | { |
| 4889 | { |
| 4890 | .eraseblocks = { {4 * 1024, 128} }, |
| 4891 | .block_erase = spi_block_erase_20, |
| 4892 | }, { |
| 4893 | .eraseblocks = { {64 * 1024, 8} }, |
| 4894 | .block_erase = spi_block_erase_d8, |
| 4895 | }, { |
| 4896 | .eraseblocks = { {512 * 1024, 1} }, |
| 4897 | .block_erase = spi_block_erase_60, |
| 4898 | }, { |
| 4899 | .eraseblocks = { {512 * 1024, 1} }, |
| 4900 | .block_erase = spi_block_erase_c7, |
| 4901 | } |
| 4902 | }, |
| 4903 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4904 | .unlock = spi_disable_blockprotect, |
| 4905 | .write = spi_chip_write_256, |
| 4906 | .read = spi_chip_read, |
| 4907 | .voltage = {2700, 3600}, |
| 4908 | }, |
| 4909 | |
| 4910 | { |
| 4911 | .vendor = "Eon", |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4912 | .name = "EN25Q64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4913 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4914 | .manufacture_id = EON_ID_NOPREFIX, |
| 4915 | .model_id = EON_EN25Q64, |
| 4916 | .total_size = 8192, |
| 4917 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4918 | /* OTP: 512B total; enter 0x3A */ |
| 4919 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4920 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4921 | .probe = probe_spi_rdid, |
| 4922 | .probe_timing = TIMING_ZERO, |
| 4923 | .block_erasers = |
| 4924 | { |
| 4925 | { |
| 4926 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4927 | .block_erase = spi_block_erase_20, |
| 4928 | }, { |
| 4929 | .eraseblocks = { {64 * 1024, 128} }, |
| 4930 | .block_erase = spi_block_erase_d8, |
| 4931 | }, { |
| 4932 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4933 | .block_erase = spi_block_erase_60, |
| 4934 | }, { |
| 4935 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4936 | .block_erase = spi_block_erase_c7, |
| 4937 | } |
| 4938 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4939 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4940 | .unlock = spi_disable_blockprotect, |
| 4941 | .write = spi_chip_write_256, |
| 4942 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4943 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4944 | }, |
| 4945 | |
| 4946 | { |
| 4947 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4948 | .name = "EN25Q80(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4949 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4950 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4951 | .model_id = EON_EN25Q80, |
| 4952 | .total_size = 1024, |
| 4953 | .page_size = 256, |
| 4954 | /* OTP: 256B total; enter 0x3A */ |
| 4955 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4956 | .tested = TEST_UNTESTED, |
| 4957 | .probe = probe_spi_rdid, |
| 4958 | .probe_timing = TIMING_ZERO, |
| 4959 | .block_erasers = |
| 4960 | { |
| 4961 | { |
| 4962 | .eraseblocks = { {4 * 1024, 256} }, |
| 4963 | .block_erase = spi_block_erase_20, |
| 4964 | }, { |
| 4965 | .eraseblocks = { {64 * 1024, 16} }, |
| 4966 | .block_erase = spi_block_erase_d8, |
| 4967 | }, { |
| 4968 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4969 | .block_erase = spi_block_erase_60, |
| 4970 | }, { |
| 4971 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4972 | .block_erase = spi_block_erase_c7, |
| 4973 | } |
| 4974 | }, |
| 4975 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4976 | .unlock = spi_disable_blockprotect, |
| 4977 | .write = spi_chip_write_256, |
| 4978 | .read = spi_chip_read, |
| 4979 | .voltage = {2700, 3600}, |
| 4980 | }, |
| 4981 | |
| 4982 | { |
| 4983 | .vendor = "Eon", |
| 4984 | .name = "EN25QH128", |
| 4985 | .bustype = BUS_SPI, |
| 4986 | .manufacture_id = EON_ID_NOPREFIX, |
| 4987 | .model_id = EON_EN25QH128, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4988 | .total_size = 16384, |
| 4989 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4990 | /* supports SFDP */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4991 | /* OTP: 512B total; enter 0x3A */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4992 | /* QPI enable 0x38, disable 0xFF */ |
| 4993 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 4994 | .tested = TEST_UNTESTED, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4995 | .probe = probe_spi_rdid, |
| 4996 | .probe_timing = TIMING_ZERO, |
| 4997 | .block_erasers = |
| 4998 | { |
| 4999 | { |
| 5000 | .eraseblocks = { {4 * 1024, 4096} }, |
| 5001 | .block_erase = spi_block_erase_20, |
| 5002 | }, { |
| 5003 | .eraseblocks = { {64 * 1024, 256} }, |
| 5004 | .block_erase = spi_block_erase_d8, |
| 5005 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5006 | .eraseblocks = { { 16384 * 1024, 1} }, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5007 | .block_erase = spi_block_erase_60, |
| 5008 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5009 | .eraseblocks = { { 16384 * 1024, 1} }, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5010 | .block_erase = spi_block_erase_c7, |
| 5011 | } |
| 5012 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5013 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 5014 | .unlock = spi_disable_blockprotect_bp3_srwd, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5015 | .write = spi_chip_write_256, |
| 5016 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5017 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5018 | }, |
| 5019 | |
| 5020 | { |
| 5021 | .vendor = "Eon", |
| 5022 | .name = "EN25QH16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5023 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5024 | .manufacture_id = EON_ID_NOPREFIX, |
| 5025 | .model_id = EON_EN25QH16, |
| 5026 | .total_size = 2048, |
| 5027 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 5028 | /* supports SFDP */ |
| 5029 | /* OTP: 512B total; enter 0x3A */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5030 | /* QPI enable 0x38, disable 0xFF */ |
| 5031 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 5032 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5033 | .probe = probe_spi_rdid, |
| 5034 | .probe_timing = TIMING_ZERO, |
| 5035 | .block_erasers = |
| 5036 | { |
| 5037 | { |
| 5038 | .eraseblocks = { {4 * 1024, 512} }, |
| 5039 | .block_erase = spi_block_erase_20, |
| 5040 | }, { |
| 5041 | .eraseblocks = { {64 * 1024, 32} }, |
| 5042 | .block_erase = spi_block_erase_d8, |
| 5043 | }, { |
| 5044 | .eraseblocks = { {1024 * 2048, 1} }, |
| 5045 | .block_erase = spi_block_erase_60, |
| 5046 | }, { |
| 5047 | .eraseblocks = { {1024 * 2048, 1} }, |
| 5048 | .block_erase = spi_block_erase_c7, |
| 5049 | } |
| 5050 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5051 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5052 | .unlock = spi_disable_blockprotect_bp3_srwd, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5053 | .write = spi_chip_write_256, |
| 5054 | .read = spi_chip_read, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 5055 | .voltage = {2700, 3600}, |
| 5056 | }, |
| 5057 | |
| 5058 | { |
| 5059 | .vendor = "Eon", |
| 5060 | .name = "EN25QH32", |
| 5061 | .bustype = BUS_SPI, |
| 5062 | .manufacture_id = EON_ID_NOPREFIX, |
| 5063 | .model_id = EON_EN25QH32, |
| 5064 | .total_size = 4096, |
| 5065 | .page_size = 256, |
| 5066 | /* supports SFDP */ |
| 5067 | /* OTP: 512B total; enter 0x3A */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5068 | /* QPI enable 0x38, disable 0xFF */ |
| 5069 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 5070 | .tested = TEST_OK_PREW, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 5071 | .probe = probe_spi_rdid, |
| 5072 | .probe_timing = TIMING_ZERO, |
| 5073 | .block_erasers = |
| 5074 | { |
| 5075 | { |
| 5076 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5077 | .block_erase = spi_block_erase_20, |
| 5078 | }, { |
| 5079 | .eraseblocks = { {64 * 1024, 64} }, |
| 5080 | .block_erase = spi_block_erase_d8, |
| 5081 | }, { |
| 5082 | .eraseblocks = { {1024 * 4096, 1} }, |
| 5083 | .block_erase = spi_block_erase_60, |
| 5084 | }, { |
| 5085 | .eraseblocks = { {1024 * 4096, 1} }, |
| 5086 | .block_erase = spi_block_erase_c7, |
| 5087 | } |
| 5088 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5089 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5090 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5091 | .write = spi_chip_write_256, |
| 5092 | .read = spi_chip_read, |
| 5093 | .voltage = {2700, 3600}, |
| 5094 | }, |
| 5095 | |
| 5096 | { |
| 5097 | .vendor = "Eon", |
| 5098 | .name = "EN25QH64", |
| 5099 | .bustype = BUS_SPI, |
| 5100 | .manufacture_id = EON_ID_NOPREFIX, |
| 5101 | .model_id = EON_EN25QH64, |
| 5102 | .total_size = 8192, |
| 5103 | .page_size = 256, |
| 5104 | /* supports SFDP */ |
| 5105 | /* OTP: 512B total; enter 0x3A */ |
| 5106 | /* QPI enable 0x38, disable 0xFF */ |
| 5107 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 5108 | .tested = TEST_OK_PREW, |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5109 | .probe = probe_spi_rdid, |
| 5110 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5111 | .block_erasers = |
| 5112 | { |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5113 | { |
| 5114 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5115 | .block_erase = spi_block_erase_20, |
| 5116 | }, { |
| 5117 | .eraseblocks = { {64 * 1024, 128} }, |
| 5118 | .block_erase = spi_block_erase_d8, |
| 5119 | }, { |
| 5120 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 5121 | .block_erase = spi_block_erase_60, |
| 5122 | }, { |
| 5123 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 5124 | .block_erase = spi_block_erase_c7, |
| 5125 | } |
| 5126 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5127 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5128 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5129 | .write = spi_chip_write_256, |
| 5130 | .read = spi_chip_read, |
| 5131 | .voltage = {2700, 3600}, |
| 5132 | }, |
| 5133 | |
| 5134 | { |
| 5135 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5136 | .name = "EN25S10", |
| 5137 | .bustype = BUS_SPI, |
| 5138 | .manufacture_id = EON_ID_NOPREFIX, |
| 5139 | .model_id = EON_EN25S10, |
| 5140 | .total_size = 128, |
| 5141 | .page_size = 256, |
| 5142 | /* OTP: 256B total; enter 0x3A */ |
| 5143 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5144 | .tested = TEST_UNTESTED, |
| 5145 | .probe = probe_spi_rdid, |
| 5146 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5147 | .block_erasers = |
| 5148 | { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5149 | { |
| 5150 | .eraseblocks = { {4 * 1024, 32} }, |
| 5151 | .block_erase = spi_block_erase_20, |
| 5152 | }, { |
| 5153 | .eraseblocks = { {32 * 1024, 4} }, |
| 5154 | .block_erase = spi_block_erase_52, |
| 5155 | }, { |
| 5156 | .eraseblocks = { {128 * 1024, 1} }, |
| 5157 | .block_erase = spi_block_erase_60, |
| 5158 | }, { |
| 5159 | .eraseblocks = { {128 * 1024, 1} }, |
| 5160 | .block_erase = spi_block_erase_c7, |
| 5161 | } |
| 5162 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5163 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5164 | .unlock = spi_disable_blockprotect, |
| 5165 | .write = spi_chip_write_256, |
| 5166 | .read = spi_chip_read, |
| 5167 | .voltage = {1650, 1950}, |
| 5168 | }, |
| 5169 | |
| 5170 | { |
| 5171 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5172 | .name = "EN25S16", |
| 5173 | .bustype = BUS_SPI, |
| 5174 | .manufacture_id = EON_ID_NOPREFIX, |
| 5175 | .model_id = EON_EN25S16, |
| 5176 | .total_size = 2048, |
| 5177 | .page_size = 256, |
| 5178 | /* OTP: 512B total; enter 0x3A */ |
| 5179 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 5180 | .tested = TEST_UNTESTED, |
| 5181 | .probe = probe_spi_rdid, |
| 5182 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5183 | .block_erasers = |
| 5184 | { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5185 | { |
| 5186 | .eraseblocks = { {4 * 1024, 512} }, |
| 5187 | .block_erase = spi_block_erase_20, |
| 5188 | }, { |
| 5189 | .eraseblocks = { {64 * 1024, 32} }, |
| 5190 | .block_erase = spi_block_erase_52, |
| 5191 | }, { |
| 5192 | .eraseblocks = { {32 * 1024, 64} }, |
| 5193 | .block_erase = spi_block_erase_d8, |
| 5194 | }, { |
| 5195 | .eraseblocks = { {2048 * 1024, 1} }, |
| 5196 | .block_erase = spi_block_erase_60, |
| 5197 | }, { |
| 5198 | .eraseblocks = { {2048 * 1024, 1} }, |
| 5199 | .block_erase = spi_block_erase_c7, |
| 5200 | } |
| 5201 | }, |
| 5202 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 5203 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5204 | .write = spi_chip_write_256, |
| 5205 | .read = spi_chip_read, |
| 5206 | .voltage = {1650, 1950}, |
| 5207 | }, |
| 5208 | |
| 5209 | { |
| 5210 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5211 | .name = "EN25S20", |
| 5212 | .bustype = BUS_SPI, |
| 5213 | .manufacture_id = EON_ID_NOPREFIX, |
| 5214 | .model_id = EON_EN25S20, |
| 5215 | .total_size = 256, |
| 5216 | .page_size = 256, |
| 5217 | /* OTP: 256B total; enter 0x3A */ |
| 5218 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5219 | .tested = TEST_UNTESTED, |
| 5220 | .probe = probe_spi_rdid, |
| 5221 | .probe_timing = TIMING_ZERO, |
| 5222 | .block_erasers = |
| 5223 | { |
| 5224 | { |
| 5225 | .eraseblocks = { {4 * 1024, 64} }, |
| 5226 | .block_erase = spi_block_erase_20, |
| 5227 | }, { |
| 5228 | .eraseblocks = { {64 * 1024, 4} }, |
| 5229 | .block_erase = spi_block_erase_d8, |
| 5230 | }, { |
| 5231 | .eraseblocks = { {256 * 1024, 1} }, |
| 5232 | .block_erase = spi_block_erase_60, |
| 5233 | }, { |
| 5234 | .eraseblocks = { {256 * 1024, 1} }, |
| 5235 | .block_erase = spi_block_erase_c7, |
| 5236 | } |
| 5237 | }, |
| 5238 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 5239 | .unlock = spi_disable_blockprotect, |
| 5240 | .write = spi_chip_write_256, |
| 5241 | .read = spi_chip_read, |
| 5242 | .voltage = {1650, 1950}, |
| 5243 | }, |
| 5244 | |
| 5245 | { |
| 5246 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5247 | .name = "EN25S32", |
| 5248 | .bustype = BUS_SPI, |
| 5249 | .manufacture_id = EON_ID_NOPREFIX, |
| 5250 | .model_id = EON_EN25S32, |
| 5251 | .total_size = 4096, |
| 5252 | .page_size = 256, |
| 5253 | /* OTP: 512B total; enter 0x3A */ |
| 5254 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 5255 | .tested = TEST_UNTESTED, |
| 5256 | .probe = probe_spi_rdid, |
| 5257 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5258 | .block_erasers = |
| 5259 | { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5260 | { |
| 5261 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5262 | .block_erase = spi_block_erase_20, |
| 5263 | }, { |
| 5264 | .eraseblocks = { {32 * 1024, 128} }, |
| 5265 | .block_erase = spi_block_erase_52, |
| 5266 | }, { |
| 5267 | .eraseblocks = { {64 * 1024, 64} }, |
| 5268 | .block_erase = spi_block_erase_d8, |
| 5269 | }, { |
| 5270 | .eraseblocks = { {4096 * 1024, 1} }, |
| 5271 | .block_erase = spi_block_erase_60, |
| 5272 | }, { |
| 5273 | .eraseblocks = { {4096 * 1024, 1} }, |
| 5274 | .block_erase = spi_block_erase_c7, |
| 5275 | } |
| 5276 | }, |
| 5277 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 5278 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5279 | .write = spi_chip_write_256, |
| 5280 | .read = spi_chip_read, |
| 5281 | .voltage = {1650, 1950}, |
| 5282 | }, |
| 5283 | |
| 5284 | { |
| 5285 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5286 | .name = "EN25S40", |
| 5287 | .bustype = BUS_SPI, |
| 5288 | .manufacture_id = EON_ID_NOPREFIX, |
| 5289 | .model_id = EON_EN25S40, |
| 5290 | .total_size = 512, |
| 5291 | .page_size = 256, |
| 5292 | /* OTP: 256B total; enter 0x3A */ |
| 5293 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5294 | .tested = TEST_OK_PREW, |
| 5295 | .probe = probe_spi_rdid, |
| 5296 | .probe_timing = TIMING_ZERO, |
| 5297 | .block_erasers = |
| 5298 | { |
| 5299 | { |
| 5300 | .eraseblocks = { {4 * 1024, 128} }, |
| 5301 | .block_erase = spi_block_erase_20, |
| 5302 | }, { |
| 5303 | .eraseblocks = { {64 * 1024, 8} }, |
| 5304 | .block_erase = spi_block_erase_d8, |
| 5305 | }, { |
| 5306 | .eraseblocks = { {512 * 1024, 1} }, |
| 5307 | .block_erase = spi_block_erase_60, |
| 5308 | }, { |
| 5309 | .eraseblocks = { {512 * 1024, 1} }, |
| 5310 | .block_erase = spi_block_erase_c7, |
| 5311 | } |
| 5312 | }, |
| 5313 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 5314 | .unlock = spi_disable_blockprotect, |
| 5315 | .write = spi_chip_write_256, |
| 5316 | .read = spi_chip_read, |
| 5317 | .voltage = {1650, 1950}, |
| 5318 | }, |
| 5319 | |
| 5320 | { |
| 5321 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5322 | .name = "EN25S64", |
| 5323 | .bustype = BUS_SPI, |
| 5324 | .manufacture_id = EON_ID_NOPREFIX, |
| 5325 | .model_id = EON_EN25S64, |
| 5326 | .total_size = 8192, |
| 5327 | .page_size = 256, |
| 5328 | /* OTP: 512B total; enter 0x3A */ |
| 5329 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 5330 | .tested = TEST_UNTESTED, |
| 5331 | .probe = probe_spi_rdid, |
| 5332 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5333 | .block_erasers = |
| 5334 | { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5335 | { |
| 5336 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5337 | .block_erase = spi_block_erase_20, |
| 5338 | }, { |
| 5339 | .eraseblocks = { {64 * 1024, 128} }, |
| 5340 | .block_erase = spi_block_erase_d8, |
| 5341 | }, { |
| 5342 | .eraseblocks = { {8192 * 1024, 1} }, |
| 5343 | .block_erase = spi_block_erase_60, |
| 5344 | }, { |
| 5345 | .eraseblocks = { {8192 * 1024, 1} }, |
| 5346 | .block_erase = spi_block_erase_c7, |
| 5347 | } |
| 5348 | }, |
| 5349 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 5350 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5351 | .write = spi_chip_write_256, |
| 5352 | .read = spi_chip_read, |
| 5353 | .voltage = {1650, 1950}, |
| 5354 | }, |
| 5355 | |
| 5356 | { |
| 5357 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5358 | .name = "EN25S80", |
| 5359 | .bustype = BUS_SPI, |
| 5360 | .manufacture_id = EON_ID_NOPREFIX, |
| 5361 | .model_id = EON_EN25S80, |
| 5362 | .total_size = 1024, |
| 5363 | .page_size = 256, |
| 5364 | /* OTP: 256B total; enter 0x3A */ |
| 5365 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5366 | .tested = TEST_UNTESTED, |
| 5367 | .probe = probe_spi_rdid, |
| 5368 | .probe_timing = TIMING_ZERO, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5369 | .block_erasers = |
| 5370 | { |
| 5371 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5372 | .eraseblocks = { {4 * 1024, 256} }, |
| 5373 | .block_erase = spi_block_erase_20, |
| 5374 | }, { |
| 5375 | .eraseblocks = { {64 * 1024, 16} }, |
| 5376 | .block_erase = spi_block_erase_d8, |
| 5377 | }, { |
| 5378 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5379 | .block_erase = spi_block_erase_60, |
| 5380 | }, { |
| 5381 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5382 | .block_erase = spi_block_erase_c7, |
| 5383 | } |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5384 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5385 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 5386 | .unlock = spi_disable_blockprotect, |
| 5387 | .write = spi_chip_write_256, |
| 5388 | .read = spi_chip_read, |
| 5389 | .voltage = {1650, 1950}, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5390 | }, |
| 5391 | |
| 5392 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 5393 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5394 | .name = "EN29F002(A)(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5395 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5396 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5397 | .model_id = EON_EN29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5398 | .total_size = 256, |
| 5399 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5400 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Alan Green | 4362e62 | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 5401 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5402 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5403 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5404 | .block_erasers = |
| 5405 | { |
| 5406 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5407 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5408 | {16 * 1024, 1}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 5409 | {8 * 1024, 2}, |
| 5410 | {32 * 1024, 1}, |
| 5411 | {64 * 1024, 3}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5412 | }, |
| 5413 | .block_erase = erase_sector_jedec, |
| 5414 | }, { |
| 5415 | .eraseblocks = { {256 * 1024, 1} }, |
| 5416 | .block_erase = erase_chip_block_jedec, |
| 5417 | }, |
| 5418 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 5419 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5420 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5421 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5422 | }, |
| 5423 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5424 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 5425 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5426 | .name = "EN29F002(A)(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5427 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5428 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5429 | .model_id = EON_EN29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5430 | .total_size = 256, |
| 5431 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5432 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 5433 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5434 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5435 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5436 | .block_erasers = |
| 5437 | { |
| 5438 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5439 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5440 | {64 * 1024, 3}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 5441 | {32 * 1024, 1}, |
| 5442 | {8 * 1024, 2}, |
| 5443 | {16 * 1024, 1}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5444 | }, |
| 5445 | .block_erase = erase_sector_jedec, |
| 5446 | }, { |
| 5447 | .eraseblocks = { {256 * 1024, 1} }, |
| 5448 | .block_erase = erase_chip_block_jedec, |
| 5449 | }, |
| 5450 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 5451 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5452 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5453 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5454 | }, |
| 5455 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5456 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5457 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5458 | .name = "EN29F010", |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5459 | .bustype = BUS_PARALLEL, |
| 5460 | .manufacture_id = EON_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5461 | .model_id = EON_EN29F010, |
| 5462 | .total_size = 128, |
| 5463 | .page_size = 128, |
| 5464 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 5465 | .tested = TEST_OK_PRE, |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5466 | .probe = probe_jedec, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5467 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5468 | .block_erasers = |
| 5469 | { |
| 5470 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5471 | .eraseblocks = { {16 * 1024, 8} }, |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5472 | .block_erase = erase_sector_jedec, |
| 5473 | }, |
| 5474 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5475 | .eraseblocks = { {128 * 1024, 1} }, |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5476 | .block_erase = erase_chip_block_jedec, |
| 5477 | }, |
| 5478 | }, |
| 5479 | .write = write_jedec_1, |
| 5480 | .read = read_memmapped, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5481 | .voltage = {4500, 5500}, |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5482 | }, |
| 5483 | |
| 5484 | { |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 5485 | .vendor = "Eon", |
| 5486 | .name = "EN29GL064(A)B", |
| 5487 | .bustype = BUS_PARALLEL, |
| 5488 | .manufacture_id = EON_ID, |
| 5489 | .model_id = EON_EN29GL064B, |
| 5490 | .total_size = 8192, |
| 5491 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5492 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5493 | .tested = TEST_UNTESTED, |
| 5494 | .probe = probe_jedec_29gl, |
| 5495 | .probe_timing = TIMING_ZERO, |
| 5496 | .block_erasers = |
| 5497 | { |
| 5498 | { |
| 5499 | .eraseblocks = { |
| 5500 | {8 * 1024, 8}, |
| 5501 | {64 * 1024, 127}, |
| 5502 | }, |
| 5503 | .block_erase = erase_sector_jedec, |
| 5504 | }, { |
| 5505 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5506 | .block_erase = erase_chip_block_jedec, |
| 5507 | }, |
| 5508 | }, |
| 5509 | .write = write_jedec_1, |
| 5510 | .read = read_memmapped, |
| 5511 | .voltage = {2700, 3600}, |
| 5512 | }, |
| 5513 | |
| 5514 | { |
| 5515 | .vendor = "Eon", |
| 5516 | .name = "EN29GL064(A)T", |
| 5517 | .bustype = BUS_PARALLEL, |
| 5518 | .manufacture_id = EON_ID, |
| 5519 | .model_id = EON_EN29GL064T, |
| 5520 | .total_size = 8192, |
| 5521 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5522 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5523 | .tested = TEST_UNTESTED, |
| 5524 | .probe = probe_jedec_29gl, |
| 5525 | .probe_timing = TIMING_ZERO, |
| 5526 | .block_erasers = |
| 5527 | { |
| 5528 | { |
| 5529 | .eraseblocks = { |
| 5530 | {64 * 1024, 127}, |
| 5531 | {8 * 1024, 8}, |
| 5532 | }, |
| 5533 | .block_erase = erase_sector_jedec, |
| 5534 | }, { |
| 5535 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5536 | .block_erase = erase_chip_block_jedec, |
| 5537 | }, |
| 5538 | }, |
| 5539 | .write = write_jedec_1, |
| 5540 | .read = read_memmapped, |
| 5541 | .voltage = {2700, 3600}, |
| 5542 | }, |
| 5543 | |
| 5544 | { |
| 5545 | .vendor = "Eon", |
| 5546 | .name = "EN29GL064H/L", |
| 5547 | .bustype = BUS_PARALLEL, |
| 5548 | .manufacture_id = EON_ID, |
| 5549 | .model_id = EON_EN29GL064HL, |
| 5550 | .total_size = 8192, |
| 5551 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5552 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5553 | .tested = TEST_UNTESTED, |
| 5554 | .probe = probe_jedec_29gl, |
| 5555 | .probe_timing = TIMING_ZERO, |
| 5556 | .block_erasers = |
| 5557 | { |
| 5558 | { |
| 5559 | .eraseblocks = { {64 * 1024, 128} }, |
| 5560 | .block_erase = erase_sector_jedec, |
| 5561 | }, { |
| 5562 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5563 | .block_erase = erase_chip_block_jedec, |
| 5564 | }, |
| 5565 | }, |
| 5566 | .write = write_jedec_1, |
| 5567 | .read = read_memmapped, |
| 5568 | .voltage = {2700, 3600}, |
| 5569 | }, |
| 5570 | |
| 5571 | { |
| 5572 | .vendor = "Eon", |
| 5573 | .name = "EN29GL128", |
| 5574 | .bustype = BUS_PARALLEL, |
| 5575 | .manufacture_id = EON_ID, |
| 5576 | .model_id = EON_EN29GL128HL, |
| 5577 | .total_size = 16384, |
| 5578 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5579 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5580 | .tested = TEST_UNTESTED, |
| 5581 | .probe = probe_jedec_29gl, |
| 5582 | .probe_timing = TIMING_ZERO, |
| 5583 | .block_erasers = |
| 5584 | { |
| 5585 | { |
| 5586 | .eraseblocks = { {128 * 1024, 128} }, |
| 5587 | .block_erase = erase_sector_jedec, |
| 5588 | }, { |
| 5589 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 5590 | .block_erase = erase_chip_block_jedec, |
| 5591 | }, |
| 5592 | }, |
| 5593 | .write = write_jedec_1, |
| 5594 | .read = read_memmapped, |
| 5595 | .voltage = {2700, 3600}, |
| 5596 | }, |
| 5597 | |
| 5598 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5599 | .vendor = "Eon", |
| 5600 | .name = "EN29LV040(A)", |
| 5601 | .bustype = BUS_PARALLEL, |
| 5602 | .manufacture_id = EON_ID, |
| 5603 | .model_id = EON_EN29LV040, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5604 | .total_size = 512, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5605 | .page_size = 4 * 1024, |
| 5606 | .tested = TEST_OK_PREW, |
| 5607 | .probe = probe_jedec, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5608 | .probe_timing = TIMING_ZERO, |
| 5609 | .block_erasers = |
| 5610 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 5611 | { |
| 5612 | .eraseblocks = { {64 * 1024, 8} }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5613 | .block_erase = erase_sector_jedec, |
| 5614 | }, |
| 5615 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 5616 | .eraseblocks = { {512 * 1024, 1} }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5617 | .block_erase = erase_chip_block_jedec, |
| 5618 | }, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5619 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5620 | .write = write_jedec_1, |
| 5621 | .read = read_memmapped, |
| 5622 | .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] | 5623 | }, |
| 5624 | |
| 5625 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5626 | .vendor = "Eon", |
| 5627 | .name = "EN29LV640B", |
| 5628 | .bustype = BUS_PARALLEL, |
| 5629 | .manufacture_id = EON_ID, |
| 5630 | .model_id = EON_EN29LV640B, |
| 5631 | .total_size = 8192, |
| 5632 | .page_size = 8192, |
| 5633 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 5634 | .tested = TEST_OK_PREW, |
| 5635 | .probe = probe_en29lv640b, |
| 5636 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5637 | .block_erasers = |
| 5638 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 5639 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5640 | .eraseblocks = { |
| 5641 | {8 * 1024, 8}, |
| 5642 | {64 * 1024, 127}, |
| 5643 | }, |
| 5644 | .block_erase = erase_block_jedec, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 5645 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5646 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5647 | .block_erase = erase_chip_block_jedec, |
| 5648 | }, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5649 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5650 | .write = write_en29lv640b, |
| 5651 | .read = read_memmapped, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5652 | .voltage = {2700, 3600}, |
| 5653 | }, |
| 5654 | |
| 5655 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5656 | .vendor = "Fujitsu", |
| 5657 | .name = "MBM29F004BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5658 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5659 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5660 | .model_id = FUJITSU_MBM29F004BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5661 | .total_size = 512, |
| 5662 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5663 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5664 | .tested = TEST_UNTESTED, |
| 5665 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5666 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5667 | .block_erasers = |
| 5668 | { |
| 5669 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5670 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5671 | {16 * 1024, 1}, |
| 5672 | {8 * 1024, 2}, |
| 5673 | {32 * 1024, 1}, |
| 5674 | {64 * 1024, 7}, |
| 5675 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5676 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5677 | }, { |
| 5678 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5679 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5680 | }, |
| 5681 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5682 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5683 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5684 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5685 | }, |
| 5686 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5687 | { |
| 5688 | .vendor = "Fujitsu", |
| 5689 | .name = "MBM29F004TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5690 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5691 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5692 | .model_id = FUJITSU_MBM29F004TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5693 | .total_size = 512, |
| 5694 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5695 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5696 | .tested = TEST_UNTESTED, |
| 5697 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5698 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5699 | .block_erasers = |
| 5700 | { |
| 5701 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5702 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5703 | {64 * 1024, 7}, |
| 5704 | {32 * 1024, 1}, |
| 5705 | {8 * 1024, 2}, |
| 5706 | {16 * 1024, 1}, |
| 5707 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5708 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5709 | }, { |
| 5710 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5711 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5712 | }, |
| 5713 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5714 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5715 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5716 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5717 | }, |
| 5718 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5719 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5720 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5721 | .vendor = "Fujitsu", |
| 5722 | .name = "MBM29F400BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5723 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5724 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5725 | .model_id = FUJITSU_MBM29F400BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5726 | .total_size = 512, |
| 5727 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5728 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 5729 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5730 | .probe = probe_jedec, |
| 5731 | .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] | 5732 | .block_erasers = |
| 5733 | { |
| 5734 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5735 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5736 | {16 * 1024, 1}, |
| 5737 | {8 * 1024, 2}, |
| 5738 | {32 * 1024, 1}, |
| 5739 | {64 * 1024, 7}, |
| 5740 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5741 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5742 | }, { |
| 5743 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5744 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5745 | }, |
| 5746 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5747 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5748 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5749 | .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] | 5750 | }, |
| 5751 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5752 | { |
| 5753 | .vendor = "Fujitsu", |
| 5754 | .name = "MBM29F400TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5755 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5756 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5757 | .model_id = FUJITSU_MBM29F400TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5758 | .total_size = 512, |
| 5759 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5760 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5761 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5762 | .probe = probe_jedec, |
| 5763 | .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] | 5764 | .block_erasers = |
| 5765 | { |
| 5766 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5767 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5768 | {64 * 1024, 7}, |
| 5769 | {32 * 1024, 1}, |
| 5770 | {8 * 1024, 2}, |
| 5771 | {16 * 1024, 1}, |
| 5772 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5773 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5774 | }, { |
| 5775 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5776 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5777 | }, |
| 5778 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5779 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5780 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5781 | .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] | 5782 | }, |
| 5783 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5784 | { |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5785 | .vendor = "Fujitsu", |
| 5786 | .name = "MBM29LV160BE", |
| 5787 | .bustype = BUS_PARALLEL, |
| 5788 | .manufacture_id = FUJITSU_ID, |
| 5789 | .model_id = FUJITSU_MBM29LV160BE, |
| 5790 | .total_size = 2 * 1024, |
| 5791 | .page_size = 0, |
| 5792 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET, |
| 5793 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5794 | .probe = probe_jedec, |
| 5795 | .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] | 5796 | .block_erasers = |
| 5797 | { |
| 5798 | { |
| 5799 | .eraseblocks = { |
| 5800 | {16 * 1024, 1}, |
| 5801 | {8 * 1024, 2}, |
| 5802 | {32 * 1024, 1}, |
| 5803 | {64 * 1024, 31}, |
| 5804 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5805 | .block_erase = erase_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5806 | }, { |
| 5807 | .eraseblocks = { {2048 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5808 | .block_erase = erase_chip_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5809 | }, |
| 5810 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5811 | .write = write_jedec_1, /* Supports a fast mode too */ |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5812 | .read = read_memmapped, |
| 5813 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */ |
| 5814 | }, |
| 5815 | |
| 5816 | { |
| 5817 | .vendor = "Fujitsu", |
| 5818 | .name = "MBM29LV160TE", |
| 5819 | .bustype = BUS_PARALLEL, |
| 5820 | .manufacture_id = FUJITSU_ID, |
| 5821 | .model_id = FUJITSU_MBM29LV160TE, |
| 5822 | .total_size = 2 * 1024, |
| 5823 | .page_size = 0, |
| 5824 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET, |
| 5825 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5826 | .probe = probe_jedec, |
| 5827 | .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] | 5828 | .block_erasers = |
| 5829 | { |
| 5830 | { |
| 5831 | .eraseblocks = { |
| 5832 | {64 * 1024, 31}, |
| 5833 | {32 * 1024, 1}, |
| 5834 | {8 * 1024, 2}, |
| 5835 | {16 * 1024, 1}, |
| 5836 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5837 | .block_erase = erase_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5838 | }, { |
| 5839 | .eraseblocks = { {2048 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5840 | .block_erase = erase_chip_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5841 | }, |
| 5842 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5843 | .write = write_jedec_1, /* Supports a fast mode too */ |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5844 | .read = read_memmapped, |
| 5845 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */ |
| 5846 | }, |
| 5847 | |
| 5848 | { |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5849 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5850 | .name = "GD25B128B/GD25Q128B", |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5851 | .bustype = BUS_SPI, |
| 5852 | .manufacture_id = GIGADEVICE_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5853 | .model_id = GIGADEVICE_GD25Q128, |
| 5854 | .total_size = 16384, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5855 | .page_size = 256, |
| 5856 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 5857 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5858 | .tested = TEST_OK_PREW, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5859 | .probe = probe_spi_rdid, |
| 5860 | .probe_timing = TIMING_ZERO, |
| 5861 | .block_erasers = |
| 5862 | { |
| 5863 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5864 | .eraseblocks = { {4 * 1024, 4096} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5865 | .block_erase = spi_block_erase_20, |
| 5866 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5867 | .eraseblocks = { {32 * 1024, 512} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5868 | .block_erase = spi_block_erase_52, |
| 5869 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5870 | .eraseblocks = { {64 * 1024, 256} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5871 | .block_erase = spi_block_erase_d8, |
| 5872 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5873 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5874 | .block_erase = spi_block_erase_60, |
| 5875 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5876 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5877 | .block_erase = spi_block_erase_c7, |
| 5878 | } |
| 5879 | }, |
| 5880 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 5881 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5882 | .write = spi_chip_write_256, |
| 5883 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5884 | .voltage = {2700, 3600}, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5885 | }, |
| 5886 | |
| 5887 | { |
| 5888 | .vendor = "GigaDevice", |
Alan Green | 188127e | 2019-08-06 16:10:34 +1000 | [diff] [blame] | 5889 | .name = "GD25LQ128C/GD25LQ128D", |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5890 | .bustype = BUS_SPI, |
| 5891 | .manufacture_id = GIGADEVICE_ID, |
Alan Green | 188127e | 2019-08-06 16:10:34 +1000 | [diff] [blame] | 5892 | .model_id = GIGADEVICE_GD25LQ128CD, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5893 | .total_size = 16384, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5894 | .page_size = 256, |
| 5895 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 5896 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5897 | .tested = TEST_UNTESTED, |
| 5898 | .probe = probe_spi_rdid, |
| 5899 | .probe_timing = TIMING_ZERO, |
| 5900 | .block_erasers = |
| 5901 | { |
| 5902 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5903 | .eraseblocks = { {4 * 1024, 4096} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5904 | .block_erase = spi_block_erase_20, |
| 5905 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5906 | .eraseblocks = { {32 * 1024, 512} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5907 | .block_erase = spi_block_erase_52, |
| 5908 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5909 | .eraseblocks = { {64 * 1024, 256} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5910 | .block_erase = spi_block_erase_d8, |
| 5911 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5912 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5913 | .block_erase = spi_block_erase_60, |
| 5914 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5915 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 5916 | .block_erase = spi_block_erase_c7, |
| 5917 | } |
| 5918 | }, |
| 5919 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 5920 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5921 | .write = spi_chip_write_256, |
| 5922 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5923 | .voltage = {1695, 1950}, |
| 5924 | }, |
| 5925 | |
| 5926 | { |
| 5927 | .vendor = "GigaDevice", |
| 5928 | .name = "GD25LQ16", |
| 5929 | .bustype = BUS_SPI, |
| 5930 | .manufacture_id = GIGADEVICE_ID, |
| 5931 | .model_id = GIGADEVICE_GD25LQ16, |
| 5932 | .total_size = 2048, |
| 5933 | .page_size = 256, |
| 5934 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 5935 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5936 | .tested = TEST_UNTESTED, |
| 5937 | .probe = probe_spi_rdid, |
| 5938 | .probe_timing = TIMING_ZERO, |
| 5939 | .block_erasers = |
| 5940 | { |
| 5941 | { |
| 5942 | .eraseblocks = { {4 * 1024, 512} }, |
| 5943 | .block_erase = spi_block_erase_20, |
| 5944 | }, { |
| 5945 | .eraseblocks = { {32 * 1024, 64} }, |
| 5946 | .block_erase = spi_block_erase_52, |
| 5947 | }, { |
| 5948 | .eraseblocks = { {64 * 1024, 32} }, |
| 5949 | .block_erase = spi_block_erase_d8, |
| 5950 | }, { |
| 5951 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5952 | .block_erase = spi_block_erase_60, |
| 5953 | }, { |
| 5954 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5955 | .block_erase = spi_block_erase_c7, |
| 5956 | } |
| 5957 | }, |
| 5958 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 5959 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5960 | .write = spi_chip_write_256, |
| 5961 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5962 | .voltage = {1695, 1950}, |
| 5963 | }, |
| 5964 | |
| 5965 | { |
| 5966 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5967 | .name = "GD25LQ32", |
| 5968 | .bustype = BUS_SPI, |
| 5969 | .manufacture_id = GIGADEVICE_ID, |
| 5970 | .model_id = GIGADEVICE_GD25LQ32, |
| 5971 | .total_size = 4096, |
| 5972 | .page_size = 256, |
| 5973 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 5974 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5975 | .tested = TEST_OK_PREW, |
| 5976 | .probe = probe_spi_rdid, |
| 5977 | .probe_timing = TIMING_ZERO, |
| 5978 | .block_erasers = |
| 5979 | { |
| 5980 | { |
| 5981 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5982 | .block_erase = spi_block_erase_20, |
| 5983 | }, { |
| 5984 | .eraseblocks = { {32 * 1024, 128} }, |
| 5985 | .block_erase = spi_block_erase_52, |
| 5986 | }, { |
| 5987 | .eraseblocks = { {64 * 1024, 64} }, |
| 5988 | .block_erase = spi_block_erase_d8, |
| 5989 | }, { |
| 5990 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5991 | .block_erase = spi_block_erase_60, |
| 5992 | }, { |
| 5993 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5994 | .block_erase = spi_block_erase_c7, |
| 5995 | } |
| 5996 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5997 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5998 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5999 | .write = spi_chip_write_256, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6000 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6001 | .voltage = {1695, 1950}, |
| 6002 | }, |
| 6003 | |
| 6004 | { |
| 6005 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6006 | .name = "GD25LQ40", |
| 6007 | .bustype = BUS_SPI, |
| 6008 | .manufacture_id = GIGADEVICE_ID, |
| 6009 | .model_id = GIGADEVICE_GD25LQ40, |
| 6010 | .total_size = 512, |
| 6011 | .page_size = 256, |
| 6012 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 6013 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6014 | .tested = TEST_UNTESTED, |
| 6015 | .probe = probe_spi_rdid, |
| 6016 | .probe_timing = TIMING_ZERO, |
| 6017 | .block_erasers = |
| 6018 | { |
| 6019 | { |
| 6020 | .eraseblocks = { {4 * 1024, 128} }, |
| 6021 | .block_erase = spi_block_erase_20, |
| 6022 | }, { |
| 6023 | .eraseblocks = { {32 * 1024, 16} }, |
| 6024 | .block_erase = spi_block_erase_52, |
| 6025 | }, { |
| 6026 | .eraseblocks = { {64 * 1024, 8} }, |
| 6027 | .block_erase = spi_block_erase_d8, |
| 6028 | }, { |
| 6029 | .eraseblocks = { {512 * 1024, 1} }, |
| 6030 | .block_erase = spi_block_erase_60, |
| 6031 | }, { |
| 6032 | .eraseblocks = { {512 * 1024, 1} }, |
| 6033 | .block_erase = spi_block_erase_c7, |
| 6034 | } |
| 6035 | }, |
| 6036 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6037 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6038 | .write = spi_chip_write_256, |
| 6039 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6040 | .voltage = {1695, 1950}, |
| 6041 | }, |
| 6042 | |
| 6043 | { |
| 6044 | .vendor = "GigaDevice", |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6045 | .name = "GD25LQ64(B)", |
| 6046 | .bustype = BUS_SPI, |
| 6047 | .manufacture_id = GIGADEVICE_ID, |
| 6048 | .model_id = GIGADEVICE_GD25LQ64, |
| 6049 | .total_size = 8192, |
| 6050 | .page_size = 256, |
| 6051 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 6052 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 6053 | .tested = TEST_OK_PREW, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6054 | .probe = probe_spi_rdid, |
| 6055 | .probe_timing = TIMING_ZERO, |
| 6056 | .block_erasers = |
| 6057 | { |
| 6058 | { |
| 6059 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6060 | .block_erase = spi_block_erase_20, |
| 6061 | }, { |
| 6062 | .eraseblocks = { {32 * 1024, 256} }, |
| 6063 | .block_erase = spi_block_erase_52, |
| 6064 | }, { |
| 6065 | .eraseblocks = { {64 * 1024, 128} }, |
| 6066 | .block_erase = spi_block_erase_d8, |
| 6067 | }, { |
| 6068 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6069 | .block_erase = spi_block_erase_60, |
| 6070 | }, { |
| 6071 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6072 | .block_erase = spi_block_erase_c7, |
| 6073 | } |
| 6074 | }, |
| 6075 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6076 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6077 | .write = spi_chip_write_256, |
| 6078 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6079 | .voltage = {1695, 1950}, |
| 6080 | }, |
| 6081 | |
| 6082 | { |
| 6083 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6084 | .name = "GD25LQ80", |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6085 | .bustype = BUS_SPI, |
| 6086 | .manufacture_id = GIGADEVICE_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6087 | .model_id = GIGADEVICE_GD25LQ80, |
| 6088 | .total_size = 1024, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6089 | .page_size = 256, |
| 6090 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 6091 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6092 | .tested = TEST_UNTESTED, |
| 6093 | .probe = probe_spi_rdid, |
| 6094 | .probe_timing = TIMING_ZERO, |
| 6095 | .block_erasers = |
| 6096 | { |
| 6097 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6098 | .eraseblocks = { {4 * 1024, 256} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6099 | .block_erase = spi_block_erase_20, |
| 6100 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6101 | .eraseblocks = { {32 * 1024, 32} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6102 | .block_erase = spi_block_erase_52, |
| 6103 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6104 | .eraseblocks = { {64 * 1024, 16} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6105 | .block_erase = spi_block_erase_d8, |
| 6106 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6107 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6108 | .block_erase = spi_block_erase_60, |
| 6109 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6110 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6111 | .block_erase = spi_block_erase_c7, |
| 6112 | } |
| 6113 | }, |
| 6114 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6115 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6116 | .write = spi_chip_write_256, |
| 6117 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6118 | .voltage = {1695, 1950}, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6119 | }, |
| 6120 | |
| 6121 | { |
| 6122 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6123 | .name = "GD25Q10", |
| 6124 | .bustype = BUS_SPI, |
| 6125 | .manufacture_id = GIGADEVICE_ID, |
| 6126 | .model_id = GIGADEVICE_GD25Q10, |
| 6127 | .total_size = 128, |
| 6128 | .page_size = 256, |
| 6129 | .feature_bits = FEATURE_WRSR_WREN, |
| 6130 | .tested = TEST_UNTESTED, |
| 6131 | .probe = probe_spi_rdid, |
| 6132 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 6133 | .block_erasers = |
| 6134 | { |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6135 | { |
| 6136 | .eraseblocks = { {4 * 1024, 32} }, |
| 6137 | .block_erase = spi_block_erase_20, |
| 6138 | }, { |
| 6139 | .eraseblocks = { {32 * 1024, 4} }, |
| 6140 | .block_erase = spi_block_erase_52, |
| 6141 | }, { |
| 6142 | .eraseblocks = { {64 * 1024, 2} }, |
| 6143 | .block_erase = spi_block_erase_d8, |
| 6144 | }, { |
| 6145 | .eraseblocks = { {128 * 1024, 1} }, |
| 6146 | .block_erase = spi_block_erase_60, |
| 6147 | }, { |
| 6148 | .eraseblocks = { {128 * 1024, 1} }, |
| 6149 | .block_erase = spi_block_erase_c7, |
| 6150 | } |
| 6151 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6152 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6153 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6154 | .write = spi_chip_write_256, |
| 6155 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6156 | .voltage = {2700, 3600}, |
| 6157 | }, |
| 6158 | |
| 6159 | { |
| 6160 | .vendor = "GigaDevice", |
Alan Green | 4f00912 | 2019-08-26 10:45:18 +1000 | [diff] [blame] | 6161 | .name = "GD25Q127C/GD25Q128C", |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6162 | .bustype = BUS_SPI, |
| 6163 | .manufacture_id = GIGADEVICE_ID, |
| 6164 | .model_id = GIGADEVICE_GD25Q128, |
| 6165 | .total_size = 16384, |
| 6166 | .page_size = 256, |
| 6167 | /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */ |
| 6168 | /* QPI: enable 0x38, disable 0xFF */ |
| 6169 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Angel Pons | bce364c | 2018-09-30 20:04:14 +0200 | [diff] [blame] | 6170 | .tested = TEST_OK_PREW, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6171 | .probe = probe_spi_rdid, |
| 6172 | .probe_timing = TIMING_ZERO, |
| 6173 | .block_erasers = |
| 6174 | { |
| 6175 | { |
| 6176 | .eraseblocks = { {4 * 1024, 4096} }, |
| 6177 | .block_erase = spi_block_erase_20, |
| 6178 | }, { |
| 6179 | .eraseblocks = { {32 * 1024, 512} }, |
| 6180 | .block_erase = spi_block_erase_52, |
| 6181 | }, { |
| 6182 | .eraseblocks = { {64 * 1024, 256} }, |
| 6183 | .block_erase = spi_block_erase_d8, |
| 6184 | }, { |
| 6185 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6186 | .block_erase = spi_block_erase_60, |
| 6187 | }, { |
| 6188 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6189 | .block_erase = spi_block_erase_c7, |
| 6190 | } |
| 6191 | }, |
| 6192 | /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */ |
| 6193 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6194 | .unlock = spi_disable_blockprotect_bp4_srwd, |
| 6195 | .write = spi_chip_write_256, |
| 6196 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6197 | .voltage = {2700, 3600}, |
| 6198 | }, |
| 6199 | |
| 6200 | { |
| 6201 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6202 | .name = "GD25Q16(B)", |
| 6203 | .bustype = BUS_SPI, |
| 6204 | .manufacture_id = GIGADEVICE_ID, |
| 6205 | .model_id = GIGADEVICE_GD25Q16, |
| 6206 | .total_size = 2048, |
| 6207 | .page_size = 256, |
| 6208 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */ |
| 6209 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6210 | .tested = TEST_OK_PREW, |
| 6211 | .probe = probe_spi_rdid, |
| 6212 | .probe_timing = TIMING_ZERO, |
| 6213 | .block_erasers = |
| 6214 | { |
| 6215 | { |
| 6216 | .eraseblocks = { {4 * 1024, 512} }, |
| 6217 | .block_erase = spi_block_erase_20, |
| 6218 | }, { |
| 6219 | .eraseblocks = { {32 * 1024, 64} }, |
| 6220 | .block_erase = spi_block_erase_52, |
| 6221 | }, { |
| 6222 | .eraseblocks = { {64 * 1024, 32} }, |
| 6223 | .block_erase = spi_block_erase_d8, |
| 6224 | }, { |
| 6225 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6226 | .block_erase = spi_block_erase_60, |
| 6227 | }, { |
| 6228 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6229 | .block_erase = spi_block_erase_c7, |
| 6230 | } |
| 6231 | }, |
| 6232 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6233 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6234 | .write = spi_chip_write_256, |
| 6235 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6236 | .voltage = {2700, 3600}, |
| 6237 | }, |
| 6238 | |
| 6239 | { |
| 6240 | .vendor = "GigaDevice", |
| 6241 | .name = "GD25Q20(B)", |
| 6242 | .bustype = BUS_SPI, |
| 6243 | .manufacture_id = GIGADEVICE_ID, |
| 6244 | .model_id = GIGADEVICE_GD25Q20, |
| 6245 | .total_size = 256, |
| 6246 | .page_size = 256, |
| 6247 | .feature_bits = FEATURE_WRSR_WREN, |
| 6248 | .tested = TEST_OK_PREW, |
| 6249 | .probe = probe_spi_rdid, |
| 6250 | .probe_timing = TIMING_ZERO, |
| 6251 | .block_erasers = |
| 6252 | { |
| 6253 | { |
| 6254 | .eraseblocks = { {4 * 1024, 64} }, |
| 6255 | .block_erase = spi_block_erase_20, |
| 6256 | }, { |
| 6257 | .eraseblocks = { {32 * 1024, 8} }, |
| 6258 | .block_erase = spi_block_erase_52, |
| 6259 | }, { |
| 6260 | .eraseblocks = { {64 * 1024, 4} }, |
| 6261 | .block_erase = spi_block_erase_d8, |
| 6262 | }, { |
| 6263 | .eraseblocks = { {256 * 1024, 1} }, |
| 6264 | .block_erase = spi_block_erase_60, |
| 6265 | }, { |
| 6266 | .eraseblocks = { {256 * 1024, 1} }, |
| 6267 | .block_erase = spi_block_erase_c7, |
| 6268 | } |
| 6269 | }, |
| 6270 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6271 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6272 | .write = spi_chip_write_256, |
| 6273 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6274 | .voltage = {2700, 3600}, |
| 6275 | }, |
| 6276 | |
| 6277 | { |
| 6278 | .vendor = "GigaDevice", |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 6279 | .name = "GD25Q256D", |
| 6280 | .bustype = BUS_SPI, |
| 6281 | .manufacture_id = GIGADEVICE_ID, |
| 6282 | .model_id = GIGADEVICE_GD25Q256D, |
| 6283 | .total_size = 32768, |
| 6284 | .page_size = 256, |
| 6285 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 6286 | .tested = TEST_UNTESTED, |
| 6287 | .probe = probe_spi_rdid, |
| 6288 | .probe_timing = TIMING_ZERO, |
| 6289 | .block_erasers = |
| 6290 | { |
| 6291 | { |
| 6292 | .eraseblocks = { {4 * 1024, 8192} }, |
Nico Huber | 5374dc3 | 2019-10-04 16:16:15 +0200 | [diff] [blame] | 6293 | .block_erase = spi_block_erase_21, |
| 6294 | }, { |
| 6295 | .eraseblocks = { {4 * 1024, 8192} }, |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 6296 | .block_erase = spi_block_erase_20, |
| 6297 | }, { |
| 6298 | .eraseblocks = { {32 * 1024, 1024} }, |
Nico Huber | 5374dc3 | 2019-10-04 16:16:15 +0200 | [diff] [blame] | 6299 | .block_erase = spi_block_erase_5c, |
| 6300 | }, { |
| 6301 | .eraseblocks = { {32 * 1024, 1024} }, |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 6302 | .block_erase = spi_block_erase_52, |
| 6303 | }, { |
| 6304 | .eraseblocks = { {64 * 1024, 512} }, |
Nico Huber | 5374dc3 | 2019-10-04 16:16:15 +0200 | [diff] [blame] | 6305 | .block_erase = spi_block_erase_dc, |
| 6306 | }, { |
| 6307 | .eraseblocks = { {64 * 1024, 512} }, |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 6308 | .block_erase = spi_block_erase_d8, |
| 6309 | }, { |
| 6310 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 6311 | .block_erase = spi_block_erase_60, |
| 6312 | }, { |
| 6313 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 6314 | .block_erase = spi_block_erase_c7, |
| 6315 | } |
| 6316 | }, |
| 6317 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 6318 | .unlock = spi_disable_blockprotect, |
| 6319 | .write = spi_chip_write_256, |
| 6320 | .read = spi_chip_read, |
| 6321 | .voltage = {2700, 3600}, |
| 6322 | }, |
| 6323 | |
| 6324 | { |
| 6325 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6326 | .name = "GD25Q32(B)", |
| 6327 | .bustype = BUS_SPI, |
| 6328 | .manufacture_id = GIGADEVICE_ID, |
| 6329 | .model_id = GIGADEVICE_GD25Q32, |
| 6330 | .total_size = 4096, |
| 6331 | .page_size = 256, |
| 6332 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 6333 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6334 | .tested = TEST_OK_PREW, |
| 6335 | .probe = probe_spi_rdid, |
| 6336 | .probe_timing = TIMING_ZERO, |
| 6337 | .block_erasers = |
| 6338 | { |
| 6339 | { |
| 6340 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6341 | .block_erase = spi_block_erase_20, |
| 6342 | }, { |
| 6343 | .eraseblocks = { {32 * 1024, 128} }, |
| 6344 | .block_erase = spi_block_erase_52, |
| 6345 | }, { |
| 6346 | .eraseblocks = { {64 * 1024, 64} }, |
| 6347 | .block_erase = spi_block_erase_d8, |
| 6348 | }, { |
| 6349 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6350 | .block_erase = spi_block_erase_60, |
| 6351 | }, { |
| 6352 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6353 | .block_erase = spi_block_erase_c7, |
| 6354 | } |
| 6355 | }, |
| 6356 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6357 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6358 | .write = spi_chip_write_256, |
| 6359 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6360 | .voltage = {2700, 3600}, |
| 6361 | }, |
| 6362 | |
| 6363 | { |
| 6364 | .vendor = "GigaDevice", |
| 6365 | .name = "GD25Q40(B)", |
| 6366 | .bustype = BUS_SPI, |
| 6367 | .manufacture_id = GIGADEVICE_ID, |
| 6368 | .model_id = GIGADEVICE_GD25Q40, |
| 6369 | .total_size = 512, |
| 6370 | .page_size = 256, |
| 6371 | .feature_bits = FEATURE_WRSR_WREN, |
| 6372 | .tested = TEST_UNTESTED, |
| 6373 | .probe = probe_spi_rdid, |
| 6374 | .probe_timing = TIMING_ZERO, |
| 6375 | .block_erasers = |
| 6376 | { |
| 6377 | { |
| 6378 | .eraseblocks = { {4 * 1024, 128} }, |
| 6379 | .block_erase = spi_block_erase_20, |
| 6380 | }, { |
| 6381 | .eraseblocks = { {32 * 1024, 16} }, |
| 6382 | .block_erase = spi_block_erase_52, |
| 6383 | }, { |
| 6384 | .eraseblocks = { {64 * 1024, 8} }, |
| 6385 | .block_erase = spi_block_erase_d8, |
| 6386 | }, { |
| 6387 | .eraseblocks = { {512 * 1024, 1} }, |
| 6388 | .block_erase = spi_block_erase_60, |
| 6389 | }, { |
| 6390 | .eraseblocks = { {512 * 1024, 1} }, |
| 6391 | .block_erase = spi_block_erase_c7, |
| 6392 | } |
| 6393 | }, |
| 6394 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6395 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6396 | .write = spi_chip_write_256, |
| 6397 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6398 | .voltage = {2700, 3600}, |
| 6399 | }, |
| 6400 | |
| 6401 | { |
| 6402 | .vendor = "GigaDevice", |
| 6403 | .name = "GD25Q512", |
| 6404 | .bustype = BUS_SPI, |
| 6405 | .manufacture_id = GIGADEVICE_ID, |
| 6406 | .model_id = GIGADEVICE_GD25Q512, |
| 6407 | .total_size = 64, |
| 6408 | .page_size = 256, |
| 6409 | .feature_bits = FEATURE_WRSR_WREN, |
| 6410 | .tested = TEST_OK_PREW, |
| 6411 | .probe = probe_spi_rdid, |
| 6412 | .probe_timing = TIMING_ZERO, |
| 6413 | .block_erasers = |
| 6414 | { |
| 6415 | { |
| 6416 | .eraseblocks = { {4 * 1024, 16} }, |
| 6417 | .block_erase = spi_block_erase_20, |
| 6418 | }, { |
| 6419 | .eraseblocks = { {32 * 1024, 2} }, |
| 6420 | .block_erase = spi_block_erase_52, |
| 6421 | }, { |
| 6422 | .eraseblocks = { {64 * 1024, 1} }, |
| 6423 | .block_erase = spi_block_erase_60, |
| 6424 | }, { |
| 6425 | .eraseblocks = { {64 * 1024, 1} }, |
| 6426 | .block_erase = spi_block_erase_c7, |
| 6427 | } |
| 6428 | }, |
| 6429 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6430 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6431 | .write = spi_chip_write_256, |
| 6432 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6433 | .voltage = {2700, 3600}, |
| 6434 | }, |
| 6435 | |
| 6436 | { |
| 6437 | .vendor = "GigaDevice", |
| 6438 | .name = "GD25Q64(B)", |
| 6439 | .bustype = BUS_SPI, |
| 6440 | .manufacture_id = GIGADEVICE_ID, |
| 6441 | .model_id = GIGADEVICE_GD25Q64, |
| 6442 | .total_size = 8192, |
| 6443 | .page_size = 256, |
| 6444 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 6445 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6446 | .tested = TEST_OK_PREW, |
| 6447 | .probe = probe_spi_rdid, |
| 6448 | .probe_timing = TIMING_ZERO, |
| 6449 | .block_erasers = |
| 6450 | { |
| 6451 | { |
| 6452 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6453 | .block_erase = spi_block_erase_20, |
| 6454 | }, { |
| 6455 | .eraseblocks = { {32 * 1024, 256} }, |
| 6456 | .block_erase = spi_block_erase_52, |
| 6457 | }, { |
| 6458 | .eraseblocks = { {64 * 1024, 128} }, |
| 6459 | .block_erase = spi_block_erase_d8, |
| 6460 | }, { |
| 6461 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6462 | .block_erase = spi_block_erase_60, |
| 6463 | }, { |
| 6464 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6465 | .block_erase = spi_block_erase_c7, |
| 6466 | } |
| 6467 | }, |
| 6468 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6469 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6470 | .write = spi_chip_write_256, |
| 6471 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6472 | .voltage = {2700, 3600}, |
| 6473 | }, |
| 6474 | |
| 6475 | { |
| 6476 | .vendor = "GigaDevice", |
| 6477 | .name = "GD25Q80(B)", |
| 6478 | .bustype = BUS_SPI, |
| 6479 | .manufacture_id = GIGADEVICE_ID, |
| 6480 | .model_id = GIGADEVICE_GD25Q80, |
| 6481 | .total_size = 1024, |
| 6482 | .page_size = 256, |
| 6483 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */ |
| 6484 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6485 | .tested = TEST_OK_PREW, |
| 6486 | .probe = probe_spi_rdid, |
| 6487 | .probe_timing = TIMING_ZERO, |
| 6488 | .block_erasers = |
| 6489 | { |
| 6490 | { |
| 6491 | .eraseblocks = { {4 * 1024, 256} }, |
| 6492 | .block_erase = spi_block_erase_20, |
| 6493 | }, { |
| 6494 | .eraseblocks = { {32 * 1024, 32} }, |
| 6495 | .block_erase = spi_block_erase_52, |
| 6496 | }, { |
| 6497 | .eraseblocks = { {64 * 1024, 16} }, |
| 6498 | .block_erase = spi_block_erase_d8, |
| 6499 | }, { |
| 6500 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6501 | .block_erase = spi_block_erase_60, |
| 6502 | }, { |
| 6503 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6504 | .block_erase = spi_block_erase_c7, |
| 6505 | } |
| 6506 | }, |
| 6507 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6508 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6509 | .write = spi_chip_write_256, |
| 6510 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6511 | .voltage = {2700, 3600}, |
| 6512 | }, |
| 6513 | |
| 6514 | { |
| 6515 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6516 | .name = "GD25T80", |
| 6517 | .bustype = BUS_SPI, |
| 6518 | .manufacture_id = GIGADEVICE_ID, |
| 6519 | .model_id = GIGADEVICE_GD25T80, |
| 6520 | .total_size = 1024, |
| 6521 | .page_size = 256, |
| 6522 | /* OTP: 256B total; enter 0x3A */ |
| 6523 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6524 | .tested = TEST_UNTESTED, |
| 6525 | .probe = probe_spi_rdid, |
| 6526 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 6527 | .block_erasers = |
| 6528 | { |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6529 | { |
| 6530 | .eraseblocks = { {4 * 1024, 256} }, |
| 6531 | .block_erase = spi_block_erase_20, |
| 6532 | }, { |
| 6533 | .eraseblocks = { {64 * 1024, 16} }, |
| 6534 | .block_erase = spi_block_erase_52, |
| 6535 | }, { |
| 6536 | .eraseblocks = { {64 * 1024, 16} }, |
| 6537 | .block_erase = spi_block_erase_d8, |
| 6538 | }, { |
| 6539 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6540 | .block_erase = spi_block_erase_60, |
| 6541 | }, { |
| 6542 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6543 | .block_erase = spi_block_erase_c7, |
| 6544 | } |
| 6545 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 6546 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6547 | .unlock = spi_disable_blockprotect, |
| 6548 | .write = spi_chip_write_256, |
| 6549 | .read = spi_chip_read, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 6550 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6551 | }, |
| 6552 | |
| 6553 | { |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6554 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6555 | .name = "GD25VQ16C", |
| 6556 | .bustype = BUS_SPI, |
| 6557 | .manufacture_id = GIGADEVICE_ID, |
| 6558 | .model_id = GIGADEVICE_GD25VQ16C, |
| 6559 | .total_size = 2 * 1024, |
| 6560 | .page_size = 256, |
| 6561 | /* Supports SFDP */ |
| 6562 | /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */ |
| 6563 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6564 | .tested = TEST_UNTESTED, |
| 6565 | .probe = probe_spi_rdid, |
| 6566 | .probe_timing = TIMING_ZERO, |
| 6567 | .block_erasers = |
| 6568 | { |
| 6569 | { |
| 6570 | .eraseblocks = { { 4 * 1024, 512} }, |
| 6571 | .block_erase = spi_block_erase_20, |
| 6572 | }, { |
| 6573 | .eraseblocks = { { 32 * 1024, 64} }, |
| 6574 | .block_erase = spi_block_erase_52, |
| 6575 | }, { |
| 6576 | .eraseblocks = { { 64 * 1024, 32} }, |
| 6577 | .block_erase = spi_block_erase_d8, |
| 6578 | }, { |
| 6579 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6580 | .block_erase = spi_block_erase_60, |
| 6581 | }, { |
| 6582 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6583 | .block_erase = spi_block_erase_c7, |
| 6584 | } |
| 6585 | }, |
| 6586 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6587 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6588 | .write = spi_chip_write_256, |
| 6589 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6590 | .voltage = {2300, 3600}, |
| 6591 | }, |
| 6592 | |
| 6593 | { |
| 6594 | .vendor = "GigaDevice", |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 6595 | .name = "GD25VQ21B", |
| 6596 | .bustype = BUS_SPI, |
| 6597 | .manufacture_id = GIGADEVICE_ID, |
| 6598 | .model_id = GIGADEVICE_GD25VQ21B, |
| 6599 | .total_size = 256, |
| 6600 | .page_size = 256, |
| 6601 | /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */ |
| 6602 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6603 | .tested = TEST_UNTESTED, |
| 6604 | .probe = probe_spi_rdid, |
| 6605 | .probe_timing = TIMING_ZERO, |
| 6606 | .block_erasers = |
| 6607 | { |
| 6608 | { |
| 6609 | .eraseblocks = { { 4 * 1024, 64} }, |
| 6610 | .block_erase = spi_block_erase_20, |
| 6611 | }, { |
| 6612 | .eraseblocks = { { 32 * 1024, 8} }, |
| 6613 | .block_erase = spi_block_erase_52, |
| 6614 | }, { |
| 6615 | .eraseblocks = { { 64 * 1024, 4} }, |
| 6616 | .block_erase = spi_block_erase_d8, |
| 6617 | }, { |
| 6618 | .eraseblocks = { {256 * 1024, 1} }, |
| 6619 | .block_erase = spi_block_erase_60, |
| 6620 | }, { |
| 6621 | .eraseblocks = { {256 * 1024, 1} }, |
| 6622 | .block_erase = spi_block_erase_c7, |
| 6623 | } |
| 6624 | }, |
| 6625 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6626 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6627 | .write = spi_chip_write_256, |
| 6628 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6629 | .voltage = {2300, 3600}, |
| 6630 | }, |
| 6631 | |
| 6632 | { |
| 6633 | .vendor = "GigaDevice", |
| 6634 | .name = "GD25VQ40C", |
| 6635 | .bustype = BUS_SPI, |
| 6636 | .manufacture_id = GIGADEVICE_ID, |
| 6637 | .model_id = GIGADEVICE_GD25VQ41B, |
| 6638 | .total_size = 512, |
| 6639 | .page_size = 256, |
| 6640 | /* Supports SFDP */ |
| 6641 | /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */ |
| 6642 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6643 | .tested = TEST_UNTESTED, |
| 6644 | .probe = probe_spi_rdid, |
| 6645 | .probe_timing = TIMING_ZERO, |
| 6646 | .block_erasers = |
| 6647 | { |
| 6648 | { |
| 6649 | .eraseblocks = { { 4 * 1024, 128} }, |
| 6650 | .block_erase = spi_block_erase_20, |
| 6651 | }, { |
| 6652 | .eraseblocks = { { 32 * 1024, 16} }, |
| 6653 | .block_erase = spi_block_erase_52, |
| 6654 | }, { |
| 6655 | .eraseblocks = { { 64 * 1024, 8} }, |
| 6656 | .block_erase = spi_block_erase_d8, |
| 6657 | }, { |
| 6658 | .eraseblocks = { {512 * 1024, 1} }, |
| 6659 | .block_erase = spi_block_erase_60, |
| 6660 | }, { |
| 6661 | .eraseblocks = { {512 * 1024, 1} }, |
| 6662 | .block_erase = spi_block_erase_c7, |
| 6663 | } |
| 6664 | }, |
| 6665 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6666 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6667 | .write = spi_chip_write_256, |
| 6668 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6669 | .voltage = {2300, 3600}, |
| 6670 | }, |
| 6671 | |
| 6672 | { |
| 6673 | .vendor = "GigaDevice", |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6674 | .name = "GD25VQ41B", |
| 6675 | .bustype = BUS_SPI, |
| 6676 | .manufacture_id = GIGADEVICE_ID, |
| 6677 | .model_id = GIGADEVICE_GD25VQ41B, |
| 6678 | .total_size = 512, |
| 6679 | .page_size = 256, |
| 6680 | /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */ |
| 6681 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 6682 | .tested = TEST_OK_PREW, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6683 | .probe = probe_spi_rdid, |
| 6684 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 6685 | .block_erasers = |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6686 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 6687 | { |
| 6688 | .eraseblocks = { { 4 * 1024, 128} }, |
| 6689 | .block_erase = spi_block_erase_20, |
| 6690 | }, { |
| 6691 | .eraseblocks = { { 32 * 1024, 16} }, |
| 6692 | .block_erase = spi_block_erase_52, |
| 6693 | }, { |
| 6694 | .eraseblocks = { { 64 * 1024, 8} }, |
| 6695 | .block_erase = spi_block_erase_d8, |
| 6696 | }, { |
| 6697 | .eraseblocks = { {512 * 1024, 1} }, |
| 6698 | .block_erase = spi_block_erase_60, |
| 6699 | }, { |
| 6700 | .eraseblocks = { {512 * 1024, 1} }, |
| 6701 | .block_erase = spi_block_erase_c7, |
| 6702 | } |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6703 | }, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6704 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 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 = {2300, 3600}, |
| 6709 | }, |
| 6710 | |
| 6711 | { |
| 6712 | .vendor = "GigaDevice", |
| 6713 | .name = "GD25VQ80C", |
| 6714 | .bustype = BUS_SPI, |
| 6715 | .manufacture_id = GIGADEVICE_ID, |
| 6716 | .model_id = GIGADEVICE_GD25VQ80C, |
| 6717 | .total_size = 1024, |
| 6718 | .page_size = 256, |
| 6719 | /* Supports SFDP */ |
| 6720 | /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */ |
| 6721 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6722 | .tested = TEST_UNTESTED, |
| 6723 | .probe = probe_spi_rdid, |
| 6724 | .probe_timing = TIMING_ZERO, |
| 6725 | .block_erasers = |
| 6726 | { |
| 6727 | { |
| 6728 | .eraseblocks = { { 4 * 1024, 256} }, |
| 6729 | .block_erase = spi_block_erase_20, |
| 6730 | }, { |
| 6731 | .eraseblocks = { { 32 * 1024, 32} }, |
| 6732 | .block_erase = spi_block_erase_52, |
| 6733 | }, { |
| 6734 | .eraseblocks = { { 64 * 1024, 16} }, |
| 6735 | .block_erase = spi_block_erase_d8, |
| 6736 | }, { |
| 6737 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6738 | .block_erase = spi_block_erase_60, |
| 6739 | }, { |
| 6740 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6741 | .block_erase = spi_block_erase_c7, |
| 6742 | } |
| 6743 | }, |
| 6744 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6745 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6746 | .write = spi_chip_write_256, |
| 6747 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6748 | .voltage = {2300, 3600}, |
| 6749 | }, |
| 6750 | |
| 6751 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6752 | .vendor = "Hyundai", |
| 6753 | .name = "HY29F002B", |
| 6754 | .bustype = BUS_PARALLEL, |
| 6755 | .manufacture_id = HYUNDAI_ID, |
| 6756 | .model_id = HYUNDAI_HY29F002B, |
| 6757 | .total_size = 256, |
| 6758 | .page_size = 256 * 1024, |
| 6759 | .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */ |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 6760 | .tested = TEST_UNTESTED, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6761 | .probe = probe_jedec, |
| 6762 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 6763 | .block_erasers = |
| 6764 | { |
| 6765 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6766 | .eraseblocks = { |
| 6767 | {16 * 1024, 1}, |
| 6768 | {8 * 1024, 2}, |
| 6769 | {32 * 1024, 1}, |
| 6770 | {64 * 1024, 3}, |
| 6771 | }, |
| 6772 | .block_erase = erase_sector_jedec, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 6773 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6774 | .eraseblocks = { {256 * 1024, 1} }, |
| 6775 | .block_erase = erase_chip_block_jedec, |
| 6776 | }, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 6777 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6778 | .write = write_jedec_1, |
| 6779 | .read = read_memmapped, |
| 6780 | .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] | 6781 | }, |
| 6782 | |
| 6783 | { |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6784 | .vendor = "Hyundai", |
| 6785 | .name = "HY29F002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6786 | .bustype = BUS_PARALLEL, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6787 | .manufacture_id = HYUNDAI_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6788 | .model_id = HYUNDAI_HY29F002T, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6789 | .total_size = 256, |
| 6790 | .page_size = 256 * 1024, |
| 6791 | .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] | 6792 | .tested = TEST_OK_PRE, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 6793 | .probe = probe_jedec, |
| 6794 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 6795 | .block_erasers = |
| 6796 | { |
| 6797 | { |
| 6798 | .eraseblocks = { |
| 6799 | {64 * 1024, 3}, |
| 6800 | {32 * 1024, 1}, |
| 6801 | {8 * 1024, 2}, |
| 6802 | {16 * 1024, 1}, |
| 6803 | }, |
| 6804 | .block_erase = erase_sector_jedec, |
| 6805 | }, { |
| 6806 | .eraseblocks = { {256 * 1024, 1} }, |
| 6807 | .block_erase = erase_chip_block_jedec, |
| 6808 | }, |
| 6809 | }, |
| 6810 | .write = write_jedec_1, |
| 6811 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6812 | .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] | 6813 | }, |
| 6814 | |
| 6815 | { |
| 6816 | .vendor = "Hyundai", |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6817 | .name = "HY29F040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6818 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6819 | .manufacture_id = HYUNDAI_ID, |
| 6820 | .model_id = HYUNDAI_HY29F040A, |
| 6821 | .total_size = 512, |
| 6822 | .page_size = 64 * 1024, |
| 6823 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 6824 | .tested = TEST_UNTESTED, |
| 6825 | .probe = probe_jedec, |
| 6826 | .probe_timing = TIMING_ZERO, |
| 6827 | .block_erasers = |
| 6828 | { |
| 6829 | { |
| 6830 | .eraseblocks = { {64 * 1024, 8} }, |
| 6831 | .block_erase = erase_sector_jedec, |
| 6832 | }, { |
| 6833 | .eraseblocks = { {512 * 1024, 1} }, |
| 6834 | .block_erase = erase_chip_block_jedec, |
| 6835 | }, |
| 6836 | }, |
| 6837 | .write = write_jedec_1, |
| 6838 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6839 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6840 | }, |
| 6841 | |
| 6842 | { |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 6843 | .vendor = "ISSI", |
Angel Pons | 2ef47f3 | 2018-09-30 16:47:30 +0200 | [diff] [blame] | 6844 | .name = "IS25LP064", |
| 6845 | .bustype = BUS_SPI, |
| 6846 | .manufacture_id = ISSI_ID_SPI, |
| 6847 | .model_id = ISSI_IS25LP064, |
| 6848 | .total_size = 8192, |
| 6849 | .page_size = 256, |
| 6850 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 6851 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6852 | .tested = TEST_UNTESTED, |
| 6853 | .probe = probe_spi_rdid, |
| 6854 | .probe_timing = TIMING_ZERO, |
| 6855 | .block_erasers = |
| 6856 | { |
| 6857 | { |
| 6858 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6859 | .block_erase = spi_block_erase_20, |
| 6860 | }, { |
| 6861 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6862 | .block_erase = spi_block_erase_d7, |
| 6863 | }, { |
| 6864 | .eraseblocks = { {32 * 1024, 256} }, |
| 6865 | .block_erase = spi_block_erase_52, |
| 6866 | }, { |
| 6867 | .eraseblocks = { {64 * 1024, 128} }, |
| 6868 | .block_erase = spi_block_erase_d8, |
| 6869 | }, { |
| 6870 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6871 | .block_erase = spi_block_erase_60, |
| 6872 | }, { |
| 6873 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6874 | .block_erase = spi_block_erase_c7, |
| 6875 | } |
| 6876 | }, |
| 6877 | .unlock = spi_disable_blockprotect, |
| 6878 | .write = spi_chip_write_256, |
| 6879 | .read = spi_chip_read, |
| 6880 | .voltage = {2300, 3600}, |
| 6881 | }, |
| 6882 | |
| 6883 | { |
| 6884 | .vendor = "ISSI", |
David Hendricks | 3083ed9 | 2017-05-02 13:25:56 -0700 | [diff] [blame] | 6885 | .name = "IS25LP128", |
| 6886 | .bustype = BUS_SPI, |
| 6887 | .manufacture_id = ISSI_ID_SPI, |
| 6888 | .model_id = ISSI_IS25LP128, |
| 6889 | .total_size = 16384, |
| 6890 | .page_size = 256, |
| 6891 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 6892 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6893 | .tested = TEST_OK_PREW, |
| 6894 | .probe = probe_spi_rdid, |
| 6895 | .probe_timing = TIMING_ZERO, |
| 6896 | .block_erasers = |
| 6897 | { |
| 6898 | { |
| 6899 | .eraseblocks = { {4 * 1024, 4096} }, |
| 6900 | .block_erase = spi_block_erase_20, |
| 6901 | }, { |
| 6902 | .eraseblocks = { {4 * 1024, 4096} }, |
| 6903 | .block_erase = spi_block_erase_d7, |
| 6904 | }, { |
| 6905 | .eraseblocks = { {32 * 1024, 512} }, |
| 6906 | .block_erase = spi_block_erase_52, |
| 6907 | }, { |
| 6908 | .eraseblocks = { {64 * 1024, 256} }, |
| 6909 | .block_erase = spi_block_erase_d8, |
| 6910 | }, { |
| 6911 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6912 | .block_erase = spi_block_erase_60, |
| 6913 | }, { |
| 6914 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6915 | .block_erase = spi_block_erase_c7, |
| 6916 | } |
| 6917 | }, |
| 6918 | .unlock = spi_disable_blockprotect, |
| 6919 | .write = spi_chip_write_256, |
| 6920 | .read = spi_chip_read, |
| 6921 | .voltage = {2300, 3600}, |
| 6922 | }, |
| 6923 | |
| 6924 | { |
| 6925 | .vendor = "ISSI", |
David Hendricks | 61818dc | 2018-10-28 01:02:21 +0000 | [diff] [blame] | 6926 | .name = "IS25LP256", |
| 6927 | .bustype = BUS_SPI, |
| 6928 | .manufacture_id = ISSI_ID_SPI, |
| 6929 | .model_id = ISSI_IS25LP256, |
| 6930 | .total_size = 32768, |
| 6931 | .page_size = 256, |
| 6932 | /* supports SFDP */ |
| 6933 | /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */ |
| 6934 | /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */ |
| 6935 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7, |
| 6936 | .tested = TEST_OK_PREW, |
| 6937 | .probe = probe_spi_rdid, |
| 6938 | .probe_timing = TIMING_ZERO, |
| 6939 | .block_erasers = |
| 6940 | { |
| 6941 | { |
| 6942 | .eraseblocks = { {4 * 1024, 8192} }, |
| 6943 | .block_erase = spi_block_erase_21, |
| 6944 | }, { |
| 6945 | .eraseblocks = { {4 * 1024, 8192} }, |
| 6946 | .block_erase = spi_block_erase_20, |
| 6947 | /* could also use spi_block_erase_d7 */ |
| 6948 | }, { |
| 6949 | .eraseblocks = { {32 * 1024, 1024} }, |
| 6950 | .block_erase = spi_block_erase_5c, |
| 6951 | }, { |
| 6952 | .eraseblocks = { {32 * 1024, 1024} }, |
| 6953 | .block_erase = spi_block_erase_52, |
| 6954 | }, { |
| 6955 | .eraseblocks = { {64 * 1024, 512} }, |
| 6956 | .block_erase = spi_block_erase_dc, |
| 6957 | }, { |
| 6958 | .eraseblocks = { {64 * 1024, 512} }, |
| 6959 | .block_erase = spi_block_erase_d8, |
| 6960 | }, { |
| 6961 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 6962 | .block_erase = spi_block_erase_60, |
| 6963 | }, { |
| 6964 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 6965 | .block_erase = spi_block_erase_c7, |
| 6966 | } |
| 6967 | }, |
| 6968 | .unlock = spi_disable_blockprotect, |
| 6969 | .write = spi_chip_write_256, |
| 6970 | .read = spi_chip_read, |
| 6971 | .voltage = {2300, 3600}, |
| 6972 | }, |
| 6973 | |
| 6974 | { |
| 6975 | .vendor = "ISSI", |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 6976 | .name = "IS25WP032", |
| 6977 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 6978 | .manufacture_id = ISSI_ID_SPI, |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 6979 | .model_id = ISSI_IS25WP032, |
| 6980 | .total_size = 4096, |
| 6981 | .page_size = 256, |
| 6982 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 6983 | /* QPI enable 0x35, disable 0xF5 */ |
| 6984 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6985 | .tested = TEST_UNTESTED, |
| 6986 | .probe = probe_spi_rdid, |
| 6987 | .probe_timing = TIMING_ZERO, |
| 6988 | .block_erasers = |
| 6989 | { |
| 6990 | { |
| 6991 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6992 | .block_erase = spi_block_erase_20, |
| 6993 | }, { |
| 6994 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6995 | .block_erase = spi_block_erase_d7, |
| 6996 | }, { |
| 6997 | .eraseblocks = { {32 * 1024, 128} }, |
| 6998 | .block_erase = spi_block_erase_52, |
| 6999 | }, { |
| 7000 | .eraseblocks = { {64 * 1024, 64} }, |
| 7001 | .block_erase = spi_block_erase_d8, |
| 7002 | }, { |
| 7003 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7004 | .block_erase = spi_block_erase_60, |
| 7005 | }, { |
| 7006 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7007 | .block_erase = spi_block_erase_c7, |
| 7008 | } |
| 7009 | }, |
| 7010 | .unlock = spi_disable_blockprotect, |
| 7011 | .write = spi_chip_write_256, |
| 7012 | .read = spi_chip_read, |
| 7013 | .voltage = {1650, 1950}, |
| 7014 | }, |
| 7015 | |
| 7016 | { |
| 7017 | .vendor = "ISSI", |
| 7018 | .name = "IS25WP064", |
| 7019 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 7020 | .manufacture_id = ISSI_ID_SPI, |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 7021 | .model_id = ISSI_IS25WP064, |
| 7022 | .total_size = 8192, |
| 7023 | .page_size = 256, |
| 7024 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 7025 | /* QPI enable 0x35, disable 0xF5 */ |
| 7026 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 7027 | .tested = TEST_OK_PREW, |
| 7028 | .probe = probe_spi_rdid, |
| 7029 | .probe_timing = TIMING_ZERO, |
| 7030 | .block_erasers = |
| 7031 | { |
| 7032 | { |
| 7033 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7034 | .block_erase = spi_block_erase_20, |
| 7035 | }, { |
| 7036 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7037 | .block_erase = spi_block_erase_d7, |
| 7038 | }, { |
| 7039 | .eraseblocks = { {32 * 1024, 256} }, |
| 7040 | .block_erase = spi_block_erase_52, |
| 7041 | }, { |
| 7042 | .eraseblocks = { {64 * 1024, 128} }, |
| 7043 | .block_erase = spi_block_erase_d8, |
| 7044 | }, { |
| 7045 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7046 | .block_erase = spi_block_erase_60, |
| 7047 | }, { |
| 7048 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7049 | .block_erase = spi_block_erase_c7, |
| 7050 | } |
| 7051 | }, |
| 7052 | .unlock = spi_disable_blockprotect, |
| 7053 | .write = spi_chip_write_256, |
| 7054 | .read = spi_chip_read, |
| 7055 | .voltage = {1650, 1950}, |
| 7056 | }, |
| 7057 | |
| 7058 | { |
| 7059 | .vendor = "ISSI", |
David Hendricks | 3083ed9 | 2017-05-02 13:25:56 -0700 | [diff] [blame] | 7060 | .name = "IS25WP128", |
| 7061 | .bustype = BUS_SPI, |
| 7062 | .manufacture_id = ISSI_ID_SPI, |
| 7063 | .model_id = ISSI_IS25WP128, |
| 7064 | .total_size = 16384, |
| 7065 | .page_size = 256, |
| 7066 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 7067 | /* QPI enable 0x35, disable 0xF5 */ |
| 7068 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
David Hendricks | 3083ed9 | 2017-05-02 13:25:56 -0700 | [diff] [blame] | 7069 | .tested = TEST_OK_PREW, |
| 7070 | .probe = probe_spi_rdid, |
| 7071 | .probe_timing = TIMING_ZERO, |
| 7072 | .block_erasers = |
| 7073 | { |
| 7074 | { |
| 7075 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7076 | .block_erase = spi_block_erase_20, |
| 7077 | }, { |
| 7078 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7079 | .block_erase = spi_block_erase_d7, |
| 7080 | }, { |
| 7081 | .eraseblocks = { {32 * 1024, 512} }, |
| 7082 | .block_erase = spi_block_erase_52, |
| 7083 | }, { |
| 7084 | .eraseblocks = { {64 * 1024, 256} }, |
| 7085 | .block_erase = spi_block_erase_d8, |
| 7086 | }, { |
| 7087 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7088 | .block_erase = spi_block_erase_60, |
| 7089 | }, { |
| 7090 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7091 | .block_erase = spi_block_erase_c7, |
| 7092 | } |
| 7093 | }, |
| 7094 | .unlock = spi_disable_blockprotect, |
| 7095 | .write = spi_chip_write_256, |
| 7096 | .read = spi_chip_read, |
| 7097 | .voltage = {1650, 1950}, |
| 7098 | }, |
| 7099 | |
| 7100 | { |
| 7101 | .vendor = "ISSI", |
David Hendricks | 61818dc | 2018-10-28 01:02:21 +0000 | [diff] [blame] | 7102 | .name = "IS25WP256", |
| 7103 | .bustype = BUS_SPI, |
| 7104 | .manufacture_id = ISSI_ID_SPI, |
| 7105 | .model_id = ISSI_IS25WP256, |
| 7106 | .total_size = 32768, |
| 7107 | .page_size = 256, |
| 7108 | /* supports SFDP */ |
| 7109 | /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */ |
| 7110 | /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */ |
| 7111 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7, |
| 7112 | .tested = TEST_OK_PREW, |
| 7113 | .probe = probe_spi_rdid, |
| 7114 | .probe_timing = TIMING_ZERO, |
| 7115 | .block_erasers = |
| 7116 | { |
| 7117 | { |
| 7118 | .eraseblocks = { {4 * 1024, 8192} }, |
| 7119 | .block_erase = spi_block_erase_21, |
| 7120 | }, { |
| 7121 | .eraseblocks = { {4 * 1024, 8192} }, |
| 7122 | .block_erase = spi_block_erase_20, |
| 7123 | /* could also use spi_block_erase_d7 */ |
| 7124 | }, { |
| 7125 | .eraseblocks = { {32 * 1024, 1024} }, |
| 7126 | .block_erase = spi_block_erase_5c, |
| 7127 | }, { |
| 7128 | .eraseblocks = { {32 * 1024, 1024} }, |
| 7129 | .block_erase = spi_block_erase_52, |
| 7130 | }, { |
| 7131 | .eraseblocks = { {64 * 1024, 512} }, |
| 7132 | .block_erase = spi_block_erase_dc, |
| 7133 | }, { |
| 7134 | .eraseblocks = { {64 * 1024, 512} }, |
| 7135 | .block_erase = spi_block_erase_d8, |
| 7136 | }, { |
| 7137 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 7138 | .block_erase = spi_block_erase_60, |
| 7139 | }, { |
| 7140 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 7141 | .block_erase = spi_block_erase_c7, |
| 7142 | } |
| 7143 | }, |
| 7144 | .unlock = spi_disable_blockprotect, |
| 7145 | .write = spi_chip_write_256, |
| 7146 | .read = spi_chip_read, |
| 7147 | .voltage = {1650, 1950}, |
| 7148 | }, |
| 7149 | |
| 7150 | { |
| 7151 | .vendor = "ISSI", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 7152 | .name = "IS29GL064B", |
| 7153 | .bustype = BUS_PARALLEL, |
| 7154 | .manufacture_id = ISSI_ID, |
| 7155 | .model_id = ISSI_PMC_IS29GL064B, |
| 7156 | .total_size = 8192, |
| 7157 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7158 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7159 | .tested = TEST_UNTESTED, |
| 7160 | .probe = probe_jedec_29gl, |
| 7161 | .probe_timing = TIMING_ZERO, |
| 7162 | .block_erasers = |
| 7163 | { |
| 7164 | { |
| 7165 | .eraseblocks = { |
| 7166 | {8 * 1024, 8}, |
| 7167 | {64 * 1024, 127}, |
| 7168 | }, |
| 7169 | .block_erase = erase_sector_jedec, |
| 7170 | }, { |
| 7171 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7172 | .block_erase = erase_chip_block_jedec, |
| 7173 | }, |
| 7174 | }, |
| 7175 | .write = write_jedec_1, |
| 7176 | .read = read_memmapped, |
| 7177 | .voltage = {2700, 3600}, |
| 7178 | }, |
| 7179 | |
| 7180 | { |
| 7181 | .vendor = "ISSI", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7182 | .name = "IS29GL064H/L", |
| 7183 | .bustype = BUS_PARALLEL, |
| 7184 | .manufacture_id = ISSI_ID, |
| 7185 | .model_id = ISSI_PMC_IS29GL064HL, |
| 7186 | .total_size = 8192, |
| 7187 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7188 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7189 | .tested = TEST_UNTESTED, |
| 7190 | .probe = probe_jedec_29gl, |
| 7191 | .probe_timing = TIMING_ZERO, |
| 7192 | .block_erasers = |
| 7193 | { |
| 7194 | { |
| 7195 | .eraseblocks = { {64 * 1024, 128} }, |
| 7196 | .block_erase = erase_sector_jedec, |
| 7197 | }, { |
| 7198 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7199 | .block_erase = erase_chip_block_jedec, |
| 7200 | }, |
| 7201 | }, |
| 7202 | .write = write_jedec_1, |
| 7203 | .read = read_memmapped, |
| 7204 | .voltage = {2700, 3600}, |
| 7205 | }, |
| 7206 | |
| 7207 | { |
| 7208 | .vendor = "ISSI", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 7209 | .name = "IS29GL064T", |
| 7210 | .bustype = BUS_PARALLEL, |
| 7211 | .manufacture_id = ISSI_ID, |
| 7212 | .model_id = ISSI_PMC_IS29GL064T, |
| 7213 | .total_size = 8192, |
| 7214 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7215 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7216 | .tested = TEST_UNTESTED, |
| 7217 | .probe = probe_jedec_29gl, |
| 7218 | .probe_timing = TIMING_ZERO, |
| 7219 | .block_erasers = |
| 7220 | { |
| 7221 | { |
| 7222 | .eraseblocks = { |
| 7223 | {64 * 1024, 127}, |
| 7224 | {8 * 1024, 8}, |
| 7225 | }, |
| 7226 | .block_erase = erase_sector_jedec, |
| 7227 | }, { |
| 7228 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7229 | .block_erase = erase_chip_block_jedec, |
| 7230 | }, |
| 7231 | }, |
| 7232 | .write = write_jedec_1, |
| 7233 | .read = read_memmapped, |
| 7234 | .voltage = {2700, 3600}, |
| 7235 | }, |
| 7236 | |
| 7237 | { |
| 7238 | .vendor = "ISSI", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 7239 | .name = "IS29GL128H/L", |
| 7240 | .bustype = BUS_PARALLEL, |
| 7241 | .manufacture_id = ISSI_ID, |
| 7242 | .model_id = ISSI_PMC_IS29GL128HL, |
| 7243 | .total_size = 16384, |
| 7244 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7245 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7246 | .tested = TEST_UNTESTED, |
| 7247 | .probe = probe_jedec_29gl, |
| 7248 | .probe_timing = TIMING_ZERO, |
| 7249 | .block_erasers = |
| 7250 | { |
| 7251 | { |
| 7252 | .eraseblocks = { {128 * 1024, 128} }, |
| 7253 | .block_erase = erase_sector_jedec, |
| 7254 | }, { |
| 7255 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7256 | .block_erase = erase_chip_block_jedec, |
| 7257 | }, |
| 7258 | }, |
| 7259 | .write = write_jedec_1, |
| 7260 | .read = read_memmapped, |
| 7261 | .voltage = {2700, 3600}, |
| 7262 | }, |
| 7263 | |
| 7264 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7265 | .vendor = "Intel", |
| 7266 | .name = "25F160S33B8", |
| 7267 | .bustype = BUS_SPI, |
| 7268 | .manufacture_id = INTEL_ID, |
| 7269 | .model_id = INTEL_25F160S33B8, |
| 7270 | .total_size = 2048, |
| 7271 | .page_size = 256, |
| 7272 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 7273 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7274 | .tested = TEST_UNTESTED, |
| 7275 | .probe = probe_spi_rdid, |
| 7276 | .probe_timing = TIMING_ZERO, |
| 7277 | .block_erasers = |
| 7278 | { |
| 7279 | { |
| 7280 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 7281 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 7282 | * have no effect on the memory contents, but sets a flag in the SR. |
| 7283 | .eraseblocks = { |
| 7284 | {8 * 1024, 8}, |
| 7285 | {64 * 1024, 31} // inaccessible |
| 7286 | }, |
| 7287 | .block_erase = spi_block_erase_40, |
| 7288 | }, { */ |
| 7289 | .eraseblocks = { {64 * 1024, 32} }, |
| 7290 | .block_erase = spi_block_erase_d8, |
| 7291 | }, { |
| 7292 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7293 | .block_erase = spi_block_erase_c7, |
| 7294 | } |
| 7295 | }, |
| 7296 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 7297 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 7298 | .write = spi_chip_write_256, |
| 7299 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 7300 | .voltage = {2700, 3600}, |
| 7301 | }, |
| 7302 | |
| 7303 | { |
| 7304 | .vendor = "Intel", |
| 7305 | .name = "25F160S33T8", |
| 7306 | .bustype = BUS_SPI, |
| 7307 | .manufacture_id = INTEL_ID, |
| 7308 | .model_id = INTEL_25F160S33T8, |
| 7309 | .total_size = 2048, |
| 7310 | .page_size = 256, |
| 7311 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 7312 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7313 | .tested = TEST_UNTESTED, |
| 7314 | .probe = probe_spi_rdid, |
| 7315 | .probe_timing = TIMING_ZERO, |
| 7316 | .block_erasers = |
| 7317 | { |
| 7318 | { |
| 7319 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 7320 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 7321 | * have no effect on the memory contents, but sets a flag in the SR. |
| 7322 | .eraseblocks = { |
| 7323 | {64 * 1024, 31}, // inaccessible |
| 7324 | {8 * 1024, 8} |
| 7325 | }, |
| 7326 | .block_erase = spi_block_erase_40, |
| 7327 | }, { */ |
| 7328 | .eraseblocks = { {64 * 1024, 32} }, |
| 7329 | .block_erase = spi_block_erase_d8, |
| 7330 | }, { |
| 7331 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7332 | .block_erase = spi_block_erase_c7, |
| 7333 | } |
| 7334 | }, |
| 7335 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 7336 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 7337 | .write = spi_chip_write_256, |
| 7338 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 7339 | .voltage = {2700, 3600}, |
| 7340 | }, |
| 7341 | |
| 7342 | { |
| 7343 | .vendor = "Intel", |
| 7344 | .name = "25F320S33B8", |
| 7345 | .bustype = BUS_SPI, |
| 7346 | .manufacture_id = INTEL_ID, |
| 7347 | .model_id = INTEL_25F320S33B8, |
| 7348 | .total_size = 4096, |
| 7349 | .page_size = 256, |
| 7350 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 7351 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7352 | .tested = TEST_UNTESTED, |
| 7353 | .probe = probe_spi_rdid, |
| 7354 | .probe_timing = TIMING_ZERO, |
| 7355 | .block_erasers = |
| 7356 | { |
| 7357 | { |
| 7358 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 7359 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 7360 | * have no effect on the memory contents, but sets a flag in the SR. |
| 7361 | .eraseblocks = { |
| 7362 | {8 * 1024, 8}, |
| 7363 | {64 * 1024, 63} // inaccessible |
| 7364 | }, |
| 7365 | .block_erase = spi_block_erase_40, |
| 7366 | }, { */ |
| 7367 | .eraseblocks = { {64 * 1024, 64} }, |
| 7368 | .block_erase = spi_block_erase_d8, |
| 7369 | }, { |
| 7370 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7371 | .block_erase = spi_block_erase_c7, |
| 7372 | } |
| 7373 | }, |
| 7374 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 7375 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 7376 | .write = spi_chip_write_256, |
| 7377 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 7378 | .voltage = {2700, 3600}, |
| 7379 | }, |
| 7380 | |
| 7381 | { |
| 7382 | .vendor = "Intel", |
| 7383 | .name = "25F320S33T8", |
| 7384 | .bustype = BUS_SPI, |
| 7385 | .manufacture_id = INTEL_ID, |
| 7386 | .model_id = INTEL_25F320S33T8, |
| 7387 | .total_size = 4096, |
| 7388 | .page_size = 256, |
| 7389 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 7390 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7391 | .tested = TEST_UNTESTED, |
| 7392 | .probe = probe_spi_rdid, |
| 7393 | .probe_timing = TIMING_ZERO, |
| 7394 | .block_erasers = |
| 7395 | { |
| 7396 | { |
| 7397 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 7398 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 7399 | * have no effect on the memory contents, but sets a flag in the SR. |
| 7400 | .eraseblocks = { |
| 7401 | {64 * 1024, 63}, // inaccessible |
| 7402 | {8 * 1024, 8} |
| 7403 | }, |
| 7404 | .block_erase = spi_block_erase_40, |
| 7405 | }, { */ |
| 7406 | .eraseblocks = { {64 * 1024, 64} }, |
| 7407 | .block_erase = spi_block_erase_d8, |
| 7408 | }, { |
| 7409 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7410 | .block_erase = spi_block_erase_c7, |
| 7411 | } |
| 7412 | }, |
| 7413 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 7414 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 7415 | .write = spi_chip_write_256, |
| 7416 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 7417 | .voltage = {2700, 3600}, |
| 7418 | }, |
| 7419 | |
| 7420 | { |
| 7421 | .vendor = "Intel", |
| 7422 | .name = "25F640S33B8", |
| 7423 | .bustype = BUS_SPI, |
| 7424 | .manufacture_id = INTEL_ID, |
| 7425 | .model_id = INTEL_25F640S33B8, |
| 7426 | .total_size = 8192, |
| 7427 | .page_size = 256, |
| 7428 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 7429 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7430 | .tested = TEST_UNTESTED, |
| 7431 | .probe = probe_spi_rdid, |
| 7432 | .probe_timing = TIMING_ZERO, |
| 7433 | .block_erasers = |
| 7434 | { |
| 7435 | { |
| 7436 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 7437 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 7438 | * have no effect on the memory contents, but sets a flag in the SR. |
| 7439 | .eraseblocks = { |
| 7440 | {8 * 1024, 8}, |
| 7441 | {64 * 1024, 127} // inaccessible |
| 7442 | }, |
| 7443 | .block_erase = spi_block_erase_40, |
| 7444 | }, { */ |
| 7445 | .eraseblocks = { {64 * 1024, 128} }, |
| 7446 | .block_erase = spi_block_erase_d8, |
| 7447 | }, { |
| 7448 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7449 | .block_erase = spi_block_erase_c7, |
| 7450 | } |
| 7451 | }, |
| 7452 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 7453 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 7454 | .write = spi_chip_write_256, |
| 7455 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 7456 | .voltage = {2700, 3600}, |
| 7457 | }, |
| 7458 | |
| 7459 | { |
| 7460 | .vendor = "Intel", |
| 7461 | .name = "25F640S33T8", |
| 7462 | .bustype = BUS_SPI, |
| 7463 | .manufacture_id = INTEL_ID, |
| 7464 | .model_id = INTEL_25F640S33T8, |
| 7465 | .total_size = 8192, |
| 7466 | .page_size = 256, |
| 7467 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 7468 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7469 | .tested = TEST_UNTESTED, |
| 7470 | .probe = probe_spi_rdid, |
| 7471 | .probe_timing = TIMING_ZERO, |
| 7472 | .block_erasers = |
| 7473 | { |
| 7474 | { |
| 7475 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 7476 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 7477 | * have no effect on the memory contents, but sets a flag in the SR. |
| 7478 | .eraseblocks = { |
| 7479 | {64 * 1024, 127}, // inaccessible |
| 7480 | {8 * 1024, 8} |
| 7481 | }, |
| 7482 | .block_erase = spi_block_erase_40, |
| 7483 | }, { */ |
| 7484 | .eraseblocks = { {64 * 1024, 128} }, |
| 7485 | .block_erase = spi_block_erase_d8, |
| 7486 | }, { |
| 7487 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7488 | .block_erase = spi_block_erase_c7, |
| 7489 | } |
| 7490 | }, |
| 7491 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 7492 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 7493 | .write = spi_chip_write_256, |
| 7494 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 7495 | .voltage = {2700, 3600}, |
| 7496 | }, |
| 7497 | |
| 7498 | { |
| 7499 | .vendor = "Intel", |
| 7500 | .name = "28F001BN/BX-B", |
| 7501 | .bustype = BUS_PARALLEL, |
| 7502 | .manufacture_id = INTEL_ID, |
| 7503 | .model_id = INTEL_28F001B, |
| 7504 | .total_size = 128, |
| 7505 | .page_size = 128 * 1024, /* 8k + 2x4k + 112k */ |
| 7506 | .tested = TEST_UNTESTED, |
| 7507 | .probe = probe_jedec, |
| 7508 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7509 | .block_erasers = |
| 7510 | { |
| 7511 | { |
| 7512 | .eraseblocks = { |
| 7513 | {8 * 1024, 1}, |
| 7514 | {4 * 1024, 2}, |
| 7515 | {112 * 1024, 1}, |
| 7516 | }, |
| 7517 | .block_erase = erase_block_82802ab, |
| 7518 | }, |
| 7519 | }, |
| 7520 | .write = write_82802ab, |
| 7521 | .read = read_memmapped, |
| 7522 | .voltage = {4500, 5500}, |
| 7523 | }, |
| 7524 | |
| 7525 | { |
| 7526 | .vendor = "Intel", |
| 7527 | .name = "28F001BN/BX-T", |
| 7528 | .bustype = BUS_PARALLEL, |
| 7529 | .manufacture_id = INTEL_ID, |
| 7530 | .model_id = INTEL_28F001T, |
| 7531 | .total_size = 128, |
| 7532 | .page_size = 128 * 1024, /* 112k + 2x4k + 8k */ |
| 7533 | .tested = TEST_OK_PREW, |
| 7534 | .probe = probe_jedec, |
| 7535 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7536 | .block_erasers = |
| 7537 | { |
| 7538 | { |
| 7539 | .eraseblocks = { |
| 7540 | {112 * 1024, 1}, |
| 7541 | {4 * 1024, 2}, |
| 7542 | {8 * 1024, 1}, |
| 7543 | }, |
| 7544 | .block_erase = erase_block_82802ab, |
| 7545 | }, |
| 7546 | }, |
| 7547 | .write = write_82802ab, |
| 7548 | .read = read_memmapped, |
| 7549 | .voltage = {4500, 5500}, |
| 7550 | }, |
| 7551 | |
| 7552 | { |
| 7553 | .vendor = "Intel", |
| 7554 | .name = "28F002BC/BL/BV/BX-T", |
| 7555 | .bustype = BUS_PARALLEL, |
| 7556 | .manufacture_id = INTEL_ID, |
| 7557 | .model_id = INTEL_28F002T, |
| 7558 | .total_size = 256, |
| 7559 | .page_size = 256 * 1024, |
| 7560 | .tested = TEST_OK_PRE, |
| 7561 | .probe = probe_82802ab, |
| 7562 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7563 | .block_erasers = |
| 7564 | { |
| 7565 | { |
| 7566 | .eraseblocks = { |
| 7567 | {128 * 1024, 1}, |
| 7568 | {96 * 1024, 1}, |
| 7569 | {8 * 1024, 2}, |
| 7570 | {16 * 1024, 1}, |
| 7571 | }, |
| 7572 | .block_erase = erase_block_82802ab, |
| 7573 | }, |
| 7574 | }, |
| 7575 | .write = write_82802ab, |
| 7576 | .read = read_memmapped, |
| 7577 | }, |
| 7578 | |
| 7579 | { |
| 7580 | .vendor = "Intel", |
| 7581 | .name = "28F004B5/BE/BV/BX-B", |
| 7582 | .bustype = BUS_PARALLEL, |
| 7583 | .manufacture_id = INTEL_ID, |
| 7584 | .model_id = INTEL_28F004B, |
| 7585 | .total_size = 512, |
| 7586 | .page_size = 128 * 1024, /* maximal block size */ |
| 7587 | .tested = TEST_UNTESTED, |
| 7588 | .probe = probe_82802ab, |
| 7589 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7590 | .block_erasers = |
| 7591 | { |
| 7592 | { |
| 7593 | .eraseblocks = { |
| 7594 | {16 * 1024, 1}, |
| 7595 | {8 * 1024, 2}, |
| 7596 | {96 * 1024, 1}, |
| 7597 | {128 * 1024, 3}, |
| 7598 | }, |
| 7599 | .block_erase = erase_block_82802ab, |
| 7600 | }, |
| 7601 | }, |
| 7602 | .write = write_82802ab, |
| 7603 | .read = read_memmapped, |
| 7604 | }, |
| 7605 | |
| 7606 | { |
| 7607 | .vendor = "Intel", |
| 7608 | .name = "28F004B5/BE/BV/BX-T", |
| 7609 | .bustype = BUS_PARALLEL, |
| 7610 | .manufacture_id = INTEL_ID, |
| 7611 | .model_id = INTEL_28F004T, |
| 7612 | .total_size = 512, |
| 7613 | .page_size = 128 * 1024, /* maximal block size */ |
| 7614 | .tested = TEST_UNTESTED, |
| 7615 | .probe = probe_82802ab, |
| 7616 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7617 | .block_erasers = |
| 7618 | { |
| 7619 | { |
| 7620 | .eraseblocks = { |
| 7621 | {128 * 1024, 3}, |
| 7622 | {96 * 1024, 1}, |
| 7623 | {8 * 1024, 2}, |
| 7624 | {16 * 1024, 1}, |
| 7625 | }, |
| 7626 | .block_erase = erase_block_82802ab, |
| 7627 | }, |
| 7628 | }, |
| 7629 | .write = write_82802ab, |
| 7630 | .read = read_memmapped, |
| 7631 | }, |
| 7632 | |
| 7633 | { |
| 7634 | .vendor = "Intel", |
| 7635 | .name = "28F008S3/S5/SC", |
| 7636 | .bustype = BUS_PARALLEL, |
| 7637 | .manufacture_id = INTEL_ID, |
| 7638 | .model_id = INTEL_28F004S3, |
| 7639 | .total_size = 512, |
| 7640 | .page_size = 256, |
| 7641 | .tested = TEST_UNTESTED, |
| 7642 | .probe = probe_82802ab, |
| 7643 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7644 | .block_erasers = |
| 7645 | { |
| 7646 | { |
| 7647 | .eraseblocks = { {64 * 1024, 8} }, |
| 7648 | .block_erase = erase_block_82802ab, |
| 7649 | }, |
| 7650 | }, |
| 7651 | .unlock = unlock_28f004s5, |
| 7652 | .write = write_82802ab, |
| 7653 | .read = read_memmapped, |
| 7654 | }, |
| 7655 | |
| 7656 | { |
| 7657 | .vendor = "Intel", |
| 7658 | .name = "28F400BV/BX/CE/CV-B", |
| 7659 | .bustype = BUS_PARALLEL, |
| 7660 | .manufacture_id = INTEL_ID, |
| 7661 | .model_id = INTEL_28F400B, |
| 7662 | .total_size = 512, |
| 7663 | .page_size = 128 * 1024, /* maximal block size */ |
| 7664 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 7665 | .tested = TEST_UNTESTED, |
| 7666 | .probe = probe_82802ab, |
| 7667 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7668 | .block_erasers = |
| 7669 | { |
| 7670 | { |
| 7671 | .eraseblocks = { |
| 7672 | {16 * 1024, 1}, |
| 7673 | {8 * 1024, 2}, |
| 7674 | {96 * 1024, 1}, |
| 7675 | {128 * 1024, 3}, |
| 7676 | }, |
| 7677 | .block_erase = erase_block_82802ab, |
| 7678 | }, |
| 7679 | }, |
| 7680 | .write = write_82802ab, |
| 7681 | .read = read_memmapped, |
| 7682 | }, |
| 7683 | |
| 7684 | { |
| 7685 | .vendor = "Intel", |
| 7686 | .name = "28F400BV/BX/CE/CV-T", |
| 7687 | .bustype = BUS_PARALLEL, |
| 7688 | .manufacture_id = INTEL_ID, |
| 7689 | .model_id = INTEL_28F400T, |
| 7690 | .total_size = 512, |
| 7691 | .page_size = 128 * 1024, /* maximal block size */ |
| 7692 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 7693 | .tested = TEST_UNTESTED, |
| 7694 | .probe = probe_82802ab, |
| 7695 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7696 | .block_erasers = |
| 7697 | { |
| 7698 | { |
| 7699 | .eraseblocks = { |
| 7700 | {128 * 1024, 3}, |
| 7701 | {96 * 1024, 1}, |
| 7702 | {8 * 1024, 2}, |
| 7703 | {16 * 1024, 1}, |
| 7704 | }, |
| 7705 | .block_erase = erase_block_82802ab, |
| 7706 | }, |
| 7707 | }, |
| 7708 | .write = write_82802ab, |
| 7709 | .read = read_memmapped, |
| 7710 | }, |
| 7711 | |
| 7712 | { |
| 7713 | .vendor = "Intel", |
| 7714 | .name = "82802AB", |
| 7715 | .bustype = BUS_FWH, |
| 7716 | .manufacture_id = INTEL_ID, |
| 7717 | .model_id = INTEL_82802AB, |
| 7718 | .total_size = 512, |
| 7719 | .page_size = 64 * 1024, |
| 7720 | .feature_bits = FEATURE_REGISTERMAP, |
Alan Green | 8855257 | 2019-07-24 13:56:06 +1000 | [diff] [blame] | 7721 | .tested = TEST_OK_PREW, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7722 | .probe = probe_82802ab, |
| 7723 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
| 7724 | .block_erasers = |
| 7725 | { |
| 7726 | { |
| 7727 | .eraseblocks = { {64 * 1024, 8} }, |
| 7728 | .block_erase = erase_block_82802ab, |
| 7729 | }, |
| 7730 | }, |
| 7731 | .unlock = unlock_regspace2_uniform_64k, |
| 7732 | .write = write_82802ab, |
| 7733 | .read = read_memmapped, |
| 7734 | .voltage = {3000, 3600}, |
| 7735 | }, |
| 7736 | |
| 7737 | { |
| 7738 | .vendor = "Intel", |
| 7739 | .name = "82802AC", |
| 7740 | .bustype = BUS_FWH, |
| 7741 | .manufacture_id = INTEL_ID, |
| 7742 | .model_id = INTEL_82802AC, |
| 7743 | .total_size = 1024, |
| 7744 | .page_size = 64 * 1024, |
| 7745 | .feature_bits = FEATURE_REGISTERMAP, |
| 7746 | .tested = TEST_OK_PR, |
| 7747 | .probe = probe_82802ab, |
| 7748 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
| 7749 | .block_erasers = |
| 7750 | { |
| 7751 | { |
| 7752 | .eraseblocks = { {64 * 1024, 16} }, |
| 7753 | .block_erase = erase_block_82802ab, |
| 7754 | }, |
| 7755 | }, |
| 7756 | .unlock = unlock_regspace2_uniform_64k, |
| 7757 | .write = write_82802ab, |
| 7758 | .read = read_memmapped, |
| 7759 | .voltage = {3000, 3600}, |
| 7760 | }, |
| 7761 | |
| 7762 | { |
| 7763 | .vendor = "Macronix", |
| 7764 | .name = "MX23L12854", |
| 7765 | .bustype = BUS_SPI, |
| 7766 | .manufacture_id = MACRONIX_ID, |
| 7767 | .model_id = MACRONIX_MX23L12854, |
| 7768 | .total_size = 16384, |
| 7769 | .page_size = 256, |
| 7770 | .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA}, |
| 7771 | .probe = probe_spi_rdid, |
| 7772 | .probe_timing = TIMING_ZERO, |
| 7773 | .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */ |
| 7774 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7775 | .voltage = {3000, 3600}, |
| 7776 | }, |
| 7777 | |
| 7778 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7779 | .vendor = "Macronix", |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 7780 | .name = "MX23L1654", |
| 7781 | .bustype = BUS_SPI, |
| 7782 | .manufacture_id = MACRONIX_ID, |
| 7783 | .model_id = MACRONIX_MX23L1654, |
| 7784 | .total_size = 2048, |
| 7785 | .page_size = 256, |
| 7786 | .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA}, |
| 7787 | .probe = probe_spi_rdid, |
| 7788 | .probe_timing = TIMING_ZERO, |
| 7789 | .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */ |
| 7790 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7791 | .voltage = {3000, 3600}, |
| 7792 | }, |
| 7793 | |
| 7794 | { |
| 7795 | .vendor = "Macronix", |
Michael Coppola | 4e7f36e | 2014-05-03 23:01:18 +0000 | [diff] [blame] | 7796 | .name = "MX23L3254", |
| 7797 | .bustype = BUS_SPI, |
| 7798 | .manufacture_id = MACRONIX_ID, |
| 7799 | .model_id = MACRONIX_MX23L3254, |
| 7800 | .total_size = 4096, |
| 7801 | .page_size = 256, |
Stefan Tauner | 6455dff | 2014-05-26 00:36:24 +0000 | [diff] [blame] | 7802 | .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA}, |
Michael Coppola | 4e7f36e | 2014-05-03 23:01:18 +0000 | [diff] [blame] | 7803 | .probe = probe_spi_rdid, |
| 7804 | .probe_timing = TIMING_ZERO, |
| 7805 | .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */ |
| 7806 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7807 | .voltage = {3000, 3600}, |
| 7808 | }, |
| 7809 | |
| 7810 | { |
| 7811 | .vendor = "Macronix", |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 7812 | .name = "MX23L6454", |
| 7813 | .bustype = BUS_SPI, |
| 7814 | .manufacture_id = MACRONIX_ID, |
| 7815 | .model_id = MACRONIX_MX23L6454, |
| 7816 | .total_size = 8192, |
| 7817 | .page_size = 256, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 7818 | .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA}, |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 7819 | .probe = probe_spi_rdid, |
| 7820 | .probe_timing = TIMING_ZERO, |
| 7821 | .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */ |
| 7822 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7823 | .voltage = {3000, 3600}, |
| 7824 | }, |
| 7825 | |
| 7826 | { |
| 7827 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7828 | .name = "MX25L1005(C)/MX25L1006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7829 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7830 | .manufacture_id = MACRONIX_ID, |
| 7831 | .model_id = MACRONIX_MX25L1005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7832 | .total_size = 128, |
| 7833 | .page_size = 256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7834 | /* MX25L1006E supports SFDP */ |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 7835 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 7836 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7837 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7838 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7839 | .block_erasers = |
| 7840 | { |
| 7841 | { |
| 7842 | .eraseblocks = { {4 * 1024, 32} }, |
| 7843 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7844 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7845 | .eraseblocks = { {64 * 1024, 2} }, |
| 7846 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7847 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7848 | .eraseblocks = { {128 * 1024, 1} }, |
| 7849 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7850 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 7851 | .eraseblocks = { {128 * 1024, 1} }, |
| 7852 | .block_erase = spi_block_erase_c7, |
| 7853 | }, |
| 7854 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7855 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7856 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7857 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7858 | .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] | 7859 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7860 | }, |
| 7861 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7862 | { |
| 7863 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7864 | .name = "MX25L12805D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7865 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7866 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7867 | .model_id = MACRONIX_MX25L12805D, |
| 7868 | .total_size = 16384, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7869 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7870 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 7871 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7872 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7873 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7874 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7875 | .block_erasers = |
| 7876 | { |
| 7877 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7878 | .eraseblocks = { {4 * 1024, 4096} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7879 | .block_erase = spi_block_erase_20, |
| 7880 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7881 | .eraseblocks = { {64 * 1024, 256} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7882 | .block_erase = spi_block_erase_d8, |
| 7883 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7884 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7885 | .block_erase = spi_block_erase_60, |
| 7886 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7887 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7888 | .block_erase = spi_block_erase_c7, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7889 | } |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7890 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7891 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 7892 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7893 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7894 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7895 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7896 | }, |
| 7897 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7898 | { |
| 7899 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7900 | .name = "MX25L12835F/MX25L12845E/MX25L12865E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7901 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7902 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7903 | .model_id = MACRONIX_MX25L12805D, |
| 7904 | .total_size = 16384, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7905 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7906 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 7907 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 7908 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7909 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7910 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7911 | .block_erasers = |
| 7912 | { |
| 7913 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7914 | .eraseblocks = { {4 * 1024, 4096} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7915 | .block_erase = spi_block_erase_20, |
| 7916 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7917 | .eraseblocks = { {32 * 1024, 512} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7918 | .block_erase = spi_block_erase_52, |
| 7919 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7920 | .eraseblocks = { {64 * 1024, 256} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7921 | .block_erase = spi_block_erase_d8, |
| 7922 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7923 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7924 | .block_erase = spi_block_erase_60, |
| 7925 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7926 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7927 | .block_erase = spi_block_erase_c7, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7928 | } |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7929 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7930 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
| 7931 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 7932 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7933 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 7934 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7935 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7936 | }, |
| 7937 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7938 | { |
| 7939 | .vendor = "Macronix", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7940 | .name = "MX25L1605", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7941 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7942 | .manufacture_id = MACRONIX_ID, |
| 7943 | .model_id = MACRONIX_MX25L1605, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7944 | .total_size = 2048, |
| 7945 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 7946 | .feature_bits = FEATURE_WRSR_WREN, |
Sven Schnelle | 4bd8a40 | 2011-03-07 10:59:06 +0000 | [diff] [blame] | 7947 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7948 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7949 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7950 | .block_erasers = |
| 7951 | { |
| 7952 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7953 | .eraseblocks = { {64 * 1024, 32} }, |
| 7954 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7955 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7956 | .eraseblocks = { {64 * 1024, 32} }, |
| 7957 | .block_erase = spi_block_erase_d8, |
| 7958 | }, { |
| 7959 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7960 | .block_erase = spi_block_erase_60, |
| 7961 | }, { |
| 7962 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7963 | .block_erase = spi_block_erase_c7, |
| 7964 | }, |
| 7965 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7966 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7967 | .unlock = spi_disable_blockprotect, |
| 7968 | .write = spi_chip_write_256, |
| 7969 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7970 | .voltage = {2700, 3600}, |
| 7971 | }, |
| 7972 | |
| 7973 | { |
| 7974 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7975 | .name = "MX25L1605A/MX25L1606E/MX25L1608E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7976 | .bustype = BUS_SPI, |
| 7977 | .manufacture_id = MACRONIX_ID, |
| 7978 | .model_id = MACRONIX_MX25L1605, |
| 7979 | .total_size = 2048, |
| 7980 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 7981 | /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7982 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7983 | .tested = TEST_OK_PREW, |
| 7984 | .probe = probe_spi_rdid, |
| 7985 | .probe_timing = TIMING_ZERO, |
| 7986 | .block_erasers = |
| 7987 | { |
| 7988 | { |
| 7989 | .eraseblocks = { {4 * 1024, 512} }, |
| 7990 | .block_erase = spi_block_erase_20, |
| 7991 | }, { |
| 7992 | .eraseblocks = { {64 * 1024, 32} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 7993 | .block_erase = spi_block_erase_52, |
| 7994 | }, { |
| 7995 | .eraseblocks = { {64 * 1024, 32} }, |
| 7996 | .block_erase = spi_block_erase_d8, |
| 7997 | }, { |
| 7998 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7999 | .block_erase = spi_block_erase_60, |
| 8000 | }, { |
| 8001 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8002 | .block_erase = spi_block_erase_c7, |
| 8003 | }, |
| 8004 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8005 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8006 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8007 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8008 | .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] | 8009 | .voltage = {2700, 3600}, |
| 8010 | }, |
| 8011 | |
| 8012 | { |
| 8013 | .vendor = "Macronix", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8014 | .name = "MX25L1605D/MX25L1608D/MX25L1673E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8015 | .bustype = BUS_SPI, |
| 8016 | .manufacture_id = MACRONIX_ID, |
| 8017 | .model_id = MACRONIX_MX25L1605, |
| 8018 | .total_size = 2048, |
| 8019 | .page_size = 256, |
| 8020 | .feature_bits = FEATURE_WRSR_WREN, |
| 8021 | .tested = TEST_OK_PREW, |
| 8022 | .probe = probe_spi_rdid, |
| 8023 | .probe_timing = TIMING_ZERO, |
| 8024 | .block_erasers = |
| 8025 | { |
| 8026 | { |
| 8027 | .eraseblocks = { {4 * 1024, 512} }, |
| 8028 | .block_erase = spi_block_erase_20, |
| 8029 | }, { |
| 8030 | .eraseblocks = { {64 * 1024, 32} }, |
| 8031 | .block_erase = spi_block_erase_d8, |
| 8032 | }, { |
| 8033 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8034 | .block_erase = spi_block_erase_60, |
| 8035 | }, { |
| 8036 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8037 | .block_erase = spi_block_erase_c7, |
| 8038 | }, |
| 8039 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8040 | .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] | 8041 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8042 | .write = spi_chip_write_256, |
| 8043 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8044 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8045 | }, |
| 8046 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8047 | { |
| 8048 | .vendor = "Macronix", |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8049 | .name = "MX25L1635D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8050 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8051 | .manufacture_id = MACRONIX_ID, |
| 8052 | .model_id = MACRONIX_MX25L1635D, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8053 | .total_size = 2048, |
| 8054 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8055 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8056 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8057 | .tested = TEST_UNTESTED, |
| 8058 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8059 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8060 | .block_erasers = |
| 8061 | { |
| 8062 | { |
| 8063 | .eraseblocks = { {4 * 1024, 512} }, |
| 8064 | .block_erase = spi_block_erase_20, |
| 8065 | }, { |
| 8066 | .eraseblocks = { {64 * 1024, 32} }, |
| 8067 | .block_erase = spi_block_erase_d8, |
| 8068 | }, { |
| 8069 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8070 | .block_erase = spi_block_erase_60, |
| 8071 | }, { |
| 8072 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8073 | .block_erase = spi_block_erase_c7, |
| 8074 | } |
| 8075 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8076 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8077 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8078 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8079 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8080 | .voltage = {2700, 3600}, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8081 | }, |
Stephan Guilloux | fd31550 | 2009-04-20 22:54:13 +0000 | [diff] [blame] | 8082 | |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8083 | { |
| 8084 | .vendor = "Macronix", |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8085 | .name = "MX25L1635E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8086 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8087 | .manufacture_id = MACRONIX_ID, |
| 8088 | .model_id = MACRONIX_MX25L1635E, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8089 | .total_size = 2048, |
| 8090 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8091 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8092 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8093 | .tested = TEST_UNTESTED, |
| 8094 | .probe = probe_spi_rdid, |
| 8095 | .probe_timing = TIMING_ZERO, |
| 8096 | .block_erasers = |
| 8097 | { |
| 8098 | { |
| 8099 | .eraseblocks = { {4 * 1024, 512} }, |
| 8100 | .block_erase = spi_block_erase_20, |
| 8101 | }, { |
| 8102 | .eraseblocks = { {64 * 1024, 32} }, |
| 8103 | .block_erase = spi_block_erase_d8, |
| 8104 | }, { |
| 8105 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8106 | .block_erase = spi_block_erase_60, |
| 8107 | }, { |
| 8108 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8109 | .block_erase = spi_block_erase_c7, |
| 8110 | } |
| 8111 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8112 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8113 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8114 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8115 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 8116 | .voltage = {2700, 3600}, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8117 | }, |
| 8118 | |
| 8119 | { |
| 8120 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8121 | .name = "MX25L2005(C)/MX25L2006E", |
| 8122 | .bustype = BUS_SPI, |
| 8123 | .manufacture_id = MACRONIX_ID, |
| 8124 | .model_id = MACRONIX_MX25L2005, |
| 8125 | .total_size = 256, |
| 8126 | .page_size = 256, |
| 8127 | .feature_bits = FEATURE_WRSR_WREN, |
| 8128 | .tested = TEST_OK_PREW, |
| 8129 | .probe = probe_spi_rdid, |
| 8130 | .probe_timing = TIMING_ZERO, |
| 8131 | .block_erasers = |
| 8132 | { |
| 8133 | { |
| 8134 | .eraseblocks = { {4 * 1024, 64} }, |
| 8135 | .block_erase = spi_block_erase_20, |
| 8136 | }, { |
| 8137 | .eraseblocks = { {64 * 1024, 4} }, |
| 8138 | .block_erase = spi_block_erase_52, |
| 8139 | }, { |
| 8140 | .eraseblocks = { {64 * 1024, 4} }, |
| 8141 | .block_erase = spi_block_erase_d8, |
| 8142 | }, { |
| 8143 | .eraseblocks = { {256 * 1024, 1} }, |
| 8144 | .block_erase = spi_block_erase_60, |
| 8145 | }, { |
| 8146 | .eraseblocks = { {256 * 1024, 1} }, |
| 8147 | .block_erase = spi_block_erase_c7, |
| 8148 | }, |
| 8149 | }, |
| 8150 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 8151 | .unlock = spi_disable_blockprotect, |
| 8152 | .write = spi_chip_write_256, |
| 8153 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8154 | .voltage = {2700, 3600}, |
| 8155 | }, |
| 8156 | |
| 8157 | { |
| 8158 | .vendor = "Macronix", |
Alan Green | 0370730 | 2019-08-26 12:50:43 +1000 | [diff] [blame] | 8159 | .name = "MX25L25635F/MX25L25645G", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8160 | .bustype = BUS_SPI, |
| 8161 | .manufacture_id = MACRONIX_ID, |
| 8162 | .model_id = MACRONIX_MX25L25635F, |
| 8163 | .total_size = 32768, |
| 8164 | .page_size = 256, |
| 8165 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8166 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
| 8167 | .tested = TEST_OK_PREW, |
| 8168 | .probe = probe_spi_rdid, |
| 8169 | .probe_timing = TIMING_ZERO, |
| 8170 | .block_erasers = |
| 8171 | { |
| 8172 | { |
| 8173 | .eraseblocks = { {4 * 1024, 8192} }, |
| 8174 | .block_erase = spi_block_erase_21, |
| 8175 | }, { |
| 8176 | .eraseblocks = { {4 * 1024, 8192} }, |
| 8177 | .block_erase = spi_block_erase_20, |
| 8178 | }, { |
| 8179 | .eraseblocks = { {32 * 1024, 1024} }, |
| 8180 | .block_erase = spi_block_erase_5c, |
| 8181 | }, { |
| 8182 | .eraseblocks = { {32 * 1024, 1024} }, |
| 8183 | .block_erase = spi_block_erase_52, |
| 8184 | }, { |
| 8185 | .eraseblocks = { {64 * 1024, 512} }, |
| 8186 | .block_erase = spi_block_erase_dc, |
| 8187 | }, { |
| 8188 | .eraseblocks = { {64 * 1024, 512} }, |
| 8189 | .block_erase = spi_block_erase_d8, |
| 8190 | }, { |
| 8191 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 8192 | .block_erase = spi_block_erase_60, |
| 8193 | }, { |
| 8194 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 8195 | .block_erase = spi_block_erase_c7, |
| 8196 | } |
| 8197 | }, |
| 8198 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
| 8199 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8200 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8201 | .write = spi_chip_write_256, |
| 8202 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8203 | .voltage = {2700, 3600}, |
| 8204 | }, |
| 8205 | |
| 8206 | { |
| 8207 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8208 | .name = "MX25L3205(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8209 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8210 | .manufacture_id = MACRONIX_ID, |
| 8211 | .model_id = MACRONIX_MX25L3205, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8212 | .total_size = 4096, |
| 8213 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 8214 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 8215 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8216 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8217 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8218 | .block_erasers = |
| 8219 | { |
| 8220 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8221 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8222 | .block_erase = spi_block_erase_20, |
| 8223 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8224 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8225 | .block_erase = spi_block_erase_d8, |
| 8226 | }, { |
| 8227 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8228 | .block_erase = spi_block_erase_60, |
| 8229 | }, { |
| 8230 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8231 | .block_erase = spi_block_erase_c7, |
| 8232 | }, |
| 8233 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8234 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8235 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8236 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8237 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8238 | .voltage = {2700, 3600}, |
| 8239 | }, |
| 8240 | |
| 8241 | { |
| 8242 | .vendor = "Macronix", |
| 8243 | .name = "MX25L3205D/MX25L3208D", |
| 8244 | .bustype = BUS_SPI, |
| 8245 | .manufacture_id = MACRONIX_ID, |
| 8246 | .model_id = MACRONIX_MX25L3205, |
| 8247 | .total_size = 4096, |
| 8248 | .page_size = 256, |
| 8249 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8250 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8251 | .tested = TEST_OK_PREW, |
| 8252 | .probe = probe_spi_rdid, |
| 8253 | .probe_timing = TIMING_ZERO, |
| 8254 | .block_erasers = |
| 8255 | { |
| 8256 | { |
| 8257 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8258 | .block_erase = spi_block_erase_20, |
| 8259 | }, { |
| 8260 | .eraseblocks = { {64 * 1024, 64} }, |
| 8261 | .block_erase = spi_block_erase_d8, |
| 8262 | }, { |
| 8263 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8264 | .block_erase = spi_block_erase_60, |
| 8265 | }, { |
| 8266 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8267 | .block_erase = spi_block_erase_c7, |
| 8268 | }, |
| 8269 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8270 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8271 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8272 | .write = spi_chip_write_256, |
| 8273 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
| 8274 | .voltage = {2700, 3600}, |
| 8275 | }, |
| 8276 | |
| 8277 | { |
| 8278 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8279 | .name = "MX25L3206E/MX25L3208E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8280 | .bustype = BUS_SPI, |
| 8281 | .manufacture_id = MACRONIX_ID, |
| 8282 | .model_id = MACRONIX_MX25L3205, |
| 8283 | .total_size = 4096, |
| 8284 | .page_size = 256, |
| 8285 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8286 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8287 | .tested = TEST_OK_PREW, |
| 8288 | .probe = probe_spi_rdid, |
| 8289 | .probe_timing = TIMING_ZERO, |
| 8290 | .block_erasers = |
| 8291 | { |
| 8292 | { |
| 8293 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8294 | .block_erase = spi_block_erase_20, |
| 8295 | }, { |
| 8296 | .eraseblocks = { {64 * 1024, 64} }, |
| 8297 | .block_erase = spi_block_erase_d8, |
| 8298 | }, { |
| 8299 | .eraseblocks = { {64 * 1024, 64} }, |
| 8300 | .block_erase = spi_block_erase_52, |
| 8301 | }, { |
| 8302 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8303 | .block_erase = spi_block_erase_60, |
| 8304 | }, { |
| 8305 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8306 | .block_erase = spi_block_erase_c7, |
| 8307 | }, |
| 8308 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8309 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8310 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8311 | .write = spi_chip_write_256, |
| 8312 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8313 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8314 | }, |
| 8315 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8316 | { |
| 8317 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8318 | .name = "MX25L3235D", |
| 8319 | .bustype = BUS_SPI, |
| 8320 | .manufacture_id = MACRONIX_ID, |
| 8321 | .model_id = MACRONIX_MX25L3235D, |
| 8322 | .total_size = 4096, |
| 8323 | .page_size = 256, |
| 8324 | /* OTP: 256B total; enter 0xB1, exit 0xC1 */ |
| 8325 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8326 | .tested = TEST_UNTESTED, |
| 8327 | .probe = probe_spi_rdid, |
| 8328 | .probe_timing = TIMING_ZERO, |
| 8329 | .block_erasers = |
| 8330 | { |
| 8331 | { |
| 8332 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8333 | .block_erase = spi_block_erase_20, |
| 8334 | }, { |
| 8335 | .eraseblocks = { {64 * 1024, 64} }, |
| 8336 | .block_erase = spi_block_erase_d8, |
| 8337 | }, { |
| 8338 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8339 | .block_erase = spi_block_erase_60, |
| 8340 | }, { |
| 8341 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8342 | .block_erase = spi_block_erase_c7, |
| 8343 | } |
| 8344 | }, |
| 8345 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8346 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8347 | .write = spi_chip_write_256, |
| 8348 | .read = spi_chip_read, |
| 8349 | .voltage = {2700, 3600}, |
| 8350 | }, |
| 8351 | |
| 8352 | { |
| 8353 | .vendor = "Macronix", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8354 | .name = "MX25L3273E", |
| 8355 | .bustype = BUS_SPI, |
| 8356 | .manufacture_id = MACRONIX_ID, |
| 8357 | .model_id = MACRONIX_MX25L3205, |
| 8358 | .total_size = 4096, |
| 8359 | .page_size = 256, |
| 8360 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8361 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 8362 | .tested = TEST_OK_PREW, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8363 | .probe = probe_spi_rdid, |
| 8364 | .probe_timing = TIMING_ZERO, |
| 8365 | .block_erasers = |
| 8366 | { |
| 8367 | { |
| 8368 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8369 | .block_erase = spi_block_erase_20, |
| 8370 | }, { |
| 8371 | .eraseblocks = { {32 * 1024, 128} }, |
| 8372 | .block_erase = spi_block_erase_52, |
| 8373 | }, { |
| 8374 | .eraseblocks = { {64 * 1024, 64} }, |
| 8375 | .block_erase = spi_block_erase_d8, |
| 8376 | }, { |
| 8377 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8378 | .block_erase = spi_block_erase_60, |
| 8379 | }, { |
| 8380 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8381 | .block_erase = spi_block_erase_c7, |
| 8382 | }, |
| 8383 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8384 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8385 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8386 | .write = spi_chip_write_256, |
| 8387 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
| 8388 | .voltage = {2700, 3600}, |
| 8389 | }, |
| 8390 | |
| 8391 | { |
| 8392 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8393 | .name = "MX25L4005(A/C)/MX25L4006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8394 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8395 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8396 | .model_id = MACRONIX_MX25L4005, |
| 8397 | .total_size = 512, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 8398 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8399 | .feature_bits = FEATURE_WRSR_WREN, |
| 8400 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 8401 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8402 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8403 | .block_erasers = |
| 8404 | { |
| 8405 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8406 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8407 | .block_erase = spi_block_erase_20, |
| 8408 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8409 | .eraseblocks = { {64 * 1024, 8} }, |
| 8410 | .block_erase = spi_block_erase_52, |
| 8411 | }, { |
| 8412 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8413 | .block_erase = spi_block_erase_d8, |
| 8414 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8415 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8416 | .block_erase = spi_block_erase_60, |
| 8417 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8418 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8419 | .block_erase = spi_block_erase_c7, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8420 | }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8421 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8422 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 8423 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8424 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8425 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8426 | .voltage = {2700, 3600}, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 8427 | }, |
| 8428 | |
| 8429 | { |
| 8430 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8431 | .name = "MX25L512(E)/MX25V512(C)", |
| 8432 | .bustype = BUS_SPI, |
| 8433 | .manufacture_id = MACRONIX_ID, |
| 8434 | .model_id = MACRONIX_MX25L512, |
| 8435 | .total_size = 64, |
| 8436 | .page_size = 256, |
| 8437 | /* MX25L512E supports SFDP */ |
| 8438 | .feature_bits = FEATURE_WRSR_WREN, |
| 8439 | .tested = TEST_OK_PREW, |
| 8440 | .probe = probe_spi_rdid, |
| 8441 | .probe_timing = TIMING_ZERO, |
| 8442 | .block_erasers = |
| 8443 | { |
| 8444 | { |
| 8445 | .eraseblocks = { {4 * 1024, 16} }, |
| 8446 | .block_erase = spi_block_erase_20, |
| 8447 | }, { |
| 8448 | .eraseblocks = { {64 * 1024, 1} }, |
| 8449 | .block_erase = spi_block_erase_52, |
| 8450 | }, { |
| 8451 | .eraseblocks = { {64 * 1024, 1} }, |
| 8452 | .block_erase = spi_block_erase_d8, |
| 8453 | }, { |
| 8454 | .eraseblocks = { {64 * 1024, 1} }, |
| 8455 | .block_erase = spi_block_erase_60, |
| 8456 | }, { |
| 8457 | .eraseblocks = { {64 * 1024, 1} }, |
| 8458 | .block_erase = spi_block_erase_c7, |
| 8459 | }, |
| 8460 | }, |
| 8461 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 8462 | .unlock = spi_disable_blockprotect, |
| 8463 | .write = spi_chip_write_256, |
| 8464 | .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */ |
| 8465 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */ |
| 8466 | }, |
| 8467 | |
| 8468 | { |
| 8469 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8470 | .name = "MX25L6405", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8471 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8472 | .manufacture_id = MACRONIX_ID, |
| 8473 | .model_id = MACRONIX_MX25L6405, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8474 | .total_size = 8192, |
| 8475 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8476 | /* Has an additional 512B EEPROM sector */ |
| 8477 | .feature_bits = FEATURE_WRSR_WREN, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 8478 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8479 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8480 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8481 | .block_erasers = |
| 8482 | { |
| 8483 | { |
| 8484 | .eraseblocks = { {64 * 1024, 128} }, |
| 8485 | .block_erase = spi_block_erase_20, |
| 8486 | }, { |
| 8487 | .eraseblocks = { {64 * 1024, 128} }, |
| 8488 | .block_erase = spi_block_erase_d8, |
| 8489 | }, { |
| 8490 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8491 | .block_erase = spi_block_erase_60, |
| 8492 | }, { |
| 8493 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8494 | .block_erase = spi_block_erase_c7, |
| 8495 | } |
| 8496 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8497 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8498 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8499 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8500 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8501 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8502 | }, |
| 8503 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8504 | { |
| 8505 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8506 | .name = "MX25L6405D", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8507 | .bustype = BUS_SPI, |
| 8508 | .manufacture_id = MACRONIX_ID, |
| 8509 | .model_id = MACRONIX_MX25L6405, |
| 8510 | .total_size = 8192, |
| 8511 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8512 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8513 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8514 | .tested = TEST_OK_PREW, |
| 8515 | .probe = probe_spi_rdid, |
| 8516 | .probe_timing = TIMING_ZERO, |
| 8517 | .block_erasers = |
| 8518 | { |
| 8519 | { |
| 8520 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8521 | .block_erase = spi_block_erase_20, |
| 8522 | }, { |
| 8523 | .eraseblocks = { {64 * 1024, 128} }, |
| 8524 | .block_erase = spi_block_erase_d8, |
| 8525 | }, { |
| 8526 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8527 | .block_erase = spi_block_erase_60, |
| 8528 | }, { |
| 8529 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8530 | .block_erase = spi_block_erase_c7, |
| 8531 | } |
| 8532 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8533 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8534 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8535 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8536 | .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] | 8537 | .voltage = {2700, 3600}, |
| 8538 | }, |
| 8539 | |
| 8540 | { |
| 8541 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8542 | .name = "MX25L6406E/MX25L6408E", |
| 8543 | .bustype = BUS_SPI, |
| 8544 | .manufacture_id = MACRONIX_ID, |
| 8545 | .model_id = MACRONIX_MX25L6405, |
| 8546 | .total_size = 8192, |
| 8547 | .page_size = 256, |
| 8548 | /* MX25L6406E supports SFDP */ |
| 8549 | /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */ |
| 8550 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8551 | .tested = TEST_OK_PREW, |
| 8552 | .probe = probe_spi_rdid, |
| 8553 | .probe_timing = TIMING_ZERO, |
| 8554 | .block_erasers = |
| 8555 | { |
| 8556 | { |
| 8557 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8558 | .block_erase = spi_block_erase_20, |
| 8559 | }, { |
| 8560 | .eraseblocks = { {64 * 1024, 128} }, |
| 8561 | .block_erase = spi_block_erase_52, |
| 8562 | }, { |
| 8563 | .eraseblocks = { {64 * 1024, 128} }, |
| 8564 | .block_erase = spi_block_erase_d8, |
| 8565 | }, { |
| 8566 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8567 | .block_erase = spi_block_erase_60, |
| 8568 | }, { |
| 8569 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8570 | .block_erase = spi_block_erase_c7, |
| 8571 | } |
| 8572 | }, |
| 8573 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 8574 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8575 | .write = spi_chip_write_256, |
| 8576 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */ |
| 8577 | .voltage = {2700, 3600}, |
| 8578 | }, |
| 8579 | |
| 8580 | { |
| 8581 | .vendor = "Macronix", |
Nico Huber | b007278 | 2017-12-06 21:02:57 +0100 | [diff] [blame] | 8582 | .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8583 | .bustype = BUS_SPI, |
| 8584 | .manufacture_id = MACRONIX_ID, |
| 8585 | .model_id = MACRONIX_MX25L6405, |
| 8586 | .total_size = 8192, |
| 8587 | .page_size = 256, |
| 8588 | /* supports SFDP */ |
| 8589 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8590 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8591 | .tested = TEST_OK_PREW, |
| 8592 | .probe = probe_spi_rdid, |
| 8593 | .probe_timing = TIMING_ZERO, |
| 8594 | .block_erasers = |
| 8595 | { |
| 8596 | { |
| 8597 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8598 | .block_erase = spi_block_erase_20, |
| 8599 | }, { |
| 8600 | .eraseblocks = { {32 * 1024, 256} }, |
| 8601 | .block_erase = spi_block_erase_52, |
| 8602 | }, { |
| 8603 | .eraseblocks = { {64 * 1024, 128} }, |
| 8604 | .block_erase = spi_block_erase_d8, |
| 8605 | }, { |
| 8606 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8607 | .block_erase = spi_block_erase_60, |
| 8608 | }, { |
| 8609 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8610 | .block_erase = spi_block_erase_c7, |
| 8611 | } |
| 8612 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8613 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8614 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8615 | .write = spi_chip_write_256, |
| 8616 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8617 | .voltage = {2700, 3600}, |
| 8618 | }, |
| 8619 | |
| 8620 | { |
| 8621 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8622 | .name = "MX25L6495F", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8623 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8624 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8625 | .model_id = MACRONIX_MX25L6495F, |
| 8626 | .total_size = 8192, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 8627 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8628 | /* OTP: 1024B total; enter 0xB1, exit 0xC1 */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8629 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 8630 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 8631 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8632 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8633 | .block_erasers = |
| 8634 | { |
| 8635 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8636 | .eraseblocks = { {4 * 1024, 2048} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8637 | .block_erase = spi_block_erase_20, |
| 8638 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8639 | .eraseblocks = { {64 * 1024, 128} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8640 | .block_erase = spi_block_erase_d8, |
| 8641 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8642 | .eraseblocks = { {32 * 1024, 256} }, |
| 8643 | .block_erase = spi_block_erase_52, |
| 8644 | }, { |
| 8645 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8646 | .block_erase = spi_block_erase_60, |
| 8647 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8648 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8649 | .block_erase = spi_block_erase_c7, |
| 8650 | } |
| 8651 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8652 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8653 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8654 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8655 | .voltage = {2700, 3600}, |
| 8656 | }, |
| 8657 | |
| 8658 | { |
| 8659 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8660 | .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005", |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8661 | .bustype = BUS_SPI, |
| 8662 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8663 | .model_id = MACRONIX_MX25L8005, |
| 8664 | .total_size = 1024, |
| 8665 | .page_size = 256, |
| 8666 | /* MX25L8006E, MX25L8008E support SFDP */ |
| 8667 | /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */ |
| 8668 | .feature_bits = FEATURE_WRSR_WREN, |
| 8669 | .tested = TEST_OK_PREW, |
| 8670 | .probe = probe_spi_rdid, |
| 8671 | .probe_timing = TIMING_ZERO, |
| 8672 | .block_erasers = |
| 8673 | { |
| 8674 | { |
| 8675 | .eraseblocks = { {4 * 1024, 256} }, |
| 8676 | .block_erase = spi_block_erase_20, |
| 8677 | }, { |
| 8678 | .eraseblocks = { {64 * 1024, 16} }, |
| 8679 | .block_erase = spi_block_erase_52, |
| 8680 | }, { |
| 8681 | .eraseblocks = { {64 * 1024, 16} }, |
| 8682 | .block_erase = spi_block_erase_d8, |
| 8683 | }, { |
| 8684 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8685 | .block_erase = spi_block_erase_60, |
| 8686 | }, { |
| 8687 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8688 | .block_erase = spi_block_erase_c7, |
| 8689 | }, |
| 8690 | }, |
| 8691 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 8692 | .unlock = spi_disable_blockprotect, |
| 8693 | .write = spi_chip_write_256, |
| 8694 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8695 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */ |
| 8696 | }, |
| 8697 | |
| 8698 | { |
| 8699 | .vendor = "Macronix", |
| 8700 | .name = "MX25R6435F", |
| 8701 | .bustype = BUS_SPI, |
| 8702 | .manufacture_id = MACRONIX_ID, |
| 8703 | .model_id = MACRONIX_MX25R6435F, |
| 8704 | .total_size = 8192, |
| 8705 | .page_size = 256, |
| 8706 | /* OTP: 1024B total; enter 0xB1, exit 0xC1 */ |
| 8707 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8708 | .tested = TEST_OK_PREW, |
| 8709 | .probe = probe_spi_rdid, |
| 8710 | .probe_timing = TIMING_ZERO, |
| 8711 | .block_erasers = |
| 8712 | { |
| 8713 | { |
| 8714 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8715 | .block_erase = spi_block_erase_20, |
| 8716 | }, { |
| 8717 | .eraseblocks = { {64 * 1024, 128} }, |
| 8718 | .block_erase = spi_block_erase_d8, |
| 8719 | }, { |
| 8720 | .eraseblocks = { {32 * 1024, 256} }, |
| 8721 | .block_erase = spi_block_erase_52, |
| 8722 | }, { |
| 8723 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8724 | .block_erase = spi_block_erase_60, |
| 8725 | }, { |
| 8726 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8727 | .block_erase = spi_block_erase_c7, |
| 8728 | } |
| 8729 | }, |
| 8730 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8731 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8732 | .write = spi_chip_write_256, |
| 8733 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8734 | .voltage = {1650, 3600}, |
| 8735 | }, |
| 8736 | |
| 8737 | { |
| 8738 | .vendor = "Macronix", |
| 8739 | .name = "MX25U12835F", |
| 8740 | .bustype = BUS_SPI, |
| 8741 | .manufacture_id = MACRONIX_ID, |
| 8742 | .model_id = MACRONIX_MX25U12835E, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8743 | .total_size = 16384, |
| 8744 | .page_size = 256, |
| 8745 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8746 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8747 | .tested = TEST_OK_PREW, |
| 8748 | .probe = probe_spi_rdid, |
| 8749 | .probe_timing = TIMING_ZERO, |
| 8750 | .block_erasers = |
| 8751 | { |
| 8752 | { |
| 8753 | .eraseblocks = { {4 * 1024, 4096} }, |
| 8754 | .block_erase = spi_block_erase_20, |
| 8755 | }, { |
| 8756 | .eraseblocks = { {32 * 1024, 512} }, |
| 8757 | .block_erase = spi_block_erase_52, |
| 8758 | }, { |
| 8759 | .eraseblocks = { {64 * 1024, 256} }, |
| 8760 | .block_erase = spi_block_erase_d8, |
| 8761 | }, { |
| 8762 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 8763 | .block_erase = spi_block_erase_60, |
| 8764 | }, { |
| 8765 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 8766 | .block_erase = spi_block_erase_c7, |
| 8767 | } |
| 8768 | }, |
Angel Pons | f112e24 | 2018-09-30 20:14:17 +0200 | [diff] [blame] | 8769 | /* TODO: security register */ |
| 8770 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8771 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8772 | .write = spi_chip_write_256, /* Multi I/O supported */ |
Angel Pons | f112e24 | 2018-09-30 20:14:17 +0200 | [diff] [blame] | 8773 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8774 | .voltage = {1650, 2000}, |
| 8775 | }, |
| 8776 | |
| 8777 | { |
| 8778 | .vendor = "Macronix", |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 8779 | .name = "MX25U1635E", |
| 8780 | .bustype = BUS_SPI, |
| 8781 | .manufacture_id = MACRONIX_ID, |
| 8782 | .model_id = MACRONIX_MX25U1635E, |
| 8783 | .total_size = 2048, |
| 8784 | .page_size = 256, |
| 8785 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8786 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 8787 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8788 | .tested = TEST_OK_PR, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 8789 | .probe = probe_spi_rdid, |
| 8790 | .probe_timing = TIMING_ZERO, |
| 8791 | .block_erasers = |
| 8792 | { |
| 8793 | { |
| 8794 | .eraseblocks = { {4 * 1024, 512} }, |
| 8795 | .block_erase = spi_block_erase_20, |
| 8796 | }, { |
| 8797 | .eraseblocks = { {32 * 1024, 64} }, |
| 8798 | .block_erase = spi_block_erase_52, |
| 8799 | }, { |
| 8800 | .eraseblocks = { {64 * 1024, 32} }, |
| 8801 | .block_erase = spi_block_erase_d8, |
| 8802 | }, { |
| 8803 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8804 | .block_erase = spi_block_erase_60, |
| 8805 | }, { |
| 8806 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8807 | .block_erase = spi_block_erase_c7, |
| 8808 | } |
| 8809 | }, |
| 8810 | /* TODO: security register */ |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8811 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8812 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 8813 | .write = spi_chip_write_256, |
| 8814 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8815 | .voltage = {1650, 2000}, |
| 8816 | }, |
| 8817 | |
| 8818 | { |
| 8819 | .vendor = "Macronix", |
David Tomaschik | f75d8c5 | 2019-06-20 09:49:01 -0700 | [diff] [blame] | 8820 | .name = "MX25U25635F", |
| 8821 | .bustype = BUS_SPI, |
| 8822 | .manufacture_id = MACRONIX_ID, |
| 8823 | .model_id = MACRONIX_MX25U25635F, |
| 8824 | .total_size = 32768, |
| 8825 | .page_size = 256, |
| 8826 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8827 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA, |
| 8828 | .tested = TEST_OK_PR, |
| 8829 | .probe = probe_spi_rdid, |
| 8830 | .probe_timing = TIMING_ZERO, |
| 8831 | .block_erasers = |
| 8832 | { |
| 8833 | { |
| 8834 | .eraseblocks = { {4 * 1024, 8192} }, |
| 8835 | .block_erase = spi_block_erase_21, |
| 8836 | }, { |
| 8837 | .eraseblocks = { {4 * 1024, 8192} }, |
| 8838 | .block_erase = spi_block_erase_20, |
| 8839 | }, { |
| 8840 | .eraseblocks = { {32 * 1024, 1024} }, |
| 8841 | .block_erase = spi_block_erase_5c, |
| 8842 | }, { |
| 8843 | .eraseblocks = { {32 * 1024, 1024} }, |
| 8844 | .block_erase = spi_block_erase_52, |
| 8845 | }, { |
| 8846 | .eraseblocks = { {64 * 1024, 512} }, |
| 8847 | .block_erase = spi_block_erase_dc, |
| 8848 | }, { |
| 8849 | .eraseblocks = { {64 * 1024, 512} }, |
| 8850 | .block_erase = spi_block_erase_d8, |
| 8851 | }, { |
| 8852 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 8853 | .block_erase = spi_block_erase_60, |
| 8854 | }, { |
| 8855 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 8856 | .block_erase = spi_block_erase_c7, |
| 8857 | } |
| 8858 | }, |
| 8859 | /* TODO: security register */ |
| 8860 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8861 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8862 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 8863 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8864 | .voltage = {1650, 2000}, |
| 8865 | }, |
| 8866 | |
| 8867 | { |
| 8868 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8869 | .name = "MX25U3235E/F", |
| 8870 | .bustype = BUS_SPI, |
| 8871 | .manufacture_id = MACRONIX_ID, |
| 8872 | .model_id = MACRONIX_MX25U3235E, |
| 8873 | .total_size = 4096, |
| 8874 | .page_size = 256, |
| 8875 | /* F model supports SFDP */ |
| 8876 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8877 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 8878 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 8879 | .tested = TEST_OK_PREW, |
| 8880 | .probe = probe_spi_rdid, |
| 8881 | .probe_timing = TIMING_ZERO, |
| 8882 | .block_erasers = |
| 8883 | { |
| 8884 | { |
| 8885 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8886 | .block_erase = spi_block_erase_20, |
| 8887 | }, { |
| 8888 | .eraseblocks = { {32 * 1024, 128} }, |
| 8889 | .block_erase = spi_block_erase_52, |
| 8890 | }, { |
| 8891 | .eraseblocks = { {64 * 1024, 64} }, |
| 8892 | .block_erase = spi_block_erase_d8, |
| 8893 | }, { |
| 8894 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8895 | .block_erase = spi_block_erase_60, |
| 8896 | }, { |
| 8897 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8898 | .block_erase = spi_block_erase_c7, |
| 8899 | } |
| 8900 | }, |
| 8901 | /* TODO: security register */ |
| 8902 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8903 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8904 | .write = spi_chip_write_256, |
| 8905 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8906 | .voltage = {1650, 2000}, |
| 8907 | }, |
| 8908 | |
| 8909 | { |
| 8910 | .vendor = "Macronix", |
Daniel Thompson | cadd420 | 2018-06-04 13:52:22 +0100 | [diff] [blame] | 8911 | .name = "MX25U51245G", |
| 8912 | .bustype = BUS_SPI, |
| 8913 | .manufacture_id = MACRONIX_ID, |
| 8914 | .model_id = MACRONIX_MX25U51245G, |
| 8915 | .total_size = 65536, |
| 8916 | .page_size = 256, |
| 8917 | /* OTP: 512B factory programmed and 512B customer programmed; enter 0xB1, exit 0xC1 */ |
| 8918 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA, |
| 8919 | .tested = TEST_OK_PREW, |
| 8920 | .probe = probe_spi_rdid, |
| 8921 | .probe_timing = TIMING_ZERO, |
| 8922 | .block_erasers = |
| 8923 | { |
| 8924 | { |
| 8925 | .eraseblocks = { {4 * 1024, 16384} }, |
| 8926 | .block_erase = spi_block_erase_21, |
| 8927 | }, { |
| 8928 | .eraseblocks = { {4 * 1024, 16384} }, |
| 8929 | .block_erase = spi_block_erase_20, |
| 8930 | }, { |
| 8931 | .eraseblocks = { {32 * 1024, 2048} }, |
| 8932 | .block_erase = spi_block_erase_5c, |
| 8933 | }, { |
| 8934 | .eraseblocks = { {32 * 1024, 2048} }, |
| 8935 | .block_erase = spi_block_erase_52, |
| 8936 | }, { |
| 8937 | .eraseblocks = { {64 * 1024, 1024} }, |
| 8938 | .block_erase = spi_block_erase_dc, |
| 8939 | }, { |
| 8940 | .eraseblocks = { {64 * 1024, 1024} }, |
| 8941 | .block_erase = spi_block_erase_d8, |
| 8942 | }, { |
| 8943 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 8944 | .block_erase = spi_block_erase_60, |
| 8945 | }, { |
| 8946 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 8947 | .block_erase = spi_block_erase_c7, |
| 8948 | } |
| 8949 | }, |
| 8950 | /* TODO: security register */ |
| 8951 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8952 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8953 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 8954 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8955 | .voltage = {1650, 2000}, |
| 8956 | }, |
| 8957 | |
| 8958 | { |
| 8959 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8960 | .name = "MX25U6435E/F", |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 8961 | .bustype = BUS_SPI, |
| 8962 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8963 | .model_id = MACRONIX_MX25U6435E, |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 8964 | .total_size = 8192, |
| 8965 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8966 | /* F model supports SFDP */ |
| 8967 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8968 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 8969 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 8970 | .tested = TEST_OK_PREW, |
| 8971 | .probe = probe_spi_rdid, |
| 8972 | .probe_timing = TIMING_ZERO, |
| 8973 | .block_erasers = |
| 8974 | { |
| 8975 | { |
| 8976 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8977 | .block_erase = spi_block_erase_20, |
| 8978 | }, { |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 8979 | .eraseblocks = { {32 * 1024, 256} }, |
| 8980 | .block_erase = spi_block_erase_52, |
| 8981 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8982 | .eraseblocks = { {64 * 1024, 128} }, |
| 8983 | .block_erase = spi_block_erase_d8, |
| 8984 | }, { |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 8985 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8986 | .block_erase = spi_block_erase_60, |
| 8987 | }, { |
| 8988 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8989 | .block_erase = spi_block_erase_c7, |
| 8990 | } |
| 8991 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8992 | /* TODO: security register */ |
Nathan Rennie-Waldock | 5a7f942 | 2018-08-10 15:35:23 +0100 | [diff] [blame] | 8993 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8994 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8995 | .write = spi_chip_write_256, |
| 8996 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8997 | .voltage = {1650, 2000}, |
| 8998 | }, |
| 8999 | |
| 9000 | { |
| 9001 | .vendor = "Macronix", |
| 9002 | .name = "MX25U8032E", |
| 9003 | .bustype = BUS_SPI, |
| 9004 | .manufacture_id = MACRONIX_ID, |
| 9005 | .model_id = MACRONIX_MX25U8032E, |
| 9006 | .total_size = 1024, |
| 9007 | .page_size = 256, |
| 9008 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 9009 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9010 | .tested = TEST_OK_PREW, |
| 9011 | .probe = probe_spi_rdid, |
| 9012 | .probe_timing = TIMING_ZERO, |
| 9013 | .block_erasers = |
| 9014 | { |
| 9015 | { |
| 9016 | .eraseblocks = { {4 * 1024, 256} }, |
| 9017 | .block_erase = spi_block_erase_20, |
| 9018 | }, { |
| 9019 | .eraseblocks = { {32 * 1024, 32} }, |
| 9020 | .block_erase = spi_block_erase_52, |
| 9021 | }, { |
| 9022 | .eraseblocks = { {64 * 1024, 16} }, |
| 9023 | .block_erase = spi_block_erase_d8, |
| 9024 | }, { |
| 9025 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9026 | .block_erase = spi_block_erase_60, |
| 9027 | }, { |
| 9028 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9029 | .block_erase = spi_block_erase_c7, |
| 9030 | } |
| 9031 | }, |
| 9032 | /* TODO: security register */ |
| 9033 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9034 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9035 | .write = spi_chip_write_256, |
| 9036 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9037 | .voltage = {1650, 2000}, |
Nathan Rennie-Waldock | 5a7f942 | 2018-08-10 15:35:23 +0100 | [diff] [blame] | 9038 | }, |
| 9039 | |
| 9040 | { |
| 9041 | .vendor = "Macronix", |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9042 | .name = "MX29F001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9043 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9044 | .manufacture_id = MACRONIX_ID, |
| 9045 | .model_id = MACRONIX_MX29F001B, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9046 | .total_size = 128, |
| 9047 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9048 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9049 | .tested = TEST_UNTESTED, |
| 9050 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 9051 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9052 | .block_erasers = |
| 9053 | { |
| 9054 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 9055 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9056 | {8 * 1024, 1}, |
| 9057 | {4 * 1024, 2}, |
| 9058 | {8 * 1024, 2}, |
| 9059 | {32 * 1024, 1}, |
| 9060 | {64 * 1024, 1}, |
| 9061 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9062 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9063 | }, { |
| 9064 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9065 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9066 | } |
| 9067 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 9068 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9069 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9070 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9071 | }, |
| 9072 | |
| 9073 | { |
| 9074 | .vendor = "Macronix", |
| 9075 | .name = "MX29F001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9076 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9077 | .manufacture_id = MACRONIX_ID, |
| 9078 | .model_id = MACRONIX_MX29F001T, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9079 | .total_size = 128, |
| 9080 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9081 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stefan Tauner | 74c6ec6 | 2011-05-18 01:31:46 +0000 | [diff] [blame] | 9082 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9083 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 9084 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9085 | .block_erasers = |
| 9086 | { |
| 9087 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 9088 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9089 | {64 * 1024, 1}, |
| 9090 | {32 * 1024, 1}, |
| 9091 | {8 * 1024, 2}, |
| 9092 | {4 * 1024, 2}, |
| 9093 | {8 * 1024, 1}, |
| 9094 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9095 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9096 | }, { |
| 9097 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9098 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9099 | } |
| 9100 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 9101 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9102 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9103 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9104 | }, |
| 9105 | |
| 9106 | { |
| 9107 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 9108 | .name = "MX29F002(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9109 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9110 | .manufacture_id = MACRONIX_ID, |
| 9111 | .model_id = MACRONIX_MX29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9112 | .total_size = 256, |
| 9113 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9114 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9115 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9116 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 9117 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9118 | .block_erasers = |
| 9119 | { |
| 9120 | { |
| 9121 | .eraseblocks = { |
| 9122 | {16 * 1024, 1}, |
| 9123 | {8 * 1024, 2}, |
| 9124 | {32 * 1024, 1}, |
| 9125 | {64 * 1024, 3}, |
| 9126 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9127 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9128 | }, { |
| 9129 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9130 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9131 | }, |
| 9132 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 9133 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9134 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9135 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9136 | }, |
| 9137 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9138 | { |
| 9139 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 9140 | .name = "MX29F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9141 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9142 | .manufacture_id = MACRONIX_ID, |
| 9143 | .model_id = MACRONIX_MX29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9144 | .total_size = 256, |
| 9145 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9146 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 9147 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9148 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 9149 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9150 | .block_erasers = |
| 9151 | { |
| 9152 | { |
| 9153 | .eraseblocks = { |
| 9154 | {64 * 1024, 3}, |
| 9155 | {32 * 1024, 1}, |
| 9156 | {8 * 1024, 2}, |
| 9157 | {16 * 1024, 1}, |
| 9158 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9159 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9160 | }, { |
| 9161 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9162 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9163 | }, |
| 9164 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 9165 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9166 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9167 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9168 | }, |
| 9169 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9170 | { |
| 9171 | .vendor = "Macronix", |
Daniele Forsi | 6a18a93 | 2014-07-13 14:53:45 +0000 | [diff] [blame] | 9172 | .name = "MX29F022(N)B", |
| 9173 | .bustype = BUS_PARALLEL, |
| 9174 | .manufacture_id = MACRONIX_ID, |
| 9175 | .model_id = MACRONIX_MX29F022B, |
| 9176 | .total_size = 256, |
| 9177 | .page_size = 0, /* unused */ |
| 9178 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9179 | .tested = TEST_UNTESTED, |
| 9180 | .probe = probe_jedec, |
| 9181 | .probe_timing = TIMING_ZERO, |
| 9182 | .block_erasers = |
| 9183 | { |
| 9184 | { |
| 9185 | .eraseblocks = { |
| 9186 | {16 * 1024, 1}, |
| 9187 | {8 * 1024, 2}, |
| 9188 | {32 * 1024, 1}, |
| 9189 | {64 * 1024, 3}, |
| 9190 | }, |
| 9191 | .block_erase = erase_sector_jedec, |
| 9192 | }, { |
| 9193 | .eraseblocks = { {256 * 1024, 1} }, |
| 9194 | .block_erase = erase_chip_block_jedec, |
| 9195 | } |
| 9196 | }, |
| 9197 | .write = write_jedec_1, |
| 9198 | .read = read_memmapped, |
| 9199 | .voltage = {4500, 5500}, |
| 9200 | }, |
| 9201 | |
| 9202 | { |
| 9203 | .vendor = "Macronix", |
| 9204 | .name = "MX29F022(N)T", |
| 9205 | .bustype = BUS_PARALLEL, |
| 9206 | .manufacture_id = MACRONIX_ID, |
| 9207 | .model_id = MACRONIX_MX29F022T, |
| 9208 | .total_size = 256, |
| 9209 | .page_size = 0, /* unused */ |
| 9210 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9211 | .tested = TEST_OK_PREW, |
| 9212 | .probe = probe_jedec, |
| 9213 | .probe_timing = TIMING_ZERO, |
| 9214 | .block_erasers = |
| 9215 | { |
| 9216 | { |
| 9217 | .eraseblocks = { |
| 9218 | {64 * 1024, 3}, |
| 9219 | {32 * 1024, 1}, |
| 9220 | {8 * 1024, 2}, |
| 9221 | {16 * 1024, 1}, |
| 9222 | }, |
| 9223 | .block_erase = erase_sector_jedec, |
| 9224 | }, { |
| 9225 | .eraseblocks = { {256 * 1024, 1} }, |
| 9226 | .block_erase = erase_chip_block_jedec, |
| 9227 | } |
| 9228 | }, |
| 9229 | .write = write_jedec_1, |
| 9230 | .read = read_memmapped, |
| 9231 | .voltage = {4500, 5500}, |
| 9232 | }, |
| 9233 | |
| 9234 | { |
| 9235 | .vendor = "Macronix", |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 9236 | .name = "MX29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9237 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 9238 | .manufacture_id = MACRONIX_ID, |
| 9239 | .model_id = MACRONIX_MX29F040, |
| 9240 | .total_size = 512, |
| 9241 | .page_size = 64 * 1024, |
| 9242 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9243 | .tested = TEST_UNTESTED, |
| 9244 | .probe = probe_jedec, |
| 9245 | .probe_timing = TIMING_ZERO, |
| 9246 | .block_erasers = |
| 9247 | { |
| 9248 | { |
| 9249 | .eraseblocks = { {64 * 1024, 8} }, |
| 9250 | .block_erase = erase_sector_jedec, |
| 9251 | }, { |
| 9252 | .eraseblocks = { {512 * 1024, 1} }, |
| 9253 | .block_erase = erase_chip_block_jedec, |
| 9254 | }, |
| 9255 | }, |
| 9256 | .write = write_jedec_1, |
| 9257 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 9258 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 9259 | }, |
| 9260 | |
| 9261 | { |
| 9262 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9263 | .name = "MX29GL128F", |
| 9264 | .bustype = BUS_PARALLEL, |
| 9265 | .manufacture_id = MACRONIX_ID, |
| 9266 | .model_id = MACRONIX_MX29GL128F, |
| 9267 | .total_size = 16384, |
| 9268 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9269 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9270 | .tested = TEST_UNTESTED, |
| 9271 | .probe = probe_jedec_29gl, |
| 9272 | .probe_timing = TIMING_ZERO, |
| 9273 | .block_erasers = |
| 9274 | { |
| 9275 | { |
| 9276 | .eraseblocks = { {128 * 1024, 128} }, |
| 9277 | .block_erase = erase_sector_jedec, |
| 9278 | }, { |
| 9279 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 9280 | .block_erase = erase_chip_block_jedec, |
| 9281 | }, |
| 9282 | }, |
| 9283 | .write = write_jedec_1, |
| 9284 | .read = read_memmapped, |
| 9285 | .voltage = {2700, 3600}, |
| 9286 | }, |
| 9287 | |
| 9288 | { |
| 9289 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 9290 | .name = "MX29GL320EB", |
| 9291 | .bustype = BUS_PARALLEL, |
| 9292 | .manufacture_id = MACRONIX_ID, |
| 9293 | .model_id = MACRONIX_MX29GL320EB, |
| 9294 | .total_size = 4096, |
| 9295 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9296 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9297 | .tested = TEST_UNTESTED, |
| 9298 | .probe = probe_jedec_29gl, |
| 9299 | .probe_timing = TIMING_ZERO, |
| 9300 | .block_erasers = |
| 9301 | { |
| 9302 | { |
| 9303 | .eraseblocks = { |
| 9304 | {8 * 1024, 8}, |
| 9305 | {64 * 1024, 63}, |
| 9306 | }, |
| 9307 | .block_erase = erase_sector_jedec, |
| 9308 | }, { |
| 9309 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9310 | .block_erase = erase_chip_block_jedec, |
| 9311 | }, |
| 9312 | }, |
| 9313 | .write = write_jedec_1, |
| 9314 | .read = read_memmapped, |
| 9315 | .voltage = {2700, 3600}, |
| 9316 | }, |
| 9317 | |
| 9318 | { |
| 9319 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9320 | .name = "MX29GL320EH/L", |
| 9321 | .bustype = BUS_PARALLEL, |
| 9322 | .manufacture_id = MACRONIX_ID, |
| 9323 | .model_id = MACRONIX_MX29GL320EHL, |
| 9324 | .total_size = 4096, |
| 9325 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9326 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9327 | .tested = TEST_UNTESTED, |
| 9328 | .probe = probe_jedec_29gl, |
| 9329 | .probe_timing = TIMING_ZERO, |
| 9330 | .block_erasers = |
| 9331 | { |
| 9332 | { |
| 9333 | .eraseblocks = { {64 * 1024, 64} }, |
| 9334 | .block_erase = erase_sector_jedec, |
| 9335 | }, { |
| 9336 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9337 | .block_erase = erase_chip_block_jedec, |
| 9338 | }, |
| 9339 | }, |
| 9340 | .write = write_jedec_1, |
| 9341 | .read = read_memmapped, |
| 9342 | .voltage = {2700, 3600}, |
| 9343 | }, |
| 9344 | |
| 9345 | { |
| 9346 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 9347 | .name = "MX29GL320ET", |
| 9348 | .bustype = BUS_PARALLEL, |
| 9349 | .manufacture_id = MACRONIX_ID, |
| 9350 | .model_id = MACRONIX_MX29GL320ET, |
| 9351 | .total_size = 4096, |
| 9352 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9353 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9354 | .tested = TEST_UNTESTED, |
| 9355 | .probe = probe_jedec_29gl, |
| 9356 | .probe_timing = TIMING_ZERO, |
| 9357 | .block_erasers = |
| 9358 | { |
| 9359 | { |
| 9360 | .eraseblocks = { |
| 9361 | {64 * 1024, 63}, |
| 9362 | {8 * 1024, 8}, |
| 9363 | }, |
| 9364 | .block_erase = erase_sector_jedec, |
| 9365 | }, { |
| 9366 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9367 | .block_erase = erase_chip_block_jedec, |
| 9368 | }, |
| 9369 | }, |
| 9370 | .write = write_jedec_1, |
| 9371 | .read = read_memmapped, |
| 9372 | .voltage = {2700, 3600}, |
| 9373 | }, |
| 9374 | |
| 9375 | { |
| 9376 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 9377 | .name = "MX29GL640EB", |
| 9378 | .bustype = BUS_PARALLEL, |
| 9379 | .manufacture_id = MACRONIX_ID, |
| 9380 | .model_id = MACRONIX_MX29GL640EB, |
| 9381 | .total_size = 8192, |
| 9382 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9383 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9384 | .tested = TEST_UNTESTED, |
| 9385 | .probe = probe_jedec_29gl, |
| 9386 | .probe_timing = TIMING_ZERO, |
| 9387 | .block_erasers = |
| 9388 | { |
| 9389 | { |
| 9390 | .eraseblocks = { |
| 9391 | {8 * 1024, 8}, |
| 9392 | {64 * 1024, 127}, |
| 9393 | }, |
| 9394 | .block_erase = erase_sector_jedec, |
| 9395 | }, { |
| 9396 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9397 | .block_erase = erase_chip_block_jedec, |
| 9398 | }, |
| 9399 | }, |
| 9400 | .write = write_jedec_1, |
| 9401 | .read = read_memmapped, |
| 9402 | .voltage = {2700, 3600}, |
| 9403 | }, |
| 9404 | |
| 9405 | { |
| 9406 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9407 | .name = "MX29GL640EH/L", |
| 9408 | .bustype = BUS_PARALLEL, |
| 9409 | .manufacture_id = MACRONIX_ID, |
| 9410 | .model_id = MACRONIX_MX29GL640EHL, |
| 9411 | .total_size = 8192, |
| 9412 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9413 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9414 | .tested = TEST_UNTESTED, |
| 9415 | .probe = probe_jedec_29gl, |
| 9416 | .probe_timing = TIMING_ZERO, |
| 9417 | .block_erasers = |
| 9418 | { |
| 9419 | { |
| 9420 | .eraseblocks = { {64 * 1024, 128} }, |
| 9421 | .block_erase = erase_sector_jedec, |
| 9422 | }, { |
| 9423 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9424 | .block_erase = erase_chip_block_jedec, |
| 9425 | }, |
| 9426 | }, |
| 9427 | .write = write_jedec_1, |
| 9428 | .read = read_memmapped, |
| 9429 | .voltage = {2700, 3600}, |
| 9430 | }, |
| 9431 | |
| 9432 | { |
| 9433 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 9434 | .name = "MX29GL640ET", |
| 9435 | .bustype = BUS_PARALLEL, |
| 9436 | .manufacture_id = MACRONIX_ID, |
| 9437 | .model_id = MACRONIX_MX29GL640ET, |
| 9438 | .total_size = 8192, |
| 9439 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9440 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9441 | .tested = TEST_UNTESTED, |
| 9442 | .probe = probe_jedec_29gl, |
| 9443 | .probe_timing = TIMING_ZERO, |
| 9444 | .block_erasers = |
| 9445 | { |
| 9446 | { |
| 9447 | .eraseblocks = { |
| 9448 | {64 * 1024, 127}, |
| 9449 | {8 * 1024, 8}, |
| 9450 | }, |
| 9451 | .block_erase = erase_sector_jedec, |
| 9452 | }, { |
| 9453 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9454 | .block_erase = erase_chip_block_jedec, |
| 9455 | }, |
| 9456 | }, |
| 9457 | .write = write_jedec_1, |
| 9458 | .read = read_memmapped, |
| 9459 | .voltage = {2700, 3600}, |
| 9460 | }, |
| 9461 | |
| 9462 | { |
| 9463 | .vendor = "Macronix", |
Carl-Daniel Hailfinger | 350a0c3 | 2009-07-24 13:59:27 +0000 | [diff] [blame] | 9464 | .name = "MX29LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9465 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9466 | .manufacture_id = MACRONIX_ID, |
| 9467 | .model_id = MACRONIX_MX29LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9468 | .total_size = 512, |
| 9469 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9470 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9471 | .tested = TEST_UNTESTED, |
| 9472 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 9473 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9474 | .block_erasers = |
| 9475 | { |
| 9476 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 9477 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9478 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9479 | }, { |
| 9480 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9481 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9482 | }, |
| 9483 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 9484 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9485 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9486 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 7de8639 | 2008-12-10 10:32:05 +0000 | [diff] [blame] | 9487 | }, |
| 9488 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9489 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9490 | .vendor = "Macronix", |
Hemanth Guruva Reddy | a136d42 | 2019-07-11 11:08:27 +0200 | [diff] [blame] | 9491 | .name = "MX66L51235F/MX25L51245G", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9492 | .bustype = BUS_SPI, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9493 | .manufacture_id = MACRONIX_ID, |
| 9494 | .model_id = MACRONIX_MX66L51235F, |
| 9495 | .total_size = 65536, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9496 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9497 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 9498 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9499 | .tested = TEST_OK_PREW, |
| 9500 | .probe = probe_spi_rdid, |
| 9501 | .probe_timing = TIMING_ZERO, |
| 9502 | .block_erasers = |
| 9503 | { |
| 9504 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9505 | .eraseblocks = { {4 * 1024, 16384} }, |
| 9506 | .block_erase = spi_block_erase_21, |
| 9507 | }, { |
| 9508 | .eraseblocks = { {4 * 1024, 16384} }, |
| 9509 | .block_erase = spi_block_erase_20, |
| 9510 | }, { |
| 9511 | .eraseblocks = { {32 * 1024, 2048} }, |
| 9512 | .block_erase = spi_block_erase_5c, |
| 9513 | }, { |
| 9514 | .eraseblocks = { {32 * 1024, 2048} }, |
| 9515 | .block_erase = spi_block_erase_52, |
| 9516 | }, { |
| 9517 | .eraseblocks = { {64 * 1024, 1024} }, |
| 9518 | .block_erase = spi_block_erase_dc, |
| 9519 | }, { |
| 9520 | .eraseblocks = { {64 * 1024, 1024} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9521 | .block_erase = spi_block_erase_d8, |
| 9522 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9523 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 9524 | .block_erase = spi_block_erase_60, |
| 9525 | }, { |
| 9526 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9527 | .block_erase = spi_block_erase_c7, |
| 9528 | } |
| 9529 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9530 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
| 9531 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9532 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9533 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9534 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9535 | .voltage = {2700, 3600}, |
| 9536 | }, |
| 9537 | |
| 9538 | /* The ST M25P05 is a bit of a problem. It has the same ID as the |
| 9539 | * ST M25P05-A in RES mode, but supports only 128 byte writes instead |
| 9540 | * of 256 byte writes. We rely heavily on the fact that probe_spi_res1 |
| 9541 | * only is successful if RDID does not work. |
| 9542 | */ |
| 9543 | { |
| 9544 | .vendor = "Micron/Numonyx/ST", |
| 9545 | .name = "M25P05", |
| 9546 | .bustype = BUS_SPI, |
| 9547 | .manufacture_id = 0, /* Not used. */ |
| 9548 | .model_id = ST_M25P05_RES, |
| 9549 | .total_size = 64, |
| 9550 | .page_size = 256, |
| 9551 | .feature_bits = FEATURE_WRSR_WREN, |
| 9552 | .tested = TEST_UNTESTED, |
| 9553 | .probe = probe_spi_res1, |
| 9554 | .probe_timing = TIMING_ZERO, |
| 9555 | .block_erasers = |
| 9556 | { |
| 9557 | { |
| 9558 | .eraseblocks = { {32 * 1024, 2} }, |
| 9559 | .block_erase = spi_block_erase_d8, |
| 9560 | }, { |
| 9561 | .eraseblocks = { {64 * 1024, 1} }, |
| 9562 | .block_erase = spi_block_erase_c7, |
| 9563 | } |
| 9564 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9565 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9566 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9567 | .write = spi_chip_write_1, /* 128 */ |
| 9568 | .read = spi_chip_read, |
| 9569 | .voltage = {2700, 3600}, |
| 9570 | }, |
| 9571 | |
| 9572 | { |
| 9573 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9574 | .name = "M25P05-A", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9575 | .bustype = BUS_SPI, |
| 9576 | .manufacture_id = ST_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9577 | .model_id = ST_M25P05A, |
| 9578 | .total_size = 64, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9579 | .page_size = 256, |
| 9580 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 9581 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9582 | .probe = probe_spi_rdid, |
| 9583 | .probe_timing = TIMING_ZERO, |
| 9584 | .block_erasers = |
| 9585 | { |
| 9586 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9587 | .eraseblocks = { {32 * 1024, 2} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9588 | .block_erase = spi_block_erase_d8, |
| 9589 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9590 | .eraseblocks = { {64 * 1024, 1} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9591 | .block_erase = spi_block_erase_c7, |
| 9592 | } |
| 9593 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9594 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9595 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9596 | .write = spi_chip_write_256, |
| 9597 | .read = spi_chip_read, |
| 9598 | .voltage = {2700, 3600}, |
| 9599 | }, |
| 9600 | |
| 9601 | /* The ST M25P10 has the same problem as the M25P05. */ |
| 9602 | { |
| 9603 | .vendor = "Micron/Numonyx/ST", |
| 9604 | .name = "M25P10", |
| 9605 | .bustype = BUS_SPI, |
| 9606 | .manufacture_id = 0, /* Not used. */ |
| 9607 | .model_id = ST_M25P10_RES, |
| 9608 | .total_size = 128, |
| 9609 | .page_size = 256, |
| 9610 | .feature_bits = FEATURE_WRSR_WREN, |
| 9611 | .tested = TEST_UNTESTED, |
| 9612 | .probe = probe_spi_res1, |
| 9613 | .probe_timing = TIMING_ZERO, |
| 9614 | .block_erasers = |
| 9615 | { |
| 9616 | { |
| 9617 | .eraseblocks = { {32 * 1024, 4} }, |
| 9618 | .block_erase = spi_block_erase_d8, |
| 9619 | }, { |
| 9620 | .eraseblocks = { {128 * 1024, 1} }, |
| 9621 | .block_erase = spi_block_erase_c7, |
| 9622 | } |
| 9623 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9624 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9625 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9626 | .write = spi_chip_write_1, /* 128 */ |
| 9627 | .read = spi_chip_read, |
| 9628 | .voltage = {2700, 3600}, |
| 9629 | }, |
| 9630 | |
| 9631 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9632 | .vendor = "Micron/Numonyx/ST", |
| 9633 | .name = "M25P10-A", |
| 9634 | .bustype = BUS_SPI, |
| 9635 | .manufacture_id = ST_ID, |
| 9636 | .model_id = ST_M25P10A, |
| 9637 | .total_size = 128, |
| 9638 | .page_size = 256, |
| 9639 | .feature_bits = FEATURE_WRSR_WREN, |
| 9640 | .tested = TEST_OK_PREW, |
| 9641 | .probe = probe_spi_rdid, |
| 9642 | .probe_timing = TIMING_ZERO, |
| 9643 | .block_erasers = |
| 9644 | { |
| 9645 | { |
| 9646 | .eraseblocks = { {32 * 1024, 4} }, |
| 9647 | .block_erase = spi_block_erase_d8, |
| 9648 | }, { |
| 9649 | .eraseblocks = { {128 * 1024, 1} }, |
| 9650 | .block_erase = spi_block_erase_c7, |
| 9651 | } |
| 9652 | }, |
| 9653 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
| 9654 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9655 | .write = spi_chip_write_256, |
| 9656 | .read = spi_chip_read, |
| 9657 | .voltage = {2700, 3600}, |
| 9658 | }, |
| 9659 | |
| 9660 | { |
| 9661 | .vendor = "Micron/Numonyx/ST", |
| 9662 | .name = "M25P128", |
| 9663 | .bustype = BUS_SPI, |
| 9664 | .manufacture_id = ST_ID, |
| 9665 | .model_id = ST_M25P128, |
| 9666 | .total_size = 16384, |
| 9667 | .page_size = 256, |
| 9668 | .feature_bits = FEATURE_WRSR_WREN, |
| 9669 | .tested = TEST_OK_PREW, |
| 9670 | .probe = probe_spi_rdid, |
| 9671 | .probe_timing = TIMING_ZERO, |
| 9672 | .block_erasers = |
| 9673 | { |
| 9674 | { |
| 9675 | .eraseblocks = { {256 * 1024, 64} }, |
| 9676 | .block_erase = spi_block_erase_d8, |
| 9677 | }, { |
| 9678 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 9679 | .block_erase = spi_block_erase_c7, |
| 9680 | } |
| 9681 | }, |
| 9682 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
| 9683 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9684 | .write = spi_chip_write_256, |
| 9685 | .read = spi_chip_read, |
| 9686 | .voltage = {2700, 3600}, |
| 9687 | }, |
| 9688 | |
| 9689 | { |
| 9690 | .vendor = "Micron/Numonyx/ST", |
| 9691 | .name = "M25P16", |
| 9692 | .bustype = BUS_SPI, |
| 9693 | .manufacture_id = ST_ID, |
| 9694 | .model_id = ST_M25P16, |
| 9695 | .total_size = 2048, |
| 9696 | .page_size = 256, |
| 9697 | .feature_bits = FEATURE_WRSR_WREN, |
| 9698 | .tested = TEST_OK_PREW, |
| 9699 | .probe = probe_spi_rdid, |
| 9700 | .probe_timing = TIMING_ZERO, |
| 9701 | .block_erasers = |
| 9702 | { |
| 9703 | { |
| 9704 | .eraseblocks = { {64 * 1024, 32} }, |
| 9705 | .block_erase = spi_block_erase_d8, |
| 9706 | }, { |
| 9707 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9708 | .block_erase = spi_block_erase_c7, |
| 9709 | } |
| 9710 | }, |
| 9711 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
| 9712 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9713 | .write = spi_chip_write_256, |
| 9714 | .read = spi_chip_read, |
| 9715 | .voltage = {2700, 3600}, |
| 9716 | }, |
| 9717 | |
| 9718 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9719 | .vendor = "Micron/Numonyx/ST", /* Numonyx */ |
| 9720 | .name = "M25P20", |
| 9721 | .bustype = BUS_SPI, |
| 9722 | .manufacture_id = ST_ID, |
| 9723 | .model_id = ST_M25P20, |
| 9724 | .total_size = 256, |
| 9725 | .page_size = 256, |
| 9726 | .feature_bits = FEATURE_WRSR_WREN, |
| 9727 | .tested = TEST_UNTESTED, |
| 9728 | .probe = probe_spi_rdid, |
| 9729 | .probe_timing = TIMING_ZERO, |
| 9730 | .block_erasers = |
| 9731 | { |
| 9732 | { |
| 9733 | .eraseblocks = { {64 * 1024, 4} }, |
| 9734 | .block_erase = spi_block_erase_d8, |
| 9735 | }, { |
| 9736 | .eraseblocks = { {256 * 1024, 1} }, |
| 9737 | .block_erase = spi_block_erase_c7, |
| 9738 | } |
| 9739 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9740 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9741 | .unlock = spi_disable_blockprotect, |
| 9742 | .write = spi_chip_write_256, |
| 9743 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9744 | .voltage = {2700, 3600}, |
| 9745 | }, |
| 9746 | |
| 9747 | { |
| 9748 | .vendor = "Micron/Numonyx/ST", |
| 9749 | .name = "M25P20-old", |
| 9750 | .bustype = BUS_SPI, |
| 9751 | .manufacture_id = 0, /* Not used. */ |
| 9752 | .model_id = ST_M25P20_RES, |
| 9753 | .total_size = 256, |
| 9754 | .page_size = 256, |
| 9755 | .feature_bits = FEATURE_WRSR_WREN, |
| 9756 | .tested = TEST_OK_PREW, |
| 9757 | .probe = probe_spi_res1, |
| 9758 | .probe_timing = TIMING_ZERO, |
| 9759 | .block_erasers = |
| 9760 | { |
| 9761 | { |
| 9762 | .eraseblocks = { {64 * 1024, 4} }, |
| 9763 | .block_erase = spi_block_erase_d8, |
| 9764 | }, { |
| 9765 | .eraseblocks = { {256 * 1024, 1} }, |
| 9766 | .block_erase = spi_block_erase_c7, |
| 9767 | } |
| 9768 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9769 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9770 | .unlock = spi_disable_blockprotect, |
| 9771 | .write = spi_chip_write_256, |
| 9772 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9773 | .voltage = {2700, 3600}, |
| 9774 | }, |
| 9775 | |
| 9776 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9777 | .vendor = "Micron/Numonyx/ST", |
| 9778 | .name = "M25P32", |
| 9779 | .bustype = BUS_SPI, |
| 9780 | .manufacture_id = ST_ID, |
| 9781 | .model_id = ST_M25P32, |
| 9782 | .total_size = 4096, |
| 9783 | .page_size = 256, |
| 9784 | .feature_bits = FEATURE_WRSR_WREN, |
| 9785 | .tested = TEST_OK_PREW, |
| 9786 | .probe = probe_spi_rdid, |
| 9787 | .probe_timing = TIMING_ZERO, |
| 9788 | .block_erasers = |
| 9789 | { |
| 9790 | { |
| 9791 | .eraseblocks = { {64 * 1024, 64} }, |
| 9792 | .block_erase = spi_block_erase_d8, |
| 9793 | }, { |
| 9794 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9795 | .block_erase = spi_block_erase_c7, |
| 9796 | } |
| 9797 | }, |
| 9798 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
| 9799 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9800 | .write = spi_chip_write_256, |
| 9801 | .read = spi_chip_read, |
| 9802 | .voltage = {2700, 3600}, |
| 9803 | }, |
| 9804 | |
| 9805 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9806 | .vendor = "Micron/Numonyx/ST", /* Numonyx */ |
| 9807 | .name = "M25P40", |
| 9808 | .bustype = BUS_SPI, |
| 9809 | .manufacture_id = ST_ID, |
| 9810 | .model_id = ST_M25P40, |
| 9811 | .total_size = 512, |
| 9812 | .page_size = 256, |
| 9813 | .feature_bits = FEATURE_WRSR_WREN, |
| 9814 | .tested = TEST_OK_PREW, |
| 9815 | .probe = probe_spi_rdid, |
| 9816 | .probe_timing = TIMING_ZERO, |
| 9817 | .block_erasers = |
| 9818 | { |
| 9819 | { |
| 9820 | .eraseblocks = { {64 * 1024, 8} }, |
| 9821 | .block_erase = spi_block_erase_d8, |
| 9822 | }, { |
| 9823 | .eraseblocks = { {512 * 1024, 1} }, |
| 9824 | .block_erase = spi_block_erase_c7, |
| 9825 | } |
| 9826 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9827 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9828 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9829 | .write = spi_chip_write_256, |
| 9830 | .read = spi_chip_read, |
| 9831 | .voltage = {2700, 3600}, |
| 9832 | }, |
| 9833 | |
| 9834 | { |
| 9835 | .vendor = "Micron/Numonyx/ST", |
| 9836 | .name = "M25P40-old", |
| 9837 | .bustype = BUS_SPI, |
| 9838 | .manufacture_id = 0, /* Not used. */ |
| 9839 | .model_id = ST_M25P40_RES, |
| 9840 | .total_size = 512, |
| 9841 | .page_size = 256, |
| 9842 | .feature_bits = FEATURE_WRSR_WREN, |
| 9843 | .tested = TEST_UNTESTED, |
| 9844 | .probe = probe_spi_res1, |
| 9845 | .probe_timing = TIMING_ZERO, |
| 9846 | .block_erasers = |
| 9847 | { |
| 9848 | { |
| 9849 | .eraseblocks = { {64 * 1024, 8} }, |
| 9850 | .block_erase = spi_block_erase_d8, |
| 9851 | }, { |
| 9852 | .eraseblocks = { {512 * 1024, 1} }, |
| 9853 | .block_erase = spi_block_erase_c7, |
| 9854 | } |
| 9855 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9856 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9857 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9858 | .write = spi_chip_write_256, |
| 9859 | .read = spi_chip_read, |
| 9860 | }, |
| 9861 | |
| 9862 | { |
| 9863 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9864 | .name = "M25P64", |
| 9865 | .bustype = BUS_SPI, |
| 9866 | .manufacture_id = ST_ID, |
| 9867 | .model_id = ST_M25P64, |
| 9868 | .total_size = 8192, |
| 9869 | .page_size = 256, |
| 9870 | .feature_bits = FEATURE_WRSR_WREN, |
| 9871 | .tested = TEST_OK_PREW, |
| 9872 | .probe = probe_spi_rdid, |
| 9873 | .probe_timing = TIMING_ZERO, |
| 9874 | .block_erasers = |
| 9875 | { |
| 9876 | { |
| 9877 | .eraseblocks = { {64 * 1024, 128} }, |
| 9878 | .block_erase = spi_block_erase_d8, |
| 9879 | }, { |
| 9880 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9881 | .block_erase = spi_block_erase_c7, |
| 9882 | } |
| 9883 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9884 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9885 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9886 | .write = spi_chip_write_256, |
| 9887 | .read = spi_chip_read, |
| 9888 | .voltage = {2700, 3600}, |
| 9889 | }, |
| 9890 | |
| 9891 | { |
| 9892 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9893 | .name = "M25P80", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9894 | .bustype = BUS_SPI, |
| 9895 | .manufacture_id = ST_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9896 | .model_id = ST_M25P80, |
| 9897 | .total_size = 1024, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9898 | .page_size = 256, |
| 9899 | .feature_bits = FEATURE_WRSR_WREN, |
| 9900 | .tested = TEST_OK_PREW, |
| 9901 | .probe = probe_spi_rdid, |
| 9902 | .probe_timing = TIMING_ZERO, |
| 9903 | .block_erasers = |
| 9904 | { |
| 9905 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9906 | .eraseblocks = { {64 * 1024, 16} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9907 | .block_erase = spi_block_erase_d8, |
| 9908 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9909 | .eraseblocks = { {1024 * 1024, 1} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9910 | .block_erase = spi_block_erase_c7, |
| 9911 | } |
| 9912 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9913 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9914 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9915 | .write = spi_chip_write_256, |
| 9916 | .read = spi_chip_read, |
| 9917 | .voltage = {2700, 3600}, |
| 9918 | }, |
| 9919 | |
| 9920 | { |
| 9921 | .vendor = "Micron/Numonyx/ST", |
| 9922 | .name = "M25PE10", |
| 9923 | .bustype = BUS_SPI, |
| 9924 | .manufacture_id = ST_ID, |
| 9925 | .model_id = ST_M25PE10, |
| 9926 | .total_size = 128, |
| 9927 | .page_size = 256, |
| 9928 | .feature_bits = FEATURE_WRSR_WREN, |
| 9929 | .tested = TEST_UNTESTED, |
| 9930 | .probe = probe_spi_rdid, |
| 9931 | .probe_timing = TIMING_ZERO, |
| 9932 | .block_erasers = |
| 9933 | { |
| 9934 | { |
| 9935 | .eraseblocks = { {4 * 1024, 32} }, |
| 9936 | .block_erase = spi_block_erase_20, |
| 9937 | }, { |
| 9938 | .eraseblocks = { {64 * 1024, 2} }, |
| 9939 | .block_erase = spi_block_erase_d8, |
| 9940 | }, { |
| 9941 | .eraseblocks = { {128 * 1024, 1} }, |
| 9942 | .block_erase = spi_block_erase_c7, |
| 9943 | } |
| 9944 | }, |
| 9945 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 9946 | .unlock = spi_disable_blockprotect, |
| 9947 | .write = spi_chip_write_256, |
| 9948 | .read = spi_chip_read, |
| 9949 | .voltage = {2700, 3600}, |
| 9950 | }, |
| 9951 | |
| 9952 | { |
| 9953 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9954 | .name = "M25PE16", |
| 9955 | .bustype = BUS_SPI, |
| 9956 | .manufacture_id = ST_ID, |
| 9957 | .model_id = ST_M25PE16, |
| 9958 | .total_size = 2048, |
| 9959 | .page_size = 256, |
| 9960 | .feature_bits = FEATURE_WRSR_WREN, |
| 9961 | .tested = TEST_UNTESTED, |
| 9962 | .probe = probe_spi_rdid, |
| 9963 | .probe_timing = TIMING_ZERO, |
| 9964 | .block_erasers = |
| 9965 | { |
| 9966 | { |
| 9967 | .eraseblocks = { {4 * 1024, 512} }, |
| 9968 | .block_erase = spi_block_erase_20, |
| 9969 | }, { |
| 9970 | .eraseblocks = { {64 * 1024, 32} }, |
| 9971 | .block_erase = spi_block_erase_d8, |
| 9972 | }, { |
| 9973 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9974 | .block_erase = spi_block_erase_c7, |
| 9975 | } |
| 9976 | }, |
| 9977 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 9978 | .unlock = spi_disable_blockprotect, |
| 9979 | .write = spi_chip_write_256, |
| 9980 | .read = spi_chip_read, |
| 9981 | .voltage = {2700, 3600}, |
| 9982 | }, |
| 9983 | |
| 9984 | { |
| 9985 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9986 | .name = "M25PE20", |
| 9987 | .bustype = BUS_SPI, |
| 9988 | .manufacture_id = ST_ID, |
| 9989 | .model_id = ST_M25PE20, |
| 9990 | .total_size = 256, |
| 9991 | .page_size = 256, |
| 9992 | .feature_bits = FEATURE_WRSR_WREN, |
| 9993 | .tested = TEST_UNTESTED, |
| 9994 | .probe = probe_spi_rdid, |
| 9995 | .probe_timing = TIMING_ZERO, |
| 9996 | .block_erasers = |
| 9997 | { |
| 9998 | { |
| 9999 | .eraseblocks = { {4 * 1024, 64} }, |
| 10000 | .block_erase = spi_block_erase_20, |
| 10001 | }, { |
| 10002 | .eraseblocks = { {64 * 1024, 4} }, |
| 10003 | .block_erase = spi_block_erase_d8, |
| 10004 | }, { |
| 10005 | .eraseblocks = { {256 * 1024, 1} }, |
| 10006 | .block_erase = spi_block_erase_c7, |
| 10007 | } |
| 10008 | }, |
| 10009 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 10010 | .unlock = spi_disable_blockprotect, |
| 10011 | .write = spi_chip_write_256, |
| 10012 | .read = spi_chip_read, |
| 10013 | .voltage = {2700, 3600}, |
| 10014 | }, |
| 10015 | |
| 10016 | { |
| 10017 | .vendor = "Micron/Numonyx/ST", |
| 10018 | .name = "M25PE40", |
| 10019 | .bustype = BUS_SPI, |
| 10020 | .manufacture_id = ST_ID, |
| 10021 | .model_id = ST_M25PE40, |
| 10022 | .total_size = 512, |
| 10023 | .page_size = 256, |
| 10024 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 10025 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10026 | .probe = probe_spi_rdid, |
| 10027 | .probe_timing = TIMING_ZERO, |
| 10028 | .block_erasers = |
| 10029 | { |
| 10030 | { |
| 10031 | .eraseblocks = { {4 * 1024, 128} }, |
| 10032 | .block_erase = spi_block_erase_20, |
| 10033 | }, { |
| 10034 | .eraseblocks = { {64 * 1024, 8} }, |
| 10035 | .block_erase = spi_block_erase_d8, |
| 10036 | }, { |
| 10037 | .eraseblocks = { {512 * 1024, 1} }, |
| 10038 | .block_erase = spi_block_erase_c7, |
| 10039 | } |
| 10040 | }, |
| 10041 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 10042 | .unlock = spi_disable_blockprotect, |
| 10043 | .write = spi_chip_write_256, |
| 10044 | .read = spi_chip_read, |
| 10045 | .voltage = {2700, 3600}, |
| 10046 | }, |
| 10047 | |
| 10048 | { |
| 10049 | .vendor = "Micron/Numonyx/ST", |
| 10050 | .name = "M25PE80", |
| 10051 | .bustype = BUS_SPI, |
| 10052 | .manufacture_id = ST_ID, |
| 10053 | .model_id = ST_M25PE80, |
| 10054 | .total_size = 1024, |
| 10055 | .page_size = 256, |
| 10056 | .feature_bits = FEATURE_WRSR_WREN, |
| 10057 | .tested = TEST_OK_PREW, |
| 10058 | .probe = probe_spi_rdid, |
| 10059 | .probe_timing = TIMING_ZERO, |
| 10060 | .block_erasers = |
| 10061 | { |
| 10062 | { |
| 10063 | .eraseblocks = { {4 * 1024, 256} }, |
| 10064 | .block_erase = spi_block_erase_20, |
| 10065 | }, { |
| 10066 | .eraseblocks = { {64 * 1024, 16} }, |
| 10067 | .block_erase = spi_block_erase_d8, |
| 10068 | }, { |
| 10069 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10070 | .block_erase = spi_block_erase_c7, |
| 10071 | } |
| 10072 | }, |
| 10073 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 10074 | .unlock = spi_disable_blockprotect, |
| 10075 | .write = spi_chip_write_256, |
| 10076 | .read = spi_chip_read, |
| 10077 | .voltage = {2700, 3600}, |
| 10078 | }, |
| 10079 | |
| 10080 | { |
| 10081 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10082 | .name = "M25PX16", |
| 10083 | .bustype = BUS_SPI, |
| 10084 | .manufacture_id = ST_ID, |
| 10085 | .model_id = ST_M25PX16, |
| 10086 | .total_size = 2048, |
| 10087 | .page_size = 256, |
| 10088 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 10089 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10090 | .tested = TEST_OK_PREW, |
| 10091 | .probe = probe_spi_rdid, |
| 10092 | .probe_timing = TIMING_ZERO, |
| 10093 | .block_erasers = |
| 10094 | { |
| 10095 | { |
| 10096 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 10097 | .block_erase = spi_block_erase_20, |
| 10098 | }, { |
| 10099 | .eraseblocks = { {64 * 1024, 32} }, |
| 10100 | .block_erase = spi_block_erase_d8, |
| 10101 | }, { |
| 10102 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10103 | .block_erase = spi_block_erase_c7, |
| 10104 | } |
| 10105 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10106 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10107 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 10108 | .write = spi_chip_write_256, |
| 10109 | .read = spi_chip_read, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 10110 | .voltage = {2300, 3600}, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10111 | }, |
| 10112 | |
| 10113 | { |
| 10114 | .vendor = "Micron/Numonyx/ST", |
| 10115 | .name = "M25PX32", |
| 10116 | .bustype = BUS_SPI, |
| 10117 | .manufacture_id = ST_ID, |
| 10118 | .model_id = ST_M25PX32, |
| 10119 | .total_size = 4096, |
| 10120 | .page_size = 256, |
| 10121 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 10122 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10123 | .tested = TEST_OK_PRE, |
| 10124 | .probe = probe_spi_rdid, |
| 10125 | .probe_timing = TIMING_ZERO, |
| 10126 | .block_erasers = |
| 10127 | { |
| 10128 | { |
| 10129 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 10130 | .block_erase = spi_block_erase_20, |
| 10131 | }, { |
| 10132 | .eraseblocks = { {64 * 1024, 64} }, |
| 10133 | .block_erase = spi_block_erase_d8, |
| 10134 | }, { |
| 10135 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10136 | .block_erase = spi_block_erase_c7, |
| 10137 | } |
| 10138 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10139 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10140 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 10141 | .write = spi_chip_write_256, |
| 10142 | .read = spi_chip_read, |
| 10143 | .voltage = {2700, 3600}, |
| 10144 | }, |
| 10145 | |
| 10146 | { |
| 10147 | .vendor = "Micron/Numonyx/ST", |
| 10148 | .name = "M25PX64", |
| 10149 | .bustype = BUS_SPI, |
| 10150 | .manufacture_id = ST_ID, |
| 10151 | .model_id = ST_M25PX64, |
| 10152 | .total_size = 8192, |
| 10153 | .page_size = 256, |
| 10154 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 10155 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 10156 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10157 | .probe = probe_spi_rdid, |
| 10158 | .probe_timing = TIMING_ZERO, |
| 10159 | .block_erasers = |
| 10160 | { |
| 10161 | { |
| 10162 | .eraseblocks = { { 4 * 1024, 2048 } }, |
| 10163 | .block_erase = spi_block_erase_20, |
| 10164 | }, { |
| 10165 | .eraseblocks = { {64 * 1024, 128} }, |
| 10166 | .block_erase = spi_block_erase_d8, |
| 10167 | }, { |
| 10168 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10169 | .block_erase = spi_block_erase_c7, |
| 10170 | } |
| 10171 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10172 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10173 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 10174 | .write = spi_chip_write_256, |
| 10175 | .read = spi_chip_read, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 10176 | .voltage = {2700, 3600}, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10177 | }, |
| 10178 | |
| 10179 | { |
| 10180 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10181 | .name = "M25PX80", |
| 10182 | .bustype = BUS_SPI, |
| 10183 | .manufacture_id = ST_ID, |
| 10184 | .model_id = ST_M25PX80, |
| 10185 | .total_size = 1024, |
| 10186 | .page_size = 256, |
| 10187 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10188 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10189 | .tested = TEST_OK_PREW, |
| 10190 | .probe = probe_spi_rdid, |
| 10191 | .probe_timing = TIMING_ZERO, |
| 10192 | .block_erasers = |
| 10193 | { |
| 10194 | { |
| 10195 | .eraseblocks = { { 4 * 1024, 256 } }, |
| 10196 | .block_erase = spi_block_erase_20, |
| 10197 | }, { |
| 10198 | .eraseblocks = { {64 * 1024, 16} }, |
| 10199 | .block_erase = spi_block_erase_d8, |
| 10200 | }, { |
| 10201 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10202 | .block_erase = spi_block_erase_c7, |
| 10203 | } |
| 10204 | }, |
| 10205 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
| 10206 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 10207 | .write = spi_chip_write_256, |
| 10208 | .read = spi_chip_read, |
| 10209 | .voltage = {2700, 3600}, |
| 10210 | }, |
| 10211 | |
| 10212 | { |
| 10213 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10214 | .name = "M45PE10", |
| 10215 | .bustype = BUS_SPI, |
| 10216 | .manufacture_id = ST_ID, |
| 10217 | .model_id = ST_M45PE10, |
| 10218 | .total_size = 128, |
| 10219 | .page_size = 256, |
| 10220 | .tested = TEST_UNTESTED, |
| 10221 | .probe = probe_spi_rdid, |
| 10222 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 10223 | .block_erasers = |
| 10224 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10225 | { |
| 10226 | .eraseblocks = { {256, 512} }, |
| 10227 | .block_erase = spi_block_erase_db, |
| 10228 | }, { |
| 10229 | .eraseblocks = { {64 * 1024, 2} }, |
| 10230 | .block_erase = spi_block_erase_d8, |
| 10231 | } |
| 10232 | }, |
| 10233 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 10234 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 10235 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 10236 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10237 | .voltage = {2700, 3600}, |
| 10238 | }, |
| 10239 | |
| 10240 | { |
| 10241 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10242 | .name = "M45PE16", |
| 10243 | .bustype = BUS_SPI, |
| 10244 | .manufacture_id = ST_ID, |
| 10245 | .model_id = ST_M45PE16, |
| 10246 | .total_size = 2048, |
| 10247 | .page_size = 256, |
| 10248 | .tested = TEST_UNTESTED, |
| 10249 | .probe = probe_spi_rdid, |
| 10250 | .probe_timing = TIMING_ZERO, |
| 10251 | .block_erasers = |
| 10252 | { |
| 10253 | { |
| 10254 | .eraseblocks = { {256, 8192} }, |
| 10255 | .block_erase = spi_block_erase_db, |
| 10256 | }, { |
| 10257 | .eraseblocks = { {64 * 1024, 32} }, |
| 10258 | .block_erase = spi_block_erase_d8, |
| 10259 | } |
| 10260 | }, |
| 10261 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 10262 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 10263 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 10264 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10265 | .voltage = {2700, 3600}, |
| 10266 | }, |
| 10267 | |
| 10268 | { |
| 10269 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10270 | .name = "M45PE20", |
| 10271 | .bustype = BUS_SPI, |
| 10272 | .manufacture_id = ST_ID, |
| 10273 | .model_id = ST_M45PE20, |
| 10274 | .total_size = 256, |
| 10275 | .page_size = 256, |
| 10276 | .tested = TEST_UNTESTED, |
| 10277 | .probe = probe_spi_rdid, |
| 10278 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 10279 | .block_erasers = |
| 10280 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10281 | { |
| 10282 | .eraseblocks = { {256, 1024} }, |
| 10283 | .block_erase = spi_block_erase_db, |
| 10284 | }, { |
| 10285 | .eraseblocks = { {64 * 1024, 4} }, |
| 10286 | .block_erase = spi_block_erase_d8, |
| 10287 | } |
| 10288 | }, |
| 10289 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 10290 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 10291 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 10292 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10293 | .voltage = {2700, 3600}, |
| 10294 | }, |
| 10295 | |
| 10296 | { |
| 10297 | .vendor = "Micron/Numonyx/ST", |
| 10298 | .name = "M45PE40", |
| 10299 | .bustype = BUS_SPI, |
| 10300 | .manufacture_id = ST_ID, |
| 10301 | .model_id = ST_M45PE40, |
| 10302 | .total_size = 512, |
| 10303 | .page_size = 256, |
| 10304 | .tested = TEST_UNTESTED, |
| 10305 | .probe = probe_spi_rdid, |
| 10306 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 10307 | .block_erasers = |
| 10308 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10309 | { |
| 10310 | .eraseblocks = { {256, 2048} }, |
| 10311 | .block_erase = spi_block_erase_db, |
| 10312 | }, { |
| 10313 | .eraseblocks = { {64 * 1024, 8} }, |
| 10314 | .block_erase = spi_block_erase_d8, |
| 10315 | } |
| 10316 | }, |
| 10317 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 10318 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 10319 | .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] | 10320 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10321 | .voltage = {2700, 3600}, |
| 10322 | }, |
| 10323 | |
| 10324 | { |
| 10325 | .vendor = "Micron/Numonyx/ST", |
| 10326 | .name = "M45PE80", |
| 10327 | .bustype = BUS_SPI, |
| 10328 | .manufacture_id = ST_ID, |
| 10329 | .model_id = ST_M45PE80, |
| 10330 | .total_size = 1024, |
| 10331 | .page_size = 256, |
| 10332 | .tested = TEST_UNTESTED, |
| 10333 | .probe = probe_spi_rdid, |
| 10334 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 10335 | .block_erasers = |
| 10336 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10337 | { |
| 10338 | .eraseblocks = { {256, 4096} }, |
| 10339 | .block_erase = spi_block_erase_db, |
| 10340 | }, { |
| 10341 | .eraseblocks = { {64 * 1024, 16} }, |
| 10342 | .block_erase = spi_block_erase_d8, |
| 10343 | } |
| 10344 | }, |
| 10345 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 10346 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 10347 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 10348 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10349 | .voltage = {2700, 3600}, |
| 10350 | }, |
| 10351 | |
| 10352 | { |
| 10353 | .vendor = "Micron/Numonyx/ST", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 10354 | .name = "N25Q00A..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 10355 | .bustype = BUS_SPI, |
| 10356 | .manufacture_id = ST_ID, |
| 10357 | .model_id = ST_N25Q00A__1G, |
| 10358 | .total_size = 131072, |
| 10359 | .page_size = 256, |
| 10360 | /* supports SFDP */ |
| 10361 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10362 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 10363 | .tested = TEST_UNTESTED, |
| 10364 | .probe = probe_spi_rdid, |
| 10365 | .probe_timing = TIMING_ZERO, |
| 10366 | .block_erasers = |
| 10367 | { |
| 10368 | { |
| 10369 | .eraseblocks = { {4 * 1024, 32768} }, |
| 10370 | .block_erase = spi_block_erase_21, |
| 10371 | }, { |
| 10372 | .eraseblocks = { {4 * 1024, 32768} }, |
| 10373 | .block_erase = spi_block_erase_20, |
| 10374 | }, { |
| 10375 | .eraseblocks = { {64 * 1024, 2048} }, |
| 10376 | .block_erase = spi_block_erase_dc, |
| 10377 | }, { |
| 10378 | .eraseblocks = { {64 * 1024, 2048} }, |
| 10379 | .block_erase = spi_block_erase_d8, |
| 10380 | }, { |
| 10381 | .eraseblocks = { {32768 * 1024, 4} }, |
| 10382 | .block_erase = spi_block_erase_c4, |
| 10383 | } |
| 10384 | }, |
| 10385 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10386 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10387 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10388 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10389 | .voltage = {1700, 2000}, |
| 10390 | }, |
| 10391 | |
| 10392 | { |
| 10393 | .vendor = "Micron/Numonyx/ST", |
| 10394 | .name = "N25Q00A..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */ |
| 10395 | .bustype = BUS_SPI, |
| 10396 | .manufacture_id = ST_ID, |
| 10397 | .model_id = ST_N25Q00A__3G, |
| 10398 | .total_size = 131072, |
| 10399 | .page_size = 256, |
| 10400 | /* supports SFDP */ |
| 10401 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10402 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 10403 | .tested = TEST_UNTESTED, |
| 10404 | .probe = probe_spi_rdid, |
| 10405 | .probe_timing = TIMING_ZERO, |
| 10406 | .block_erasers = |
| 10407 | { |
| 10408 | { |
| 10409 | .eraseblocks = { {4 * 1024, 32768} }, |
| 10410 | .block_erase = spi_block_erase_21, |
| 10411 | }, { |
| 10412 | .eraseblocks = { {4 * 1024, 32768} }, |
| 10413 | .block_erase = spi_block_erase_20, |
| 10414 | }, { |
| 10415 | .eraseblocks = { {64 * 1024, 2048} }, |
| 10416 | .block_erase = spi_block_erase_dc, |
| 10417 | }, { |
| 10418 | .eraseblocks = { {64 * 1024, 2048} }, |
| 10419 | .block_erase = spi_block_erase_d8, |
| 10420 | }, { |
| 10421 | .eraseblocks = { {32768 * 1024, 4} }, |
| 10422 | .block_erase = spi_block_erase_c4, |
| 10423 | } |
| 10424 | }, |
| 10425 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10426 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10427 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10428 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10429 | .voltage = {2700, 3600}, |
| 10430 | }, |
| 10431 | |
| 10432 | { |
| 10433 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10434 | .name = "N25Q016", |
| 10435 | .bustype = BUS_SPI, |
| 10436 | .manufacture_id = ST_ID, |
| 10437 | .model_id = ST_N25Q016__1E, |
| 10438 | .total_size = 2048, |
| 10439 | .page_size = 256, |
| 10440 | /* supports SFDP */ |
| 10441 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10442 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10443 | .tested = TEST_UNTESTED, |
| 10444 | .probe = probe_spi_rdid, |
| 10445 | .probe_timing = TIMING_ZERO, |
| 10446 | .block_erasers = |
| 10447 | { |
| 10448 | { |
| 10449 | .eraseblocks = { {4 * 1024, 512} }, |
| 10450 | .block_erase = spi_block_erase_20, |
| 10451 | }, { |
| 10452 | .eraseblocks = { {32 * 1024, 64} }, |
| 10453 | .block_erase = spi_block_erase_52, |
| 10454 | }, { |
| 10455 | .eraseblocks = { {64 * 1024, 32} }, |
| 10456 | .block_erase = spi_block_erase_d8, |
| 10457 | }, { |
| 10458 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10459 | .block_erase = spi_block_erase_c7, |
| 10460 | } |
| 10461 | }, |
| 10462 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10463 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10464 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10465 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10466 | .voltage = {1700, 2000}, |
| 10467 | }, |
| 10468 | |
| 10469 | { |
| 10470 | .vendor = "Micron/Numonyx/ST", |
| 10471 | .name = "N25Q032..1E", |
| 10472 | .bustype = BUS_SPI, |
| 10473 | .manufacture_id = ST_ID, |
| 10474 | .model_id = ST_N25Q032__1E, |
| 10475 | .total_size = 4096, |
| 10476 | .page_size = 256, |
| 10477 | /* supports SFDP */ |
| 10478 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10479 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10480 | .tested = TEST_UNTESTED, |
| 10481 | .probe = probe_spi_rdid, |
| 10482 | .probe_timing = TIMING_ZERO, |
| 10483 | .block_erasers = |
| 10484 | { |
| 10485 | { |
| 10486 | .eraseblocks = { {4 * 1024, 1024} }, |
| 10487 | .block_erase = spi_block_erase_20, |
| 10488 | }, { |
| 10489 | .eraseblocks = { {64 * 1024, 64} }, |
| 10490 | .block_erase = spi_block_erase_d8, |
| 10491 | }, { |
| 10492 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10493 | .block_erase = spi_block_erase_c7, |
| 10494 | } |
| 10495 | }, |
| 10496 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10497 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10498 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10499 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10500 | .voltage = {1700, 2000}, |
| 10501 | }, |
| 10502 | |
| 10503 | { |
| 10504 | .vendor = "Micron/Numonyx/ST", |
| 10505 | .name = "N25Q032..3E", |
| 10506 | .bustype = BUS_SPI, |
| 10507 | .manufacture_id = ST_ID, |
| 10508 | .model_id = ST_N25Q032__3E, |
| 10509 | .total_size = 4096, |
| 10510 | .page_size = 256, |
| 10511 | /* supports SFDP */ |
| 10512 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10513 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10514 | .tested = TEST_OK_PREW, |
| 10515 | .probe = probe_spi_rdid, |
| 10516 | .probe_timing = TIMING_ZERO, |
| 10517 | .block_erasers = |
| 10518 | { |
| 10519 | { |
| 10520 | .eraseblocks = { {4 * 1024, 1024} }, |
| 10521 | .block_erase = spi_block_erase_20, |
| 10522 | }, { |
| 10523 | .eraseblocks = { {64 * 1024, 64} }, |
| 10524 | .block_erase = spi_block_erase_d8, |
| 10525 | }, { |
| 10526 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10527 | .block_erase = spi_block_erase_c7, |
| 10528 | } |
| 10529 | }, |
| 10530 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10531 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10532 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10533 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10534 | .voltage = {2700, 3600}, |
| 10535 | }, |
| 10536 | |
| 10537 | { |
| 10538 | .vendor = "Micron/Numonyx/ST", |
| 10539 | .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 10540 | .bustype = BUS_SPI, |
| 10541 | .manufacture_id = ST_ID, |
| 10542 | .model_id = ST_N25Q064__1E, |
| 10543 | .total_size = 8192, |
| 10544 | .page_size = 256, |
| 10545 | /* supports SFDP */ |
| 10546 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10547 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 10548 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10549 | .probe = probe_spi_rdid, |
| 10550 | .probe_timing = TIMING_ZERO, |
| 10551 | .block_erasers = |
| 10552 | { |
| 10553 | { |
| 10554 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 10555 | .block_erase = spi_block_erase_20, |
| 10556 | }, { |
| 10557 | .eraseblocks = { {64 * 1024, 128} }, |
| 10558 | .block_erase = spi_block_erase_d8, |
| 10559 | }, { |
| 10560 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10561 | .block_erase = spi_block_erase_c7, |
| 10562 | } |
| 10563 | }, |
| 10564 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10565 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10566 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10567 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10568 | .voltage = {1700, 2000}, |
| 10569 | }, |
| 10570 | |
| 10571 | { |
| 10572 | .vendor = "Micron/Numonyx/ST", |
| 10573 | .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 10574 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 10575 | .manufacture_id = ST_ID, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10576 | .model_id = ST_N25Q064__3E, |
| 10577 | .total_size = 8192, |
| 10578 | .page_size = 256, |
| 10579 | /* supports SFDP */ |
| 10580 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10581 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10582 | .tested = TEST_OK_PREW, |
| 10583 | .probe = probe_spi_rdid, |
| 10584 | .probe_timing = TIMING_ZERO, |
| 10585 | .block_erasers = |
| 10586 | { |
| 10587 | { |
| 10588 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 10589 | .block_erase = spi_block_erase_20, |
| 10590 | }, { |
| 10591 | .eraseblocks = { {64 * 1024, 128} }, |
| 10592 | .block_erase = spi_block_erase_d8, |
| 10593 | }, { |
| 10594 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10595 | .block_erase = spi_block_erase_c7, |
| 10596 | } |
| 10597 | }, |
| 10598 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10599 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10600 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10601 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10602 | .voltage = {2700, 3600}, |
| 10603 | }, |
| 10604 | |
| 10605 | { |
| 10606 | .vendor = "Micron/Numonyx/ST", |
| 10607 | .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 10608 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 10609 | .manufacture_id = ST_ID, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10610 | .model_id = ST_N25Q128__1E, |
| 10611 | .total_size = 16384, |
| 10612 | .page_size = 256, |
| 10613 | /* supports SFDP */ |
| 10614 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10615 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 10616 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10617 | .probe = probe_spi_rdid, |
| 10618 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 10619 | .block_erasers = |
| 10620 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10621 | { |
| 10622 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 10623 | .block_erase = spi_block_erase_20, |
| 10624 | }, { |
| 10625 | .eraseblocks = { {64 * 1024, 256} }, |
| 10626 | .block_erase = spi_block_erase_d8, |
| 10627 | }, { |
| 10628 | .eraseblocks = { {16384 * 1024, 1} }, |
| 10629 | .block_erase = spi_block_erase_c7, |
| 10630 | } |
| 10631 | }, |
| 10632 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10633 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10634 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10635 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10636 | .voltage = {1700, 2000}, |
| 10637 | }, |
| 10638 | |
| 10639 | { |
| 10640 | .vendor = "Micron/Numonyx/ST", |
| 10641 | .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 10642 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 10643 | .manufacture_id = ST_ID, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10644 | .model_id = ST_N25Q128__3E, |
| 10645 | .total_size = 16384, |
| 10646 | .page_size = 256, |
| 10647 | /* supports SFDP */ |
| 10648 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10649 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10650 | .tested = TEST_OK_PREW, |
| 10651 | .probe = probe_spi_rdid, |
| 10652 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 10653 | .block_erasers = |
| 10654 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10655 | { |
| 10656 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 10657 | .block_erase = spi_block_erase_20, |
| 10658 | }, { |
| 10659 | .eraseblocks = { {64 * 1024, 256} }, |
| 10660 | .block_erase = spi_block_erase_d8, |
| 10661 | }, { |
| 10662 | .eraseblocks = { {16384 * 1024, 1} }, |
| 10663 | .block_erase = spi_block_erase_c7, |
| 10664 | } |
| 10665 | }, |
| 10666 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10667 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10668 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10669 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10670 | .voltage = {2700, 3600}, |
| 10671 | }, |
| 10672 | |
| 10673 | { |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 10674 | .vendor = "Micron/Numonyx/ST", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 10675 | .name = "N25Q256..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 10676 | .bustype = BUS_SPI, |
| 10677 | .manufacture_id = ST_ID, |
| 10678 | .model_id = ST_N25Q256__1E, |
| 10679 | .total_size = 32768, |
| 10680 | .page_size = 256, |
| 10681 | /* supports SFDP */ |
| 10682 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10683 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 10684 | .tested = TEST_UNTESTED, |
| 10685 | .probe = probe_spi_rdid, |
| 10686 | .probe_timing = TIMING_ZERO, |
| 10687 | .block_erasers = |
| 10688 | { |
| 10689 | { |
| 10690 | .eraseblocks = { {4 * 1024, 8192} }, |
| 10691 | .block_erase = spi_block_erase_21, |
| 10692 | }, { |
| 10693 | .eraseblocks = { {4 * 1024, 8192} }, |
| 10694 | .block_erase = spi_block_erase_20, |
| 10695 | }, { |
| 10696 | .eraseblocks = { {64 * 1024, 512} }, |
| 10697 | .block_erase = spi_block_erase_dc, |
| 10698 | }, { |
| 10699 | .eraseblocks = { {64 * 1024, 512} }, |
| 10700 | .block_erase = spi_block_erase_d8, |
| 10701 | }, { |
| 10702 | .eraseblocks = { {32768 * 1024, 1} }, |
| 10703 | .block_erase = spi_block_erase_c7, |
| 10704 | } |
| 10705 | }, |
| 10706 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10707 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10708 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10709 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10710 | .voltage = {1700, 2000}, |
| 10711 | }, |
| 10712 | |
| 10713 | { |
| 10714 | .vendor = "Micron/Numonyx/ST", |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 10715 | .name = "N25Q256..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 10716 | .bustype = BUS_SPI, |
| 10717 | .manufacture_id = ST_ID, |
| 10718 | .model_id = ST_N25Q256__3E, |
| 10719 | .total_size = 32768, |
| 10720 | .page_size = 256, |
| 10721 | /* supports SFDP */ |
| 10722 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10723 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 10724 | .tested = TEST_UNTESTED, |
| 10725 | .probe = probe_spi_rdid, |
| 10726 | .probe_timing = TIMING_ZERO, |
| 10727 | .block_erasers = |
| 10728 | { |
| 10729 | { |
| 10730 | .eraseblocks = { {4 * 1024, 8192} }, |
| 10731 | .block_erase = spi_block_erase_21, |
| 10732 | }, { |
| 10733 | .eraseblocks = { {4 * 1024, 8192} }, |
| 10734 | .block_erase = spi_block_erase_20, |
| 10735 | }, { |
| 10736 | .eraseblocks = { {64 * 1024, 512} }, |
| 10737 | .block_erase = spi_block_erase_dc, |
| 10738 | }, { |
| 10739 | .eraseblocks = { {64 * 1024, 512} }, |
| 10740 | .block_erase = spi_block_erase_d8, |
| 10741 | }, { |
| 10742 | .eraseblocks = { {32768 * 1024, 1} }, |
| 10743 | .block_erase = spi_block_erase_c7, |
| 10744 | } |
| 10745 | }, |
| 10746 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10747 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10748 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10749 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10750 | .voltage = {2700, 3600}, |
| 10751 | }, |
| 10752 | |
| 10753 | { |
| 10754 | .vendor = "Micron/Numonyx/ST", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 10755 | .name = "N25Q512..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */ |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 10756 | .bustype = BUS_SPI, |
| 10757 | .manufacture_id = ST_ID, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 10758 | .model_id = ST_N25Q512__1G, |
| 10759 | .total_size = 65536, |
| 10760 | .page_size = 256, |
| 10761 | /* supports SFDP */ |
| 10762 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10763 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 10764 | .tested = TEST_UNTESTED, |
| 10765 | .probe = probe_spi_rdid, |
| 10766 | .probe_timing = TIMING_ZERO, |
| 10767 | .block_erasers = |
| 10768 | { |
| 10769 | { |
| 10770 | .eraseblocks = { {4 * 1024, 16384} }, |
| 10771 | .block_erase = spi_block_erase_21, |
| 10772 | }, { |
| 10773 | .eraseblocks = { {4 * 1024, 16384} }, |
| 10774 | .block_erase = spi_block_erase_20, |
| 10775 | }, { |
| 10776 | .eraseblocks = { {64 * 1024, 1024} }, |
| 10777 | .block_erase = spi_block_erase_dc, |
| 10778 | }, { |
| 10779 | .eraseblocks = { {64 * 1024, 1024} }, |
| 10780 | .block_erase = spi_block_erase_d8, |
| 10781 | }, { |
| 10782 | .eraseblocks = { {32768 * 1024, 2} }, |
| 10783 | .block_erase = spi_block_erase_c4, |
| 10784 | } |
| 10785 | }, |
| 10786 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10787 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10788 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10789 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10790 | .voltage = {1700, 2000}, |
| 10791 | }, |
| 10792 | |
| 10793 | { |
| 10794 | .vendor = "Micron/Numonyx/ST", |
| 10795 | .name = "N25Q512..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */ |
| 10796 | .bustype = BUS_SPI, |
| 10797 | .manufacture_id = ST_ID, |
| 10798 | .model_id = ST_N25Q512__3G, |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 10799 | .total_size = 65536, |
| 10800 | .page_size = 256, |
| 10801 | /* supports SFDP */ |
| 10802 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10803 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 10804 | .tested = TEST_OK_PREW, |
| 10805 | .probe = probe_spi_rdid, |
| 10806 | .probe_timing = TIMING_ZERO, |
| 10807 | .block_erasers = |
| 10808 | { |
| 10809 | { |
| 10810 | .eraseblocks = { {4 * 1024, 16384} }, |
| 10811 | .block_erase = spi_block_erase_21, |
| 10812 | }, { |
| 10813 | .eraseblocks = { {4 * 1024, 16384} }, |
| 10814 | .block_erase = spi_block_erase_20, |
| 10815 | }, { |
| 10816 | .eraseblocks = { {64 * 1024, 1024} }, |
| 10817 | .block_erase = spi_block_erase_dc, |
| 10818 | }, { |
| 10819 | .eraseblocks = { {64 * 1024, 1024} }, |
| 10820 | .block_erase = spi_block_erase_d8, |
| 10821 | }, { |
Jacob Creedon | e8e7b0e | 2019-07-22 12:21:22 -0700 | [diff] [blame] | 10822 | .eraseblocks = { {32768 * 1024, 2} }, |
| 10823 | .block_erase = spi_block_erase_c4, |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 10824 | } |
| 10825 | }, |
| 10826 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10827 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10828 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10829 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10830 | .voltage = {2700, 3600}, |
| 10831 | }, |
| 10832 | |
| 10833 | { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 10834 | .vendor = "Micron", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 10835 | .name = "MT25QL01G", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
| 10836 | .bustype = BUS_SPI, |
| 10837 | .manufacture_id = ST_ID, |
| 10838 | .model_id = ST_N25Q00A__3G, |
| 10839 | .total_size = 131072, |
| 10840 | .page_size = 256, |
| 10841 | /* supports SFDP */ |
| 10842 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10843 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 10844 | .tested = TEST_OK_PREW, |
| 10845 | .probe = probe_spi_rdid, |
| 10846 | .probe_timing = TIMING_ZERO, |
| 10847 | .block_erasers = |
| 10848 | { |
| 10849 | { |
| 10850 | .eraseblocks = { {4 * 1024, 32768} }, |
| 10851 | .block_erase = spi_block_erase_21, |
| 10852 | }, { |
| 10853 | .eraseblocks = { {4 * 1024, 32768} }, |
| 10854 | .block_erase = spi_block_erase_20, |
| 10855 | }, { |
| 10856 | .eraseblocks = { {32 * 1024, 4096} }, |
| 10857 | .block_erase = spi_block_erase_5c, |
| 10858 | }, { |
| 10859 | .eraseblocks = { {32 * 1024, 4096} }, |
| 10860 | .block_erase = spi_block_erase_52, |
| 10861 | }, { |
| 10862 | .eraseblocks = { {64 * 1024, 2048} }, |
| 10863 | .block_erase = spi_block_erase_dc, |
| 10864 | }, { |
| 10865 | .eraseblocks = { {64 * 1024, 2048} }, |
| 10866 | .block_erase = spi_block_erase_d8, |
| 10867 | }, { |
| 10868 | .eraseblocks = { {65536 * 1024, 2} }, |
| 10869 | .block_erase = spi_block_erase_c4, |
| 10870 | } |
| 10871 | }, |
| 10872 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10873 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10874 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10875 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10876 | .voltage = {2700, 3600}, |
| 10877 | }, |
| 10878 | |
| 10879 | { |
| 10880 | .vendor = "Micron", |
| 10881 | .name = "MT25QU01G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 10882 | .bustype = BUS_SPI, |
| 10883 | .manufacture_id = ST_ID, |
| 10884 | .model_id = ST_N25Q00A__1G, |
| 10885 | .total_size = 131072, |
| 10886 | .page_size = 256, |
| 10887 | /* supports SFDP */ |
| 10888 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10889 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 10890 | .tested = TEST_UNTESTED, |
| 10891 | .probe = probe_spi_rdid, |
| 10892 | .probe_timing = TIMING_ZERO, |
| 10893 | .block_erasers = |
| 10894 | { |
| 10895 | { |
| 10896 | .eraseblocks = { {4 * 1024, 32768} }, |
| 10897 | .block_erase = spi_block_erase_21, |
| 10898 | }, { |
| 10899 | .eraseblocks = { {4 * 1024, 32768} }, |
| 10900 | .block_erase = spi_block_erase_20, |
| 10901 | }, { |
| 10902 | .eraseblocks = { {32 * 1024, 4096} }, |
| 10903 | .block_erase = spi_block_erase_5c, |
| 10904 | }, { |
| 10905 | .eraseblocks = { {32 * 1024, 4096} }, |
| 10906 | .block_erase = spi_block_erase_52, |
| 10907 | }, { |
| 10908 | .eraseblocks = { {64 * 1024, 2048} }, |
| 10909 | .block_erase = spi_block_erase_dc, |
| 10910 | }, { |
| 10911 | .eraseblocks = { {64 * 1024, 2048} }, |
| 10912 | .block_erase = spi_block_erase_d8, |
| 10913 | }, { |
| 10914 | .eraseblocks = { {65536 * 1024, 2} }, |
| 10915 | .block_erase = spi_block_erase_c4, |
| 10916 | } |
| 10917 | }, |
| 10918 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10919 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10920 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10921 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10922 | .voltage = {1700, 2000}, |
| 10923 | }, |
| 10924 | |
| 10925 | { |
| 10926 | .vendor = "Micron", |
| 10927 | .name = "MT25QL02G", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
| 10928 | .bustype = BUS_SPI, |
| 10929 | .manufacture_id = ST_ID, |
| 10930 | .model_id = ST_MT25QL02G, |
| 10931 | .total_size = 262144, |
| 10932 | .page_size = 256, |
| 10933 | /* supports SFDP */ |
| 10934 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10935 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 10936 | .tested = TEST_UNTESTED, |
| 10937 | .probe = probe_spi_rdid, |
| 10938 | .probe_timing = TIMING_ZERO, |
| 10939 | .block_erasers = |
| 10940 | { |
| 10941 | { |
| 10942 | .eraseblocks = { {4 * 1024, 65536} }, |
| 10943 | .block_erase = spi_block_erase_21, |
| 10944 | }, { |
| 10945 | .eraseblocks = { {4 * 1024, 65536} }, |
| 10946 | .block_erase = spi_block_erase_20, |
| 10947 | }, { |
| 10948 | .eraseblocks = { {32 * 1024, 8192} }, |
| 10949 | .block_erase = spi_block_erase_5c, |
| 10950 | }, { |
| 10951 | .eraseblocks = { {32 * 1024, 8192} }, |
| 10952 | .block_erase = spi_block_erase_52, |
| 10953 | }, { |
| 10954 | .eraseblocks = { {64 * 1024, 4096} }, |
| 10955 | .block_erase = spi_block_erase_dc, |
| 10956 | }, { |
| 10957 | .eraseblocks = { {64 * 1024, 4096} }, |
| 10958 | .block_erase = spi_block_erase_d8, |
| 10959 | }, { |
| 10960 | .eraseblocks = { {65536 * 1024, 4} }, |
| 10961 | .block_erase = spi_block_erase_c4, |
| 10962 | } |
| 10963 | }, |
| 10964 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 10965 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 10966 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10967 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10968 | .voltage = {2700, 3600}, |
| 10969 | }, |
| 10970 | |
| 10971 | { |
| 10972 | .vendor = "Micron", |
| 10973 | .name = "MT25QU02G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 10974 | .bustype = BUS_SPI, |
| 10975 | .manufacture_id = ST_ID, |
| 10976 | .model_id = ST_MT25QU02G, |
| 10977 | .total_size = 262144, |
| 10978 | .page_size = 256, |
| 10979 | /* supports SFDP */ |
| 10980 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10981 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 10982 | .tested = TEST_UNTESTED, |
| 10983 | .probe = probe_spi_rdid, |
| 10984 | .probe_timing = TIMING_ZERO, |
| 10985 | .block_erasers = |
| 10986 | { |
| 10987 | { |
| 10988 | .eraseblocks = { {4 * 1024, 65536} }, |
| 10989 | .block_erase = spi_block_erase_21, |
| 10990 | }, { |
| 10991 | .eraseblocks = { {4 * 1024, 65536} }, |
| 10992 | .block_erase = spi_block_erase_20, |
| 10993 | }, { |
| 10994 | .eraseblocks = { {32 * 1024, 8192} }, |
| 10995 | .block_erase = spi_block_erase_5c, |
| 10996 | }, { |
| 10997 | .eraseblocks = { {32 * 1024, 8192} }, |
| 10998 | .block_erase = spi_block_erase_52, |
| 10999 | }, { |
| 11000 | .eraseblocks = { {64 * 1024, 4096} }, |
| 11001 | .block_erase = spi_block_erase_dc, |
| 11002 | }, { |
| 11003 | .eraseblocks = { {64 * 1024, 4096} }, |
| 11004 | .block_erase = spi_block_erase_d8, |
| 11005 | }, { |
| 11006 | .eraseblocks = { {65536 * 1024, 4} }, |
| 11007 | .block_erase = spi_block_erase_c4, |
| 11008 | } |
| 11009 | }, |
| 11010 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11011 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11012 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11013 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11014 | .voltage = {1700, 2000}, |
| 11015 | }, |
| 11016 | |
| 11017 | { |
| 11018 | .vendor = "Micron", |
| 11019 | .name = "MT25QU128", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11020 | .bustype = BUS_SPI, |
| 11021 | .manufacture_id = ST_ID, |
| 11022 | .model_id = ST_N25Q128__1E, |
| 11023 | .total_size = 16384, |
| 11024 | .page_size = 256, |
| 11025 | /* supports SFDP */ |
| 11026 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11027 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11028 | .tested = TEST_UNTESTED, |
| 11029 | .probe = probe_spi_rdid, |
| 11030 | .probe_timing = TIMING_ZERO, |
| 11031 | .block_erasers = |
| 11032 | { |
| 11033 | { |
| 11034 | .eraseblocks = { {4 * 1024, 4096} }, |
| 11035 | .block_erase = spi_block_erase_20, |
| 11036 | }, { |
| 11037 | .eraseblocks = { {32 * 1024, 512} }, |
| 11038 | .block_erase = spi_block_erase_52, |
| 11039 | }, { |
| 11040 | .eraseblocks = { {64 * 1024, 256} }, |
| 11041 | .block_erase = spi_block_erase_d8, |
| 11042 | }, { |
| 11043 | .eraseblocks = { {16384 * 1024, 1} }, |
| 11044 | .block_erase = spi_block_erase_c7, |
| 11045 | }, { |
| 11046 | .eraseblocks = { {16384 * 1024, 1} }, |
| 11047 | .block_erase = spi_block_erase_60, |
| 11048 | } |
| 11049 | }, |
| 11050 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11051 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11052 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11053 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11054 | .voltage = {1700, 2000}, |
| 11055 | }, |
| 11056 | |
| 11057 | { |
| 11058 | .vendor = "Micron", |
| 11059 | .name = "MT25QL128", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
| 11060 | .bustype = BUS_SPI, |
| 11061 | .manufacture_id = ST_ID, |
| 11062 | .model_id = ST_N25Q128__3E, |
| 11063 | .total_size = 16384, |
| 11064 | .page_size = 256, |
| 11065 | /* supports SFDP */ |
| 11066 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11067 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11068 | .tested = TEST_UNTESTED, |
| 11069 | .probe = probe_spi_rdid, |
| 11070 | .probe_timing = TIMING_ZERO, |
| 11071 | .block_erasers = |
| 11072 | { |
| 11073 | { |
| 11074 | .eraseblocks = { {4 * 1024, 4096} }, |
| 11075 | .block_erase = spi_block_erase_20, |
| 11076 | }, { |
| 11077 | .eraseblocks = { {32 * 1024, 512} }, |
| 11078 | .block_erase = spi_block_erase_52, |
| 11079 | }, { |
| 11080 | .eraseblocks = { {64 * 1024, 256} }, |
| 11081 | .block_erase = spi_block_erase_d8, |
| 11082 | }, { |
| 11083 | .eraseblocks = { {16384 * 1024, 1} }, |
| 11084 | .block_erase = spi_block_erase_c7, |
| 11085 | }, { |
| 11086 | .eraseblocks = { {16384 * 1024, 1} }, |
| 11087 | .block_erase = spi_block_erase_60, |
| 11088 | } |
| 11089 | }, |
| 11090 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11091 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11092 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11093 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11094 | .voltage = {2700, 3600}, |
| 11095 | }, |
| 11096 | |
| 11097 | { |
| 11098 | .vendor = "Micron", |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 11099 | .name = "MT25QL256", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11100 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 11101 | .manufacture_id = ST_ID, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11102 | .model_id = ST_N25Q256__3E, |
| 11103 | .total_size = 32768, |
| 11104 | .page_size = 256, |
| 11105 | /* supports SFDP */ |
| 11106 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 11107 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11108 | .tested = TEST_UNTESTED, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11109 | .probe = probe_spi_rdid, |
| 11110 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 11111 | .block_erasers = |
| 11112 | { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11113 | { |
| 11114 | .eraseblocks = { {4 * 1024, 8192} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 11115 | .block_erase = spi_block_erase_21, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11116 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 11117 | .eraseblocks = { {4 * 1024, 8192} }, |
| 11118 | .block_erase = spi_block_erase_20, |
| 11119 | }, { |
Jacob Creedon | 045b97e | 2019-07-22 12:26:56 -0700 | [diff] [blame] | 11120 | .eraseblocks = { {32 * 1024, 1024} }, |
| 11121 | .block_erase = spi_block_erase_5c, |
| 11122 | }, { |
| 11123 | .eraseblocks = { {32 * 1024, 1024} }, |
| 11124 | .block_erase = spi_block_erase_52, |
| 11125 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11126 | .eraseblocks = { {64 * 1024, 512} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 11127 | .block_erase = spi_block_erase_dc, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11128 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 11129 | .eraseblocks = { {64 * 1024, 512} }, |
| 11130 | .block_erase = spi_block_erase_d8, |
| 11131 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11132 | .eraseblocks = { {32768 * 1024, 1} }, |
| 11133 | .block_erase = spi_block_erase_c7, |
Jacob Creedon | 045b97e | 2019-07-22 12:26:56 -0700 | [diff] [blame] | 11134 | }, { |
| 11135 | .eraseblocks = { {32768 * 1024, 1} }, |
| 11136 | .block_erase = spi_block_erase_60, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11137 | } |
| 11138 | }, |
| 11139 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11140 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11141 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11142 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11143 | .voltage = {2700, 3600}, |
| 11144 | }, |
| 11145 | |
| 11146 | { |
| 11147 | .vendor = "Micron", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11148 | .name = "MT25QU256", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11149 | .bustype = BUS_SPI, |
| 11150 | .manufacture_id = ST_ID, |
| 11151 | .model_id = ST_N25Q256__1E, |
| 11152 | .total_size = 32768, |
| 11153 | .page_size = 256, |
| 11154 | /* supports SFDP */ |
| 11155 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11156 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11157 | .tested = TEST_UNTESTED, |
| 11158 | .probe = probe_spi_rdid, |
| 11159 | .probe_timing = TIMING_ZERO, |
| 11160 | .block_erasers = |
| 11161 | { |
| 11162 | { |
| 11163 | .eraseblocks = { {4 * 1024, 8192} }, |
| 11164 | .block_erase = spi_block_erase_21, |
| 11165 | }, { |
| 11166 | .eraseblocks = { {4 * 1024, 8192} }, |
| 11167 | .block_erase = spi_block_erase_20, |
| 11168 | }, { |
| 11169 | .eraseblocks = { {32 * 1024, 1024} }, |
| 11170 | .block_erase = spi_block_erase_5c, |
| 11171 | }, { |
| 11172 | .eraseblocks = { {32 * 1024, 1024} }, |
| 11173 | .block_erase = spi_block_erase_52, |
| 11174 | }, { |
| 11175 | .eraseblocks = { {64 * 1024, 512} }, |
| 11176 | .block_erase = spi_block_erase_dc, |
| 11177 | }, { |
| 11178 | .eraseblocks = { {64 * 1024, 512} }, |
| 11179 | .block_erase = spi_block_erase_d8, |
| 11180 | }, { |
| 11181 | .eraseblocks = { {32768 * 1024, 1} }, |
| 11182 | .block_erase = spi_block_erase_c7, |
| 11183 | }, { |
| 11184 | .eraseblocks = { {32768 * 1024, 1} }, |
| 11185 | .block_erase = spi_block_erase_60, |
| 11186 | } |
| 11187 | }, |
| 11188 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11189 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11190 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11191 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11192 | .voltage = {1700, 2000}, |
| 11193 | }, |
| 11194 | |
| 11195 | { |
| 11196 | .vendor = "Micron", |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 11197 | .name = "MT25QL512", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11198 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 11199 | .manufacture_id = ST_ID, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11200 | .model_id = ST_N25Q512__3G, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11201 | .total_size = 65536, |
| 11202 | .page_size = 256, |
| 11203 | /* supports SFDP */ |
| 11204 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 11205 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
Angel Pons | 3ed5a35 | 2018-09-30 16:31:09 +0200 | [diff] [blame] | 11206 | .tested = TEST_OK_PREW, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11207 | .probe = probe_spi_rdid, |
| 11208 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 11209 | .block_erasers = |
| 11210 | { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11211 | { |
| 11212 | .eraseblocks = { {4 * 1024, 16384} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 11213 | .block_erase = spi_block_erase_21, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11214 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 11215 | .eraseblocks = { {4 * 1024, 16384} }, |
| 11216 | .block_erase = spi_block_erase_20, |
| 11217 | }, { |
Jacob Creedon | 045b97e | 2019-07-22 12:26:56 -0700 | [diff] [blame] | 11218 | .eraseblocks = { {32 * 1024, 2048} }, |
| 11219 | .block_erase = spi_block_erase_5c, |
| 11220 | }, { |
| 11221 | .eraseblocks = { {32 * 1024, 2048} }, |
| 11222 | .block_erase = spi_block_erase_52, |
| 11223 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11224 | .eraseblocks = { {64 * 1024, 1024} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 11225 | .block_erase = spi_block_erase_dc, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11226 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 11227 | .eraseblocks = { {64 * 1024, 1024} }, |
| 11228 | .block_erase = spi_block_erase_d8, |
| 11229 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11230 | .eraseblocks = { {65536 * 1024, 1} }, |
| 11231 | .block_erase = spi_block_erase_c7, |
Jacob Creedon | 045b97e | 2019-07-22 12:26:56 -0700 | [diff] [blame] | 11232 | }, { |
| 11233 | .eraseblocks = { {65536 * 1024, 1} }, |
| 11234 | .block_erase = spi_block_erase_60, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11235 | } |
| 11236 | }, |
| 11237 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11238 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11239 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11240 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11241 | .voltage = {2700, 3600}, |
| 11242 | }, |
| 11243 | |
| 11244 | { |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11245 | .vendor = "Micron", |
| 11246 | .name = "MT25QU512", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11247 | .bustype = BUS_SPI, |
| 11248 | .manufacture_id = ST_ID, |
| 11249 | .model_id = ST_N25Q512__1G, |
| 11250 | .total_size = 65536, |
| 11251 | .page_size = 256, |
| 11252 | /* supports SFDP */ |
| 11253 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11254 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11255 | .tested = TEST_OK_PREW, |
| 11256 | .probe = probe_spi_rdid, |
| 11257 | .probe_timing = TIMING_ZERO, |
| 11258 | .block_erasers = |
| 11259 | { |
| 11260 | { |
| 11261 | .eraseblocks = { {4 * 1024, 16384} }, |
| 11262 | .block_erase = spi_block_erase_21, |
| 11263 | }, { |
| 11264 | .eraseblocks = { {4 * 1024, 16384} }, |
| 11265 | .block_erase = spi_block_erase_20, |
| 11266 | }, { |
| 11267 | .eraseblocks = { {32 * 1024, 2048} }, |
| 11268 | .block_erase = spi_block_erase_5c, |
| 11269 | }, { |
| 11270 | .eraseblocks = { {32 * 1024, 2048} }, |
| 11271 | .block_erase = spi_block_erase_52, |
| 11272 | }, { |
| 11273 | .eraseblocks = { {64 * 1024, 1024} }, |
| 11274 | .block_erase = spi_block_erase_dc, |
| 11275 | }, { |
| 11276 | .eraseblocks = { {64 * 1024, 1024} }, |
| 11277 | .block_erase = spi_block_erase_d8, |
| 11278 | }, { |
| 11279 | .eraseblocks = { {65536 * 1024, 1} }, |
| 11280 | .block_erase = spi_block_erase_c7, |
| 11281 | }, { |
| 11282 | .eraseblocks = { {65536 * 1024, 1} }, |
| 11283 | .block_erase = spi_block_erase_60, |
| 11284 | } |
| 11285 | }, |
| 11286 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11287 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11288 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11289 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11290 | .voltage = {1700, 2000}, |
| 11291 | }, |
| 11292 | |
| 11293 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11294 | .vendor = "MoselVitelic", |
| 11295 | .name = "V29C51000B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11296 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11297 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11298 | .model_id = MVC_V29C51000B, |
| 11299 | .total_size = 64, |
| 11300 | .page_size = 512, |
| 11301 | .feature_bits = FEATURE_EITHER_RESET, |
| 11302 | .tested = TEST_UNTESTED, |
| 11303 | .probe = probe_jedec, |
| 11304 | .probe_timing = TIMING_ZERO, |
| 11305 | .block_erasers = |
| 11306 | { |
| 11307 | { |
| 11308 | .eraseblocks = { {512, 128} }, |
| 11309 | .block_erase = erase_sector_jedec, |
| 11310 | }, { |
| 11311 | .eraseblocks = { {64 * 1024, 1} }, |
| 11312 | .block_erase = erase_chip_block_jedec, |
| 11313 | }, |
| 11314 | }, |
| 11315 | .write = write_jedec_1, |
| 11316 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11317 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11318 | }, |
| 11319 | |
| 11320 | { |
| 11321 | .vendor = "MoselVitelic", |
| 11322 | .name = "V29C51000T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11323 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11324 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11325 | .model_id = MVC_V29C51000T, |
| 11326 | .total_size = 64, |
| 11327 | .page_size = 512, |
| 11328 | .feature_bits = FEATURE_EITHER_RESET, |
| 11329 | .tested = TEST_UNTESTED, |
| 11330 | .probe = probe_jedec, |
| 11331 | .probe_timing = TIMING_ZERO, |
| 11332 | .block_erasers = |
| 11333 | { |
| 11334 | { |
| 11335 | .eraseblocks = { {512, 128} }, |
| 11336 | .block_erase = erase_sector_jedec, |
| 11337 | }, { |
| 11338 | .eraseblocks = { {64 * 1024, 1} }, |
| 11339 | .block_erase = erase_chip_block_jedec, |
| 11340 | }, |
| 11341 | }, |
| 11342 | .write = write_jedec_1, |
| 11343 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11344 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11345 | }, |
| 11346 | |
| 11347 | { |
| 11348 | .vendor = "MoselVitelic", |
| 11349 | .name = "V29C51400B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11350 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11351 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11352 | .model_id = MVC_V29C51400B, |
| 11353 | .total_size = 512, |
| 11354 | .page_size = 1024, |
| 11355 | .feature_bits = FEATURE_EITHER_RESET, |
| 11356 | .tested = TEST_UNTESTED, |
| 11357 | .probe = probe_jedec, |
| 11358 | .probe_timing = TIMING_ZERO, |
| 11359 | .block_erasers = |
| 11360 | { |
| 11361 | { |
| 11362 | .eraseblocks = { {1024, 512} }, |
| 11363 | .block_erase = erase_sector_jedec, |
| 11364 | }, { |
| 11365 | .eraseblocks = { {512 * 1024, 1} }, |
| 11366 | .block_erase = erase_chip_block_jedec, |
| 11367 | }, |
| 11368 | }, |
| 11369 | .write = write_jedec_1, |
| 11370 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11371 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11372 | }, |
| 11373 | |
| 11374 | { |
| 11375 | .vendor = "MoselVitelic", |
| 11376 | .name = "V29C51400T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11377 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11378 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11379 | .model_id = MVC_V29C51400T, |
| 11380 | .total_size = 512, |
| 11381 | .page_size = 1024, |
| 11382 | .feature_bits = FEATURE_EITHER_RESET, |
| 11383 | .tested = TEST_UNTESTED, |
| 11384 | .probe = probe_jedec, |
| 11385 | .probe_timing = TIMING_ZERO, |
| 11386 | .block_erasers = |
| 11387 | { |
| 11388 | { |
| 11389 | .eraseblocks = { {1024, 512} }, |
| 11390 | .block_erase = erase_sector_jedec, |
| 11391 | }, { |
| 11392 | .eraseblocks = { {512 * 1024, 1} }, |
| 11393 | .block_erase = erase_chip_block_jedec, |
| 11394 | }, |
| 11395 | }, |
| 11396 | .write = write_jedec_1, |
| 11397 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11398 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11399 | }, |
| 11400 | |
| 11401 | { |
| 11402 | .vendor = "MoselVitelic", |
| 11403 | .name = "V29LC51000", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11404 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11405 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11406 | .model_id = MVC_V29LC51000, |
| 11407 | .total_size = 64, |
| 11408 | .page_size = 512, |
| 11409 | .feature_bits = FEATURE_EITHER_RESET, |
| 11410 | .tested = TEST_UNTESTED, |
| 11411 | .probe = probe_jedec, |
| 11412 | .probe_timing = TIMING_ZERO, |
| 11413 | .block_erasers = |
| 11414 | { |
| 11415 | { |
| 11416 | .eraseblocks = { {512, 128} }, |
| 11417 | .block_erase = erase_sector_jedec, |
| 11418 | }, { |
| 11419 | .eraseblocks = { {64 * 1024, 1} }, |
| 11420 | .block_erase = erase_chip_block_jedec, |
| 11421 | }, |
| 11422 | }, |
| 11423 | .write = write_jedec_1, |
| 11424 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11425 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11426 | }, |
| 11427 | |
| 11428 | { |
| 11429 | .vendor = "MoselVitelic", |
| 11430 | .name = "V29LC51001", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11431 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11432 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11433 | .model_id = MVC_V29LC51001, |
| 11434 | .total_size = 128, |
| 11435 | .page_size = 512, |
| 11436 | .feature_bits = FEATURE_EITHER_RESET, |
| 11437 | .tested = TEST_UNTESTED, |
| 11438 | .probe = probe_jedec, |
| 11439 | .probe_timing = TIMING_ZERO, |
| 11440 | .block_erasers = |
| 11441 | { |
| 11442 | { |
| 11443 | .eraseblocks = { {512, 256} }, |
| 11444 | .block_erase = erase_sector_jedec, |
| 11445 | }, { |
| 11446 | .eraseblocks = { {128 * 1024, 1} }, |
| 11447 | .block_erase = erase_chip_block_jedec, |
| 11448 | }, |
| 11449 | }, |
| 11450 | .write = write_jedec_1, |
| 11451 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11452 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11453 | }, |
| 11454 | |
| 11455 | { |
| 11456 | .vendor = "MoselVitelic", |
| 11457 | .name = "V29LC51002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11458 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11459 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11460 | .model_id = MVC_V29LC51002, |
| 11461 | .total_size = 256, |
| 11462 | .page_size = 512, |
| 11463 | .feature_bits = FEATURE_EITHER_RESET, |
| 11464 | .tested = TEST_UNTESTED, |
| 11465 | .probe = probe_jedec, |
| 11466 | .probe_timing = TIMING_ZERO, |
| 11467 | .block_erasers = |
| 11468 | { |
| 11469 | { |
| 11470 | .eraseblocks = { {512, 512} }, |
| 11471 | .block_erase = erase_sector_jedec, |
| 11472 | }, { |
| 11473 | .eraseblocks = { {256 * 1024, 1} }, |
| 11474 | .block_erase = erase_chip_block_jedec, |
| 11475 | }, |
| 11476 | }, |
| 11477 | .write = write_jedec_1, |
| 11478 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11479 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11480 | }, |
| 11481 | |
| 11482 | { |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 11483 | .vendor = "Nantronics", |
| 11484 | .name = "N25S10", |
| 11485 | .bustype = BUS_SPI, |
| 11486 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 11487 | .model_id = NANTRONICS_N25S10, |
| 11488 | .total_size = 128, |
| 11489 | .page_size = 256, |
| 11490 | .feature_bits = FEATURE_WRSR_WREN, |
| 11491 | .tested = TEST_UNTESTED, |
| 11492 | .probe = probe_spi_rdid, |
| 11493 | .probe_timing = TIMING_ZERO, |
| 11494 | .block_erasers = |
| 11495 | { |
| 11496 | { |
| 11497 | .eraseblocks = { {4 * 1024, 32} }, |
| 11498 | .block_erase = spi_block_erase_20, |
| 11499 | }, { |
| 11500 | .eraseblocks = { {4 * 1024, 32} }, |
| 11501 | .block_erase = spi_block_erase_d7, |
| 11502 | }, { |
| 11503 | .eraseblocks = { {32 * 1024, 4} }, |
| 11504 | .block_erase = spi_block_erase_52, |
| 11505 | }, { |
| 11506 | .eraseblocks = { {64 * 1024, 2} }, |
| 11507 | .block_erase = spi_block_erase_d8, |
| 11508 | }, { |
| 11509 | .eraseblocks = { {128 * 1024, 1} }, |
| 11510 | .block_erase = spi_block_erase_60, |
| 11511 | }, { |
| 11512 | .eraseblocks = { {128 * 1024, 1} }, |
| 11513 | .block_erase = spi_block_erase_c7, |
| 11514 | } |
| 11515 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11516 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 11517 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11518 | .write = spi_chip_write_256, |
| 11519 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 11520 | .voltage = {2700, 3600}, |
| 11521 | }, |
| 11522 | |
| 11523 | { |
| 11524 | .vendor = "Nantronics", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11525 | .name = "N25S16", |
| 11526 | .bustype = BUS_SPI, |
| 11527 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 11528 | .model_id = NANTRONICS_N25S16, |
| 11529 | .total_size = 2048, |
| 11530 | .page_size = 256, |
| 11531 | .feature_bits = FEATURE_WRSR_WREN, |
| 11532 | .tested = TEST_UNTESTED, |
| 11533 | .probe = probe_spi_rdid, |
| 11534 | .probe_timing = TIMING_ZERO, |
| 11535 | .block_erasers = |
| 11536 | { |
| 11537 | { |
| 11538 | .eraseblocks = { {4 * 1024, 512} }, |
| 11539 | .block_erase = spi_block_erase_20, |
| 11540 | }, { |
| 11541 | .eraseblocks = { {64 * 1024, 32} }, |
| 11542 | .block_erase = spi_block_erase_d8, |
| 11543 | }, { |
| 11544 | .eraseblocks = { {2048 * 1024, 1} }, |
| 11545 | .block_erase = spi_block_erase_60, |
| 11546 | }, { |
| 11547 | .eraseblocks = { {2048 * 1024, 1} }, |
| 11548 | .block_erase = spi_block_erase_c7, |
| 11549 | } |
| 11550 | }, |
| 11551 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 11552 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11553 | .write = spi_chip_write_256, |
| 11554 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 11555 | .voltage = {2700, 3600}, |
| 11556 | }, |
| 11557 | |
| 11558 | { |
| 11559 | .vendor = "Nantronics", |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 11560 | .name = "N25S20", |
| 11561 | .bustype = BUS_SPI, |
| 11562 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 11563 | .model_id = NANTRONICS_N25S20, |
| 11564 | .total_size = 256, |
| 11565 | .page_size = 256, |
| 11566 | .feature_bits = FEATURE_WRSR_WREN, |
| 11567 | .tested = TEST_UNTESTED, |
| 11568 | .probe = probe_spi_rdid, |
| 11569 | .probe_timing = TIMING_ZERO, |
| 11570 | .block_erasers = |
| 11571 | { |
| 11572 | { |
| 11573 | .eraseblocks = { {4 * 1024, 64} }, |
| 11574 | .block_erase = spi_block_erase_20, |
| 11575 | }, { |
| 11576 | .eraseblocks = { {4 * 1024, 64} }, |
| 11577 | .block_erase = spi_block_erase_d7, |
| 11578 | }, { |
| 11579 | .eraseblocks = { {32 * 1024, 8} }, |
| 11580 | .block_erase = spi_block_erase_52, |
| 11581 | }, { |
| 11582 | .eraseblocks = { {64 * 1024, 4} }, |
| 11583 | .block_erase = spi_block_erase_d8, |
| 11584 | }, { |
| 11585 | .eraseblocks = { {256 * 1024, 1} }, |
| 11586 | .block_erase = spi_block_erase_60, |
| 11587 | }, { |
| 11588 | .eraseblocks = { {256 * 1024, 1} }, |
| 11589 | .block_erase = spi_block_erase_c7, |
| 11590 | } |
| 11591 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11592 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 11593 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11594 | .write = spi_chip_write_256, |
| 11595 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 11596 | .voltage = {2700, 3600}, |
| 11597 | }, |
| 11598 | |
| 11599 | { |
| 11600 | .vendor = "Nantronics", |
| 11601 | .name = "N25S40", |
| 11602 | .bustype = BUS_SPI, |
| 11603 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 11604 | .model_id = NANTRONICS_N25S40, |
| 11605 | .total_size = 512, |
| 11606 | .page_size = 256, |
| 11607 | .feature_bits = FEATURE_WRSR_WREN, |
| 11608 | .tested = TEST_UNTESTED, |
| 11609 | .probe = probe_spi_rdid, |
| 11610 | .probe_timing = TIMING_ZERO, |
| 11611 | .block_erasers = |
| 11612 | { |
| 11613 | { |
| 11614 | .eraseblocks = { {4 * 1024, 128} }, |
| 11615 | .block_erase = spi_block_erase_20, |
| 11616 | }, { |
| 11617 | .eraseblocks = { {4 * 1024, 128} }, |
| 11618 | .block_erase = spi_block_erase_d7, |
| 11619 | }, { |
| 11620 | .eraseblocks = { {32 * 1024, 16} }, |
| 11621 | .block_erase = spi_block_erase_52, |
| 11622 | }, { |
| 11623 | .eraseblocks = { {64 * 1024, 8} }, |
| 11624 | .block_erase = spi_block_erase_d8, |
| 11625 | }, { |
| 11626 | .eraseblocks = { {512 * 1024, 1} }, |
| 11627 | .block_erase = spi_block_erase_60, |
| 11628 | }, { |
| 11629 | .eraseblocks = { {512 * 1024, 1} }, |
| 11630 | .block_erase = spi_block_erase_c7, |
| 11631 | } |
| 11632 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11633 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 11634 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11635 | .write = spi_chip_write_256, |
| 11636 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 11637 | .voltage = {2700, 3600}, |
| 11638 | }, |
| 11639 | |
| 11640 | { |
| 11641 | .vendor = "Nantronics", |
| 11642 | .name = "N25S80", |
| 11643 | .bustype = BUS_SPI, |
| 11644 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 11645 | .model_id = NANTRONICS_N25S80, |
| 11646 | .total_size = 1024, |
| 11647 | .page_size = 256, |
| 11648 | .feature_bits = FEATURE_WRSR_WREN, |
| 11649 | .tested = TEST_UNTESTED, |
| 11650 | .probe = probe_spi_rdid, |
| 11651 | .probe_timing = TIMING_ZERO, |
| 11652 | .block_erasers = |
| 11653 | { |
| 11654 | { |
| 11655 | .eraseblocks = { {4 * 1024, 256} }, |
| 11656 | .block_erase = spi_block_erase_20, |
| 11657 | }, { |
| 11658 | .eraseblocks = { {32 * 1024, 32} }, |
| 11659 | .block_erase = spi_block_erase_52, |
| 11660 | }, { |
| 11661 | .eraseblocks = { {64 * 1024, 16} }, |
| 11662 | .block_erase = spi_block_erase_d8, |
| 11663 | }, { |
| 11664 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11665 | .block_erase = spi_block_erase_60, |
| 11666 | }, { |
| 11667 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11668 | .block_erase = spi_block_erase_c7, |
| 11669 | } |
| 11670 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11671 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 11672 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11673 | .write = spi_chip_write_256, |
| 11674 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 11675 | .voltage = {2700, 3600}, |
| 11676 | }, |
| 11677 | |
| 11678 | { |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 11679 | .vendor = "PMC", |
| 11680 | .name = "Pm25LD010(C)", |
| 11681 | .bustype = BUS_SPI, |
| 11682 | .manufacture_id = PMC_ID, |
| 11683 | .model_id = PMC_PM25LD010, |
| 11684 | .total_size = 128, |
| 11685 | .page_size = 256, |
| 11686 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 11687 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 11688 | .probe = probe_spi_rdid, |
| 11689 | .probe_timing = TIMING_ZERO, |
| 11690 | .block_erasers = |
| 11691 | { |
| 11692 | { |
| 11693 | .eraseblocks = { {4 * 1024, 32} }, |
| 11694 | .block_erase = spi_block_erase_20, |
| 11695 | }, { |
| 11696 | .eraseblocks = { {4 * 1024, 32} }, |
| 11697 | .block_erase = spi_block_erase_d7, |
| 11698 | }, { |
| 11699 | .eraseblocks = { {32 * 1024, 4} }, |
| 11700 | .block_erase = spi_block_erase_d8, |
| 11701 | }, { |
| 11702 | .eraseblocks = { {128 * 1024, 1} }, |
| 11703 | .block_erase = spi_block_erase_60, |
| 11704 | }, { |
| 11705 | .eraseblocks = { {128 * 1024, 1} }, |
| 11706 | .block_erase = spi_block_erase_c7, |
| 11707 | } |
| 11708 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11709 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 11710 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 11711 | .write = spi_chip_write_256, |
| 11712 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 11713 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */ |
| 11714 | }, |
| 11715 | |
| 11716 | { |
| 11717 | .vendor = "PMC", |
| 11718 | .name = "Pm25LD020(C)", |
| 11719 | .bustype = BUS_SPI, |
| 11720 | .manufacture_id = PMC_ID, |
| 11721 | .model_id = PMC_PM25LD020, |
| 11722 | .total_size = 256, |
| 11723 | .page_size = 256, |
| 11724 | .feature_bits = FEATURE_WRSR_WREN, |
Angel Pons | f5822a8 | 2018-09-30 20:09:58 +0200 | [diff] [blame] | 11725 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 11726 | .probe = probe_spi_rdid, |
| 11727 | .probe_timing = TIMING_ZERO, |
| 11728 | .block_erasers = |
| 11729 | { |
| 11730 | { |
| 11731 | .eraseblocks = { {4 * 1024, 64} }, |
| 11732 | .block_erase = spi_block_erase_20, |
| 11733 | }, { |
| 11734 | .eraseblocks = { {4 * 1024, 64} }, |
| 11735 | .block_erase = spi_block_erase_d7, |
| 11736 | }, { |
| 11737 | .eraseblocks = { {64 * 1024, 4} }, |
| 11738 | .block_erase = spi_block_erase_d8, |
| 11739 | }, { |
| 11740 | .eraseblocks = { {256 * 1024, 1} }, |
| 11741 | .block_erase = spi_block_erase_60, |
| 11742 | }, { |
| 11743 | .eraseblocks = { {256 * 1024, 1} }, |
| 11744 | .block_erase = spi_block_erase_c7, |
| 11745 | } |
| 11746 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11747 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 11748 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 11749 | .write = spi_chip_write_256, |
| 11750 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 11751 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */ |
| 11752 | }, |
| 11753 | |
| 11754 | { |
| 11755 | .vendor = "PMC", |
| 11756 | .name = "Pm25LD040(C)", |
| 11757 | .bustype = BUS_SPI, |
| 11758 | .manufacture_id = PMC_ID, |
| 11759 | .model_id = PMC_PM25LV040, |
| 11760 | .total_size = 512, |
| 11761 | .page_size = 256, |
| 11762 | .feature_bits = FEATURE_WRSR_WREN, |
Angel Pons | 05127bf | 2018-09-30 20:23:24 +0200 | [diff] [blame] | 11763 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 11764 | .probe = probe_spi_rdid, |
| 11765 | .probe_timing = TIMING_ZERO, |
| 11766 | .block_erasers = |
| 11767 | { |
| 11768 | { |
| 11769 | .eraseblocks = { {4 * 1024, 128} }, |
| 11770 | .block_erase = spi_block_erase_20, |
| 11771 | }, { |
| 11772 | .eraseblocks = { {4 * 1024, 128} }, |
| 11773 | .block_erase = spi_block_erase_d7, |
| 11774 | }, { |
| 11775 | .eraseblocks = { {64 * 1024, 8} }, |
| 11776 | .block_erase = spi_block_erase_d8, |
| 11777 | }, { |
| 11778 | .eraseblocks = { {512 * 1024, 1} }, |
| 11779 | .block_erase = spi_block_erase_60, |
| 11780 | }, { |
| 11781 | .eraseblocks = { {512 * 1024, 1} }, |
| 11782 | .block_erase = spi_block_erase_c7, |
| 11783 | } |
| 11784 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11785 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 11786 | .unlock = spi_disable_blockprotect, |
| 11787 | .write = spi_chip_write_256, |
| 11788 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 11789 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */ |
| 11790 | }, |
| 11791 | |
Steven Honeyman | 81a8fb7 | 2015-06-02 22:32:24 +0000 | [diff] [blame] | 11792 | { |
| 11793 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11794 | .name = "Pm25LD256C", |
| 11795 | .bustype = BUS_SPI, |
| 11796 | .manufacture_id = PMC_ID, |
| 11797 | .model_id = PMC_PM25LD256C, |
| 11798 | .total_size = 32, |
| 11799 | .page_size = 256, |
| 11800 | .feature_bits = FEATURE_WRSR_WREN, |
| 11801 | .tested = TEST_UNTESTED, |
| 11802 | .probe = probe_spi_rdid, |
| 11803 | .probe_timing = TIMING_ZERO, |
| 11804 | .block_erasers = |
| 11805 | { |
| 11806 | { |
| 11807 | .eraseblocks = { {4 * 1024, 8} }, |
| 11808 | .block_erase = spi_block_erase_20, |
| 11809 | }, { |
| 11810 | .eraseblocks = { {4 * 1024, 8} }, |
| 11811 | .block_erase = spi_block_erase_d7, |
| 11812 | }, { |
| 11813 | .eraseblocks = { {32 * 1024, 1} }, |
| 11814 | .block_erase = spi_block_erase_d8, |
| 11815 | }, { |
| 11816 | .eraseblocks = { {32 * 1024, 1} }, |
| 11817 | .block_erase = spi_block_erase_60, |
| 11818 | }, { |
| 11819 | .eraseblocks = { {32 * 1024, 1} }, |
| 11820 | .block_erase = spi_block_erase_c7, |
| 11821 | } |
| 11822 | }, |
| 11823 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 11824 | .unlock = spi_disable_blockprotect, |
| 11825 | .write = spi_chip_write_256, |
| 11826 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 11827 | .voltage = {2700, 3600}, |
| 11828 | }, |
| 11829 | |
| 11830 | { |
| 11831 | .vendor = "PMC", |
| 11832 | .name = "Pm25LD512(C)", |
| 11833 | .bustype = BUS_SPI, |
| 11834 | .manufacture_id = PMC_ID, |
| 11835 | .model_id = PMC_PM25LD512, |
| 11836 | .total_size = 64, |
| 11837 | .page_size = 256, |
| 11838 | .feature_bits = FEATURE_WRSR_WREN, |
| 11839 | .tested = TEST_OK_PREW, |
| 11840 | .probe = probe_spi_rdid, |
| 11841 | .probe_timing = TIMING_ZERO, |
| 11842 | .block_erasers = |
| 11843 | { |
| 11844 | { |
| 11845 | .eraseblocks = { {4 * 1024, 16} }, |
| 11846 | .block_erase = spi_block_erase_20, |
| 11847 | }, { |
| 11848 | .eraseblocks = { {4 * 1024, 16} }, |
| 11849 | .block_erase = spi_block_erase_d7, |
| 11850 | }, { |
| 11851 | .eraseblocks = { {32 * 1024, 2} }, |
| 11852 | .block_erase = spi_block_erase_d8, |
| 11853 | }, { |
| 11854 | .eraseblocks = { {64 * 1024, 1} }, |
| 11855 | .block_erase = spi_block_erase_60, |
| 11856 | }, { |
| 11857 | .eraseblocks = { {64 * 1024, 1} }, |
| 11858 | .block_erase = spi_block_erase_c7, |
| 11859 | } |
| 11860 | }, |
| 11861 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 11862 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 11863 | .write = spi_chip_write_256, |
| 11864 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 11865 | .voltage = {2300, 3600}, |
| 11866 | }, |
| 11867 | |
| 11868 | { |
| 11869 | .vendor = "PMC", |
| 11870 | .name = "Pm25LQ016", |
| 11871 | .bustype = BUS_SPI, |
| 11872 | .manufacture_id = PMC_ID, |
| 11873 | .model_id = PMC_PM25LQ016, |
| 11874 | .total_size = 2048, |
| 11875 | .page_size = 256, |
| 11876 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 11877 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11878 | .tested = TEST_UNTESTED, |
| 11879 | .probe = probe_spi_rdid, |
| 11880 | .probe_timing = TIMING_ZERO, |
| 11881 | .block_erasers = |
| 11882 | { |
| 11883 | { |
| 11884 | .eraseblocks = { {4 * 1024, 512} }, |
| 11885 | .block_erase = spi_block_erase_20, |
| 11886 | }, { |
| 11887 | .eraseblocks = { {4 * 1024, 512} }, |
| 11888 | .block_erase = spi_block_erase_d7, |
| 11889 | }, { |
| 11890 | .eraseblocks = { {64 * 1024, 32} }, |
| 11891 | .block_erase = spi_block_erase_d8, |
| 11892 | }, { |
| 11893 | .eraseblocks = { {2048 * 1024, 1} }, |
| 11894 | .block_erase = spi_block_erase_60, |
| 11895 | }, { |
| 11896 | .eraseblocks = { {2048 * 1024, 1} }, |
| 11897 | .block_erase = spi_block_erase_c7, |
| 11898 | } |
| 11899 | }, |
| 11900 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 11901 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11902 | .write = spi_chip_write_256, |
| 11903 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11904 | .voltage = {2300, 3600}, |
| 11905 | }, |
| 11906 | |
| 11907 | { |
| 11908 | .vendor = "PMC", |
Steven Honeyman | 81a8fb7 | 2015-06-02 22:32:24 +0000 | [diff] [blame] | 11909 | .name = "Pm25LQ020", |
| 11910 | .bustype = BUS_SPI, |
| 11911 | .manufacture_id = PMC_ID, |
| 11912 | .model_id = PMC_PM25LQ020, |
| 11913 | .total_size = 256, |
| 11914 | .page_size = 256, |
| 11915 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 11916 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11917 | .tested = TEST_UNTESTED, |
| 11918 | .probe = probe_spi_rdid, |
| 11919 | .probe_timing = TIMING_ZERO, |
| 11920 | .block_erasers = |
| 11921 | { |
| 11922 | { |
| 11923 | .eraseblocks = { {4 * 1024, 64} }, |
| 11924 | .block_erase = spi_block_erase_20, |
| 11925 | }, { |
| 11926 | .eraseblocks = { {4 * 1024, 64} }, |
| 11927 | .block_erase = spi_block_erase_d7, |
| 11928 | }, { |
| 11929 | .eraseblocks = { {64 * 1024, 4} }, |
| 11930 | .block_erase = spi_block_erase_d8, |
| 11931 | }, { |
| 11932 | .eraseblocks = { {256 * 1024, 1} }, |
| 11933 | .block_erase = spi_block_erase_60, |
| 11934 | }, { |
| 11935 | .eraseblocks = { {256 * 1024, 1} }, |
| 11936 | .block_erase = spi_block_erase_c7, |
| 11937 | } |
| 11938 | }, |
| 11939 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 11940 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11941 | .write = spi_chip_write_256, |
| 11942 | .read = spi_chip_read, |
| 11943 | .voltage = {2300, 3600}, |
| 11944 | }, |
| 11945 | |
| 11946 | { |
| 11947 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11948 | .name = "Pm25LQ032C", |
| 11949 | .bustype = BUS_SPI, |
| 11950 | .manufacture_id = PMC_ID, |
| 11951 | .model_id = PMC_PM25LQ032C, |
| 11952 | .total_size = 4096, |
| 11953 | .page_size = 256, |
| 11954 | /* OTP: 64B total; read 0x4B, write 0xB1 */ |
| 11955 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11956 | .tested = TEST_OK_PREW, |
| 11957 | .probe = probe_spi_rdid, |
| 11958 | .probe_timing = TIMING_ZERO, |
| 11959 | .block_erasers = |
| 11960 | { |
| 11961 | { |
| 11962 | .eraseblocks = { {4 * 1024, 1024} }, |
| 11963 | .block_erase = spi_block_erase_20, |
| 11964 | }, { |
| 11965 | .eraseblocks = { {4 * 1024, 1024} }, |
| 11966 | .block_erase = spi_block_erase_d7, |
| 11967 | }, { |
| 11968 | .eraseblocks = { {64 * 1024, 64} }, |
| 11969 | .block_erase = spi_block_erase_d8, |
| 11970 | }, { |
| 11971 | .eraseblocks = { {4096 * 1024, 1} }, |
| 11972 | .block_erase = spi_block_erase_60, |
| 11973 | }, { |
| 11974 | .eraseblocks = { {4096 * 1024, 1} }, |
| 11975 | .block_erase = spi_block_erase_c7, |
| 11976 | } |
| 11977 | }, |
| 11978 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 11979 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11980 | .write = spi_chip_write_256, |
| 11981 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11982 | .voltage = {2700, 3600}, |
| 11983 | }, |
| 11984 | |
| 11985 | { |
| 11986 | .vendor = "PMC", |
Steven Honeyman | 81a8fb7 | 2015-06-02 22:32:24 +0000 | [diff] [blame] | 11987 | .name = "Pm25LQ040", |
| 11988 | .bustype = BUS_SPI, |
| 11989 | .manufacture_id = PMC_ID, |
| 11990 | .model_id = PMC_PM25LQ040, |
| 11991 | .total_size = 512, |
| 11992 | .page_size = 256, |
| 11993 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 11994 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11995 | .tested = TEST_UNTESTED, |
| 11996 | .probe = probe_spi_rdid, |
| 11997 | .probe_timing = TIMING_ZERO, |
| 11998 | .block_erasers = |
| 11999 | { |
| 12000 | { |
| 12001 | .eraseblocks = { {4 * 1024, 128} }, |
| 12002 | .block_erase = spi_block_erase_20, |
| 12003 | }, { |
| 12004 | .eraseblocks = { {4 * 1024, 128} }, |
| 12005 | .block_erase = spi_block_erase_d7, |
| 12006 | }, { |
| 12007 | .eraseblocks = { {64 * 1024, 8} }, |
| 12008 | .block_erase = spi_block_erase_d8, |
| 12009 | }, { |
| 12010 | .eraseblocks = { {512 * 1024, 1} }, |
| 12011 | .block_erase = spi_block_erase_60, |
| 12012 | }, { |
| 12013 | .eraseblocks = { {512 * 1024, 1} }, |
| 12014 | .block_erase = spi_block_erase_c7, |
| 12015 | } |
| 12016 | }, |
| 12017 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 12018 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12019 | .write = spi_chip_write_256, |
| 12020 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12021 | .voltage = {2300, 3600}, |
| 12022 | }, |
| 12023 | |
| 12024 | { |
| 12025 | .vendor = "PMC", |
| 12026 | .name = "Pm25LQ080", |
| 12027 | .bustype = BUS_SPI, |
| 12028 | .manufacture_id = PMC_ID, |
| 12029 | .model_id = PMC_PM25LQ080, |
| 12030 | .total_size = 1024, |
| 12031 | .page_size = 256, |
| 12032 | /* OTP: 64B total; read 0x4B, write 0xB1 */ |
| 12033 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12034 | .tested = TEST_UNTESTED, |
| 12035 | .probe = probe_spi_rdid, |
| 12036 | .probe_timing = TIMING_ZERO, |
| 12037 | .block_erasers = |
| 12038 | { |
| 12039 | { |
| 12040 | .eraseblocks = { {4 * 1024, 256} }, |
| 12041 | .block_erase = spi_block_erase_20, |
| 12042 | }, { |
| 12043 | .eraseblocks = { {4 * 1024, 256} }, |
| 12044 | .block_erase = spi_block_erase_d7, |
| 12045 | }, { |
| 12046 | .eraseblocks = { {64 * 1024, 16} }, |
| 12047 | .block_erase = spi_block_erase_d8, |
| 12048 | }, { |
| 12049 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12050 | .block_erase = spi_block_erase_60, |
| 12051 | }, { |
| 12052 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12053 | .block_erase = spi_block_erase_c7, |
| 12054 | } |
| 12055 | }, |
| 12056 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 12057 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12058 | .write = spi_chip_write_256, |
| 12059 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12060 | .voltage = {2300, 3600}, |
| 12061 | }, |
| 12062 | |
| 12063 | { |
| 12064 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12065 | .name = "Pm25LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12066 | .bustype = BUS_SPI, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 12067 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12068 | .model_id = PMC_PM25LV010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12069 | .total_size = 128, |
| 12070 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12071 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 12072 | .tested = TEST_OK_PREW, |
| 12073 | .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] | 12074 | .probe_timing = TIMING_ZERO, |
| 12075 | .block_erasers = |
| 12076 | { |
| 12077 | { |
| 12078 | .eraseblocks = { {4 * 1024, 32} }, |
| 12079 | .block_erase = spi_block_erase_d7, |
| 12080 | }, { |
| 12081 | .eraseblocks = { {32 * 1024, 4} }, |
| 12082 | .block_erase = spi_block_erase_d8, |
| 12083 | }, { |
| 12084 | .eraseblocks = { {128 * 1024, 1} }, |
| 12085 | .block_erase = spi_block_erase_c7, |
| 12086 | } |
| 12087 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12088 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 12089 | .unlock = spi_disable_blockprotect, |
| 12090 | .write = spi_chip_write_256, |
| 12091 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12092 | .voltage = {2700, 3600}, |
| 12093 | }, |
| 12094 | |
| 12095 | { |
| 12096 | .vendor = "PMC", |
| 12097 | .name = "Pm25LV010A", |
| 12098 | .bustype = BUS_SPI, |
| 12099 | .manufacture_id = PMC_ID, |
| 12100 | .model_id = PMC_PM25LV010, |
| 12101 | .total_size = 128, |
| 12102 | .page_size = 256, |
| 12103 | .feature_bits = FEATURE_WRSR_WREN, |
| 12104 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12105 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12106 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12107 | .block_erasers = |
| 12108 | { |
| 12109 | { |
| 12110 | .eraseblocks = { {4 * 1024, 32} }, |
| 12111 | .block_erase = spi_block_erase_d7, |
| 12112 | }, { |
| 12113 | .eraseblocks = { {32 * 1024, 4} }, |
| 12114 | .block_erase = spi_block_erase_d8, |
| 12115 | }, { |
| 12116 | .eraseblocks = { {128 * 1024, 1} }, |
| 12117 | .block_erase = spi_block_erase_c7, |
| 12118 | } |
| 12119 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12120 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12121 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12122 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 12123 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 12124 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12125 | }, |
| 12126 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12127 | { |
| 12128 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12129 | .name = "Pm25LV016B", |
| 12130 | .bustype = BUS_SPI, |
| 12131 | .manufacture_id = PMC_ID, |
| 12132 | .model_id = PMC_PM25LV016B, |
| 12133 | .total_size = 2048, |
| 12134 | .page_size = 256, |
| 12135 | .feature_bits = FEATURE_WRSR_WREN, |
| 12136 | .tested = TEST_UNTESTED, |
| 12137 | .probe = probe_spi_rdid, |
| 12138 | .probe_timing = TIMING_ZERO, |
| 12139 | .block_erasers = |
| 12140 | { |
| 12141 | { |
| 12142 | .eraseblocks = { {4 * 1024, 512} }, |
| 12143 | .block_erase = spi_block_erase_d7, |
| 12144 | }, { |
| 12145 | .eraseblocks = { {4 * 1024, 512} }, |
| 12146 | .block_erase = spi_block_erase_20, |
| 12147 | }, { |
| 12148 | .eraseblocks = { {64 * 1024, 32} }, |
| 12149 | .block_erase = spi_block_erase_d8, |
| 12150 | }, { |
| 12151 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12152 | .block_erase = spi_block_erase_60, |
| 12153 | }, { |
| 12154 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12155 | .block_erase = spi_block_erase_c7, |
| 12156 | } |
| 12157 | }, |
| 12158 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 12159 | .unlock = spi_disable_blockprotect, |
| 12160 | .write = spi_chip_write_256, |
| 12161 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12162 | .voltage = {2700, 3600}, |
| 12163 | }, |
| 12164 | |
| 12165 | { |
| 12166 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12167 | .name = "Pm25LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12168 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12169 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12170 | .model_id = PMC_PM25LV020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12171 | .total_size = 256, |
| 12172 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12173 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12174 | .tested = TEST_UNTESTED, |
| 12175 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12176 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12177 | .block_erasers = |
| 12178 | { |
| 12179 | { |
| 12180 | .eraseblocks = { {4 * 1024, 64} }, |
| 12181 | .block_erase = spi_block_erase_d7, |
| 12182 | }, { |
| 12183 | .eraseblocks = { {64 * 1024, 4} }, |
| 12184 | .block_erase = spi_block_erase_d8, |
| 12185 | }, { |
| 12186 | .eraseblocks = { {256 * 1024, 1} }, |
| 12187 | .block_erase = spi_block_erase_c7, |
| 12188 | } |
| 12189 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12190 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12191 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12192 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12193 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12194 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12195 | }, |
| 12196 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12197 | { |
| 12198 | .vendor = "PMC", |
| 12199 | .name = "Pm25LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12200 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12201 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12202 | .model_id = PMC_PM25LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12203 | .total_size = 512, |
| 12204 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12205 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 12206 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12207 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12208 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12209 | .block_erasers = |
| 12210 | { |
| 12211 | { |
| 12212 | .eraseblocks = { {4 * 1024, 128} }, |
| 12213 | .block_erase = spi_block_erase_d7, |
| 12214 | }, { |
| 12215 | .eraseblocks = { {64 * 1024, 8} }, |
| 12216 | .block_erase = spi_block_erase_d8, |
| 12217 | }, { |
| 12218 | .eraseblocks = { {512 * 1024, 1} }, |
| 12219 | .block_erase = spi_block_erase_c7, |
| 12220 | } |
| 12221 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12222 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12223 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12224 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 12225 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12226 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12227 | }, |
| 12228 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12229 | { |
| 12230 | .vendor = "PMC", |
| 12231 | .name = "Pm25LV080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12232 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12233 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12234 | .model_id = PMC_PM25LV080B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12235 | .total_size = 1024, |
| 12236 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12237 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12238 | .tested = TEST_UNTESTED, |
| 12239 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12240 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12241 | .block_erasers = |
| 12242 | { |
| 12243 | { |
| 12244 | .eraseblocks = { {4 * 1024, 256} }, |
| 12245 | .block_erase = spi_block_erase_d7, |
| 12246 | }, { |
| 12247 | .eraseblocks = { {4 * 1024, 256} }, |
| 12248 | .block_erase = spi_block_erase_20, |
| 12249 | }, { |
| 12250 | .eraseblocks = { {64 * 1024, 16} }, |
| 12251 | .block_erase = spi_block_erase_d8, |
| 12252 | }, { |
| 12253 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12254 | .block_erase = spi_block_erase_60, |
| 12255 | }, { |
| 12256 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12257 | .block_erase = spi_block_erase_c7, |
| 12258 | } |
| 12259 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12260 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12261 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12262 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 12263 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12264 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12265 | }, |
| 12266 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12267 | { |
| 12268 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12269 | .name = "Pm25LV512(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12270 | .bustype = BUS_SPI, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12271 | .manufacture_id = PMC_ID_NOPREFIX, |
| 12272 | .model_id = PMC_PM25LV512, |
| 12273 | .total_size = 64, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12274 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12275 | .feature_bits = FEATURE_WRSR_WREN, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12276 | .tested = TEST_OK_PREW, |
| 12277 | .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] | 12278 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12279 | .block_erasers = |
| 12280 | { |
| 12281 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12282 | .eraseblocks = { {4 * 1024, 16} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12283 | .block_erase = spi_block_erase_d7, |
| 12284 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12285 | .eraseblocks = { {32 * 1024, 2} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12286 | .block_erase = spi_block_erase_d8, |
| 12287 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12288 | .eraseblocks = { {64 * 1024, 1} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12289 | .block_erase = spi_block_erase_c7, |
| 12290 | } |
| 12291 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12292 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12293 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12294 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 12295 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 12296 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12297 | }, |
| 12298 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12299 | { |
| 12300 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12301 | .name = "Pm29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12302 | .bustype = BUS_PARALLEL, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 12303 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12304 | .model_id = PMC_PM29F002B, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 12305 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12306 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12307 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 12308 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12309 | .probe = probe_jedec, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 12310 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12311 | .block_erasers = |
| 12312 | { |
| 12313 | { |
| 12314 | .eraseblocks = { |
| 12315 | {16 * 1024, 1}, |
| 12316 | {8 * 1024, 2}, |
| 12317 | {96 * 1024, 1}, |
| 12318 | {128 * 1024, 1}, |
| 12319 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12320 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12321 | }, { |
| 12322 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12323 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12324 | }, |
| 12325 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12326 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 12327 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12328 | .voltage = {4500, 5500}, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 12329 | }, |
| 12330 | |
| 12331 | { |
| 12332 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12333 | .name = "Pm29F002T", |
| 12334 | .bustype = BUS_PARALLEL, |
| 12335 | .manufacture_id = PMC_ID_NOPREFIX, |
| 12336 | .model_id = PMC_PM29F002T, |
| 12337 | .total_size = 256, |
| 12338 | .page_size = 8 * 1024, |
| 12339 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 12340 | .tested = TEST_OK_PREW, |
| 12341 | .probe = probe_jedec, |
| 12342 | .probe_timing = TIMING_FIXME, |
| 12343 | .block_erasers = |
| 12344 | { |
| 12345 | { |
| 12346 | .eraseblocks = { |
| 12347 | {128 * 1024, 1}, |
| 12348 | {96 * 1024, 1}, |
| 12349 | {8 * 1024, 2}, |
| 12350 | {16 * 1024, 1}, |
| 12351 | }, |
| 12352 | .block_erase = erase_sector_jedec, |
| 12353 | }, { |
| 12354 | .eraseblocks = { {256 * 1024, 1} }, |
| 12355 | .block_erase = erase_chip_block_jedec, |
| 12356 | }, |
| 12357 | }, |
| 12358 | .write = write_jedec_1, |
| 12359 | .read = read_memmapped, |
| 12360 | .voltage = {4500, 5500}, |
| 12361 | }, |
| 12362 | |
| 12363 | { |
| 12364 | .vendor = "PMC", |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 12365 | .name = "Pm39LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12366 | .bustype = BUS_PARALLEL, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 12367 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12368 | .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] | 12369 | .total_size = 128, |
| 12370 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12371 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 12372 | .tested = TEST_OK_PREW, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 12373 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 12374 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12375 | .block_erasers = |
| 12376 | { |
| 12377 | { |
| 12378 | .eraseblocks = { {4 * 1024, 32} }, |
| 12379 | .block_erase = erase_sector_jedec, |
| 12380 | }, { |
| 12381 | .eraseblocks = { {64 * 1024, 2} }, |
| 12382 | .block_erase = erase_block_jedec, |
| 12383 | }, { |
| 12384 | .eraseblocks = { {128 * 1024, 1} }, |
| 12385 | .block_erase = erase_chip_block_jedec, |
| 12386 | } |
| 12387 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12388 | .write = write_jedec_1, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 12389 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12390 | .voltage = {2700, 3600}, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 12391 | }, |
| 12392 | |
| 12393 | { |
| 12394 | .vendor = "PMC", |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12395 | .name = "Pm39LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12396 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12397 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12398 | .model_id = PMC_PM39LV020, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12399 | .total_size = 256, |
| 12400 | .page_size = 4096, |
| 12401 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 12402 | .tested = TEST_UNTESTED, |
| 12403 | .probe = probe_jedec, |
| 12404 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 12405 | .block_erasers = |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12406 | { |
| 12407 | { |
| 12408 | .eraseblocks = { {4 * 1024, 64} }, |
| 12409 | .block_erase = erase_sector_jedec, |
| 12410 | }, { |
| 12411 | .eraseblocks = { {64 * 1024, 4} }, |
| 12412 | .block_erase = erase_block_jedec, |
| 12413 | }, { |
| 12414 | .eraseblocks = { {256 * 1024, 1} }, |
| 12415 | .block_erase = erase_chip_block_jedec, |
| 12416 | } |
| 12417 | }, |
| 12418 | .write = write_jedec_1, |
| 12419 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12420 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12421 | }, |
| 12422 | |
| 12423 | { |
| 12424 | .vendor = "PMC", |
| 12425 | .name = "Pm39LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12426 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12427 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12428 | .model_id = PMC_PM39LV040, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12429 | .total_size = 512, |
| 12430 | .page_size = 4096, |
| 12431 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 12432 | .tested = TEST_OK_PR, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12433 | .probe = probe_jedec, |
| 12434 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 12435 | .block_erasers = |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12436 | { |
| 12437 | { |
| 12438 | .eraseblocks = { {4 * 1024, 128} }, |
| 12439 | .block_erase = erase_sector_jedec, |
| 12440 | }, { |
| 12441 | .eraseblocks = { {64 * 1024, 8} }, |
| 12442 | .block_erase = erase_block_jedec, |
| 12443 | }, { |
| 12444 | .eraseblocks = { {512 * 1024, 1} }, |
| 12445 | .block_erase = erase_chip_block_jedec, |
| 12446 | } |
| 12447 | }, |
| 12448 | .write = write_jedec_1, |
| 12449 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12450 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12451 | }, |
Kyösti Mälkki | edab1d2 | 2012-05-20 23:32:33 +0000 | [diff] [blame] | 12452 | |
| 12453 | { |
| 12454 | .vendor = "PMC", |
| 12455 | .name = "Pm39LV512", |
| 12456 | .bustype = BUS_PARALLEL, |
| 12457 | .manufacture_id = PMC_ID_NOPREFIX, |
| 12458 | .model_id = PMC_PM39LV512, |
| 12459 | .total_size = 64, |
| 12460 | .page_size = 4096, |
| 12461 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 12462 | .tested = TEST_OK_PREW, |
| 12463 | .probe = probe_jedec, |
| 12464 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 12465 | .block_erasers = |
| 12466 | { |
| 12467 | { |
| 12468 | .eraseblocks = { {4 * 1024, 16} }, |
| 12469 | .block_erase = erase_sector_jedec, |
| 12470 | }, { |
| 12471 | .eraseblocks = { {64 * 1024, 1} }, |
| 12472 | .block_erase = erase_block_jedec, |
| 12473 | }, { |
| 12474 | .eraseblocks = { {64 * 1024, 1} }, |
| 12475 | .block_erase = erase_chip_block_jedec, |
| 12476 | } |
| 12477 | }, |
| 12478 | .write = write_jedec_1, |
| 12479 | .read = read_memmapped, |
| 12480 | .voltage = {2700, 3600}, |
| 12481 | }, |
| 12482 | |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 12483 | { |
| 12484 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12485 | .name = "Pm49FL002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12486 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12487 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12488 | .model_id = PMC_PM49FL002, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12489 | .total_size = 256, |
| 12490 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12491 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12492 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 12493 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 12494 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12495 | .block_erasers = |
| 12496 | { |
| 12497 | { |
| 12498 | .eraseblocks = { {4 * 1024, 64} }, |
| 12499 | .block_erase = erase_sector_jedec, |
| 12500 | }, { |
| 12501 | .eraseblocks = { {16 * 1024, 16} }, |
| 12502 | .block_erase = erase_block_jedec, |
| 12503 | }, { |
| 12504 | .eraseblocks = { {256 * 1024, 1} }, |
| 12505 | .block_erase = erase_chip_block_jedec, |
| 12506 | } |
| 12507 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12508 | .unlock = unlock_regspace2_uniform_32k, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 12509 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12510 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12511 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12512 | }, |
| 12513 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12514 | { |
| 12515 | .vendor = "PMC", |
| 12516 | .name = "Pm49FL004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12517 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12518 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12519 | .model_id = PMC_PM49FL004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12520 | .total_size = 512, |
| 12521 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12522 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 12523 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 12524 | .probe = probe_jedec, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 12525 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12526 | .block_erasers = |
| 12527 | { |
| 12528 | { |
| 12529 | .eraseblocks = { {4 * 1024, 128} }, |
| 12530 | .block_erase = erase_sector_jedec, |
| 12531 | }, { |
| 12532 | .eraseblocks = { {64 * 1024, 8} }, |
| 12533 | .block_erase = erase_block_jedec, |
| 12534 | }, { |
| 12535 | .eraseblocks = { {512 * 1024, 1} }, |
| 12536 | .block_erase = erase_chip_block_jedec, |
| 12537 | } |
| 12538 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12539 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 12540 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12541 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12542 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12543 | }, |
| 12544 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12545 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12546 | .vendor = "SST", |
Idwer Vollering | f3607d1 | 2014-05-07 15:25:04 +0000 | [diff] [blame] | 12547 | .name = "SST25LF020A", |
| 12548 | .bustype = BUS_SPI, |
| 12549 | .manufacture_id = SST_ID, |
| 12550 | .model_id = SST_SST25VF020_REMS, |
| 12551 | .total_size = 256, |
| 12552 | .page_size = 256, |
| 12553 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12554 | .tested = TEST_OK_PREW, |
| 12555 | .probe = probe_spi_rems, |
| 12556 | .probe_timing = TIMING_ZERO, |
| 12557 | .block_erasers = |
| 12558 | { |
| 12559 | { |
| 12560 | .eraseblocks = { {4 * 1024, 64} }, |
| 12561 | .block_erase = spi_block_erase_20, |
| 12562 | }, { |
| 12563 | .eraseblocks = { {32 * 1024, 8} }, |
| 12564 | .block_erase = spi_block_erase_52, |
| 12565 | }, { |
| 12566 | .eraseblocks = { {256 * 1024, 1} }, |
| 12567 | .block_erase = spi_block_erase_60, |
| 12568 | }, |
| 12569 | }, |
| 12570 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 12571 | .unlock = spi_disable_blockprotect, |
| 12572 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 12573 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12574 | .voltage = {2700, 3600}, |
| 12575 | }, |
| 12576 | |
| 12577 | { |
| 12578 | .vendor = "SST", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12579 | .name = "SST25LF040A", |
| 12580 | .bustype = BUS_SPI, |
| 12581 | .manufacture_id = SST_ID, |
| 12582 | .model_id = SST_SST25VF040_REMS, |
| 12583 | .total_size = 512, |
| 12584 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12585 | .feature_bits = FEATURE_WRSR_EWSR, |
Uwe Hermann | 4335ec8 | 2011-09-07 20:20:25 +0000 | [diff] [blame] | 12586 | .tested = TEST_OK_PREW, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12587 | .probe = probe_spi_res2, |
| 12588 | .probe_timing = TIMING_ZERO, |
| 12589 | .block_erasers = |
| 12590 | { |
| 12591 | { |
| 12592 | .eraseblocks = { {4 * 1024, 128} }, |
| 12593 | .block_erase = spi_block_erase_20, |
| 12594 | }, { |
| 12595 | .eraseblocks = { {32 * 1024, 16} }, |
| 12596 | .block_erase = spi_block_erase_52, |
| 12597 | }, { |
| 12598 | .eraseblocks = { {512 * 1024, 1} }, |
| 12599 | .block_erase = spi_block_erase_60, |
| 12600 | }, |
| 12601 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12602 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12603 | .unlock = spi_disable_blockprotect, |
| 12604 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 12605 | .read = spi_chip_read, |
| 12606 | .voltage = {3000, 3600}, |
| 12607 | }, |
| 12608 | |
| 12609 | { |
| 12610 | .vendor = "SST", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 12611 | .name = "SST25LF080(A)", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12612 | .bustype = BUS_SPI, |
| 12613 | .manufacture_id = SST_ID, |
| 12614 | .model_id = SST_SST25VF080_REMS, |
| 12615 | .total_size = 1024, |
| 12616 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 12617 | .feature_bits = FEATURE_WRSR_EITHER, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12618 | .tested = TEST_UNTESTED, |
| 12619 | .probe = probe_spi_res2, |
| 12620 | .probe_timing = TIMING_ZERO, |
| 12621 | .block_erasers = |
| 12622 | { |
| 12623 | { |
| 12624 | .eraseblocks = { {4 * 1024, 256} }, |
| 12625 | .block_erase = spi_block_erase_20, |
| 12626 | }, { |
| 12627 | .eraseblocks = { {32 * 1024, 32} }, |
| 12628 | .block_erase = spi_block_erase_52, |
| 12629 | }, { |
| 12630 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12631 | .block_erase = spi_block_erase_60, |
| 12632 | }, |
| 12633 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12634 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 12635 | .unlock = spi_disable_blockprotect, |
| 12636 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 12637 | .read = spi_chip_read, |
| 12638 | .voltage = {3000, 3600}, |
| 12639 | }, |
| 12640 | |
| 12641 | { |
| 12642 | .vendor = "SST", |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12643 | .name = "SST25VF010(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12644 | .bustype = BUS_SPI, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12645 | .manufacture_id = SST_ID, |
| 12646 | .model_id = SST_SST25VF010_REMS, |
| 12647 | .total_size = 128, |
| 12648 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12649 | .feature_bits = FEATURE_WRSR_EWSR, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12650 | .tested = TEST_OK_PREW, |
| 12651 | .probe = probe_spi_rems, |
| 12652 | .probe_timing = TIMING_ZERO, |
| 12653 | .block_erasers = |
| 12654 | { |
| 12655 | { |
| 12656 | .eraseblocks = { {4 * 1024, 32} }, |
| 12657 | .block_erase = spi_block_erase_20, |
| 12658 | }, { |
| 12659 | .eraseblocks = { {32 * 1024, 4} }, |
| 12660 | .block_erase = spi_block_erase_52, |
| 12661 | }, { |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12662 | .eraseblocks = { {32 * 1024, 4} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12663 | .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12664 | }, { |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12665 | .eraseblocks = { {128 * 1024, 1} }, |
| 12666 | .block_erase = spi_block_erase_60, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12667 | }, { |
| 12668 | .eraseblocks = { {128 * 1024, 1} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12669 | .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12670 | }, |
| 12671 | }, |
| 12672 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 12673 | .unlock = spi_disable_blockprotect, |
| 12674 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12675 | .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12676 | .voltage = {2700, 3600}, |
| 12677 | }, |
| 12678 | |
| 12679 | { |
| 12680 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12681 | .name = "SST25VF016B", |
| 12682 | .bustype = BUS_SPI, |
| 12683 | .manufacture_id = SST_ID, |
| 12684 | .model_id = SST_SST25VF016B, |
| 12685 | .total_size = 2048, |
| 12686 | .page_size = 256, |
| 12687 | .feature_bits = FEATURE_WRSR_EITHER, |
| 12688 | .tested = TEST_OK_PREW, |
| 12689 | .probe = probe_spi_rdid, |
| 12690 | .probe_timing = TIMING_ZERO, |
| 12691 | .block_erasers = |
| 12692 | { |
| 12693 | { |
| 12694 | .eraseblocks = { {4 * 1024, 512} }, |
| 12695 | .block_erase = spi_block_erase_20, |
| 12696 | }, { |
| 12697 | .eraseblocks = { {32 * 1024, 64} }, |
| 12698 | .block_erase = spi_block_erase_52, |
| 12699 | }, { |
| 12700 | .eraseblocks = { {64 * 1024, 32} }, |
| 12701 | .block_erase = spi_block_erase_d8, |
| 12702 | }, { |
| 12703 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12704 | .block_erase = spi_block_erase_60, |
| 12705 | }, { |
| 12706 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12707 | .block_erase = spi_block_erase_c7, |
| 12708 | }, |
| 12709 | }, |
| 12710 | .printlock = spi_prettyprint_status_register_sst25vf016, |
| 12711 | .unlock = spi_disable_blockprotect, |
| 12712 | .write = spi_aai_write, |
| 12713 | .read = spi_chip_read, |
| 12714 | .voltage = {2700, 3600}, |
| 12715 | }, |
| 12716 | |
| 12717 | { |
| 12718 | .vendor = "SST", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12719 | .name = "SST25VF020", |
| 12720 | .bustype = BUS_SPI, |
| 12721 | .manufacture_id = SST_ID, |
| 12722 | .model_id = SST_SST25VF020_REMS, |
| 12723 | .total_size = 256, |
| 12724 | .page_size = 256, |
| 12725 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12726 | .tested = TEST_UNTESTED, |
| 12727 | .probe = probe_spi_rems, |
| 12728 | .probe_timing = TIMING_ZERO, |
| 12729 | .block_erasers = |
| 12730 | { |
| 12731 | { |
| 12732 | .eraseblocks = { {4 * 1024, 64} }, |
| 12733 | .block_erase = spi_block_erase_20, |
| 12734 | }, { |
| 12735 | .eraseblocks = { {32 * 1024, 8} }, |
| 12736 | .block_erase = spi_block_erase_52, |
| 12737 | }, { |
| 12738 | .eraseblocks = { {256 * 1024, 1} }, |
| 12739 | .block_erase = spi_block_erase_60, |
| 12740 | }, |
| 12741 | }, |
| 12742 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 12743 | .unlock = spi_disable_blockprotect, |
| 12744 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 12745 | .read = spi_chip_read, /* only */ |
| 12746 | .voltage = {2700, 3600}, |
| 12747 | }, |
| 12748 | |
| 12749 | { |
| 12750 | .vendor = "SST", |
| 12751 | .name = "SST25VF020B", |
| 12752 | .bustype = BUS_SPI, |
| 12753 | .manufacture_id = SST_ID, |
| 12754 | .model_id = SST_SST25VF020B, |
| 12755 | .total_size = 256, |
| 12756 | .page_size = 256, |
| 12757 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 12758 | .tested = TEST_OK_PREW, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12759 | .probe = probe_spi_rdid, |
| 12760 | .probe_timing = TIMING_ZERO, |
| 12761 | .block_erasers = |
| 12762 | { |
| 12763 | { |
| 12764 | .eraseblocks = { {4 * 1024, 64} }, |
| 12765 | .block_erase = spi_block_erase_20, |
| 12766 | }, { |
| 12767 | .eraseblocks = { {32 * 1024, 8} }, |
| 12768 | .block_erase = spi_block_erase_52, |
| 12769 | }, { |
| 12770 | .eraseblocks = { {64 * 1024, 4} }, |
| 12771 | .block_erase = spi_block_erase_d8, |
| 12772 | }, { |
| 12773 | .eraseblocks = { {256 * 1024, 1} }, |
| 12774 | .block_erase = spi_block_erase_60, |
| 12775 | }, { |
| 12776 | .eraseblocks = { {256 * 1024, 1} }, |
| 12777 | .block_erase = spi_block_erase_c7, |
| 12778 | }, |
| 12779 | }, |
| 12780 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */ |
| 12781 | .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */ |
| 12782 | .write = spi_aai_write, /* AAI supported (0xAD) */ |
| 12783 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12784 | .voltage = {2700, 3600}, |
| 12785 | }, |
| 12786 | |
| 12787 | { |
| 12788 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12789 | .name = "SST25VF032B", |
| 12790 | .bustype = BUS_SPI, |
| 12791 | .manufacture_id = SST_ID, |
| 12792 | .model_id = SST_SST25VF032B, |
| 12793 | .total_size = 4096, |
| 12794 | .page_size = 256, |
| 12795 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12796 | .tested = TEST_OK_PREW, |
| 12797 | .probe = probe_spi_rdid, |
| 12798 | .probe_timing = TIMING_ZERO, |
| 12799 | .block_erasers = |
| 12800 | { |
| 12801 | { |
| 12802 | .eraseblocks = { {4 * 1024, 1024} }, |
| 12803 | .block_erase = spi_block_erase_20, |
| 12804 | }, { |
| 12805 | .eraseblocks = { {32 * 1024, 128} }, |
| 12806 | .block_erase = spi_block_erase_52, |
| 12807 | }, { |
| 12808 | .eraseblocks = { {64 * 1024, 64} }, |
| 12809 | .block_erase = spi_block_erase_d8, |
| 12810 | }, { |
| 12811 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12812 | .block_erase = spi_block_erase_60, |
| 12813 | }, { |
| 12814 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12815 | .block_erase = spi_block_erase_c7, |
| 12816 | }, |
| 12817 | }, |
| 12818 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
| 12819 | .unlock = spi_disable_blockprotect, |
| 12820 | .write = spi_aai_write, |
| 12821 | .read = spi_chip_read, |
| 12822 | .voltage = {2700, 3600}, |
| 12823 | }, |
| 12824 | |
| 12825 | { |
| 12826 | .vendor = "SST", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12827 | .name = "SST25VF040", |
| 12828 | .bustype = BUS_SPI, |
| 12829 | .manufacture_id = SST_ID, |
| 12830 | .model_id = SST_SST25VF040_REMS, |
| 12831 | .total_size = 512, |
| 12832 | .page_size = 256, |
| 12833 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12834 | .tested = TEST_OK_PR, |
| 12835 | .probe = probe_spi_rems, |
| 12836 | .probe_timing = TIMING_ZERO, |
| 12837 | .block_erasers = |
| 12838 | { |
| 12839 | { |
| 12840 | .eraseblocks = { {4 * 1024, 128} }, |
| 12841 | .block_erase = spi_block_erase_20, |
| 12842 | }, { |
| 12843 | .eraseblocks = { {32 * 1024, 16} }, |
| 12844 | .block_erase = spi_block_erase_52, |
| 12845 | }, { |
| 12846 | .eraseblocks = { {512 * 1024, 1} }, |
| 12847 | .block_erase = spi_block_erase_60, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12848 | }, |
| 12849 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12850 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 12851 | .unlock = spi_disable_blockprotect, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12852 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 12853 | .read = spi_chip_read, |
| 12854 | .voltage = {2700, 3600}, |
| 12855 | }, |
| 12856 | |
| 12857 | { |
| 12858 | .vendor = "SST", |
| 12859 | .name = "SST25VF040B", |
| 12860 | .bustype = BUS_SPI, |
| 12861 | .manufacture_id = SST_ID, |
| 12862 | .model_id = SST_SST25VF040B, |
| 12863 | .total_size = 512, |
| 12864 | .page_size = 256, |
| 12865 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12866 | .tested = TEST_OK_PREW, |
| 12867 | .probe = probe_spi_rdid, |
| 12868 | .probe_timing = TIMING_ZERO, |
| 12869 | .block_erasers = |
| 12870 | { |
| 12871 | { |
| 12872 | .eraseblocks = { {4 * 1024, 128} }, |
| 12873 | .block_erase = spi_block_erase_20, |
| 12874 | }, { |
| 12875 | .eraseblocks = { {32 * 1024, 16} }, |
| 12876 | .block_erase = spi_block_erase_52, |
| 12877 | }, { |
| 12878 | .eraseblocks = { {64 * 1024, 8} }, |
| 12879 | .block_erase = spi_block_erase_d8, |
| 12880 | }, { |
| 12881 | .eraseblocks = { {512 * 1024, 1} }, |
| 12882 | .block_erase = spi_block_erase_60, |
| 12883 | }, { |
| 12884 | .eraseblocks = { {512 * 1024, 1} }, |
| 12885 | .block_erase = spi_block_erase_c7, |
| 12886 | }, |
| 12887 | }, |
| 12888 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
| 12889 | .unlock = spi_disable_blockprotect, |
| 12890 | .write = spi_aai_write, /* AAI supported (0xAD) */ |
| 12891 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12892 | .voltage = {2700, 3600}, |
| 12893 | }, |
| 12894 | |
| 12895 | { |
| 12896 | .vendor = "SST", |
| 12897 | .name = "SST25VF040B.REMS", |
| 12898 | .bustype = BUS_SPI, |
| 12899 | .manufacture_id = SST_ID, |
| 12900 | .model_id = SST_SST25VF040B_REMS, |
| 12901 | .total_size = 512, |
| 12902 | .page_size = 256, |
| 12903 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12904 | .tested = TEST_OK_PREW, |
| 12905 | .probe = probe_spi_rems, |
| 12906 | .probe_timing = TIMING_ZERO, |
| 12907 | .block_erasers = |
| 12908 | { |
| 12909 | { |
| 12910 | .eraseblocks = { {4 * 1024, 128} }, |
| 12911 | .block_erase = spi_block_erase_20, |
| 12912 | }, { |
| 12913 | .eraseblocks = { {32 * 1024, 16} }, |
| 12914 | .block_erase = spi_block_erase_52, |
| 12915 | }, { |
| 12916 | .eraseblocks = { {64 * 1024, 8} }, |
| 12917 | .block_erase = spi_block_erase_d8, |
| 12918 | }, { |
| 12919 | .eraseblocks = { {512 * 1024, 1} }, |
| 12920 | .block_erase = spi_block_erase_60, |
| 12921 | }, { |
| 12922 | .eraseblocks = { {512 * 1024, 1} }, |
| 12923 | .block_erase = spi_block_erase_c7, |
| 12924 | }, |
| 12925 | }, |
| 12926 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
| 12927 | .unlock = spi_disable_blockprotect, |
| 12928 | .write = spi_aai_write, |
| 12929 | .read = spi_chip_read, |
| 12930 | .voltage = {2700, 3600}, |
| 12931 | }, |
| 12932 | |
| 12933 | { |
| 12934 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12935 | .name = "SST25VF064C", |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 12936 | .bustype = BUS_SPI, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12937 | .manufacture_id = SST_ID, |
| 12938 | .model_id = SST_SST25VF064C, |
| 12939 | .total_size = 8192, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 12940 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12941 | .feature_bits = FEATURE_WRSR_EWSR, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 12942 | .tested = TEST_OK_PREW, |
| 12943 | .probe = probe_spi_rdid, |
| 12944 | .probe_timing = TIMING_ZERO, |
| 12945 | .block_erasers = |
| 12946 | { |
| 12947 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12948 | .eraseblocks = { {4 * 1024, 2048} }, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 12949 | .block_erase = spi_block_erase_20, |
| 12950 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12951 | .eraseblocks = { {32 * 1024, 256} }, |
| 12952 | .block_erase = spi_block_erase_52, |
| 12953 | }, { |
| 12954 | .eraseblocks = { {64 * 1024, 128} }, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 12955 | .block_erase = spi_block_erase_d8, |
| 12956 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12957 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 12958 | .block_erase = spi_block_erase_60, |
| 12959 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12960 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 12961 | .block_erase = spi_block_erase_c7, |
| 12962 | }, |
| 12963 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12964 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
| 12965 | .unlock = spi_disable_blockprotect, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 12966 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12967 | .read = spi_chip_read, |
| 12968 | .voltage = {2700, 3600}, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 12969 | }, |
| 12970 | |
| 12971 | { |
| 12972 | .vendor = "SST", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 12973 | .name = "SST25VF080B", |
| 12974 | .bustype = BUS_SPI, |
| 12975 | .manufacture_id = SST_ID, |
| 12976 | .model_id = SST_SST25VF080B, |
| 12977 | .total_size = 1024, |
| 12978 | .page_size = 256, |
| 12979 | .feature_bits = FEATURE_WRSR_EWSR, |
| 12980 | .tested = TEST_OK_PREW, |
| 12981 | .probe = probe_spi_rdid, |
| 12982 | .probe_timing = TIMING_ZERO, |
| 12983 | .block_erasers = |
| 12984 | { |
| 12985 | { |
| 12986 | .eraseblocks = { {4 * 1024, 256} }, |
| 12987 | .block_erase = spi_block_erase_20, |
| 12988 | }, { |
| 12989 | .eraseblocks = { {32 * 1024, 32} }, |
| 12990 | .block_erase = spi_block_erase_52, |
| 12991 | }, { |
| 12992 | .eraseblocks = { {64 * 1024, 16} }, |
| 12993 | .block_erase = spi_block_erase_d8, |
| 12994 | }, { |
| 12995 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12996 | .block_erase = spi_block_erase_60, |
| 12997 | }, { |
| 12998 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12999 | .block_erase = spi_block_erase_c7, |
| 13000 | }, |
| 13001 | }, |
| 13002 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
| 13003 | .unlock = spi_disable_blockprotect, |
| 13004 | .write = spi_aai_write, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 13005 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 13006 | .voltage = {2700, 3600}, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 13007 | }, |
| 13008 | |
| 13009 | { |
| 13010 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13011 | .name = "SST25VF512(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13012 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13013 | .manufacture_id = SST_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13014 | .model_id = SST_SST25VF512_REMS, |
| 13015 | .total_size = 64, |
| 13016 | .page_size = 256, |
| 13017 | .feature_bits = FEATURE_WRSR_EWSR, |
| 13018 | .tested = TEST_OK_PREW, |
| 13019 | .probe = probe_spi_rems, |
| 13020 | .probe_timing = TIMING_ZERO, |
| 13021 | .block_erasers = |
| 13022 | { |
| 13023 | { |
| 13024 | .eraseblocks = { {4 * 1024, 16} }, |
| 13025 | .block_erase = spi_block_erase_20, |
| 13026 | }, { |
| 13027 | .eraseblocks = { {32 * 1024, 2} }, |
| 13028 | .block_erase = spi_block_erase_52, |
| 13029 | }, { |
| 13030 | .eraseblocks = { {32 * 1024, 2} }, |
| 13031 | .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */ |
| 13032 | }, { |
| 13033 | .eraseblocks = { {64 * 1024, 1} }, |
| 13034 | .block_erase = spi_block_erase_60, |
| 13035 | }, { |
| 13036 | .eraseblocks = { {64 * 1024, 1} }, |
| 13037 | .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */ |
| 13038 | }, |
| 13039 | }, |
| 13040 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 13041 | .unlock = spi_disable_blockprotect, |
| 13042 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 13043 | .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */ |
| 13044 | .voltage = {2700, 3600}, |
| 13045 | }, |
| 13046 | |
| 13047 | { |
| 13048 | .vendor = "SST", |
| 13049 | .name = "SST25WF010", |
| 13050 | .bustype = BUS_SPI, |
| 13051 | .manufacture_id = SST_ID, |
| 13052 | .model_id = SST_SST25WF010, |
| 13053 | .total_size = 128, |
| 13054 | .page_size = 256, |
| 13055 | .feature_bits = FEATURE_WRSR_EITHER, |
| 13056 | .tested = TEST_UNTESTED, |
| 13057 | .probe = probe_spi_rdid, |
| 13058 | .probe_timing = TIMING_ZERO, |
| 13059 | .block_erasers = |
| 13060 | { |
| 13061 | { |
| 13062 | .eraseblocks = { {4 * 1024, 32} }, |
| 13063 | .block_erase = spi_block_erase_20, |
| 13064 | }, { |
| 13065 | .eraseblocks = { {32 * 1024, 4} }, |
| 13066 | .block_erase = spi_block_erase_52, |
| 13067 | }, { |
| 13068 | .eraseblocks = { {1024 * 128, 1} }, |
| 13069 | .block_erase = spi_block_erase_60, |
| 13070 | }, { |
| 13071 | .eraseblocks = { {1024 * 128, 1} }, |
| 13072 | .block_erase = spi_block_erase_c7, |
| 13073 | }, |
| 13074 | }, |
| 13075 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 13076 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 13077 | .write = spi_aai_write, |
| 13078 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13079 | .voltage = {1650, 1950}, |
| 13080 | }, |
| 13081 | |
| 13082 | { |
| 13083 | .vendor = "SST", |
| 13084 | .name = "SST25WF020", |
| 13085 | .bustype = BUS_SPI, |
| 13086 | .manufacture_id = SST_ID, |
| 13087 | .model_id = SST_SST25WF020, |
| 13088 | .total_size = 256, |
| 13089 | .page_size = 256, |
| 13090 | .feature_bits = FEATURE_WRSR_EITHER, |
| 13091 | .tested = TEST_UNTESTED, |
| 13092 | .probe = probe_spi_rdid, |
| 13093 | .probe_timing = TIMING_ZERO, |
| 13094 | .block_erasers = |
| 13095 | { |
| 13096 | { |
| 13097 | .eraseblocks = { {4 * 1024, 64} }, |
| 13098 | .block_erase = spi_block_erase_20, |
| 13099 | }, { |
| 13100 | .eraseblocks = { {32 * 1024, 8} }, |
| 13101 | .block_erase = spi_block_erase_52, |
| 13102 | }, { |
| 13103 | .eraseblocks = { {64 * 1024, 4} }, |
| 13104 | .block_erase = spi_block_erase_d8, |
| 13105 | }, { |
| 13106 | .eraseblocks = { {1024 * 256, 1} }, |
| 13107 | .block_erase = spi_block_erase_60, |
| 13108 | }, { |
| 13109 | .eraseblocks = { {1024 * 256, 1} }, |
| 13110 | .block_erase = spi_block_erase_c7, |
| 13111 | }, |
| 13112 | }, |
| 13113 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 13114 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 13115 | .write = spi_aai_write, |
| 13116 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13117 | .voltage = {1650, 1950}, |
| 13118 | }, |
| 13119 | |
| 13120 | { |
| 13121 | .vendor = "SST", |
| 13122 | .name = "SST25WF020A", |
| 13123 | .bustype = BUS_SPI, |
| 13124 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 13125 | .model_id = SST_SST25WF020A, |
| 13126 | .total_size = 256, |
| 13127 | .page_size = 256, |
| 13128 | .feature_bits = FEATURE_WRSR_WREN, |
| 13129 | .tested = TEST_UNTESTED, |
| 13130 | .probe = probe_spi_rdid, |
| 13131 | .probe_timing = TIMING_ZERO, |
| 13132 | .block_erasers = |
| 13133 | { |
| 13134 | { |
| 13135 | .eraseblocks = { {4 * 1024, 64} }, |
| 13136 | .block_erase = spi_block_erase_20, |
| 13137 | }, { |
| 13138 | .eraseblocks = { {64 * 1024, 4} }, |
| 13139 | .block_erase = spi_block_erase_d8, |
| 13140 | }, { |
| 13141 | .eraseblocks = { {256 * 1024, 1} }, |
| 13142 | .block_erase = spi_block_erase_60, |
| 13143 | }, { |
| 13144 | .eraseblocks = { {256 * 1024, 1} }, |
| 13145 | .block_erase = spi_block_erase_c7, |
| 13146 | }, |
| 13147 | }, |
| 13148 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 13149 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 13150 | .write = spi_chip_write_256, |
| 13151 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13152 | .voltage = {1650, 1950}, |
| 13153 | }, |
| 13154 | |
| 13155 | { |
| 13156 | .vendor = "SST", |
| 13157 | .name = "SST25WF040", |
| 13158 | .bustype = BUS_SPI, |
| 13159 | .manufacture_id = SST_ID, |
| 13160 | .model_id = SST_SST25WF040, |
| 13161 | .total_size = 512, |
| 13162 | .page_size = 256, |
| 13163 | .feature_bits = FEATURE_WRSR_EITHER, |
| 13164 | .tested = TEST_UNTESTED, |
| 13165 | .probe = probe_spi_rdid, |
| 13166 | .probe_timing = TIMING_ZERO, |
| 13167 | .block_erasers = |
| 13168 | { |
| 13169 | { |
| 13170 | .eraseblocks = { {4 * 1024, 128} }, |
| 13171 | .block_erase = spi_block_erase_20, |
| 13172 | }, { |
| 13173 | .eraseblocks = { {32 * 1024, 16} }, |
| 13174 | .block_erase = spi_block_erase_52, |
| 13175 | }, { |
| 13176 | .eraseblocks = { {64 * 1024, 8} }, |
| 13177 | .block_erase = spi_block_erase_d8, |
| 13178 | }, { |
| 13179 | .eraseblocks = { {1024 * 512, 1} }, |
| 13180 | .block_erase = spi_block_erase_60, |
| 13181 | }, { |
| 13182 | .eraseblocks = { {1024 * 512, 1} }, |
| 13183 | .block_erase = spi_block_erase_c7, |
| 13184 | }, |
| 13185 | }, |
| 13186 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 13187 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 13188 | .write = spi_aai_write, |
| 13189 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13190 | .voltage = {1650, 1950}, |
| 13191 | }, |
| 13192 | |
| 13193 | { |
| 13194 | .vendor = "SST", |
| 13195 | .name = "SST25WF040B", |
| 13196 | .bustype = BUS_SPI, |
| 13197 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 13198 | .model_id = SST_SST25WF040B, |
| 13199 | .total_size = 512, |
| 13200 | .page_size = 256, |
| 13201 | .feature_bits = FEATURE_WRSR_WREN, |
| 13202 | .tested = TEST_UNTESTED, |
| 13203 | .probe = probe_spi_rdid, |
| 13204 | .probe_timing = TIMING_ZERO, |
| 13205 | .block_erasers = |
| 13206 | { |
| 13207 | { |
| 13208 | .eraseblocks = { {4 * 1024, 128} }, |
| 13209 | .block_erase = spi_block_erase_20, |
| 13210 | }, { |
| 13211 | .eraseblocks = { {64 * 1024, 8} }, |
| 13212 | .block_erase = spi_block_erase_d8, |
| 13213 | }, { |
| 13214 | .eraseblocks = { {512 * 1024, 1} }, |
| 13215 | .block_erase = spi_block_erase_60, |
| 13216 | }, { |
| 13217 | .eraseblocks = { {512 * 1024, 1} }, |
| 13218 | .block_erase = spi_block_erase_c7, |
| 13219 | }, |
| 13220 | }, |
| 13221 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 13222 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 13223 | .write = spi_chip_write_256, |
| 13224 | .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */ |
| 13225 | .voltage = {1650, 1950}, |
| 13226 | }, |
| 13227 | |
| 13228 | { |
| 13229 | .vendor = "SST", |
| 13230 | .name = "SST25WF080", |
| 13231 | .bustype = BUS_SPI, |
| 13232 | .manufacture_id = SST_ID, |
| 13233 | .model_id = SST_SST25WF080, |
| 13234 | .total_size = 1024, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13235 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 13236 | .feature_bits = FEATURE_WRSR_EITHER, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 13237 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13238 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13239 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13240 | .block_erasers = |
| 13241 | { |
| 13242 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13243 | .eraseblocks = { {4 * 1024, 256} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13244 | .block_erase = spi_block_erase_20, |
| 13245 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13246 | .eraseblocks = { {32 * 1024, 32} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13247 | .block_erase = spi_block_erase_52, |
| 13248 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13249 | .eraseblocks = { {64 * 1024, 16} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13250 | .block_erase = spi_block_erase_d8, |
| 13251 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13252 | .eraseblocks = { {1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13253 | .block_erase = spi_block_erase_60, |
| 13254 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13255 | .eraseblocks = { {1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13256 | .block_erase = spi_block_erase_c7, |
| 13257 | }, |
| 13258 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13259 | .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */ |
| 13260 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 13261 | .write = spi_aai_write, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13262 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13263 | .voltage = {1650, 1950}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13264 | }, |
| 13265 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13266 | { |
| 13267 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13268 | .name = "SST25WF080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13269 | .bustype = BUS_SPI, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13270 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 13271 | .model_id = SST_SST25WF080B, |
| 13272 | .total_size = 1024, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13273 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13274 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | fcf6a8c | 2011-05-18 01:32:00 +0000 | [diff] [blame] | 13275 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13276 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13277 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13278 | .block_erasers = |
| 13279 | { |
| 13280 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13281 | .eraseblocks = { {4 * 1024, 256} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13282 | .block_erase = spi_block_erase_20, |
| 13283 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13284 | .eraseblocks = { {64 * 1024, 16} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13285 | .block_erase = spi_block_erase_d8, |
| 13286 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13287 | .eraseblocks = { {1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13288 | .block_erase = spi_block_erase_60, |
| 13289 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13290 | .eraseblocks = { {1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 13291 | .block_erase = spi_block_erase_c7, |
| 13292 | }, |
| 13293 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13294 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 13295 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 13296 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13297 | .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */ |
| 13298 | .voltage = {1650, 1950}, |
| 13299 | }, |
| 13300 | |
| 13301 | { |
| 13302 | .vendor = "SST", |
| 13303 | .name = "SST25WF512", |
| 13304 | .bustype = BUS_SPI, |
| 13305 | .manufacture_id = SST_ID, |
| 13306 | .model_id = SST_SST25WF512, |
| 13307 | .total_size = 64, |
| 13308 | .page_size = 256, |
| 13309 | .feature_bits = FEATURE_WRSR_EITHER, |
| 13310 | .tested = TEST_UNTESTED, |
| 13311 | .probe = probe_spi_rdid, |
| 13312 | .probe_timing = TIMING_ZERO, |
| 13313 | .block_erasers = |
| 13314 | { |
| 13315 | { |
| 13316 | .eraseblocks = { {4 * 1024, 16} }, |
| 13317 | .block_erase = spi_block_erase_20, |
| 13318 | }, { |
| 13319 | .eraseblocks = { {32 * 1024, 2} }, |
| 13320 | .block_erase = spi_block_erase_52, |
| 13321 | }, { |
| 13322 | .eraseblocks = { {1024 * 64, 1} }, |
| 13323 | .block_erase = spi_block_erase_60, |
| 13324 | }, { |
| 13325 | .eraseblocks = { {1024 * 64, 1} }, |
| 13326 | .block_erase = spi_block_erase_c7, |
| 13327 | }, |
| 13328 | }, |
| 13329 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 13330 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 13331 | .write = spi_aai_write, |
| 13332 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13333 | .voltage = {1650, 1950}, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 13334 | }, |
| 13335 | |
| 13336 | { |
| 13337 | .vendor = "SST", |
Wei Hu | 25584de | 2018-04-30 14:02:08 -0700 | [diff] [blame] | 13338 | .name = "SST26VF016B(A)", |
| 13339 | .bustype = BUS_SPI, |
| 13340 | .manufacture_id = SST_ID, |
| 13341 | .model_id = SST_SST26VF016B, |
| 13342 | .total_size = 2048, |
| 13343 | .page_size = 256, |
| 13344 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 13345 | .tested = TEST_OK_PREW, |
| 13346 | .probe = probe_spi_rdid, |
| 13347 | .probe_timing = TIMING_ZERO, |
| 13348 | .block_erasers = |
| 13349 | { |
| 13350 | { |
| 13351 | .eraseblocks = { {4 * 1024, 512} }, |
| 13352 | .block_erase = spi_block_erase_20, |
| 13353 | }, { |
| 13354 | .eraseblocks = { |
| 13355 | {8 * 1024, 4}, |
| 13356 | {32 * 1024, 1}, |
| 13357 | {64 * 1024, 30}, |
| 13358 | {32 * 1024, 1}, |
| 13359 | {8 * 1024, 4}, |
| 13360 | }, |
| 13361 | .block_erase = spi_block_erase_d8, |
| 13362 | }, { |
| 13363 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 13364 | .block_erase = spi_block_erase_c7, |
| 13365 | }, |
| 13366 | }, |
| 13367 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 13368 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 13369 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 13370 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 13371 | .voltage = {2700, 3600}, |
| 13372 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 13373 | |
Wei Hu | 25584de | 2018-04-30 14:02:08 -0700 | [diff] [blame] | 13374 | { |
| 13375 | .vendor = "SST", |
| 13376 | .name = "SST26VF032B(A)", |
| 13377 | .bustype = BUS_SPI, |
| 13378 | .manufacture_id = SST_ID, |
| 13379 | .model_id = SST_SST26VF032B, |
| 13380 | .total_size = 4096, |
| 13381 | .page_size = 256, |
| 13382 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 13383 | .tested = TEST_UNTESTED, |
| 13384 | .probe = probe_spi_rdid, |
| 13385 | .probe_timing = TIMING_ZERO, |
| 13386 | .block_erasers = |
| 13387 | { |
| 13388 | { |
| 13389 | .eraseblocks = { {4 * 1024, 1024} }, |
| 13390 | .block_erase = spi_block_erase_20, |
| 13391 | }, { |
| 13392 | .eraseblocks = { |
| 13393 | {8 * 1024, 4}, |
| 13394 | {32 * 1024, 1}, |
| 13395 | {64 * 1024, 62}, |
| 13396 | {32 * 1024, 1}, |
| 13397 | {8 * 1024, 4}, |
| 13398 | }, |
| 13399 | .block_erase = spi_block_erase_d8, |
| 13400 | }, { |
| 13401 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 13402 | .block_erase = spi_block_erase_c7, |
| 13403 | }, |
| 13404 | }, |
| 13405 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 13406 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 13407 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 13408 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 13409 | .voltage = {2700, 3600}, |
| 13410 | }, |
| 13411 | |
Wei Hu | 25584de | 2018-04-30 14:02:08 -0700 | [diff] [blame] | 13412 | { |
| 13413 | .vendor = "SST", |
| 13414 | .name = "SST26VF064B(A)", |
| 13415 | .bustype = BUS_SPI, |
| 13416 | .manufacture_id = SST_ID, |
| 13417 | .model_id = SST_SST26VF064B, |
| 13418 | .total_size = 8192, |
| 13419 | .page_size = 256, |
| 13420 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 13421 | .tested = TEST_OK_PREW, |
| 13422 | .probe = probe_spi_rdid, |
| 13423 | .probe_timing = TIMING_ZERO, |
| 13424 | .block_erasers = |
| 13425 | { |
| 13426 | { |
| 13427 | .eraseblocks = { {4 * 1024, 2048} }, |
| 13428 | .block_erase = spi_block_erase_20, |
| 13429 | }, { |
| 13430 | .eraseblocks = { |
| 13431 | {8 * 1024, 4}, |
| 13432 | {32 * 1024, 1}, |
| 13433 | {64 * 1024, 126}, |
| 13434 | {32 * 1024, 1}, |
| 13435 | {8 * 1024, 4}, |
| 13436 | }, |
| 13437 | .block_erase = spi_block_erase_d8, |
| 13438 | }, { |
| 13439 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 13440 | .block_erase = spi_block_erase_c7, |
| 13441 | }, |
| 13442 | }, |
| 13443 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 13444 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 13445 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 13446 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 13447 | .voltage = {2700, 3600}, |
| 13448 | }, |
| 13449 | |
| 13450 | { |
| 13451 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13452 | .name = "SST28SF040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13453 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13454 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13455 | .model_id = SST_SST28SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13456 | .total_size = 512, |
| 13457 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13458 | .feature_bits = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13459 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13460 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 13461 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13462 | .block_erasers = |
| 13463 | { |
| 13464 | { |
| 13465 | .eraseblocks = { {128, 4096} }, |
| 13466 | .block_erase = erase_sector_28sf040, |
| 13467 | }, { |
| 13468 | .eraseblocks = { {512 * 1024, 1} }, |
| 13469 | .block_erase = erase_chip_28sf040, |
| 13470 | } |
| 13471 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 13472 | .unlock = unprotect_28sf040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13473 | .write = write_28sf040, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13474 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13475 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13476 | }, |
| 13477 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13478 | { |
| 13479 | .vendor = "SST", |
| 13480 | .name = "SST29EE010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13481 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13482 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13483 | .model_id = SST_SST29EE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13484 | .total_size = 128, |
| 13485 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13486 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 13487 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13488 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13489 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13490 | .block_erasers = |
| 13491 | { |
| 13492 | { |
| 13493 | .eraseblocks = { {128 * 1024, 1} }, |
| 13494 | .block_erase = erase_chip_block_jedec, |
| 13495 | } |
| 13496 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13497 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13498 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13499 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13500 | }, |
| 13501 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13502 | { |
| 13503 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13504 | .name = "SST29EE020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13505 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13506 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13507 | .model_id = SST_SST29EE020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13508 | .total_size = 256, |
| 13509 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13510 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 13511 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13512 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13513 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13514 | .block_erasers = |
| 13515 | { |
| 13516 | { |
| 13517 | .eraseblocks = { {256 * 1024, 1} }, |
| 13518 | .block_erase = erase_chip_block_jedec, |
| 13519 | } |
| 13520 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13521 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13522 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13523 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13524 | }, |
| 13525 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13526 | { |
| 13527 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13528 | .name = "SST29LE010", |
| 13529 | .bustype = BUS_PARALLEL, |
| 13530 | .manufacture_id = SST_ID, |
| 13531 | .model_id = SST_SST29LE010, |
| 13532 | .total_size = 128, |
| 13533 | .page_size = 128, |
| 13534 | .feature_bits = FEATURE_LONG_RESET, |
| 13535 | .tested = TEST_UNTESTED, |
| 13536 | .probe = probe_jedec, |
| 13537 | .probe_timing = 10, |
| 13538 | .block_erasers = |
| 13539 | { |
| 13540 | { |
| 13541 | .eraseblocks = { {128 * 1024, 1} }, |
| 13542 | .block_erase = erase_chip_block_jedec, |
| 13543 | } |
| 13544 | }, |
| 13545 | .write = write_jedec, |
| 13546 | .read = read_memmapped, |
| 13547 | .voltage = {3000, 3600}, |
| 13548 | }, |
| 13549 | |
| 13550 | { |
| 13551 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13552 | .name = "SST29LE020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13553 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13554 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13555 | .model_id = SST_SST29LE020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13556 | .total_size = 256, |
| 13557 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13558 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 13559 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13560 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13561 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13562 | .block_erasers = |
| 13563 | { |
| 13564 | { |
| 13565 | .eraseblocks = { {256 * 1024, 1} }, |
| 13566 | .block_erase = erase_chip_block_jedec, |
| 13567 | } |
| 13568 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13569 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13570 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13571 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13572 | }, |
| 13573 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13574 | { |
| 13575 | .vendor = "SST", |
| 13576 | .name = "SST39SF010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13577 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13578 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13579 | .model_id = SST_SST39SF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13580 | .total_size = 128, |
| 13581 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13582 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 13583 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13584 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 13585 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13586 | .block_erasers = |
| 13587 | { |
| 13588 | { |
| 13589 | .eraseblocks = { {4 * 1024, 32} }, |
| 13590 | .block_erase = erase_sector_jedec, |
| 13591 | }, { |
| 13592 | .eraseblocks = { {128 * 1024, 1} }, |
| 13593 | .block_erase = erase_chip_block_jedec, |
| 13594 | } |
| 13595 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13596 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13597 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13598 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13599 | }, |
| 13600 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13601 | { |
| 13602 | .vendor = "SST", |
| 13603 | .name = "SST39SF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13604 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13605 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13606 | .model_id = SST_SST39SF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13607 | .total_size = 256, |
| 13608 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13609 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 19f46f2 | 2011-06-18 22:56:14 +0000 | [diff] [blame] | 13610 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13611 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13612 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13613 | .block_erasers = |
| 13614 | { |
| 13615 | { |
| 13616 | .eraseblocks = { {4 * 1024, 64} }, |
| 13617 | .block_erase = erase_sector_jedec, |
| 13618 | }, { |
| 13619 | .eraseblocks = { {256 * 1024, 1} }, |
| 13620 | .block_erase = erase_chip_block_jedec, |
| 13621 | } |
| 13622 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13623 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13624 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13625 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13626 | }, |
| 13627 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13628 | { |
| 13629 | .vendor = "SST", |
| 13630 | .name = "SST39SF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13631 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13632 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13633 | .model_id = SST_SST39SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13634 | .total_size = 512, |
| 13635 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13636 | .feature_bits = FEATURE_EITHER_RESET, |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 13637 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13638 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13639 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13640 | .block_erasers = |
| 13641 | { |
| 13642 | { |
| 13643 | .eraseblocks = { {4 * 1024, 128} }, |
| 13644 | .block_erase = erase_sector_jedec, |
| 13645 | }, { |
| 13646 | .eraseblocks = { {512 * 1024, 1} }, |
| 13647 | .block_erase = erase_chip_block_jedec, |
| 13648 | } |
| 13649 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13650 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13651 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13652 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13653 | }, |
| 13654 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13655 | { |
| 13656 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13657 | .name = "SST39SF512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13658 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13659 | .manufacture_id = SST_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13660 | .model_id = SST_SST39SF512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13661 | .total_size = 64, |
| 13662 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13663 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 13664 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13665 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13666 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13667 | .block_erasers = |
| 13668 | { |
| 13669 | { |
| 13670 | .eraseblocks = { {4 * 1024, 16} }, |
| 13671 | .block_erase = erase_sector_jedec, |
| 13672 | }, { |
| 13673 | .eraseblocks = { {64 * 1024, 1} }, |
| 13674 | .block_erase = erase_chip_block_jedec, |
| 13675 | } |
| 13676 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13677 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13678 | .read = read_memmapped, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13679 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13680 | }, |
| 13681 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13682 | { |
| 13683 | .vendor = "SST", |
| 13684 | .name = "SST39VF010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13685 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13686 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13687 | .model_id = SST_SST39VF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13688 | .total_size = 128, |
| 13689 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13690 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 13691 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13692 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13693 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13694 | .block_erasers = |
| 13695 | { |
| 13696 | { |
| 13697 | .eraseblocks = { {4 * 1024, 32} }, |
| 13698 | .block_erase = erase_sector_jedec, |
| 13699 | }, { |
| 13700 | .eraseblocks = { {128 * 1024, 1} }, |
| 13701 | .block_erase = erase_chip_block_jedec, |
| 13702 | } |
| 13703 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13704 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13705 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13706 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13707 | }, |
| 13708 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13709 | { |
| 13710 | .vendor = "SST", |
| 13711 | .name = "SST39VF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13712 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13713 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13714 | .model_id = SST_SST39VF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13715 | .total_size = 256, |
| 13716 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13717 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 13718 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13719 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13720 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13721 | .block_erasers = |
| 13722 | { |
| 13723 | { |
| 13724 | .eraseblocks = { {4 * 1024, 64} }, |
| 13725 | .block_erase = erase_sector_jedec, |
| 13726 | }, { |
| 13727 | .eraseblocks = { {256 * 1024, 1} }, |
| 13728 | .block_erase = erase_chip_block_jedec, |
| 13729 | } |
| 13730 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13731 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13732 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13733 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13734 | }, |
| 13735 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13736 | { |
| 13737 | .vendor = "SST", |
| 13738 | .name = "SST39VF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13739 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13740 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13741 | .model_id = SST_SST39VF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13742 | .total_size = 512, |
| 13743 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13744 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 13745 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13746 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13747 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13748 | .block_erasers = |
| 13749 | { |
| 13750 | { |
| 13751 | .eraseblocks = { {4 * 1024, 128} }, |
| 13752 | .block_erase = erase_sector_jedec, |
| 13753 | }, { |
| 13754 | .eraseblocks = { {512 * 1024, 1} }, |
| 13755 | .block_erase = erase_chip_block_jedec, |
| 13756 | } |
| 13757 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13758 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13759 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13760 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 90eff15 | 2008-12-08 23:51:45 +0000 | [diff] [blame] | 13761 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13762 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13763 | { |
| 13764 | .vendor = "SST", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 13765 | .name = "SST39VF080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13766 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 13767 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13768 | .model_id = SST_SST39VF080, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 13769 | .total_size = 1024, |
| 13770 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13771 | .feature_bits = FEATURE_EITHER_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 13772 | .tested = TEST_UNTESTED, |
| 13773 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 13774 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13775 | .block_erasers = |
| 13776 | { |
| 13777 | { |
| 13778 | .eraseblocks = { {4 * 1024, 256} }, |
| 13779 | .block_erase = erase_sector_jedec, |
| 13780 | }, { |
| 13781 | .eraseblocks = { {64 * 1024, 16} }, |
| 13782 | .block_erase = erase_block_jedec, |
| 13783 | }, { |
| 13784 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13785 | .block_erase = erase_chip_block_jedec, |
| 13786 | } |
| 13787 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13788 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13789 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13790 | .voltage = {2700, 3600}, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 13791 | }, |
| 13792 | |
| 13793 | { |
| 13794 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13795 | .name = "SST39VF512", |
| 13796 | .bustype = BUS_PARALLEL, |
| 13797 | .manufacture_id = SST_ID, |
| 13798 | .model_id = SST_SST39VF512, |
| 13799 | .total_size = 64, |
| 13800 | .page_size = 4096, |
| 13801 | .feature_bits = FEATURE_EITHER_RESET, |
| 13802 | .tested = TEST_OK_PREW, |
| 13803 | .probe = probe_jedec, |
| 13804 | .probe_timing = 1, /* 150 ns */ |
| 13805 | .block_erasers = |
| 13806 | { |
| 13807 | { |
| 13808 | .eraseblocks = { {4 * 1024, 16} }, |
| 13809 | .block_erase = erase_sector_jedec, |
| 13810 | }, { |
| 13811 | .eraseblocks = { {64 * 1024, 1} }, |
| 13812 | .block_erase = erase_chip_block_jedec, |
| 13813 | } |
| 13814 | }, |
| 13815 | .write = write_jedec_1, |
| 13816 | .read = read_memmapped, |
| 13817 | .voltage = {2700, 3600}, |
| 13818 | }, |
| 13819 | |
| 13820 | { |
| 13821 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13822 | .name = "SST49LF002A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13823 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13824 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13825 | .model_id = SST_SST49LF002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13826 | .total_size = 256, |
| 13827 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13828 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 13829 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13830 | .probe = probe_jedec, |
| 13831 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13832 | .block_erasers = |
| 13833 | { |
| 13834 | { |
| 13835 | .eraseblocks = { {4 * 1024, 64} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13836 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13837 | }, { |
| 13838 | .eraseblocks = { {16 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13839 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13840 | }, { |
| 13841 | .eraseblocks = { {256 * 1024, 1} }, |
| 13842 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 13843 | } |
| 13844 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13845 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13846 | .unlock = unlock_sst_fwhub, |
| 13847 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13848 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13849 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13850 | }, |
| 13851 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13852 | { |
| 13853 | .vendor = "SST", |
| 13854 | .name = "SST49LF003A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13855 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13856 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13857 | .model_id = SST_SST49LF003A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13858 | .total_size = 384, |
| 13859 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13860 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 13861 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13862 | .probe = probe_jedec, |
| 13863 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13864 | .block_erasers = |
| 13865 | { |
| 13866 | { |
| 13867 | .eraseblocks = { {4 * 1024, 96} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13868 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13869 | }, { |
| 13870 | .eraseblocks = { {64 * 1024, 6} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13871 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13872 | }, { |
| 13873 | .eraseblocks = { {384 * 1024, 1} }, |
| 13874 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 13875 | } |
| 13876 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13877 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13878 | .unlock = unlock_sst_fwhub, |
| 13879 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13880 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13881 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13882 | }, |
| 13883 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13884 | { |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 13885 | /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB) |
| 13886 | * and is only honored for 64k block erase, but not 4k sector erase. |
| 13887 | */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13888 | .vendor = "SST", |
| 13889 | .name = "SST49LF004A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13890 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13891 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13892 | .model_id = SST_SST49LF004A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13893 | .total_size = 512, |
| 13894 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13895 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 13896 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13897 | .probe = probe_jedec, |
| 13898 | .probe_timing = 1, /* 150 ns */ |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 13899 | .block_erasers = |
| 13900 | { |
| 13901 | { |
| 13902 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13903 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 13904 | }, { |
| 13905 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13906 | .block_erase = erase_block_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 13907 | }, { |
| 13908 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13909 | .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] | 13910 | }, |
| 13911 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13912 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13913 | .unlock = unlock_sst_fwhub, |
| 13914 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13915 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13916 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13917 | }, |
| 13918 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13919 | { |
| 13920 | .vendor = "SST", |
| 13921 | .name = "SST49LF004C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13922 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13923 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13924 | .model_id = SST_SST49LF004C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13925 | .total_size = 512, |
| 13926 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13927 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13928 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13929 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 13930 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13931 | .block_erasers = |
| 13932 | { |
| 13933 | { |
| 13934 | .eraseblocks = { {4 * 1024, 128} }, |
| 13935 | .block_erase = erase_sector_49lfxxxc, |
| 13936 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13937 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13938 | {64 * 1024, 7}, |
| 13939 | {32 * 1024, 1}, |
| 13940 | {8 * 1024, 2}, |
| 13941 | {16 * 1024, 1}, |
| 13942 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 13943 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13944 | } |
| 13945 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13946 | .printlock = printlock_regspace2_block_eraser_1, |
| 13947 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 13948 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13949 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13950 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13951 | }, |
| 13952 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13953 | { |
| 13954 | .vendor = "SST", |
| 13955 | .name = "SST49LF008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13956 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13957 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13958 | .model_id = SST_SST49LF008A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13959 | .total_size = 1024, |
| 13960 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13961 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 13962 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13963 | .probe = probe_jedec, |
| 13964 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13965 | .block_erasers = |
| 13966 | { |
| 13967 | { |
| 13968 | .eraseblocks = { {4 * 1024, 256} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13969 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13970 | }, { |
| 13971 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13972 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13973 | }, { |
| 13974 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13975 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 13976 | } |
| 13977 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13978 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 13979 | .unlock = unlock_sst_fwhub, |
| 13980 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13981 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13982 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13983 | }, |
| 13984 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13985 | { |
| 13986 | .vendor = "SST", |
| 13987 | .name = "SST49LF008C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13988 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13989 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13990 | .model_id = SST_SST49LF008C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13991 | .total_size = 1024, |
| 13992 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13993 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13994 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13995 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 13996 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 13997 | .block_erasers = |
| 13998 | { |
| 13999 | { |
| 14000 | .eraseblocks = { {4 * 1024, 256} }, |
| 14001 | .block_erase = erase_sector_49lfxxxc, |
| 14002 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14003 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14004 | {64 * 1024, 15}, |
| 14005 | {32 * 1024, 1}, |
| 14006 | {8 * 1024, 2}, |
| 14007 | {16 * 1024, 1}, |
| 14008 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 14009 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14010 | } |
| 14011 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14012 | .printlock = printlock_regspace2_block_eraser_1, |
| 14013 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 14014 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14015 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14016 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14017 | }, |
| 14018 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14019 | { |
| 14020 | .vendor = "SST", |
| 14021 | .name = "SST49LF016C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14022 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14023 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14024 | .model_id = SST_SST49LF016C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14025 | .total_size = 2048, |
| 14026 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14027 | .feature_bits = FEATURE_REGISTERMAP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 14028 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14029 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14030 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14031 | .block_erasers = |
| 14032 | { |
| 14033 | { |
| 14034 | .eraseblocks = { {4 * 1024, 512} }, |
| 14035 | .block_erase = erase_sector_49lfxxxc, |
| 14036 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14037 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14038 | {64 * 1024, 31}, |
| 14039 | {32 * 1024, 1}, |
| 14040 | {8 * 1024, 2}, |
| 14041 | {16 * 1024, 1}, |
| 14042 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 14043 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14044 | } |
| 14045 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14046 | .printlock = printlock_regspace2_block_eraser_1, |
| 14047 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 14048 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14049 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14050 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14051 | }, |
| 14052 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14053 | { |
| 14054 | .vendor = "SST", |
| 14055 | .name = "SST49LF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14056 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14057 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14058 | .model_id = SST_SST49LF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14059 | .total_size = 256, |
| 14060 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14061 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 14062 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14063 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14064 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14065 | .block_erasers = |
| 14066 | { |
| 14067 | { |
| 14068 | .eraseblocks = { {4 * 1024, 64} }, |
| 14069 | .block_erase = erase_sector_jedec, |
| 14070 | }, { |
| 14071 | .eraseblocks = { {16 * 1024, 16} }, |
| 14072 | .block_erase = erase_block_jedec, |
| 14073 | }, { |
| 14074 | .eraseblocks = { {256 * 1024, 1} }, |
| 14075 | .block_erase = NULL, |
| 14076 | } |
| 14077 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14078 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14079 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14080 | .voltage = {3000, 3600}, |
Sven Schnelle | c208dfb | 2009-01-07 12:35:09 +0000 | [diff] [blame] | 14081 | }, |
| 14082 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14083 | { |
| 14084 | .vendor = "SST", |
| 14085 | .name = "SST49LF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14086 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14087 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14088 | .model_id = SST_SST49LF020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14089 | .total_size = 256, |
Carl-Daniel Hailfinger | da65432 | 2009-07-23 01:44:38 +0000 | [diff] [blame] | 14090 | .page_size = 4 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14091 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 14092 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14093 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14094 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14095 | .block_erasers = |
| 14096 | { |
| 14097 | { |
| 14098 | .eraseblocks = { {4 * 1024, 64} }, |
| 14099 | .block_erase = erase_sector_jedec, |
| 14100 | }, { |
| 14101 | .eraseblocks = { {16 * 1024, 16} }, |
| 14102 | .block_erase = erase_block_jedec, |
| 14103 | }, { |
| 14104 | .eraseblocks = { {256 * 1024, 1} }, |
| 14105 | .block_erase = NULL, |
| 14106 | } |
| 14107 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14108 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14109 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14110 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14111 | }, |
| 14112 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14113 | { |
| 14114 | .vendor = "SST", |
| 14115 | .name = "SST49LF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14116 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14117 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14118 | .model_id = SST_SST49LF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14119 | .total_size = 512, |
| 14120 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14121 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 14122 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14123 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14124 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14125 | .block_erasers = |
| 14126 | { |
| 14127 | { |
| 14128 | .eraseblocks = { {4 * 1024, 128} }, |
| 14129 | .block_erase = erase_sector_jedec, |
| 14130 | }, { |
| 14131 | .eraseblocks = { {64 * 1024, 8} }, |
| 14132 | .block_erase = erase_block_jedec, |
| 14133 | }, { |
| 14134 | .eraseblocks = { {512 * 1024, 1} }, |
| 14135 | .block_erase = NULL, |
| 14136 | } |
| 14137 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14138 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14139 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14140 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14141 | }, |
| 14142 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14143 | { |
| 14144 | .vendor = "SST", |
| 14145 | .name = "SST49LF040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14146 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14147 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14148 | .model_id = SST_SST49LF040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14149 | .total_size = 512, |
| 14150 | .page_size = 64 * 1024, |
Joshua Roys | a84b0bd | 2010-08-16 22:12:39 +0000 | [diff] [blame] | 14151 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 14152 | .tested = TEST_OK_PREW, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14153 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14154 | .probe_timing = 1, /* 150ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14155 | .block_erasers = |
| 14156 | { |
| 14157 | { |
| 14158 | .eraseblocks = { {4 * 1024, 128} }, |
| 14159 | .block_erase = erase_sector_jedec, |
| 14160 | }, { |
| 14161 | .eraseblocks = { {64 * 1024, 8} }, |
| 14162 | .block_erase = erase_block_jedec, |
| 14163 | }, { |
| 14164 | .eraseblocks = { {512 * 1024, 1} }, |
| 14165 | .block_erase = NULL, |
| 14166 | } |
| 14167 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14168 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14169 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14170 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14171 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14172 | }, |
| 14173 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14174 | { |
| 14175 | .vendor = "SST", |
| 14176 | .name = "SST49LF080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14177 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14178 | .manufacture_id = SST_ID, |
Elyes HAOUAS | 124ef38 | 2018-03-27 12:15:09 +0200 | [diff] [blame] | 14179 | .model_id = SST_SST49LF080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14180 | .total_size = 1024, |
| 14181 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14182 | .feature_bits = FEATURE_EITHER_RESET, |
Brandon Dowdy | f07bf32 | 2011-03-06 18:31:11 +0000 | [diff] [blame] | 14183 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14184 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14185 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14186 | .block_erasers = |
| 14187 | { |
| 14188 | { |
| 14189 | .eraseblocks = { {4 * 1024, 256} }, |
| 14190 | .block_erase = erase_sector_jedec, |
| 14191 | }, { |
| 14192 | .eraseblocks = { {64 * 1024, 16} }, |
| 14193 | .block_erase = erase_block_jedec, |
| 14194 | }, { |
| 14195 | .eraseblocks = { {1024 * 1024, 1} }, |
| 14196 | .block_erase = NULL, |
| 14197 | } |
| 14198 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14199 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14200 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14201 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14202 | }, |
| 14203 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14204 | { |
| 14205 | .vendor = "SST", |
| 14206 | .name = "SST49LF160C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14207 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14208 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14209 | .model_id = SST_SST49LF160C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14210 | .total_size = 2048, |
| 14211 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14212 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14213 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14214 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14215 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14216 | .block_erasers = |
| 14217 | { |
| 14218 | { |
| 14219 | .eraseblocks = { {4 * 1024, 512} }, |
| 14220 | .block_erase = erase_sector_49lfxxxc, |
| 14221 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14222 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14223 | {64 * 1024, 31}, |
| 14224 | {32 * 1024, 1}, |
| 14225 | {8 * 1024, 2}, |
| 14226 | {16 * 1024, 1}, |
| 14227 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 14228 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14229 | } |
| 14230 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14231 | .printlock = printlock_regspace2_block_eraser_1, |
| 14232 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 14233 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14234 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14235 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14236 | }, |
| 14237 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14238 | { |
| 14239 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14240 | .name = "M29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14241 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14242 | .manufacture_id = ST_ID, |
| 14243 | .model_id = ST_M29F002B, |
| 14244 | .total_size = 256, |
| 14245 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14246 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14247 | .tested = TEST_UNTESTED, |
| 14248 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14249 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14250 | .block_erasers = |
| 14251 | { |
| 14252 | { |
| 14253 | .eraseblocks = { |
| 14254 | {16 * 1024, 1}, |
| 14255 | {8 * 1024, 2}, |
| 14256 | {32 * 1024, 1}, |
| 14257 | {64 * 1024, 3}, |
| 14258 | }, |
| 14259 | .block_erase = erase_sector_jedec, |
| 14260 | }, { |
| 14261 | .eraseblocks = { {256 * 1024, 1} }, |
| 14262 | .block_erase = erase_chip_block_jedec, |
| 14263 | } |
| 14264 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14265 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14266 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 14267 | .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] | 14268 | }, |
| 14269 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14270 | { |
| 14271 | .vendor = "ST", |
| 14272 | .name = "M29F002T/NT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14273 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14274 | .manufacture_id = ST_ID, |
| 14275 | .model_id = ST_M29F002T, |
| 14276 | .total_size = 256, |
| 14277 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14278 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 14279 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14280 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14281 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14282 | .block_erasers = |
| 14283 | { |
| 14284 | { |
| 14285 | .eraseblocks = { |
| 14286 | {64 * 1024, 3}, |
| 14287 | {32 * 1024, 1}, |
| 14288 | {8 * 1024, 2}, |
| 14289 | {16 * 1024, 1}, |
| 14290 | }, |
| 14291 | .block_erase = erase_sector_jedec, |
| 14292 | }, { |
| 14293 | .eraseblocks = { {256 * 1024, 1} }, |
| 14294 | .block_erase = erase_chip_block_jedec, |
| 14295 | } |
| 14296 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14297 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14298 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 14299 | .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] | 14300 | }, |
| 14301 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14302 | { |
| 14303 | .vendor = "ST", |
| 14304 | .name = "M29F040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14305 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14306 | .manufacture_id = ST_ID, |
| 14307 | .model_id = ST_M29F040B, |
| 14308 | .total_size = 512, |
| 14309 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14310 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 14311 | .tested = TEST_UNTESTED, |
| 14312 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 14313 | .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14314 | .block_erasers = |
| 14315 | { |
| 14316 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14317 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14318 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14319 | }, { |
| 14320 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14321 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14322 | } |
| 14323 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14324 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14325 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14326 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14327 | }, |
| 14328 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14329 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14330 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14331 | .vendor = "ST", |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 14332 | .name = "M29F400BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14333 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 14334 | .manufacture_id = ST_ID, |
| 14335 | .model_id = ST_M29F400BB, |
| 14336 | .total_size = 512, |
| 14337 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14338 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 14339 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14340 | .probe = probe_jedec, |
| 14341 | .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] | 14342 | .block_erasers = |
| 14343 | { |
| 14344 | { |
| 14345 | .eraseblocks = { |
| 14346 | {16 * 1024, 1}, |
| 14347 | {8 * 1024, 2}, |
| 14348 | {32 * 1024, 1}, |
| 14349 | {64 * 1024, 7}, |
| 14350 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14351 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 14352 | }, { |
| 14353 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14354 | .block_erase = erase_chip_block_jedec, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 14355 | } |
| 14356 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14357 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 14358 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14359 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 14360 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 14361 | |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 14362 | { |
| 14363 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
| 14364 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14365 | .name = "M29F400BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14366 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14367 | .manufacture_id = ST_ID, |
| 14368 | .model_id = ST_M29F400BT, |
| 14369 | .total_size = 512, |
| 14370 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14371 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14372 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14373 | .probe = probe_jedec, |
| 14374 | .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] | 14375 | .block_erasers = |
| 14376 | { |
| 14377 | { |
| 14378 | .eraseblocks = { |
| 14379 | {64 * 1024, 7}, |
| 14380 | {32 * 1024, 1}, |
| 14381 | {8 * 1024, 2}, |
| 14382 | {16 * 1024, 1}, |
| 14383 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14384 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14385 | }, { |
| 14386 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14387 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14388 | } |
| 14389 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 14390 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14391 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14392 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14393 | }, |
| 14394 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14395 | { |
| 14396 | .vendor = "ST", |
| 14397 | .name = "M29W010B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14398 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14399 | .manufacture_id = ST_ID, |
| 14400 | .model_id = ST_M29W010B, |
| 14401 | .total_size = 128, |
| 14402 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14403 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14404 | .tested = TEST_UNTESTED, |
| 14405 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14406 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14407 | .block_erasers = |
| 14408 | { |
| 14409 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14410 | .eraseblocks = { {16 * 1024, 8} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14411 | .block_erase = erase_sector_jedec, |
| 14412 | }, { |
| 14413 | .eraseblocks = { {128 * 1024, 1} }, |
| 14414 | .block_erase = erase_chip_block_jedec, |
| 14415 | } |
| 14416 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14417 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14418 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14419 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14420 | }, |
| 14421 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14422 | { |
| 14423 | .vendor = "ST", |
| 14424 | .name = "M29W040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14425 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14426 | .manufacture_id = ST_ID, |
| 14427 | .model_id = ST_M29W040B, |
| 14428 | .total_size = 512, |
| 14429 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14430 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14431 | .tested = TEST_UNTESTED, |
| 14432 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14433 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14434 | .block_erasers = |
| 14435 | { |
| 14436 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14437 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14438 | .block_erase = erase_sector_jedec, |
| 14439 | }, { |
| 14440 | .eraseblocks = { {512 * 1024, 1} }, |
| 14441 | .block_erase = erase_chip_block_jedec, |
| 14442 | } |
| 14443 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14444 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14445 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14446 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14447 | }, |
| 14448 | |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 14449 | { |
| 14450 | .vendor = "ST", |
| 14451 | .name = "M29W512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14452 | .bustype = BUS_PARALLEL, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 14453 | .manufacture_id = ST_ID, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 14454 | .model_id = ST_M29W512B, |
| 14455 | .total_size = 64, |
| 14456 | .page_size = 64 * 1024, |
| 14457 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14458 | .tested = TEST_OK_PREW, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 14459 | .probe = probe_jedec, |
| 14460 | .probe_timing = TIMING_ZERO, |
| 14461 | .block_erasers = |
| 14462 | { |
| 14463 | { |
| 14464 | .eraseblocks = { {64 * 1024, 1} }, |
| 14465 | .block_erase = erase_chip_block_jedec, |
| 14466 | } |
| 14467 | }, |
| 14468 | .write = write_jedec_1, |
| 14469 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14470 | .voltage = {2700, 3600}, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 14471 | }, |
Jeffrey A. Kent | ba7c922 | 2010-02-01 05:49:46 +0000 | [diff] [blame] | 14472 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14473 | { |
| 14474 | .vendor = "ST", |
| 14475 | .name = "M50FLW040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14476 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14477 | .manufacture_id = ST_ID, |
| 14478 | .model_id = ST_M50FLW040A, |
| 14479 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14480 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14481 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14482 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14483 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 14484 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14485 | .block_erasers = |
| 14486 | { |
| 14487 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14488 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14489 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14490 | {64 * 1024, 5}, /* block */ |
| 14491 | {4 * 1024, 16}, /* sector */ |
| 14492 | {4 * 1024, 16}, /* sector */ |
| 14493 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 14494 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14495 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14496 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14497 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14498 | } |
| 14499 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14500 | .unlock = unlock_regspace2_uniform_64k, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 14501 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14502 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14503 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14504 | }, |
| 14505 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14506 | { |
| 14507 | .vendor = "ST", |
| 14508 | .name = "M50FLW040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14509 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14510 | .manufacture_id = ST_ID, |
| 14511 | .model_id = ST_M50FLW040B, |
| 14512 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14513 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14514 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14515 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14516 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 14517 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14518 | .block_erasers = |
| 14519 | { |
| 14520 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14521 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14522 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14523 | {4 * 1024, 16}, /* sector */ |
| 14524 | {64 * 1024, 5}, /* block */ |
| 14525 | {4 * 1024, 16}, /* sector */ |
| 14526 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 14527 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14528 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14529 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14530 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14531 | } |
| 14532 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14533 | .unlock = unlock_regspace2_uniform_64k, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 14534 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14535 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14536 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14537 | }, |
| 14538 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14539 | { |
| 14540 | .vendor = "ST", |
| 14541 | .name = "M50FLW080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14542 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14543 | .manufacture_id = ST_ID, |
| 14544 | .model_id = ST_M50FLW080A, |
| 14545 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14546 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14547 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14548 | .tested = TEST_OK_PR, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14549 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 14550 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14551 | .block_erasers = |
| 14552 | { |
| 14553 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14554 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14555 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14556 | {64 * 1024, 13}, /* block */ |
| 14557 | {4 * 1024, 16}, /* sector */ |
| 14558 | {4 * 1024, 16}, /* sector */ |
| 14559 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 14560 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14561 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14562 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14563 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14564 | } |
| 14565 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14566 | .printlock = printlock_regspace2_block_eraser_0, |
| 14567 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14568 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14569 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14570 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14571 | }, |
| 14572 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14573 | { |
| 14574 | .vendor = "ST", |
| 14575 | .name = "M50FLW080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14576 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14577 | .manufacture_id = ST_ID, |
| 14578 | .model_id = ST_M50FLW080B, |
| 14579 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14580 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14581 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14582 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14583 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 14584 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14585 | .block_erasers = |
| 14586 | { |
| 14587 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14588 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14589 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14590 | {4 * 1024, 16}, /* sector */ |
| 14591 | {64 * 1024, 13}, /* block */ |
| 14592 | {4 * 1024, 16}, /* sector */ |
| 14593 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 14594 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 14595 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14596 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14597 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14598 | } |
| 14599 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14600 | .printlock = printlock_regspace2_block_eraser_0, |
| 14601 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14602 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14603 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14604 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14605 | }, |
| 14606 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14607 | { |
| 14608 | .vendor = "ST", |
| 14609 | .name = "M50FW002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14610 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14611 | .manufacture_id = ST_ID, |
| 14612 | .model_id = ST_M50FW002, |
| 14613 | .total_size = 256, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14614 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14615 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14616 | .tested = TEST_OK_PR, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14617 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14618 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14619 | .block_erasers = |
| 14620 | { |
| 14621 | { |
| 14622 | .eraseblocks = { |
| 14623 | {64 * 1024, 3}, |
| 14624 | {32 * 1024, 1}, |
| 14625 | {8 * 1024, 2}, |
| 14626 | {16 * 1024, 1}, |
| 14627 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14628 | .block_erase = erase_block_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14629 | }, { |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 14630 | .eraseblocks = { {256 * 1024, 1} }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14631 | .block_erase = NULL, /* Only in A/A mux mode */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14632 | } |
| 14633 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14634 | .printlock = printlock_regspace2_block_eraser_0, |
| 14635 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14636 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14637 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14638 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14639 | }, |
| 14640 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14641 | { |
| 14642 | .vendor = "ST", |
| 14643 | .name = "M50FW016", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14644 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14645 | .manufacture_id = ST_ID, |
| 14646 | .model_id = ST_M50FW016, |
| 14647 | .total_size = 2048, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14648 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14649 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14650 | .tested = TEST_UNTESTED, |
| 14651 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14652 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14653 | .block_erasers = |
| 14654 | { |
| 14655 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14656 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14657 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14658 | } |
| 14659 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14660 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14661 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14662 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14663 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14664 | }, |
| 14665 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14666 | { |
| 14667 | .vendor = "ST", |
| 14668 | .name = "M50FW040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14669 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14670 | .manufacture_id = ST_ID, |
| 14671 | .model_id = ST_M50FW040, |
| 14672 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14673 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14674 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14675 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14676 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14677 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14678 | .block_erasers = |
| 14679 | { |
| 14680 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14681 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14682 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14683 | } |
| 14684 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14685 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14686 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14687 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14688 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14689 | }, |
| 14690 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14691 | { |
| 14692 | .vendor = "ST", |
| 14693 | .name = "M50FW080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14694 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14695 | .manufacture_id = ST_ID, |
| 14696 | .model_id = ST_M50FW080, |
| 14697 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14698 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14699 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14700 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14701 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14702 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14703 | .block_erasers = |
| 14704 | { |
| 14705 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14706 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14707 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14708 | } |
| 14709 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14710 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14711 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14712 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14713 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14714 | }, |
| 14715 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14716 | { |
| 14717 | .vendor = "ST", |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 14718 | .name = "M50LPW080", |
| 14719 | .bustype = BUS_LPC, /* A/A Mux */ |
| 14720 | .manufacture_id = ST_ID, |
| 14721 | .model_id = ST_M50LPW080, |
| 14722 | .total_size = 1024, |
| 14723 | .page_size = 0, |
| 14724 | .feature_bits = FEATURE_REGISTERMAP, |
| 14725 | .tested = TEST_UNTESTED, |
| 14726 | .probe = probe_82802ab, |
| 14727 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 14728 | .block_erasers = |
| 14729 | { |
| 14730 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14731 | .eraseblocks = { {64 * 1024, 16} }, |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 14732 | .block_erase = erase_block_82802ab, |
| 14733 | } |
| 14734 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14735 | .unlock = unlock_regspace2_uniform_64k, |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 14736 | .write = write_82802ab, |
| 14737 | .read = read_memmapped, |
| 14738 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
| 14739 | }, |
| 14740 | |
| 14741 | { |
| 14742 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14743 | .name = "M50LPW116", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14744 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14745 | .manufacture_id = ST_ID, |
| 14746 | .model_id = ST_M50LPW116, |
| 14747 | .total_size = 2048, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 14748 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14749 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14750 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14751 | .probe = probe_82802ab, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14752 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14753 | .block_erasers = |
| 14754 | { |
| 14755 | { |
| 14756 | .eraseblocks = { |
| 14757 | {4 * 1024, 16}, |
| 14758 | {64 * 1024, 30}, |
| 14759 | {32 * 1024, 1}, |
| 14760 | {8 * 1024, 2}, |
| 14761 | {16 * 1024, 1}, |
| 14762 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14763 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 14764 | } |
| 14765 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14766 | .printlock = printlock_regspace2_block_eraser_0, |
| 14767 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 14768 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14769 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14770 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14771 | }, |
| 14772 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14773 | { |
Konstantin Grudnev | 3d8868c | 2019-07-23 00:48:54 +0300 | [diff] [blame] | 14774 | .vendor = "ST", |
| 14775 | .name = "M95M02", |
| 14776 | .bustype = BUS_SPI, |
| 14777 | .manufacture_id = ST_ID, |
| 14778 | .model_id = ST_M95M02, |
| 14779 | .total_size = 256, |
| 14780 | .page_size = 256, |
| 14781 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_NO_ERASE | FEATURE_ERASED_ZERO, |
| 14782 | .tested = TEST_OK_PREW, |
| 14783 | .probe = probe_spi_st95, |
| 14784 | .probe_timing = TIMING_ZERO, |
| 14785 | .block_erasers = |
| 14786 | { |
| 14787 | { |
| 14788 | .eraseblocks = { {256 * 1024, 1} }, |
| 14789 | .block_erase = spi_block_erase_emulation, |
| 14790 | } |
| 14791 | }, |
| 14792 | |
| 14793 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 14794 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 14795 | .write = spi_chip_write_256, |
| 14796 | .read = spi_chip_read, |
| 14797 | .voltage = {2500, 5500}, |
| 14798 | }, |
| 14799 | |
| 14800 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14801 | .vendor = "Sanyo", |
| 14802 | .name = "LE25FU106B", |
| 14803 | .bustype = BUS_SPI, |
| 14804 | .manufacture_id = SANYO_ID, |
| 14805 | .model_id = SANYO_LE25FU106B, |
| 14806 | .total_size = 128, |
| 14807 | .page_size = 256, |
| 14808 | .feature_bits = FEATURE_WRSR_WREN, |
| 14809 | .tested = TEST_UNTESTED, |
| 14810 | .probe = probe_spi_res2, |
| 14811 | .probe_timing = TIMING_ZERO, |
| 14812 | .block_erasers = |
| 14813 | { |
| 14814 | /* FIXME: Is this correct? |
| 14815 | { |
| 14816 | .eraseblocks = { {2 * 1024, 64} }, |
| 14817 | .block_erase = spi_block_erase_d7, |
| 14818 | },*/ |
| 14819 | { |
| 14820 | .eraseblocks = { {32 * 1024, 4} }, |
| 14821 | .block_erase = spi_block_erase_d8, |
| 14822 | }, { |
| 14823 | .eraseblocks = { {128 * 1024, 1} }, |
| 14824 | .block_erase = spi_block_erase_c7, |
| 14825 | } |
| 14826 | }, |
| 14827 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 14828 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 14829 | .write = spi_chip_write_256, |
| 14830 | .read = spi_chip_read, |
| 14831 | .voltage = {2300, 3600}, |
| 14832 | }, |
| 14833 | |
| 14834 | { |
| 14835 | .vendor = "Sanyo", |
| 14836 | .name = "LE25FU206", |
| 14837 | .bustype = BUS_SPI, |
| 14838 | .manufacture_id = SANYO_ID, |
| 14839 | .model_id = SANYO_LE25FU206, |
| 14840 | .total_size = 256, |
| 14841 | .page_size = 256, |
| 14842 | .feature_bits = FEATURE_WRSR_WREN, |
| 14843 | .tested = TEST_UNTESTED, |
| 14844 | .probe = probe_spi_res2, |
| 14845 | .probe_timing = TIMING_ZERO, |
| 14846 | .block_erasers = |
| 14847 | { |
| 14848 | { |
| 14849 | .eraseblocks = { {4 * 1024, 64} }, |
| 14850 | .block_erase = spi_block_erase_d7, |
| 14851 | }, { |
| 14852 | .eraseblocks = { {64 * 1024, 4} }, |
| 14853 | .block_erase = spi_block_erase_d8, |
| 14854 | }, { |
| 14855 | .eraseblocks = { {256 * 1024, 1} }, |
| 14856 | .block_erase = spi_block_erase_c7, |
| 14857 | } |
| 14858 | }, |
| 14859 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 14860 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 14861 | .write = spi_chip_write_256, |
| 14862 | .read = spi_chip_read, |
| 14863 | .voltage = {2300, 3600}, |
| 14864 | }, |
| 14865 | |
| 14866 | { |
| 14867 | .vendor = "Sanyo", |
| 14868 | .name = "LE25FU206A", |
| 14869 | .bustype = BUS_SPI, |
| 14870 | .manufacture_id = SANYO_ID, |
| 14871 | .model_id = SANYO_LE25FU206A, |
| 14872 | .total_size = 256, |
| 14873 | .page_size = 256, |
| 14874 | .tested = TEST_UNTESTED, |
| 14875 | .probe = probe_spi_rdid, |
| 14876 | .probe_timing = TIMING_ZERO, |
| 14877 | .block_erasers = |
| 14878 | { |
| 14879 | { |
| 14880 | .eraseblocks = { {4 * 1024, 64} }, |
| 14881 | .block_erase = spi_block_erase_20, |
| 14882 | }, { |
| 14883 | .eraseblocks = { {4 * 1024, 64} }, |
| 14884 | .block_erase = spi_block_erase_d7, |
| 14885 | }, { |
| 14886 | .eraseblocks = { {64 * 1024, 4} }, |
| 14887 | .block_erase = spi_block_erase_d8, |
| 14888 | }, { |
| 14889 | .eraseblocks = { {256 * 1024, 1} }, |
| 14890 | .block_erase = spi_block_erase_60, |
| 14891 | }, { |
| 14892 | .eraseblocks = { {256 * 1024, 1} }, |
| 14893 | .block_erase = spi_block_erase_c7, |
| 14894 | } |
| 14895 | }, |
| 14896 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 14897 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 14898 | .write = spi_chip_write_256, |
| 14899 | .read = spi_chip_read, |
| 14900 | .voltage = {2300, 3600}, |
| 14901 | }, |
| 14902 | |
| 14903 | { |
| 14904 | .vendor = "Sanyo", |
| 14905 | .name = "LE25FU406B", |
| 14906 | .bustype = BUS_SPI, |
| 14907 | .manufacture_id = SANYO_ID, |
| 14908 | .model_id = SANYO_LE25FU406B, |
| 14909 | .total_size = 512, |
| 14910 | .page_size = 256, |
| 14911 | .feature_bits = FEATURE_WRSR_WREN, |
| 14912 | .tested = TEST_OK_PREW, |
| 14913 | .probe = probe_spi_res2, |
| 14914 | .probe_timing = TIMING_ZERO, |
| 14915 | .block_erasers = |
| 14916 | { |
| 14917 | { |
| 14918 | .eraseblocks = { {4 * 1024, 128} }, |
| 14919 | .block_erase = spi_block_erase_d7, |
| 14920 | }, { |
| 14921 | .eraseblocks = { {64 * 1024, 8} }, |
| 14922 | .block_erase = spi_block_erase_d8, |
| 14923 | }, { |
| 14924 | .eraseblocks = { {512 * 1024, 1} }, |
| 14925 | .block_erase = spi_block_erase_c7, |
| 14926 | } |
| 14927 | }, |
| 14928 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 14929 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 14930 | .write = spi_chip_write_256, |
| 14931 | .read = spi_chip_read, |
| 14932 | .voltage = {2300, 3600}, |
| 14933 | }, |
| 14934 | |
| 14935 | { |
| 14936 | .vendor = "Sanyo", |
| 14937 | .name = "LE25FU406C/LE25U40CMC", |
| 14938 | .bustype = BUS_SPI, |
| 14939 | .manufacture_id = SANYO_ID, |
| 14940 | .model_id = SANYO_LE25FU406C, |
| 14941 | .total_size = 512, |
| 14942 | .page_size = 256, |
| 14943 | .feature_bits = FEATURE_WRSR_WREN, |
| 14944 | .tested = TEST_OK_PREW, |
| 14945 | .probe = probe_spi_rdid, |
| 14946 | .probe_timing = TIMING_ZERO, |
| 14947 | .block_erasers = |
| 14948 | { |
| 14949 | { |
| 14950 | .eraseblocks = { {4 * 1024, 128} }, |
| 14951 | .block_erase = spi_block_erase_20, |
| 14952 | }, { |
| 14953 | .eraseblocks = { {4 * 1024, 128} }, |
| 14954 | .block_erase = spi_block_erase_d7, |
| 14955 | }, { |
| 14956 | .eraseblocks = { {64 * 1024, 8} }, |
| 14957 | .block_erase = spi_block_erase_d8, |
| 14958 | }, { |
| 14959 | .eraseblocks = { {512 * 1024, 1} }, |
| 14960 | .block_erase = spi_block_erase_60, |
| 14961 | }, { |
| 14962 | .eraseblocks = { {512 * 1024, 1} }, |
| 14963 | .block_erase = spi_block_erase_c7, |
| 14964 | } |
| 14965 | }, |
| 14966 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 14967 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 14968 | .write = spi_chip_write_256, |
| 14969 | .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */ |
| 14970 | .voltage = {2300, 3600}, |
| 14971 | }, |
| 14972 | |
| 14973 | { |
| 14974 | .vendor = "Sanyo", |
| 14975 | .name = "LE25FW106", |
| 14976 | .bustype = BUS_SPI, |
| 14977 | .manufacture_id = SANYO_ID, |
| 14978 | .model_id = SANYO_LE25FW106, |
| 14979 | .total_size = 128, |
| 14980 | .page_size = 256, |
| 14981 | .feature_bits = FEATURE_WRSR_WREN, |
| 14982 | .tested = TEST_OK_PREW, |
| 14983 | .probe = probe_spi_res2, |
| 14984 | .probe_timing = TIMING_ZERO, |
| 14985 | .block_erasers = |
| 14986 | { |
| 14987 | { |
| 14988 | .eraseblocks = { {2 * 1024, 64} }, |
| 14989 | .block_erase = spi_block_erase_d7, |
| 14990 | }, { |
| 14991 | .eraseblocks = { {32 * 1024, 4} }, |
| 14992 | .block_erase = spi_block_erase_d8, |
| 14993 | }, { |
| 14994 | .eraseblocks = { {128 * 1024, 1} }, |
| 14995 | .block_erase = spi_block_erase_c7, |
| 14996 | } |
| 14997 | }, |
| 14998 | .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */ |
| 14999 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 15000 | .write = spi_chip_write_256, |
| 15001 | .read = spi_chip_read, |
| 15002 | .voltage = {2700, 3600}, |
| 15003 | }, |
| 15004 | |
| 15005 | { |
| 15006 | .vendor = "Sanyo", |
| 15007 | .name = "LE25FW203A", |
| 15008 | .bustype = BUS_SPI, |
| 15009 | .manufacture_id = SANYO_ID, |
| 15010 | .model_id = SANYO_LE25FW203A, |
| 15011 | .total_size = 256, |
| 15012 | .page_size = 256, |
| 15013 | .tested = TEST_UNTESTED, |
| 15014 | .probe = probe_spi_rdid, |
| 15015 | .probe_timing = TIMING_ZERO, |
| 15016 | .block_erasers = |
| 15017 | { |
| 15018 | { |
| 15019 | .eraseblocks = { {256, 1024} }, |
| 15020 | .block_erase = spi_block_erase_db, |
| 15021 | }, { |
| 15022 | .eraseblocks = { {64 * 1024, 4} }, |
| 15023 | .block_erase = spi_block_erase_d8, |
| 15024 | }, { |
| 15025 | .eraseblocks = { {256 * 1024, 1} }, |
| 15026 | .block_erase = spi_block_erase_c7, |
| 15027 | } |
| 15028 | }, |
| 15029 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 15030 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 15031 | .write = spi_chip_write_256, |
| 15032 | .read = spi_chip_read, |
| 15033 | .voltage = {2700, 3600}, |
| 15034 | }, |
| 15035 | |
| 15036 | { |
| 15037 | .vendor = "Sanyo", |
| 15038 | .name = "LE25FW403A", |
| 15039 | .bustype = BUS_SPI, |
| 15040 | .manufacture_id = SANYO_ID, |
| 15041 | .model_id = SANYO_LE25FW403A, |
| 15042 | .total_size = 512, |
| 15043 | .page_size = 256, |
| 15044 | .tested = TEST_UNTESTED, |
| 15045 | .probe = probe_spi_rdid, |
| 15046 | .probe_timing = TIMING_ZERO, |
| 15047 | .block_erasers = |
| 15048 | { |
| 15049 | { |
| 15050 | .eraseblocks = { {256, 2 * 1024} }, |
| 15051 | .block_erase = spi_block_erase_db, |
| 15052 | }, { |
| 15053 | .eraseblocks = { {64 * 1024, 8} }, |
| 15054 | .block_erase = spi_block_erase_d8, |
| 15055 | }, { |
| 15056 | .eraseblocks = { {512 * 1024, 1} }, |
| 15057 | .block_erase = spi_block_erase_c7, |
| 15058 | } |
| 15059 | }, |
| 15060 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 15061 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 15062 | .write = spi_chip_write_256, |
| 15063 | .read = spi_chip_read, |
| 15064 | .voltage = {2700, 3600}, |
| 15065 | }, |
| 15066 | |
| 15067 | { |
| 15068 | .vendor = "Sanyo", |
| 15069 | .name = "LE25FW406A", |
| 15070 | .bustype = BUS_SPI, |
| 15071 | .manufacture_id = SANYO_ID, |
| 15072 | .model_id = SANYO_LE25FW406A, |
| 15073 | .total_size = 512, |
| 15074 | .page_size = 256, |
| 15075 | .feature_bits = FEATURE_WRSR_WREN, |
| 15076 | .tested = TEST_OK_PREW, |
| 15077 | .probe = probe_spi_res2, |
| 15078 | .probe_timing = TIMING_ZERO, |
| 15079 | .block_erasers = |
| 15080 | { |
| 15081 | { |
| 15082 | .eraseblocks = { {4 * 1024, 128} }, |
| 15083 | .block_erase = spi_block_erase_d7, |
| 15084 | }, { |
| 15085 | .eraseblocks = { {64 * 1024, 8} }, |
| 15086 | .block_erase = spi_block_erase_d8, |
| 15087 | }, { |
| 15088 | .eraseblocks = { {512 * 1024, 1} }, |
| 15089 | .block_erase = spi_block_erase_c7, |
| 15090 | } |
| 15091 | }, |
| 15092 | .printlock = spi_prettyprint_status_register_plain, |
| 15093 | .unlock = spi_disable_blockprotect, |
| 15094 | .write = spi_chip_write_256, |
| 15095 | .read = spi_chip_read, |
| 15096 | .voltage = {2700, 3600}, |
| 15097 | }, |
| 15098 | |
| 15099 | { |
| 15100 | .vendor = "Sanyo", |
| 15101 | .name = "LE25FW418A", |
| 15102 | .bustype = BUS_SPI, |
| 15103 | .manufacture_id = SANYO_ID, |
| 15104 | .model_id = SANYO_LE25FW418A, |
| 15105 | .total_size = 512, |
| 15106 | .page_size = 256, |
| 15107 | .feature_bits = FEATURE_WRSR_WREN, |
| 15108 | .tested = TEST_UNTESTED, |
| 15109 | .probe = probe_spi_res2, |
| 15110 | .probe_timing = TIMING_ZERO, |
| 15111 | .block_erasers = |
| 15112 | { |
| 15113 | { |
| 15114 | .eraseblocks = { {4 * 1024, 128} }, |
| 15115 | .block_erase = spi_block_erase_d7, |
| 15116 | }, { |
| 15117 | .eraseblocks = { {64 * 1024, 8} }, |
| 15118 | .block_erase = spi_block_erase_d8, |
| 15119 | }, { |
| 15120 | .eraseblocks = { {512 * 1024, 1} }, |
| 15121 | .block_erase = spi_block_erase_c7, |
| 15122 | } |
| 15123 | }, |
| 15124 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 15125 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 15126 | .write = spi_chip_write_256, |
| 15127 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 15128 | .voltage = {2700, 3600}, |
| 15129 | }, |
| 15130 | |
| 15131 | { |
| 15132 | .vendor = "Sanyo", |
| 15133 | .name = "LE25FW806", |
| 15134 | .bustype = BUS_SPI, |
| 15135 | .manufacture_id = SANYO_ID, |
| 15136 | .model_id = SANYO_LE25FW806, |
| 15137 | .total_size = 1024, |
| 15138 | .page_size = 256, |
| 15139 | .feature_bits = FEATURE_WRSR_WREN, |
| 15140 | .tested = TEST_UNTESTED, |
| 15141 | .probe = probe_spi_res2, |
| 15142 | .probe_timing = TIMING_ZERO, |
| 15143 | .block_erasers = |
| 15144 | { |
| 15145 | { |
| 15146 | .eraseblocks = { {4 * 1024, 256} }, |
| 15147 | .block_erase = spi_block_erase_20, |
| 15148 | }, { |
| 15149 | .eraseblocks = { {4 * 1024, 256} }, |
| 15150 | .block_erase = spi_block_erase_d7, |
| 15151 | }, { |
| 15152 | .eraseblocks = { {64 * 1024, 16} }, |
| 15153 | .block_erase = spi_block_erase_d8, |
| 15154 | }, { |
| 15155 | .eraseblocks = { {1024 * 1024, 1} }, |
| 15156 | .block_erase = spi_block_erase_c7, |
| 15157 | } |
| 15158 | }, |
| 15159 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 15160 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 15161 | .write = spi_chip_write_256, |
| 15162 | .read = spi_chip_read, |
| 15163 | .voltage = {2700, 3600}, |
| 15164 | }, |
| 15165 | |
| 15166 | { |
| 15167 | .vendor = "Sanyo", |
| 15168 | .name = "LE25FW808", |
| 15169 | .bustype = BUS_SPI, |
| 15170 | .manufacture_id = SANYO_ID, |
| 15171 | .model_id = SANYO_LE25FW808, |
| 15172 | .total_size = 1024, |
| 15173 | .page_size = 256, |
| 15174 | .feature_bits = FEATURE_WRSR_WREN, |
| 15175 | .tested = TEST_UNTESTED, |
| 15176 | .probe = probe_spi_res2, |
| 15177 | .probe_timing = TIMING_ZERO, |
| 15178 | .block_erasers = |
| 15179 | { |
| 15180 | { |
| 15181 | .eraseblocks = { {8 * 1024, 128} }, |
| 15182 | .block_erase = spi_block_erase_d7, |
| 15183 | }, { |
| 15184 | .eraseblocks = { {64 * 1024, 16} }, |
| 15185 | .block_erase = spi_block_erase_d8, |
| 15186 | }, { |
| 15187 | .eraseblocks = { {1024 * 1024, 1} }, |
| 15188 | .block_erase = spi_block_erase_c7, |
| 15189 | } |
| 15190 | }, |
| 15191 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 15192 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 15193 | .write = spi_chip_write_256, |
| 15194 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 15195 | .voltage = {2700, 3600}, |
| 15196 | }, |
| 15197 | |
| 15198 | { |
| 15199 | .vendor = "Sharp", |
| 15200 | .name = "LH28F008BJT-BTLZ1", |
| 15201 | .bustype = BUS_PARALLEL, |
| 15202 | .manufacture_id = SHARP_ID, |
| 15203 | .model_id = SHARP_LH28F008BJ__PB, |
| 15204 | .total_size = 1024, |
| 15205 | .page_size = 64 * 1024, |
| 15206 | .tested = TEST_OK_PREW, |
| 15207 | .probe = probe_82802ab, |
| 15208 | .probe_timing = TIMING_ZERO, |
| 15209 | .block_erasers = |
| 15210 | { |
| 15211 | { |
| 15212 | .eraseblocks = { |
| 15213 | {8 * 1024, 8}, |
| 15214 | {64 * 1024, 15} |
| 15215 | }, |
| 15216 | .block_erase = erase_block_82802ab, |
| 15217 | }, { |
| 15218 | .eraseblocks = { {1024 * 1024, 1} }, |
| 15219 | .block_erase = erase_sector_49lfxxxc, |
| 15220 | } |
| 15221 | }, |
| 15222 | .unlock = unlock_lh28f008bjt, |
| 15223 | .write = write_82802ab, |
| 15224 | .read = read_memmapped, |
| 15225 | .voltage = {2700, 3600}, |
| 15226 | }, |
| 15227 | |
| 15228 | { |
| 15229 | .vendor = "Sharp", |
| 15230 | .name = "LHF00L04", |
| 15231 | .bustype = BUS_FWH, /* A/A Mux */ |
| 15232 | .manufacture_id = SHARP_ID, |
| 15233 | .model_id = SHARP_LHF00L04, |
| 15234 | .total_size = 1024, |
| 15235 | .page_size = 64 * 1024, |
| 15236 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
| 15237 | .tested = TEST_UNTESTED, |
| 15238 | .probe = probe_82802ab, |
| 15239 | .probe_timing = TIMING_ZERO, |
| 15240 | .block_erasers = |
| 15241 | { |
| 15242 | { |
| 15243 | .eraseblocks = { |
| 15244 | {64 * 1024, 15}, |
| 15245 | {8 * 1024, 8} |
| 15246 | }, |
| 15247 | .block_erase = erase_block_82802ab, |
| 15248 | }, { |
| 15249 | .eraseblocks = { |
| 15250 | {1024 * 1024, 1} |
| 15251 | }, |
| 15252 | .block_erase = NULL, /* 30 D0, only in A/A mux mode */ |
| 15253 | }, |
| 15254 | }, |
| 15255 | .unlock = unlock_regspace2_uniform_64k, |
| 15256 | .write = write_82802ab, |
| 15257 | .read = read_memmapped, |
| 15258 | .voltage = {3000, 3600}, |
| 15259 | }, |
| 15260 | |
| 15261 | { |
| 15262 | .vendor = "Spansion", |
| 15263 | .name = "S25FL004A", |
| 15264 | .bustype = BUS_SPI, |
| 15265 | .manufacture_id = SPANSION_ID, |
| 15266 | .model_id = SPANSION_S25FL004A, |
| 15267 | .total_size = 512, |
| 15268 | .page_size = 256, |
| 15269 | .feature_bits = FEATURE_WRSR_WREN, |
| 15270 | .tested = TEST_UNTESTED, |
| 15271 | .probe = probe_spi_rdid, |
| 15272 | .probe_timing = TIMING_ZERO, |
| 15273 | .block_erasers = |
| 15274 | { |
| 15275 | { |
| 15276 | .eraseblocks = { {64 * 1024, 8} }, |
| 15277 | .block_erase = spi_block_erase_d8, |
| 15278 | }, { |
| 15279 | .eraseblocks = { {512 * 1024, 1} }, |
| 15280 | .block_erase = spi_block_erase_c7, |
| 15281 | } |
| 15282 | }, |
| 15283 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15284 | .unlock = spi_disable_blockprotect, |
| 15285 | .write = spi_chip_write_256, |
| 15286 | .read = spi_chip_read, |
| 15287 | .voltage = {2700, 3600}, |
| 15288 | }, |
| 15289 | |
| 15290 | { |
| 15291 | .vendor = "Spansion", |
| 15292 | .name = "S25FL008A", |
| 15293 | .bustype = BUS_SPI, |
| 15294 | .manufacture_id = SPANSION_ID, |
| 15295 | .model_id = SPANSION_S25FL008A, |
| 15296 | .total_size = 1024, |
| 15297 | .page_size = 256, |
| 15298 | .feature_bits = FEATURE_WRSR_WREN, |
| 15299 | .tested = TEST_OK_PRE, |
| 15300 | .probe = probe_spi_rdid, |
| 15301 | .probe_timing = TIMING_ZERO, |
| 15302 | .block_erasers = |
| 15303 | { |
| 15304 | { |
| 15305 | .eraseblocks = { {64 * 1024, 16} }, |
| 15306 | .block_erase = spi_block_erase_d8, |
| 15307 | }, { |
| 15308 | .eraseblocks = { {1024 * 1024, 1} }, |
| 15309 | .block_erase = spi_block_erase_c7, |
| 15310 | } |
| 15311 | }, |
| 15312 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15313 | .unlock = spi_disable_blockprotect, |
| 15314 | .write = spi_chip_write_256, |
| 15315 | .read = spi_chip_read, |
| 15316 | .voltage = {2700, 3600}, |
| 15317 | }, |
| 15318 | |
| 15319 | { |
| 15320 | .vendor = "Spansion", |
| 15321 | .name = "S25FL016A", |
| 15322 | .bustype = BUS_SPI, |
| 15323 | .manufacture_id = SPANSION_ID, |
| 15324 | .model_id = SPANSION_S25FL016A, |
| 15325 | .total_size = 2048, |
| 15326 | .page_size = 256, |
| 15327 | .feature_bits = FEATURE_WRSR_WREN, |
| 15328 | .tested = TEST_OK_PREW, |
| 15329 | .probe = probe_spi_rdid, |
| 15330 | .probe_timing = TIMING_ZERO, |
| 15331 | .block_erasers = |
| 15332 | { |
| 15333 | { |
| 15334 | .eraseblocks = { {64 * 1024, 32} }, |
| 15335 | .block_erase = spi_block_erase_d8, |
| 15336 | }, { |
| 15337 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 15338 | .block_erase = spi_block_erase_c7, |
| 15339 | } |
| 15340 | }, |
| 15341 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15342 | .unlock = spi_disable_blockprotect, |
| 15343 | .write = spi_chip_write_256, |
| 15344 | .read = spi_chip_read, |
| 15345 | .voltage = {2700, 3600}, |
| 15346 | }, |
| 15347 | |
| 15348 | { |
| 15349 | .vendor = "Spansion", |
| 15350 | .name = "S25FL032A/P", |
| 15351 | .bustype = BUS_SPI, |
| 15352 | .manufacture_id = SPANSION_ID, |
| 15353 | .model_id = SPANSION_S25FL032A, |
| 15354 | .total_size = 4096, |
| 15355 | .page_size = 256, |
| 15356 | .feature_bits = FEATURE_WRSR_WREN, |
| 15357 | .tested = TEST_OK_PREW, |
| 15358 | .probe = probe_spi_rdid, |
| 15359 | .probe_timing = TIMING_ZERO, |
| 15360 | .block_erasers = |
| 15361 | { |
| 15362 | { |
| 15363 | .eraseblocks = { {64 * 1024, 64} }, |
| 15364 | .block_erase = spi_block_erase_d8, |
| 15365 | }, { |
| 15366 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 15367 | .block_erase = spi_block_erase_c7, |
| 15368 | } |
| 15369 | }, |
| 15370 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15371 | .unlock = spi_disable_blockprotect, |
| 15372 | .write = spi_chip_write_256, |
| 15373 | .read = spi_chip_read, |
| 15374 | .voltage = {2700, 3600}, |
| 15375 | }, |
| 15376 | |
| 15377 | { |
| 15378 | .vendor = "Spansion", |
| 15379 | .name = "S25FL064A/P", |
| 15380 | .bustype = BUS_SPI, |
| 15381 | .manufacture_id = SPANSION_ID, |
| 15382 | .model_id = SPANSION_S25FL064A, |
| 15383 | .total_size = 8192, |
| 15384 | .page_size = 256, |
| 15385 | .feature_bits = FEATURE_WRSR_WREN, |
| 15386 | .tested = TEST_OK_PREW, |
| 15387 | .probe = probe_spi_rdid, |
| 15388 | .probe_timing = TIMING_ZERO, |
| 15389 | .block_erasers = |
| 15390 | { |
| 15391 | { |
| 15392 | .eraseblocks = { {64 * 1024, 128} }, |
| 15393 | .block_erase = spi_block_erase_d8, |
| 15394 | }, { |
| 15395 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 15396 | .block_erase = spi_block_erase_c7, |
| 15397 | } |
| 15398 | }, |
| 15399 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15400 | .unlock = spi_disable_blockprotect, |
| 15401 | .write = spi_chip_write_256, |
| 15402 | .read = spi_chip_read, |
| 15403 | .voltage = {2700, 3600}, |
| 15404 | }, |
| 15405 | |
| 15406 | { |
| 15407 | .vendor = "Spansion", |
| 15408 | .name = "S25FL116K/S25FL216K", /* FIXME: separate them */ |
| 15409 | .bustype = BUS_SPI, |
| 15410 | .manufacture_id = SPANSION_ID, |
| 15411 | .model_id = SPANSION_S25FL216, |
| 15412 | .total_size = 2048, |
| 15413 | .page_size = 256, |
| 15414 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */ |
| 15415 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15416 | .tested = TEST_UNTESTED, |
| 15417 | .probe = probe_spi_rdid, |
| 15418 | .probe_timing = TIMING_ZERO, |
| 15419 | .block_erasers = |
| 15420 | { |
| 15421 | { |
| 15422 | .eraseblocks = { {4 * 1024, 512} }, |
| 15423 | .block_erase = spi_block_erase_20, |
| 15424 | }, { |
| 15425 | .eraseblocks = { {64 * 1024, 32} }, |
| 15426 | .block_erase = spi_block_erase_d8, |
| 15427 | }, { |
| 15428 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 15429 | .block_erase = spi_block_erase_60, |
| 15430 | }, { |
| 15431 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 15432 | .block_erase = spi_block_erase_c7, |
| 15433 | } |
| 15434 | }, |
| 15435 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 15436 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 15437 | .write = spi_chip_write_256, |
| 15438 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
| 15439 | .voltage = {2700, 3600}, |
| 15440 | }, |
| 15441 | |
| 15442 | { |
| 15443 | .vendor = "Spansion", |
| 15444 | .name = "S25FL127S-256kB", /* uniform 256kB sectors */ |
| 15445 | .bustype = BUS_SPI, |
| 15446 | .manufacture_id = SPANSION_ID, |
| 15447 | .model_id = SPANSION_S25FL128, |
| 15448 | .total_size = 16384, |
| 15449 | .page_size = 512, |
| 15450 | /* supports 4B addressing */ |
| 15451 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 15452 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15453 | .tested = TEST_UNTESTED, |
| 15454 | .probe = probe_spi_rdid, |
| 15455 | .probe_timing = TIMING_ZERO, |
| 15456 | .block_erasers = |
| 15457 | { |
| 15458 | { |
| 15459 | .eraseblocks = { {256 * 1024, 64} }, |
| 15460 | .block_erase = spi_block_erase_d8, |
| 15461 | }, { |
| 15462 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15463 | .block_erase = spi_block_erase_60, |
| 15464 | }, { |
| 15465 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15466 | .block_erase = spi_block_erase_c7, |
| 15467 | } |
| 15468 | }, |
| 15469 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 15470 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 15471 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 15472 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15473 | .voltage = {2700, 3600}, |
| 15474 | }, |
| 15475 | |
| 15476 | { |
| 15477 | .vendor = "Spansion", |
| 15478 | .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 15479 | .bustype = BUS_SPI, |
| 15480 | .manufacture_id = SPANSION_ID, |
| 15481 | .model_id = SPANSION_S25FL128, |
| 15482 | .total_size = 16384, |
| 15483 | .page_size = 256, |
| 15484 | /* supports 4B addressing */ |
| 15485 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 15486 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15487 | .tested = TEST_OK_PREW, |
| 15488 | /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */ |
| 15489 | .probe = probe_spi_rdid, |
| 15490 | .probe_timing = TIMING_ZERO, |
| 15491 | .block_erasers = |
| 15492 | { |
| 15493 | { |
| 15494 | /* This chip supports erasing of 32 so-called "parameter sectors" with |
| 15495 | * opcode 0x20 which may be configured to be on top or bottom of the address |
| 15496 | * space. Trying to access an address outside these 4kB blocks does have no |
| 15497 | * effect on the memory contents, e.g. |
| 15498 | .eraseblocks = { |
| 15499 | {4 * 1024, 32}, |
| 15500 | {64 * 1024, 254} // inaccessible |
| 15501 | }, |
| 15502 | .block_erase = spi_block_erase_20, |
| 15503 | }, { */ |
| 15504 | .eraseblocks = { { 64 * 1024, 256} }, |
| 15505 | .block_erase = spi_block_erase_d8, |
| 15506 | }, { |
| 15507 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15508 | .block_erase = spi_block_erase_60, |
| 15509 | }, { |
| 15510 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15511 | .block_erase = spi_block_erase_c7, |
| 15512 | } |
| 15513 | }, |
| 15514 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 15515 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 15516 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 15517 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15518 | .voltage = {2700, 3600}, |
| 15519 | }, |
| 15520 | |
| 15521 | { |
| 15522 | .vendor = "Spansion", |
| 15523 | .name = "S25FL128P......0", /* uniform 64 kB sectors */ |
| 15524 | .bustype = BUS_SPI, |
| 15525 | .manufacture_id = SPANSION_ID, |
| 15526 | .model_id = SPANSION_S25FL128, |
| 15527 | .total_size = 16384, |
| 15528 | .page_size = 256, |
| 15529 | .feature_bits = FEATURE_WRSR_WREN, |
| 15530 | .tested = TEST_OK_PREW, |
| 15531 | .probe = probe_spi_rdid, |
| 15532 | .probe_timing = TIMING_ZERO, |
| 15533 | .block_erasers = |
| 15534 | { |
| 15535 | { |
| 15536 | .eraseblocks = { {64 * 1024, 256} }, |
| 15537 | .block_erase = spi_block_erase_20, |
| 15538 | }, { |
| 15539 | .eraseblocks = { {64 * 1024, 256} }, |
| 15540 | .block_erase = spi_block_erase_d8, |
| 15541 | }, { |
| 15542 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15543 | .block_erase = spi_block_erase_60, |
| 15544 | }, { |
| 15545 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15546 | .block_erase = spi_block_erase_c7, |
| 15547 | } |
| 15548 | }, |
| 15549 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 15550 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 15551 | .write = spi_chip_write_256, |
| 15552 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 15553 | .voltage = {2700, 3600}, |
| 15554 | }, |
| 15555 | |
| 15556 | { |
| 15557 | .vendor = "Spansion", |
| 15558 | .name = "S25FL128P......1", /* uniform 256kB sectors */ |
| 15559 | .bustype = BUS_SPI, |
| 15560 | .manufacture_id = SPANSION_ID, |
| 15561 | .model_id = SPANSION_S25FL128, |
| 15562 | .total_size = 16384, |
| 15563 | .page_size = 256, |
| 15564 | .feature_bits = FEATURE_WRSR_WREN, |
| 15565 | .tested = TEST_UNTESTED, |
| 15566 | .probe = probe_spi_rdid, |
| 15567 | .probe_timing = TIMING_ZERO, |
| 15568 | .block_erasers = |
| 15569 | { |
| 15570 | { |
| 15571 | .eraseblocks = { {256 * 1024, 64} }, |
| 15572 | .block_erase = spi_block_erase_d8, |
| 15573 | }, { |
| 15574 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15575 | .block_erase = spi_block_erase_c7, |
| 15576 | } |
| 15577 | }, |
| 15578 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 15579 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 15580 | .write = spi_chip_write_256, |
| 15581 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 15582 | .voltage = {2700, 3600}, |
| 15583 | }, |
| 15584 | |
| 15585 | { |
| 15586 | .vendor = "Spansion", |
| 15587 | .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 15588 | .bustype = BUS_SPI, |
| 15589 | .manufacture_id = SPANSION_ID, |
| 15590 | .model_id = SPANSION_S25FL128, |
| 15591 | .total_size = 16384, |
| 15592 | .page_size = 256, |
| 15593 | /* supports 4B addressing */ |
| 15594 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 15595 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15596 | .tested = TEST_OK_PREW, |
| 15597 | .probe = probe_spi_rdid, |
| 15598 | .probe_timing = TIMING_ZERO, |
| 15599 | .block_erasers = |
| 15600 | { |
| 15601 | { |
| 15602 | /* This chip supports erasing of the 32 so-called "parameter sectors" with |
| 15603 | * opcode 0x20. Trying to access an address outside these 4kB blocks does |
| 15604 | * have no effect on the memory contents, but sets a flag in the SR. |
| 15605 | .eraseblocks = { |
| 15606 | {4 * 1024, 32}, |
| 15607 | {64 * 1024, 254} // inaccessible |
| 15608 | }, |
| 15609 | .block_erase = spi_block_erase_20, |
| 15610 | }, { */ |
| 15611 | .eraseblocks = { { 64 * 1024, 256} }, |
| 15612 | .block_erase = spi_block_erase_d8, |
| 15613 | }, { |
| 15614 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15615 | .block_erase = spi_block_erase_60, |
| 15616 | }, { |
| 15617 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15618 | .block_erase = spi_block_erase_c7, |
| 15619 | } |
| 15620 | }, |
| 15621 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 15622 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 15623 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 15624 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15625 | .voltage = {2700, 3600}, |
| 15626 | }, |
| 15627 | |
| 15628 | { |
| 15629 | .vendor = "Spansion", |
| 15630 | .name = "S25FL128S......1", /* uniform 256 kB sectors */ |
| 15631 | .bustype = BUS_SPI, |
| 15632 | .manufacture_id = SPANSION_ID, |
| 15633 | .model_id = SPANSION_S25FL128, |
| 15634 | .total_size = 16384, |
| 15635 | .page_size = 512, |
| 15636 | /* supports 4B addressing */ |
| 15637 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 15638 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15639 | .tested = TEST_UNTESTED, |
| 15640 | .probe = probe_spi_rdid, |
| 15641 | .probe_timing = TIMING_ZERO, |
| 15642 | .block_erasers = |
| 15643 | { |
| 15644 | { |
| 15645 | .eraseblocks = { {256 * 1024, 64} }, |
| 15646 | .block_erase = spi_block_erase_d8, |
| 15647 | }, { |
| 15648 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15649 | .block_erase = spi_block_erase_60, |
| 15650 | }, { |
| 15651 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15652 | .block_erase = spi_block_erase_c7, |
| 15653 | } |
| 15654 | }, |
| 15655 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 15656 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 15657 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 15658 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15659 | .voltage = {2700, 3600}, |
| 15660 | }, |
| 15661 | |
| 15662 | { |
| 15663 | .vendor = "Spansion", |
| 15664 | .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 15665 | .bustype = BUS_SPI, |
| 15666 | .manufacture_id = SPANSION_ID, |
| 15667 | .model_id = SPANSION_S25FL128, |
| 15668 | .total_size = 16384, |
| 15669 | .page_size = 256, |
| 15670 | /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */ |
| 15671 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15672 | .tested = TEST_OK_PREW, |
| 15673 | .probe = probe_spi_rdid, |
| 15674 | .probe_timing = TIMING_ZERO, |
| 15675 | .block_erasers = |
| 15676 | { |
| 15677 | { |
| 15678 | /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with |
| 15679 | * opcode 0x20. Trying to access an address outside these 4kB blocks does have no |
| 15680 | * effect on the memory contents, but sets a flag in the SR. |
| 15681 | .eraseblocks = { |
| 15682 | {4 * 1024, 32}, |
| 15683 | {64 * 1024, 254} // inaccessible |
| 15684 | }, |
| 15685 | .block_erase = spi_block_erase_20, |
| 15686 | }, { */ |
| 15687 | /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs |
| 15688 | .eraseblocks = { |
| 15689 | {8 * 1024, 16}, |
| 15690 | {64 * 1024, 254} // inaccessible |
| 15691 | }, |
| 15692 | .block_erase = spi_block_erase_40, |
| 15693 | }, { */ |
| 15694 | .eraseblocks = { { 64 * 1024, 256} }, |
| 15695 | .block_erase = spi_block_erase_d8, |
| 15696 | }, { |
| 15697 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15698 | .block_erase = spi_block_erase_60, |
| 15699 | }, { |
| 15700 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15701 | .block_erase = spi_block_erase_c7, |
| 15702 | } |
| 15703 | }, |
| 15704 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */ |
| 15705 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 15706 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 15707 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15708 | .voltage = {2700, 3600}, |
| 15709 | }, |
| 15710 | |
| 15711 | { |
| 15712 | .vendor = "Spansion", |
| 15713 | .name = "S25FL129P......1", /* uniform 256 kB sectors */ |
| 15714 | .bustype = BUS_SPI, |
| 15715 | .manufacture_id = SPANSION_ID, |
| 15716 | .model_id = SPANSION_S25FL128, |
| 15717 | .total_size = 16384, |
| 15718 | .page_size = 256, |
| 15719 | /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */ |
| 15720 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15721 | .tested = TEST_UNTESTED, |
| 15722 | .probe = probe_spi_rdid, |
| 15723 | .probe_timing = TIMING_ZERO, |
| 15724 | .block_erasers = |
| 15725 | { |
| 15726 | { |
| 15727 | .eraseblocks = { {256 * 1024, 64} }, |
| 15728 | .block_erase = spi_block_erase_d8, |
| 15729 | }, { |
| 15730 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15731 | .block_erase = spi_block_erase_60, |
| 15732 | }, { |
| 15733 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 15734 | .block_erase = spi_block_erase_c7, |
| 15735 | } |
| 15736 | }, |
| 15737 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */ |
| 15738 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 15739 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 15740 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15741 | .voltage = {2700, 3600}, |
| 15742 | }, |
| 15743 | |
| 15744 | { |
| 15745 | .vendor = "Spansion", |
| 15746 | .name = "S25FL132K", |
| 15747 | .bustype = BUS_SPI, |
| 15748 | .manufacture_id = SPANSION_ID, |
| 15749 | .model_id = SPANSION_S25FL132K, |
| 15750 | .total_size = 4096, |
| 15751 | .page_size = 256, |
| 15752 | /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 15753 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15754 | .tested = TEST_UNTESTED, |
| 15755 | .probe = probe_spi_rdid, |
| 15756 | .probe_timing = TIMING_ZERO, |
| 15757 | .block_erasers = |
| 15758 | { |
| 15759 | { |
| 15760 | .eraseblocks = { {4 * 1024, 1024} }, |
| 15761 | .block_erase = spi_block_erase_20, |
| 15762 | }, { |
| 15763 | .eraseblocks = { {64 * 1024, 64} }, |
| 15764 | .block_erase = spi_block_erase_d8, |
| 15765 | }, { |
| 15766 | .eraseblocks = { { 4096 * 1024, 1} }, |
| 15767 | .block_erase = spi_block_erase_60, |
| 15768 | }, { |
| 15769 | .eraseblocks = { { 4096 * 1024, 1} }, |
| 15770 | .block_erase = spi_block_erase_c7, |
| 15771 | } |
| 15772 | }, |
| 15773 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */ |
| 15774 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 15775 | .write = spi_chip_write_256, |
| 15776 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15777 | .voltage = {2700, 3600}, |
| 15778 | }, |
| 15779 | |
| 15780 | { |
| 15781 | .vendor = "Spansion", |
| 15782 | .name = "S25FL164K", |
| 15783 | .bustype = BUS_SPI, |
| 15784 | .manufacture_id = SPANSION_ID, |
| 15785 | .model_id = SPANSION_S25FL164K, |
| 15786 | .total_size = 8192, |
| 15787 | .page_size = 256, |
| 15788 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 15789 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15790 | .tested = TEST_OK_PREW, |
| 15791 | .probe = probe_spi_rdid, |
| 15792 | .probe_timing = TIMING_ZERO, |
| 15793 | .block_erasers = |
| 15794 | { |
| 15795 | { |
| 15796 | .eraseblocks = { {4 * 1024, 2048} }, |
| 15797 | .block_erase = spi_block_erase_20, |
| 15798 | }, { |
| 15799 | .eraseblocks = { {64 * 1024, 128} }, |
| 15800 | .block_erase = spi_block_erase_d8, |
| 15801 | }, { |
| 15802 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 15803 | .block_erase = spi_block_erase_60, |
| 15804 | }, { |
| 15805 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 15806 | .block_erase = spi_block_erase_c7, |
| 15807 | } |
| 15808 | }, |
| 15809 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */ |
| 15810 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 15811 | .write = spi_chip_write_256, |
| 15812 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15813 | .voltage = {2700, 3600}, |
| 15814 | }, |
| 15815 | |
| 15816 | { |
| 15817 | .vendor = "Spansion", |
| 15818 | .name = "S25FL204K", |
| 15819 | .bustype = BUS_SPI, |
| 15820 | .manufacture_id = SPANSION_ID, |
| 15821 | .model_id = SPANSION_S25FL204, |
| 15822 | .total_size = 512, |
| 15823 | .page_size = 256, |
| 15824 | .feature_bits = FEATURE_WRSR_WREN, |
| 15825 | .tested = TEST_OK_PR, |
| 15826 | .probe = probe_spi_rdid, |
| 15827 | .probe_timing = TIMING_ZERO, |
| 15828 | .block_erasers = |
| 15829 | { |
| 15830 | { |
| 15831 | .eraseblocks = { {4 * 1024, 128} }, |
| 15832 | .block_erase = spi_block_erase_20, |
| 15833 | }, { |
| 15834 | .eraseblocks = { {64 * 1024, 8} }, |
| 15835 | .block_erase = spi_block_erase_d8, |
| 15836 | }, { |
| 15837 | .eraseblocks = { { 512 * 1024, 1} }, |
| 15838 | .block_erase = spi_block_erase_60, |
| 15839 | }, { |
| 15840 | .eraseblocks = { { 512 * 1024, 1} }, |
| 15841 | .block_erase = spi_block_erase_c7, |
| 15842 | } |
| 15843 | }, |
| 15844 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 15845 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 15846 | .write = spi_chip_write_256, |
| 15847 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
| 15848 | .voltage = {2700, 3600}, |
| 15849 | }, |
| 15850 | |
| 15851 | { |
| 15852 | .vendor = "Spansion", |
| 15853 | .name = "S25FL208K", |
| 15854 | .bustype = BUS_SPI, |
| 15855 | .manufacture_id = SPANSION_ID, |
| 15856 | .model_id = SPANSION_S25FL208, |
| 15857 | .total_size = 1024, |
| 15858 | .page_size = 256, |
| 15859 | .feature_bits = FEATURE_WRSR_WREN, |
| 15860 | .tested = TEST_OK_PREW, |
| 15861 | .probe = probe_spi_rdid, |
| 15862 | .probe_timing = TIMING_ZERO, |
| 15863 | .block_erasers = |
| 15864 | { |
| 15865 | { |
| 15866 | .eraseblocks = { {4 * 1024, 256} }, |
| 15867 | .block_erase = spi_block_erase_20, |
| 15868 | }, { |
| 15869 | .eraseblocks = { {64 * 1024, 16} }, |
| 15870 | .block_erase = spi_block_erase_d8, |
| 15871 | }, { |
| 15872 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 15873 | .block_erase = spi_block_erase_60, |
| 15874 | }, { |
| 15875 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 15876 | .block_erase = spi_block_erase_c7, |
| 15877 | } |
| 15878 | }, |
| 15879 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 15880 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 15881 | .write = spi_chip_write_256, |
| 15882 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
| 15883 | .voltage = {2700, 3600}, |
| 15884 | }, |
| 15885 | |
| 15886 | { |
| 15887 | .vendor = "Spansion", |
| 15888 | .name = "S25FL256S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 15889 | .bustype = BUS_SPI, |
| 15890 | .manufacture_id = SPANSION_ID, |
| 15891 | .model_id = SPANSION_S25FL256, |
| 15892 | .total_size = 32768, |
| 15893 | .page_size = 256, |
| 15894 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 15895 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_EAR7, |
| 15896 | .tested = TEST_OK_PREW, |
| 15897 | .probe = probe_spi_rdid, |
| 15898 | .probe_timing = TIMING_ZERO, |
| 15899 | .block_erasers = |
| 15900 | { |
| 15901 | { |
| 15902 | /* This chip supports erasing of the 32 so-called "parameter sectors" with |
| 15903 | * opcode 0x20. Trying to access an address outside these 4kB blocks does |
| 15904 | * have no effect on the memory contents, but sets a flag in the SR. |
| 15905 | .eraseblocks = { |
| 15906 | {4 * 1024, 32}, |
| 15907 | {64 * 1024, 254} // inaccessible |
| 15908 | }, |
| 15909 | .block_erase = spi_block_erase_20, |
| 15910 | }, { */ |
| 15911 | .eraseblocks = { { 64 * 1024, 512} }, |
| 15912 | .block_erase = spi_block_erase_dc, |
| 15913 | }, { |
| 15914 | .eraseblocks = { { 64 * 1024, 512} }, |
| 15915 | .block_erase = spi_block_erase_d8, |
| 15916 | }, { |
| 15917 | .eraseblocks = { { 32768 * 1024, 1} }, |
| 15918 | .block_erase = spi_block_erase_60, |
| 15919 | }, { |
| 15920 | .eraseblocks = { { 32768 * 1024, 1} }, |
| 15921 | .block_erase = spi_block_erase_c7, |
| 15922 | } |
| 15923 | }, |
| 15924 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 15925 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 15926 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 15927 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15928 | .voltage = {2700, 3600}, |
| 15929 | .wrea_override = 0x17, |
| 15930 | }, |
| 15931 | |
| 15932 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 15933 | .vendor = "SyncMOS/MoselVitelic", |
| 15934 | .name = "{F,S,V}29C51001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15935 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 15936 | .manufacture_id = SYNCMOS_MVC_ID, |
| 15937 | .model_id = SM_MVC_29C51001B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15938 | .total_size = 128, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 15939 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15940 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15941 | .tested = TEST_UNTESTED, |
| 15942 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 15943 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15944 | .block_erasers = |
| 15945 | { |
| 15946 | { |
| 15947 | .eraseblocks = { {512, 256} }, |
| 15948 | .block_erase = erase_sector_jedec, |
| 15949 | }, { |
| 15950 | .eraseblocks = { {128 * 1024, 1} }, |
| 15951 | .block_erase = erase_chip_block_jedec, |
| 15952 | }, |
| 15953 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15954 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15955 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15956 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15957 | }, |
| 15958 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15959 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 15960 | .vendor = "SyncMOS/MoselVitelic", |
| 15961 | .name = "{F,S,V}29C51001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15962 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 15963 | .manufacture_id = SYNCMOS_MVC_ID, |
| 15964 | .model_id = SM_MVC_29C51001T, |
| 15965 | .total_size = 128, |
| 15966 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15967 | .feature_bits = FEATURE_EITHER_RESET, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 15968 | .tested = TEST_UNTESTED, |
| 15969 | .probe = probe_jedec, |
| 15970 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 15971 | .block_erasers = |
| 15972 | { |
| 15973 | { |
| 15974 | .eraseblocks = { {512, 256} }, |
| 15975 | .block_erase = erase_sector_jedec, |
| 15976 | }, { |
| 15977 | .eraseblocks = { {128 * 1024, 1} }, |
| 15978 | .block_erase = erase_chip_block_jedec, |
| 15979 | }, |
| 15980 | }, |
| 15981 | .write = write_jedec_1, |
| 15982 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15983 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 15984 | }, |
| 15985 | |
| 15986 | { |
| 15987 | .vendor = "SyncMOS/MoselVitelic", |
| 15988 | .name = "{F,S,V}29C51002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15989 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 15990 | .manufacture_id = SYNCMOS_MVC_ID, |
| 15991 | .model_id = SM_MVC_29C51002B, |
| 15992 | .total_size = 256, |
| 15993 | .page_size = 512, |
| 15994 | .feature_bits = FEATURE_EITHER_RESET, |
| 15995 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15996 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 15997 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15998 | .block_erasers = |
| 15999 | { |
| 16000 | { |
| 16001 | .eraseblocks = { {512, 512} }, |
| 16002 | .block_erase = erase_sector_jedec, |
| 16003 | }, { |
| 16004 | .eraseblocks = { {256 * 1024, 1} }, |
| 16005 | .block_erase = erase_chip_block_jedec, |
| 16006 | }, |
| 16007 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16008 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16009 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16010 | }, |
| 16011 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16012 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16013 | .vendor = "SyncMOS/MoselVitelic", |
| 16014 | .name = "{F,S,V}29C51002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16015 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16016 | .manufacture_id = SYNCMOS_MVC_ID, |
| 16017 | .model_id = SM_MVC_29C51002T, |
| 16018 | .total_size = 256, |
| 16019 | .page_size = 512, |
| 16020 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 16021 | .tested = TEST_OK_PREW, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16022 | .probe = probe_jedec, |
| 16023 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 16024 | .block_erasers = |
| 16025 | { |
| 16026 | { |
| 16027 | .eraseblocks = { {512, 512} }, |
| 16028 | .block_erase = erase_sector_jedec, |
| 16029 | }, { |
| 16030 | .eraseblocks = { {256 * 1024, 1} }, |
| 16031 | .block_erase = erase_chip_block_jedec, |
| 16032 | }, |
| 16033 | }, |
| 16034 | .write = write_jedec_1, |
| 16035 | .read = read_memmapped, |
| 16036 | }, |
| 16037 | |
| 16038 | { |
| 16039 | .vendor = "SyncMOS/MoselVitelic", |
| 16040 | .name = "{F,S,V}29C51004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16041 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16042 | .manufacture_id = SYNCMOS_MVC_ID, |
| 16043 | .model_id = SM_MVC_29C51004B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16044 | .total_size = 512, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16045 | .page_size = 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16046 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16047 | .tested = TEST_UNTESTED, |
| 16048 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 16049 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16050 | .block_erasers = |
| 16051 | { |
| 16052 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16053 | .eraseblocks = { {1024, 512} }, |
| 16054 | .block_erase = erase_sector_jedec, |
| 16055 | }, { |
| 16056 | .eraseblocks = { {512 * 1024, 1} }, |
| 16057 | .block_erase = erase_chip_block_jedec, |
| 16058 | }, |
| 16059 | }, |
| 16060 | .write = write_jedec_1, |
| 16061 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16062 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16063 | }, |
| 16064 | |
| 16065 | { |
| 16066 | .vendor = "SyncMOS/MoselVitelic", |
| 16067 | .name = "{F,S,V}29C51004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16068 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16069 | .manufacture_id = SYNCMOS_MVC_ID, |
| 16070 | .model_id = SM_MVC_29C51004T, |
| 16071 | .total_size = 512, |
| 16072 | .page_size = 1024, |
| 16073 | .feature_bits = FEATURE_EITHER_RESET, |
| 16074 | .tested = TEST_UNTESTED, |
| 16075 | .probe = probe_jedec, |
| 16076 | .probe_timing = TIMING_ZERO, |
| 16077 | .block_erasers = |
| 16078 | { |
| 16079 | { |
| 16080 | .eraseblocks = { {1024, 512} }, |
| 16081 | .block_erase = erase_sector_jedec, |
| 16082 | }, { |
| 16083 | .eraseblocks = { {512 * 1024, 1} }, |
| 16084 | .block_erase = erase_chip_block_jedec, |
| 16085 | }, |
| 16086 | }, |
| 16087 | .write = write_jedec_1, |
| 16088 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16089 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16090 | }, |
| 16091 | |
| 16092 | { |
| 16093 | .vendor = "SyncMOS/MoselVitelic", |
| 16094 | .name = "{S,V}29C31004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16095 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16096 | .manufacture_id = SYNCMOS_MVC_ID, |
| 16097 | .model_id = SM_MVC_29C31004B, |
| 16098 | .total_size = 512, |
| 16099 | .page_size = 1024, |
| 16100 | .feature_bits = FEATURE_EITHER_RESET, |
| 16101 | .tested = TEST_UNTESTED, |
| 16102 | .probe = probe_jedec, |
| 16103 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 16104 | .block_erasers = |
| 16105 | { |
| 16106 | { |
| 16107 | .eraseblocks = { {1024, 512} }, |
| 16108 | .block_erase = erase_sector_jedec, |
| 16109 | }, { |
| 16110 | .eraseblocks = { {512 * 1024, 1} }, |
| 16111 | .block_erase = erase_chip_block_jedec, |
| 16112 | }, |
| 16113 | }, |
| 16114 | .write = write_jedec_1, |
| 16115 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16116 | .voltage = {3000, 3600}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16117 | }, |
| 16118 | |
| 16119 | { |
| 16120 | .vendor = "SyncMOS/MoselVitelic", |
| 16121 | .name = "{S,V}29C31004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16122 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16123 | .manufacture_id = SYNCMOS_MVC_ID, |
| 16124 | .model_id = SM_MVC_29C31004T, |
| 16125 | .total_size = 512, |
| 16126 | .page_size = 1024, |
| 16127 | .feature_bits = FEATURE_EITHER_RESET, |
| 16128 | .tested = TEST_UNTESTED, |
| 16129 | .probe = probe_jedec, |
| 16130 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 16131 | .block_erasers = |
| 16132 | { |
| 16133 | { |
| 16134 | .eraseblocks = { {1024, 512} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16135 | .block_erase = erase_sector_jedec, |
| 16136 | }, { |
| 16137 | .eraseblocks = { {512 * 1024, 1} }, |
| 16138 | .block_erase = erase_chip_block_jedec, |
| 16139 | }, |
| 16140 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16141 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16142 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16143 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16144 | }, |
| 16145 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16146 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 16147 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16148 | .name = "TMS29F002RB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16149 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16150 | .manufacture_id = TI_OLD_ID, |
| 16151 | .model_id = TI_TMS29F002RB, |
| 16152 | .total_size = 256, |
| 16153 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16154 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16155 | .tested = TEST_UNTESTED, |
| 16156 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 16157 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16158 | .block_erasers = |
| 16159 | { |
| 16160 | { |
| 16161 | .eraseblocks = { |
| 16162 | {16 * 1024, 1}, |
| 16163 | {8 * 1024, 2}, |
| 16164 | {32 * 1024, 1}, |
| 16165 | {64 * 1024, 3}, |
| 16166 | }, |
| 16167 | .block_erase = erase_sector_jedec, |
| 16168 | }, { |
| 16169 | .eraseblocks = { {256 * 1024, 1} }, |
| 16170 | .block_erase = erase_chip_block_jedec, |
| 16171 | }, |
| 16172 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16173 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16174 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16175 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16176 | }, |
| 16177 | |
| 16178 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 16179 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16180 | .name = "TMS29F002RT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16181 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16182 | .manufacture_id = TI_OLD_ID, |
| 16183 | .model_id = TI_TMS29F002RT, |
| 16184 | .total_size = 256, |
| 16185 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16186 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16187 | .tested = TEST_UNTESTED, |
| 16188 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 16189 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16190 | .block_erasers = |
| 16191 | { |
| 16192 | { |
| 16193 | .eraseblocks = { |
| 16194 | {64 * 1024, 3}, |
| 16195 | {32 * 1024, 1}, |
| 16196 | {8 * 1024, 2}, |
| 16197 | {16 * 1024, 1}, |
| 16198 | }, |
| 16199 | .block_erase = erase_sector_jedec, |
| 16200 | }, { |
| 16201 | .eraseblocks = { {256 * 1024, 1} }, |
| 16202 | .block_erase = erase_chip_block_jedec, |
| 16203 | }, |
| 16204 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16205 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16206 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16207 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 16208 | }, |
| 16209 | |
| 16210 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16211 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16212 | .name = "W25P16", |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 16213 | .bustype = BUS_SPI, |
| 16214 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16215 | .model_id = WINBOND_NEX_W25P16, |
| 16216 | .total_size = 2048, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 16217 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16218 | .feature_bits = FEATURE_WRSR_WREN, |
| 16219 | .tested = TEST_UNTESTED, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 16220 | .probe = probe_spi_rdid, |
| 16221 | .probe_timing = TIMING_ZERO, |
| 16222 | .block_erasers = |
| 16223 | { |
| 16224 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16225 | .eraseblocks = { {64 * 1024, 32} }, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 16226 | .block_erase = spi_block_erase_d8, |
| 16227 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16228 | .eraseblocks = { {2048 * 1024, 1} }, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 16229 | .block_erase = spi_block_erase_c7, |
| 16230 | } |
| 16231 | }, |
| 16232 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16233 | .unlock = spi_disable_blockprotect, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16234 | .write = spi_chip_write_256, |
| 16235 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 16236 | .voltage = {2700, 3600}, |
| 16237 | }, |
| 16238 | |
| 16239 | { |
| 16240 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16241 | .name = "W25P32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16242 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 16243 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16244 | .model_id = WINBOND_NEX_W25P32, |
| 16245 | .total_size = 4096, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 16246 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16247 | .feature_bits = FEATURE_WRSR_WREN, |
| 16248 | .tested = TEST_UNTESTED, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 16249 | .probe = probe_spi_rdid, |
| 16250 | .probe_timing = TIMING_ZERO, |
| 16251 | .block_erasers = |
| 16252 | { |
| 16253 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16254 | .eraseblocks = { {64 * 1024, 64} }, |
| 16255 | .block_erase = spi_block_erase_d8, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 16256 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16257 | .eraseblocks = { {4096 * 1024, 1} }, |
| 16258 | .block_erase = spi_block_erase_c7, |
| 16259 | } |
| 16260 | }, |
| 16261 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16262 | .unlock = spi_disable_blockprotect, |
| 16263 | .write = spi_chip_write_256, |
| 16264 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 16265 | .voltage = {2700, 3600}, |
| 16266 | }, |
| 16267 | |
| 16268 | { |
| 16269 | .vendor = "Winbond", |
| 16270 | .name = "W25P80", |
| 16271 | .bustype = BUS_SPI, |
| 16272 | .manufacture_id = WINBOND_NEX_ID, |
| 16273 | .model_id = WINBOND_NEX_W25P80, |
| 16274 | .total_size = 1024, |
| 16275 | .page_size = 256, |
| 16276 | .feature_bits = FEATURE_WRSR_WREN, |
| 16277 | .tested = TEST_UNTESTED, |
| 16278 | .probe = probe_spi_rdid, |
| 16279 | .probe_timing = TIMING_ZERO, |
| 16280 | .block_erasers = |
| 16281 | { |
| 16282 | { |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 16283 | .eraseblocks = { {64 * 1024, 16} }, |
| 16284 | .block_erase = spi_block_erase_d8, |
| 16285 | }, { |
| 16286 | .eraseblocks = { {1024 * 1024, 1} }, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 16287 | .block_erase = spi_block_erase_c7, |
| 16288 | } |
| 16289 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 16290 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 16291 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 16292 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16293 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16294 | .voltage = {2700, 3600}, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 16295 | }, |
| 16296 | |
| 16297 | { |
| 16298 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16299 | .name = "W25Q128.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16300 | .bustype = BUS_SPI, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 16301 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16302 | .model_id = WINBOND_NEX_W25Q128_V, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 16303 | .total_size = 16384, |
| 16304 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16305 | /* supports SFDP */ |
| 16306 | /* 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] | 16307 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 16308 | .tested = TEST_OK_PREW, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 16309 | .probe = probe_spi_rdid, |
| 16310 | .probe_timing = TIMING_ZERO, |
| 16311 | .block_erasers = |
| 16312 | { |
| 16313 | { |
| 16314 | .eraseblocks = { {4 * 1024, 4096} }, |
| 16315 | .block_erase = spi_block_erase_20, |
| 16316 | }, { |
| 16317 | .eraseblocks = { {32 * 1024, 512} }, |
| 16318 | .block_erase = spi_block_erase_52, |
| 16319 | }, { |
| 16320 | .eraseblocks = { {64 * 1024, 256} }, |
| 16321 | .block_erase = spi_block_erase_d8, |
| 16322 | }, { |
| 16323 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 16324 | .block_erase = spi_block_erase_60, |
| 16325 | }, { |
| 16326 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 16327 | .block_erase = spi_block_erase_c7, |
| 16328 | } |
| 16329 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 16330 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 16331 | .unlock = spi_disable_blockprotect, |
| 16332 | .write = spi_chip_write_256, |
| 16333 | .read = spi_chip_read, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16334 | .voltage = {2700, 3600}, |
| 16335 | }, |
| 16336 | |
| 16337 | { |
| 16338 | .vendor = "Winbond", |
Patrick Rudolph | 3432349 | 2018-10-04 14:59:40 +0200 | [diff] [blame] | 16339 | .name = "W25Q128.V..M", |
| 16340 | .bustype = BUS_SPI, |
| 16341 | .manufacture_id = WINBOND_NEX_ID, |
| 16342 | .model_id = WINBOND_NEX_W25Q128_V_M, |
| 16343 | .total_size = 16384, |
| 16344 | .page_size = 256, |
| 16345 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 16346 | .tested = TEST_OK_PREW, |
| 16347 | .probe = probe_spi_rdid, |
| 16348 | .probe_timing = TIMING_ZERO, |
| 16349 | .block_erasers = |
| 16350 | { |
| 16351 | { |
| 16352 | .eraseblocks = { {4 * 1024, 4096} }, |
| 16353 | .block_erase = spi_block_erase_20, |
| 16354 | }, { |
| 16355 | .eraseblocks = { {32 * 1024, 512} }, |
| 16356 | .block_erase = spi_block_erase_52, |
| 16357 | }, { |
| 16358 | .eraseblocks = { {64 * 1024, 256} }, |
| 16359 | .block_erase = spi_block_erase_d8, |
| 16360 | }, { |
| 16361 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 16362 | .block_erase = spi_block_erase_60, |
| 16363 | }, { |
| 16364 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 16365 | .block_erase = spi_block_erase_c7, |
| 16366 | } |
| 16367 | }, |
Alan Green | a1fc01d | 2019-09-23 17:12:44 +1000 | [diff] [blame] | 16368 | .printlock = spi_prettyprint_status_register_plain, |
Patrick Rudolph | 3432349 | 2018-10-04 14:59:40 +0200 | [diff] [blame] | 16369 | .unlock = spi_disable_blockprotect, |
| 16370 | .write = spi_chip_write_256, |
| 16371 | .read = spi_chip_read, |
| 16372 | .voltage = {2700, 3600}, |
| 16373 | }, |
| 16374 | |
| 16375 | { |
| 16376 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16377 | .name = "W25Q128.W", |
| 16378 | .bustype = BUS_SPI, |
| 16379 | .manufacture_id = WINBOND_NEX_ID, |
| 16380 | .model_id = WINBOND_NEX_W25Q128_W, |
| 16381 | .total_size = 16384, |
| 16382 | .page_size = 256, |
| 16383 | /* supports SFDP */ |
| 16384 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16385 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 16386 | .tested = TEST_OK_PREW, |
| 16387 | .probe = probe_spi_rdid, |
| 16388 | .probe_timing = TIMING_ZERO, |
| 16389 | .block_erasers = |
| 16390 | { |
| 16391 | { |
| 16392 | .eraseblocks = { {4 * 1024, 4096} }, |
| 16393 | .block_erase = spi_block_erase_20, |
| 16394 | }, { |
| 16395 | .eraseblocks = { {32 * 1024, 512} }, |
| 16396 | .block_erase = spi_block_erase_52, |
| 16397 | }, { |
| 16398 | .eraseblocks = { {64 * 1024, 256} }, |
| 16399 | .block_erase = spi_block_erase_d8, |
| 16400 | }, { |
| 16401 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 16402 | .block_erase = spi_block_erase_60, |
| 16403 | }, { |
| 16404 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 16405 | .block_erase = spi_block_erase_c7, |
| 16406 | } |
| 16407 | }, |
| 16408 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16409 | .unlock = spi_disable_blockprotect, |
| 16410 | .write = spi_chip_write_256, |
| 16411 | .read = spi_chip_read, |
| 16412 | .voltage = {1650, 1950}, |
| 16413 | }, |
| 16414 | |
| 16415 | { |
| 16416 | .vendor = "Winbond", |
Peichao Wang | 1a11949 | 2019-11-11 15:26:41 +0800 | [diff] [blame] | 16417 | .name = "W25Q128.JW.DTR", |
| 16418 | .bustype = BUS_SPI, |
| 16419 | .manufacture_id = WINBOND_NEX_ID, |
| 16420 | .model_id = WINBOND_NEX_W25Q128_DTR, |
| 16421 | .total_size = 16384, |
| 16422 | .page_size = 256, |
| 16423 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 16424 | .tested = TEST_OK_PREW, |
| 16425 | .probe = probe_spi_rdid, |
| 16426 | .probe_timing = TIMING_ZERO, |
| 16427 | .block_erasers = |
| 16428 | { |
| 16429 | { |
| 16430 | .eraseblocks = { {4 * 1024, 4096} }, |
| 16431 | .block_erase = spi_block_erase_20, |
| 16432 | }, { |
| 16433 | .eraseblocks = { {32 * 1024, 512} }, |
| 16434 | .block_erase = spi_block_erase_52, |
| 16435 | }, { |
| 16436 | .eraseblocks = { {64 * 1024, 256} }, |
| 16437 | .block_erase = spi_block_erase_d8, |
| 16438 | }, { |
| 16439 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 16440 | .block_erase = spi_block_erase_60, |
| 16441 | }, { |
| 16442 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 16443 | .block_erase = spi_block_erase_c7, |
| 16444 | } |
| 16445 | }, |
| 16446 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16447 | .unlock = spi_disable_blockprotect, |
| 16448 | .write = spi_chip_write_256, |
| 16449 | .read = spi_chip_read, |
| 16450 | .voltage = {1650, 1950}, |
| 16451 | }, |
| 16452 | |
| 16453 | { |
| 16454 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16455 | .name = "W25Q16.V", |
| 16456 | .bustype = BUS_SPI, |
| 16457 | .manufacture_id = WINBOND_NEX_ID, |
| 16458 | .model_id = WINBOND_NEX_W25Q16_V, |
| 16459 | .total_size = 2048, |
| 16460 | .page_size = 256, |
| 16461 | /* supports SFDP */ |
| 16462 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16463 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16464 | .tested = TEST_OK_PREW, |
| 16465 | .probe = probe_spi_rdid, |
| 16466 | .probe_timing = TIMING_ZERO, |
| 16467 | .block_erasers = |
| 16468 | { |
| 16469 | { |
| 16470 | .eraseblocks = { {4 * 1024, 512} }, |
| 16471 | .block_erase = spi_block_erase_20, |
| 16472 | }, { |
| 16473 | .eraseblocks = { {32 * 1024, 64} }, |
| 16474 | .block_erase = spi_block_erase_52, |
| 16475 | }, { |
| 16476 | .eraseblocks = { {64 * 1024, 32} }, |
| 16477 | .block_erase = spi_block_erase_d8, |
| 16478 | }, { |
| 16479 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 16480 | .block_erase = spi_block_erase_60, |
| 16481 | }, { |
| 16482 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 16483 | .block_erase = spi_block_erase_c7, |
| 16484 | } |
| 16485 | }, |
| 16486 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16487 | .unlock = spi_disable_blockprotect, |
| 16488 | .write = spi_chip_write_256, |
| 16489 | .read = spi_chip_read, |
| 16490 | .voltage = {2700, 3600}, |
| 16491 | }, |
| 16492 | |
| 16493 | { |
| 16494 | .vendor = "Winbond", |
| 16495 | .name = "W25Q16.W", |
| 16496 | .bustype = BUS_SPI, |
| 16497 | .manufacture_id = WINBOND_NEX_ID, |
| 16498 | .model_id = WINBOND_NEX_W25Q16_W, |
| 16499 | .total_size = 2048, |
| 16500 | .page_size = 256, |
| 16501 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16502 | /* QPI enable 0x38, disable 0xFF */ |
| 16503 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 16504 | .tested = TEST_UNTESTED, |
| 16505 | .probe = probe_spi_rdid, |
| 16506 | .probe_timing = TIMING_ZERO, |
| 16507 | .block_erasers = |
| 16508 | { |
| 16509 | { |
| 16510 | .eraseblocks = { {4 * 1024, 512} }, |
| 16511 | .block_erase = spi_block_erase_20, |
| 16512 | }, { |
| 16513 | .eraseblocks = { {32 * 1024, 64} }, |
| 16514 | .block_erase = spi_block_erase_52, |
| 16515 | }, { |
| 16516 | .eraseblocks = { {64 * 1024, 32} }, |
| 16517 | .block_erase = spi_block_erase_d8, |
| 16518 | }, { |
| 16519 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 16520 | .block_erase = spi_block_erase_60, |
| 16521 | }, { |
| 16522 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 16523 | .block_erase = spi_block_erase_c7, |
| 16524 | } |
| 16525 | }, |
| 16526 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16527 | .unlock = spi_disable_blockprotect, |
| 16528 | .write = spi_chip_write_256, |
| 16529 | .read = spi_chip_read, |
| 16530 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 16531 | }, |
| 16532 | |
| 16533 | { |
| 16534 | .vendor = "Winbond", |
| 16535 | .name = "W25Q20.W", |
| 16536 | .bustype = BUS_SPI, |
| 16537 | .manufacture_id = WINBOND_NEX_ID, |
| 16538 | .model_id = WINBOND_NEX_W25Q20_W, |
| 16539 | .total_size = 256, |
| 16540 | .page_size = 256, |
| 16541 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16542 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16543 | .tested = TEST_UNTESTED, |
| 16544 | .probe = probe_spi_rdid, |
| 16545 | .probe_timing = TIMING_ZERO, |
| 16546 | .block_erasers = |
| 16547 | { |
| 16548 | { |
| 16549 | .eraseblocks = { {4 * 1024, 64} }, |
| 16550 | .block_erase = spi_block_erase_20, |
| 16551 | }, { |
| 16552 | .eraseblocks = { {32 * 1024, 8} }, |
| 16553 | .block_erase = spi_block_erase_52, |
| 16554 | }, { |
| 16555 | .eraseblocks = { {64 * 1024, 4} }, |
| 16556 | .block_erase = spi_block_erase_d8, |
| 16557 | }, { |
| 16558 | .eraseblocks = { {256 * 1024, 1} }, |
| 16559 | .block_erase = spi_block_erase_60, |
| 16560 | }, { |
| 16561 | .eraseblocks = { {256 * 1024, 1} }, |
| 16562 | .block_erase = spi_block_erase_c7, |
| 16563 | } |
| 16564 | }, |
| 16565 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16566 | .unlock = spi_disable_blockprotect, |
| 16567 | .write = spi_chip_write_256, |
| 16568 | .read = spi_chip_read, |
| 16569 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 16570 | }, |
| 16571 | |
| 16572 | { |
| 16573 | .vendor = "Winbond", |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 16574 | .name = "W25Q256.V", |
| 16575 | .bustype = BUS_SPI, |
| 16576 | .manufacture_id = WINBOND_NEX_ID, |
| 16577 | .model_id = WINBOND_NEX_W25Q256_V, |
| 16578 | .total_size = 32768, |
| 16579 | .page_size = 256, |
| 16580 | /* supports SFDP */ |
| 16581 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16582 | /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */ |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 16583 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN |
| 16584 | | FEATURE_4BA_EXT_ADDR | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ, |
Angel Pons | 3130cbd | 2018-09-30 19:32:30 +0200 | [diff] [blame] | 16585 | .tested = TEST_OK_PREW, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 16586 | .probe = probe_spi_rdid, |
| 16587 | .probe_timing = TIMING_ZERO, |
| 16588 | .block_erasers = |
| 16589 | { |
| 16590 | { |
| 16591 | .eraseblocks = { {4 * 1024, 8192} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 16592 | .block_erase = spi_block_erase_20, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 16593 | }, { |
| 16594 | .eraseblocks = { {32 * 1024, 1024} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 16595 | .block_erase = spi_block_erase_52, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 16596 | }, { |
| 16597 | .eraseblocks = { {64 * 1024, 512} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 16598 | .block_erase = spi_block_erase_d8, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 16599 | }, { |
| 16600 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 16601 | .block_erase = spi_block_erase_60, |
| 16602 | }, { |
| 16603 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 16604 | .block_erase = spi_block_erase_c7, |
| 16605 | } |
| 16606 | }, |
| 16607 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16608 | .unlock = spi_disable_blockprotect, |
| 16609 | .write = spi_chip_write_256, |
| 16610 | .read = spi_chip_read, |
| 16611 | .voltage = {2700, 3600}, |
| 16612 | }, |
| 16613 | |
| 16614 | { |
| 16615 | .vendor = "Winbond", |
David Hendricks | 4987679 | 2018-10-27 20:19:42 +0000 | [diff] [blame] | 16616 | .name = "W25Q256JV_M", |
| 16617 | .bustype = BUS_SPI, |
| 16618 | .manufacture_id = WINBOND_NEX_ID, |
| 16619 | .model_id = WINBOND_NEX_W25Q256JV_M, |
| 16620 | .total_size = 32768, |
| 16621 | .page_size = 256, |
| 16622 | /* supports SFDP */ |
| 16623 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16624 | /* FOUR_BYTE_ADDR: supports 4-bytes addressing mode */ |
| 16625 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
| 16626 | .tested = TEST_OK_PREW, |
| 16627 | .probe = probe_spi_rdid, |
| 16628 | .probe_timing = TIMING_ZERO, |
| 16629 | .block_erasers = |
| 16630 | { |
| 16631 | { |
| 16632 | .eraseblocks = { {4 * 1024, 8192} }, |
| 16633 | .block_erase = spi_block_erase_21, |
| 16634 | }, { |
| 16635 | .eraseblocks = { {4 * 1024, 8192} }, |
| 16636 | .block_erase = spi_block_erase_20, |
| 16637 | }, { |
| 16638 | .eraseblocks = { {32 * 1024, 1024} }, |
| 16639 | .block_erase = spi_block_erase_52, |
| 16640 | }, { |
| 16641 | .eraseblocks = { {64 * 1024, 512} }, |
| 16642 | .block_erase = spi_block_erase_dc, |
| 16643 | }, { |
| 16644 | .eraseblocks = { {64 * 1024, 512} }, |
| 16645 | .block_erase = spi_block_erase_d8, |
| 16646 | }, { |
| 16647 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 16648 | .block_erase = spi_block_erase_60, |
| 16649 | }, { |
| 16650 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 16651 | .block_erase = spi_block_erase_c7, |
| 16652 | } |
| 16653 | }, |
| 16654 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16655 | .unlock = spi_disable_blockprotect, |
| 16656 | .write = spi_chip_write_256, |
| 16657 | .read = spi_chip_read, |
| 16658 | .voltage = {2700, 3600}, |
| 16659 | }, |
| 16660 | |
| 16661 | { |
| 16662 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16663 | .name = "W25Q32.V", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16664 | .bustype = BUS_SPI, |
| 16665 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16666 | .model_id = WINBOND_NEX_W25Q32_V, |
| 16667 | .total_size = 4096, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16668 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16669 | /* supports SFDP */ |
| 16670 | /* 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] | 16671 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16672 | .tested = TEST_OK_PREW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16673 | .probe = probe_spi_rdid, |
| 16674 | .probe_timing = TIMING_ZERO, |
| 16675 | .block_erasers = |
| 16676 | { |
| 16677 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16678 | .eraseblocks = { {4 * 1024, 1024} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16679 | .block_erase = spi_block_erase_20, |
| 16680 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16681 | .eraseblocks = { {32 * 1024, 128} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16682 | .block_erase = spi_block_erase_52, |
| 16683 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16684 | .eraseblocks = { {64 * 1024, 64} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16685 | .block_erase = spi_block_erase_d8, |
| 16686 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16687 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16688 | .block_erase = spi_block_erase_60, |
| 16689 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16690 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 16691 | .block_erase = spi_block_erase_c7, |
| 16692 | } |
| 16693 | }, |
| 16694 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16695 | .unlock = spi_disable_blockprotect, |
| 16696 | .write = spi_chip_write_256, |
| 16697 | .read = spi_chip_read, |
| 16698 | .voltage = {2700, 3600}, |
| 16699 | }, |
| 16700 | |
| 16701 | { |
| 16702 | .vendor = "Winbond", |
| 16703 | .name = "W25Q32.W", |
| 16704 | .bustype = BUS_SPI, |
| 16705 | .manufacture_id = WINBOND_NEX_ID, |
| 16706 | .model_id = WINBOND_NEX_W25Q32_W, |
| 16707 | .total_size = 4096, |
| 16708 | .page_size = 256, |
| 16709 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16710 | /* QPI enable 0x38, disable 0xFF */ |
| 16711 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 16712 | .tested = TEST_OK_PREW, |
| 16713 | .probe = probe_spi_rdid, |
| 16714 | .probe_timing = TIMING_ZERO, |
| 16715 | .block_erasers = |
| 16716 | { |
| 16717 | { |
| 16718 | .eraseblocks = { {4 * 1024, 1024} }, |
| 16719 | .block_erase = spi_block_erase_20, |
| 16720 | }, { |
| 16721 | .eraseblocks = { {32 * 1024, 128} }, |
| 16722 | .block_erase = spi_block_erase_52, |
| 16723 | }, { |
| 16724 | .eraseblocks = { {64 * 1024, 64} }, |
| 16725 | .block_erase = spi_block_erase_d8, |
| 16726 | }, { |
| 16727 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 16728 | .block_erase = spi_block_erase_60, |
| 16729 | }, { |
| 16730 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16731 | .block_erase = spi_block_erase_c7, |
| 16732 | } |
| 16733 | }, |
| 16734 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16735 | .unlock = spi_disable_blockprotect, |
| 16736 | .write = spi_chip_write_256, |
| 16737 | .read = spi_chip_read, |
| 16738 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 16739 | }, |
| 16740 | |
| 16741 | { |
| 16742 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16743 | .name = "W25Q40.V", |
| 16744 | .bustype = BUS_SPI, |
| 16745 | .manufacture_id = WINBOND_NEX_ID, |
| 16746 | .model_id = WINBOND_NEX_W25Q40_V, |
| 16747 | .total_size = 512, |
| 16748 | .page_size = 256, |
| 16749 | /* supports SFDP */ |
| 16750 | /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16751 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16752 | .tested = TEST_OK_PREW, |
| 16753 | .probe = probe_spi_rdid, |
| 16754 | .probe_timing = TIMING_ZERO, |
| 16755 | .block_erasers = |
| 16756 | { |
| 16757 | { |
| 16758 | .eraseblocks = { {4 * 1024, 128} }, |
| 16759 | .block_erase = spi_block_erase_20, |
| 16760 | }, { |
| 16761 | .eraseblocks = { {32 * 1024, 16} }, |
| 16762 | .block_erase = spi_block_erase_52, |
| 16763 | }, { |
| 16764 | .eraseblocks = { {64 * 1024, 8} }, |
| 16765 | .block_erase = spi_block_erase_d8, |
| 16766 | }, { |
| 16767 | .eraseblocks = { {512 * 1024, 1} }, |
| 16768 | .block_erase = spi_block_erase_60, |
| 16769 | }, { |
| 16770 | .eraseblocks = { {512 * 1024, 1} }, |
| 16771 | .block_erase = spi_block_erase_c7, |
| 16772 | } |
| 16773 | }, |
| 16774 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16775 | .unlock = spi_disable_blockprotect, |
| 16776 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 16777 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 16778 | .voltage = {2700, 3600}, |
| 16779 | }, |
| 16780 | |
| 16781 | { |
| 16782 | .vendor = "Winbond", |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 16783 | .name = "W25Q40BW", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16784 | .bustype = BUS_SPI, |
| 16785 | .manufacture_id = WINBOND_NEX_ID, |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 16786 | .model_id = WINBOND_NEX_W25Q40BW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16787 | .total_size = 512, |
| 16788 | .page_size = 256, |
| 16789 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16790 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Angel Pons | 3164a0c | 2018-09-30 20:26:06 +0200 | [diff] [blame] | 16791 | .tested = TEST_OK_PREW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16792 | .probe = probe_spi_rdid, |
| 16793 | .probe_timing = TIMING_ZERO, |
| 16794 | .block_erasers = |
| 16795 | { |
| 16796 | { |
| 16797 | .eraseblocks = { {4 * 1024, 128} }, |
| 16798 | .block_erase = spi_block_erase_20, |
| 16799 | }, { |
| 16800 | .eraseblocks = { {32 * 1024, 16} }, |
| 16801 | .block_erase = spi_block_erase_52, |
| 16802 | }, { |
| 16803 | .eraseblocks = { {64 * 1024, 8} }, |
| 16804 | .block_erase = spi_block_erase_d8, |
| 16805 | }, { |
| 16806 | .eraseblocks = { {512 * 1024, 1} }, |
| 16807 | .block_erase = spi_block_erase_60, |
| 16808 | }, { |
| 16809 | .eraseblocks = { {512 * 1024, 1} }, |
| 16810 | .block_erase = spi_block_erase_c7, |
| 16811 | } |
| 16812 | }, |
| 16813 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16814 | .unlock = spi_disable_blockprotect, |
| 16815 | .write = spi_chip_write_256, |
| 16816 | .read = spi_chip_read, |
| 16817 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 16818 | }, |
| 16819 | |
| 16820 | { |
| 16821 | .vendor = "Winbond", |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 16822 | .name = "W25Q40EW", |
| 16823 | .bustype = BUS_SPI, |
| 16824 | .manufacture_id = WINBOND_NEX_ID, |
| 16825 | .model_id = WINBOND_NEX_W25Q40EW, |
| 16826 | .total_size = 512, |
| 16827 | .page_size = 256, |
| 16828 | /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16829 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Alan Green | 07b8a17 | 2019-09-23 16:47:05 +1000 | [diff] [blame] | 16830 | .tested = TEST_OK_PREW, |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 16831 | .probe = probe_spi_rdid, |
| 16832 | .probe_timing = TIMING_ZERO, |
| 16833 | .block_erasers = |
| 16834 | { |
| 16835 | { |
| 16836 | .eraseblocks = { {4 * 1024, 128} }, |
| 16837 | .block_erase = spi_block_erase_20, |
| 16838 | }, { |
| 16839 | .eraseblocks = { {32 * 1024, 16} }, |
| 16840 | .block_erase = spi_block_erase_52, |
| 16841 | }, { |
| 16842 | .eraseblocks = { {64 * 1024, 8} }, |
| 16843 | .block_erase = spi_block_erase_d8, |
| 16844 | }, { |
| 16845 | .eraseblocks = { {512 * 1024, 1} }, |
| 16846 | .block_erase = spi_block_erase_60, |
| 16847 | }, { |
| 16848 | .eraseblocks = { {512 * 1024, 1} }, |
| 16849 | .block_erase = spi_block_erase_c7, |
| 16850 | } |
| 16851 | }, |
| 16852 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16853 | .unlock = spi_disable_blockprotect, |
| 16854 | .write = spi_chip_write_256, |
| 16855 | .read = spi_chip_read, |
| 16856 | .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 16857 | }, |
| 16858 | |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 16859 | { |
| 16860 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16861 | .name = "W25Q64.V", |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 16862 | .bustype = BUS_SPI, |
| 16863 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16864 | .model_id = WINBOND_NEX_W25Q64_V, |
| 16865 | .total_size = 8192, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 16866 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16867 | /* supports SFDP */ |
| 16868 | /* 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] | 16869 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16870 | .tested = TEST_OK_PREW, |
| 16871 | .probe = probe_spi_rdid, |
| 16872 | .probe_timing = TIMING_ZERO, |
| 16873 | .block_erasers = |
| 16874 | { |
| 16875 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16876 | .eraseblocks = { {4 * 1024, 2048} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 16877 | .block_erase = spi_block_erase_20, |
| 16878 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16879 | .eraseblocks = { {32 * 1024, 256} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 16880 | .block_erase = spi_block_erase_52, |
| 16881 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16882 | .eraseblocks = { {64 * 1024, 128} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 16883 | .block_erase = spi_block_erase_d8, |
| 16884 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16885 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 16886 | .block_erase = spi_block_erase_60, |
| 16887 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16888 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 16889 | .block_erase = spi_block_erase_c7, |
| 16890 | } |
| 16891 | }, |
| 16892 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16893 | .unlock = spi_disable_blockprotect, |
| 16894 | .write = spi_chip_write_256, |
| 16895 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16896 | .voltage = {2700, 3600}, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16897 | }, |
| 16898 | |
| 16899 | { |
| 16900 | .vendor = "Winbond", |
| 16901 | .name = "W25Q64.W", |
| 16902 | .bustype = BUS_SPI, |
| 16903 | .manufacture_id = WINBOND_NEX_ID, |
| 16904 | .model_id = WINBOND_NEX_W25Q64_W, |
| 16905 | .total_size = 8192, |
| 16906 | .page_size = 256, |
| 16907 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16908 | /* QPI enable 0x38, disable 0xFF */ |
| 16909 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 16910 | .tested = TEST_OK_PREW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 16911 | .probe = probe_spi_rdid, |
| 16912 | .probe_timing = TIMING_ZERO, |
| 16913 | .block_erasers = |
| 16914 | { |
| 16915 | { |
| 16916 | .eraseblocks = { {4 * 1024, 2048} }, |
| 16917 | .block_erase = spi_block_erase_20, |
| 16918 | }, { |
| 16919 | .eraseblocks = { {32 * 1024, 256} }, |
| 16920 | .block_erase = spi_block_erase_52, |
| 16921 | }, { |
| 16922 | .eraseblocks = { {64 * 1024, 128} }, |
| 16923 | .block_erase = spi_block_erase_d8, |
| 16924 | }, { |
| 16925 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 16926 | .block_erase = spi_block_erase_60, |
| 16927 | }, { |
| 16928 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 16929 | .block_erase = spi_block_erase_c7, |
| 16930 | } |
| 16931 | }, |
| 16932 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16933 | .unlock = spi_disable_blockprotect, |
| 16934 | .write = spi_chip_write_256, |
| 16935 | .read = spi_chip_read, |
| 16936 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 16937 | }, |
| 16938 | |
| 16939 | { |
| 16940 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16941 | .name = "W25Q80.V", |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 16942 | .bustype = BUS_SPI, |
| 16943 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16944 | .model_id = WINBOND_NEX_W25Q80_V, |
| 16945 | .total_size = 1024, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 16946 | .page_size = 256, |
| 16947 | /* supports SFDP */ |
| 16948 | /* 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] | 16949 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 48729d3 | 2017-12-08 14:44:07 -0800 | [diff] [blame] | 16950 | .tested = TEST_OK_PREW, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 16951 | .probe = probe_spi_rdid, |
| 16952 | .probe_timing = TIMING_ZERO, |
| 16953 | .block_erasers = |
| 16954 | { |
| 16955 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16956 | .eraseblocks = { {4 * 1024, 256} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 16957 | .block_erase = spi_block_erase_20, |
| 16958 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16959 | .eraseblocks = { {32 * 1024, 32} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 16960 | .block_erase = spi_block_erase_52, |
| 16961 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16962 | .eraseblocks = { {64 * 1024, 16} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 16963 | .block_erase = spi_block_erase_d8, |
| 16964 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16965 | .eraseblocks = { {1024 * 1024, 1} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 16966 | .block_erase = spi_block_erase_60, |
| 16967 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16968 | .eraseblocks = { {1024 * 1024, 1} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 16969 | .block_erase = spi_block_erase_c7, |
| 16970 | } |
| 16971 | }, |
| 16972 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16973 | .unlock = spi_disable_blockprotect, |
| 16974 | .write = spi_chip_write_256, |
| 16975 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16976 | .voltage = {2700, 3600}, |
| 16977 | }, |
| 16978 | |
| 16979 | { |
| 16980 | .vendor = "Winbond", |
| 16981 | .name = "W25Q80BW", |
| 16982 | .bustype = BUS_SPI, |
| 16983 | .manufacture_id = WINBOND_NEX_ID, |
| 16984 | .model_id = WINBOND_NEX_W25Q80BW, |
| 16985 | .total_size = 1024, |
| 16986 | .page_size = 256, |
| 16987 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 16988 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16989 | .tested = TEST_OK_PREW, |
| 16990 | .probe = probe_spi_rdid, |
| 16991 | .probe_timing = TIMING_ZERO, |
| 16992 | .block_erasers = |
| 16993 | { |
| 16994 | { |
| 16995 | .eraseblocks = { {4 * 1024, 256} }, |
| 16996 | .block_erase = spi_block_erase_20, |
| 16997 | }, { |
| 16998 | .eraseblocks = { {32 * 1024, 32} }, |
| 16999 | .block_erase = spi_block_erase_52, |
| 17000 | }, { |
| 17001 | .eraseblocks = { {64 * 1024, 16} }, |
| 17002 | .block_erase = spi_block_erase_d8, |
| 17003 | }, { |
| 17004 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 17005 | .block_erase = spi_block_erase_60, |
| 17006 | }, { |
| 17007 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 17008 | .block_erase = spi_block_erase_c7, |
| 17009 | } |
| 17010 | }, |
| 17011 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17012 | .unlock = spi_disable_blockprotect, |
| 17013 | .write = spi_chip_write_256, |
| 17014 | .read = spi_chip_read, |
| 17015 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 17016 | }, |
| 17017 | |
| 17018 | { |
| 17019 | .vendor = "Winbond", |
| 17020 | .name = "W25Q80EW", |
| 17021 | .bustype = BUS_SPI, |
| 17022 | .manufacture_id = WINBOND_NEX_ID, |
| 17023 | .model_id = WINBOND_NEX_W25Q80EW, |
| 17024 | .total_size = 1024, |
| 17025 | .page_size = 256, |
| 17026 | /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 17027 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 17028 | .tested = TEST_OK_PREW, |
| 17029 | .probe = probe_spi_rdid, |
| 17030 | .probe_timing = TIMING_ZERO, |
| 17031 | .block_erasers = |
| 17032 | { |
| 17033 | { |
| 17034 | .eraseblocks = { {4 * 1024, 256} }, |
| 17035 | .block_erase = spi_block_erase_20, |
| 17036 | }, { |
| 17037 | .eraseblocks = { {32 * 1024, 32} }, |
| 17038 | .block_erase = spi_block_erase_52, |
| 17039 | }, { |
| 17040 | .eraseblocks = { {64 * 1024, 16} }, |
| 17041 | .block_erase = spi_block_erase_d8, |
| 17042 | }, { |
| 17043 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 17044 | .block_erase = spi_block_erase_60, |
| 17045 | }, { |
| 17046 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 17047 | .block_erase = spi_block_erase_c7, |
| 17048 | } |
| 17049 | }, |
| 17050 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17051 | .unlock = spi_disable_blockprotect, |
| 17052 | .write = spi_chip_write_256, |
| 17053 | .read = spi_chip_read, |
| 17054 | .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 17055 | }, |
| 17056 | |
| 17057 | { |
| 17058 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 17059 | .name = "W25X10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17060 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17061 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17062 | .model_id = WINBOND_NEX_W25X10, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17063 | .total_size = 128, |
| 17064 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 17065 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 17066 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17067 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 17068 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17069 | .block_erasers = |
| 17070 | { |
| 17071 | { |
| 17072 | .eraseblocks = { {4 * 1024, 32} }, |
| 17073 | .block_erase = spi_block_erase_20, |
| 17074 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17075 | .eraseblocks = { {64 * 1024, 2} }, |
| 17076 | .block_erase = spi_block_erase_d8, |
| 17077 | }, { |
| 17078 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17079 | .block_erase = spi_block_erase_c7, |
| 17080 | } |
| 17081 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 17082 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 17083 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 17084 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17085 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17086 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17087 | }, |
| 17088 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17089 | { |
| 17090 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 17091 | .name = "W25X16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17092 | .bustype = BUS_SPI, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 17093 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17094 | .model_id = WINBOND_NEX_W25X16, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 17095 | .total_size = 2048, |
| 17096 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 17097 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 17098 | .tested = TEST_OK_PREW, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 17099 | .probe = probe_spi_rdid, |
| 17100 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17101 | .block_erasers = |
| 17102 | { |
| 17103 | { |
| 17104 | .eraseblocks = { {4 * 1024, 512} }, |
| 17105 | .block_erase = spi_block_erase_20, |
| 17106 | }, { |
| 17107 | .eraseblocks = { {32 * 1024, 64} }, |
| 17108 | .block_erase = spi_block_erase_52, |
| 17109 | }, { |
| 17110 | .eraseblocks = { {64 * 1024, 32} }, |
| 17111 | .block_erase = spi_block_erase_d8, |
| 17112 | }, { |
| 17113 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 17114 | .block_erase = spi_block_erase_60, |
| 17115 | }, { |
| 17116 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 17117 | .block_erase = spi_block_erase_c7, |
| 17118 | } |
| 17119 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 17120 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 17121 | .unlock = spi_disable_blockprotect, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 17122 | .write = spi_chip_write_256, |
| 17123 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17124 | .voltage = {2700, 3600}, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 17125 | }, |
| 17126 | |
| 17127 | { |
| 17128 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17129 | .name = "W25X20", |
| 17130 | .bustype = BUS_SPI, |
| 17131 | .manufacture_id = WINBOND_NEX_ID, |
| 17132 | .model_id = WINBOND_NEX_W25X20, |
| 17133 | .total_size = 256, |
| 17134 | .page_size = 256, |
| 17135 | .feature_bits = FEATURE_WRSR_WREN, |
| 17136 | .tested = TEST_OK_PREW, |
| 17137 | .probe = probe_spi_rdid, |
| 17138 | .probe_timing = TIMING_ZERO, |
| 17139 | .block_erasers = |
| 17140 | { |
| 17141 | { |
| 17142 | .eraseblocks = { {4 * 1024, 64} }, |
| 17143 | .block_erase = spi_block_erase_20, |
| 17144 | }, { |
| 17145 | .eraseblocks = { {64 * 1024, 4} }, |
| 17146 | .block_erase = spi_block_erase_d8, |
| 17147 | }, { |
| 17148 | .eraseblocks = { {256 * 1024, 1} }, |
| 17149 | .block_erase = spi_block_erase_c7, |
| 17150 | } |
| 17151 | }, |
| 17152 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17153 | .unlock = spi_disable_blockprotect, |
| 17154 | .write = spi_chip_write_256, |
| 17155 | .read = spi_chip_read, |
| 17156 | .voltage = {2700, 3600}, |
| 17157 | }, |
| 17158 | |
| 17159 | { |
| 17160 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 17161 | .name = "W25X32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17162 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17163 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17164 | .model_id = WINBOND_NEX_W25X32, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17165 | .total_size = 4096, |
| 17166 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 17167 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 17168 | .tested = TEST_OK_PREW, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17169 | .probe = probe_spi_rdid, |
| 17170 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17171 | .block_erasers = |
| 17172 | { |
| 17173 | { |
| 17174 | .eraseblocks = { {4 * 1024, 1024} }, |
| 17175 | .block_erase = spi_block_erase_20, |
| 17176 | }, { |
| 17177 | .eraseblocks = { {32 * 1024, 128} }, |
| 17178 | .block_erase = spi_block_erase_52, |
| 17179 | }, { |
| 17180 | .eraseblocks = { {64 * 1024, 64} }, |
| 17181 | .block_erase = spi_block_erase_d8, |
| 17182 | }, { |
| 17183 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 17184 | .block_erase = spi_block_erase_60, |
| 17185 | }, { |
| 17186 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 17187 | .block_erase = spi_block_erase_c7, |
| 17188 | } |
| 17189 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 17190 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 17191 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17192 | .write = spi_chip_write_256, |
| 17193 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17194 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17195 | }, |
| 17196 | |
| 17197 | { |
| 17198 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17199 | .name = "W25X40", |
| 17200 | .bustype = BUS_SPI, |
| 17201 | .manufacture_id = WINBOND_NEX_ID, |
| 17202 | .model_id = WINBOND_NEX_W25X40, |
| 17203 | .total_size = 512, |
| 17204 | .page_size = 256, |
| 17205 | .feature_bits = FEATURE_WRSR_WREN, |
| 17206 | .tested = TEST_OK_PREW, |
| 17207 | .probe = probe_spi_rdid, |
| 17208 | .probe_timing = TIMING_ZERO, |
| 17209 | .block_erasers = |
| 17210 | { |
| 17211 | { |
| 17212 | .eraseblocks = { {4 * 1024, 128} }, |
| 17213 | .block_erase = spi_block_erase_20, |
| 17214 | }, { |
| 17215 | .eraseblocks = { {64 * 1024, 8} }, |
| 17216 | .block_erase = spi_block_erase_d8, |
| 17217 | }, { |
| 17218 | .eraseblocks = { {512 * 1024, 1} }, |
| 17219 | .block_erase = spi_block_erase_c7, |
| 17220 | } |
| 17221 | }, |
| 17222 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17223 | .unlock = spi_disable_blockprotect, |
| 17224 | .write = spi_chip_write_256, |
| 17225 | .read = spi_chip_read, |
| 17226 | .voltage = {2700, 3600}, |
| 17227 | }, |
| 17228 | |
| 17229 | { |
| 17230 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 17231 | .name = "W25X64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17232 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17233 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17234 | .model_id = WINBOND_NEX_W25X64, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17235 | .total_size = 8192, |
| 17236 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 17237 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 17238 | .tested = TEST_OK_PREW, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17239 | .probe = probe_spi_rdid, |
| 17240 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17241 | .block_erasers = |
| 17242 | { |
| 17243 | { |
| 17244 | .eraseblocks = { {4 * 1024, 2048} }, |
| 17245 | .block_erase = spi_block_erase_20, |
| 17246 | }, { |
| 17247 | .eraseblocks = { {32 * 1024, 256} }, |
| 17248 | .block_erase = spi_block_erase_52, |
| 17249 | }, { |
| 17250 | .eraseblocks = { {64 * 1024, 128} }, |
| 17251 | .block_erase = spi_block_erase_d8, |
| 17252 | }, { |
| 17253 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 17254 | .block_erase = spi_block_erase_60, |
| 17255 | }, { |
| 17256 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 17257 | .block_erase = spi_block_erase_c7, |
| 17258 | } |
| 17259 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 17260 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 17261 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17262 | .write = spi_chip_write_256, |
| 17263 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17264 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 17265 | }, |
| 17266 | |
| 17267 | { |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 17268 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17269 | .name = "W25X80", |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 17270 | .bustype = BUS_SPI, |
| 17271 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17272 | .model_id = WINBOND_NEX_W25X80, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 17273 | .total_size = 1024, |
| 17274 | .page_size = 256, |
| 17275 | .feature_bits = FEATURE_WRSR_WREN, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17276 | .tested = TEST_OK_PREW, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 17277 | .probe = probe_spi_rdid, |
| 17278 | .probe_timing = TIMING_ZERO, |
| 17279 | .block_erasers = |
David Hendricks | c9ee0ed | 2018-02-11 17:40:53 -0800 | [diff] [blame] | 17280 | { |
| 17281 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17282 | .eraseblocks = { {4 * 1024, 256} }, |
| 17283 | .block_erase = spi_block_erase_20, |
| 17284 | }, { |
David Hendricks | c9ee0ed | 2018-02-11 17:40:53 -0800 | [diff] [blame] | 17285 | .eraseblocks = { {64 * 1024, 16} }, |
| 17286 | .block_erase = spi_block_erase_d8, |
| 17287 | }, { |
| 17288 | .eraseblocks = { {1024 * 1024, 1} }, |
| 17289 | .block_erase = spi_block_erase_c7, |
| 17290 | } |
| 17291 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 17292 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17293 | .unlock = spi_disable_blockprotect, |
| 17294 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17295 | .read = spi_chip_read, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 17296 | .voltage = {2700, 3600}, |
David Hendricks | c9ee0ed | 2018-02-11 17:40:53 -0800 | [diff] [blame] | 17297 | }, |
| 17298 | |
Alan Green | f29ea36 | 2019-06-27 17:14:02 +1000 | [diff] [blame] | 17299 | /* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */ |
| 17300 | { |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 17301 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17302 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17303 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17304 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17305 | .model_id = WINBOND_W29C010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17306 | .total_size = 128, |
| 17307 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17308 | .feature_bits = FEATURE_LONG_RESET, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 17309 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17310 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 17311 | .probe_timing = 10, /* used datasheet for the W29C011A */ |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17312 | .block_erasers = |
| 17313 | { |
| 17314 | { |
| 17315 | .eraseblocks = { {128 * 1024, 1} }, |
| 17316 | .block_erase = erase_chip_block_jedec, |
| 17317 | } |
| 17318 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17319 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17320 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17321 | }, |
| 17322 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17323 | { |
| 17324 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17325 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old", |
| 17326 | .bustype = BUS_PARALLEL, |
| 17327 | .manufacture_id = WINBOND_ID, |
| 17328 | .model_id = WINBOND_W29C010, |
| 17329 | .total_size = 128, |
| 17330 | .page_size = 128, |
| 17331 | .feature_bits = FEATURE_LONG_RESET, |
| 17332 | .tested = TEST_OK_PREW, |
| 17333 | .probe = probe_w29ee011, |
| 17334 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */ |
| 17335 | .block_erasers = |
| 17336 | { |
| 17337 | { |
| 17338 | .eraseblocks = { {128 * 1024, 1} }, |
| 17339 | .block_erase = erase_chip_block_jedec, |
| 17340 | } |
| 17341 | }, |
| 17342 | .write = write_jedec, |
| 17343 | .read = read_memmapped, |
| 17344 | }, |
| 17345 | |
| 17346 | { |
| 17347 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17348 | .name = "W29C020(C)/W29C022", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17349 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17350 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17351 | .model_id = WINBOND_W29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17352 | .total_size = 256, |
| 17353 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17354 | .feature_bits = FEATURE_LONG_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 17355 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17356 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 17357 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17358 | .block_erasers = |
| 17359 | { |
| 17360 | { |
| 17361 | .eraseblocks = { {256 * 1024, 1} }, |
| 17362 | .block_erase = erase_chip_block_jedec, |
| 17363 | } |
| 17364 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17365 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17366 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17367 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17368 | }, |
| 17369 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17370 | { |
| 17371 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17372 | .name = "W29C040/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17373 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17374 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17375 | .model_id = WINBOND_W29C040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17376 | .total_size = 512, |
| 17377 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17378 | .feature_bits = FEATURE_LONG_RESET, |
| 17379 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17380 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 17381 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17382 | .block_erasers = |
| 17383 | { |
| 17384 | { |
| 17385 | .eraseblocks = { {512 * 1024, 1} }, |
| 17386 | .block_erase = erase_chip_block_jedec, |
| 17387 | } |
| 17388 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17389 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17390 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17391 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17392 | }, |
| 17393 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17394 | { |
| 17395 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17396 | .name = "W29C512A/W29EE512", |
| 17397 | .bustype = BUS_PARALLEL, |
| 17398 | .manufacture_id = WINBOND_ID, |
| 17399 | .model_id = WINBOND_W29C512A, |
| 17400 | .total_size = 64, |
| 17401 | .page_size = 128, |
| 17402 | .feature_bits = FEATURE_LONG_RESET, |
| 17403 | .tested = TEST_OK_PREW, |
| 17404 | .probe = probe_jedec, |
| 17405 | .probe_timing = 10, |
| 17406 | .block_erasers = |
| 17407 | { |
| 17408 | { |
| 17409 | .eraseblocks = { {64 * 1024, 1} }, |
| 17410 | .block_erase = erase_chip_block_jedec, |
| 17411 | } |
| 17412 | }, |
| 17413 | .write = write_jedec, |
| 17414 | .read = read_memmapped, |
| 17415 | .voltage = {4500, 5500}, |
| 17416 | }, |
| 17417 | |
| 17418 | { |
| 17419 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 17420 | .name = "W29GL032CB", |
| 17421 | .bustype = BUS_PARALLEL, |
| 17422 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 17423 | .model_id = WINBOND_W29GL032CB, |
| 17424 | .total_size = 4096, |
| 17425 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 17426 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 17427 | .tested = TEST_UNTESTED, |
| 17428 | .probe = probe_jedec_29gl, |
| 17429 | .probe_timing = TIMING_ZERO, |
| 17430 | .block_erasers = |
| 17431 | { |
| 17432 | { |
| 17433 | .eraseblocks = { |
| 17434 | {8 * 1024, 8}, |
| 17435 | {64 * 1024, 63}, |
| 17436 | }, |
| 17437 | .block_erase = erase_sector_jedec, |
| 17438 | }, { |
| 17439 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 17440 | .block_erase = erase_chip_block_jedec, |
| 17441 | }, |
| 17442 | }, |
| 17443 | .write = write_jedec_1, |
| 17444 | .read = read_memmapped, |
| 17445 | .voltage = {2700, 3600}, |
| 17446 | }, |
| 17447 | |
| 17448 | { |
| 17449 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17450 | .name = "W29GL032CH/L", |
| 17451 | .bustype = BUS_PARALLEL, |
| 17452 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 17453 | .model_id = WINBOND_W29GL032CHL, |
| 17454 | .total_size = 4096, |
| 17455 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 17456 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 17457 | .tested = TEST_UNTESTED, |
| 17458 | .probe = probe_jedec_29gl, |
| 17459 | .probe_timing = TIMING_ZERO, |
| 17460 | .block_erasers = |
| 17461 | { |
| 17462 | { |
| 17463 | .eraseblocks = { {64 * 1024, 64} }, |
| 17464 | .block_erase = erase_sector_jedec, |
| 17465 | }, { |
| 17466 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 17467 | .block_erase = erase_chip_block_jedec, |
| 17468 | }, |
| 17469 | }, |
| 17470 | .write = write_jedec_1, |
| 17471 | .read = read_memmapped, |
| 17472 | .voltage = {2700, 3600}, |
| 17473 | }, |
| 17474 | |
| 17475 | { |
| 17476 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 17477 | .name = "W29GL032CT", |
| 17478 | .bustype = BUS_PARALLEL, |
| 17479 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 17480 | .model_id = WINBOND_W29GL032CT, |
| 17481 | .total_size = 4096, |
| 17482 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 17483 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 17484 | .tested = TEST_UNTESTED, |
| 17485 | .probe = probe_jedec_29gl, |
| 17486 | .probe_timing = TIMING_ZERO, |
| 17487 | .block_erasers = |
| 17488 | { |
| 17489 | { |
| 17490 | .eraseblocks = { |
| 17491 | {64 * 1024, 63}, |
| 17492 | {8 * 1024, 8}, |
| 17493 | }, |
| 17494 | .block_erase = erase_sector_jedec, |
| 17495 | }, { |
| 17496 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 17497 | .block_erase = erase_chip_block_jedec, |
| 17498 | }, |
| 17499 | }, |
| 17500 | .write = write_jedec_1, |
| 17501 | .read = read_memmapped, |
| 17502 | .voltage = {2700, 3600}, |
| 17503 | }, |
| 17504 | |
| 17505 | { |
| 17506 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 17507 | .name = "W29GL064CB", |
| 17508 | .bustype = BUS_PARALLEL, |
| 17509 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 17510 | .model_id = WINBOND_W29GL064CB, |
| 17511 | .total_size = 8192, |
| 17512 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 17513 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 17514 | .tested = TEST_UNTESTED, |
| 17515 | .probe = probe_jedec_29gl, |
| 17516 | .probe_timing = TIMING_ZERO, |
| 17517 | .block_erasers = |
| 17518 | { |
| 17519 | { |
| 17520 | .eraseblocks = { |
| 17521 | {8 * 1024, 8}, |
| 17522 | {64 * 1024, 127}, |
| 17523 | }, |
| 17524 | .block_erase = erase_sector_jedec, |
| 17525 | }, { |
| 17526 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 17527 | .block_erase = erase_chip_block_jedec, |
| 17528 | }, |
| 17529 | }, |
| 17530 | .write = write_jedec_1, |
| 17531 | .read = read_memmapped, |
| 17532 | .voltage = {2700, 3600}, |
| 17533 | }, |
| 17534 | |
| 17535 | { |
| 17536 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17537 | .name = "W29GL064CH/L", |
| 17538 | .bustype = BUS_PARALLEL, |
| 17539 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 17540 | .model_id = WINBOND_W29GL064CHL, |
| 17541 | .total_size = 8192, |
| 17542 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 17543 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 17544 | .tested = TEST_UNTESTED, |
| 17545 | .probe = probe_jedec_29gl, |
| 17546 | .probe_timing = TIMING_ZERO, |
| 17547 | .block_erasers = |
| 17548 | { |
| 17549 | { |
| 17550 | .eraseblocks = { {64 * 1024, 128} }, |
| 17551 | .block_erase = erase_sector_jedec, |
| 17552 | }, { |
| 17553 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 17554 | .block_erase = erase_chip_block_jedec, |
| 17555 | }, |
| 17556 | }, |
| 17557 | .write = write_jedec_1, |
| 17558 | .read = read_memmapped, |
| 17559 | .voltage = {2700, 3600}, |
| 17560 | }, |
| 17561 | |
| 17562 | { |
| 17563 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 17564 | .name = "W29GL064CT", |
| 17565 | .bustype = BUS_PARALLEL, |
| 17566 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 17567 | .model_id = WINBOND_W29GL064CT, |
| 17568 | .total_size = 8192, |
| 17569 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 17570 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 17571 | .tested = TEST_UNTESTED, |
| 17572 | .probe = probe_jedec_29gl, |
| 17573 | .probe_timing = TIMING_ZERO, |
| 17574 | .block_erasers = |
| 17575 | { |
| 17576 | { |
| 17577 | .eraseblocks = { |
| 17578 | {64 * 1024, 127}, |
| 17579 | {8 * 1024, 8}, |
| 17580 | }, |
| 17581 | .block_erase = erase_sector_jedec, |
| 17582 | }, { |
| 17583 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 17584 | .block_erase = erase_chip_block_jedec, |
| 17585 | }, |
| 17586 | }, |
| 17587 | .write = write_jedec_1, |
| 17588 | .read = read_memmapped, |
| 17589 | .voltage = {2700, 3600}, |
| 17590 | }, |
| 17591 | |
| 17592 | { |
| 17593 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 17594 | .name = "W29GL128C", |
| 17595 | .bustype = BUS_PARALLEL, |
| 17596 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 17597 | .model_id = WINBOND_W29GL128CHL, |
| 17598 | .total_size = 16384, |
| 17599 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 17600 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 17601 | .tested = TEST_UNTESTED, |
| 17602 | .probe = probe_jedec_29gl, |
| 17603 | .probe_timing = TIMING_ZERO, |
| 17604 | .block_erasers = |
| 17605 | { |
| 17606 | { |
| 17607 | .eraseblocks = { {128 * 1024, 128} }, |
| 17608 | .block_erase = erase_sector_jedec, |
| 17609 | }, { |
| 17610 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 17611 | .block_erase = erase_chip_block_jedec, |
| 17612 | }, |
| 17613 | }, |
| 17614 | .write = write_jedec_1, |
| 17615 | .read = read_memmapped, |
| 17616 | .voltage = {2700, 3600}, |
| 17617 | }, |
| 17618 | |
| 17619 | { |
| 17620 | .vendor = "Winbond", |
Kyösti Mälkki | c31243e | 2012-10-28 01:50:08 +0000 | [diff] [blame] | 17621 | .name = "W39F010", |
| 17622 | .bustype = BUS_PARALLEL, |
| 17623 | .manufacture_id = WINBOND_ID, |
| 17624 | .model_id = WINBOND_W39F010, |
| 17625 | .total_size = 128, |
| 17626 | .page_size = 4 * 1024, |
| 17627 | .feature_bits = FEATURE_EITHER_RESET, |
| 17628 | .tested = TEST_OK_PREW, |
| 17629 | .probe = probe_jedec, |
| 17630 | .probe_timing = 10, |
| 17631 | .block_erasers = |
| 17632 | { |
| 17633 | { |
| 17634 | .eraseblocks = { {4 * 1024, 32} }, |
| 17635 | .block_erase = erase_block_jedec, |
| 17636 | }, { |
| 17637 | .eraseblocks = { {128 * 1024, 1} }, |
| 17638 | .block_erase = erase_chip_block_jedec, |
| 17639 | } |
| 17640 | }, |
| 17641 | .printlock = printlock_w39f010, |
| 17642 | .write = write_jedec_1, |
| 17643 | .read = read_memmapped, |
| 17644 | .voltage = {4500, 5500}, |
| 17645 | }, |
| 17646 | |
| 17647 | { |
| 17648 | .vendor = "Winbond", |
| 17649 | .name = "W39L010", |
| 17650 | .bustype = BUS_PARALLEL, |
| 17651 | .manufacture_id = WINBOND_ID, |
| 17652 | .model_id = WINBOND_W39L010, |
| 17653 | .total_size = 128, |
| 17654 | .page_size = 4 * 1024, |
| 17655 | .feature_bits = FEATURE_EITHER_RESET, |
| 17656 | .tested = TEST_UNTESTED, |
| 17657 | .probe = probe_jedec, |
| 17658 | .probe_timing = 10, |
| 17659 | .block_erasers = |
| 17660 | { |
| 17661 | { |
| 17662 | .eraseblocks = { {4 * 1024, 32} }, |
| 17663 | .block_erase = erase_block_jedec, |
| 17664 | }, { |
| 17665 | .eraseblocks = { {128 * 1024, 1} }, |
| 17666 | .block_erase = erase_chip_block_jedec, |
| 17667 | } |
| 17668 | }, |
| 17669 | .printlock = printlock_w39l010, |
| 17670 | .write = write_jedec_1, |
| 17671 | .read = read_memmapped, |
| 17672 | .voltage = {3000, 3600}, |
| 17673 | }, |
| 17674 | |
| 17675 | { |
| 17676 | .vendor = "Winbond", |
| 17677 | .name = "W39L020", |
| 17678 | .bustype = BUS_PARALLEL, |
| 17679 | .manufacture_id = WINBOND_ID, |
| 17680 | .model_id = WINBOND_W39L020, |
| 17681 | .total_size = 256, |
| 17682 | .page_size = 4 * 1024, |
| 17683 | .feature_bits = FEATURE_EITHER_RESET, |
| 17684 | .tested = TEST_UNTESTED, |
| 17685 | .probe = probe_jedec, |
| 17686 | .probe_timing = 10, |
| 17687 | .block_erasers = |
| 17688 | { |
| 17689 | { |
| 17690 | .eraseblocks = { {4 * 1024, 64} }, |
| 17691 | .block_erase = erase_block_jedec, |
| 17692 | }, { |
| 17693 | .eraseblocks = { {64 * 1024, 4} }, |
| 17694 | .block_erase = erase_sector_jedec, |
| 17695 | }, { |
| 17696 | .eraseblocks = { {256 * 1024, 1} }, |
| 17697 | .block_erase = erase_chip_block_jedec, |
| 17698 | } |
| 17699 | }, |
| 17700 | .printlock = printlock_w39l020, |
| 17701 | .write = write_jedec_1, |
| 17702 | .read = read_memmapped, |
| 17703 | .voltage = {3000, 3600}, |
| 17704 | }, |
| 17705 | |
| 17706 | { |
| 17707 | .vendor = "Winbond", |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 17708 | .name = "W39L040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17709 | .bustype = BUS_PARALLEL, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 17710 | .manufacture_id = WINBOND_ID, |
| 17711 | .model_id = WINBOND_W39L040, |
| 17712 | .total_size = 512, |
| 17713 | .page_size = 64 * 1024, |
| 17714 | .feature_bits = FEATURE_EITHER_RESET, |
| 17715 | .tested = TEST_OK_PR, |
| 17716 | .probe = probe_jedec, |
| 17717 | .probe_timing = 10, |
| 17718 | .block_erasers = |
| 17719 | { |
| 17720 | { |
| 17721 | .eraseblocks = { {4 * 1024, 128} }, |
| 17722 | .block_erase = erase_block_jedec, |
| 17723 | }, { |
| 17724 | .eraseblocks = { {64 * 1024, 8} }, |
| 17725 | .block_erase = erase_sector_jedec, |
| 17726 | }, { |
| 17727 | .eraseblocks = { {512 * 1024, 1} }, |
| 17728 | .block_erase = erase_chip_block_jedec, |
| 17729 | } |
| 17730 | }, |
| 17731 | .printlock = printlock_w39l040, |
| 17732 | .write = write_jedec_1, |
| 17733 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 17734 | .voltage = {3000, 3600}, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 17735 | }, |
| 17736 | |
| 17737 | { |
| 17738 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17739 | .name = "W39V040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17740 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17741 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17742 | .model_id = WINBOND_W39V040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17743 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 17744 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17745 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 17746 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17747 | .probe = probe_jedec, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 17748 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17749 | .block_erasers = |
| 17750 | { |
| 17751 | { |
| 17752 | .eraseblocks = { {64 * 1024, 8} }, |
| 17753 | .block_erase = erase_sector_jedec, |
| 17754 | }, { |
| 17755 | .eraseblocks = { {512 * 1024, 1} }, |
| 17756 | .block_erase = erase_chip_block_jedec, |
| 17757 | } |
| 17758 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17759 | .printlock = printlock_w39v040a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17760 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17761 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17762 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17763 | }, |
| 17764 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17765 | { |
| 17766 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17767 | .name = "W39V040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17768 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17769 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17770 | .model_id = WINBOND_W39V040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17771 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 17772 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17773 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 17774 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17775 | .probe = probe_jedec, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 17776 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17777 | .block_erasers = |
| 17778 | { |
| 17779 | { |
| 17780 | .eraseblocks = { {64 * 1024, 8} }, |
| 17781 | .block_erase = erase_sector_jedec, |
| 17782 | }, { |
| 17783 | .eraseblocks = { {512 * 1024, 1} }, |
| 17784 | .block_erase = erase_chip_block_jedec, |
| 17785 | } |
| 17786 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17787 | .printlock = printlock_w39v040b, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17788 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17789 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17790 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17791 | }, |
| 17792 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17793 | { |
| 17794 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17795 | .name = "W39V040C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17796 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17797 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17798 | .model_id = WINBOND_W39V040C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17799 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 17800 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17801 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 17802 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17803 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17804 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17805 | .block_erasers = |
| 17806 | { |
| 17807 | { |
| 17808 | .eraseblocks = { {64 * 1024, 8} }, |
| 17809 | .block_erase = erase_sector_jedec, |
| 17810 | }, { |
| 17811 | .eraseblocks = { {512 * 1024, 1} }, |
| 17812 | .block_erase = erase_chip_block_jedec, |
| 17813 | } |
| 17814 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 17815 | .printlock = printlock_w39v040c, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17816 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17817 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17818 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17819 | }, |
| 17820 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17821 | { |
| 17822 | .vendor = "Winbond", |
| 17823 | .name = "W39V040FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17824 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17825 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17826 | .model_id = WINBOND_W39V040FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17827 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 17828 | .page_size = 64 * 1024, |
Michael Karcher | c9b6341 | 2010-05-30 16:55:18 +0000 | [diff] [blame] | 17829 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 17830 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17831 | .probe = probe_jedec, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 17832 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17833 | .block_erasers = |
| 17834 | { |
| 17835 | { |
| 17836 | .eraseblocks = { {4 * 1024, 128} }, |
| 17837 | .block_erase = erase_block_jedec, |
| 17838 | }, { |
| 17839 | .eraseblocks = { {64 * 1024, 8} }, |
| 17840 | .block_erase = erase_sector_jedec, |
| 17841 | }, { |
| 17842 | .eraseblocks = { {512 * 1024, 1} }, |
| 17843 | .block_erase = erase_chip_block_jedec, |
| 17844 | } |
| 17845 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17846 | .printlock = printlock_w39v040fa, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 17847 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17848 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17849 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17850 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17851 | }, |
| 17852 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17853 | { |
| 17854 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17855 | .name = "W39V040FB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17856 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17857 | .manufacture_id = WINBOND_ID, |
| 17858 | .model_id = WINBOND_W39V040B, |
| 17859 | .total_size = 512, |
| 17860 | .page_size = 64 * 1024, |
| 17861 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 17862 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17863 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 17864 | .probe_timing = 10, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17865 | .block_erasers = |
| 17866 | { |
| 17867 | { |
| 17868 | .eraseblocks = { {64 * 1024, 8} }, |
| 17869 | .block_erase = erase_sector_jedec, |
| 17870 | }, { |
| 17871 | .eraseblocks = { {512 * 1024, 1} }, |
| 17872 | .block_erase = erase_chip_block_jedec, |
| 17873 | } |
| 17874 | }, |
| 17875 | .printlock = printlock_w39v040fb, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 17876 | .unlock = unlock_regspace2_uniform_64k, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17877 | .write = write_jedec_1, |
| 17878 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 17879 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17880 | }, |
| 17881 | |
| 17882 | { |
| 17883 | .vendor = "Winbond", |
| 17884 | .name = "W39V040FC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17885 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17886 | .manufacture_id = WINBOND_ID, |
| 17887 | .model_id = WINBOND_W39V040C, |
| 17888 | .total_size = 512, |
| 17889 | .page_size = 64 * 1024, |
| 17890 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 17891 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17892 | .probe = probe_jedec, |
| 17893 | .probe_timing = 10, |
| 17894 | .block_erasers = |
| 17895 | { |
| 17896 | { |
| 17897 | .eraseblocks = { {64 * 1024, 8} }, |
| 17898 | .block_erase = erase_sector_jedec, |
| 17899 | }, { |
| 17900 | .eraseblocks = { {512 * 1024, 1} }, |
| 17901 | .block_erase = erase_chip_block_jedec, |
| 17902 | } |
| 17903 | }, |
| 17904 | .printlock = printlock_w39v040fc, |
| 17905 | .write = write_jedec_1, |
| 17906 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 17907 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17908 | }, |
| 17909 | |
| 17910 | { |
| 17911 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17912 | .name = "W39V080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17913 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17914 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17915 | .model_id = WINBOND_W39V080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17916 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 17917 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17918 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 17919 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17920 | .probe = probe_jedec, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 17921 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 17922 | .block_erasers = |
| 17923 | { |
| 17924 | { |
| 17925 | .eraseblocks = { {64 * 1024, 16} }, |
| 17926 | .block_erase = erase_sector_jedec, |
| 17927 | }, { |
| 17928 | .eraseblocks = { {1024 * 1024, 1} }, |
| 17929 | .block_erase = erase_chip_block_jedec, |
| 17930 | } |
| 17931 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 17932 | .printlock = printlock_w39v080a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17933 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17934 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17935 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17936 | }, |
| 17937 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17938 | { |
| 17939 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17940 | .name = "W39V080FA", |
| 17941 | .bustype = BUS_FWH, |
| 17942 | .manufacture_id = WINBOND_ID, |
| 17943 | .model_id = WINBOND_W39V080FA, |
| 17944 | .total_size = 1024, |
| 17945 | .page_size = 64 * 1024, |
| 17946 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
| 17947 | .tested = TEST_OK_PREW, |
| 17948 | .probe = probe_jedec, |
| 17949 | .probe_timing = 10, |
| 17950 | .block_erasers = |
| 17951 | { |
| 17952 | { |
| 17953 | .eraseblocks = { {64 * 1024, 16} }, |
| 17954 | .block_erase = erase_sector_jedec, |
| 17955 | }, { |
| 17956 | .eraseblocks = { {1024 * 1024, 1} }, |
| 17957 | .block_erase = erase_chip_block_jedec, |
| 17958 | } |
| 17959 | }, |
| 17960 | .printlock = printlock_w39v080fa, |
| 17961 | .unlock = unlock_regspace2_uniform_64k, |
| 17962 | .write = write_jedec_1, |
| 17963 | .read = read_memmapped, |
| 17964 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
| 17965 | }, |
| 17966 | |
| 17967 | { |
| 17968 | .vendor = "Winbond", |
| 17969 | .name = "W39V080FA (dual mode)", |
| 17970 | .bustype = BUS_FWH, |
| 17971 | .manufacture_id = WINBOND_ID, |
| 17972 | .model_id = WINBOND_W39V080FA_DM, |
| 17973 | .total_size = 512, |
| 17974 | .page_size = 64 * 1024, |
| 17975 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
| 17976 | .tested = TEST_UNTESTED, |
| 17977 | .probe = probe_jedec, |
| 17978 | .probe_timing = 10, |
| 17979 | .block_erasers = |
| 17980 | { |
| 17981 | { |
| 17982 | .eraseblocks = { {64 * 1024, 8} }, |
| 17983 | .block_erase = erase_sector_jedec, |
| 17984 | }, { |
| 17985 | .eraseblocks = { {512 * 1024, 1} }, |
| 17986 | .block_erase = erase_chip_block_jedec, |
| 17987 | } |
| 17988 | }, |
| 17989 | .printlock = printlock_w39v080fa_dual, |
| 17990 | .write = write_jedec_1, |
| 17991 | .read = read_memmapped, |
| 17992 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
| 17993 | }, |
| 17994 | |
| 17995 | { |
| 17996 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 17997 | .name = "W49F002U/N", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17998 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17999 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18000 | .model_id = WINBOND_W49F002U, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18001 | .total_size = 256, |
| 18002 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18003 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 18004 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18005 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 18006 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 18007 | .block_erasers = |
| 18008 | { |
| 18009 | { |
| 18010 | .eraseblocks = { |
| 18011 | {128 * 1024, 1}, |
| 18012 | {96 * 1024, 1}, |
| 18013 | {8 * 1024, 2}, |
| 18014 | {16 * 1024, 1}, |
| 18015 | }, |
| 18016 | .block_erase = erase_sector_jedec, |
| 18017 | }, { |
| 18018 | .eraseblocks = { {256 * 1024, 1} }, |
| 18019 | .block_erase = erase_chip_block_jedec, |
| 18020 | } |
| 18021 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18022 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18023 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 18024 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18025 | }, |
| 18026 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18027 | { |
| 18028 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 18029 | .name = "W49F020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18030 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 18031 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18032 | .model_id = WINBOND_W49F020, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 18033 | .total_size = 256, |
| 18034 | .page_size = 128, |
| 18035 | .feature_bits = FEATURE_EITHER_RESET, |
| 18036 | .tested = TEST_OK_PROBE, |
| 18037 | .probe = probe_jedec, |
| 18038 | .probe_timing = 10, |
| 18039 | .block_erasers = |
| 18040 | { |
| 18041 | { |
| 18042 | .eraseblocks = { {256 * 1024, 1} }, |
| 18043 | .block_erase = erase_chip_block_jedec, |
| 18044 | } |
| 18045 | }, |
| 18046 | .write = write_jedec_1, |
| 18047 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 18048 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 18049 | }, |
| 18050 | |
| 18051 | { |
| 18052 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18053 | .name = "W49V002A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18054 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18055 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18056 | .model_id = WINBOND_W49V002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18057 | .total_size = 256, |
| 18058 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18059 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 18060 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18061 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 18062 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 18063 | .block_erasers = |
| 18064 | { |
| 18065 | { |
| 18066 | .eraseblocks = { |
| 18067 | {64 * 1024, 3}, |
| 18068 | {32 * 1024, 1}, |
| 18069 | {8 * 1024, 2}, |
| 18070 | {16 * 1024, 1}, |
| 18071 | }, |
| 18072 | .block_erase = erase_sector_jedec, |
| 18073 | }, { |
| 18074 | .eraseblocks = { {256 * 1024, 1} }, |
| 18075 | .block_erase = erase_chip_block_jedec, |
| 18076 | } |
| 18077 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18078 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18079 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 18080 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18081 | }, |
| 18082 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18083 | { |
| 18084 | .vendor = "Winbond", |
| 18085 | .name = "W49V002FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18086 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18087 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18088 | .model_id = WINBOND_W49V002FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18089 | .total_size = 256, |
| 18090 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18091 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 18092 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18093 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 18094 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 18095 | .block_erasers = |
| 18096 | { |
| 18097 | { |
| 18098 | .eraseblocks = { |
| 18099 | {64 * 1024, 3}, |
| 18100 | {32 * 1024, 1}, |
| 18101 | {8 * 1024, 2}, |
| 18102 | {16 * 1024, 1}, |
| 18103 | }, |
| 18104 | .block_erase = erase_sector_jedec, |
| 18105 | }, { |
| 18106 | .eraseblocks = { {256 * 1024, 1} }, |
| 18107 | .block_erase = erase_chip_block_jedec, |
| 18108 | } |
| 18109 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18110 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18111 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 18112 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18113 | }, |
| 18114 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18115 | { |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 18116 | .vendor = "Zetta Device", |
| 18117 | .name = "ZD25D20", |
| 18118 | .bustype = BUS_SPI, |
| 18119 | .manufacture_id = ZETTADEVICE_ID, |
| 18120 | .model_id = ZETTADEVICE_ZD25D20, |
| 18121 | .total_size = 256, |
| 18122 | .page_size = 256, |
| 18123 | .feature_bits = FEATURE_WRSR_WREN, |
| 18124 | .tested = TEST_UNTESTED, |
| 18125 | .probe = probe_spi_rdid, |
| 18126 | .probe_timing = TIMING_ZERO, |
| 18127 | .block_erasers = |
David Hendricks | a72d5a9 | 2018-02-11 17:58:44 -0800 | [diff] [blame] | 18128 | { |
| 18129 | { |
| 18130 | .eraseblocks = { {4 * 1024, 64} }, |
| 18131 | .block_erase = spi_block_erase_20, |
| 18132 | }, { |
| 18133 | .eraseblocks = { {32 * 1024, 8} }, |
| 18134 | .block_erase = spi_block_erase_52, |
| 18135 | }, { |
| 18136 | .eraseblocks = { {64 * 1024, 4} }, |
| 18137 | .block_erase = spi_block_erase_d8, |
| 18138 | }, { |
| 18139 | .eraseblocks = { {256 * 1024, 1} }, |
| 18140 | .block_erase = spi_block_erase_60, |
| 18141 | }, { |
| 18142 | .eraseblocks = { {256 * 1024, 1} }, |
| 18143 | .block_erase = spi_block_erase_c7, |
| 18144 | } |
| 18145 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 18146 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18147 | .unlock = spi_disable_blockprotect, |
| 18148 | .write = spi_chip_write_256, |
| 18149 | .read = spi_chip_read, |
| 18150 | .voltage = {2700, 3600}, |
David Hendricks | a72d5a9 | 2018-02-11 17:58:44 -0800 | [diff] [blame] | 18151 | }, |
| 18152 | |
| 18153 | { |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 18154 | .vendor = "Zetta Device", |
| 18155 | .name = "ZD25D40", |
| 18156 | .bustype = BUS_SPI, |
| 18157 | .manufacture_id = ZETTADEVICE_ID, |
| 18158 | .model_id = ZETTADEVICE_ZD25D40, |
| 18159 | .total_size = 512, |
| 18160 | .page_size = 256, |
| 18161 | .feature_bits = FEATURE_WRSR_WREN, |
| 18162 | .tested = TEST_UNTESTED, |
| 18163 | .probe = probe_spi_rdid, |
| 18164 | .probe_timing = TIMING_ZERO, |
| 18165 | .block_erasers = |
nybash | cbb46e2 | 2018-02-11 17:53:49 -0800 | [diff] [blame] | 18166 | { |
| 18167 | { |
| 18168 | .eraseblocks = { {4 * 1024, 128} }, |
| 18169 | .block_erase = spi_block_erase_20, |
| 18170 | }, { |
| 18171 | .eraseblocks = { {32 * 1024, 16} }, |
| 18172 | .block_erase = spi_block_erase_52, |
| 18173 | }, { |
| 18174 | .eraseblocks = { {64 * 1024, 8} }, |
| 18175 | .block_erase = spi_block_erase_d8, |
| 18176 | }, { |
| 18177 | .eraseblocks = { {512 * 1024, 1} }, |
| 18178 | .block_erase = spi_block_erase_60, |
| 18179 | }, { |
| 18180 | .eraseblocks = { {512 * 1024, 1} }, |
| 18181 | .block_erase = spi_block_erase_c7, |
| 18182 | } |
| 18183 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 18184 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18185 | .unlock = spi_disable_blockprotect, |
| 18186 | .write = spi_chip_write_256, |
| 18187 | .read = spi_chip_read, |
| 18188 | .voltage = {2700, 3600}, |
nybash | cbb46e2 | 2018-02-11 17:53:49 -0800 | [diff] [blame] | 18189 | }, |
| 18190 | |
Stefan Tauner | ac1b4c8 | 2012-02-17 14:51:04 +0000 | [diff] [blame] | 18191 | { |
Alan Green | dd59220 | 2019-08-23 10:11:37 +1000 | [diff] [blame] | 18192 | .vendor = "Unknown", |
| 18193 | .name = "SFDP-capable chip", |
| 18194 | .bustype = BUS_SPI, |
| 18195 | .manufacture_id = GENERIC_MANUF_ID, |
| 18196 | .model_id = SFDP_DEVICE_ID, |
| 18197 | .total_size = 0, /* set by probing function */ |
| 18198 | .page_size = 0, /* set by probing function */ |
| 18199 | .feature_bits = 0, /* set by probing function */ |
| 18200 | /* We present our own "report this" text hence we do not */ |
| 18201 | /* want the default "This flash part has status UNTESTED..." */ |
| 18202 | /* text to be printed. */ |
| 18203 | .tested = TEST_OK_PREW, |
| 18204 | .probe = probe_spi_sfdp, |
| 18205 | .block_erasers = {}, /* set by probing function */ |
| 18206 | .unlock = spi_disable_blockprotect, /* is this safe? */ |
| 18207 | .write = NULL, /* set by probing function */ |
| 18208 | .read = spi_chip_read, |
| 18209 | /* FIXME: some vendor extensions define this */ |
| 18210 | .voltage = {0}, |
| 18211 | }, |
| 18212 | |
| 18213 | { |
Carl-Daniel Hailfinger | 532c717 | 2011-11-04 21:35:26 +0000 | [diff] [blame] | 18214 | .vendor = "Programmer", |
| 18215 | .name = "Opaque flash chip", |
| 18216 | .bustype = BUS_PROG, |
| 18217 | .manufacture_id = PROGMANUF_ID, |
| 18218 | .model_id = PROGDEV_ID, |
| 18219 | .total_size = 0, |
| 18220 | .page_size = 256, |
| 18221 | /* probe is assumed to work, rest will be filled in by probe */ |
| 18222 | .tested = TEST_OK_PROBE, |
| 18223 | .probe = probe_opaque, |
| 18224 | /* eraseblock sizes will be set by the probing function */ |
| 18225 | .block_erasers = |
| 18226 | { |
| 18227 | { |
| 18228 | .block_erase = erase_opaque, |
| 18229 | } |
| 18230 | }, |
| 18231 | .write = write_opaque, |
| 18232 | .read = read_opaque, |
| 18233 | }, |
| 18234 | |
| 18235 | { |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 18236 | .vendor = "AMIC", |
| 18237 | .name = "unknown AMIC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18238 | .bustype = BUS_SPI, |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 18239 | .manufacture_id = AMIC_ID, |
| 18240 | .model_id = GENERIC_DEVICE_ID, |
| 18241 | .total_size = 0, |
| 18242 | .page_size = 256, |
| 18243 | .tested = TEST_BAD_PREW, |
| 18244 | .probe = probe_spi_rdid4, |
| 18245 | .probe_timing = TIMING_ZERO, |
| 18246 | .write = NULL, |
| 18247 | .read = NULL, |
| 18248 | }, |
| 18249 | |
| 18250 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18251 | .vendor = "Atmel", |
| 18252 | .name = "unknown Atmel SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18253 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18254 | .manufacture_id = ATMEL_ID, |
| 18255 | .model_id = GENERIC_DEVICE_ID, |
| 18256 | .total_size = 0, |
| 18257 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 18258 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18259 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 18260 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18261 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18262 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18263 | }, |
| 18264 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18265 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 18266 | .vendor = "Eon", |
| 18267 | .name = "unknown Eon SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18268 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18269 | .manufacture_id = EON_ID_NOPREFIX, |
| 18270 | .model_id = GENERIC_DEVICE_ID, |
| 18271 | .total_size = 0, |
| 18272 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 18273 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18274 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 18275 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18276 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18277 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18278 | }, |
| 18279 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18280 | { |
| 18281 | .vendor = "Macronix", |
| 18282 | .name = "unknown Macronix SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18283 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 18284 | .manufacture_id = MACRONIX_ID, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18285 | .model_id = GENERIC_DEVICE_ID, |
| 18286 | .total_size = 0, |
| 18287 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 18288 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18289 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 18290 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18291 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18292 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18293 | }, |
| 18294 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18295 | { |
| 18296 | .vendor = "PMC", |
| 18297 | .name = "unknown PMC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18298 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18299 | .manufacture_id = PMC_ID, |
| 18300 | .model_id = GENERIC_DEVICE_ID, |
| 18301 | .total_size = 0, |
| 18302 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 18303 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18304 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 18305 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18306 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18307 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18308 | }, |
| 18309 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18310 | { |
| 18311 | .vendor = "SST", |
| 18312 | .name = "unknown SST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18313 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18314 | .manufacture_id = SST_ID, |
| 18315 | .model_id = GENERIC_DEVICE_ID, |
| 18316 | .total_size = 0, |
| 18317 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 18318 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18319 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 18320 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18321 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18322 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18323 | }, |
| 18324 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18325 | { |
| 18326 | .vendor = "ST", |
| 18327 | .name = "unknown ST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18328 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18329 | .manufacture_id = ST_ID, |
| 18330 | .model_id = GENERIC_DEVICE_ID, |
| 18331 | .total_size = 0, |
| 18332 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 18333 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18334 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 18335 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18336 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18337 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18338 | }, |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 18339 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 18340 | { |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 18341 | .vendor = "Sanyo", |
| 18342 | .name = "unknown Sanyo SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18343 | .bustype = BUS_SPI, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 18344 | .manufacture_id = SANYO_ID, |
| 18345 | .model_id = GENERIC_DEVICE_ID, |
| 18346 | .total_size = 0, |
| 18347 | .page_size = 256, |
| 18348 | .tested = TEST_BAD_PREW, |
| 18349 | .probe = probe_spi_rdid, |
| 18350 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 18351 | .write = NULL, |
| 18352 | .read = NULL, |
| 18353 | }, |
| 18354 | |
| 18355 | { |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 18356 | .vendor = "Winbond", |
| 18357 | .name = "unknown Winbond (ex Nexcom) SPI chip", |
| 18358 | .bustype = BUS_SPI, |
| 18359 | .manufacture_id = WINBOND_NEX_ID, |
| 18360 | .model_id = GENERIC_DEVICE_ID, |
| 18361 | .total_size = 0, |
| 18362 | .page_size = 256, |
| 18363 | .tested = TEST_BAD_PREW, |
| 18364 | .probe = probe_spi_rdid, |
| 18365 | .probe_timing = TIMING_ZERO, |
| 18366 | .write = NULL, |
| 18367 | .read = NULL, |
| 18368 | }, |
| 18369 | |
| 18370 | { |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 18371 | .vendor = "Generic", |
| 18372 | .name = "unknown SPI chip (RDID)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18373 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 18374 | .manufacture_id = GENERIC_MANUF_ID, |
| 18375 | .model_id = GENERIC_DEVICE_ID, |
| 18376 | .total_size = 0, |
| 18377 | .page_size = 256, |
| 18378 | .tested = TEST_BAD_PREW, |
| 18379 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 18380 | .write = NULL, |
| 18381 | }, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 18382 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 18383 | { |
| 18384 | .vendor = "Generic", |
| 18385 | .name = "unknown SPI chip (REMS)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18386 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 18387 | .manufacture_id = GENERIC_MANUF_ID, |
| 18388 | .model_id = GENERIC_DEVICE_ID, |
| 18389 | .total_size = 0, |
| 18390 | .page_size = 256, |
| 18391 | .tested = TEST_BAD_PREW, |
| 18392 | .probe = probe_spi_rems, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 18393 | .write = NULL, |
| 18394 | }, |
| 18395 | |
Stefan Tauner | 96658be | 2014-05-26 22:05:31 +0000 | [diff] [blame] | 18396 | {0} |
Stephan Guilloux | 72cf565 | 2009-04-21 01:46:07 +0000 | [diff] [blame] | 18397 | }; |
Stefan Tauner | 96658be | 2014-05-26 22:05:31 +0000 | [diff] [blame] | 18398 | |
| 18399 | const unsigned int flashchips_size = ARRAY_SIZE(flashchips); |