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 |
Nico Huber | c3b02dc | 2023-08-12 01:13:45 +0200 | [diff] [blame] | 29 | * assist with merging the Chromium fork of flashprog. |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 30 | * |
| 31 | * The usual intention is that that this list is sorted by vendor, then chip |
Nico Huber | c3b02dc | 2023-08-12 01:13:45 +0200 | [diff] [blame] | 32 | * family and chip density, which is useful for the output of 'flashprog -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 |
Nico Huber | c3b02dc | 2023-08-12 01:13:45 +0200 | [diff] [blame] | 1106 | * and discussed on the flashprog mailing list on 2010-07-12. |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1107 | */ |
| 1108 | { |
| 1109 | .vendor = "AMIC", |
| 1110 | .name = "A25L40PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1111 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1112 | .manufacture_id = AMIC_ID, |
| 1113 | .model_id = AMIC_A25L40PT, |
| 1114 | .total_size = 512, |
| 1115 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1116 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 1117 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1118 | .probe = probe_spi_rdid4, |
| 1119 | .probe_timing = TIMING_ZERO, |
| 1120 | .block_erasers = |
| 1121 | { |
| 1122 | { |
| 1123 | .eraseblocks = { |
| 1124 | {64 * 1024, 7}, |
| 1125 | {32 * 1024, 1}, |
| 1126 | {16 * 1024, 1}, |
| 1127 | {8 * 1024, 1}, |
| 1128 | {4 * 1024, 2}, |
| 1129 | }, |
| 1130 | .block_erase = spi_block_erase_d8, |
| 1131 | }, { |
| 1132 | .eraseblocks = { {512 * 1024, 1} }, |
| 1133 | .block_erase = spi_block_erase_c7, |
| 1134 | } |
| 1135 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1136 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1137 | .unlock = spi_disable_blockprotect, |
| 1138 | .write = spi_chip_write_256, |
| 1139 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1140 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1141 | }, |
| 1142 | |
| 1143 | { |
| 1144 | .vendor = "AMIC", |
| 1145 | .name = "A25L40PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1146 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1147 | .manufacture_id = AMIC_ID, |
| 1148 | .model_id = AMIC_A25L40PU, |
| 1149 | .total_size = 512, |
| 1150 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1151 | .feature_bits = FEATURE_WRSR_WREN, |
Angel Pons | 6f08835 | 2018-09-30 19:59:42 +0200 | [diff] [blame] | 1152 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1153 | .probe = probe_spi_rdid4, |
| 1154 | .probe_timing = TIMING_ZERO, |
| 1155 | .block_erasers = |
| 1156 | { |
| 1157 | { |
| 1158 | .eraseblocks = { |
| 1159 | {4 * 1024, 2}, |
| 1160 | {8 * 1024, 1}, |
| 1161 | {16 * 1024, 1}, |
| 1162 | {32 * 1024, 1}, |
| 1163 | {64 * 1024, 7}, |
| 1164 | }, |
| 1165 | .block_erase = spi_block_erase_d8, |
| 1166 | }, { |
| 1167 | .eraseblocks = { {512 * 1024, 1} }, |
| 1168 | .block_erase = spi_block_erase_c7, |
| 1169 | } |
| 1170 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1171 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1172 | .unlock = spi_disable_blockprotect, |
| 1173 | .write = spi_chip_write_256, |
| 1174 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1175 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1176 | }, |
| 1177 | |
| 1178 | { |
| 1179 | .vendor = "AMIC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 1180 | .name = "A25L512", |
| 1181 | .bustype = BUS_SPI, |
| 1182 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1183 | .model_id = AMIC_A25L512, |
| 1184 | .total_size = 64, |
| 1185 | .page_size = 256, |
| 1186 | .feature_bits = FEATURE_WRSR_WREN, |
| 1187 | .tested = TEST_UNTESTED, |
| 1188 | .probe = probe_spi_rdid, |
| 1189 | .probe_timing = TIMING_ZERO, |
| 1190 | .block_erasers = |
| 1191 | { |
| 1192 | { |
| 1193 | .eraseblocks = { { 4 * 1024, 16 } }, |
| 1194 | .block_erase = spi_block_erase_20, |
| 1195 | }, { |
| 1196 | .eraseblocks = { { 64 * 1024, 1 } }, |
| 1197 | .block_erase = spi_block_erase_d8, |
| 1198 | }, { |
| 1199 | .eraseblocks = { { 64 * 1024, 1 } }, |
| 1200 | .block_erase = spi_block_erase_c7, |
| 1201 | } |
| 1202 | }, |
| 1203 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 1204 | .unlock = spi_disable_blockprotect, |
| 1205 | .write = spi_chip_write_256, |
| 1206 | .read = spi_chip_read, |
| 1207 | .voltage = {2700, 3600}, |
| 1208 | }, |
| 1209 | |
| 1210 | { |
| 1211 | .vendor = "AMIC", |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1212 | .name = "A25L80P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1213 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1214 | .manufacture_id = AMIC_ID, |
| 1215 | .model_id = AMIC_A25L80P, |
| 1216 | .total_size = 1024, |
| 1217 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1218 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 1219 | .tested = TEST_OK_PRE, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1220 | .probe = probe_spi_rdid4, |
| 1221 | .probe_timing = TIMING_ZERO, |
| 1222 | .block_erasers = |
| 1223 | { |
| 1224 | { |
| 1225 | .eraseblocks = { |
| 1226 | {4 * 1024, 2}, |
| 1227 | {8 * 1024, 1}, |
| 1228 | {16 * 1024, 1}, |
| 1229 | {32 * 1024, 1}, |
| 1230 | {64 * 1024, 15}, |
| 1231 | }, |
| 1232 | .block_erase = spi_block_erase_d8, |
| 1233 | }, { |
| 1234 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1235 | .block_erase = spi_block_erase_c7, |
| 1236 | } |
| 1237 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1238 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1239 | .unlock = spi_disable_blockprotect, |
| 1240 | .write = spi_chip_write_256, |
| 1241 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1242 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1243 | }, |
| 1244 | |
| 1245 | { |
| 1246 | .vendor = "AMIC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 1247 | .name = "A25LQ032/A25LQ32A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1248 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1249 | .manufacture_id = AMIC_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 1250 | .model_id = AMIC_A25LQ032, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1251 | .total_size = 4096, |
| 1252 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 1253 | /* A25LQ32A supports SFDP */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1254 | /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */ |
| 1255 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 1256 | .tested = TEST_UNTESTED, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1257 | .probe = probe_spi_rdid, |
| 1258 | .probe_timing = TIMING_ZERO, |
| 1259 | .block_erasers = |
| 1260 | { |
| 1261 | { |
| 1262 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 1263 | .block_erase = spi_block_erase_20, |
| 1264 | }, { |
| 1265 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1266 | .block_erase = spi_block_erase_52, |
| 1267 | }, { |
| 1268 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1269 | .block_erase = spi_block_erase_d8, |
| 1270 | }, { |
| 1271 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1272 | .block_erase = spi_block_erase_60, |
| 1273 | }, { |
| 1274 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1275 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1276 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1277 | }, |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1278 | .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */ |
| 1279 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1280 | .write = spi_chip_write_256, |
| 1281 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1282 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1283 | }, |
| 1284 | |
| 1285 | { |
| 1286 | .vendor = "AMIC", |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1287 | .name = "A25LQ16", |
| 1288 | .bustype = BUS_SPI, |
| 1289 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1290 | .model_id = AMIC_A25LQ16, |
| 1291 | .total_size = 2048, |
| 1292 | .page_size = 256, |
| 1293 | /* supports SFDP */ |
| 1294 | /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */ |
| 1295 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1296 | .tested = TEST_UNTESTED, |
| 1297 | .probe = probe_spi_rdid, |
| 1298 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 1299 | .block_erasers = |
| 1300 | { |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1301 | { |
| 1302 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 1303 | .block_erase = spi_block_erase_20, |
| 1304 | }, { |
| 1305 | .eraseblocks = { { 64 * 1024, 32 } }, |
| 1306 | .block_erase = spi_block_erase_52, |
| 1307 | }, { |
| 1308 | .eraseblocks = { { 64 * 1024, 32 } }, |
| 1309 | .block_erase = spi_block_erase_d8, |
| 1310 | }, { |
| 1311 | .eraseblocks = { { 2048 * 1024, 1 } }, |
| 1312 | .block_erase = spi_block_erase_60, |
| 1313 | }, { |
| 1314 | .eraseblocks = { { 2048 * 1024, 1 } }, |
| 1315 | .block_erase = spi_block_erase_c7, |
| 1316 | } |
| 1317 | }, |
| 1318 | .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */ |
| 1319 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 1320 | .write = spi_chip_write_256, |
| 1321 | .read = spi_chip_read, |
| 1322 | .voltage = {2700, 3600}, |
| 1323 | }, |
| 1324 | |
| 1325 | { |
| 1326 | .vendor = "AMIC", |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1327 | .name = "A25LQ64", |
| 1328 | .bustype = BUS_SPI, |
| 1329 | .manufacture_id = AMIC_ID_NOPREFIX, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 1330 | .model_id = AMIC_A25LQ64, |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1331 | .total_size = 8192, |
| 1332 | .page_size = 256, |
| 1333 | /* supports SFDP */ |
| 1334 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 1335 | /* QPI enable 0x35, disable 0xF5 */ |
| 1336 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 1337 | .tested = TEST_UNTESTED, |
| 1338 | .probe = probe_spi_rdid, |
| 1339 | .probe_timing = TIMING_ZERO, |
| 1340 | .block_erasers = |
| 1341 | { |
| 1342 | { |
| 1343 | .eraseblocks = { { 4 * 1024, 2048 } }, |
| 1344 | .block_erase = spi_block_erase_20, |
| 1345 | }, { |
| 1346 | .eraseblocks = { { 32 * 1024, 256 } }, |
| 1347 | .block_erase = spi_block_erase_52, |
| 1348 | }, { |
| 1349 | .eraseblocks = { { 64 * 1024, 128 } }, |
| 1350 | .block_erase = spi_block_erase_d8, |
| 1351 | }, { |
| 1352 | .eraseblocks = { { 8192 * 1024, 1 } }, |
| 1353 | .block_erase = spi_block_erase_60, |
| 1354 | }, { |
| 1355 | .eraseblocks = { { 8192 * 1024, 1 } }, |
| 1356 | .block_erase = spi_block_erase_c7, |
| 1357 | } |
| 1358 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1359 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enhance (sic!) */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 1360 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1361 | .write = spi_chip_write_256, |
| 1362 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1363 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1364 | }, |
| 1365 | |
| 1366 | { |
| 1367 | .vendor = "AMIC", |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1368 | .name = "A29002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1369 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1370 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1371 | .model_id = AMIC_A29002B, |
| 1372 | .total_size = 256, |
| 1373 | .page_size = 64 * 1024, |
| 1374 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 1375 | .tested = TEST_UNTESTED, |
| 1376 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1377 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1378 | .block_erasers = |
| 1379 | { |
| 1380 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1381 | .eraseblocks = { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1382 | {16 * 1024, 1}, |
| 1383 | {8 * 1024, 2}, |
| 1384 | {32 * 1024, 1}, |
| 1385 | {64 * 1024, 3}, |
| 1386 | }, |
| 1387 | .block_erase = erase_sector_jedec, |
| 1388 | }, { |
| 1389 | .eraseblocks = { {256 * 1024, 1} }, |
| 1390 | .block_erase = erase_chip_block_jedec, |
| 1391 | }, |
| 1392 | }, |
| 1393 | .write = write_jedec_1, |
| 1394 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1395 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1396 | }, |
| 1397 | |
| 1398 | { |
| 1399 | .vendor = "AMIC", |
| 1400 | .name = "A29002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1401 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1402 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1403 | .model_id = AMIC_A29002T, |
| 1404 | .total_size = 256, |
| 1405 | .page_size = 64 * 1024, |
| 1406 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 1407 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1408 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1409 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1410 | .block_erasers = |
| 1411 | { |
| 1412 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1413 | .eraseblocks = { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1414 | {64 * 1024, 3}, |
| 1415 | {32 * 1024, 1}, |
| 1416 | {8 * 1024, 2}, |
| 1417 | {16 * 1024, 1}, |
| 1418 | }, |
| 1419 | .block_erase = erase_sector_jedec, |
| 1420 | }, { |
| 1421 | .eraseblocks = { {256 * 1024, 1} }, |
| 1422 | .block_erase = erase_chip_block_jedec, |
| 1423 | }, |
| 1424 | }, |
| 1425 | .write = write_jedec_1, |
| 1426 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1427 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1428 | }, |
| 1429 | |
| 1430 | { |
| 1431 | .vendor = "AMIC", |
| 1432 | .name = "A29040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1433 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1434 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1435 | .model_id = AMIC_A29040B, |
| 1436 | .total_size = 512, |
| 1437 | .page_size = 64 * 1024, |
| 1438 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Corey Osgood | cbd5665 | 2013-09-10 10:42:48 +0000 | [diff] [blame] | 1439 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1440 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1441 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1442 | .block_erasers = |
| 1443 | { |
| 1444 | { |
| 1445 | .eraseblocks = { {64 * 1024, 8} }, |
| 1446 | .block_erase = erase_sector_jedec, |
| 1447 | }, { |
| 1448 | .eraseblocks = { {512 * 1024, 1} }, |
| 1449 | .block_erase = erase_chip_block_jedec, |
| 1450 | }, |
| 1451 | }, |
| 1452 | .write = write_jedec_1, |
| 1453 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1454 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1455 | }, |
| 1456 | |
| 1457 | { |
| 1458 | .vendor = "AMIC", |
| 1459 | .name = "A49LF040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1460 | .bustype = BUS_LPC, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1461 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1462 | .model_id = AMIC_A49LF040A, |
| 1463 | .total_size = 512, |
| 1464 | .page_size = 64 * 1024, |
| 1465 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 1466 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1467 | .probe = probe_jedec, |
| 1468 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
| 1469 | .block_erasers = |
| 1470 | { |
| 1471 | { |
| 1472 | .eraseblocks = { {64 * 1024, 8} }, |
| 1473 | .block_erase = erase_block_jedec, |
| 1474 | }, { |
| 1475 | .eraseblocks = { {512 * 1024, 1} }, |
| 1476 | .block_erase = erase_chip_block_jedec, |
| 1477 | } |
| 1478 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 1479 | .unlock = unlock_regspace2_uniform_64k, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1480 | .write = write_jedec_1, |
| 1481 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1482 | .voltage = {3000, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1483 | }, |
| 1484 | |
| 1485 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1486 | .vendor = "Atmel", |
| 1487 | .name = "AT25DF021", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1488 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1489 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1490 | .model_id = ATMEL_AT25DF021, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1491 | .total_size = 256, |
| 1492 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1493 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1494 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1495 | .tested = TEST_UNTESTED, |
| 1496 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1497 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1498 | .block_erasers = |
| 1499 | { |
| 1500 | { |
| 1501 | .eraseblocks = { {4 * 1024, 64} }, |
| 1502 | .block_erase = spi_block_erase_20, |
| 1503 | }, { |
| 1504 | .eraseblocks = { {32 * 1024, 8} }, |
| 1505 | .block_erase = spi_block_erase_52, |
| 1506 | }, { |
| 1507 | .eraseblocks = { {64 * 1024, 4} }, |
| 1508 | .block_erase = spi_block_erase_d8, |
| 1509 | }, { |
| 1510 | .eraseblocks = { {256 * 1024, 1} }, |
| 1511 | .block_erase = spi_block_erase_60, |
| 1512 | }, { |
| 1513 | .eraseblocks = { {256 * 1024, 1} }, |
| 1514 | .block_erase = spi_block_erase_c7, |
| 1515 | } |
| 1516 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1517 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1518 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1519 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1520 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1521 | .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1522 | }, |
| 1523 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1524 | { |
| 1525 | .vendor = "Atmel", |
Steffen Mauch | 0b59b0d | 2018-06-02 23:46:03 +0200 | [diff] [blame] | 1526 | .name = "AT25DF021A", |
| 1527 | .bustype = BUS_SPI, |
| 1528 | .manufacture_id = ATMEL_ID, |
| 1529 | .model_id = ATMEL_AT25DF021A, |
| 1530 | .total_size = 256, |
| 1531 | .page_size = 256, |
| 1532 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1533 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1534 | .tested = TEST_OK_PREW, |
| 1535 | .probe = probe_spi_rdid, |
| 1536 | .probe_timing = TIMING_ZERO, |
| 1537 | .block_erasers = |
| 1538 | { |
| 1539 | { |
| 1540 | .eraseblocks = { {4 * 1024, 64} }, |
| 1541 | .block_erase = spi_block_erase_20, |
| 1542 | }, { |
| 1543 | .eraseblocks = { {32 * 1024, 8} }, |
| 1544 | .block_erase = spi_block_erase_52, |
| 1545 | }, { |
| 1546 | .eraseblocks = { {64 * 1024, 4} }, |
| 1547 | .block_erase = spi_block_erase_d8, |
| 1548 | }, { |
| 1549 | .eraseblocks = { {256 * 1024, 1} }, |
| 1550 | .block_erase = spi_block_erase_60, |
| 1551 | }, { |
| 1552 | .eraseblocks = { {256 * 1024, 1} }, |
| 1553 | .block_erase = spi_block_erase_c7, |
| 1554 | } |
| 1555 | }, |
| 1556 | .printlock = spi_prettyprint_status_register_at25df, |
| 1557 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
| 1558 | .write = spi_chip_write_256, |
| 1559 | .read = spi_chip_read, |
| 1560 | .voltage = {1650, 3600}, |
| 1561 | }, |
| 1562 | |
| 1563 | { |
| 1564 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1565 | .name = "AT25DF041A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1566 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1567 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1568 | .model_id = ATMEL_AT25DF041A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1569 | .total_size = 512, |
| 1570 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1571 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 1572 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1573 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1574 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1575 | .block_erasers = |
| 1576 | { |
| 1577 | { |
| 1578 | .eraseblocks = { {4 * 1024, 128} }, |
| 1579 | .block_erase = spi_block_erase_20, |
| 1580 | }, { |
| 1581 | .eraseblocks = { {32 * 1024, 16} }, |
| 1582 | .block_erase = spi_block_erase_52, |
| 1583 | }, { |
| 1584 | .eraseblocks = { {64 * 1024, 8} }, |
| 1585 | .block_erase = spi_block_erase_d8, |
| 1586 | }, { |
| 1587 | .eraseblocks = { {512 * 1024, 1} }, |
| 1588 | .block_erase = spi_block_erase_60, |
| 1589 | }, { |
| 1590 | .eraseblocks = { {512 * 1024, 1} }, |
| 1591 | .block_erase = spi_block_erase_c7, |
| 1592 | } |
| 1593 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1594 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1595 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1596 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1597 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1598 | .voltage = {2700, 3600}, /* 2.3-3.6V & 2.7-3.6V models available */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1599 | }, |
| 1600 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1601 | { |
| 1602 | .vendor = "Atmel", |
| 1603 | .name = "AT25DF081", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1604 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1605 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1606 | .model_id = ATMEL_AT25DF081, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1607 | .total_size = 1024, |
| 1608 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1609 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1610 | .tested = TEST_UNTESTED, |
| 1611 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1612 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1613 | .block_erasers = |
| 1614 | { |
| 1615 | { |
| 1616 | .eraseblocks = { {4 * 1024, 256} }, |
| 1617 | .block_erase = spi_block_erase_20, |
| 1618 | }, { |
| 1619 | .eraseblocks = { {32 * 1024, 32} }, |
| 1620 | .block_erase = spi_block_erase_52, |
| 1621 | }, { |
| 1622 | .eraseblocks = { {64 * 1024, 16} }, |
| 1623 | .block_erase = spi_block_erase_d8, |
| 1624 | }, { |
| 1625 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1626 | .block_erase = spi_block_erase_60, |
| 1627 | }, { |
| 1628 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1629 | .block_erase = spi_block_erase_c7, |
| 1630 | } |
| 1631 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1632 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1633 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1634 | .write = spi_chip_write_256, |
| 1635 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1636 | .voltage = {1600, 2000}, /* Datasheet says range is 1.65-1.95 V */ |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1637 | }, |
| 1638 | |
| 1639 | { |
| 1640 | .vendor = "Atmel", |
| 1641 | .name = "AT25DF081A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1642 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1643 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1644 | .model_id = ATMEL_AT25DF081A, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1645 | .total_size = 1024, |
| 1646 | .page_size = 256, |
| 1647 | .feature_bits = FEATURE_WRSR_WREN, |
| 1648 | .tested = TEST_UNTESTED, |
| 1649 | .probe = probe_spi_rdid, |
| 1650 | .probe_timing = TIMING_ZERO, |
| 1651 | .block_erasers = |
| 1652 | { |
| 1653 | { |
| 1654 | .eraseblocks = { {4 * 1024, 256} }, |
| 1655 | .block_erase = spi_block_erase_20, |
| 1656 | }, { |
| 1657 | .eraseblocks = { {32 * 1024, 32} }, |
| 1658 | .block_erase = spi_block_erase_52, |
| 1659 | }, { |
| 1660 | .eraseblocks = { {64 * 1024, 16} }, |
| 1661 | .block_erase = spi_block_erase_d8, |
| 1662 | }, { |
| 1663 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1664 | .block_erase = spi_block_erase_60, |
| 1665 | }, { |
| 1666 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1667 | .block_erase = spi_block_erase_c7, |
| 1668 | } |
| 1669 | }, |
| 1670 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1671 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1672 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1673 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1674 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1675 | }, |
| 1676 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1677 | { |
| 1678 | .vendor = "Atmel", |
| 1679 | .name = "AT25DF161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1680 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1681 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1682 | .model_id = ATMEL_AT25DF161, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1683 | .total_size = 2048, |
| 1684 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1685 | .feature_bits = FEATURE_WRSR_WREN, |
Angel Pons | 8b5b962 | 2018-09-30 19:13:15 +0200 | [diff] [blame] | 1686 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1687 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1688 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1689 | .block_erasers = |
| 1690 | { |
| 1691 | { |
| 1692 | .eraseblocks = { {4 * 1024, 512} }, |
| 1693 | .block_erase = spi_block_erase_20, |
| 1694 | }, { |
| 1695 | .eraseblocks = { {32 * 1024, 64} }, |
| 1696 | .block_erase = spi_block_erase_52, |
| 1697 | }, { |
| 1698 | .eraseblocks = { {64 * 1024, 32} }, |
| 1699 | .block_erase = spi_block_erase_d8, |
| 1700 | }, { |
| 1701 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1702 | .block_erase = spi_block_erase_60, |
| 1703 | }, { |
| 1704 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1705 | .block_erase = spi_block_erase_c7, |
| 1706 | } |
| 1707 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1708 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1709 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1710 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1711 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1712 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1713 | }, |
| 1714 | |
Alan Green | 86bf6ab | 2019-06-27 16:58:20 +1000 | [diff] [blame] | 1715 | /*The AT26DF321 has the same ID as the AT25DF321. */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1716 | { |
| 1717 | .vendor = "Atmel", |
| 1718 | .name = "AT25DF321", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1719 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1720 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1721 | .model_id = ATMEL_AT25DF321, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1722 | .total_size = 4096, |
| 1723 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1724 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d06d941 | 2011-06-12 19:47:55 +0000 | [diff] [blame] | 1725 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1726 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1727 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1728 | .block_erasers = |
| 1729 | { |
| 1730 | { |
| 1731 | .eraseblocks = { {4 * 1024, 1024} }, |
| 1732 | .block_erase = spi_block_erase_20, |
| 1733 | }, { |
| 1734 | .eraseblocks = { {32 * 1024, 128} }, |
| 1735 | .block_erase = spi_block_erase_52, |
| 1736 | }, { |
| 1737 | .eraseblocks = { {64 * 1024, 64} }, |
| 1738 | .block_erase = spi_block_erase_d8, |
| 1739 | }, { |
| 1740 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1741 | .block_erase = spi_block_erase_60, |
| 1742 | }, { |
| 1743 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1744 | .block_erase = spi_block_erase_c7, |
| 1745 | } |
| 1746 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1747 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1748 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1749 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1750 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1751 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1752 | }, |
| 1753 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1754 | { |
| 1755 | .vendor = "Atmel", |
| 1756 | .name = "AT25DF321A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1757 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1758 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1759 | .model_id = ATMEL_AT25DF321A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1760 | .total_size = 4096, |
| 1761 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1762 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1763 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 1764 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1765 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1766 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1767 | .block_erasers = |
| 1768 | { |
| 1769 | { |
| 1770 | .eraseblocks = { {4 * 1024, 1024} }, |
| 1771 | .block_erase = spi_block_erase_20, |
| 1772 | }, { |
| 1773 | .eraseblocks = { {32 * 1024, 128} }, |
| 1774 | .block_erase = spi_block_erase_52, |
| 1775 | }, { |
| 1776 | .eraseblocks = { {64 * 1024, 64} }, |
| 1777 | .block_erase = spi_block_erase_d8, |
| 1778 | }, { |
| 1779 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1780 | .block_erase = spi_block_erase_60, |
| 1781 | }, { |
| 1782 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1783 | .block_erase = spi_block_erase_c7, |
| 1784 | } |
| 1785 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1786 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1787 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1788 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1789 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1790 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1791 | }, |
| 1792 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1793 | { |
| 1794 | .vendor = "Atmel", |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 1795 | .name = "AT25DF641(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1796 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1797 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1798 | .model_id = ATMEL_AT25DF641, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1799 | .total_size = 8192, |
| 1800 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1801 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1802 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1803 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1804 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1805 | .block_erasers = |
| 1806 | { |
| 1807 | { |
| 1808 | .eraseblocks = { {4 * 1024, 2048} }, |
| 1809 | .block_erase = spi_block_erase_20, |
| 1810 | }, { |
| 1811 | .eraseblocks = { {32 * 1024, 256} }, |
| 1812 | .block_erase = spi_block_erase_52, |
| 1813 | }, { |
| 1814 | .eraseblocks = { {64 * 1024, 128} }, |
| 1815 | .block_erase = spi_block_erase_d8, |
| 1816 | }, { |
| 1817 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 1818 | .block_erase = spi_block_erase_60, |
| 1819 | }, { |
| 1820 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 1821 | .block_erase = spi_block_erase_c7, |
| 1822 | } |
| 1823 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1824 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1825 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1826 | .write = spi_chip_write_256, |
| 1827 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1828 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1829 | }, |
| 1830 | |
| 1831 | { |
| 1832 | .vendor = "Atmel", |
Stefan Tauner | c9d8b27 | 2014-06-01 13:22:35 +0000 | [diff] [blame] | 1833 | .name = "AT25DL081", |
| 1834 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 1835 | .manufacture_id = ATMEL_ID, |
Stefan Tauner | c9d8b27 | 2014-06-01 13:22:35 +0000 | [diff] [blame] | 1836 | .model_id = ATMEL_AT25DF081, |
| 1837 | .total_size = 1024, |
| 1838 | .page_size = 256, |
| 1839 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1840 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1841 | .tested = TEST_UNTESTED, |
| 1842 | .probe = probe_spi_rdid, |
| 1843 | .probe_timing = TIMING_ZERO, |
| 1844 | .block_erasers = |
| 1845 | { |
| 1846 | { |
| 1847 | .eraseblocks = { {4 * 1024, 256} }, |
| 1848 | .block_erase = spi_block_erase_20, |
| 1849 | }, { |
| 1850 | .eraseblocks = { {32 * 1024, 32} }, |
| 1851 | .block_erase = spi_block_erase_52, |
| 1852 | }, { |
| 1853 | .eraseblocks = { {64 * 1024, 16} }, |
| 1854 | .block_erase = spi_block_erase_d8, |
| 1855 | }, { |
| 1856 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 1857 | .block_erase = spi_block_erase_60, |
| 1858 | }, { |
| 1859 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 1860 | .block_erase = spi_block_erase_c7, |
| 1861 | } |
| 1862 | }, |
| 1863 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1864 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
| 1865 | .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */ |
| 1866 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 1867 | .voltage = {1650, 1950}, |
| 1868 | }, |
| 1869 | |
| 1870 | { |
| 1871 | .vendor = "Atmel", |
| 1872 | .name = "AT25DL161", |
| 1873 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 1874 | .manufacture_id = ATMEL_ID, |
Stefan Tauner | c9d8b27 | 2014-06-01 13:22:35 +0000 | [diff] [blame] | 1875 | .model_id = ATMEL_AT25DL161, |
| 1876 | .total_size = 2048, |
| 1877 | .page_size = 256, |
| 1878 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1879 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1880 | .tested = TEST_UNTESTED, |
| 1881 | .probe = probe_spi_rdid, |
| 1882 | .probe_timing = TIMING_ZERO, |
| 1883 | .block_erasers = |
| 1884 | { |
| 1885 | { |
| 1886 | .eraseblocks = { {4 * 1024, 512} }, |
| 1887 | .block_erase = spi_block_erase_20, |
| 1888 | }, { |
| 1889 | .eraseblocks = { {32 * 1024, 64} }, |
| 1890 | .block_erase = spi_block_erase_52, |
| 1891 | }, { |
| 1892 | .eraseblocks = { {64 * 1024, 32} }, |
| 1893 | .block_erase = spi_block_erase_d8, |
| 1894 | }, { |
| 1895 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1896 | .block_erase = spi_block_erase_60, |
| 1897 | }, { |
| 1898 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1899 | .block_erase = spi_block_erase_c7, |
| 1900 | } |
| 1901 | }, |
| 1902 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1903 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
| 1904 | .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */ |
| 1905 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 1906 | .voltage = {1650, 1950}, |
| 1907 | }, |
| 1908 | |
| 1909 | { |
| 1910 | .vendor = "Atmel", |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1911 | .name = "AT25DQ161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1912 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1913 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1914 | .model_id = ATMEL_AT25DQ161, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1915 | .total_size = 2048, |
| 1916 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1917 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1918 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1919 | .tested = TEST_UNTESTED, |
| 1920 | .probe = probe_spi_rdid, |
| 1921 | .probe_timing = TIMING_ZERO, |
| 1922 | .block_erasers = |
| 1923 | { |
| 1924 | { |
| 1925 | .eraseblocks = { {4 * 1024, 512} }, |
| 1926 | .block_erase = spi_block_erase_20, |
| 1927 | }, { |
| 1928 | .eraseblocks = { {32 * 1024, 64} }, |
| 1929 | .block_erase = spi_block_erase_52, |
| 1930 | }, { |
| 1931 | .eraseblocks = { {64 * 1024, 32} }, |
| 1932 | .block_erase = spi_block_erase_d8, |
| 1933 | }, { |
| 1934 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1935 | .block_erase = spi_block_erase_60, |
| 1936 | }, { |
| 1937 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1938 | .block_erase = spi_block_erase_c7, |
| 1939 | } |
| 1940 | }, |
| 1941 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1942 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1943 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1944 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1945 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1946 | }, |
| 1947 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1948 | { |
| 1949 | .vendor = "Atmel", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 1950 | /* The A suffix indicates 33MHz instead of 20MHz clock rate. |
| 1951 | * All other properties seem to be the same.*/ |
| 1952 | .name = "AT25F1024(A)", |
| 1953 | .bustype = BUS_SPI, |
| 1954 | .manufacture_id = ATMEL_ID, |
| 1955 | .model_id = ATMEL_AT25F1024, |
| 1956 | .total_size = 128, |
| 1957 | .page_size = 256, |
| 1958 | .feature_bits = FEATURE_WRSR_WREN, |
| 1959 | .tested = TEST_OK_PREW, |
| 1960 | .probe = probe_spi_at25f, |
| 1961 | .probe_timing = TIMING_ZERO, |
| 1962 | .block_erasers = |
| 1963 | { |
| 1964 | { |
| 1965 | .eraseblocks = { {32 * 1024, 4} }, |
| 1966 | .block_erase = spi_block_erase_52, |
| 1967 | }, { |
| 1968 | .eraseblocks = { {128 * 1024, 1} }, |
| 1969 | .block_erase = spi_block_erase_62, |
| 1970 | } |
| 1971 | }, |
| 1972 | .printlock = spi_prettyprint_status_register_at25f, |
| 1973 | .unlock = spi_disable_blockprotect_at25f, |
| 1974 | .write = spi_chip_write_256, |
| 1975 | .read = spi_chip_read, |
| 1976 | .voltage = {2700, 3600}, |
| 1977 | }, |
| 1978 | |
| 1979 | { |
| 1980 | .vendor = "Atmel", |
| 1981 | .name = "AT25F2048", |
| 1982 | .bustype = BUS_SPI, |
| 1983 | .manufacture_id = ATMEL_ID, |
| 1984 | .model_id = ATMEL_AT25F2048, |
| 1985 | .total_size = 256, |
| 1986 | .page_size = 256, |
| 1987 | .feature_bits = FEATURE_WRSR_WREN, |
| 1988 | .tested = TEST_UNTESTED, |
| 1989 | .probe = probe_spi_at25f, |
| 1990 | .probe_timing = TIMING_ZERO, |
| 1991 | .block_erasers = |
| 1992 | { |
| 1993 | { |
| 1994 | .eraseblocks = { {64 * 1024, 4} }, |
| 1995 | .block_erase = spi_block_erase_52, |
| 1996 | }, { |
| 1997 | .eraseblocks = { {256 * 1024, 1} }, |
| 1998 | .block_erase = spi_block_erase_62, |
| 1999 | } |
| 2000 | }, |
| 2001 | .printlock = spi_prettyprint_status_register_at25f, |
| 2002 | .unlock = spi_disable_blockprotect_at25f, |
| 2003 | .write = spi_chip_write_256, |
| 2004 | .read = spi_chip_read, |
| 2005 | .voltage = {2700, 3600}, |
| 2006 | }, |
| 2007 | |
| 2008 | { |
| 2009 | .vendor = "Atmel", |
| 2010 | .name = "AT25F4096", |
| 2011 | .bustype = BUS_SPI, |
| 2012 | .manufacture_id = ATMEL_ID, |
| 2013 | .model_id = ATMEL_AT25F4096, |
| 2014 | .total_size = 512, |
| 2015 | .page_size = 256, |
| 2016 | .feature_bits = FEATURE_WRSR_WREN, |
| 2017 | .tested = TEST_OK_PREW, |
| 2018 | .probe = probe_spi_at25f, |
| 2019 | .probe_timing = TIMING_ZERO, |
| 2020 | .block_erasers = |
| 2021 | { |
| 2022 | { |
| 2023 | .eraseblocks = { {64 * 1024, 8} }, |
| 2024 | .block_erase = spi_block_erase_52, |
| 2025 | }, { |
| 2026 | .eraseblocks = { {512 * 1024, 1} }, |
| 2027 | .block_erase = spi_block_erase_62, |
| 2028 | } |
| 2029 | }, |
| 2030 | .printlock = spi_prettyprint_status_register_at25f4096, |
| 2031 | /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */ |
| 2032 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 2033 | .write = spi_chip_write_256, |
| 2034 | .read = spi_chip_read, |
| 2035 | .voltage = {2700, 3600}, |
| 2036 | }, |
| 2037 | |
| 2038 | { |
| 2039 | .vendor = "Atmel", |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 2040 | .name = "AT25F512", |
| 2041 | .bustype = BUS_SPI, |
| 2042 | .manufacture_id = ATMEL_ID, |
| 2043 | .model_id = ATMEL_AT25F512, |
| 2044 | .total_size = 64, |
| 2045 | .page_size = 256, |
| 2046 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 2047 | .tested = TEST_OK_PREW, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 2048 | .probe = probe_spi_at25f, |
| 2049 | .probe_timing = TIMING_ZERO, |
| 2050 | .block_erasers = |
| 2051 | { |
| 2052 | { |
| 2053 | .eraseblocks = { {32 * 1024, 2} }, |
| 2054 | .block_erase = spi_block_erase_52, |
| 2055 | }, { |
| 2056 | .eraseblocks = { {64 * 1024, 1} }, |
| 2057 | .block_erase = spi_block_erase_62, |
| 2058 | } |
| 2059 | }, |
| 2060 | .printlock = spi_prettyprint_status_register_at25f, |
| 2061 | .unlock = spi_disable_blockprotect_at25f, |
| 2062 | .write = spi_chip_write_256, |
| 2063 | .read = spi_chip_read, |
| 2064 | .voltage = {2700, 3600}, |
| 2065 | }, |
| 2066 | |
| 2067 | { |
| 2068 | .vendor = "Atmel", |
| 2069 | .name = "AT25F512A", |
| 2070 | .bustype = BUS_SPI, |
| 2071 | .manufacture_id = ATMEL_ID, |
| 2072 | .model_id = ATMEL_AT25F512A, |
| 2073 | .total_size = 64, |
| 2074 | .page_size = 128, |
| 2075 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 2076 | .tested = TEST_OK_PREW, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 2077 | .probe = probe_spi_at25f, |
| 2078 | .probe_timing = TIMING_ZERO, |
| 2079 | .block_erasers = |
| 2080 | { |
| 2081 | { |
| 2082 | .eraseblocks = { {32 * 1024, 2} }, |
| 2083 | .block_erase = spi_block_erase_52, |
| 2084 | }, { |
| 2085 | .eraseblocks = { {64 * 1024, 1} }, |
| 2086 | .block_erase = spi_block_erase_62, |
| 2087 | } |
| 2088 | }, |
| 2089 | .printlock = spi_prettyprint_status_register_at25f512a, |
| 2090 | /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */ |
| 2091 | .unlock = spi_disable_blockprotect_at25f512a, |
| 2092 | .write = spi_chip_write_256, |
| 2093 | .read = spi_chip_read, |
| 2094 | .voltage = {2700, 3600}, |
| 2095 | }, |
| 2096 | |
| 2097 | { |
| 2098 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2099 | .name = "AT25F512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2100 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2101 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2102 | .model_id = ATMEL_AT25F512B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2103 | .total_size = 64, |
| 2104 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 2105 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2106 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2107 | .tested = TEST_UNTESTED, |
| 2108 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2109 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2110 | .block_erasers = |
| 2111 | { |
| 2112 | { |
| 2113 | .eraseblocks = { {4 * 1024, 16} }, |
| 2114 | .block_erase = spi_block_erase_20, |
| 2115 | }, { |
| 2116 | .eraseblocks = { {32 * 1024, 2} }, |
| 2117 | .block_erase = spi_block_erase_52, |
| 2118 | }, { |
| 2119 | .eraseblocks = { {32 * 1024, 2} }, |
| 2120 | .block_erase = spi_block_erase_d8, |
| 2121 | }, { |
| 2122 | .eraseblocks = { {64 * 1024, 1} }, |
| 2123 | .block_erase = spi_block_erase_60, |
| 2124 | }, { |
| 2125 | .eraseblocks = { {64 * 1024, 1} }, |
| 2126 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | 3c0fcd0 | 2012-09-21 12:46:56 +0000 | [diff] [blame] | 2127 | }, { |
| 2128 | .eraseblocks = { {64 * 1024, 1} }, |
| 2129 | .block_erase = spi_block_erase_62, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2130 | } |
| 2131 | }, |
Stefan Tauner | 7bf4ed9 | 2012-08-26 21:04:27 +0000 | [diff] [blame] | 2132 | .printlock = spi_prettyprint_status_register_at25f512b, |
| 2133 | .unlock = spi_disable_blockprotect_at25f512b, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2134 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2135 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2136 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2137 | }, |
| 2138 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2139 | { |
| 2140 | .vendor = "Atmel", |
| 2141 | .name = "AT25FS010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2142 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2143 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2144 | .model_id = ATMEL_AT25FS010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2145 | .total_size = 128, |
| 2146 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2147 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 2148 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2149 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2150 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2151 | .block_erasers = |
| 2152 | { |
| 2153 | { |
| 2154 | .eraseblocks = { {4 * 1024, 32} }, |
| 2155 | .block_erase = spi_block_erase_20, |
| 2156 | }, { |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 2157 | .eraseblocks = { {4 * 1024, 32} }, |
| 2158 | .block_erase = spi_block_erase_d7, |
| 2159 | }, { |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2160 | .eraseblocks = { {32 * 1024, 4} }, |
| 2161 | .block_erase = spi_block_erase_52, |
| 2162 | }, { |
| 2163 | .eraseblocks = { {32 * 1024, 4} }, |
| 2164 | .block_erase = spi_block_erase_d8, |
| 2165 | }, { |
| 2166 | .eraseblocks = { {128 * 1024, 1} }, |
| 2167 | .block_erase = spi_block_erase_60, |
| 2168 | }, { |
| 2169 | .eraseblocks = { {128 * 1024, 1} }, |
| 2170 | .block_erase = spi_block_erase_c7, |
| 2171 | } |
| 2172 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 2173 | .printlock = spi_prettyprint_status_register_at25fs010, |
| 2174 | .unlock = spi_disable_blockprotect_at25fs010, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2175 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2176 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2177 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2178 | }, |
| 2179 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2180 | { |
| 2181 | .vendor = "Atmel", |
| 2182 | .name = "AT25FS040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2183 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2184 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2185 | .model_id = ATMEL_AT25FS040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2186 | .total_size = 512, |
| 2187 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2188 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2189 | .tested = TEST_UNTESTED, |
| 2190 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2191 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2192 | .block_erasers = |
| 2193 | { |
| 2194 | { |
| 2195 | .eraseblocks = { {4 * 1024, 128} }, |
| 2196 | .block_erase = spi_block_erase_20, |
| 2197 | }, { |
| 2198 | .eraseblocks = { {64 * 1024, 8} }, |
| 2199 | .block_erase = spi_block_erase_52, |
| 2200 | }, { |
| 2201 | .eraseblocks = { {64 * 1024, 8} }, |
| 2202 | .block_erase = spi_block_erase_d8, |
| 2203 | }, { |
| 2204 | .eraseblocks = { {512 * 1024, 1} }, |
| 2205 | .block_erase = spi_block_erase_60, |
| 2206 | }, { |
| 2207 | .eraseblocks = { {512 * 1024, 1} }, |
| 2208 | .block_erase = spi_block_erase_c7, |
| 2209 | } |
| 2210 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 2211 | .printlock = spi_prettyprint_status_register_at25fs040, |
| 2212 | .unlock = spi_disable_blockprotect_at25fs040, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2213 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2214 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2215 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2216 | }, |
| 2217 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2218 | { |
| 2219 | .vendor = "Atmel", |
jvm | a3ab6c6 | 2018-03-08 15:43:20 +0100 | [diff] [blame] | 2220 | .name = "AT25SF041", |
| 2221 | .bustype = BUS_SPI, |
| 2222 | .manufacture_id = ATMEL_ID, |
| 2223 | .model_id = ATMEL_AT25SF041, |
| 2224 | .total_size = 512, |
| 2225 | .page_size = 256, |
| 2226 | .feature_bits = FEATURE_WRSR_WREN, |
| 2227 | .tested = TEST_OK_PREW, |
| 2228 | .probe = probe_spi_rdid, |
| 2229 | .probe_timing = TIMING_ZERO, |
| 2230 | .block_erasers = |
| 2231 | { |
| 2232 | { |
| 2233 | .eraseblocks = { {4 * 1024, 128} }, |
| 2234 | .block_erase = spi_block_erase_20, |
| 2235 | }, { |
| 2236 | .eraseblocks = { {32 * 1024, 16} }, |
| 2237 | .block_erase = spi_block_erase_52, |
| 2238 | }, { |
| 2239 | .eraseblocks = { {64 * 1024, 8} }, |
| 2240 | .block_erase = spi_block_erase_d8, |
| 2241 | }, { |
| 2242 | .eraseblocks = { {512 * 1024, 1} }, |
| 2243 | .block_erase = spi_block_erase_60, |
| 2244 | }, { |
| 2245 | .eraseblocks = { {512 * 1024, 1} }, |
| 2246 | .block_erase = spi_block_erase_c7, |
| 2247 | } |
| 2248 | }, |
| 2249 | .printlock = spi_prettyprint_status_register_plain, |
| 2250 | .unlock = spi_disable_blockprotect, |
| 2251 | .write = spi_chip_write_256, |
| 2252 | .read = spi_chip_read, |
| 2253 | .voltage = {2500, 3600}, |
| 2254 | }, |
| 2255 | |
| 2256 | { |
| 2257 | .vendor = "Atmel", |
Evan Jensen | 291c101 | 2018-05-17 14:30:19 -0700 | [diff] [blame] | 2258 | .name = "AT25SF081", |
| 2259 | .bustype = BUS_SPI, |
| 2260 | .manufacture_id = ATMEL_ID, |
| 2261 | .model_id = ATMEL_AT25SF081, |
| 2262 | .total_size = 1024, |
| 2263 | .page_size = 256, |
| 2264 | .feature_bits = FEATURE_WRSR_WREN, |
| 2265 | .tested = TEST_OK_PREW, |
| 2266 | .probe = probe_spi_rdid, |
| 2267 | .probe_timing = TIMING_ZERO, |
| 2268 | .block_erasers = |
| 2269 | { |
| 2270 | { |
| 2271 | .eraseblocks = { {4 * 1024, 256} }, |
| 2272 | .block_erase = spi_block_erase_20, |
| 2273 | }, { |
| 2274 | .eraseblocks = { {32 * 1024, 32} }, |
| 2275 | .block_erase = spi_block_erase_52, |
| 2276 | }, { |
| 2277 | .eraseblocks = { {64 * 1024, 16} }, |
| 2278 | .block_erase = spi_block_erase_d8, |
| 2279 | }, { |
| 2280 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2281 | .block_erase = spi_block_erase_60, |
| 2282 | }, { |
| 2283 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2284 | .block_erase = spi_block_erase_c7, |
| 2285 | } |
| 2286 | }, |
| 2287 | .printlock = spi_prettyprint_status_register_plain, |
| 2288 | .unlock = spi_disable_blockprotect, |
| 2289 | .write = spi_chip_write_256, |
| 2290 | .read = spi_chip_read, |
| 2291 | .voltage = {2300, 3600}, |
| 2292 | }, |
| 2293 | |
| 2294 | { |
| 2295 | .vendor = "Atmel", |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 2296 | .name = "AT25SF161", |
| 2297 | .bustype = BUS_SPI, |
| 2298 | .manufacture_id = ATMEL_ID, |
| 2299 | .model_id = ATMEL_AT25SF161, |
| 2300 | .total_size = 2048, |
| 2301 | .page_size = 256, |
| 2302 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 2303 | .tested = TEST_OK_PREW, |
| 2304 | .probe = probe_spi_rdid, |
| 2305 | .probe_timing = TIMING_ZERO, |
| 2306 | .block_erasers = |
| 2307 | { |
| 2308 | { |
| 2309 | .eraseblocks = { {4 * 1024, 512} }, |
| 2310 | .block_erase = spi_block_erase_20, |
| 2311 | }, { |
| 2312 | .eraseblocks = { {32 * 1024, 64} }, |
| 2313 | .block_erase = spi_block_erase_52, |
| 2314 | }, { |
| 2315 | .eraseblocks = { {64 * 1024, 32} }, |
| 2316 | .block_erase = spi_block_erase_d8, |
| 2317 | }, { |
| 2318 | .eraseblocks = { {2048 * 1024, 1} }, |
| 2319 | .block_erase = spi_block_erase_60, |
| 2320 | }, { |
| 2321 | .eraseblocks = { {2048 * 1024, 1} }, |
| 2322 | .block_erase = spi_block_erase_c7, |
| 2323 | } |
| 2324 | }, |
| 2325 | .printlock = spi_prettyprint_status_register_plain, |
| 2326 | .unlock = spi_disable_blockprotect, |
| 2327 | .write = spi_chip_write_256, |
| 2328 | .read = spi_chip_read, |
| 2329 | .voltage = {2500, 3600}, |
| 2330 | }, |
| 2331 | |
| 2332 | { |
Alan Green | 57938f8 | 2019-06-27 15:06:43 +1000 | [diff] [blame] | 2333 | .vendor = "Atmel", |
darkarnium | 4139438 | 2019-11-04 20:06:48 +0000 | [diff] [blame] | 2334 | .name = "AT25SF321", |
| 2335 | .bustype = BUS_SPI, |
| 2336 | .manufacture_id = ATMEL_ID, |
| 2337 | .model_id = ATMEL_AT25SF321, |
| 2338 | .total_size = 4096, |
| 2339 | .page_size = 256, |
| 2340 | .feature_bits = FEATURE_WRSR_WREN, |
| 2341 | .tested = TEST_OK_PR, |
| 2342 | .probe = probe_spi_rdid, |
| 2343 | .probe_timing = TIMING_ZERO, |
| 2344 | .block_erasers = |
| 2345 | { |
| 2346 | { |
| 2347 | .eraseblocks = { {4 * 1024, 1024} }, |
| 2348 | .block_erase = spi_block_erase_20, |
| 2349 | }, { |
| 2350 | .eraseblocks = { {32 * 1024, 128} }, |
| 2351 | .block_erase = spi_block_erase_52, |
| 2352 | }, { |
| 2353 | .eraseblocks = { {64 * 1024, 64} }, |
| 2354 | .block_erase = spi_block_erase_d8, |
| 2355 | }, { |
| 2356 | .eraseblocks = { {4096 * 1024, 1} }, |
| 2357 | .block_erase = spi_block_erase_60, |
| 2358 | }, { |
| 2359 | .eraseblocks = { {4096 * 1024, 1} }, |
| 2360 | .block_erase = spi_block_erase_c7, |
| 2361 | } |
| 2362 | }, |
| 2363 | .printlock = spi_prettyprint_status_register_plain, |
| 2364 | .unlock = spi_disable_blockprotect, |
| 2365 | .write = spi_chip_write_256, |
| 2366 | .read = spi_chip_read, |
| 2367 | .voltage = {2500, 3600}, |
| 2368 | }, |
| 2369 | |
| 2370 | { |
| 2371 | .vendor = "Atmel", |
Hal Martin | 49e23d2 | 2018-05-27 14:18:43 +0200 | [diff] [blame] | 2372 | .name = "AT25SL128A", |
| 2373 | .bustype = BUS_SPI, |
| 2374 | .manufacture_id = ATMEL_ID, |
| 2375 | .model_id = ATMEL_AT25SL128A, |
| 2376 | .total_size = 16384, |
| 2377 | .page_size = 256, |
| 2378 | /* supports SFDP */ |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 2379 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2, |
Hal Martin | 49e23d2 | 2018-05-27 14:18:43 +0200 | [diff] [blame] | 2380 | .tested = TEST_OK_PREW, |
| 2381 | .probe = probe_spi_rdid, |
| 2382 | .probe_timing = TIMING_ZERO, |
| 2383 | .block_erasers = |
| 2384 | { |
| 2385 | { |
| 2386 | .eraseblocks = { {4 * 1024, 4096} }, |
| 2387 | .block_erase = spi_block_erase_20, |
| 2388 | }, { |
| 2389 | .eraseblocks = { {32 * 1024, 512} }, |
| 2390 | .block_erase = spi_block_erase_52, |
| 2391 | }, { |
| 2392 | .eraseblocks = { {64 * 1024, 256} }, |
| 2393 | .block_erase = spi_block_erase_d8, |
| 2394 | }, { |
| 2395 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 2396 | .block_erase = spi_block_erase_60, |
| 2397 | }, { |
| 2398 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 2399 | .block_erase = spi_block_erase_c7, |
| 2400 | } |
| 2401 | }, |
| 2402 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 2403 | .unlock = spi_disable_blockprotect, |
| 2404 | .write = spi_chip_write_256, |
| 2405 | .read = spi_chip_read, |
| 2406 | .voltage = {1700, 2000}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 2407 | .reg_bits = |
| 2408 | { |
| 2409 | .srp = {STATUS1, 7, RW}, |
| 2410 | .srl = {STATUS2, 0, RW}, |
| 2411 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 2412 | .tb = {STATUS1, 5, RW}, |
| 2413 | .sec = {STATUS1, 6, RW}, |
| 2414 | .cmp = {STATUS2, 6, RW}, |
| 2415 | }, |
| 2416 | .decode_range = decode_range_spi25, |
Hal Martin | 49e23d2 | 2018-05-27 14:18:43 +0200 | [diff] [blame] | 2417 | }, |
| 2418 | |
| 2419 | { |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 2420 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2421 | .name = "AT26DF041", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2422 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2423 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2424 | .model_id = ATMEL_AT26DF041, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2425 | .total_size = 512, |
| 2426 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2427 | /* 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] | 2428 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2429 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2430 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2431 | .block_erasers = |
| 2432 | { |
| 2433 | { |
Stefan Tauner | 94b39b4 | 2012-10-27 00:06:02 +0000 | [diff] [blame] | 2434 | .eraseblocks = { {256, 2048} }, |
| 2435 | .block_erase = spi_block_erase_81, |
| 2436 | }, { |
| 2437 | .eraseblocks = { {2 * 1024, 256} }, |
| 2438 | .block_erase = spi_block_erase_50, |
| 2439 | }, { |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2440 | .eraseblocks = { {4 * 1024, 128} }, |
| 2441 | .block_erase = spi_block_erase_20, |
| 2442 | } |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2443 | }, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2444 | .printlock = spi_prettyprint_status_register_plain, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2445 | /* 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] | 2446 | .write = spi_chip_write_1, |
| 2447 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2448 | .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] | 2449 | }, |
| 2450 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2451 | { |
| 2452 | .vendor = "Atmel", |
| 2453 | .name = "AT26DF081A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2454 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2455 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2456 | .model_id = ATMEL_AT26DF081A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2457 | .total_size = 1024, |
| 2458 | .page_size = 256, |
Mathias Krause | 2c3afa3 | 2011-01-17 07:45:54 +0000 | [diff] [blame] | 2459 | .feature_bits = FEATURE_WRSR_WREN, |
| 2460 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2461 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2462 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2463 | .block_erasers = |
| 2464 | { |
| 2465 | { |
| 2466 | .eraseblocks = { {4 * 1024, 256} }, |
| 2467 | .block_erase = spi_block_erase_20, |
| 2468 | }, { |
| 2469 | .eraseblocks = { {32 * 1024, 32} }, |
| 2470 | .block_erase = spi_block_erase_52, |
| 2471 | }, { |
| 2472 | .eraseblocks = { {64 * 1024, 16} }, |
| 2473 | .block_erase = spi_block_erase_d8, |
| 2474 | }, { |
| 2475 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2476 | .block_erase = spi_block_erase_60, |
| 2477 | }, { |
| 2478 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2479 | .block_erase = spi_block_erase_c7, |
| 2480 | } |
| 2481 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2482 | .printlock = spi_prettyprint_status_register_at26df081a, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2483 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2484 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2485 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2486 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2487 | }, |
| 2488 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2489 | { |
| 2490 | .vendor = "Atmel", |
| 2491 | .name = "AT26DF161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2492 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2493 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2494 | .model_id = ATMEL_AT26DF161, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2495 | .total_size = 2048, |
| 2496 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2497 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 2498 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2499 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2500 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2501 | .block_erasers = |
| 2502 | { |
| 2503 | { |
| 2504 | .eraseblocks = { {4 * 1024, 512} }, |
| 2505 | .block_erase = spi_block_erase_20, |
| 2506 | }, { |
| 2507 | .eraseblocks = { {32 * 1024, 64} }, |
| 2508 | .block_erase = spi_block_erase_52, |
| 2509 | }, { |
| 2510 | .eraseblocks = { {64 * 1024, 32} }, |
| 2511 | .block_erase = spi_block_erase_d8, |
| 2512 | }, { |
| 2513 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2514 | .block_erase = spi_block_erase_60, |
| 2515 | }, { |
| 2516 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2517 | .block_erase = spi_block_erase_c7, |
| 2518 | } |
| 2519 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 2520 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2521 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2522 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2523 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2524 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2525 | }, |
| 2526 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2527 | { |
| 2528 | .vendor = "Atmel", |
| 2529 | .name = "AT26DF161A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2530 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2531 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2532 | .model_id = ATMEL_AT26DF161A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2533 | .total_size = 2048, |
| 2534 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2535 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2536 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2537 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2538 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2539 | .block_erasers = |
| 2540 | { |
| 2541 | { |
| 2542 | .eraseblocks = { {4 * 1024, 512} }, |
| 2543 | .block_erase = spi_block_erase_20, |
| 2544 | }, { |
| 2545 | .eraseblocks = { {32 * 1024, 64} }, |
| 2546 | .block_erase = spi_block_erase_52, |
| 2547 | }, { |
| 2548 | .eraseblocks = { {64 * 1024, 32} }, |
| 2549 | .block_erase = spi_block_erase_d8, |
| 2550 | }, { |
| 2551 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2552 | .block_erase = spi_block_erase_60, |
| 2553 | }, { |
| 2554 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2555 | .block_erase = spi_block_erase_c7, |
| 2556 | } |
| 2557 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2558 | .printlock = spi_prettyprint_status_register_at26df081a, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2559 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2560 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2561 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2562 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2563 | }, |
| 2564 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2565 | { |
| 2566 | .vendor = "Atmel", |
| 2567 | .name = "AT26F004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2568 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2569 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2570 | .model_id = ATMEL_AT26F004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2571 | .total_size = 512, |
| 2572 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2573 | .feature_bits = FEATURE_WRSR_WREN, |
Alan Green | 908adf4 | 2019-07-03 15:34:06 +1000 | [diff] [blame] | 2574 | .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD}, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2575 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2576 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2577 | .block_erasers = |
| 2578 | { |
| 2579 | { |
| 2580 | .eraseblocks = { {4 * 1024, 128} }, |
| 2581 | .block_erase = spi_block_erase_20, |
| 2582 | }, { |
| 2583 | .eraseblocks = { {32 * 1024, 16} }, |
| 2584 | .block_erase = spi_block_erase_52, |
| 2585 | }, { |
| 2586 | .eraseblocks = { {64 * 1024, 8} }, |
| 2587 | .block_erase = spi_block_erase_d8, |
| 2588 | }, { |
| 2589 | .eraseblocks = { {512 * 1024, 1} }, |
| 2590 | .block_erase = spi_block_erase_60, |
| 2591 | }, { |
| 2592 | .eraseblocks = { {512 * 1024, 1} }, |
| 2593 | .block_erase = spi_block_erase_c7, |
| 2594 | } |
| 2595 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2596 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2597 | .write = NULL, /* Incompatible Page write */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2598 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2599 | .voltage = {2700, 3600}, |
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", |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2604 | .name = "AT29C010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2605 | .bustype = BUS_PARALLEL, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2606 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2607 | .model_id = ATMEL_AT29C010A, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2608 | .total_size = 128, |
| 2609 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2610 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 2611 | .tested = TEST_OK_PRE, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2612 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 2613 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2614 | .block_erasers = |
| 2615 | { |
| 2616 | { |
| 2617 | .eraseblocks = { {128 * 1024, 1} }, |
| 2618 | .block_erase = erase_chip_block_jedec, |
| 2619 | } |
| 2620 | }, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2621 | .write = write_jedec, /* FIXME */ |
| 2622 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2623 | .voltage = {4500, 5500}, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2624 | }, |
| 2625 | |
| 2626 | { |
| 2627 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2628 | .name = "AT29C020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2629 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2630 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2631 | .model_id = ATMEL_AT29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2632 | .total_size = 256, |
| 2633 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2634 | .feature_bits = FEATURE_LONG_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 2635 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2636 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 2637 | .probe_timing = 10000, /* 10ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2638 | .block_erasers = |
| 2639 | { |
| 2640 | { |
| 2641 | .eraseblocks = { {256 * 1024, 1} }, |
| 2642 | .block_erase = erase_chip_block_jedec, |
| 2643 | } |
| 2644 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2645 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2646 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2647 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2648 | }, |
| 2649 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2650 | { |
| 2651 | .vendor = "Atmel", |
| 2652 | .name = "AT29C040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2653 | .bustype = BUS_PARALLEL, |
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_AT29C040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2656 | .total_size = 512, |
| 2657 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2658 | .feature_bits = FEATURE_LONG_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2659 | .tested = TEST_UNTESTED, |
| 2660 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 2661 | .probe_timing = 10000, /* 10 ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2662 | .block_erasers = |
| 2663 | { |
| 2664 | { |
| 2665 | .eraseblocks = { {512 * 1024, 1} }, |
| 2666 | .block_erase = erase_chip_block_jedec, |
| 2667 | } |
| 2668 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2669 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2670 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2671 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2672 | }, |
| 2673 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2674 | { |
| 2675 | .vendor = "Atmel", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 2676 | .name = "AT29C512", |
| 2677 | .bustype = BUS_PARALLEL, |
| 2678 | .manufacture_id = ATMEL_ID, |
| 2679 | .model_id = ATMEL_AT29C512, |
| 2680 | .total_size = 64, |
| 2681 | .page_size = 128, |
| 2682 | .feature_bits = FEATURE_LONG_RESET, |
| 2683 | .tested = TEST_OK_PREW, |
| 2684 | .probe = probe_jedec, |
| 2685 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
| 2686 | .block_erasers = |
| 2687 | { |
| 2688 | { |
| 2689 | .eraseblocks = { {64 * 1024, 1} }, |
| 2690 | .block_erase = erase_chip_block_jedec, |
| 2691 | } |
| 2692 | }, |
| 2693 | .write = write_jedec, |
| 2694 | .read = read_memmapped, |
| 2695 | .voltage = {4500, 5500}, |
| 2696 | }, |
| 2697 | |
| 2698 | { |
| 2699 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2700 | .name = "AT45CS1282", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2701 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2702 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2703 | .model_id = ATMEL_AT45CS1282, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2704 | .total_size = 16896, /* No power of two sizes */ |
| 2705 | .page_size = 1056, /* No power of two sizes */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2706 | /* 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] | 2707 | /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */ |
| 2708 | .feature_bits = FEATURE_OTP, |
| 2709 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2710 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2711 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | 1dd5d3a | 2013-08-27 18:02:19 +0000 | [diff] [blame] | 2712 | .block_erasers = |
| 2713 | { |
| 2714 | { |
| 2715 | .eraseblocks = { |
| 2716 | {8 * 1056, 1}, /* sector 0a: opcode 50h */ |
| 2717 | {248 * 1056, 1}, /* sector 0b: opcode 7Ch */ |
| 2718 | {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */ |
| 2719 | }, |
| 2720 | .block_erase = spi_erase_at45cs_sector, |
| 2721 | } |
| 2722 | }, |
| 2723 | .printlock = spi_prettyprint_status_register_plain, |
Stefan Tauner | 1dd5d3a | 2013-08-27 18:02:19 +0000 | [diff] [blame] | 2724 | .write = spi_write_at45db, |
| 2725 | .read = spi_read_at45db, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2726 | .voltage = {2700, 3600}, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2727 | .gran = write_gran_1056bytes, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2728 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2729 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2730 | { |
| 2731 | .vendor = "Atmel", |
| 2732 | .name = "AT45DB011D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2733 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2734 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2735 | .model_id = ATMEL_AT45DB011D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2736 | .total_size = 128, /* or 132, determined from status register */ |
| 2737 | .page_size = 256, /* or 264, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2738 | /* 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] | 2739 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2740 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 2741 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2742 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2743 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2744 | .block_erasers = |
| 2745 | { |
| 2746 | { |
| 2747 | .eraseblocks = { {256, 512} }, |
| 2748 | .block_erase = spi_erase_at45db_page, |
| 2749 | }, { |
| 2750 | .eraseblocks = { {8 * 256, 512/8} }, |
| 2751 | .block_erase = spi_erase_at45db_block, |
| 2752 | }, { |
| 2753 | .eraseblocks = { |
| 2754 | {8 * 256, 1}, |
| 2755 | {120 * 256, 1}, |
| 2756 | {128 * 256, 3}, |
| 2757 | }, |
| 2758 | .block_erase = spi_erase_at45db_sector |
| 2759 | }, { |
| 2760 | .eraseblocks = { {128 * 1024, 1} }, |
| 2761 | .block_erase = spi_erase_at45db_chip, |
| 2762 | } |
| 2763 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2764 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2765 | .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] | 2766 | /* granularity will be set by the probing function. */ |
| 2767 | .write = spi_write_at45db, |
| 2768 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2769 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2770 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2771 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2772 | { |
| 2773 | .vendor = "Atmel", |
| 2774 | .name = "AT45DB021D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2775 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2776 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2777 | .model_id = ATMEL_AT45DB021D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2778 | .total_size = 256, /* or 264, determined from status register */ |
| 2779 | .page_size = 256, /* or 264, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2780 | /* 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] | 2781 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2782 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 2783 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2784 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2785 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2786 | .block_erasers = |
| 2787 | { |
| 2788 | { |
| 2789 | .eraseblocks = { {256, 1024} }, |
| 2790 | .block_erase = spi_erase_at45db_page, |
| 2791 | }, { |
| 2792 | .eraseblocks = { {8 * 256, 1024/8} }, |
| 2793 | .block_erase = spi_erase_at45db_block, |
| 2794 | }, { |
| 2795 | .eraseblocks = { |
| 2796 | {8 * 256, 1}, |
| 2797 | {120 * 256, 1}, |
| 2798 | {128 * 256, 7}, |
| 2799 | }, |
| 2800 | .block_erase = spi_erase_at45db_sector |
| 2801 | }, { |
| 2802 | .eraseblocks = { {256 * 1024, 1} }, |
| 2803 | .block_erase = spi_erase_at45db_chip, |
| 2804 | } |
| 2805 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2806 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2807 | .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] | 2808 | /* granularity will be set by the probing function. */ |
| 2809 | .write = spi_write_at45db, |
| 2810 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2811 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2812 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2813 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2814 | { |
| 2815 | .vendor = "Atmel", |
| 2816 | .name = "AT45DB041D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2817 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2818 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2819 | .model_id = ATMEL_AT45DB041D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2820 | .total_size = 512, /* or 528, determined from status register */ |
| 2821 | .page_size = 256, /* or 264, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2822 | /* 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] | 2823 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2824 | .feature_bits = FEATURE_OTP, |
| 2825 | .tested = TEST_OK_PREW, |
| 2826 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2827 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2828 | .block_erasers = |
| 2829 | { |
| 2830 | { |
| 2831 | .eraseblocks = { {256, 2048} }, |
| 2832 | .block_erase = spi_erase_at45db_page, |
| 2833 | }, { |
| 2834 | .eraseblocks = { {8 * 256, 2048/8} }, |
| 2835 | .block_erase = spi_erase_at45db_block, |
| 2836 | }, { |
| 2837 | .eraseblocks = { |
| 2838 | {8 * 256, 1}, |
| 2839 | {248 * 256, 1}, |
| 2840 | {256 * 256, 7}, |
| 2841 | }, |
| 2842 | .block_erase = spi_erase_at45db_sector |
| 2843 | }, { |
| 2844 | .eraseblocks = { {512 * 1024, 1} }, |
| 2845 | .block_erase = spi_erase_at45db_chip, |
| 2846 | } |
| 2847 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2848 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2849 | .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] | 2850 | /* granularity will be set by the probing function. */ |
| 2851 | .write = spi_write_at45db, |
| 2852 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 2853 | .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] | 2854 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2855 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2856 | { |
| 2857 | .vendor = "Atmel", |
| 2858 | .name = "AT45DB081D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2859 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2860 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2861 | .model_id = ATMEL_AT45DB081D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2862 | .total_size = 1024, /* or 1056, determined from status register */ |
| 2863 | .page_size = 256, /* or 264, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2864 | /* 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] | 2865 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2866 | .feature_bits = FEATURE_OTP, |
Angel Pons | 250aeba | 2018-09-30 20:28:22 +0200 | [diff] [blame] | 2867 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2868 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2869 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2870 | .block_erasers = |
| 2871 | { |
| 2872 | { |
| 2873 | .eraseblocks = { {256, 4096} }, |
| 2874 | .block_erase = spi_erase_at45db_page, |
| 2875 | }, { |
| 2876 | .eraseblocks = { {8 * 256, 4096/8} }, |
| 2877 | .block_erase = spi_erase_at45db_block, |
| 2878 | }, { |
| 2879 | .eraseblocks = { |
| 2880 | {8 * 256, 1}, |
| 2881 | {248 * 256, 1}, |
| 2882 | {256 * 256, 15}, |
| 2883 | }, |
| 2884 | .block_erase = spi_erase_at45db_sector |
| 2885 | }, { |
| 2886 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2887 | .block_erase = spi_erase_at45db_chip, |
| 2888 | } |
| 2889 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2890 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2891 | .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] | 2892 | /* granularity will be set by the probing function. */ |
| 2893 | .write = spi_write_at45db, |
| 2894 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2895 | .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] | 2896 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2897 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2898 | { |
| 2899 | .vendor = "Atmel", |
| 2900 | .name = "AT45DB161D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2901 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2902 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2903 | .model_id = ATMEL_AT45DB161D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2904 | .total_size = 2048, /* or 2112, determined from status register */ |
| 2905 | .page_size = 512, /* or 528, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2906 | /* 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] | 2907 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2908 | .feature_bits = FEATURE_OTP, |
| 2909 | .tested = TEST_OK_PREW, |
| 2910 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2911 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2912 | .block_erasers = |
| 2913 | { |
| 2914 | { |
| 2915 | .eraseblocks = { {512, 4096} }, |
| 2916 | .block_erase = spi_erase_at45db_page, |
| 2917 | }, { |
| 2918 | .eraseblocks = { {8 * 512, 4096/8} }, |
| 2919 | .block_erase = spi_erase_at45db_block, |
| 2920 | }, { |
| 2921 | .eraseblocks = { |
| 2922 | {8 * 512, 1}, |
| 2923 | {248 * 512, 1}, |
| 2924 | {256 * 512, 15}, |
| 2925 | }, |
| 2926 | .block_erase = spi_erase_at45db_sector |
| 2927 | }, { |
| 2928 | .eraseblocks = { {2048 * 1024, 1} }, |
| 2929 | .block_erase = spi_erase_at45db_chip, |
| 2930 | } |
| 2931 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2932 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2933 | .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] | 2934 | /* granularity will be set by the probing function. */ |
| 2935 | .write = spi_write_at45db, |
| 2936 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2937 | .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] | 2938 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2939 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2940 | { |
| 2941 | .vendor = "Atmel", |
| 2942 | .name = "AT45DB321C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2943 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2944 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2945 | .model_id = ATMEL_AT45DB321C, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2946 | .total_size = 4224, /* No power of two sizes */ |
| 2947 | .page_size = 528, /* No power of two sizes */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2948 | /* 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] | 2949 | /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */ |
| 2950 | .feature_bits = FEATURE_OTP, |
| 2951 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2952 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2953 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | fdc4f7e | 2013-08-27 18:02:12 +0000 | [diff] [blame] | 2954 | .block_erasers = |
| 2955 | { |
| 2956 | { |
| 2957 | .eraseblocks = { {528, 8192} }, |
| 2958 | .block_erase = spi_erase_at45db_page, |
| 2959 | }, { |
| 2960 | .eraseblocks = { {8 * 528, 8192/8} }, |
| 2961 | .block_erase = spi_erase_at45db_block, |
| 2962 | }, /* Although the datasheets describes sectors (which can be write protected) |
| 2963 | * there seems to be no erase functions for them. |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 2964 | { |
Stefan Tauner | fdc4f7e | 2013-08-27 18:02:12 +0000 | [diff] [blame] | 2965 | .eraseblocks = { |
| 2966 | {8 * 528, 1}, |
| 2967 | {120 * 528, 1}, |
| 2968 | {128 * 528, 63}, |
| 2969 | }, |
| 2970 | .block_erase = spi_erase_at45db_sector |
| 2971 | }, */ { |
| 2972 | .eraseblocks = { {4224 * 1024, 1} }, |
| 2973 | .block_erase = spi_erase_at45db_chip, |
| 2974 | } |
| 2975 | }, |
| 2976 | .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */ |
Stefan Tauner | fdc4f7e | 2013-08-27 18:02:12 +0000 | [diff] [blame] | 2977 | .write = spi_write_at45db, |
| 2978 | .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2979 | .voltage = {2700, 3600}, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2980 | .gran = write_gran_528bytes, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2981 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2982 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2983 | { |
| 2984 | .vendor = "Atmel", |
| 2985 | .name = "AT45DB321D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2986 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2987 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2988 | .model_id = ATMEL_AT45DB321D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2989 | .total_size = 4096, /* or 4224, determined from status register */ |
| 2990 | .page_size = 512, /* or 528, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2991 | /* 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] | 2992 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 2993 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 2994 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2995 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2996 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2997 | .block_erasers = |
| 2998 | { |
| 2999 | { |
| 3000 | .eraseblocks = { {512, 8192} }, |
| 3001 | .block_erase = spi_erase_at45db_page, |
| 3002 | }, { |
| 3003 | .eraseblocks = { {8 * 512, 8192/8} }, |
| 3004 | .block_erase = spi_erase_at45db_block, |
| 3005 | }, { |
| 3006 | .eraseblocks = { |
| 3007 | {8 * 512, 1}, |
| 3008 | {120 * 512, 1}, |
| 3009 | {128 * 512, 63}, |
| 3010 | }, |
| 3011 | .block_erase = spi_erase_at45db_sector |
| 3012 | }, { |
| 3013 | .eraseblocks = { {4096 * 1024, 1} }, |
| 3014 | .block_erase = spi_erase_at45db_chip, |
| 3015 | } |
| 3016 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3017 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3018 | .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] | 3019 | /* granularity will be set by the probing function. */ |
| 3020 | .write = spi_write_at45db, |
| 3021 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 3022 | .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */ |
| 3023 | }, |
| 3024 | |
| 3025 | { |
| 3026 | .vendor = "Atmel", |
| 3027 | .name = "AT45DB321E", |
| 3028 | .bustype = BUS_SPI, |
| 3029 | .manufacture_id = ATMEL_ID, |
| 3030 | .model_id = ATMEL_AT45DB321C, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 3031 | .total_size = 4096, /* or 4224, determined from status register */ |
| 3032 | .page_size = 512, /* or 528, determined from status register */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3033 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
| 3034 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 3035 | .feature_bits = FEATURE_OTP, |
| 3036 | .tested = TEST_UNTESTED, |
| 3037 | .probe = probe_spi_at45db, |
| 3038 | .probe_timing = TIMING_ZERO, |
| 3039 | .block_erasers = |
| 3040 | { |
| 3041 | { |
| 3042 | .eraseblocks = { {512, 8192} }, |
| 3043 | .block_erase = spi_erase_at45db_page, |
| 3044 | }, { |
| 3045 | .eraseblocks = { {8 * 512, 8192/8} }, |
| 3046 | .block_erase = spi_erase_at45db_block, |
| 3047 | }, { |
| 3048 | .eraseblocks = { |
| 3049 | {8 * 512, 1}, |
| 3050 | {120 * 512, 1}, |
| 3051 | {128 * 512, 63}, |
| 3052 | }, |
| 3053 | .block_erase = spi_erase_at45db_sector |
| 3054 | }, { |
| 3055 | .eraseblocks = { {4096 * 1024, 1} }, |
| 3056 | .block_erase = spi_erase_at45db_chip, |
| 3057 | } |
| 3058 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3059 | .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */ |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3060 | .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] | 3061 | /* granularity will be set by the probing function. */ |
| 3062 | .write = spi_write_at45db, |
| 3063 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 3064 | .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] | 3065 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3066 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3067 | { |
| 3068 | .vendor = "Atmel", |
| 3069 | .name = "AT45DB642D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3070 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3071 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3072 | .model_id = ATMEL_AT45DB642D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 3073 | .total_size = 8192, /* or 8448, determined from status register */ |
| 3074 | .page_size = 1024, /* or 1056, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3075 | /* 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] | 3076 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 3077 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 3078 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3079 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3080 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3081 | .block_erasers = |
| 3082 | { |
| 3083 | { |
| 3084 | .eraseblocks = { {1024, 8192} }, |
| 3085 | .block_erase = spi_erase_at45db_page, |
| 3086 | }, { |
| 3087 | .eraseblocks = { {8 * 1024, 8192/8} }, |
| 3088 | .block_erase = spi_erase_at45db_block, |
| 3089 | }, { |
| 3090 | .eraseblocks = { |
| 3091 | {8 * 1024, 1}, |
| 3092 | {248 * 1024, 1}, |
| 3093 | {256 * 1024, 31}, |
| 3094 | }, |
| 3095 | .block_erase = spi_erase_at45db_sector |
| 3096 | }, { |
| 3097 | .eraseblocks = { {8192 * 1024, 1} }, |
| 3098 | .block_erase = spi_erase_at45db_chip, |
| 3099 | } |
| 3100 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3101 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3102 | .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] | 3103 | /* granularity will be set by the probing function. */ |
| 3104 | .write = spi_write_at45db, |
| 3105 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3106 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 3107 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3108 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3109 | { |
| 3110 | .vendor = "Atmel", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3111 | .name = "AT49(H)F010", |
| 3112 | .bustype = BUS_PARALLEL, |
| 3113 | .manufacture_id = ATMEL_ID, |
| 3114 | .model_id = ATMEL_AT49F010, |
| 3115 | .total_size = 128, |
| 3116 | .page_size = 0, /* unused */ |
| 3117 | .feature_bits = FEATURE_EITHER_RESET, |
| 3118 | .tested = TEST_OK_PREW, |
| 3119 | .probe = probe_jedec, |
| 3120 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3121 | .block_erasers = |
| 3122 | { |
| 3123 | { |
| 3124 | .eraseblocks = { {128 * 1024, 1} }, |
| 3125 | .block_erase = erase_chip_block_jedec, |
| 3126 | } |
| 3127 | }, |
| 3128 | .printlock = printlock_at49f, |
| 3129 | .write = write_jedec_1, |
| 3130 | .read = read_memmapped, |
| 3131 | .voltage = {4500, 5500}, |
| 3132 | }, |
| 3133 | |
| 3134 | { |
| 3135 | .vendor = "Atmel", |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3136 | .name = "AT49BV512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3137 | .bustype = BUS_PARALLEL, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3138 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3139 | .model_id = ATMEL_AT49BV512, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3140 | .total_size = 64, |
| 3141 | .page_size = 64, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3142 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 3143 | .tested = TEST_OK_PREW, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3144 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3145 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 3146 | .block_erasers = |
| 3147 | { |
| 3148 | { |
| 3149 | .eraseblocks = { {64 * 1024, 1} }, |
| 3150 | .block_erase = erase_chip_block_jedec, |
| 3151 | } |
| 3152 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3153 | .write = write_jedec_1, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3154 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3155 | .voltage = {2700, 3600}, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3156 | }, |
| 3157 | |
| 3158 | { |
| 3159 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3160 | .name = "AT49F002(N)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3161 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3162 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3163 | .model_id = ATMEL_AT49F002N, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3164 | .total_size = 256, |
| 3165 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3166 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3167 | .tested = TEST_UNTESTED, |
| 3168 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3169 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 3170 | .block_erasers = |
| 3171 | { |
| 3172 | { |
| 3173 | .eraseblocks = { |
| 3174 | {16 * 1024, 1}, |
| 3175 | {8 * 1024, 2}, |
| 3176 | {96 * 1024, 1}, |
| 3177 | {128 * 1024, 1}, |
| 3178 | }, |
| 3179 | .block_erase = erase_sector_jedec, |
| 3180 | }, { |
| 3181 | .eraseblocks = { {256 * 1024, 1} }, |
| 3182 | .block_erase = erase_chip_block_jedec, |
| 3183 | } |
| 3184 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3185 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3186 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3187 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3188 | }, |
| 3189 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3190 | { |
| 3191 | .vendor = "Atmel", |
| 3192 | .name = "AT49F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3193 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3194 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3195 | .model_id = ATMEL_AT49F002NT, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3196 | .total_size = 256, |
| 3197 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3198 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 3199 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3200 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3201 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 3202 | .block_erasers = |
| 3203 | { |
| 3204 | { |
| 3205 | .eraseblocks = { |
| 3206 | {128 * 1024, 1}, |
| 3207 | {96 * 1024, 1}, |
| 3208 | {8 * 1024, 2}, |
| 3209 | {16 * 1024, 1}, |
| 3210 | }, |
| 3211 | .block_erase = erase_sector_jedec, |
| 3212 | }, { |
| 3213 | .eraseblocks = { {256 * 1024, 1} }, |
| 3214 | .block_erase = erase_chip_block_jedec, |
| 3215 | } |
| 3216 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3217 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3218 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3219 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3220 | }, |
| 3221 | |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 3222 | { |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3223 | .vendor = "Atmel", |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 3224 | .name = "AT49F020", |
| 3225 | .bustype = BUS_PARALLEL, |
| 3226 | .manufacture_id = ATMEL_ID, |
| 3227 | .model_id = ATMEL_AT49F020, |
| 3228 | .total_size = 256, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3229 | .page_size = 0, /* unused */ |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 3230 | .feature_bits = FEATURE_EITHER_RESET, |
| 3231 | .tested = TEST_OK_PRE, |
| 3232 | .probe = probe_jedec, |
| 3233 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3234 | .block_erasers = |
| 3235 | { |
| 3236 | { |
| 3237 | .eraseblocks = { {256 * 1024, 1} }, |
| 3238 | .block_erase = erase_chip_block_jedec, |
| 3239 | } |
| 3240 | /* Chip features an optional permanent write protection |
| 3241 | * of the first 8 kB. The erase function is the same as |
| 3242 | * above, but 00000H to 01FFFH will not be erased. |
| 3243 | * FIXME: add another eraser when partial erasers are |
| 3244 | * supported. |
| 3245 | */ |
| 3246 | }, |
| 3247 | .printlock = printlock_at49f, |
| 3248 | .write = write_jedec_1, |
| 3249 | .read = read_memmapped, |
| 3250 | .voltage = {4500, 5500}, |
| 3251 | }, |
| 3252 | |
| 3253 | { |
| 3254 | .vendor = "Atmel", |
| 3255 | .name = "AT49F040", |
| 3256 | .bustype = BUS_PARALLEL, |
| 3257 | .manufacture_id = ATMEL_ID, |
| 3258 | .model_id = ATMEL_AT49F040, |
| 3259 | .total_size = 512, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3260 | .page_size = 0, /* unused */ |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 3261 | .feature_bits = FEATURE_EITHER_RESET, |
| 3262 | .tested = TEST_UNTESTED, |
| 3263 | .probe = probe_jedec, |
| 3264 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3265 | .block_erasers = |
| 3266 | { |
| 3267 | { |
| 3268 | .eraseblocks = { {512 * 1024, 1} }, |
| 3269 | .block_erase = erase_chip_block_jedec, |
| 3270 | } |
| 3271 | /* Chip features an optional permanent write protection |
| 3272 | * of the first 16 kB. The erase function is the same as |
| 3273 | * above, but 00000H to 03FFFH will not be erased. |
| 3274 | * FIXME: add another eraser when partial erasers are |
| 3275 | * supported. |
| 3276 | */ |
| 3277 | }, |
| 3278 | .printlock = printlock_at49f, |
| 3279 | .write = write_jedec_1, |
| 3280 | .read = read_memmapped, |
| 3281 | .voltage = {4500, 5500}, |
| 3282 | }, |
| 3283 | |
| 3284 | { |
| 3285 | .vendor = "Atmel", |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3286 | .name = "AT49F080", |
| 3287 | .bustype = BUS_PARALLEL, |
| 3288 | .manufacture_id = ATMEL_ID, |
| 3289 | .model_id = ATMEL_AT49F080, |
| 3290 | .total_size = 1024, |
| 3291 | .page_size = 0, /* unused */ |
| 3292 | .feature_bits = FEATURE_EITHER_RESET, |
| 3293 | .tested = TEST_UNTESTED, |
| 3294 | .probe = probe_jedec, |
| 3295 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3296 | .block_erasers = |
| 3297 | { |
| 3298 | { |
| 3299 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3300 | .block_erase = erase_chip_block_jedec, |
| 3301 | } |
| 3302 | /* Chip features an optional permanent write protection |
| 3303 | * of the first 16 kB. The erase function is the same as |
| 3304 | * above, but 00000H to 03FFFH will not be erased. |
| 3305 | * FIXME: add another eraser when partial erasers are |
| 3306 | * supported. |
| 3307 | */ |
| 3308 | }, |
| 3309 | .printlock = printlock_at49f, |
| 3310 | .write = write_jedec_1, |
| 3311 | .read = read_memmapped, |
| 3312 | .voltage = {4500, 5500}, |
| 3313 | }, |
| 3314 | |
| 3315 | { |
| 3316 | /* 'top' version of AT49F080. equal in all aspects but the boot block address */ |
| 3317 | .vendor = "Atmel", |
| 3318 | .name = "AT49F080T", |
| 3319 | .bustype = BUS_PARALLEL, |
| 3320 | .manufacture_id = ATMEL_ID, |
| 3321 | .model_id = ATMEL_AT49F080T, |
| 3322 | .total_size = 1024, |
| 3323 | .page_size = 0, /* unused */ |
| 3324 | .feature_bits = FEATURE_EITHER_RESET, |
| 3325 | .tested = TEST_UNTESTED, |
| 3326 | .probe = probe_jedec, |
| 3327 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3328 | .block_erasers = |
| 3329 | { |
| 3330 | { |
| 3331 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3332 | .block_erase = erase_chip_block_jedec, |
| 3333 | } |
| 3334 | /* Chip features an optional permanent write protection |
| 3335 | * of the first 16 kB. The erase function is the same as |
| 3336 | * above, but FC000H to FFFFFH will not be erased. |
| 3337 | * FIXME: add another eraser when partial erasers are |
| 3338 | * supported. |
| 3339 | */ |
| 3340 | }, |
| 3341 | .printlock = printlock_at49f, |
| 3342 | .write = write_jedec_1, |
| 3343 | .read = read_memmapped, |
| 3344 | .voltage = {4500, 5500}, |
| 3345 | }, |
| 3346 | |
| 3347 | { |
| 3348 | .vendor = "Atmel", |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3349 | .name = "AT49LH002", |
| 3350 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 3351 | .manufacture_id = ATMEL_ID, |
| 3352 | .model_id = ATMEL_AT49LH002, |
| 3353 | .total_size = 256, |
| 3354 | .page_size = 0, /* unused */ |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3355 | .feature_bits = FEATURE_REGISTERMAP, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3356 | .tested = TEST_UNTESTED, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3357 | .probe = probe_82802ab, |
| 3358 | .probe_timing = TIMING_ZERO, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3359 | .block_erasers = |
| 3360 | { |
| 3361 | { |
| 3362 | .eraseblocks = { |
| 3363 | {64 * 1024, 3}, |
| 3364 | {32 * 1024, 1}, |
| 3365 | {8 * 1024, 2}, |
| 3366 | {16 * 1024, 1}, |
| 3367 | }, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3368 | .block_erase = NULL, /* TODO: Implement. */ |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3369 | }, { |
| 3370 | .eraseblocks = { |
| 3371 | {64 * 1024, 4}, |
| 3372 | }, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3373 | .block_erase = erase_block_82802ab, |
| 3374 | }, |
| 3375 | }, |
| 3376 | .printlock = printlock_regspace2_block_eraser_0, |
| 3377 | .unlock = unlock_regspace2_block_eraser_0, |
| 3378 | .write = write_82802ab, |
| 3379 | .read = read_memmapped, |
| 3380 | .voltage = {3000, 3600}, |
| 3381 | }, |
| 3382 | |
| 3383 | { |
| 3384 | .vendor = "Atmel", |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3385 | .name = "AT49LH004", |
| 3386 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 3387 | .manufacture_id = ATMEL_ID, |
| 3388 | .model_id = ATMEL_AT49LH004, |
| 3389 | .total_size = 512, |
| 3390 | .page_size = 0, /* unused */ |
| 3391 | .feature_bits = FEATURE_REGISTERMAP, |
| 3392 | .tested = TEST_UNTESTED, |
| 3393 | .probe = probe_82802ab, |
| 3394 | .probe_timing = TIMING_ZERO, |
| 3395 | .block_erasers = |
| 3396 | { |
| 3397 | { |
| 3398 | .eraseblocks = { |
| 3399 | {64 * 1024, 7}, |
| 3400 | {32 * 1024, 1}, |
| 3401 | {8 * 1024, 2}, |
| 3402 | {16 * 1024, 1}, |
| 3403 | }, |
| 3404 | .block_erase = erase_block_82802ab, |
| 3405 | }, { |
| 3406 | .eraseblocks = { |
| 3407 | {64 * 1024, 8}, |
| 3408 | }, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3409 | .block_erase = NULL, /* TODO: Implement. */ |
| 3410 | }, |
| 3411 | }, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3412 | .printlock = printlock_regspace2_block_eraser_0, |
| 3413 | .unlock = unlock_regspace2_block_eraser_0, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3414 | .write = write_82802ab, |
| 3415 | .read = read_memmapped, |
| 3416 | .voltage = {3000, 3600}, |
| 3417 | }, |
| 3418 | |
| 3419 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3420 | .vendor = "Atmel", |
| 3421 | .name = "AT49LH00B4", |
| 3422 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 3423 | .manufacture_id = ATMEL_ID, |
| 3424 | .model_id = ATMEL_AT49LH00B4, |
| 3425 | .total_size = 512, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3426 | .page_size = 0, /* unused */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3427 | .feature_bits = FEATURE_REGISTERMAP, |
| 3428 | .tested = TEST_UNTESTED, |
| 3429 | .probe = probe_82802ab, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3430 | .probe_timing = TIMING_ZERO, |
| 3431 | .block_erasers = |
| 3432 | { |
| 3433 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3434 | .eraseblocks = { |
| 3435 | {8 * 1024, 2}, |
| 3436 | {16 * 1024, 1}, |
| 3437 | {32 * 1024, 1}, |
| 3438 | {64 * 1024, 7}, |
| 3439 | }, |
| 3440 | .block_erase = NULL, /* TODO: Implement. */ |
| 3441 | }, { |
| 3442 | .eraseblocks = { |
| 3443 | {64 * 1024, 8}, |
| 3444 | }, |
| 3445 | .block_erase = erase_block_82802ab, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3446 | }, |
| 3447 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3448 | .printlock = printlock_regspace2_block_eraser_0, |
| 3449 | .unlock = unlock_regspace2_block_eraser_0, |
| 3450 | .write = write_82802ab, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3451 | .read = read_memmapped, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3452 | .voltage = {3000, 3600}, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3453 | }, |
| 3454 | |
| 3455 | { |
Angel Pons | 1ebda78 | 2021-04-20 21:39:11 +0200 | [diff] [blame] | 3456 | .vendor = "Boya/BoHong Microelectronics", |
Christian Kudera | 475a7ee | 2021-04-20 22:50:01 +0200 | [diff] [blame] | 3457 | .name = "B.25D16A", |
| 3458 | .bustype = BUS_SPI, |
| 3459 | .manufacture_id = BOYA_BOHONG_ID, |
| 3460 | .model_id = BOYA_BOHONG_B_25D16A, |
| 3461 | .total_size = 2048, |
| 3462 | .page_size = 256, |
| 3463 | .feature_bits = FEATURE_WRSR_WREN, |
| 3464 | .tested = TEST_OK_PR, |
| 3465 | .probe = probe_spi_rdid, |
| 3466 | .probe_timing = TIMING_ZERO, |
| 3467 | .block_erasers = |
| 3468 | { |
| 3469 | { |
| 3470 | .eraseblocks = { {4 * 1024, 512} }, |
| 3471 | .block_erase = spi_block_erase_20, |
| 3472 | }, { |
| 3473 | .eraseblocks = { {32 * 1024, 64} }, |
| 3474 | .block_erase = spi_block_erase_52, |
| 3475 | }, { |
| 3476 | .eraseblocks = { {64 * 1024, 32} }, |
| 3477 | .block_erase = spi_block_erase_d8, |
| 3478 | }, { |
| 3479 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3480 | .block_erase = spi_block_erase_60, |
| 3481 | }, { |
| 3482 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3483 | .block_erase = spi_block_erase_c7, |
| 3484 | } |
| 3485 | }, |
| 3486 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 3487 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 3488 | .write = spi_chip_write_256, |
| 3489 | .read = spi_chip_read, |
| 3490 | .voltage = {2700, 3600}, |
| 3491 | }, |
| 3492 | |
| 3493 | { |
| 3494 | .vendor = "Boya/BoHong Microelectronics", |
Angel Pons | 1ebda78 | 2021-04-20 21:39:11 +0200 | [diff] [blame] | 3495 | .name = "B.25Q128AS", |
Jack Olsen | 73ae5ef | 2020-08-08 21:12:13 -0500 | [diff] [blame] | 3496 | .bustype = BUS_SPI, |
Angel Pons | 1ebda78 | 2021-04-20 21:39:11 +0200 | [diff] [blame] | 3497 | .manufacture_id = BOYA_BOHONG_ID, |
| 3498 | .model_id = BOYA_BOHONG_B_25Q128AS, |
Jack Olsen | 73ae5ef | 2020-08-08 21:12:13 -0500 | [diff] [blame] | 3499 | .total_size = 16384, |
| 3500 | .page_size = 256, |
| 3501 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 3502 | .tested = TEST_OK_PREW, |
| 3503 | .probe = probe_spi_rdid, |
| 3504 | .probe_timing = TIMING_ZERO, |
| 3505 | .block_erasers = |
| 3506 | { |
| 3507 | { |
| 3508 | .eraseblocks = { {4 * 1024, 4096} }, |
| 3509 | .block_erase = spi_block_erase_20, |
| 3510 | }, { |
| 3511 | .eraseblocks = { {32 * 1024, 512} }, |
| 3512 | .block_erase = spi_block_erase_52, |
| 3513 | }, { |
| 3514 | .eraseblocks = { {64 * 1024, 256} }, |
| 3515 | .block_erase = spi_block_erase_d8, |
| 3516 | }, { |
| 3517 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 3518 | .block_erase = spi_block_erase_60, |
| 3519 | }, { |
| 3520 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 3521 | .block_erase = spi_block_erase_c7, |
| 3522 | } |
| 3523 | }, |
| 3524 | .printlock = spi_prettyprint_status_register_plain, |
| 3525 | .unlock = spi_disable_blockprotect_at25fs040, |
| 3526 | .write = spi_chip_write_256, |
| 3527 | .read = spi_chip_read, |
| 3528 | .voltage = {2700, 3600}, |
| 3529 | }, |
| 3530 | |
| 3531 | { |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3532 | .vendor = "Bright", |
| 3533 | .name = "BM29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3534 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3535 | .manufacture_id = BRIGHT_ID, |
| 3536 | .model_id = BRIGHT_BM29F040, |
| 3537 | .total_size = 512, |
| 3538 | .page_size = 64 * 1024, |
| 3539 | .feature_bits = FEATURE_EITHER_RESET, |
| 3540 | .tested = TEST_OK_PR, |
| 3541 | .probe = probe_jedec, |
| 3542 | .probe_timing = TIMING_ZERO, |
| 3543 | .block_erasers = |
| 3544 | { |
| 3545 | { |
| 3546 | .eraseblocks = { {64 * 1024, 8} }, |
| 3547 | .block_erase = erase_sector_jedec, |
| 3548 | }, { |
| 3549 | .eraseblocks = { {512 * 1024, 1} }, |
| 3550 | .block_erase = erase_chip_block_jedec, |
| 3551 | }, |
| 3552 | }, |
| 3553 | .write = write_jedec_1, |
| 3554 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 3555 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3556 | }, |
| 3557 | |
| 3558 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3559 | .vendor = "Catalyst", |
| 3560 | .name = "CAT28F512", |
| 3561 | .bustype = BUS_PARALLEL, |
| 3562 | .manufacture_id = CATALYST_ID, |
| 3563 | .model_id = CATALYST_CAT28F512, |
| 3564 | .total_size = 64, |
| 3565 | .page_size = 0, /* unused */ |
| 3566 | .feature_bits = 0, |
Alan Green | 908adf4 | 2019-07-03 15:34:06 +1000 | [diff] [blame] | 3567 | .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD}, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3568 | .probe = probe_jedec, /* FIXME! */ |
| 3569 | .probe_timing = TIMING_ZERO, |
| 3570 | .block_erasers = |
| 3571 | { |
| 3572 | { |
| 3573 | .eraseblocks = { {64 * 1024, 1} }, |
| 3574 | .block_erase = NULL, /* TODO */ |
| 3575 | }, |
| 3576 | }, |
| 3577 | .write = NULL, /* TODO */ |
| 3578 | .read = read_memmapped, |
| 3579 | .voltage = {4500, 5500}, |
| 3580 | }, |
| 3581 | |
| 3582 | { |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3583 | .vendor = "ENE", |
| 3584 | .name = "KB9012 (EDI)", |
| 3585 | .bustype = BUS_SPI, |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3586 | .total_size = 128, |
| 3587 | .page_size = 128, |
| 3588 | .feature_bits = FEATURE_ERASED_ZERO, |
| 3589 | .tested = TEST_OK_PREW, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3590 | .spi_cmd_set = SPI_EDI, |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3591 | .probe = edi_probe_kb9012, |
| 3592 | .probe_timing = TIMING_ZERO, |
| 3593 | .block_erasers = |
| 3594 | { |
| 3595 | { |
| 3596 | .eraseblocks = { {128, 1024} }, |
| 3597 | .block_erase = edi_chip_block_erase, |
| 3598 | }, |
| 3599 | }, |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3600 | .write = edi_chip_write, |
| 3601 | .read = edi_chip_read, |
| 3602 | .voltage = {2700, 3600}, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3603 | .gran = write_gran_128bytes, |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3604 | }, |
| 3605 | |
| 3606 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3607 | .vendor = "ESI", |
| 3608 | .name = "ES25P16", |
| 3609 | .bustype = BUS_SPI, |
| 3610 | .manufacture_id = EXCEL_ID_NOPREFIX, |
| 3611 | .model_id = EXCEL_ES25P16, |
| 3612 | .total_size = 2 * 1024, |
| 3613 | .page_size = 256, |
| 3614 | /* 256-byte parameter page separate from memory array: |
| 3615 | * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */ |
| 3616 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3617 | .tested = TEST_UNTESTED, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3618 | .probe = probe_spi_rdid, |
| 3619 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3620 | .block_erasers = |
| 3621 | { |
| 3622 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3623 | .eraseblocks = { {64 * 1024, 32} }, |
| 3624 | .block_erase = spi_block_erase_d8, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3625 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3626 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3627 | .block_erase = spi_block_erase_c7, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3628 | } |
| 3629 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3630 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 3631 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 3632 | .write = spi_chip_write_256, |
| 3633 | .read = spi_chip_read, /* Fast Read (0x0B) supported */ |
| 3634 | .voltage = {2700, 3600}, |
| 3635 | }, |
| 3636 | |
| 3637 | { |
| 3638 | .vendor = "ESI", |
| 3639 | .name = "ES25P40", |
| 3640 | .bustype = BUS_SPI, |
| 3641 | .manufacture_id = EXCEL_ID_NOPREFIX, |
| 3642 | .model_id = EXCEL_ES25P40, |
| 3643 | .total_size = 512, |
| 3644 | .page_size = 256, |
| 3645 | /* 256-byte parameter page separate from memory array: |
| 3646 | * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */ |
| 3647 | .feature_bits = FEATURE_WRSR_WREN, |
| 3648 | .tested = TEST_UNTESTED, |
| 3649 | .probe = probe_spi_rdid, |
| 3650 | .probe_timing = TIMING_ZERO, |
| 3651 | .block_erasers = |
| 3652 | { |
| 3653 | { |
| 3654 | .eraseblocks = { {64 * 1024, 8} }, |
| 3655 | .block_erase = spi_block_erase_d8, |
| 3656 | }, { |
| 3657 | .eraseblocks = { {512 * 1024, 1} }, |
| 3658 | .block_erase = spi_block_erase_c7, |
| 3659 | } |
| 3660 | }, |
| 3661 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 3662 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 3663 | .write = spi_chip_write_256, |
| 3664 | .read = spi_chip_read, /* Fast Read (0x0B) supported */ |
| 3665 | .voltage = {2700, 3600}, |
| 3666 | }, |
| 3667 | |
| 3668 | { |
| 3669 | .vendor = "ESI", |
| 3670 | .name = "ES25P80", |
| 3671 | .bustype = BUS_SPI, |
| 3672 | .manufacture_id = EXCEL_ID_NOPREFIX, |
| 3673 | .model_id = EXCEL_ES25P80, |
| 3674 | .total_size = 1024, |
| 3675 | .page_size = 256, |
| 3676 | /* 256-byte parameter page separate from memory array: |
| 3677 | * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */ |
| 3678 | .feature_bits = FEATURE_WRSR_WREN, |
| 3679 | .tested = TEST_UNTESTED, |
| 3680 | .probe = probe_spi_rdid, |
| 3681 | .probe_timing = TIMING_ZERO, |
| 3682 | .block_erasers = |
| 3683 | { |
| 3684 | { |
| 3685 | .eraseblocks = { {64 * 1024, 16} }, |
| 3686 | .block_erase = spi_block_erase_d8, |
| 3687 | }, { |
| 3688 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3689 | .block_erase = spi_block_erase_c7, |
| 3690 | } |
| 3691 | }, |
| 3692 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 3693 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 3694 | .write = spi_chip_write_256, |
| 3695 | .read = spi_chip_read, /* Fast Read (0x0B) supported */ |
| 3696 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3697 | }, |
| 3698 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3699 | { |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3700 | .vendor = "ESMT", |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3701 | .name = "F25L008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3702 | .bustype = BUS_SPI, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3703 | .manufacture_id = ESMT_ID, |
| 3704 | .model_id = ESMT_F25L008A, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3705 | .total_size = 1024, |
| 3706 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3707 | .feature_bits = FEATURE_WRSR_EITHER, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 3708 | .tested = TEST_OK_PREW, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3709 | .probe = probe_spi_rdid, |
| 3710 | .probe_timing = TIMING_ZERO, |
| 3711 | .block_erasers = |
| 3712 | { |
| 3713 | { |
| 3714 | .eraseblocks = { {4 * 1024, 256} }, |
| 3715 | .block_erase = spi_block_erase_20, |
| 3716 | }, { |
| 3717 | .eraseblocks = { {64 * 1024, 16} }, |
| 3718 | .block_erase = spi_block_erase_d8, |
| 3719 | }, { |
| 3720 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3721 | .block_erase = spi_block_erase_60, |
| 3722 | }, { |
| 3723 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3724 | .block_erase = spi_block_erase_c7, |
| 3725 | } |
| 3726 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3727 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3728 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 9a795d8 | 2010-07-14 16:19:05 +0000 | [diff] [blame] | 3729 | .write = spi_chip_write_1, |
Michael Karcher | 4497e86 | 2010-07-10 19:34:15 +0000 | [diff] [blame] | 3730 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3731 | .voltage = {2700, 3600}, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3732 | }, |
| 3733 | |
| 3734 | { |
Stefan Tauner | 85f09f7 | 2014-05-27 21:27:14 +0000 | [diff] [blame] | 3735 | .vendor = "ESMT", |
| 3736 | .name = "F25L32PA", |
| 3737 | .bustype = BUS_SPI, |
| 3738 | .manufacture_id = ESMT_ID, |
| 3739 | .model_id = ESMT_F25L32PA, |
| 3740 | .total_size = 4096, |
| 3741 | .page_size = 256, |
| 3742 | .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP, |
| 3743 | .tested = TEST_UNTESTED, |
| 3744 | .probe = probe_spi_rdid, |
| 3745 | .probe_timing = TIMING_ZERO, |
| 3746 | .block_erasers = |
| 3747 | { |
| 3748 | { |
| 3749 | .eraseblocks = { {4 * 1024, 1024} }, |
| 3750 | .block_erase = spi_block_erase_20, |
| 3751 | }, { |
| 3752 | .eraseblocks = { {64 * 1024, 64} }, |
| 3753 | .block_erase = spi_block_erase_d8, |
| 3754 | }, { |
| 3755 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3756 | .block_erase = spi_block_erase_60, |
| 3757 | }, { |
| 3758 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3759 | .block_erase = spi_block_erase_c7, |
| 3760 | } |
| 3761 | }, |
| 3762 | .printlock = spi_prettyprint_status_register_bp2_bpl, |
| 3763 | .unlock = spi_disable_blockprotect, |
| 3764 | .write = spi_chip_write_256, |
| 3765 | .read = spi_chip_read, |
| 3766 | .voltage = {2700, 3600}, |
| 3767 | }, |
| 3768 | |
| 3769 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3770 | .vendor = "ESMT", |
| 3771 | .name = "F49B002UA", |
| 3772 | .bustype = BUS_PARALLEL, |
| 3773 | .manufacture_id = ESMT_ID, |
| 3774 | .model_id = ESMT_F49B002UA, |
| 3775 | .total_size = 256, |
| 3776 | .page_size = 4096, |
| 3777 | .feature_bits = FEATURE_EITHER_RESET, |
| 3778 | .tested = TEST_UNTESTED, |
| 3779 | .probe = probe_jedec, |
| 3780 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3781 | .block_erasers = |
| 3782 | { |
| 3783 | { |
| 3784 | .eraseblocks = { |
| 3785 | {128 * 1024, 1}, |
| 3786 | {96 * 1024, 1}, |
| 3787 | {8 * 1024, 2}, |
| 3788 | {16 * 1024, 1}, |
| 3789 | }, |
| 3790 | .block_erase = erase_sector_jedec, |
| 3791 | }, { |
| 3792 | .eraseblocks = { {256 * 1024, 1} }, |
| 3793 | .block_erase = erase_chip_block_jedec, |
| 3794 | } |
| 3795 | }, |
| 3796 | .write = write_jedec_1, |
| 3797 | .read = read_memmapped, |
| 3798 | .voltage = {4500, 5500}, |
| 3799 | }, |
| 3800 | |
| 3801 | { |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3802 | .vendor = "Eon", |
| 3803 | .name = "EN25B05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3804 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3805 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3806 | .model_id = EON_EN25B05, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3807 | .total_size = 64, |
| 3808 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3809 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3810 | .tested = TEST_UNTESTED, |
| 3811 | .probe = probe_spi_rdid, |
| 3812 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3813 | .block_erasers = |
| 3814 | { |
| 3815 | { |
| 3816 | .eraseblocks = { |
| 3817 | {4 * 1024, 2}, |
| 3818 | {8 * 1024, 1}, |
| 3819 | {16 * 1024, 1}, |
| 3820 | {32 * 1024, 1}, |
| 3821 | }, |
| 3822 | .block_erase = spi_block_erase_d8, |
| 3823 | }, { |
| 3824 | .eraseblocks = { {64 * 1024, 1} }, |
| 3825 | .block_erase = spi_block_erase_c7, |
| 3826 | } |
| 3827 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3828 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3829 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3830 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3831 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3832 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3833 | }, |
| 3834 | |
| 3835 | { |
| 3836 | .vendor = "Eon", |
| 3837 | .name = "EN25B05T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3838 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3839 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3840 | .model_id = EON_EN25B05, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3841 | .total_size = 64, |
| 3842 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3843 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3844 | .tested = TEST_UNTESTED, |
| 3845 | .probe = probe_spi_rdid, |
| 3846 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3847 | .block_erasers = |
| 3848 | { |
| 3849 | { |
| 3850 | .eraseblocks = { |
| 3851 | {32 * 1024, 1}, |
| 3852 | {16 * 1024, 1}, |
| 3853 | {8 * 1024, 1}, |
| 3854 | {4 * 1024, 2}, |
| 3855 | }, |
| 3856 | .block_erase = spi_block_erase_d8, |
| 3857 | }, { |
| 3858 | .eraseblocks = { {64 * 1024, 1} }, |
| 3859 | .block_erase = spi_block_erase_c7, |
| 3860 | } |
| 3861 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3862 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3863 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3864 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3865 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3866 | .voltage = {2700, 3600}, |
| 3867 | }, |
| 3868 | |
| 3869 | { |
| 3870 | .vendor = "Eon", |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3871 | .name = "EN25B10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3872 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3873 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3874 | .model_id = EON_EN25B10, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3875 | .total_size = 128, |
| 3876 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3877 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3878 | .tested = TEST_UNTESTED, |
| 3879 | .probe = probe_spi_rdid, |
| 3880 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3881 | .block_erasers = |
| 3882 | { |
| 3883 | { |
| 3884 | .eraseblocks = { |
| 3885 | {4 * 1024, 2}, |
| 3886 | {8 * 1024, 1}, |
| 3887 | {16 * 1024, 1}, |
| 3888 | {32 * 1024, 3}, |
| 3889 | }, |
| 3890 | .block_erase = spi_block_erase_d8, |
| 3891 | }, { |
| 3892 | .eraseblocks = { {128 * 1024, 1} }, |
| 3893 | .block_erase = spi_block_erase_c7, |
| 3894 | } |
| 3895 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3896 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3897 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3898 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3899 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3900 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3901 | }, |
| 3902 | |
| 3903 | { |
| 3904 | .vendor = "Eon", |
| 3905 | .name = "EN25B10T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3906 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3907 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3908 | .model_id = EON_EN25B10, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3909 | .total_size = 128, |
| 3910 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3911 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 3912 | .tested = TEST_OK_PREW, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3913 | .probe = probe_spi_rdid, |
| 3914 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3915 | .block_erasers = |
| 3916 | { |
| 3917 | { |
| 3918 | .eraseblocks = { |
| 3919 | {32 * 1024, 3}, |
| 3920 | {16 * 1024, 1}, |
| 3921 | {8 * 1024, 1}, |
| 3922 | {4 * 1024, 2}, |
| 3923 | }, |
| 3924 | .block_erase = spi_block_erase_d8, |
| 3925 | }, { |
| 3926 | .eraseblocks = { {128 * 1024, 1} }, |
| 3927 | .block_erase = spi_block_erase_c7, |
| 3928 | } |
| 3929 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3930 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3931 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3932 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3933 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3934 | .voltage = {2700, 3600}, |
| 3935 | }, |
| 3936 | |
| 3937 | { |
| 3938 | .vendor = "Eon", |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3939 | .name = "EN25B16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3940 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3941 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3942 | .model_id = EON_EN25B16, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3943 | .total_size = 2048, |
| 3944 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3945 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3946 | .tested = TEST_UNTESTED, |
| 3947 | .probe = probe_spi_rdid, |
| 3948 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3949 | .block_erasers = |
| 3950 | { |
| 3951 | { |
| 3952 | .eraseblocks = { |
| 3953 | {4 * 1024, 2}, |
| 3954 | {8 * 1024, 1}, |
| 3955 | {16 * 1024, 1}, |
| 3956 | {32 * 1024, 1}, |
| 3957 | {64 * 1024, 31}, |
| 3958 | }, |
| 3959 | .block_erase = spi_block_erase_d8, |
| 3960 | }, { |
| 3961 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3962 | .block_erase = spi_block_erase_c7, |
| 3963 | } |
| 3964 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3965 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3966 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3967 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3968 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3969 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3970 | }, |
| 3971 | |
| 3972 | { |
| 3973 | .vendor = "Eon", |
| 3974 | .name = "EN25B16T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3975 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3976 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3977 | .model_id = EON_EN25B16, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3978 | .total_size = 2048, |
| 3979 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3980 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3981 | .tested = TEST_UNTESTED, |
| 3982 | .probe = probe_spi_rdid, |
| 3983 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3984 | .block_erasers = |
| 3985 | { |
| 3986 | { |
| 3987 | .eraseblocks = { |
| 3988 | {64 * 1024, 31}, |
| 3989 | {32 * 1024, 1}, |
| 3990 | {16 * 1024, 1}, |
| 3991 | {8 * 1024, 1}, |
| 3992 | {4 * 1024, 2}, |
| 3993 | }, |
| 3994 | .block_erase = spi_block_erase_d8, |
| 3995 | }, { |
| 3996 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3997 | .block_erase = spi_block_erase_c7, |
| 3998 | } |
| 3999 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4000 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4001 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4002 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4003 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4004 | .voltage = {2700, 3600}, |
| 4005 | }, |
| 4006 | |
| 4007 | { |
| 4008 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4009 | .name = "EN25B20", |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4010 | .bustype = BUS_SPI, |
| 4011 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4012 | .model_id = EON_EN25B20, |
| 4013 | .total_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4014 | .page_size = 256, |
| 4015 | .feature_bits = FEATURE_WRSR_WREN, |
| 4016 | .tested = TEST_UNTESTED, |
| 4017 | .probe = probe_spi_rdid, |
| 4018 | .probe_timing = TIMING_ZERO, |
| 4019 | .block_erasers = |
| 4020 | { |
| 4021 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4022 | .eraseblocks = { |
| 4023 | {4 * 1024, 2}, |
| 4024 | {8 * 1024, 1}, |
| 4025 | {16 * 1024, 1}, |
| 4026 | {32 * 1024, 1}, |
| 4027 | {64 * 1024, 3} |
| 4028 | }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4029 | .block_erase = spi_block_erase_d8, |
| 4030 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4031 | .eraseblocks = { {256 * 1024, 1} }, |
| 4032 | .block_erase = spi_block_erase_c7, |
| 4033 | } |
| 4034 | }, |
| 4035 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4036 | .unlock = spi_disable_blockprotect, |
| 4037 | .write = spi_chip_write_256, |
| 4038 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4039 | .voltage = {2700, 3600}, |
| 4040 | }, |
| 4041 | |
| 4042 | { |
| 4043 | .vendor = "Eon", |
| 4044 | .name = "EN25B20T", |
| 4045 | .bustype = BUS_SPI, |
| 4046 | .manufacture_id = EON_ID_NOPREFIX, |
| 4047 | .model_id = EON_EN25B20, |
| 4048 | .total_size = 256, |
| 4049 | .page_size = 256, |
| 4050 | .feature_bits = FEATURE_WRSR_WREN, |
| 4051 | .tested = TEST_UNTESTED, |
| 4052 | .probe = probe_spi_rdid, |
| 4053 | .probe_timing = TIMING_ZERO, |
| 4054 | .block_erasers = |
| 4055 | { |
| 4056 | { |
| 4057 | .eraseblocks = { |
| 4058 | {64 * 1024, 3}, |
| 4059 | {32 * 1024, 1}, |
| 4060 | {16 * 1024, 1}, |
| 4061 | {8 * 1024, 1}, |
| 4062 | {4 * 1024, 2}, |
| 4063 | }, |
| 4064 | .block_erase = spi_block_erase_d8, |
| 4065 | }, { |
| 4066 | .eraseblocks = { {256 * 1024, 1} }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4067 | .block_erase = spi_block_erase_c7, |
| 4068 | } |
| 4069 | }, |
| 4070 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4071 | .unlock = spi_disable_blockprotect, |
| 4072 | .write = spi_chip_write_256, |
| 4073 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4074 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4075 | }, |
| 4076 | |
| 4077 | { |
| 4078 | .vendor = "Eon", |
| 4079 | .name = "EN25B32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4080 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4081 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4082 | .model_id = EON_EN25B32, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4083 | .total_size = 4096, |
| 4084 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4085 | /* OTP: 512B total; enter 0x3A */ |
| 4086 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4087 | .tested = TEST_UNTESTED, |
| 4088 | .probe = probe_spi_rdid, |
| 4089 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4090 | .block_erasers = |
| 4091 | { |
| 4092 | { |
| 4093 | .eraseblocks = { |
| 4094 | {4 * 1024, 2}, |
| 4095 | {8 * 1024, 1}, |
| 4096 | {16 * 1024, 1}, |
| 4097 | {32 * 1024, 1}, |
| 4098 | {64 * 1024, 63}, |
| 4099 | }, |
| 4100 | .block_erase = spi_block_erase_d8, |
| 4101 | }, { |
| 4102 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4103 | .block_erase = spi_block_erase_c7, |
| 4104 | } |
| 4105 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4106 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4107 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4108 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4109 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4110 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4111 | }, |
| 4112 | |
| 4113 | { |
| 4114 | .vendor = "Eon", |
| 4115 | .name = "EN25B32T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4116 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4117 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4118 | .model_id = EON_EN25B32, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4119 | .total_size = 4096, |
| 4120 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4121 | /* OTP: 512B total; enter 0x3A */ |
| 4122 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4123 | .tested = TEST_UNTESTED, |
| 4124 | .probe = probe_spi_rdid, |
| 4125 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4126 | .block_erasers = |
| 4127 | { |
| 4128 | { |
| 4129 | .eraseblocks = { |
| 4130 | {64 * 1024, 63}, |
| 4131 | {32 * 1024, 1}, |
| 4132 | {16 * 1024, 1}, |
| 4133 | {8 * 1024, 1}, |
| 4134 | {4 * 1024, 2}, |
| 4135 | }, |
| 4136 | .block_erase = spi_block_erase_d8, |
| 4137 | }, { |
| 4138 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4139 | .block_erase = spi_block_erase_c7, |
| 4140 | } |
| 4141 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4142 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4143 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4144 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4145 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4146 | .voltage = {2700, 3600}, |
| 4147 | }, |
| 4148 | |
| 4149 | { |
| 4150 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4151 | .name = "EN25B40", |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4152 | .bustype = BUS_SPI, |
| 4153 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4154 | .model_id = EON_EN25B40, |
| 4155 | .total_size = 512, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4156 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4157 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4158 | .tested = TEST_UNTESTED, |
| 4159 | .probe = probe_spi_rdid, |
| 4160 | .probe_timing = TIMING_ZERO, |
| 4161 | .block_erasers = |
| 4162 | { |
| 4163 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4164 | .eraseblocks = { |
| 4165 | {4 * 1024, 2}, |
| 4166 | {8 * 1024, 1}, |
| 4167 | {16 * 1024, 1}, |
| 4168 | {32 * 1024, 1}, |
| 4169 | {64 * 1024, 7} |
| 4170 | }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4171 | .block_erase = spi_block_erase_d8, |
| 4172 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4173 | .eraseblocks = { {512 * 1024, 1} }, |
| 4174 | .block_erase = spi_block_erase_c7, |
| 4175 | } |
| 4176 | }, |
| 4177 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4178 | .unlock = spi_disable_blockprotect, |
| 4179 | .write = spi_chip_write_256, |
| 4180 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4181 | .voltage = {2700, 3600}, |
| 4182 | }, |
| 4183 | |
| 4184 | { |
| 4185 | .vendor = "Eon", |
| 4186 | .name = "EN25B40T", |
| 4187 | .bustype = BUS_SPI, |
| 4188 | .manufacture_id = EON_ID_NOPREFIX, |
| 4189 | .model_id = EON_EN25B40, |
| 4190 | .total_size = 512, |
| 4191 | .page_size = 256, |
| 4192 | .feature_bits = FEATURE_WRSR_WREN, |
| 4193 | .tested = TEST_UNTESTED, |
| 4194 | .probe = probe_spi_rdid, |
| 4195 | .probe_timing = TIMING_ZERO, |
| 4196 | .block_erasers = |
| 4197 | { |
| 4198 | { |
| 4199 | .eraseblocks = { |
| 4200 | {64 * 1024, 7}, |
| 4201 | {32 * 1024, 1}, |
| 4202 | {16 * 1024, 1}, |
| 4203 | {8 * 1024, 1}, |
| 4204 | {4 * 1024, 2}, |
| 4205 | }, |
| 4206 | .block_erase = spi_block_erase_d8, |
| 4207 | }, { |
| 4208 | .eraseblocks = { {512 * 1024, 1} }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4209 | .block_erase = spi_block_erase_c7, |
| 4210 | } |
| 4211 | }, |
| 4212 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4213 | .unlock = spi_disable_blockprotect, |
| 4214 | .write = spi_chip_write_256, |
| 4215 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4216 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4217 | }, |
| 4218 | |
| 4219 | { |
| 4220 | .vendor = "Eon", |
| 4221 | .name = "EN25B64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4222 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4223 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4224 | .model_id = EON_EN25B64, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4225 | .total_size = 8192, |
| 4226 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4227 | /* OTP: 512B total; enter 0x3A */ |
| 4228 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4229 | .tested = TEST_UNTESTED, |
| 4230 | .probe = probe_spi_rdid, |
| 4231 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4232 | .block_erasers = |
| 4233 | { |
| 4234 | { |
| 4235 | .eraseblocks = { |
| 4236 | {4 * 1024, 2}, |
| 4237 | {8 * 1024, 1}, |
| 4238 | {16 * 1024, 1}, |
| 4239 | {32 * 1024, 1}, |
| 4240 | {64 * 1024, 127}, |
| 4241 | }, |
| 4242 | .block_erase = spi_block_erase_d8, |
| 4243 | }, { |
| 4244 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4245 | .block_erase = spi_block_erase_c7, |
| 4246 | } |
| 4247 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4248 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4249 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4250 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4251 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4252 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4253 | }, |
| 4254 | |
| 4255 | { |
| 4256 | .vendor = "Eon", |
| 4257 | .name = "EN25B64T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4258 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4259 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4260 | .model_id = EON_EN25B64, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4261 | .total_size = 8192, |
| 4262 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4263 | /* OTP: 512B total; enter 0x3A */ |
| 4264 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4265 | .tested = TEST_UNTESTED, |
| 4266 | .probe = probe_spi_rdid, |
| 4267 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4268 | .block_erasers = |
| 4269 | { |
| 4270 | { |
| 4271 | .eraseblocks = { |
| 4272 | {64 * 1024, 127}, |
| 4273 | {32 * 1024, 1}, |
| 4274 | {16 * 1024, 1}, |
| 4275 | {8 * 1024, 1}, |
| 4276 | {4 * 1024, 2}, |
| 4277 | }, |
| 4278 | .block_erase = spi_block_erase_d8, |
| 4279 | }, { |
| 4280 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4281 | .block_erase = spi_block_erase_c7, |
| 4282 | } |
| 4283 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4284 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4285 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4286 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4287 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4288 | .voltage = {2700, 3600}, |
| 4289 | }, |
| 4290 | |
| 4291 | { |
| 4292 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4293 | .name = "EN25B80", |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4294 | .bustype = BUS_SPI, |
| 4295 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4296 | .model_id = EON_EN25B80, |
| 4297 | .total_size = 1024, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4298 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4299 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4300 | .tested = TEST_UNTESTED, |
| 4301 | .probe = probe_spi_rdid, |
| 4302 | .probe_timing = TIMING_ZERO, |
| 4303 | .block_erasers = |
| 4304 | { |
| 4305 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4306 | .eraseblocks = { |
| 4307 | {4 * 1024, 2}, |
| 4308 | {8 * 1024, 1}, |
| 4309 | {16 * 1024, 1}, |
| 4310 | {32 * 1024, 1}, |
| 4311 | {64 * 1024, 15} |
| 4312 | }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4313 | .block_erase = spi_block_erase_d8, |
| 4314 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4315 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4316 | .block_erase = spi_block_erase_c7, |
| 4317 | } |
| 4318 | }, |
| 4319 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4320 | .unlock = spi_disable_blockprotect, |
| 4321 | .write = spi_chip_write_256, |
| 4322 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4323 | .voltage = {2700, 3600}, |
| 4324 | }, |
| 4325 | |
| 4326 | { |
| 4327 | .vendor = "Eon", |
| 4328 | .name = "EN25B80T", |
| 4329 | .bustype = BUS_SPI, |
| 4330 | .manufacture_id = EON_ID_NOPREFIX, |
| 4331 | .model_id = EON_EN25B80, |
| 4332 | .total_size = 1024, |
| 4333 | .page_size = 256, |
| 4334 | .feature_bits = FEATURE_WRSR_WREN, |
| 4335 | .tested = TEST_UNTESTED, |
| 4336 | .probe = probe_spi_rdid, |
| 4337 | .probe_timing = TIMING_ZERO, |
| 4338 | .block_erasers = |
| 4339 | { |
| 4340 | { |
| 4341 | .eraseblocks = { |
| 4342 | {64 * 1024, 15}, |
| 4343 | {32 * 1024, 1}, |
| 4344 | {16 * 1024, 1}, |
| 4345 | {8 * 1024, 1}, |
| 4346 | {4 * 1024, 2}, |
| 4347 | }, |
| 4348 | .block_erase = spi_block_erase_d8, |
| 4349 | }, { |
| 4350 | .eraseblocks = { {1024 * 1024, 1} }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4351 | .block_erase = spi_block_erase_c7, |
| 4352 | } |
| 4353 | }, |
| 4354 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4355 | .unlock = spi_disable_blockprotect, |
| 4356 | .write = spi_chip_write_256, |
| 4357 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4358 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4359 | }, |
| 4360 | |
| 4361 | { |
| 4362 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4363 | .name = "EN25F05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4364 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4365 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4366 | .model_id = EON_EN25F05, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4367 | .total_size = 64, |
| 4368 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4369 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 4370 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4371 | .probe = probe_spi_rdid, |
| 4372 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4373 | .block_erasers = |
| 4374 | { |
| 4375 | { |
| 4376 | .eraseblocks = { {4 * 1024, 16} }, |
| 4377 | .block_erase = spi_block_erase_20, |
| 4378 | }, { |
| 4379 | .eraseblocks = { {32 * 1024, 2} }, |
| 4380 | .block_erase = spi_block_erase_d8, |
| 4381 | }, { |
| 4382 | .eraseblocks = { {32 * 1024, 2} }, |
| 4383 | .block_erase = spi_block_erase_52, |
| 4384 | }, { |
| 4385 | .eraseblocks = { {64 * 1024, 1} }, |
| 4386 | .block_erase = spi_block_erase_60, |
| 4387 | }, { |
| 4388 | .eraseblocks = { {64 * 1024, 1} }, |
| 4389 | .block_erase = spi_block_erase_c7, |
| 4390 | } |
| 4391 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4392 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4393 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4394 | .write = spi_chip_write_256, |
| 4395 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4396 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4397 | }, |
| 4398 | |
| 4399 | { |
| 4400 | .vendor = "Eon", |
| 4401 | .name = "EN25F10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4402 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4403 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4404 | .model_id = EON_EN25F10, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4405 | .total_size = 128, |
| 4406 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4407 | .feature_bits = FEATURE_WRSR_WREN, |
Simon Buhrow | d173ed4 | 2021-09-29 09:28:07 +0200 | [diff] [blame] | 4408 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4409 | .probe = probe_spi_rdid, |
| 4410 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4411 | .block_erasers = |
| 4412 | { |
| 4413 | { |
| 4414 | .eraseblocks = { {4 * 1024, 32} }, |
| 4415 | .block_erase = spi_block_erase_20, |
| 4416 | }, { |
| 4417 | .eraseblocks = { {32 * 1024, 4} }, |
| 4418 | .block_erase = spi_block_erase_d8, |
| 4419 | }, { |
| 4420 | .eraseblocks = { {32 * 1024, 4} }, |
| 4421 | .block_erase = spi_block_erase_52, |
| 4422 | }, { |
| 4423 | .eraseblocks = { {128 * 1024, 1} }, |
| 4424 | .block_erase = spi_block_erase_60, |
| 4425 | }, { |
| 4426 | .eraseblocks = { {128 * 1024, 1} }, |
| 4427 | .block_erase = spi_block_erase_c7, |
| 4428 | } |
| 4429 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4430 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4431 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4432 | .write = spi_chip_write_256, |
| 4433 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4434 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4435 | }, |
| 4436 | |
| 4437 | { |
| 4438 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4439 | .name = "EN25F16", |
| 4440 | .bustype = BUS_SPI, |
| 4441 | .manufacture_id = EON_ID_NOPREFIX, |
| 4442 | .model_id = EON_EN25F16, |
| 4443 | .total_size = 2048, |
| 4444 | .page_size = 256, |
| 4445 | .feature_bits = FEATURE_WRSR_WREN, |
| 4446 | .tested = TEST_OK_PREW, |
| 4447 | .probe = probe_spi_rdid, |
| 4448 | .probe_timing = TIMING_ZERO, |
| 4449 | .block_erasers = |
| 4450 | { |
| 4451 | { |
| 4452 | .eraseblocks = { {4 * 1024, 512} }, |
| 4453 | .block_erase = spi_block_erase_20, |
| 4454 | }, { |
| 4455 | .eraseblocks = { {64 * 1024, 32} }, |
| 4456 | .block_erase = spi_block_erase_d8, |
| 4457 | }, { |
| 4458 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4459 | .block_erase = spi_block_erase_60, |
| 4460 | }, { |
| 4461 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4462 | .block_erase = spi_block_erase_c7, |
| 4463 | } |
| 4464 | }, |
| 4465 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4466 | .unlock = spi_disable_blockprotect, |
| 4467 | .write = spi_chip_write_256, |
| 4468 | .read = spi_chip_read, |
| 4469 | .voltage = {2700, 3600}, |
| 4470 | }, |
| 4471 | |
| 4472 | { |
| 4473 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4474 | .name = "EN25F20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4475 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4476 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4477 | .model_id = EON_EN25F20, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4478 | .total_size = 256, |
| 4479 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4480 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4481 | .tested = TEST_UNTESTED, |
| 4482 | .probe = probe_spi_rdid, |
| 4483 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4484 | .block_erasers = |
| 4485 | { |
| 4486 | { |
| 4487 | .eraseblocks = { {4 * 1024, 64} }, |
| 4488 | .block_erase = spi_block_erase_20, |
| 4489 | }, { |
| 4490 | .eraseblocks = { {64 * 1024, 4} }, |
| 4491 | .block_erase = spi_block_erase_d8, |
| 4492 | }, { |
| 4493 | .eraseblocks = { {64 * 1024, 4} }, |
| 4494 | .block_erase = spi_block_erase_52, |
| 4495 | }, { |
| 4496 | .eraseblocks = { {256 * 1024, 1} }, |
| 4497 | .block_erase = spi_block_erase_60, |
| 4498 | }, { |
| 4499 | .eraseblocks = { {256 * 1024, 1} }, |
| 4500 | .block_erase = spi_block_erase_c7, |
| 4501 | } |
| 4502 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4503 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4504 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4505 | .write = spi_chip_write_256, |
| 4506 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4507 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4508 | }, |
| 4509 | |
| 4510 | { |
| 4511 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4512 | .name = "EN25F32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4513 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4514 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4515 | .model_id = EON_EN25F32, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4516 | .total_size = 4096, |
| 4517 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4518 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 4519 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4520 | .probe = probe_spi_rdid, |
| 4521 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4522 | .block_erasers = |
| 4523 | { |
| 4524 | { |
| 4525 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4526 | .block_erase = spi_block_erase_20, |
| 4527 | }, { |
| 4528 | .eraseblocks = { {64 * 1024, 64} }, |
| 4529 | .block_erase = spi_block_erase_d8, |
| 4530 | }, { |
| 4531 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4532 | .block_erase = spi_block_erase_60, |
| 4533 | }, { |
| 4534 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4535 | .block_erase = spi_block_erase_c7, |
| 4536 | } |
| 4537 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4538 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4539 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4540 | .write = spi_chip_write_256, |
| 4541 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4542 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4543 | }, |
| 4544 | |
| 4545 | { |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4546 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4547 | .name = "EN25F40", |
| 4548 | .bustype = BUS_SPI, |
| 4549 | .manufacture_id = EON_ID_NOPREFIX, |
| 4550 | .model_id = EON_EN25F40, |
| 4551 | .total_size = 512, |
| 4552 | .page_size = 256, |
| 4553 | .feature_bits = FEATURE_WRSR_WREN, |
| 4554 | .tested = TEST_OK_PREW, |
| 4555 | .probe = probe_spi_rdid, |
| 4556 | .probe_timing = TIMING_ZERO, |
| 4557 | .block_erasers = |
| 4558 | { |
| 4559 | { |
| 4560 | .eraseblocks = { {4 * 1024, 128} }, |
| 4561 | .block_erase = spi_block_erase_20, |
| 4562 | }, { |
| 4563 | .eraseblocks = { {64 * 1024, 8} }, |
| 4564 | .block_erase = spi_block_erase_d8, |
| 4565 | }, { |
| 4566 | .eraseblocks = { {512 * 1024, 1} }, |
| 4567 | .block_erase = spi_block_erase_60, |
| 4568 | }, { |
| 4569 | .eraseblocks = { {512 * 1024, 1} }, |
| 4570 | .block_erase = spi_block_erase_c7, |
| 4571 | }, |
| 4572 | }, |
| 4573 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4574 | .unlock = spi_disable_blockprotect, |
| 4575 | .write = spi_chip_write_256, |
| 4576 | .read = spi_chip_read, |
| 4577 | .voltage = {2700, 3600}, |
| 4578 | }, |
| 4579 | |
| 4580 | { |
| 4581 | .vendor = "Eon", |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4582 | .name = "EN25F64", |
| 4583 | .bustype = BUS_SPI, |
| 4584 | .manufacture_id = EON_ID_NOPREFIX, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 4585 | .model_id = EON_EN25F64, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4586 | .total_size = 8192, |
| 4587 | .page_size = 256, |
| 4588 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 4589 | .tested = TEST_OK_PREW, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4590 | .probe = probe_spi_rdid, |
| 4591 | .probe_timing = TIMING_ZERO, |
| 4592 | .block_erasers = |
| 4593 | { |
| 4594 | { |
| 4595 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4596 | .block_erase = spi_block_erase_20, |
| 4597 | }, { |
| 4598 | .eraseblocks = { {64 * 1024, 128} }, |
| 4599 | .block_erase = spi_block_erase_d8, |
| 4600 | }, { |
| 4601 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4602 | .block_erase = spi_block_erase_60, |
| 4603 | }, { |
| 4604 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4605 | .block_erase = spi_block_erase_c7, |
| 4606 | } |
| 4607 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4608 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4609 | .unlock = spi_disable_blockprotect, |
| 4610 | .write = spi_chip_write_256, |
| 4611 | .read = spi_chip_read, |
| 4612 | .voltage = {2700, 3600}, |
| 4613 | }, |
| 4614 | |
| 4615 | { |
| 4616 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4617 | .name = "EN25F80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4618 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4619 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4620 | .model_id = EON_EN25F80, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4621 | .total_size = 1024, |
| 4622 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4623 | .feature_bits = FEATURE_WRSR_WREN, |
| 4624 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4625 | .probe = probe_spi_rdid, |
| 4626 | .probe_timing = TIMING_ZERO, |
| 4627 | .block_erasers = |
| 4628 | { |
| 4629 | { |
| 4630 | .eraseblocks = { {4 * 1024, 256} }, |
| 4631 | .block_erase = spi_block_erase_20, |
| 4632 | }, { |
| 4633 | .eraseblocks = { {64 * 1024, 16} }, |
| 4634 | .block_erase = spi_block_erase_d8, |
| 4635 | }, { |
| 4636 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4637 | .block_erase = spi_block_erase_60, |
| 4638 | }, { |
| 4639 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4640 | .block_erase = spi_block_erase_c7, |
| 4641 | } |
| 4642 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4643 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4644 | .unlock = spi_disable_blockprotect, |
| 4645 | .write = spi_chip_write_256, |
| 4646 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4647 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4648 | }, |
| 4649 | |
| 4650 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4651 | .vendor = "Eon", |
| 4652 | .name = "EN25P05", |
| 4653 | .bustype = BUS_SPI, |
| 4654 | .manufacture_id = EON_ID_NOPREFIX, |
| 4655 | .model_id = EON_EN25B05, |
| 4656 | .total_size = 64, |
| 4657 | .page_size = 256, |
| 4658 | .feature_bits = FEATURE_WRSR_WREN, |
| 4659 | .tested = TEST_UNTESTED, |
| 4660 | .probe = probe_spi_rdid, |
| 4661 | .probe_timing = TIMING_ZERO, |
| 4662 | .block_erasers = |
| 4663 | { |
| 4664 | { |
| 4665 | .eraseblocks = { |
| 4666 | {32 * 1024, 2} }, |
| 4667 | .block_erase = spi_block_erase_d8, |
| 4668 | }, { |
| 4669 | .eraseblocks = { {64 * 1024, 1} }, |
| 4670 | .block_erase = spi_block_erase_c7, |
| 4671 | } |
| 4672 | }, |
| 4673 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4674 | .unlock = spi_disable_blockprotect, |
| 4675 | .write = spi_chip_write_256, |
| 4676 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4677 | .voltage = {2700, 3600}, |
| 4678 | }, |
| 4679 | |
| 4680 | { |
| 4681 | .vendor = "Eon", |
| 4682 | .name = "EN25P10", |
| 4683 | .bustype = BUS_SPI, |
| 4684 | .manufacture_id = EON_ID_NOPREFIX, |
| 4685 | .model_id = EON_EN25B10, |
| 4686 | .total_size = 128, |
| 4687 | .page_size = 256, |
| 4688 | .feature_bits = FEATURE_WRSR_WREN, |
| 4689 | .tested = TEST_UNTESTED, |
| 4690 | .probe = probe_spi_rdid, |
| 4691 | .probe_timing = TIMING_ZERO, |
| 4692 | .block_erasers = |
| 4693 | { |
| 4694 | { |
| 4695 | .eraseblocks = { {32 * 1024, 4} }, |
| 4696 | .block_erase = spi_block_erase_d8, |
| 4697 | }, { |
| 4698 | .eraseblocks = { {128 * 1024, 1} }, |
| 4699 | .block_erase = spi_block_erase_c7, |
| 4700 | } |
| 4701 | }, |
| 4702 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4703 | .unlock = spi_disable_blockprotect, |
| 4704 | .write = spi_chip_write_256, |
| 4705 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4706 | .voltage = {2700, 3600}, |
| 4707 | }, |
| 4708 | |
| 4709 | { |
| 4710 | .vendor = "Eon", |
| 4711 | .name = "EN25P16", |
| 4712 | .bustype = BUS_SPI, |
| 4713 | .manufacture_id = EON_ID_NOPREFIX, |
| 4714 | .model_id = EON_EN25B16, |
| 4715 | .total_size = 2048, |
| 4716 | .page_size = 256, |
| 4717 | .feature_bits = FEATURE_WRSR_WREN, |
| 4718 | .tested = TEST_UNTESTED, |
| 4719 | .probe = probe_spi_rdid, |
| 4720 | .probe_timing = TIMING_ZERO, |
| 4721 | .block_erasers = |
| 4722 | { |
| 4723 | { |
| 4724 | .eraseblocks = { {64 * 1024, 32} }, |
| 4725 | .block_erase = spi_block_erase_d8, |
| 4726 | }, { |
| 4727 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4728 | .block_erase = spi_block_erase_c7, |
| 4729 | } |
| 4730 | }, |
| 4731 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4732 | .unlock = spi_disable_blockprotect, |
| 4733 | .write = spi_chip_write_256, |
| 4734 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4735 | .voltage = {2700, 3600}, |
| 4736 | }, |
| 4737 | |
| 4738 | { |
| 4739 | .vendor = "Eon", |
| 4740 | .name = "EN25P20", |
| 4741 | .bustype = BUS_SPI, |
| 4742 | .manufacture_id = EON_ID_NOPREFIX, |
| 4743 | .model_id = EON_EN25B20, |
| 4744 | .total_size = 256, |
| 4745 | .page_size = 256, |
| 4746 | .feature_bits = FEATURE_WRSR_WREN, |
| 4747 | .tested = TEST_UNTESTED, |
| 4748 | .probe = probe_spi_rdid, |
| 4749 | .probe_timing = TIMING_ZERO, |
| 4750 | .block_erasers = |
| 4751 | { |
| 4752 | { |
| 4753 | .eraseblocks = { {64 * 1024, 4} }, |
| 4754 | .block_erase = spi_block_erase_d8, |
| 4755 | }, { |
| 4756 | .eraseblocks = { {256 * 1024, 1} }, |
| 4757 | .block_erase = spi_block_erase_c7, |
| 4758 | } |
| 4759 | }, |
| 4760 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4761 | .unlock = spi_disable_blockprotect, |
| 4762 | .write = spi_chip_write_256, |
| 4763 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4764 | .voltage = {2700, 3600}, |
| 4765 | }, |
| 4766 | |
| 4767 | { |
| 4768 | .vendor = "Eon", |
| 4769 | .name = "EN25P32", /* Uniform version of EN25B32 */ |
| 4770 | .bustype = BUS_SPI, |
| 4771 | .manufacture_id = EON_ID_NOPREFIX, |
| 4772 | .model_id = EON_EN25B32, |
| 4773 | .total_size = 4096, |
| 4774 | .page_size = 256, |
| 4775 | /* OTP: 512B total; enter 0x3A */ |
| 4776 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4777 | .tested = TEST_UNTESTED, |
| 4778 | .probe = probe_spi_rdid, |
| 4779 | .probe_timing = TIMING_ZERO, |
| 4780 | .block_erasers = |
| 4781 | { |
| 4782 | { |
| 4783 | .eraseblocks = { {64 * 1024, 64} }, |
| 4784 | .block_erase = spi_block_erase_d8, |
| 4785 | }, { |
| 4786 | .eraseblocks = { {4 * 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, /* Fast read (0x0B) supported */ |
| 4794 | .voltage = {2700, 3600}, |
| 4795 | }, |
| 4796 | |
| 4797 | { |
| 4798 | .vendor = "Eon", |
| 4799 | .name = "EN25P40", |
| 4800 | .bustype = BUS_SPI, |
| 4801 | .manufacture_id = EON_ID_NOPREFIX, |
| 4802 | .model_id = EON_EN25B40, |
| 4803 | .total_size = 512, |
| 4804 | .page_size = 256, |
| 4805 | .feature_bits = FEATURE_WRSR_WREN, |
| 4806 | .tested = TEST_UNTESTED, |
| 4807 | .probe = probe_spi_rdid, |
| 4808 | .probe_timing = TIMING_ZERO, |
| 4809 | .block_erasers = |
| 4810 | { |
| 4811 | { |
| 4812 | .eraseblocks = { {64 * 1024, 8} }, |
| 4813 | .block_erase = spi_block_erase_d8, |
| 4814 | }, { |
| 4815 | .eraseblocks = { {512 * 1024, 1} }, |
| 4816 | .block_erase = spi_block_erase_c7, |
| 4817 | } |
| 4818 | }, |
| 4819 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4820 | .unlock = spi_disable_blockprotect, |
| 4821 | .write = spi_chip_write_256, |
| 4822 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4823 | .voltage = {2700, 3600}, |
| 4824 | }, |
| 4825 | |
| 4826 | { |
| 4827 | .vendor = "Eon", |
| 4828 | .name = "EN25P64", |
| 4829 | .bustype = BUS_SPI, |
| 4830 | .manufacture_id = EON_ID_NOPREFIX, |
| 4831 | .model_id = EON_EN25B64, |
| 4832 | .total_size = 8192, |
| 4833 | .page_size = 256, |
| 4834 | /* OTP: 512B total; enter 0x3A */ |
| 4835 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4836 | .tested = TEST_UNTESTED, |
| 4837 | .probe = probe_spi_rdid, |
| 4838 | .probe_timing = TIMING_ZERO, |
| 4839 | .block_erasers = |
| 4840 | { |
| 4841 | { |
| 4842 | .eraseblocks = { {64 * 1024, 128} }, |
| 4843 | .block_erase = spi_block_erase_d8, |
| 4844 | }, { |
| 4845 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4846 | .block_erase = spi_block_erase_c7, |
| 4847 | } |
| 4848 | }, |
| 4849 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4850 | .unlock = spi_disable_blockprotect, |
| 4851 | .write = spi_chip_write_256, |
| 4852 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4853 | .voltage = {2700, 3600}, |
| 4854 | }, |
| 4855 | |
| 4856 | { |
| 4857 | .vendor = "Eon", |
| 4858 | .name = "EN25P80", |
| 4859 | .bustype = BUS_SPI, |
| 4860 | .manufacture_id = EON_ID_NOPREFIX, |
| 4861 | .model_id = EON_EN25B80, |
| 4862 | .total_size = 1024, |
| 4863 | .page_size = 256, |
| 4864 | .feature_bits = FEATURE_WRSR_WREN, |
| 4865 | .tested = TEST_UNTESTED, |
| 4866 | .probe = probe_spi_rdid, |
| 4867 | .probe_timing = TIMING_ZERO, |
| 4868 | .block_erasers = |
| 4869 | { |
| 4870 | { |
| 4871 | .eraseblocks = { {64 * 1024, 16} }, |
| 4872 | .block_erase = spi_block_erase_d8, |
| 4873 | }, { |
| 4874 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4875 | .block_erase = spi_block_erase_c7, |
| 4876 | } |
| 4877 | }, |
| 4878 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4879 | .unlock = spi_disable_blockprotect, |
| 4880 | .write = spi_chip_write_256, |
| 4881 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4882 | .voltage = {2700, 3600}, |
| 4883 | }, |
| 4884 | |
| 4885 | { |
| 4886 | .vendor = "Eon", |
| 4887 | .name = "EN25Q128", |
| 4888 | .bustype = BUS_SPI, |
| 4889 | .manufacture_id = EON_ID_NOPREFIX, |
| 4890 | .model_id = EON_EN25Q128, |
| 4891 | .total_size = 16384, |
| 4892 | .page_size = 256, |
| 4893 | /* OTP: 512B total; enter 0x3A */ |
| 4894 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4895 | .tested = TEST_OK_PREW, |
| 4896 | .probe = probe_spi_rdid, |
| 4897 | .probe_timing = TIMING_ZERO, |
| 4898 | .block_erasers = |
| 4899 | { |
| 4900 | { |
| 4901 | .eraseblocks = { {4 * 1024, 4096} }, |
| 4902 | .block_erase = spi_block_erase_20, |
| 4903 | }, { |
| 4904 | .eraseblocks = { {64 * 1024, 256} }, |
| 4905 | .block_erase = spi_block_erase_d8, |
| 4906 | }, { |
| 4907 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4908 | .block_erase = spi_block_erase_60, |
| 4909 | }, { |
| 4910 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4911 | .block_erase = spi_block_erase_c7, |
| 4912 | } |
| 4913 | }, |
| 4914 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4915 | .unlock = spi_disable_blockprotect, |
| 4916 | .write = spi_chip_write_256, |
| 4917 | .read = spi_chip_read, |
| 4918 | }, |
| 4919 | |
| 4920 | { |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4921 | /* Note: EN25D16 is an evil twin which shares the model ID |
| 4922 | but has different write protection capabilities */ |
| 4923 | .vendor = "Eon", |
| 4924 | .name = "EN25Q16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4925 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4926 | .manufacture_id = EON_ID_NOPREFIX, |
| 4927 | .model_id = EON_EN25Q16, |
| 4928 | .total_size = 2048, |
| 4929 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4930 | /* OTP: D16 512B/Q16 128B total; enter 0x3A */ |
| 4931 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4932 | .tested = TEST_UNTESTED, |
| 4933 | .probe = probe_spi_rdid, |
| 4934 | .probe_timing = TIMING_ZERO, |
| 4935 | .block_erasers = |
| 4936 | { |
| 4937 | { |
| 4938 | .eraseblocks = { {4 * 1024, 512} }, |
| 4939 | .block_erase = spi_block_erase_20, |
| 4940 | }, { |
| 4941 | .eraseblocks = { {64 * 1024, 32} }, |
| 4942 | .block_erase = spi_block_erase_d8, |
| 4943 | }, { |
| 4944 | /* not supported by Q16 version */ |
| 4945 | .eraseblocks = { {64 * 1024, 32} }, |
| 4946 | .block_erase = spi_block_erase_52, |
| 4947 | }, { |
| 4948 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4949 | .block_erase = spi_block_erase_60, |
| 4950 | }, { |
| 4951 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4952 | .block_erase = spi_block_erase_c7, |
| 4953 | } |
| 4954 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4955 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4956 | .unlock = spi_disable_blockprotect, |
| 4957 | .write = spi_chip_write_256, |
| 4958 | .read = spi_chip_read, |
| 4959 | .voltage = {2700, 3600}, |
| 4960 | }, |
| 4961 | |
| 4962 | { |
| 4963 | .vendor = "Eon", |
| 4964 | .name = "EN25Q32(A/B)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4965 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4966 | .manufacture_id = EON_ID_NOPREFIX, |
| 4967 | .model_id = EON_EN25Q32, |
| 4968 | .total_size = 4096, |
| 4969 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4970 | /* OTP: 512B total; enter 0x3A */ |
| 4971 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4972 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4973 | .probe = probe_spi_rdid, |
| 4974 | .probe_timing = TIMING_ZERO, |
| 4975 | .block_erasers = |
| 4976 | { |
| 4977 | { |
| 4978 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4979 | .block_erase = spi_block_erase_20, |
| 4980 | }, { |
| 4981 | .eraseblocks = { {64 * 1024, 64} }, |
| 4982 | .block_erase = spi_block_erase_d8, |
| 4983 | }, { |
| 4984 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4985 | .block_erase = spi_block_erase_60, |
| 4986 | }, { |
| 4987 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4988 | .block_erase = spi_block_erase_c7, |
| 4989 | } |
| 4990 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4991 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4992 | .unlock = spi_disable_blockprotect, |
| 4993 | .write = spi_chip_write_256, |
| 4994 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4995 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4996 | }, |
| 4997 | |
| 4998 | { |
| 4999 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5000 | .name = "EN25Q40", |
| 5001 | .bustype = BUS_SPI, |
| 5002 | .manufacture_id = EON_ID_NOPREFIX, |
| 5003 | .model_id = EON_EN25Q40, |
| 5004 | .total_size = 512, |
| 5005 | .page_size = 256, |
| 5006 | /* OTP: 256B total; enter 0x3A */ |
| 5007 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5008 | .tested = TEST_UNTESTED, |
| 5009 | .probe = probe_spi_rdid, |
| 5010 | .probe_timing = TIMING_ZERO, |
| 5011 | .block_erasers = |
| 5012 | { |
| 5013 | { |
| 5014 | .eraseblocks = { {4 * 1024, 128} }, |
| 5015 | .block_erase = spi_block_erase_20, |
| 5016 | }, { |
| 5017 | .eraseblocks = { {64 * 1024, 8} }, |
| 5018 | .block_erase = spi_block_erase_d8, |
| 5019 | }, { |
| 5020 | .eraseblocks = { {512 * 1024, 1} }, |
| 5021 | .block_erase = spi_block_erase_60, |
| 5022 | }, { |
| 5023 | .eraseblocks = { {512 * 1024, 1} }, |
| 5024 | .block_erase = spi_block_erase_c7, |
| 5025 | } |
| 5026 | }, |
| 5027 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 5028 | .unlock = spi_disable_blockprotect, |
| 5029 | .write = spi_chip_write_256, |
| 5030 | .read = spi_chip_read, |
| 5031 | .voltage = {2700, 3600}, |
| 5032 | }, |
| 5033 | |
| 5034 | { |
| 5035 | .vendor = "Eon", |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5036 | .name = "EN25Q64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5037 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5038 | .manufacture_id = EON_ID_NOPREFIX, |
| 5039 | .model_id = EON_EN25Q64, |
| 5040 | .total_size = 8192, |
| 5041 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 5042 | /* OTP: 512B total; enter 0x3A */ |
| 5043 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5044 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5045 | .probe = probe_spi_rdid, |
| 5046 | .probe_timing = TIMING_ZERO, |
| 5047 | .block_erasers = |
| 5048 | { |
| 5049 | { |
| 5050 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5051 | .block_erase = spi_block_erase_20, |
| 5052 | }, { |
| 5053 | .eraseblocks = { {64 * 1024, 128} }, |
| 5054 | .block_erase = spi_block_erase_d8, |
| 5055 | }, { |
| 5056 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5057 | .block_erase = spi_block_erase_60, |
| 5058 | }, { |
| 5059 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5060 | .block_erase = spi_block_erase_c7, |
| 5061 | } |
| 5062 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 5063 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5064 | .unlock = spi_disable_blockprotect, |
| 5065 | .write = spi_chip_write_256, |
| 5066 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 5067 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5068 | }, |
| 5069 | |
| 5070 | { |
| 5071 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5072 | .name = "EN25Q80(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5073 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5074 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5075 | .model_id = EON_EN25Q80, |
| 5076 | .total_size = 1024, |
| 5077 | .page_size = 256, |
| 5078 | /* OTP: 256B total; enter 0x3A */ |
| 5079 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5080 | .tested = TEST_UNTESTED, |
| 5081 | .probe = probe_spi_rdid, |
| 5082 | .probe_timing = TIMING_ZERO, |
| 5083 | .block_erasers = |
| 5084 | { |
| 5085 | { |
| 5086 | .eraseblocks = { {4 * 1024, 256} }, |
| 5087 | .block_erase = spi_block_erase_20, |
| 5088 | }, { |
| 5089 | .eraseblocks = { {64 * 1024, 16} }, |
| 5090 | .block_erase = spi_block_erase_d8, |
| 5091 | }, { |
| 5092 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5093 | .block_erase = spi_block_erase_60, |
| 5094 | }, { |
| 5095 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5096 | .block_erase = spi_block_erase_c7, |
| 5097 | } |
| 5098 | }, |
| 5099 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 5100 | .unlock = spi_disable_blockprotect, |
| 5101 | .write = spi_chip_write_256, |
| 5102 | .read = spi_chip_read, |
| 5103 | .voltage = {2700, 3600}, |
| 5104 | }, |
| 5105 | |
| 5106 | { |
| 5107 | .vendor = "Eon", |
| 5108 | .name = "EN25QH128", |
| 5109 | .bustype = BUS_SPI, |
| 5110 | .manufacture_id = EON_ID_NOPREFIX, |
| 5111 | .model_id = EON_EN25QH128, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5112 | .total_size = 16384, |
| 5113 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5114 | /* supports SFDP */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 5115 | /* OTP: 512B total; enter 0x3A */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5116 | /* QPI enable 0x38, disable 0xFF */ |
| 5117 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Tim Chen | bfe149a | 2020-07-06 14:59:21 +0800 | [diff] [blame] | 5118 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5119 | .probe = probe_spi_rdid, |
| 5120 | .probe_timing = TIMING_ZERO, |
| 5121 | .block_erasers = |
| 5122 | { |
| 5123 | { |
| 5124 | .eraseblocks = { {4 * 1024, 4096} }, |
| 5125 | .block_erase = spi_block_erase_20, |
| 5126 | }, { |
| 5127 | .eraseblocks = { {64 * 1024, 256} }, |
| 5128 | .block_erase = spi_block_erase_d8, |
| 5129 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5130 | .eraseblocks = { { 16384 * 1024, 1} }, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5131 | .block_erase = spi_block_erase_60, |
| 5132 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5133 | .eraseblocks = { { 16384 * 1024, 1} }, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5134 | .block_erase = spi_block_erase_c7, |
| 5135 | } |
| 5136 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5137 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 5138 | .unlock = spi_disable_blockprotect_bp3_srwd, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5139 | .write = spi_chip_write_256, |
| 5140 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5141 | .voltage = {2700, 3600}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 5142 | .reg_bits = |
| 5143 | { |
| 5144 | .srp = {STATUS1, 7, RW}, |
| 5145 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 5146 | .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */ |
| 5147 | }, |
| 5148 | .decode_range = decode_range_spi25, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5149 | }, |
| 5150 | |
| 5151 | { |
| 5152 | .vendor = "Eon", |
| 5153 | .name = "EN25QH16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5154 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5155 | .manufacture_id = EON_ID_NOPREFIX, |
| 5156 | .model_id = EON_EN25QH16, |
| 5157 | .total_size = 2048, |
| 5158 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 5159 | /* supports SFDP */ |
| 5160 | /* OTP: 512B total; enter 0x3A */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5161 | /* QPI enable 0x38, disable 0xFF */ |
| 5162 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 5163 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5164 | .probe = probe_spi_rdid, |
| 5165 | .probe_timing = TIMING_ZERO, |
| 5166 | .block_erasers = |
| 5167 | { |
| 5168 | { |
| 5169 | .eraseblocks = { {4 * 1024, 512} }, |
| 5170 | .block_erase = spi_block_erase_20, |
| 5171 | }, { |
| 5172 | .eraseblocks = { {64 * 1024, 32} }, |
| 5173 | .block_erase = spi_block_erase_d8, |
| 5174 | }, { |
| 5175 | .eraseblocks = { {1024 * 2048, 1} }, |
| 5176 | .block_erase = spi_block_erase_60, |
| 5177 | }, { |
| 5178 | .eraseblocks = { {1024 * 2048, 1} }, |
| 5179 | .block_erase = spi_block_erase_c7, |
| 5180 | } |
| 5181 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5182 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5183 | .unlock = spi_disable_blockprotect_bp3_srwd, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5184 | .write = spi_chip_write_256, |
| 5185 | .read = spi_chip_read, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 5186 | .voltage = {2700, 3600}, |
| 5187 | }, |
| 5188 | |
| 5189 | { |
| 5190 | .vendor = "Eon", |
| 5191 | .name = "EN25QH32", |
| 5192 | .bustype = BUS_SPI, |
| 5193 | .manufacture_id = EON_ID_NOPREFIX, |
| 5194 | .model_id = EON_EN25QH32, |
| 5195 | .total_size = 4096, |
| 5196 | .page_size = 256, |
| 5197 | /* supports SFDP */ |
| 5198 | /* OTP: 512B total; enter 0x3A */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5199 | /* QPI enable 0x38, disable 0xFF */ |
| 5200 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 5201 | .tested = TEST_OK_PREW, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 5202 | .probe = probe_spi_rdid, |
| 5203 | .probe_timing = TIMING_ZERO, |
| 5204 | .block_erasers = |
| 5205 | { |
| 5206 | { |
| 5207 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5208 | .block_erase = spi_block_erase_20, |
| 5209 | }, { |
| 5210 | .eraseblocks = { {64 * 1024, 64} }, |
| 5211 | .block_erase = spi_block_erase_d8, |
| 5212 | }, { |
| 5213 | .eraseblocks = { {1024 * 4096, 1} }, |
| 5214 | .block_erase = spi_block_erase_60, |
| 5215 | }, { |
| 5216 | .eraseblocks = { {1024 * 4096, 1} }, |
| 5217 | .block_erase = spi_block_erase_c7, |
| 5218 | } |
| 5219 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5220 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5221 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5222 | .write = spi_chip_write_256, |
| 5223 | .read = spi_chip_read, |
| 5224 | .voltage = {2700, 3600}, |
Sergii Dmytruk | c6e8b1a | 2022-08-14 20:57:48 +0300 | [diff] [blame] | 5225 | .reg_bits = |
| 5226 | { |
| 5227 | .srp = {STATUS1, 7, RW}, |
| 5228 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 5229 | .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */ |
| 5230 | }, |
| 5231 | .decode_range = decode_range_spi25, |
| 5232 | }, |
| 5233 | |
| 5234 | { |
| 5235 | .vendor = "Eon", |
| 5236 | .name = "EN25QH32B", |
| 5237 | .bustype = BUS_SPI, |
| 5238 | .manufacture_id = EON_ID_NOPREFIX, |
| 5239 | .model_id = EON_EN25QH32, |
| 5240 | .total_size = 4096, |
| 5241 | .page_size = 256, |
| 5242 | /* supports SFDP */ |
| 5243 | /* OTP: 1536B total; enter 0x3A */ |
| 5244 | /* QPI enable 0x38, disable 0xFF */ |
| 5245 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 5246 | .tested = TEST_OK_PREW, |
| 5247 | .probe = probe_spi_rdid, |
| 5248 | .probe_timing = TIMING_ZERO, |
| 5249 | .block_erasers = |
| 5250 | { |
| 5251 | { |
| 5252 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5253 | .block_erase = spi_block_erase_20, |
| 5254 | }, { |
| 5255 | .eraseblocks = { {32 * 1024, 128} }, |
| 5256 | .block_erase = spi_block_erase_52, |
| 5257 | }, { |
| 5258 | .eraseblocks = { {64 * 1024, 64} }, |
| 5259 | .block_erase = spi_block_erase_d8, |
| 5260 | }, { |
| 5261 | .eraseblocks = { {1024 * 4096, 1} }, |
| 5262 | .block_erase = spi_block_erase_60, |
| 5263 | }, { |
| 5264 | .eraseblocks = { {1024 * 4096, 1} }, |
| 5265 | .block_erase = spi_block_erase_c7, |
| 5266 | } |
| 5267 | }, |
| 5268 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 5269 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5270 | .write = spi_chip_write_256, |
| 5271 | .read = spi_chip_read, |
| 5272 | .voltage = {2700, 3600}, |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5273 | }, |
| 5274 | |
| 5275 | { |
| 5276 | .vendor = "Eon", |
| 5277 | .name = "EN25QH64", |
| 5278 | .bustype = BUS_SPI, |
| 5279 | .manufacture_id = EON_ID_NOPREFIX, |
| 5280 | .model_id = EON_EN25QH64, |
| 5281 | .total_size = 8192, |
| 5282 | .page_size = 256, |
| 5283 | /* supports SFDP */ |
| 5284 | /* OTP: 512B total; enter 0x3A */ |
| 5285 | /* QPI enable 0x38, disable 0xFF */ |
| 5286 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 5287 | .tested = TEST_OK_PREW, |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5288 | .probe = probe_spi_rdid, |
| 5289 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5290 | .block_erasers = |
| 5291 | { |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5292 | { |
| 5293 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5294 | .block_erase = spi_block_erase_20, |
| 5295 | }, { |
| 5296 | .eraseblocks = { {64 * 1024, 128} }, |
| 5297 | .block_erase = spi_block_erase_d8, |
| 5298 | }, { |
| 5299 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 5300 | .block_erase = spi_block_erase_60, |
| 5301 | }, { |
| 5302 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 5303 | .block_erase = spi_block_erase_c7, |
| 5304 | } |
| 5305 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5306 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5307 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5308 | .write = spi_chip_write_256, |
| 5309 | .read = spi_chip_read, |
| 5310 | .voltage = {2700, 3600}, |
Sergii Dmytruk | c6e8b1a | 2022-08-14 20:57:48 +0300 | [diff] [blame] | 5311 | .reg_bits = |
| 5312 | { |
| 5313 | .srp = {STATUS1, 7, RW}, |
| 5314 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 5315 | .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */ |
| 5316 | }, |
| 5317 | .decode_range = decode_range_spi25_64k_block, |
| 5318 | }, |
| 5319 | |
| 5320 | { |
| 5321 | .vendor = "Eon", |
| 5322 | .name = "EN25QH64A", |
| 5323 | .bustype = BUS_SPI, |
| 5324 | .manufacture_id = EON_ID_NOPREFIX, |
| 5325 | .model_id = EON_EN25QH64, |
| 5326 | .total_size = 8192, |
| 5327 | .page_size = 256, |
| 5328 | /* supports SFDP */ |
| 5329 | /* OTP: 512B total; enter 0x3A */ |
| 5330 | /* QPI enable 0x38, disable 0xFF */ |
| 5331 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 5332 | .tested = TEST_OK_PREW, |
| 5333 | .probe = probe_spi_rdid, |
| 5334 | .probe_timing = TIMING_ZERO, |
| 5335 | .block_erasers = |
| 5336 | { |
| 5337 | { |
| 5338 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5339 | .block_erase = spi_block_erase_20, |
| 5340 | }, { |
| 5341 | .eraseblocks = { {32 * 1024, 256} }, |
| 5342 | .block_erase = spi_block_erase_52, |
| 5343 | }, { |
| 5344 | .eraseblocks = { {64 * 1024, 128} }, |
| 5345 | .block_erase = spi_block_erase_d8, |
| 5346 | }, { |
| 5347 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 5348 | .block_erase = spi_block_erase_60, |
| 5349 | }, { |
| 5350 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 5351 | .block_erase = spi_block_erase_c7, |
| 5352 | } |
| 5353 | }, |
| 5354 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 5355 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5356 | .write = spi_chip_write_256, |
| 5357 | .read = spi_chip_read, |
| 5358 | .voltage = {2700, 3600}, |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5359 | }, |
| 5360 | |
| 5361 | { |
| 5362 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5363 | .name = "EN25S10", |
| 5364 | .bustype = BUS_SPI, |
| 5365 | .manufacture_id = EON_ID_NOPREFIX, |
| 5366 | .model_id = EON_EN25S10, |
| 5367 | .total_size = 128, |
| 5368 | .page_size = 256, |
| 5369 | /* OTP: 256B total; enter 0x3A */ |
| 5370 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5371 | .tested = TEST_UNTESTED, |
| 5372 | .probe = probe_spi_rdid, |
| 5373 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5374 | .block_erasers = |
| 5375 | { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5376 | { |
| 5377 | .eraseblocks = { {4 * 1024, 32} }, |
| 5378 | .block_erase = spi_block_erase_20, |
| 5379 | }, { |
| 5380 | .eraseblocks = { {32 * 1024, 4} }, |
| 5381 | .block_erase = spi_block_erase_52, |
| 5382 | }, { |
| 5383 | .eraseblocks = { {128 * 1024, 1} }, |
| 5384 | .block_erase = spi_block_erase_60, |
| 5385 | }, { |
| 5386 | .eraseblocks = { {128 * 1024, 1} }, |
| 5387 | .block_erase = spi_block_erase_c7, |
| 5388 | } |
| 5389 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5390 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5391 | .unlock = spi_disable_blockprotect, |
| 5392 | .write = spi_chip_write_256, |
| 5393 | .read = spi_chip_read, |
| 5394 | .voltage = {1650, 1950}, |
| 5395 | }, |
| 5396 | |
| 5397 | { |
| 5398 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5399 | .name = "EN25S16", |
| 5400 | .bustype = BUS_SPI, |
| 5401 | .manufacture_id = EON_ID_NOPREFIX, |
| 5402 | .model_id = EON_EN25S16, |
| 5403 | .total_size = 2048, |
| 5404 | .page_size = 256, |
| 5405 | /* OTP: 512B total; enter 0x3A */ |
| 5406 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 5407 | .tested = TEST_UNTESTED, |
| 5408 | .probe = probe_spi_rdid, |
| 5409 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5410 | .block_erasers = |
| 5411 | { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5412 | { |
| 5413 | .eraseblocks = { {4 * 1024, 512} }, |
| 5414 | .block_erase = spi_block_erase_20, |
| 5415 | }, { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5416 | .eraseblocks = { {32 * 1024, 64} }, |
| 5417 | .block_erase = spi_block_erase_d8, |
| 5418 | }, { |
Aarya Chaumal | 478e179 | 2022-06-04 01:34:44 +0530 | [diff] [blame] | 5419 | .eraseblocks = { {64 * 1024, 32} }, |
| 5420 | .block_erase = spi_block_erase_52, |
| 5421 | }, { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5422 | .eraseblocks = { {2048 * 1024, 1} }, |
| 5423 | .block_erase = spi_block_erase_60, |
| 5424 | }, { |
| 5425 | .eraseblocks = { {2048 * 1024, 1} }, |
| 5426 | .block_erase = spi_block_erase_c7, |
| 5427 | } |
| 5428 | }, |
| 5429 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 5430 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5431 | .write = spi_chip_write_256, |
| 5432 | .read = spi_chip_read, |
| 5433 | .voltage = {1650, 1950}, |
| 5434 | }, |
| 5435 | |
| 5436 | { |
| 5437 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5438 | .name = "EN25S20", |
| 5439 | .bustype = BUS_SPI, |
| 5440 | .manufacture_id = EON_ID_NOPREFIX, |
| 5441 | .model_id = EON_EN25S20, |
| 5442 | .total_size = 256, |
| 5443 | .page_size = 256, |
| 5444 | /* OTP: 256B total; enter 0x3A */ |
| 5445 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5446 | .tested = TEST_UNTESTED, |
| 5447 | .probe = probe_spi_rdid, |
| 5448 | .probe_timing = TIMING_ZERO, |
| 5449 | .block_erasers = |
| 5450 | { |
| 5451 | { |
| 5452 | .eraseblocks = { {4 * 1024, 64} }, |
| 5453 | .block_erase = spi_block_erase_20, |
| 5454 | }, { |
| 5455 | .eraseblocks = { {64 * 1024, 4} }, |
| 5456 | .block_erase = spi_block_erase_d8, |
| 5457 | }, { |
| 5458 | .eraseblocks = { {256 * 1024, 1} }, |
| 5459 | .block_erase = spi_block_erase_60, |
| 5460 | }, { |
| 5461 | .eraseblocks = { {256 * 1024, 1} }, |
| 5462 | .block_erase = spi_block_erase_c7, |
| 5463 | } |
| 5464 | }, |
| 5465 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 5466 | .unlock = spi_disable_blockprotect, |
| 5467 | .write = spi_chip_write_256, |
| 5468 | .read = spi_chip_read, |
| 5469 | .voltage = {1650, 1950}, |
| 5470 | }, |
| 5471 | |
| 5472 | { |
| 5473 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5474 | .name = "EN25S32", |
| 5475 | .bustype = BUS_SPI, |
| 5476 | .manufacture_id = EON_ID_NOPREFIX, |
| 5477 | .model_id = EON_EN25S32, |
| 5478 | .total_size = 4096, |
| 5479 | .page_size = 256, |
| 5480 | /* OTP: 512B total; enter 0x3A */ |
| 5481 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 5482 | .tested = TEST_UNTESTED, |
| 5483 | .probe = probe_spi_rdid, |
| 5484 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5485 | .block_erasers = |
| 5486 | { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5487 | { |
| 5488 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5489 | .block_erase = spi_block_erase_20, |
| 5490 | }, { |
| 5491 | .eraseblocks = { {32 * 1024, 128} }, |
| 5492 | .block_erase = spi_block_erase_52, |
| 5493 | }, { |
| 5494 | .eraseblocks = { {64 * 1024, 64} }, |
| 5495 | .block_erase = spi_block_erase_d8, |
| 5496 | }, { |
| 5497 | .eraseblocks = { {4096 * 1024, 1} }, |
| 5498 | .block_erase = spi_block_erase_60, |
| 5499 | }, { |
| 5500 | .eraseblocks = { {4096 * 1024, 1} }, |
| 5501 | .block_erase = spi_block_erase_c7, |
| 5502 | } |
| 5503 | }, |
| 5504 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 5505 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5506 | .write = spi_chip_write_256, |
| 5507 | .read = spi_chip_read, |
| 5508 | .voltage = {1650, 1950}, |
| 5509 | }, |
| 5510 | |
| 5511 | { |
| 5512 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5513 | .name = "EN25S40", |
| 5514 | .bustype = BUS_SPI, |
| 5515 | .manufacture_id = EON_ID_NOPREFIX, |
| 5516 | .model_id = EON_EN25S40, |
| 5517 | .total_size = 512, |
| 5518 | .page_size = 256, |
| 5519 | /* OTP: 256B total; enter 0x3A */ |
| 5520 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5521 | .tested = TEST_OK_PREW, |
| 5522 | .probe = probe_spi_rdid, |
| 5523 | .probe_timing = TIMING_ZERO, |
| 5524 | .block_erasers = |
| 5525 | { |
| 5526 | { |
| 5527 | .eraseblocks = { {4 * 1024, 128} }, |
| 5528 | .block_erase = spi_block_erase_20, |
| 5529 | }, { |
| 5530 | .eraseblocks = { {64 * 1024, 8} }, |
| 5531 | .block_erase = spi_block_erase_d8, |
| 5532 | }, { |
| 5533 | .eraseblocks = { {512 * 1024, 1} }, |
| 5534 | .block_erase = spi_block_erase_60, |
| 5535 | }, { |
| 5536 | .eraseblocks = { {512 * 1024, 1} }, |
| 5537 | .block_erase = spi_block_erase_c7, |
| 5538 | } |
| 5539 | }, |
| 5540 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 5541 | .unlock = spi_disable_blockprotect, |
| 5542 | .write = spi_chip_write_256, |
| 5543 | .read = spi_chip_read, |
| 5544 | .voltage = {1650, 1950}, |
| 5545 | }, |
| 5546 | |
| 5547 | { |
| 5548 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5549 | .name = "EN25S64", |
| 5550 | .bustype = BUS_SPI, |
| 5551 | .manufacture_id = EON_ID_NOPREFIX, |
| 5552 | .model_id = EON_EN25S64, |
| 5553 | .total_size = 8192, |
| 5554 | .page_size = 256, |
| 5555 | /* OTP: 512B total; enter 0x3A */ |
| 5556 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Nikolai Artemiev | df889fa | 2021-03-23 17:10:45 +1100 | [diff] [blame] | 5557 | .tested = TEST_OK_PREW, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5558 | .probe = probe_spi_rdid, |
| 5559 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5560 | .block_erasers = |
| 5561 | { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5562 | { |
| 5563 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5564 | .block_erase = spi_block_erase_20, |
| 5565 | }, { |
| 5566 | .eraseblocks = { {64 * 1024, 128} }, |
| 5567 | .block_erase = spi_block_erase_d8, |
| 5568 | }, { |
| 5569 | .eraseblocks = { {8192 * 1024, 1} }, |
| 5570 | .block_erase = spi_block_erase_60, |
| 5571 | }, { |
| 5572 | .eraseblocks = { {8192 * 1024, 1} }, |
| 5573 | .block_erase = spi_block_erase_c7, |
| 5574 | } |
| 5575 | }, |
| 5576 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 5577 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5578 | .write = spi_chip_write_256, |
| 5579 | .read = spi_chip_read, |
| 5580 | .voltage = {1650, 1950}, |
| 5581 | }, |
| 5582 | |
| 5583 | { |
| 5584 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5585 | .name = "EN25S80", |
| 5586 | .bustype = BUS_SPI, |
| 5587 | .manufacture_id = EON_ID_NOPREFIX, |
| 5588 | .model_id = EON_EN25S80, |
| 5589 | .total_size = 1024, |
| 5590 | .page_size = 256, |
| 5591 | /* OTP: 256B total; enter 0x3A */ |
| 5592 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5593 | .tested = TEST_UNTESTED, |
| 5594 | .probe = probe_spi_rdid, |
| 5595 | .probe_timing = TIMING_ZERO, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5596 | .block_erasers = |
| 5597 | { |
| 5598 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5599 | .eraseblocks = { {4 * 1024, 256} }, |
| 5600 | .block_erase = spi_block_erase_20, |
| 5601 | }, { |
| 5602 | .eraseblocks = { {64 * 1024, 16} }, |
| 5603 | .block_erase = spi_block_erase_d8, |
| 5604 | }, { |
| 5605 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5606 | .block_erase = spi_block_erase_60, |
| 5607 | }, { |
| 5608 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5609 | .block_erase = spi_block_erase_c7, |
| 5610 | } |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5611 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5612 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 5613 | .unlock = spi_disable_blockprotect, |
| 5614 | .write = spi_chip_write_256, |
| 5615 | .read = spi_chip_read, |
| 5616 | .voltage = {1650, 1950}, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5617 | }, |
| 5618 | |
| 5619 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 5620 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5621 | .name = "EN29F002(A)(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5622 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5623 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5624 | .model_id = EON_EN29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5625 | .total_size = 256, |
| 5626 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5627 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Alan Green | 4362e62 | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 5628 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5629 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5630 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5631 | .block_erasers = |
| 5632 | { |
| 5633 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5634 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5635 | {16 * 1024, 1}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 5636 | {8 * 1024, 2}, |
| 5637 | {32 * 1024, 1}, |
| 5638 | {64 * 1024, 3}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5639 | }, |
| 5640 | .block_erase = erase_sector_jedec, |
| 5641 | }, { |
| 5642 | .eraseblocks = { {256 * 1024, 1} }, |
| 5643 | .block_erase = erase_chip_block_jedec, |
| 5644 | }, |
| 5645 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 5646 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5647 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5648 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5649 | }, |
| 5650 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5651 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 5652 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5653 | .name = "EN29F002(A)(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5654 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5655 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5656 | .model_id = EON_EN29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5657 | .total_size = 256, |
| 5658 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5659 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 5660 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5661 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5662 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5663 | .block_erasers = |
| 5664 | { |
| 5665 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5666 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5667 | {64 * 1024, 3}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 5668 | {32 * 1024, 1}, |
| 5669 | {8 * 1024, 2}, |
| 5670 | {16 * 1024, 1}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5671 | }, |
| 5672 | .block_erase = erase_sector_jedec, |
| 5673 | }, { |
| 5674 | .eraseblocks = { {256 * 1024, 1} }, |
| 5675 | .block_erase = erase_chip_block_jedec, |
| 5676 | }, |
| 5677 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 5678 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5679 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5680 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5681 | }, |
| 5682 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5683 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5684 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5685 | .name = "EN29F010", |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5686 | .bustype = BUS_PARALLEL, |
| 5687 | .manufacture_id = EON_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5688 | .model_id = EON_EN29F010, |
| 5689 | .total_size = 128, |
| 5690 | .page_size = 128, |
| 5691 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 5692 | .tested = TEST_OK_PRE, |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5693 | .probe = probe_jedec, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5694 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5695 | .block_erasers = |
| 5696 | { |
| 5697 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5698 | .eraseblocks = { {16 * 1024, 8} }, |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5699 | .block_erase = erase_sector_jedec, |
| 5700 | }, |
| 5701 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5702 | .eraseblocks = { {128 * 1024, 1} }, |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5703 | .block_erase = erase_chip_block_jedec, |
| 5704 | }, |
| 5705 | }, |
| 5706 | .write = write_jedec_1, |
| 5707 | .read = read_memmapped, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5708 | .voltage = {4500, 5500}, |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5709 | }, |
| 5710 | |
| 5711 | { |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 5712 | .vendor = "Eon", |
| 5713 | .name = "EN29GL064(A)B", |
| 5714 | .bustype = BUS_PARALLEL, |
| 5715 | .manufacture_id = EON_ID, |
| 5716 | .model_id = EON_EN29GL064B, |
| 5717 | .total_size = 8192, |
| 5718 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5719 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5720 | .tested = TEST_UNTESTED, |
| 5721 | .probe = probe_jedec_29gl, |
| 5722 | .probe_timing = TIMING_ZERO, |
| 5723 | .block_erasers = |
| 5724 | { |
| 5725 | { |
| 5726 | .eraseblocks = { |
| 5727 | {8 * 1024, 8}, |
| 5728 | {64 * 1024, 127}, |
| 5729 | }, |
| 5730 | .block_erase = erase_sector_jedec, |
| 5731 | }, { |
| 5732 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5733 | .block_erase = erase_chip_block_jedec, |
| 5734 | }, |
| 5735 | }, |
| 5736 | .write = write_jedec_1, |
| 5737 | .read = read_memmapped, |
| 5738 | .voltage = {2700, 3600}, |
| 5739 | }, |
| 5740 | |
| 5741 | { |
| 5742 | .vendor = "Eon", |
| 5743 | .name = "EN29GL064(A)T", |
| 5744 | .bustype = BUS_PARALLEL, |
| 5745 | .manufacture_id = EON_ID, |
| 5746 | .model_id = EON_EN29GL064T, |
| 5747 | .total_size = 8192, |
| 5748 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5749 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5750 | .tested = TEST_UNTESTED, |
| 5751 | .probe = probe_jedec_29gl, |
| 5752 | .probe_timing = TIMING_ZERO, |
| 5753 | .block_erasers = |
| 5754 | { |
| 5755 | { |
| 5756 | .eraseblocks = { |
| 5757 | {64 * 1024, 127}, |
| 5758 | {8 * 1024, 8}, |
| 5759 | }, |
| 5760 | .block_erase = erase_sector_jedec, |
| 5761 | }, { |
| 5762 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5763 | .block_erase = erase_chip_block_jedec, |
| 5764 | }, |
| 5765 | }, |
| 5766 | .write = write_jedec_1, |
| 5767 | .read = read_memmapped, |
| 5768 | .voltage = {2700, 3600}, |
| 5769 | }, |
| 5770 | |
| 5771 | { |
| 5772 | .vendor = "Eon", |
| 5773 | .name = "EN29GL064H/L", |
| 5774 | .bustype = BUS_PARALLEL, |
| 5775 | .manufacture_id = EON_ID, |
| 5776 | .model_id = EON_EN29GL064HL, |
| 5777 | .total_size = 8192, |
| 5778 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5779 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5780 | .tested = TEST_UNTESTED, |
| 5781 | .probe = probe_jedec_29gl, |
| 5782 | .probe_timing = TIMING_ZERO, |
| 5783 | .block_erasers = |
| 5784 | { |
| 5785 | { |
| 5786 | .eraseblocks = { {64 * 1024, 128} }, |
| 5787 | .block_erase = erase_sector_jedec, |
| 5788 | }, { |
| 5789 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5790 | .block_erase = erase_chip_block_jedec, |
| 5791 | }, |
| 5792 | }, |
| 5793 | .write = write_jedec_1, |
| 5794 | .read = read_memmapped, |
| 5795 | .voltage = {2700, 3600}, |
| 5796 | }, |
| 5797 | |
| 5798 | { |
| 5799 | .vendor = "Eon", |
| 5800 | .name = "EN29GL128", |
| 5801 | .bustype = BUS_PARALLEL, |
| 5802 | .manufacture_id = EON_ID, |
| 5803 | .model_id = EON_EN29GL128HL, |
| 5804 | .total_size = 16384, |
| 5805 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5806 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5807 | .tested = TEST_UNTESTED, |
| 5808 | .probe = probe_jedec_29gl, |
| 5809 | .probe_timing = TIMING_ZERO, |
| 5810 | .block_erasers = |
| 5811 | { |
| 5812 | { |
| 5813 | .eraseblocks = { {128 * 1024, 128} }, |
| 5814 | .block_erase = erase_sector_jedec, |
| 5815 | }, { |
| 5816 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 5817 | .block_erase = erase_chip_block_jedec, |
| 5818 | }, |
| 5819 | }, |
| 5820 | .write = write_jedec_1, |
| 5821 | .read = read_memmapped, |
| 5822 | .voltage = {2700, 3600}, |
| 5823 | }, |
| 5824 | |
| 5825 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5826 | .vendor = "Eon", |
| 5827 | .name = "EN29LV040(A)", |
| 5828 | .bustype = BUS_PARALLEL, |
| 5829 | .manufacture_id = EON_ID, |
| 5830 | .model_id = EON_EN29LV040, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5831 | .total_size = 512, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5832 | .page_size = 4 * 1024, |
| 5833 | .tested = TEST_OK_PREW, |
| 5834 | .probe = probe_jedec, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5835 | .probe_timing = TIMING_ZERO, |
| 5836 | .block_erasers = |
| 5837 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 5838 | { |
| 5839 | .eraseblocks = { {64 * 1024, 8} }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5840 | .block_erase = erase_sector_jedec, |
| 5841 | }, |
| 5842 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 5843 | .eraseblocks = { {512 * 1024, 1} }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5844 | .block_erase = erase_chip_block_jedec, |
| 5845 | }, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5846 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5847 | .write = write_jedec_1, |
| 5848 | .read = read_memmapped, |
| 5849 | .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] | 5850 | }, |
| 5851 | |
| 5852 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5853 | .vendor = "Eon", |
| 5854 | .name = "EN29LV640B", |
| 5855 | .bustype = BUS_PARALLEL, |
| 5856 | .manufacture_id = EON_ID, |
| 5857 | .model_id = EON_EN29LV640B, |
| 5858 | .total_size = 8192, |
| 5859 | .page_size = 8192, |
| 5860 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 5861 | .tested = TEST_OK_PREW, |
| 5862 | .probe = probe_en29lv640b, |
| 5863 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5864 | .block_erasers = |
| 5865 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 5866 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5867 | .eraseblocks = { |
| 5868 | {8 * 1024, 8}, |
| 5869 | {64 * 1024, 127}, |
| 5870 | }, |
| 5871 | .block_erase = erase_block_jedec, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 5872 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5873 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5874 | .block_erase = erase_chip_block_jedec, |
| 5875 | }, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5876 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5877 | .write = write_en29lv640b, |
| 5878 | .read = read_memmapped, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5879 | .voltage = {2700, 3600}, |
| 5880 | }, |
| 5881 | |
| 5882 | { |
Jakob Petersson | 0cf3e12 | 2019-02-18 01:55:43 +0100 | [diff] [blame] | 5883 | .vendor = "Fudan", |
| 5884 | .name = "FM25F005", |
| 5885 | .bustype = BUS_SPI, |
| 5886 | .manufacture_id = FUDAN_ID_NOPREFIX, |
| 5887 | .model_id = FUDAN_FM25F005, |
| 5888 | .total_size = 64, |
| 5889 | .page_size = 256, |
| 5890 | /* OTP: 256B total; enter 0x3A */ |
| 5891 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5892 | .tested = TEST_UNTESTED, |
| 5893 | .probe = probe_spi_rdid, |
| 5894 | .probe_timing = TIMING_ZERO, |
| 5895 | .block_erasers = { |
| 5896 | { |
| 5897 | .eraseblocks = { {4 * 1024, 16} }, |
| 5898 | .block_erase = spi_block_erase_20, |
| 5899 | }, { |
| 5900 | .eraseblocks = { {32 * 1024, 2} }, |
| 5901 | .block_erase = spi_block_erase_52, |
| 5902 | }, { |
| 5903 | .eraseblocks = { {64 * 1024, 1} }, |
| 5904 | .block_erase = spi_block_erase_d8, |
| 5905 | }, { |
| 5906 | .eraseblocks = { {64 * 1024, 1} }, |
| 5907 | .block_erase = spi_block_erase_60, |
| 5908 | }, { |
| 5909 | .eraseblocks = { {64 * 1024, 1} }, |
| 5910 | .block_erase = spi_block_erase_c7, |
| 5911 | } |
| 5912 | }, |
| 5913 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 5914 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 5915 | .write = spi_chip_write_256, |
| 5916 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 5917 | .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */ |
| 5918 | }, |
| 5919 | |
| 5920 | { |
| 5921 | .vendor = "Fudan", |
| 5922 | .name = "FM25F01", |
| 5923 | .bustype = BUS_SPI, |
| 5924 | .manufacture_id = FUDAN_ID_NOPREFIX, |
| 5925 | .model_id = FUDAN_FM25F01, |
| 5926 | .total_size = 128, |
| 5927 | .page_size = 256, |
| 5928 | /* OTP: 256B total; enter 0x3A */ |
| 5929 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5930 | .tested = TEST_UNTESTED, |
| 5931 | .probe = probe_spi_rdid, |
| 5932 | .probe_timing = TIMING_ZERO, |
| 5933 | .block_erasers = { |
| 5934 | { |
| 5935 | .eraseblocks = { {4 * 1024, 32} }, |
| 5936 | .block_erase = spi_block_erase_20, |
| 5937 | }, { |
| 5938 | .eraseblocks = { {32 * 1024, 4} }, |
| 5939 | .block_erase = spi_block_erase_52, |
| 5940 | }, { |
| 5941 | .eraseblocks = { {64 * 1024, 2} }, |
| 5942 | .block_erase = spi_block_erase_d8, |
| 5943 | }, { |
| 5944 | .eraseblocks = { {128 * 1024, 1} }, |
| 5945 | .block_erase = spi_block_erase_60, |
| 5946 | }, { |
| 5947 | .eraseblocks = { {128 * 1024, 1} }, |
| 5948 | .block_erase = spi_block_erase_c7, |
| 5949 | } |
| 5950 | }, |
| 5951 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 5952 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 5953 | .write = spi_chip_write_256, |
| 5954 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 5955 | .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */ |
| 5956 | }, |
| 5957 | |
| 5958 | { |
| 5959 | .vendor = "Fudan", |
| 5960 | .name = "FM25F02(A)", |
| 5961 | .bustype = BUS_SPI, |
| 5962 | .manufacture_id = FUDAN_ID_NOPREFIX, |
| 5963 | .model_id = FUDAN_FM25F02, |
| 5964 | .total_size = 256, |
| 5965 | .page_size = 256, |
| 5966 | /* OTP: 256B total; enter 0x3A, (A version only:) read ID 0x4B */ |
| 5967 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5968 | .tested = TEST_UNTESTED, |
| 5969 | .probe = probe_spi_rdid, |
| 5970 | .probe_timing = TIMING_ZERO, |
| 5971 | .block_erasers = { |
| 5972 | { |
| 5973 | .eraseblocks = { {4 * 1024, 64} }, |
| 5974 | .block_erase = spi_block_erase_20, |
| 5975 | }, { |
| 5976 | .eraseblocks = { {32 * 1024, 8} }, |
| 5977 | .block_erase = spi_block_erase_52, |
| 5978 | }, { |
| 5979 | .eraseblocks = { {64 * 1024, 4} }, |
| 5980 | .block_erase = spi_block_erase_d8, |
| 5981 | }, { |
| 5982 | .eraseblocks = { {1024 * 256, 1} }, |
| 5983 | .block_erase = spi_block_erase_60, |
| 5984 | }, { |
| 5985 | .eraseblocks = { {1024 * 256, 1} }, |
| 5986 | .block_erase = spi_block_erase_c7, |
| 5987 | }, |
| 5988 | }, |
| 5989 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 5990 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 5991 | .write = spi_chip_write_256, |
| 5992 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 5993 | .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */ |
| 5994 | }, |
| 5995 | |
| 5996 | { |
| 5997 | .vendor = "Fudan", |
| 5998 | .name = "FM25F04(A)", |
| 5999 | .bustype = BUS_SPI, |
| 6000 | .manufacture_id = FUDAN_ID_NOPREFIX, |
| 6001 | .model_id = FUDAN_FM25F04, |
| 6002 | .total_size = 512, |
| 6003 | .page_size = 256, |
| 6004 | /* OTP: 256B total; enter 0x3A, (A version only:) read ID 0x4B */ |
| 6005 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6006 | .tested = TEST_UNTESTED, |
| 6007 | .probe = probe_spi_rdid, |
| 6008 | .probe_timing = TIMING_ZERO, |
| 6009 | .block_erasers = { |
| 6010 | { |
| 6011 | .eraseblocks = { {4 * 1024, 128} }, |
| 6012 | .block_erase = spi_block_erase_20, |
| 6013 | }, { |
| 6014 | .eraseblocks = { {32 * 1024, 16} }, |
| 6015 | .block_erase = spi_block_erase_52, |
| 6016 | }, { |
| 6017 | .eraseblocks = { {64 * 1024, 8} }, |
| 6018 | .block_erase = spi_block_erase_d8, |
| 6019 | }, { |
| 6020 | .eraseblocks = { {1024 * 512, 1} }, |
| 6021 | .block_erase = spi_block_erase_60, |
| 6022 | }, { |
| 6023 | .eraseblocks = { {1024 * 512, 1} }, |
| 6024 | .block_erase = spi_block_erase_c7, |
| 6025 | }, |
| 6026 | }, |
| 6027 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 6028 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 6029 | .write = spi_chip_write_256, |
| 6030 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 6031 | .voltage = {2700, 3600}, |
| 6032 | }, |
| 6033 | |
| 6034 | { |
| 6035 | .vendor = "Fudan", |
| 6036 | .name = "FM25Q08", |
| 6037 | .bustype = BUS_SPI, |
| 6038 | .manufacture_id = FUDAN_ID_NOPREFIX, |
| 6039 | .model_id = FUDAN_FM25Q08, |
| 6040 | .total_size = 1024, |
| 6041 | .page_size = 256, |
| 6042 | /* supports SFDP */ |
| 6043 | /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 6044 | /* QPI enable 0x38, disable 0xFF */ |
| 6045 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6046 | .tested = TEST_UNTESTED, |
| 6047 | .probe = probe_spi_rdid, |
| 6048 | .probe_timing = TIMING_ZERO, |
| 6049 | .block_erasers = { |
| 6050 | { |
| 6051 | .eraseblocks = { {4 * 1024, 256} }, |
| 6052 | .block_erase = spi_block_erase_20, |
| 6053 | }, { |
| 6054 | .eraseblocks = { {32 * 1024, 32} }, |
| 6055 | .block_erase = spi_block_erase_52, |
| 6056 | }, { |
| 6057 | .eraseblocks = { {64 * 1024, 16} }, |
| 6058 | .block_erase = spi_block_erase_d8, |
| 6059 | }, { |
| 6060 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6061 | .block_erase = spi_block_erase_60, |
| 6062 | }, { |
| 6063 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6064 | .block_erase = spi_block_erase_c7, |
| 6065 | }, |
| 6066 | }, |
| 6067 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */ |
| 6068 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 6069 | .write = spi_chip_write_256, |
| 6070 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6071 | .voltage = {2700, 3600}, |
| 6072 | }, |
| 6073 | |
| 6074 | { |
| 6075 | .vendor = "Fudan", |
| 6076 | .name = "FM25Q16", |
| 6077 | .bustype = BUS_SPI, |
| 6078 | .manufacture_id = FUDAN_ID_NOPREFIX, |
| 6079 | .model_id = FUDAN_FM25Q16, |
| 6080 | .total_size = 2048, |
| 6081 | .page_size = 256, |
| 6082 | /* supports SFDP */ |
| 6083 | /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 6084 | /* QPI enable 0x38, disable 0xFF */ |
| 6085 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6086 | .tested = TEST_UNTESTED, |
| 6087 | .probe = probe_spi_rdid, |
| 6088 | .probe_timing = TIMING_ZERO, |
| 6089 | .block_erasers = { |
| 6090 | { |
| 6091 | .eraseblocks = { {4 * 1024, 512} }, |
| 6092 | .block_erase = spi_block_erase_20, |
| 6093 | }, { |
| 6094 | .eraseblocks = { {32 * 1024, 64} }, |
| 6095 | .block_erase = spi_block_erase_52, |
| 6096 | }, { |
| 6097 | .eraseblocks = { {64 * 1024, 32} }, |
| 6098 | .block_erase = spi_block_erase_d8, |
| 6099 | }, { |
| 6100 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6101 | .block_erase = spi_block_erase_60, |
| 6102 | }, { |
| 6103 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6104 | .block_erase = spi_block_erase_c7, |
| 6105 | } |
| 6106 | }, |
| 6107 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */ |
| 6108 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 6109 | .write = spi_chip_write_256, |
| 6110 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6111 | .voltage = {2700, 3600}, |
| 6112 | }, |
| 6113 | |
| 6114 | { |
| 6115 | .vendor = "Fudan", |
| 6116 | .name = "FM25Q32", |
| 6117 | .bustype = BUS_SPI, |
| 6118 | .manufacture_id = FUDAN_ID_NOPREFIX, |
| 6119 | .model_id = FUDAN_FM25Q32, |
| 6120 | .total_size = 4096, |
| 6121 | .page_size = 256, |
| 6122 | /* supports SFDP */ |
| 6123 | /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 6124 | /* QPI enable 0x38, disable 0xFF */ |
| 6125 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6126 | .tested = TEST_UNTESTED, |
| 6127 | .probe = probe_spi_rdid, |
| 6128 | .probe_timing = TIMING_ZERO, |
| 6129 | .block_erasers = { |
| 6130 | { |
| 6131 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6132 | .block_erase = spi_block_erase_20, |
| 6133 | }, { |
| 6134 | .eraseblocks = { {32 * 1024, 128} }, |
| 6135 | .block_erase = spi_block_erase_52, |
| 6136 | }, { |
| 6137 | .eraseblocks = { {64 * 1024, 64} }, |
| 6138 | .block_erase = spi_block_erase_d8, |
| 6139 | }, { |
| 6140 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6141 | .block_erase = spi_block_erase_60, |
| 6142 | }, { |
| 6143 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6144 | .block_erase = spi_block_erase_c7, |
| 6145 | }, |
| 6146 | }, |
| 6147 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */ |
| 6148 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 6149 | .write = spi_chip_write_256, |
| 6150 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6151 | .voltage = {2700, 3600}, |
| 6152 | }, |
| 6153 | |
| 6154 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6155 | .vendor = "Fujitsu", |
| 6156 | .name = "MBM29F004BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6157 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6158 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6159 | .model_id = FUJITSU_MBM29F004BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6160 | .total_size = 512, |
| 6161 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6162 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6163 | .tested = TEST_UNTESTED, |
| 6164 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6165 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6166 | .block_erasers = |
| 6167 | { |
| 6168 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6169 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6170 | {16 * 1024, 1}, |
| 6171 | {8 * 1024, 2}, |
| 6172 | {32 * 1024, 1}, |
| 6173 | {64 * 1024, 7}, |
| 6174 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6175 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6176 | }, { |
| 6177 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6178 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6179 | }, |
| 6180 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6181 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6182 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6183 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6184 | }, |
| 6185 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6186 | { |
| 6187 | .vendor = "Fujitsu", |
| 6188 | .name = "MBM29F004TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6189 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6190 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6191 | .model_id = FUJITSU_MBM29F004TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6192 | .total_size = 512, |
| 6193 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6194 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6195 | .tested = TEST_UNTESTED, |
| 6196 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6197 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6198 | .block_erasers = |
| 6199 | { |
| 6200 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6201 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6202 | {64 * 1024, 7}, |
| 6203 | {32 * 1024, 1}, |
| 6204 | {8 * 1024, 2}, |
| 6205 | {16 * 1024, 1}, |
| 6206 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6207 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6208 | }, { |
| 6209 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6210 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6211 | }, |
| 6212 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6213 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6214 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6215 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6216 | }, |
| 6217 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6218 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6219 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6220 | .vendor = "Fujitsu", |
| 6221 | .name = "MBM29F400BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6222 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6223 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6224 | .model_id = FUJITSU_MBM29F400BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6225 | .total_size = 512, |
| 6226 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6227 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 6228 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6229 | .probe = probe_jedec, |
| 6230 | .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] | 6231 | .block_erasers = |
| 6232 | { |
| 6233 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6234 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6235 | {16 * 1024, 1}, |
| 6236 | {8 * 1024, 2}, |
| 6237 | {32 * 1024, 1}, |
| 6238 | {64 * 1024, 7}, |
| 6239 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6240 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6241 | }, { |
| 6242 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6243 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6244 | }, |
| 6245 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6246 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6247 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6248 | .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] | 6249 | }, |
| 6250 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6251 | { |
| 6252 | .vendor = "Fujitsu", |
| 6253 | .name = "MBM29F400TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6254 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6255 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6256 | .model_id = FUJITSU_MBM29F400TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6257 | .total_size = 512, |
| 6258 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6259 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6260 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6261 | .probe = probe_jedec, |
| 6262 | .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] | 6263 | .block_erasers = |
| 6264 | { |
| 6265 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6266 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6267 | {64 * 1024, 7}, |
| 6268 | {32 * 1024, 1}, |
| 6269 | {8 * 1024, 2}, |
| 6270 | {16 * 1024, 1}, |
| 6271 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6272 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6273 | }, { |
| 6274 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6275 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6276 | }, |
| 6277 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6278 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6279 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6280 | .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] | 6281 | }, |
| 6282 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6283 | { |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6284 | .vendor = "Fujitsu", |
| 6285 | .name = "MBM29LV160BE", |
| 6286 | .bustype = BUS_PARALLEL, |
| 6287 | .manufacture_id = FUJITSU_ID, |
| 6288 | .model_id = FUJITSU_MBM29LV160BE, |
| 6289 | .total_size = 2 * 1024, |
| 6290 | .page_size = 0, |
| 6291 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET, |
| 6292 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6293 | .probe = probe_jedec, |
| 6294 | .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] | 6295 | .block_erasers = |
| 6296 | { |
| 6297 | { |
| 6298 | .eraseblocks = { |
| 6299 | {16 * 1024, 1}, |
| 6300 | {8 * 1024, 2}, |
| 6301 | {32 * 1024, 1}, |
| 6302 | {64 * 1024, 31}, |
| 6303 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6304 | .block_erase = erase_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6305 | }, { |
| 6306 | .eraseblocks = { {2048 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6307 | .block_erase = erase_chip_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6308 | }, |
| 6309 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6310 | .write = write_jedec_1, /* Supports a fast mode too */ |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6311 | .read = read_memmapped, |
| 6312 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */ |
| 6313 | }, |
| 6314 | |
| 6315 | { |
| 6316 | .vendor = "Fujitsu", |
| 6317 | .name = "MBM29LV160TE", |
| 6318 | .bustype = BUS_PARALLEL, |
| 6319 | .manufacture_id = FUJITSU_ID, |
| 6320 | .model_id = FUJITSU_MBM29LV160TE, |
| 6321 | .total_size = 2 * 1024, |
| 6322 | .page_size = 0, |
| 6323 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET, |
| 6324 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6325 | .probe = probe_jedec, |
| 6326 | .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] | 6327 | .block_erasers = |
| 6328 | { |
| 6329 | { |
| 6330 | .eraseblocks = { |
| 6331 | {64 * 1024, 31}, |
| 6332 | {32 * 1024, 1}, |
| 6333 | {8 * 1024, 2}, |
| 6334 | {16 * 1024, 1}, |
| 6335 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6336 | .block_erase = erase_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6337 | }, { |
| 6338 | .eraseblocks = { {2048 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6339 | .block_erase = erase_chip_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6340 | }, |
| 6341 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6342 | .write = write_jedec_1, /* Supports a fast mode too */ |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6343 | .read = read_memmapped, |
| 6344 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */ |
| 6345 | }, |
| 6346 | |
| 6347 | { |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6348 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6349 | .name = "GD25B128B/GD25Q128B", |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6350 | .bustype = BUS_SPI, |
| 6351 | .manufacture_id = GIGADEVICE_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6352 | .model_id = GIGADEVICE_GD25Q128, |
| 6353 | .total_size = 16384, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6354 | .page_size = 256, |
| 6355 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 6356 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6357 | .tested = TEST_OK_PREW, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6358 | .probe = probe_spi_rdid, |
| 6359 | .probe_timing = TIMING_ZERO, |
| 6360 | .block_erasers = |
| 6361 | { |
| 6362 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6363 | .eraseblocks = { {4 * 1024, 4096} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6364 | .block_erase = spi_block_erase_20, |
| 6365 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6366 | .eraseblocks = { {32 * 1024, 512} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6367 | .block_erase = spi_block_erase_52, |
| 6368 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6369 | .eraseblocks = { {64 * 1024, 256} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6370 | .block_erase = spi_block_erase_d8, |
| 6371 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6372 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6373 | .block_erase = spi_block_erase_60, |
| 6374 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6375 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6376 | .block_erase = spi_block_erase_c7, |
| 6377 | } |
| 6378 | }, |
| 6379 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6380 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6381 | .write = spi_chip_write_256, |
| 6382 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6383 | .voltage = {2700, 3600}, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6384 | }, |
| 6385 | |
| 6386 | { |
| 6387 | .vendor = "GigaDevice", |
Edward O'Callaghan | 981a344 | 2021-06-22 11:16:55 +1000 | [diff] [blame] | 6388 | .name = "GD25LQ128C/GD25LQ128D/GD25LQ128E", |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6389 | .bustype = BUS_SPI, |
| 6390 | .manufacture_id = GIGADEVICE_ID, |
Alan Green | 188127e | 2019-08-06 16:10:34 +1000 | [diff] [blame] | 6391 | .model_id = GIGADEVICE_GD25LQ128CD, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6392 | .total_size = 16384, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6393 | .page_size = 256, |
| 6394 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Nico Huber | 3f3c1f3 | 2022-05-28 16:48:26 +0200 | [diff] [blame] | 6395 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR_EXT2, |
Sergii Dmytruk | c74eac2 | 2022-10-06 18:17:58 +0300 | [diff] [blame] | 6396 | .tested = TEST_OK_PREWB, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6397 | .probe = probe_spi_rdid, |
| 6398 | .probe_timing = TIMING_ZERO, |
| 6399 | .block_erasers = |
| 6400 | { |
| 6401 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6402 | .eraseblocks = { {4 * 1024, 4096} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6403 | .block_erase = spi_block_erase_20, |
| 6404 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6405 | .eraseblocks = { {32 * 1024, 512} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6406 | .block_erase = spi_block_erase_52, |
| 6407 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6408 | .eraseblocks = { {64 * 1024, 256} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6409 | .block_erase = spi_block_erase_d8, |
| 6410 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6411 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6412 | .block_erase = spi_block_erase_60, |
| 6413 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6414 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6415 | .block_erase = spi_block_erase_c7, |
| 6416 | } |
| 6417 | }, |
| 6418 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6419 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6420 | .write = spi_chip_write_256, |
| 6421 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6422 | .voltage = {1695, 1950}, |
Nikolai Artemiev | c6c3f28 | 2021-10-20 23:34:15 +1100 | [diff] [blame] | 6423 | .reg_bits = |
| 6424 | { |
| 6425 | .srp = {STATUS1, 7, RW}, |
| 6426 | .srl = {STATUS2, 0, RW}, |
| 6427 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 6428 | .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */ |
| 6429 | .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */ |
| 6430 | .cmp = {STATUS2, 6, RW}, |
| 6431 | }, |
Nikolai Artemiev | c9feb1b | 2021-10-21 01:35:13 +1100 | [diff] [blame] | 6432 | .decode_range = decode_range_spi25, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6433 | }, |
| 6434 | |
| 6435 | { |
| 6436 | .vendor = "GigaDevice", |
| 6437 | .name = "GD25LQ16", |
| 6438 | .bustype = BUS_SPI, |
| 6439 | .manufacture_id = GIGADEVICE_ID, |
| 6440 | .model_id = GIGADEVICE_GD25LQ16, |
| 6441 | .total_size = 2048, |
| 6442 | .page_size = 256, |
| 6443 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 6444 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6445 | .tested = TEST_UNTESTED, |
| 6446 | .probe = probe_spi_rdid, |
| 6447 | .probe_timing = TIMING_ZERO, |
| 6448 | .block_erasers = |
| 6449 | { |
| 6450 | { |
| 6451 | .eraseblocks = { {4 * 1024, 512} }, |
| 6452 | .block_erase = spi_block_erase_20, |
| 6453 | }, { |
| 6454 | .eraseblocks = { {32 * 1024, 64} }, |
| 6455 | .block_erase = spi_block_erase_52, |
| 6456 | }, { |
| 6457 | .eraseblocks = { {64 * 1024, 32} }, |
| 6458 | .block_erase = spi_block_erase_d8, |
| 6459 | }, { |
| 6460 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6461 | .block_erase = spi_block_erase_60, |
| 6462 | }, { |
| 6463 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6464 | .block_erase = spi_block_erase_c7, |
| 6465 | } |
| 6466 | }, |
| 6467 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6468 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6469 | .write = spi_chip_write_256, |
| 6470 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6471 | .voltage = {1695, 1950}, |
| 6472 | }, |
| 6473 | |
| 6474 | { |
| 6475 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6476 | .name = "GD25LQ32", |
| 6477 | .bustype = BUS_SPI, |
| 6478 | .manufacture_id = GIGADEVICE_ID, |
| 6479 | .model_id = GIGADEVICE_GD25LQ32, |
| 6480 | .total_size = 4096, |
| 6481 | .page_size = 256, |
| 6482 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 6483 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6484 | .tested = TEST_OK_PREW, |
| 6485 | .probe = probe_spi_rdid, |
| 6486 | .probe_timing = TIMING_ZERO, |
| 6487 | .block_erasers = |
| 6488 | { |
| 6489 | { |
| 6490 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6491 | .block_erase = spi_block_erase_20, |
| 6492 | }, { |
| 6493 | .eraseblocks = { {32 * 1024, 128} }, |
| 6494 | .block_erase = spi_block_erase_52, |
| 6495 | }, { |
| 6496 | .eraseblocks = { {64 * 1024, 64} }, |
| 6497 | .block_erase = spi_block_erase_d8, |
| 6498 | }, { |
| 6499 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6500 | .block_erase = spi_block_erase_60, |
| 6501 | }, { |
| 6502 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6503 | .block_erase = spi_block_erase_c7, |
| 6504 | } |
| 6505 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6506 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6507 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6508 | .write = spi_chip_write_256, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6509 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6510 | .voltage = {1695, 1950}, |
| 6511 | }, |
| 6512 | |
| 6513 | { |
| 6514 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6515 | .name = "GD25LQ40", |
| 6516 | .bustype = BUS_SPI, |
| 6517 | .manufacture_id = GIGADEVICE_ID, |
| 6518 | .model_id = GIGADEVICE_GD25LQ40, |
| 6519 | .total_size = 512, |
| 6520 | .page_size = 256, |
| 6521 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 6522 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6523 | .tested = TEST_UNTESTED, |
| 6524 | .probe = probe_spi_rdid, |
| 6525 | .probe_timing = TIMING_ZERO, |
| 6526 | .block_erasers = |
| 6527 | { |
| 6528 | { |
| 6529 | .eraseblocks = { {4 * 1024, 128} }, |
| 6530 | .block_erase = spi_block_erase_20, |
| 6531 | }, { |
| 6532 | .eraseblocks = { {32 * 1024, 16} }, |
| 6533 | .block_erase = spi_block_erase_52, |
| 6534 | }, { |
| 6535 | .eraseblocks = { {64 * 1024, 8} }, |
| 6536 | .block_erase = spi_block_erase_d8, |
| 6537 | }, { |
| 6538 | .eraseblocks = { {512 * 1024, 1} }, |
| 6539 | .block_erase = spi_block_erase_60, |
| 6540 | }, { |
| 6541 | .eraseblocks = { {512 * 1024, 1} }, |
| 6542 | .block_erase = spi_block_erase_c7, |
| 6543 | } |
| 6544 | }, |
| 6545 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6546 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6547 | .write = spi_chip_write_256, |
| 6548 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6549 | .voltage = {1695, 1950}, |
| 6550 | }, |
| 6551 | |
| 6552 | { |
| 6553 | .vendor = "GigaDevice", |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6554 | .name = "GD25LQ64(B)", |
| 6555 | .bustype = BUS_SPI, |
| 6556 | .manufacture_id = GIGADEVICE_ID, |
| 6557 | .model_id = GIGADEVICE_GD25LQ64, |
| 6558 | .total_size = 8192, |
| 6559 | .page_size = 256, |
| 6560 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Nico Huber | 3f3c1f3 | 2022-05-28 16:48:26 +0200 | [diff] [blame] | 6561 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR_EXT2, |
Sergii Dmytruk | c74eac2 | 2022-10-06 18:17:58 +0300 | [diff] [blame] | 6562 | .tested = TEST_OK_PREWB, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6563 | .probe = probe_spi_rdid, |
| 6564 | .probe_timing = TIMING_ZERO, |
| 6565 | .block_erasers = |
| 6566 | { |
| 6567 | { |
| 6568 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6569 | .block_erase = spi_block_erase_20, |
| 6570 | }, { |
| 6571 | .eraseblocks = { {32 * 1024, 256} }, |
| 6572 | .block_erase = spi_block_erase_52, |
| 6573 | }, { |
| 6574 | .eraseblocks = { {64 * 1024, 128} }, |
| 6575 | .block_erase = spi_block_erase_d8, |
| 6576 | }, { |
| 6577 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6578 | .block_erase = spi_block_erase_60, |
| 6579 | }, { |
| 6580 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6581 | .block_erase = spi_block_erase_c7, |
| 6582 | } |
| 6583 | }, |
| 6584 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6585 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6586 | .write = spi_chip_write_256, |
| 6587 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6588 | .voltage = {1695, 1950}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 6589 | .reg_bits = |
| 6590 | { |
| 6591 | .srp = {STATUS1, 7, RW}, |
| 6592 | .srl = {STATUS2, 0, RW}, |
| 6593 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 6594 | .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */ |
| 6595 | .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */ |
| 6596 | .cmp = {STATUS2, 6, RW}, |
| 6597 | }, |
| 6598 | .decode_range = decode_range_spi25, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6599 | }, |
| 6600 | |
| 6601 | { |
| 6602 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6603 | .name = "GD25LQ80", |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6604 | .bustype = BUS_SPI, |
| 6605 | .manufacture_id = GIGADEVICE_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6606 | .model_id = GIGADEVICE_GD25LQ80, |
| 6607 | .total_size = 1024, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6608 | .page_size = 256, |
| 6609 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 6610 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6611 | .tested = TEST_UNTESTED, |
| 6612 | .probe = probe_spi_rdid, |
| 6613 | .probe_timing = TIMING_ZERO, |
| 6614 | .block_erasers = |
| 6615 | { |
| 6616 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6617 | .eraseblocks = { {4 * 1024, 256} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6618 | .block_erase = spi_block_erase_20, |
| 6619 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6620 | .eraseblocks = { {32 * 1024, 32} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6621 | .block_erase = spi_block_erase_52, |
| 6622 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6623 | .eraseblocks = { {64 * 1024, 16} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6624 | .block_erase = spi_block_erase_d8, |
| 6625 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6626 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6627 | .block_erase = spi_block_erase_60, |
| 6628 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6629 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6630 | .block_erase = spi_block_erase_c7, |
| 6631 | } |
| 6632 | }, |
| 6633 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6634 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6635 | .write = spi_chip_write_256, |
| 6636 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6637 | .voltage = {1695, 1950}, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6638 | }, |
| 6639 | |
| 6640 | { |
| 6641 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6642 | .name = "GD25Q10", |
| 6643 | .bustype = BUS_SPI, |
| 6644 | .manufacture_id = GIGADEVICE_ID, |
| 6645 | .model_id = GIGADEVICE_GD25Q10, |
| 6646 | .total_size = 128, |
| 6647 | .page_size = 256, |
| 6648 | .feature_bits = FEATURE_WRSR_WREN, |
| 6649 | .tested = TEST_UNTESTED, |
| 6650 | .probe = probe_spi_rdid, |
| 6651 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 6652 | .block_erasers = |
| 6653 | { |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6654 | { |
| 6655 | .eraseblocks = { {4 * 1024, 32} }, |
| 6656 | .block_erase = spi_block_erase_20, |
| 6657 | }, { |
| 6658 | .eraseblocks = { {32 * 1024, 4} }, |
| 6659 | .block_erase = spi_block_erase_52, |
| 6660 | }, { |
| 6661 | .eraseblocks = { {64 * 1024, 2} }, |
| 6662 | .block_erase = spi_block_erase_d8, |
| 6663 | }, { |
| 6664 | .eraseblocks = { {128 * 1024, 1} }, |
| 6665 | .block_erase = spi_block_erase_60, |
| 6666 | }, { |
| 6667 | .eraseblocks = { {128 * 1024, 1} }, |
| 6668 | .block_erase = spi_block_erase_c7, |
| 6669 | } |
| 6670 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6671 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6672 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6673 | .write = spi_chip_write_256, |
| 6674 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6675 | .voltage = {2700, 3600}, |
| 6676 | }, |
| 6677 | |
| 6678 | { |
| 6679 | .vendor = "GigaDevice", |
Alan Green | 4f00912 | 2019-08-26 10:45:18 +1000 | [diff] [blame] | 6680 | .name = "GD25Q127C/GD25Q128C", |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6681 | .bustype = BUS_SPI, |
| 6682 | .manufacture_id = GIGADEVICE_ID, |
| 6683 | .model_id = GIGADEVICE_GD25Q128, |
| 6684 | .total_size = 16384, |
| 6685 | .page_size = 256, |
| 6686 | /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */ |
| 6687 | /* QPI: enable 0x38, disable 0xFF */ |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 6688 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2, |
Sergii Dmytruk | c74eac2 | 2022-10-06 18:17:58 +0300 | [diff] [blame] | 6689 | .tested = TEST_OK_PREWB, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6690 | .probe = probe_spi_rdid, |
| 6691 | .probe_timing = TIMING_ZERO, |
| 6692 | .block_erasers = |
| 6693 | { |
| 6694 | { |
| 6695 | .eraseblocks = { {4 * 1024, 4096} }, |
| 6696 | .block_erase = spi_block_erase_20, |
| 6697 | }, { |
| 6698 | .eraseblocks = { {32 * 1024, 512} }, |
| 6699 | .block_erase = spi_block_erase_52, |
| 6700 | }, { |
| 6701 | .eraseblocks = { {64 * 1024, 256} }, |
| 6702 | .block_erase = spi_block_erase_d8, |
| 6703 | }, { |
| 6704 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6705 | .block_erase = spi_block_erase_60, |
| 6706 | }, { |
| 6707 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6708 | .block_erase = spi_block_erase_c7, |
| 6709 | } |
| 6710 | }, |
| 6711 | /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */ |
| 6712 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6713 | .unlock = spi_disable_blockprotect_bp4_srwd, |
| 6714 | .write = spi_chip_write_256, |
| 6715 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6716 | .voltage = {2700, 3600}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 6717 | .reg_bits = |
| 6718 | { |
| 6719 | .srp = {STATUS1, 7, RW}, |
| 6720 | .srl = {STATUS2, 0, RW}, |
| 6721 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 6722 | .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */ |
| 6723 | .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */ |
| 6724 | .cmp = {STATUS2, 6, RW}, |
| 6725 | }, |
| 6726 | .decode_range = decode_range_spi25, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6727 | }, |
| 6728 | |
| 6729 | { |
| 6730 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6731 | .name = "GD25Q16(B)", |
| 6732 | .bustype = BUS_SPI, |
| 6733 | .manufacture_id = GIGADEVICE_ID, |
| 6734 | .model_id = GIGADEVICE_GD25Q16, |
| 6735 | .total_size = 2048, |
| 6736 | .page_size = 256, |
| 6737 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */ |
| 6738 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6739 | .tested = TEST_OK_PREW, |
| 6740 | .probe = probe_spi_rdid, |
| 6741 | .probe_timing = TIMING_ZERO, |
| 6742 | .block_erasers = |
| 6743 | { |
| 6744 | { |
| 6745 | .eraseblocks = { {4 * 1024, 512} }, |
| 6746 | .block_erase = spi_block_erase_20, |
| 6747 | }, { |
| 6748 | .eraseblocks = { {32 * 1024, 64} }, |
| 6749 | .block_erase = spi_block_erase_52, |
| 6750 | }, { |
| 6751 | .eraseblocks = { {64 * 1024, 32} }, |
| 6752 | .block_erase = spi_block_erase_d8, |
| 6753 | }, { |
| 6754 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6755 | .block_erase = spi_block_erase_60, |
| 6756 | }, { |
| 6757 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6758 | .block_erase = spi_block_erase_c7, |
| 6759 | } |
| 6760 | }, |
| 6761 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6762 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6763 | .write = spi_chip_write_256, |
| 6764 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6765 | .voltage = {2700, 3600}, |
| 6766 | }, |
| 6767 | |
| 6768 | { |
| 6769 | .vendor = "GigaDevice", |
| 6770 | .name = "GD25Q20(B)", |
| 6771 | .bustype = BUS_SPI, |
| 6772 | .manufacture_id = GIGADEVICE_ID, |
| 6773 | .model_id = GIGADEVICE_GD25Q20, |
| 6774 | .total_size = 256, |
| 6775 | .page_size = 256, |
| 6776 | .feature_bits = FEATURE_WRSR_WREN, |
| 6777 | .tested = TEST_OK_PREW, |
| 6778 | .probe = probe_spi_rdid, |
| 6779 | .probe_timing = TIMING_ZERO, |
| 6780 | .block_erasers = |
| 6781 | { |
| 6782 | { |
| 6783 | .eraseblocks = { {4 * 1024, 64} }, |
| 6784 | .block_erase = spi_block_erase_20, |
| 6785 | }, { |
| 6786 | .eraseblocks = { {32 * 1024, 8} }, |
| 6787 | .block_erase = spi_block_erase_52, |
| 6788 | }, { |
| 6789 | .eraseblocks = { {64 * 1024, 4} }, |
| 6790 | .block_erase = spi_block_erase_d8, |
| 6791 | }, { |
| 6792 | .eraseblocks = { {256 * 1024, 1} }, |
| 6793 | .block_erase = spi_block_erase_60, |
| 6794 | }, { |
| 6795 | .eraseblocks = { {256 * 1024, 1} }, |
| 6796 | .block_erase = spi_block_erase_c7, |
| 6797 | } |
| 6798 | }, |
| 6799 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6800 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6801 | .write = spi_chip_write_256, |
| 6802 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6803 | .voltage = {2700, 3600}, |
| 6804 | }, |
| 6805 | |
| 6806 | { |
| 6807 | .vendor = "GigaDevice", |
Nikolai Artemiev | 3ca0af0 | 2022-06-17 15:10:18 +1000 | [diff] [blame] | 6808 | .name = "GD25Q256D/GD25Q256E", |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 6809 | .bustype = BUS_SPI, |
| 6810 | .manufacture_id = GIGADEVICE_ID, |
| 6811 | .model_id = GIGADEVICE_GD25Q256D, |
| 6812 | .total_size = 32768, |
| 6813 | .page_size = 256, |
Nikolai Artemiev | b931e7a | 2022-12-05 13:06:14 +1100 | [diff] [blame] | 6814 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | |
Nico Huber | 3f3c1f3 | 2022-05-28 16:48:26 +0200 | [diff] [blame] | 6815 | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3, |
Sergii Dmytruk | c74eac2 | 2022-10-06 18:17:58 +0300 | [diff] [blame] | 6816 | .tested = TEST_OK_PREWB, |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 6817 | .probe = probe_spi_rdid, |
| 6818 | .probe_timing = TIMING_ZERO, |
| 6819 | .block_erasers = |
| 6820 | { |
| 6821 | { |
| 6822 | .eraseblocks = { {4 * 1024, 8192} }, |
Nico Huber | 5374dc3 | 2019-10-04 16:16:15 +0200 | [diff] [blame] | 6823 | .block_erase = spi_block_erase_21, |
| 6824 | }, { |
| 6825 | .eraseblocks = { {4 * 1024, 8192} }, |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 6826 | .block_erase = spi_block_erase_20, |
| 6827 | }, { |
| 6828 | .eraseblocks = { {32 * 1024, 1024} }, |
Nico Huber | 5374dc3 | 2019-10-04 16:16:15 +0200 | [diff] [blame] | 6829 | .block_erase = spi_block_erase_5c, |
| 6830 | }, { |
| 6831 | .eraseblocks = { {32 * 1024, 1024} }, |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 6832 | .block_erase = spi_block_erase_52, |
| 6833 | }, { |
| 6834 | .eraseblocks = { {64 * 1024, 512} }, |
Nico Huber | 5374dc3 | 2019-10-04 16:16:15 +0200 | [diff] [blame] | 6835 | .block_erase = spi_block_erase_dc, |
| 6836 | }, { |
| 6837 | .eraseblocks = { {64 * 1024, 512} }, |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 6838 | .block_erase = spi_block_erase_d8, |
| 6839 | }, { |
| 6840 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 6841 | .block_erase = spi_block_erase_60, |
| 6842 | }, { |
| 6843 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 6844 | .block_erase = spi_block_erase_c7, |
| 6845 | } |
| 6846 | }, |
| 6847 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 6848 | .unlock = spi_disable_blockprotect, |
| 6849 | .write = spi_chip_write_256, |
| 6850 | .read = spi_chip_read, |
| 6851 | .voltage = {2700, 3600}, |
Nikolai Artemiev | c6c3f28 | 2021-10-20 23:34:15 +1100 | [diff] [blame] | 6852 | .reg_bits = |
| 6853 | { |
| 6854 | .srp = {STATUS1, 7, RW}, |
| 6855 | .srl = {STATUS2, 6, RW}, |
| 6856 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}}, |
| 6857 | .tb = {STATUS1, 6, RW}, |
| 6858 | }, |
Nikolai Artemiev | c9feb1b | 2021-10-21 01:35:13 +1100 | [diff] [blame] | 6859 | .decode_range = decode_range_spi25, |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 6860 | }, |
| 6861 | |
| 6862 | { |
| 6863 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6864 | .name = "GD25Q32(B)", |
| 6865 | .bustype = BUS_SPI, |
| 6866 | .manufacture_id = GIGADEVICE_ID, |
| 6867 | .model_id = GIGADEVICE_GD25Q32, |
| 6868 | .total_size = 4096, |
| 6869 | .page_size = 256, |
| 6870 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Nikolai Artemiev | 9de3f87 | 2021-10-20 22:32:25 +1100 | [diff] [blame] | 6871 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR2, |
Sergii Dmytruk | c74eac2 | 2022-10-06 18:17:58 +0300 | [diff] [blame] | 6872 | .tested = TEST_OK_PREWB, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6873 | .probe = probe_spi_rdid, |
| 6874 | .probe_timing = TIMING_ZERO, |
| 6875 | .block_erasers = |
| 6876 | { |
| 6877 | { |
| 6878 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6879 | .block_erase = spi_block_erase_20, |
| 6880 | }, { |
| 6881 | .eraseblocks = { {32 * 1024, 128} }, |
| 6882 | .block_erase = spi_block_erase_52, |
| 6883 | }, { |
| 6884 | .eraseblocks = { {64 * 1024, 64} }, |
| 6885 | .block_erase = spi_block_erase_d8, |
| 6886 | }, { |
| 6887 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6888 | .block_erase = spi_block_erase_60, |
| 6889 | }, { |
| 6890 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6891 | .block_erase = spi_block_erase_c7, |
| 6892 | } |
| 6893 | }, |
| 6894 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6895 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6896 | .write = spi_chip_write_256, |
| 6897 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6898 | .voltage = {2700, 3600}, |
Nikolai Artemiev | c6c3f28 | 2021-10-20 23:34:15 +1100 | [diff] [blame] | 6899 | .reg_bits = |
| 6900 | { |
| 6901 | .srp = {STATUS1, 7, RW}, |
| 6902 | .srl = {STATUS2, 0, RW}, |
| 6903 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 6904 | .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */ |
| 6905 | .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */ |
| 6906 | .cmp = {STATUS2, 6, RW}, |
| 6907 | }, |
Nikolai Artemiev | c9feb1b | 2021-10-21 01:35:13 +1100 | [diff] [blame] | 6908 | .decode_range = decode_range_spi25, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6909 | }, |
| 6910 | |
| 6911 | { |
| 6912 | .vendor = "GigaDevice", |
| 6913 | .name = "GD25Q40(B)", |
| 6914 | .bustype = BUS_SPI, |
| 6915 | .manufacture_id = GIGADEVICE_ID, |
| 6916 | .model_id = GIGADEVICE_GD25Q40, |
| 6917 | .total_size = 512, |
| 6918 | .page_size = 256, |
| 6919 | .feature_bits = FEATURE_WRSR_WREN, |
Simon Buhrow | 551664c | 2022-03-09 16:09:08 +0100 | [diff] [blame] | 6920 | .tested = TEST_OK_PREW, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6921 | .probe = probe_spi_rdid, |
| 6922 | .probe_timing = TIMING_ZERO, |
| 6923 | .block_erasers = |
| 6924 | { |
| 6925 | { |
| 6926 | .eraseblocks = { {4 * 1024, 128} }, |
| 6927 | .block_erase = spi_block_erase_20, |
| 6928 | }, { |
| 6929 | .eraseblocks = { {32 * 1024, 16} }, |
| 6930 | .block_erase = spi_block_erase_52, |
| 6931 | }, { |
| 6932 | .eraseblocks = { {64 * 1024, 8} }, |
| 6933 | .block_erase = spi_block_erase_d8, |
| 6934 | }, { |
| 6935 | .eraseblocks = { {512 * 1024, 1} }, |
| 6936 | .block_erase = spi_block_erase_60, |
| 6937 | }, { |
| 6938 | .eraseblocks = { {512 * 1024, 1} }, |
| 6939 | .block_erase = spi_block_erase_c7, |
| 6940 | } |
| 6941 | }, |
| 6942 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6943 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6944 | .write = spi_chip_write_256, |
| 6945 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6946 | .voltage = {2700, 3600}, |
| 6947 | }, |
| 6948 | |
| 6949 | { |
| 6950 | .vendor = "GigaDevice", |
| 6951 | .name = "GD25Q512", |
| 6952 | .bustype = BUS_SPI, |
| 6953 | .manufacture_id = GIGADEVICE_ID, |
| 6954 | .model_id = GIGADEVICE_GD25Q512, |
| 6955 | .total_size = 64, |
| 6956 | .page_size = 256, |
| 6957 | .feature_bits = FEATURE_WRSR_WREN, |
| 6958 | .tested = TEST_OK_PREW, |
| 6959 | .probe = probe_spi_rdid, |
| 6960 | .probe_timing = TIMING_ZERO, |
| 6961 | .block_erasers = |
| 6962 | { |
| 6963 | { |
| 6964 | .eraseblocks = { {4 * 1024, 16} }, |
| 6965 | .block_erase = spi_block_erase_20, |
| 6966 | }, { |
| 6967 | .eraseblocks = { {32 * 1024, 2} }, |
| 6968 | .block_erase = spi_block_erase_52, |
| 6969 | }, { |
| 6970 | .eraseblocks = { {64 * 1024, 1} }, |
| 6971 | .block_erase = spi_block_erase_60, |
| 6972 | }, { |
| 6973 | .eraseblocks = { {64 * 1024, 1} }, |
| 6974 | .block_erase = spi_block_erase_c7, |
| 6975 | } |
| 6976 | }, |
| 6977 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6978 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6979 | .write = spi_chip_write_256, |
| 6980 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6981 | .voltage = {2700, 3600}, |
| 6982 | }, |
| 6983 | |
| 6984 | { |
| 6985 | .vendor = "GigaDevice", |
| 6986 | .name = "GD25Q64(B)", |
| 6987 | .bustype = BUS_SPI, |
| 6988 | .manufacture_id = GIGADEVICE_ID, |
| 6989 | .model_id = GIGADEVICE_GD25Q64, |
| 6990 | .total_size = 8192, |
| 6991 | .page_size = 256, |
| 6992 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 6993 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR2, |
Sergii Dmytruk | c74eac2 | 2022-10-06 18:17:58 +0300 | [diff] [blame] | 6994 | .tested = TEST_OK_PREWB, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6995 | .probe = probe_spi_rdid, |
| 6996 | .probe_timing = TIMING_ZERO, |
| 6997 | .block_erasers = |
| 6998 | { |
| 6999 | { |
| 7000 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7001 | .block_erase = spi_block_erase_20, |
| 7002 | }, { |
| 7003 | .eraseblocks = { {32 * 1024, 256} }, |
| 7004 | .block_erase = spi_block_erase_52, |
| 7005 | }, { |
| 7006 | .eraseblocks = { {64 * 1024, 128} }, |
| 7007 | .block_erase = spi_block_erase_d8, |
| 7008 | }, { |
| 7009 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7010 | .block_erase = spi_block_erase_60, |
| 7011 | }, { |
| 7012 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7013 | .block_erase = spi_block_erase_c7, |
| 7014 | } |
| 7015 | }, |
| 7016 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7017 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7018 | .write = spi_chip_write_256, |
| 7019 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7020 | .voltage = {2700, 3600}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 7021 | .reg_bits = |
| 7022 | { |
| 7023 | .srp = {STATUS1, 7, RW}, |
| 7024 | .srl = {STATUS2, 0, RW}, |
| 7025 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 7026 | .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */ |
| 7027 | .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */ |
| 7028 | .cmp = {STATUS2, 6, RW}, |
| 7029 | }, |
| 7030 | .decode_range = decode_range_spi25, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7031 | }, |
| 7032 | |
| 7033 | { |
| 7034 | .vendor = "GigaDevice", |
| 7035 | .name = "GD25Q80(B)", |
| 7036 | .bustype = BUS_SPI, |
| 7037 | .manufacture_id = GIGADEVICE_ID, |
| 7038 | .model_id = GIGADEVICE_GD25Q80, |
| 7039 | .total_size = 1024, |
| 7040 | .page_size = 256, |
| 7041 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */ |
| 7042 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7043 | .tested = TEST_OK_PREW, |
| 7044 | .probe = probe_spi_rdid, |
| 7045 | .probe_timing = TIMING_ZERO, |
| 7046 | .block_erasers = |
| 7047 | { |
| 7048 | { |
| 7049 | .eraseblocks = { {4 * 1024, 256} }, |
| 7050 | .block_erase = spi_block_erase_20, |
| 7051 | }, { |
| 7052 | .eraseblocks = { {32 * 1024, 32} }, |
| 7053 | .block_erase = spi_block_erase_52, |
| 7054 | }, { |
| 7055 | .eraseblocks = { {64 * 1024, 16} }, |
| 7056 | .block_erase = spi_block_erase_d8, |
| 7057 | }, { |
| 7058 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7059 | .block_erase = spi_block_erase_60, |
| 7060 | }, { |
| 7061 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7062 | .block_erase = spi_block_erase_c7, |
| 7063 | } |
| 7064 | }, |
| 7065 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7066 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7067 | .write = spi_chip_write_256, |
| 7068 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7069 | .voltage = {2700, 3600}, |
| 7070 | }, |
| 7071 | |
| 7072 | { |
| 7073 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 7074 | .name = "GD25T80", |
| 7075 | .bustype = BUS_SPI, |
| 7076 | .manufacture_id = GIGADEVICE_ID, |
| 7077 | .model_id = GIGADEVICE_GD25T80, |
| 7078 | .total_size = 1024, |
| 7079 | .page_size = 256, |
| 7080 | /* OTP: 256B total; enter 0x3A */ |
| 7081 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7082 | .tested = TEST_UNTESTED, |
| 7083 | .probe = probe_spi_rdid, |
| 7084 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 7085 | .block_erasers = |
| 7086 | { |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 7087 | { |
| 7088 | .eraseblocks = { {4 * 1024, 256} }, |
| 7089 | .block_erase = spi_block_erase_20, |
| 7090 | }, { |
| 7091 | .eraseblocks = { {64 * 1024, 16} }, |
| 7092 | .block_erase = spi_block_erase_52, |
| 7093 | }, { |
| 7094 | .eraseblocks = { {64 * 1024, 16} }, |
| 7095 | .block_erase = spi_block_erase_d8, |
| 7096 | }, { |
| 7097 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7098 | .block_erase = spi_block_erase_60, |
| 7099 | }, { |
| 7100 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7101 | .block_erase = spi_block_erase_c7, |
| 7102 | } |
| 7103 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 7104 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 7105 | .unlock = spi_disable_blockprotect, |
| 7106 | .write = spi_chip_write_256, |
| 7107 | .read = spi_chip_read, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 7108 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 7109 | }, |
| 7110 | |
| 7111 | { |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 7112 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7113 | .name = "GD25VQ16C", |
| 7114 | .bustype = BUS_SPI, |
| 7115 | .manufacture_id = GIGADEVICE_ID, |
| 7116 | .model_id = GIGADEVICE_GD25VQ16C, |
| 7117 | .total_size = 2 * 1024, |
| 7118 | .page_size = 256, |
| 7119 | /* Supports SFDP */ |
| 7120 | /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */ |
| 7121 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 7122 | .tested = TEST_UNTESTED, |
| 7123 | .probe = probe_spi_rdid, |
| 7124 | .probe_timing = TIMING_ZERO, |
| 7125 | .block_erasers = |
| 7126 | { |
| 7127 | { |
| 7128 | .eraseblocks = { { 4 * 1024, 512} }, |
| 7129 | .block_erase = spi_block_erase_20, |
| 7130 | }, { |
| 7131 | .eraseblocks = { { 32 * 1024, 64} }, |
| 7132 | .block_erase = spi_block_erase_52, |
| 7133 | }, { |
| 7134 | .eraseblocks = { { 64 * 1024, 32} }, |
| 7135 | .block_erase = spi_block_erase_d8, |
| 7136 | }, { |
| 7137 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7138 | .block_erase = spi_block_erase_60, |
| 7139 | }, { |
| 7140 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7141 | .block_erase = spi_block_erase_c7, |
| 7142 | } |
| 7143 | }, |
| 7144 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7145 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7146 | .write = spi_chip_write_256, |
| 7147 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7148 | .voltage = {2300, 3600}, |
| 7149 | }, |
| 7150 | |
| 7151 | { |
| 7152 | .vendor = "GigaDevice", |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7153 | .name = "GD25VQ21B", |
| 7154 | .bustype = BUS_SPI, |
| 7155 | .manufacture_id = GIGADEVICE_ID, |
| 7156 | .model_id = GIGADEVICE_GD25VQ21B, |
| 7157 | .total_size = 256, |
| 7158 | .page_size = 256, |
| 7159 | /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */ |
| 7160 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 7161 | .tested = TEST_UNTESTED, |
| 7162 | .probe = probe_spi_rdid, |
| 7163 | .probe_timing = TIMING_ZERO, |
| 7164 | .block_erasers = |
| 7165 | { |
| 7166 | { |
| 7167 | .eraseblocks = { { 4 * 1024, 64} }, |
| 7168 | .block_erase = spi_block_erase_20, |
| 7169 | }, { |
| 7170 | .eraseblocks = { { 32 * 1024, 8} }, |
| 7171 | .block_erase = spi_block_erase_52, |
| 7172 | }, { |
| 7173 | .eraseblocks = { { 64 * 1024, 4} }, |
| 7174 | .block_erase = spi_block_erase_d8, |
| 7175 | }, { |
| 7176 | .eraseblocks = { {256 * 1024, 1} }, |
| 7177 | .block_erase = spi_block_erase_60, |
| 7178 | }, { |
| 7179 | .eraseblocks = { {256 * 1024, 1} }, |
| 7180 | .block_erase = spi_block_erase_c7, |
| 7181 | } |
| 7182 | }, |
| 7183 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7184 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7185 | .write = spi_chip_write_256, |
| 7186 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7187 | .voltage = {2300, 3600}, |
| 7188 | }, |
| 7189 | |
| 7190 | { |
| 7191 | .vendor = "GigaDevice", |
| 7192 | .name = "GD25VQ40C", |
| 7193 | .bustype = BUS_SPI, |
| 7194 | .manufacture_id = GIGADEVICE_ID, |
| 7195 | .model_id = GIGADEVICE_GD25VQ41B, |
| 7196 | .total_size = 512, |
| 7197 | .page_size = 256, |
| 7198 | /* Supports SFDP */ |
| 7199 | /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */ |
| 7200 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 7201 | .tested = TEST_UNTESTED, |
| 7202 | .probe = probe_spi_rdid, |
| 7203 | .probe_timing = TIMING_ZERO, |
| 7204 | .block_erasers = |
| 7205 | { |
| 7206 | { |
| 7207 | .eraseblocks = { { 4 * 1024, 128} }, |
| 7208 | .block_erase = spi_block_erase_20, |
| 7209 | }, { |
| 7210 | .eraseblocks = { { 32 * 1024, 16} }, |
| 7211 | .block_erase = spi_block_erase_52, |
| 7212 | }, { |
| 7213 | .eraseblocks = { { 64 * 1024, 8} }, |
| 7214 | .block_erase = spi_block_erase_d8, |
| 7215 | }, { |
| 7216 | .eraseblocks = { {512 * 1024, 1} }, |
| 7217 | .block_erase = spi_block_erase_60, |
| 7218 | }, { |
| 7219 | .eraseblocks = { {512 * 1024, 1} }, |
| 7220 | .block_erase = spi_block_erase_c7, |
| 7221 | } |
| 7222 | }, |
| 7223 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7224 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7225 | .write = spi_chip_write_256, |
| 7226 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7227 | .voltage = {2300, 3600}, |
| 7228 | }, |
| 7229 | |
| 7230 | { |
| 7231 | .vendor = "GigaDevice", |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 7232 | .name = "GD25VQ41B", |
| 7233 | .bustype = BUS_SPI, |
| 7234 | .manufacture_id = GIGADEVICE_ID, |
| 7235 | .model_id = GIGADEVICE_GD25VQ41B, |
| 7236 | .total_size = 512, |
| 7237 | .page_size = 256, |
| 7238 | /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */ |
| 7239 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 7240 | .tested = TEST_OK_PREW, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 7241 | .probe = probe_spi_rdid, |
| 7242 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 7243 | .block_erasers = |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 7244 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 7245 | { |
| 7246 | .eraseblocks = { { 4 * 1024, 128} }, |
| 7247 | .block_erase = spi_block_erase_20, |
| 7248 | }, { |
| 7249 | .eraseblocks = { { 32 * 1024, 16} }, |
| 7250 | .block_erase = spi_block_erase_52, |
| 7251 | }, { |
| 7252 | .eraseblocks = { { 64 * 1024, 8} }, |
| 7253 | .block_erase = spi_block_erase_d8, |
| 7254 | }, { |
| 7255 | .eraseblocks = { {512 * 1024, 1} }, |
| 7256 | .block_erase = spi_block_erase_60, |
| 7257 | }, { |
| 7258 | .eraseblocks = { {512 * 1024, 1} }, |
| 7259 | .block_erase = spi_block_erase_c7, |
| 7260 | } |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 7261 | }, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 7262 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7263 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7264 | .write = spi_chip_write_256, |
| 7265 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7266 | .voltage = {2300, 3600}, |
| 7267 | }, |
| 7268 | |
| 7269 | { |
| 7270 | .vendor = "GigaDevice", |
| 7271 | .name = "GD25VQ80C", |
| 7272 | .bustype = BUS_SPI, |
| 7273 | .manufacture_id = GIGADEVICE_ID, |
| 7274 | .model_id = GIGADEVICE_GD25VQ80C, |
| 7275 | .total_size = 1024, |
| 7276 | .page_size = 256, |
| 7277 | /* Supports SFDP */ |
| 7278 | /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */ |
| 7279 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 7280 | .tested = TEST_UNTESTED, |
| 7281 | .probe = probe_spi_rdid, |
| 7282 | .probe_timing = TIMING_ZERO, |
| 7283 | .block_erasers = |
| 7284 | { |
| 7285 | { |
| 7286 | .eraseblocks = { { 4 * 1024, 256} }, |
| 7287 | .block_erase = spi_block_erase_20, |
| 7288 | }, { |
| 7289 | .eraseblocks = { { 32 * 1024, 32} }, |
| 7290 | .block_erase = spi_block_erase_52, |
| 7291 | }, { |
| 7292 | .eraseblocks = { { 64 * 1024, 16} }, |
| 7293 | .block_erase = spi_block_erase_d8, |
| 7294 | }, { |
| 7295 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7296 | .block_erase = spi_block_erase_60, |
| 7297 | }, { |
| 7298 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7299 | .block_erase = spi_block_erase_c7, |
| 7300 | } |
| 7301 | }, |
| 7302 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7303 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7304 | .write = spi_chip_write_256, |
| 7305 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7306 | .voltage = {2300, 3600}, |
| 7307 | }, |
| 7308 | |
| 7309 | { |
Dino Li | 3214f58 | 2020-03-25 17:39:53 +0800 | [diff] [blame] | 7310 | .vendor = "GigaDevice", |
| 7311 | .name = "GD25WQ80E", |
| 7312 | .bustype = BUS_SPI, |
| 7313 | .manufacture_id = GIGADEVICE_ID, |
| 7314 | .model_id = GIGADEVICE_GD25WQ80E, |
| 7315 | .total_size = 1024, |
| 7316 | .page_size = 256, |
| 7317 | .feature_bits = FEATURE_WRSR_WREN, |
| 7318 | .tested = TEST_OK_PREW, |
| 7319 | .probe = probe_spi_rdid, |
| 7320 | .probe_timing = TIMING_ZERO, |
| 7321 | .block_erasers = |
| 7322 | { |
| 7323 | { |
| 7324 | .eraseblocks = { {4 * 1024, 256} }, |
| 7325 | .block_erase = spi_block_erase_20, |
| 7326 | }, { |
| 7327 | .eraseblocks = { {32 * 1024, 32} }, |
| 7328 | .block_erase = spi_block_erase_52, |
| 7329 | }, { |
| 7330 | .eraseblocks = { {64 * 1024, 16} }, |
| 7331 | .block_erase = spi_block_erase_d8, |
| 7332 | }, { |
| 7333 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 7334 | .block_erase = spi_block_erase_60, |
| 7335 | }, { |
| 7336 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 7337 | .block_erase = spi_block_erase_c7, |
| 7338 | } |
| 7339 | }, |
| 7340 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7341 | .unlock = spi_disable_blockprotect_bp4_srwd, |
| 7342 | .write = spi_chip_write_256, |
| 7343 | .read = spi_chip_read, |
| 7344 | .voltage = {1650, 3600}, |
| 7345 | }, |
| 7346 | |
| 7347 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7348 | .vendor = "Hyundai", |
| 7349 | .name = "HY29F002B", |
| 7350 | .bustype = BUS_PARALLEL, |
| 7351 | .manufacture_id = HYUNDAI_ID, |
| 7352 | .model_id = HYUNDAI_HY29F002B, |
| 7353 | .total_size = 256, |
| 7354 | .page_size = 256 * 1024, |
| 7355 | .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */ |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7356 | .tested = TEST_UNTESTED, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7357 | .probe = probe_jedec, |
| 7358 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7359 | .block_erasers = |
| 7360 | { |
| 7361 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7362 | .eraseblocks = { |
| 7363 | {16 * 1024, 1}, |
| 7364 | {8 * 1024, 2}, |
| 7365 | {32 * 1024, 1}, |
| 7366 | {64 * 1024, 3}, |
| 7367 | }, |
| 7368 | .block_erase = erase_sector_jedec, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7369 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7370 | .eraseblocks = { {256 * 1024, 1} }, |
| 7371 | .block_erase = erase_chip_block_jedec, |
| 7372 | }, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7373 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7374 | .write = write_jedec_1, |
| 7375 | .read = read_memmapped, |
| 7376 | .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] | 7377 | }, |
| 7378 | |
| 7379 | { |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 7380 | .vendor = "Hyundai", |
| 7381 | .name = "HY29F002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7382 | .bustype = BUS_PARALLEL, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 7383 | .manufacture_id = HYUNDAI_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7384 | .model_id = HYUNDAI_HY29F002T, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 7385 | .total_size = 256, |
| 7386 | .page_size = 256 * 1024, |
| 7387 | .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] | 7388 | .tested = TEST_OK_PRE, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 7389 | .probe = probe_jedec, |
| 7390 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7391 | .block_erasers = |
| 7392 | { |
| 7393 | { |
| 7394 | .eraseblocks = { |
| 7395 | {64 * 1024, 3}, |
| 7396 | {32 * 1024, 1}, |
| 7397 | {8 * 1024, 2}, |
| 7398 | {16 * 1024, 1}, |
| 7399 | }, |
| 7400 | .block_erase = erase_sector_jedec, |
| 7401 | }, { |
| 7402 | .eraseblocks = { {256 * 1024, 1} }, |
| 7403 | .block_erase = erase_chip_block_jedec, |
| 7404 | }, |
| 7405 | }, |
| 7406 | .write = write_jedec_1, |
| 7407 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 7408 | .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] | 7409 | }, |
| 7410 | |
| 7411 | { |
| 7412 | .vendor = "Hyundai", |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 7413 | .name = "HY29F040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7414 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 7415 | .manufacture_id = HYUNDAI_ID, |
| 7416 | .model_id = HYUNDAI_HY29F040A, |
| 7417 | .total_size = 512, |
| 7418 | .page_size = 64 * 1024, |
| 7419 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 7420 | .tested = TEST_UNTESTED, |
| 7421 | .probe = probe_jedec, |
| 7422 | .probe_timing = TIMING_ZERO, |
| 7423 | .block_erasers = |
| 7424 | { |
| 7425 | { |
| 7426 | .eraseblocks = { {64 * 1024, 8} }, |
| 7427 | .block_erase = erase_sector_jedec, |
| 7428 | }, { |
| 7429 | .eraseblocks = { {512 * 1024, 1} }, |
| 7430 | .block_erase = erase_chip_block_jedec, |
| 7431 | }, |
| 7432 | }, |
| 7433 | .write = write_jedec_1, |
| 7434 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 7435 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 7436 | }, |
| 7437 | |
| 7438 | { |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 7439 | .vendor = "ISSI", |
Angel Pons | 2ef47f3 | 2018-09-30 16:47:30 +0200 | [diff] [blame] | 7440 | .name = "IS25LP064", |
| 7441 | .bustype = BUS_SPI, |
| 7442 | .manufacture_id = ISSI_ID_SPI, |
| 7443 | .model_id = ISSI_IS25LP064, |
| 7444 | .total_size = 8192, |
| 7445 | .page_size = 256, |
| 7446 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 7447 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Simon Buhrow | 9bf829d | 2021-10-20 17:09:09 +0200 | [diff] [blame] | 7448 | .tested = TEST_OK_PREW, |
Angel Pons | 2ef47f3 | 2018-09-30 16:47:30 +0200 | [diff] [blame] | 7449 | .probe = probe_spi_rdid, |
| 7450 | .probe_timing = TIMING_ZERO, |
| 7451 | .block_erasers = |
| 7452 | { |
| 7453 | { |
| 7454 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7455 | .block_erase = spi_block_erase_20, |
| 7456 | }, { |
| 7457 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7458 | .block_erase = spi_block_erase_d7, |
| 7459 | }, { |
| 7460 | .eraseblocks = { {32 * 1024, 256} }, |
| 7461 | .block_erase = spi_block_erase_52, |
| 7462 | }, { |
| 7463 | .eraseblocks = { {64 * 1024, 128} }, |
| 7464 | .block_erase = spi_block_erase_d8, |
| 7465 | }, { |
| 7466 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7467 | .block_erase = spi_block_erase_60, |
| 7468 | }, { |
| 7469 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7470 | .block_erase = spi_block_erase_c7, |
| 7471 | } |
| 7472 | }, |
| 7473 | .unlock = spi_disable_blockprotect, |
| 7474 | .write = spi_chip_write_256, |
| 7475 | .read = spi_chip_read, |
| 7476 | .voltage = {2300, 3600}, |
| 7477 | }, |
| 7478 | |
| 7479 | { |
| 7480 | .vendor = "ISSI", |
David Hendricks | 3083ed9 | 2017-05-02 13:25:56 -0700 | [diff] [blame] | 7481 | .name = "IS25LP128", |
| 7482 | .bustype = BUS_SPI, |
| 7483 | .manufacture_id = ISSI_ID_SPI, |
| 7484 | .model_id = ISSI_IS25LP128, |
| 7485 | .total_size = 16384, |
| 7486 | .page_size = 256, |
| 7487 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 7488 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7489 | .tested = TEST_OK_PREW, |
| 7490 | .probe = probe_spi_rdid, |
| 7491 | .probe_timing = TIMING_ZERO, |
| 7492 | .block_erasers = |
| 7493 | { |
| 7494 | { |
| 7495 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7496 | .block_erase = spi_block_erase_20, |
| 7497 | }, { |
| 7498 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7499 | .block_erase = spi_block_erase_d7, |
| 7500 | }, { |
| 7501 | .eraseblocks = { {32 * 1024, 512} }, |
| 7502 | .block_erase = spi_block_erase_52, |
| 7503 | }, { |
| 7504 | .eraseblocks = { {64 * 1024, 256} }, |
| 7505 | .block_erase = spi_block_erase_d8, |
| 7506 | }, { |
| 7507 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7508 | .block_erase = spi_block_erase_60, |
| 7509 | }, { |
| 7510 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7511 | .block_erase = spi_block_erase_c7, |
| 7512 | } |
| 7513 | }, |
| 7514 | .unlock = spi_disable_blockprotect, |
| 7515 | .write = spi_chip_write_256, |
| 7516 | .read = spi_chip_read, |
| 7517 | .voltage = {2300, 3600}, |
| 7518 | }, |
| 7519 | |
| 7520 | { |
| 7521 | .vendor = "ISSI", |
David Hendricks | 61818dc | 2018-10-28 01:02:21 +0000 | [diff] [blame] | 7522 | .name = "IS25LP256", |
| 7523 | .bustype = BUS_SPI, |
| 7524 | .manufacture_id = ISSI_ID_SPI, |
| 7525 | .model_id = ISSI_IS25LP256, |
| 7526 | .total_size = 32768, |
| 7527 | .page_size = 256, |
| 7528 | /* supports SFDP */ |
| 7529 | /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */ |
Nico Huber | ad55d5a | 2022-06-20 19:32:16 +0200 | [diff] [blame] | 7530 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 7531 | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716, |
David Hendricks | 61818dc | 2018-10-28 01:02:21 +0000 | [diff] [blame] | 7532 | .tested = TEST_OK_PREW, |
| 7533 | .probe = probe_spi_rdid, |
| 7534 | .probe_timing = TIMING_ZERO, |
| 7535 | .block_erasers = |
| 7536 | { |
| 7537 | { |
| 7538 | .eraseblocks = { {4 * 1024, 8192} }, |
| 7539 | .block_erase = spi_block_erase_21, |
| 7540 | }, { |
| 7541 | .eraseblocks = { {4 * 1024, 8192} }, |
| 7542 | .block_erase = spi_block_erase_20, |
| 7543 | /* could also use spi_block_erase_d7 */ |
| 7544 | }, { |
| 7545 | .eraseblocks = { {32 * 1024, 1024} }, |
| 7546 | .block_erase = spi_block_erase_5c, |
| 7547 | }, { |
| 7548 | .eraseblocks = { {32 * 1024, 1024} }, |
| 7549 | .block_erase = spi_block_erase_52, |
| 7550 | }, { |
| 7551 | .eraseblocks = { {64 * 1024, 512} }, |
| 7552 | .block_erase = spi_block_erase_dc, |
| 7553 | }, { |
| 7554 | .eraseblocks = { {64 * 1024, 512} }, |
| 7555 | .block_erase = spi_block_erase_d8, |
| 7556 | }, { |
| 7557 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 7558 | .block_erase = spi_block_erase_60, |
| 7559 | }, { |
| 7560 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 7561 | .block_erase = spi_block_erase_c7, |
| 7562 | } |
| 7563 | }, |
| 7564 | .unlock = spi_disable_blockprotect, |
| 7565 | .write = spi_chip_write_256, |
| 7566 | .read = spi_chip_read, |
| 7567 | .voltage = {2300, 3600}, |
| 7568 | }, |
| 7569 | |
| 7570 | { |
| 7571 | .vendor = "ISSI", |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 7572 | .name = "IS25WP032", |
| 7573 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 7574 | .manufacture_id = ISSI_ID_SPI, |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 7575 | .model_id = ISSI_IS25WP032, |
| 7576 | .total_size = 4096, |
| 7577 | .page_size = 256, |
| 7578 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 7579 | /* QPI enable 0x35, disable 0xF5 */ |
| 7580 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 7581 | .tested = TEST_UNTESTED, |
| 7582 | .probe = probe_spi_rdid, |
| 7583 | .probe_timing = TIMING_ZERO, |
| 7584 | .block_erasers = |
| 7585 | { |
| 7586 | { |
| 7587 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7588 | .block_erase = spi_block_erase_20, |
| 7589 | }, { |
| 7590 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7591 | .block_erase = spi_block_erase_d7, |
| 7592 | }, { |
| 7593 | .eraseblocks = { {32 * 1024, 128} }, |
| 7594 | .block_erase = spi_block_erase_52, |
| 7595 | }, { |
| 7596 | .eraseblocks = { {64 * 1024, 64} }, |
| 7597 | .block_erase = spi_block_erase_d8, |
| 7598 | }, { |
| 7599 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7600 | .block_erase = spi_block_erase_60, |
| 7601 | }, { |
| 7602 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7603 | .block_erase = spi_block_erase_c7, |
| 7604 | } |
| 7605 | }, |
| 7606 | .unlock = spi_disable_blockprotect, |
| 7607 | .write = spi_chip_write_256, |
| 7608 | .read = spi_chip_read, |
| 7609 | .voltage = {1650, 1950}, |
| 7610 | }, |
| 7611 | |
| 7612 | { |
| 7613 | .vendor = "ISSI", |
| 7614 | .name = "IS25WP064", |
| 7615 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 7616 | .manufacture_id = ISSI_ID_SPI, |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 7617 | .model_id = ISSI_IS25WP064, |
| 7618 | .total_size = 8192, |
| 7619 | .page_size = 256, |
| 7620 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 7621 | /* QPI enable 0x35, disable 0xF5 */ |
| 7622 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 7623 | .tested = TEST_OK_PREW, |
| 7624 | .probe = probe_spi_rdid, |
| 7625 | .probe_timing = TIMING_ZERO, |
| 7626 | .block_erasers = |
| 7627 | { |
| 7628 | { |
| 7629 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7630 | .block_erase = spi_block_erase_20, |
| 7631 | }, { |
| 7632 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7633 | .block_erase = spi_block_erase_d7, |
| 7634 | }, { |
| 7635 | .eraseblocks = { {32 * 1024, 256} }, |
| 7636 | .block_erase = spi_block_erase_52, |
| 7637 | }, { |
| 7638 | .eraseblocks = { {64 * 1024, 128} }, |
| 7639 | .block_erase = spi_block_erase_d8, |
| 7640 | }, { |
| 7641 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7642 | .block_erase = spi_block_erase_60, |
| 7643 | }, { |
| 7644 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7645 | .block_erase = spi_block_erase_c7, |
| 7646 | } |
| 7647 | }, |
| 7648 | .unlock = spi_disable_blockprotect, |
| 7649 | .write = spi_chip_write_256, |
| 7650 | .read = spi_chip_read, |
| 7651 | .voltage = {1650, 1950}, |
| 7652 | }, |
| 7653 | |
| 7654 | { |
| 7655 | .vendor = "ISSI", |
David Hendricks | 3083ed9 | 2017-05-02 13:25:56 -0700 | [diff] [blame] | 7656 | .name = "IS25WP128", |
| 7657 | .bustype = BUS_SPI, |
| 7658 | .manufacture_id = ISSI_ID_SPI, |
| 7659 | .model_id = ISSI_IS25WP128, |
| 7660 | .total_size = 16384, |
| 7661 | .page_size = 256, |
| 7662 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 7663 | /* QPI enable 0x35, disable 0xF5 */ |
| 7664 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
David Hendricks | 3083ed9 | 2017-05-02 13:25:56 -0700 | [diff] [blame] | 7665 | .tested = TEST_OK_PREW, |
| 7666 | .probe = probe_spi_rdid, |
| 7667 | .probe_timing = TIMING_ZERO, |
| 7668 | .block_erasers = |
| 7669 | { |
| 7670 | { |
| 7671 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7672 | .block_erase = spi_block_erase_20, |
| 7673 | }, { |
| 7674 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7675 | .block_erase = spi_block_erase_d7, |
| 7676 | }, { |
| 7677 | .eraseblocks = { {32 * 1024, 512} }, |
| 7678 | .block_erase = spi_block_erase_52, |
| 7679 | }, { |
| 7680 | .eraseblocks = { {64 * 1024, 256} }, |
| 7681 | .block_erase = spi_block_erase_d8, |
| 7682 | }, { |
| 7683 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7684 | .block_erase = spi_block_erase_60, |
| 7685 | }, { |
| 7686 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7687 | .block_erase = spi_block_erase_c7, |
| 7688 | } |
| 7689 | }, |
| 7690 | .unlock = spi_disable_blockprotect, |
| 7691 | .write = spi_chip_write_256, |
| 7692 | .read = spi_chip_read, |
| 7693 | .voltage = {1650, 1950}, |
| 7694 | }, |
| 7695 | |
| 7696 | { |
| 7697 | .vendor = "ISSI", |
David Hendricks | 61818dc | 2018-10-28 01:02:21 +0000 | [diff] [blame] | 7698 | .name = "IS25WP256", |
| 7699 | .bustype = BUS_SPI, |
| 7700 | .manufacture_id = ISSI_ID_SPI, |
| 7701 | .model_id = ISSI_IS25WP256, |
| 7702 | .total_size = 32768, |
| 7703 | .page_size = 256, |
| 7704 | /* supports SFDP */ |
| 7705 | /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */ |
Nico Huber | ad55d5a | 2022-06-20 19:32:16 +0200 | [diff] [blame] | 7706 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 7707 | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716, |
David Hendricks | 61818dc | 2018-10-28 01:02:21 +0000 | [diff] [blame] | 7708 | .tested = TEST_OK_PREW, |
| 7709 | .probe = probe_spi_rdid, |
| 7710 | .probe_timing = TIMING_ZERO, |
| 7711 | .block_erasers = |
| 7712 | { |
| 7713 | { |
| 7714 | .eraseblocks = { {4 * 1024, 8192} }, |
| 7715 | .block_erase = spi_block_erase_21, |
| 7716 | }, { |
| 7717 | .eraseblocks = { {4 * 1024, 8192} }, |
| 7718 | .block_erase = spi_block_erase_20, |
| 7719 | /* could also use spi_block_erase_d7 */ |
| 7720 | }, { |
| 7721 | .eraseblocks = { {32 * 1024, 1024} }, |
| 7722 | .block_erase = spi_block_erase_5c, |
| 7723 | }, { |
| 7724 | .eraseblocks = { {32 * 1024, 1024} }, |
| 7725 | .block_erase = spi_block_erase_52, |
| 7726 | }, { |
| 7727 | .eraseblocks = { {64 * 1024, 512} }, |
| 7728 | .block_erase = spi_block_erase_dc, |
| 7729 | }, { |
| 7730 | .eraseblocks = { {64 * 1024, 512} }, |
| 7731 | .block_erase = spi_block_erase_d8, |
| 7732 | }, { |
| 7733 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 7734 | .block_erase = spi_block_erase_60, |
| 7735 | }, { |
| 7736 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 7737 | .block_erase = spi_block_erase_c7, |
| 7738 | } |
| 7739 | }, |
| 7740 | .unlock = spi_disable_blockprotect, |
| 7741 | .write = spi_chip_write_256, |
| 7742 | .read = spi_chip_read, |
| 7743 | .voltage = {1650, 1950}, |
| 7744 | }, |
| 7745 | |
| 7746 | { |
| 7747 | .vendor = "ISSI", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 7748 | .name = "IS29GL064B", |
| 7749 | .bustype = BUS_PARALLEL, |
| 7750 | .manufacture_id = ISSI_ID, |
| 7751 | .model_id = ISSI_PMC_IS29GL064B, |
| 7752 | .total_size = 8192, |
| 7753 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7754 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7755 | .tested = TEST_UNTESTED, |
| 7756 | .probe = probe_jedec_29gl, |
| 7757 | .probe_timing = TIMING_ZERO, |
| 7758 | .block_erasers = |
| 7759 | { |
| 7760 | { |
| 7761 | .eraseblocks = { |
| 7762 | {8 * 1024, 8}, |
| 7763 | {64 * 1024, 127}, |
| 7764 | }, |
| 7765 | .block_erase = erase_sector_jedec, |
| 7766 | }, { |
| 7767 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7768 | .block_erase = erase_chip_block_jedec, |
| 7769 | }, |
| 7770 | }, |
| 7771 | .write = write_jedec_1, |
| 7772 | .read = read_memmapped, |
| 7773 | .voltage = {2700, 3600}, |
| 7774 | }, |
| 7775 | |
| 7776 | { |
| 7777 | .vendor = "ISSI", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7778 | .name = "IS29GL064H/L", |
| 7779 | .bustype = BUS_PARALLEL, |
| 7780 | .manufacture_id = ISSI_ID, |
| 7781 | .model_id = ISSI_PMC_IS29GL064HL, |
| 7782 | .total_size = 8192, |
| 7783 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7784 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7785 | .tested = TEST_UNTESTED, |
| 7786 | .probe = probe_jedec_29gl, |
| 7787 | .probe_timing = TIMING_ZERO, |
| 7788 | .block_erasers = |
| 7789 | { |
| 7790 | { |
| 7791 | .eraseblocks = { {64 * 1024, 128} }, |
| 7792 | .block_erase = erase_sector_jedec, |
| 7793 | }, { |
| 7794 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7795 | .block_erase = erase_chip_block_jedec, |
| 7796 | }, |
| 7797 | }, |
| 7798 | .write = write_jedec_1, |
| 7799 | .read = read_memmapped, |
| 7800 | .voltage = {2700, 3600}, |
| 7801 | }, |
| 7802 | |
| 7803 | { |
| 7804 | .vendor = "ISSI", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 7805 | .name = "IS29GL064T", |
| 7806 | .bustype = BUS_PARALLEL, |
| 7807 | .manufacture_id = ISSI_ID, |
| 7808 | .model_id = ISSI_PMC_IS29GL064T, |
| 7809 | .total_size = 8192, |
| 7810 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7811 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7812 | .tested = TEST_UNTESTED, |
| 7813 | .probe = probe_jedec_29gl, |
| 7814 | .probe_timing = TIMING_ZERO, |
| 7815 | .block_erasers = |
| 7816 | { |
| 7817 | { |
| 7818 | .eraseblocks = { |
| 7819 | {64 * 1024, 127}, |
| 7820 | {8 * 1024, 8}, |
| 7821 | }, |
| 7822 | .block_erase = erase_sector_jedec, |
| 7823 | }, { |
| 7824 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7825 | .block_erase = erase_chip_block_jedec, |
| 7826 | }, |
| 7827 | }, |
| 7828 | .write = write_jedec_1, |
| 7829 | .read = read_memmapped, |
| 7830 | .voltage = {2700, 3600}, |
| 7831 | }, |
| 7832 | |
| 7833 | { |
| 7834 | .vendor = "ISSI", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 7835 | .name = "IS29GL128H/L", |
| 7836 | .bustype = BUS_PARALLEL, |
| 7837 | .manufacture_id = ISSI_ID, |
| 7838 | .model_id = ISSI_PMC_IS29GL128HL, |
| 7839 | .total_size = 16384, |
| 7840 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7841 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7842 | .tested = TEST_UNTESTED, |
| 7843 | .probe = probe_jedec_29gl, |
| 7844 | .probe_timing = TIMING_ZERO, |
| 7845 | .block_erasers = |
| 7846 | { |
| 7847 | { |
| 7848 | .eraseblocks = { {128 * 1024, 128} }, |
| 7849 | .block_erase = erase_sector_jedec, |
| 7850 | }, { |
| 7851 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7852 | .block_erase = erase_chip_block_jedec, |
| 7853 | }, |
| 7854 | }, |
| 7855 | .write = write_jedec_1, |
| 7856 | .read = read_memmapped, |
| 7857 | .voltage = {2700, 3600}, |
| 7858 | }, |
| 7859 | |
| 7860 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7861 | .vendor = "Intel", |
| 7862 | .name = "25F160S33B8", |
| 7863 | .bustype = BUS_SPI, |
| 7864 | .manufacture_id = INTEL_ID, |
| 7865 | .model_id = INTEL_25F160S33B8, |
| 7866 | .total_size = 2048, |
| 7867 | .page_size = 256, |
| 7868 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 7869 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7870 | .tested = TEST_UNTESTED, |
| 7871 | .probe = probe_spi_rdid, |
| 7872 | .probe_timing = TIMING_ZERO, |
| 7873 | .block_erasers = |
| 7874 | { |
| 7875 | { |
| 7876 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 7877 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 7878 | * have no effect on the memory contents, but sets a flag in the SR. |
| 7879 | .eraseblocks = { |
| 7880 | {8 * 1024, 8}, |
| 7881 | {64 * 1024, 31} // inaccessible |
| 7882 | }, |
| 7883 | .block_erase = spi_block_erase_40, |
| 7884 | }, { */ |
| 7885 | .eraseblocks = { {64 * 1024, 32} }, |
| 7886 | .block_erase = spi_block_erase_d8, |
| 7887 | }, { |
| 7888 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7889 | .block_erase = spi_block_erase_c7, |
| 7890 | } |
| 7891 | }, |
| 7892 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 7893 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 7894 | .write = spi_chip_write_256, |
| 7895 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 7896 | .voltage = {2700, 3600}, |
| 7897 | }, |
| 7898 | |
| 7899 | { |
| 7900 | .vendor = "Intel", |
| 7901 | .name = "25F160S33T8", |
| 7902 | .bustype = BUS_SPI, |
| 7903 | .manufacture_id = INTEL_ID, |
| 7904 | .model_id = INTEL_25F160S33T8, |
| 7905 | .total_size = 2048, |
| 7906 | .page_size = 256, |
| 7907 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 7908 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7909 | .tested = TEST_UNTESTED, |
| 7910 | .probe = probe_spi_rdid, |
| 7911 | .probe_timing = TIMING_ZERO, |
| 7912 | .block_erasers = |
| 7913 | { |
| 7914 | { |
| 7915 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 7916 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 7917 | * have no effect on the memory contents, but sets a flag in the SR. |
| 7918 | .eraseblocks = { |
| 7919 | {64 * 1024, 31}, // inaccessible |
| 7920 | {8 * 1024, 8} |
| 7921 | }, |
| 7922 | .block_erase = spi_block_erase_40, |
| 7923 | }, { */ |
| 7924 | .eraseblocks = { {64 * 1024, 32} }, |
| 7925 | .block_erase = spi_block_erase_d8, |
| 7926 | }, { |
| 7927 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7928 | .block_erase = spi_block_erase_c7, |
| 7929 | } |
| 7930 | }, |
| 7931 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 7932 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 7933 | .write = spi_chip_write_256, |
| 7934 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 7935 | .voltage = {2700, 3600}, |
| 7936 | }, |
| 7937 | |
| 7938 | { |
| 7939 | .vendor = "Intel", |
| 7940 | .name = "25F320S33B8", |
| 7941 | .bustype = BUS_SPI, |
| 7942 | .manufacture_id = INTEL_ID, |
| 7943 | .model_id = INTEL_25F320S33B8, |
| 7944 | .total_size = 4096, |
| 7945 | .page_size = 256, |
| 7946 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 7947 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7948 | .tested = TEST_UNTESTED, |
| 7949 | .probe = probe_spi_rdid, |
| 7950 | .probe_timing = TIMING_ZERO, |
| 7951 | .block_erasers = |
| 7952 | { |
| 7953 | { |
| 7954 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 7955 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 7956 | * have no effect on the memory contents, but sets a flag in the SR. |
| 7957 | .eraseblocks = { |
| 7958 | {8 * 1024, 8}, |
| 7959 | {64 * 1024, 63} // inaccessible |
| 7960 | }, |
| 7961 | .block_erase = spi_block_erase_40, |
| 7962 | }, { */ |
| 7963 | .eraseblocks = { {64 * 1024, 64} }, |
| 7964 | .block_erase = spi_block_erase_d8, |
| 7965 | }, { |
| 7966 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7967 | .block_erase = spi_block_erase_c7, |
| 7968 | } |
| 7969 | }, |
| 7970 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 7971 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 7972 | .write = spi_chip_write_256, |
| 7973 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 7974 | .voltage = {2700, 3600}, |
| 7975 | }, |
| 7976 | |
| 7977 | { |
| 7978 | .vendor = "Intel", |
| 7979 | .name = "25F320S33T8", |
| 7980 | .bustype = BUS_SPI, |
| 7981 | .manufacture_id = INTEL_ID, |
| 7982 | .model_id = INTEL_25F320S33T8, |
| 7983 | .total_size = 4096, |
| 7984 | .page_size = 256, |
| 7985 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 7986 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7987 | .tested = TEST_UNTESTED, |
| 7988 | .probe = probe_spi_rdid, |
| 7989 | .probe_timing = TIMING_ZERO, |
| 7990 | .block_erasers = |
| 7991 | { |
| 7992 | { |
| 7993 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 7994 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 7995 | * have no effect on the memory contents, but sets a flag in the SR. |
| 7996 | .eraseblocks = { |
| 7997 | {64 * 1024, 63}, // inaccessible |
| 7998 | {8 * 1024, 8} |
| 7999 | }, |
| 8000 | .block_erase = spi_block_erase_40, |
| 8001 | }, { */ |
| 8002 | .eraseblocks = { {64 * 1024, 64} }, |
| 8003 | .block_erase = spi_block_erase_d8, |
| 8004 | }, { |
| 8005 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8006 | .block_erase = spi_block_erase_c7, |
| 8007 | } |
| 8008 | }, |
| 8009 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 8010 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 8011 | .write = spi_chip_write_256, |
| 8012 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 8013 | .voltage = {2700, 3600}, |
| 8014 | }, |
| 8015 | |
| 8016 | { |
| 8017 | .vendor = "Intel", |
| 8018 | .name = "25F640S33B8", |
| 8019 | .bustype = BUS_SPI, |
| 8020 | .manufacture_id = INTEL_ID, |
| 8021 | .model_id = INTEL_25F640S33B8, |
| 8022 | .total_size = 8192, |
| 8023 | .page_size = 256, |
| 8024 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 8025 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Zoltan HERPAI | e0e8b2b | 2020-08-08 16:04:34 +0200 | [diff] [blame] | 8026 | .tested = TEST_OK_PREW, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8027 | .probe = probe_spi_rdid, |
| 8028 | .probe_timing = TIMING_ZERO, |
| 8029 | .block_erasers = |
| 8030 | { |
| 8031 | { |
| 8032 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 8033 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 8034 | * have no effect on the memory contents, but sets a flag in the SR. |
| 8035 | .eraseblocks = { |
| 8036 | {8 * 1024, 8}, |
| 8037 | {64 * 1024, 127} // inaccessible |
| 8038 | }, |
| 8039 | .block_erase = spi_block_erase_40, |
| 8040 | }, { */ |
| 8041 | .eraseblocks = { {64 * 1024, 128} }, |
| 8042 | .block_erase = spi_block_erase_d8, |
| 8043 | }, { |
| 8044 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8045 | .block_erase = spi_block_erase_c7, |
| 8046 | } |
| 8047 | }, |
| 8048 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 8049 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 8050 | .write = spi_chip_write_256, |
| 8051 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 8052 | .voltage = {2700, 3600}, |
| 8053 | }, |
| 8054 | |
| 8055 | { |
| 8056 | .vendor = "Intel", |
| 8057 | .name = "25F640S33T8", |
| 8058 | .bustype = BUS_SPI, |
| 8059 | .manufacture_id = INTEL_ID, |
| 8060 | .model_id = INTEL_25F640S33T8, |
| 8061 | .total_size = 8192, |
| 8062 | .page_size = 256, |
| 8063 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 8064 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8065 | .tested = TEST_UNTESTED, |
| 8066 | .probe = probe_spi_rdid, |
| 8067 | .probe_timing = TIMING_ZERO, |
| 8068 | .block_erasers = |
| 8069 | { |
| 8070 | { |
| 8071 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 8072 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 8073 | * have no effect on the memory contents, but sets a flag in the SR. |
| 8074 | .eraseblocks = { |
| 8075 | {64 * 1024, 127}, // inaccessible |
| 8076 | {8 * 1024, 8} |
| 8077 | }, |
| 8078 | .block_erase = spi_block_erase_40, |
| 8079 | }, { */ |
| 8080 | .eraseblocks = { {64 * 1024, 128} }, |
| 8081 | .block_erase = spi_block_erase_d8, |
| 8082 | }, { |
| 8083 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8084 | .block_erase = spi_block_erase_c7, |
| 8085 | } |
| 8086 | }, |
| 8087 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 8088 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 8089 | .write = spi_chip_write_256, |
| 8090 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 8091 | .voltage = {2700, 3600}, |
| 8092 | }, |
| 8093 | |
| 8094 | { |
| 8095 | .vendor = "Intel", |
| 8096 | .name = "28F001BN/BX-B", |
| 8097 | .bustype = BUS_PARALLEL, |
| 8098 | .manufacture_id = INTEL_ID, |
| 8099 | .model_id = INTEL_28F001B, |
| 8100 | .total_size = 128, |
| 8101 | .page_size = 128 * 1024, /* 8k + 2x4k + 112k */ |
| 8102 | .tested = TEST_UNTESTED, |
| 8103 | .probe = probe_jedec, |
| 8104 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8105 | .block_erasers = |
| 8106 | { |
| 8107 | { |
| 8108 | .eraseblocks = { |
| 8109 | {8 * 1024, 1}, |
| 8110 | {4 * 1024, 2}, |
| 8111 | {112 * 1024, 1}, |
| 8112 | }, |
| 8113 | .block_erase = erase_block_82802ab, |
| 8114 | }, |
| 8115 | }, |
| 8116 | .write = write_82802ab, |
| 8117 | .read = read_memmapped, |
| 8118 | .voltage = {4500, 5500}, |
| 8119 | }, |
| 8120 | |
| 8121 | { |
| 8122 | .vendor = "Intel", |
| 8123 | .name = "28F001BN/BX-T", |
| 8124 | .bustype = BUS_PARALLEL, |
| 8125 | .manufacture_id = INTEL_ID, |
| 8126 | .model_id = INTEL_28F001T, |
| 8127 | .total_size = 128, |
| 8128 | .page_size = 128 * 1024, /* 112k + 2x4k + 8k */ |
| 8129 | .tested = TEST_OK_PREW, |
| 8130 | .probe = probe_jedec, |
| 8131 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8132 | .block_erasers = |
| 8133 | { |
| 8134 | { |
| 8135 | .eraseblocks = { |
| 8136 | {112 * 1024, 1}, |
| 8137 | {4 * 1024, 2}, |
| 8138 | {8 * 1024, 1}, |
| 8139 | }, |
| 8140 | .block_erase = erase_block_82802ab, |
| 8141 | }, |
| 8142 | }, |
| 8143 | .write = write_82802ab, |
| 8144 | .read = read_memmapped, |
| 8145 | .voltage = {4500, 5500}, |
| 8146 | }, |
| 8147 | |
| 8148 | { |
| 8149 | .vendor = "Intel", |
| 8150 | .name = "28F002BC/BL/BV/BX-T", |
| 8151 | .bustype = BUS_PARALLEL, |
| 8152 | .manufacture_id = INTEL_ID, |
| 8153 | .model_id = INTEL_28F002T, |
| 8154 | .total_size = 256, |
| 8155 | .page_size = 256 * 1024, |
| 8156 | .tested = TEST_OK_PRE, |
| 8157 | .probe = probe_82802ab, |
| 8158 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8159 | .block_erasers = |
| 8160 | { |
| 8161 | { |
| 8162 | .eraseblocks = { |
| 8163 | {128 * 1024, 1}, |
| 8164 | {96 * 1024, 1}, |
| 8165 | {8 * 1024, 2}, |
| 8166 | {16 * 1024, 1}, |
| 8167 | }, |
| 8168 | .block_erase = erase_block_82802ab, |
| 8169 | }, |
| 8170 | }, |
| 8171 | .write = write_82802ab, |
| 8172 | .read = read_memmapped, |
| 8173 | }, |
| 8174 | |
| 8175 | { |
| 8176 | .vendor = "Intel", |
| 8177 | .name = "28F004B5/BE/BV/BX-B", |
| 8178 | .bustype = BUS_PARALLEL, |
| 8179 | .manufacture_id = INTEL_ID, |
| 8180 | .model_id = INTEL_28F004B, |
| 8181 | .total_size = 512, |
| 8182 | .page_size = 128 * 1024, /* maximal block size */ |
| 8183 | .tested = TEST_UNTESTED, |
| 8184 | .probe = probe_82802ab, |
| 8185 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8186 | .block_erasers = |
| 8187 | { |
| 8188 | { |
| 8189 | .eraseblocks = { |
| 8190 | {16 * 1024, 1}, |
| 8191 | {8 * 1024, 2}, |
| 8192 | {96 * 1024, 1}, |
| 8193 | {128 * 1024, 3}, |
| 8194 | }, |
| 8195 | .block_erase = erase_block_82802ab, |
| 8196 | }, |
| 8197 | }, |
| 8198 | .write = write_82802ab, |
| 8199 | .read = read_memmapped, |
| 8200 | }, |
| 8201 | |
| 8202 | { |
| 8203 | .vendor = "Intel", |
| 8204 | .name = "28F004B5/BE/BV/BX-T", |
| 8205 | .bustype = BUS_PARALLEL, |
| 8206 | .manufacture_id = INTEL_ID, |
| 8207 | .model_id = INTEL_28F004T, |
| 8208 | .total_size = 512, |
| 8209 | .page_size = 128 * 1024, /* maximal block size */ |
| 8210 | .tested = TEST_UNTESTED, |
| 8211 | .probe = probe_82802ab, |
| 8212 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8213 | .block_erasers = |
| 8214 | { |
| 8215 | { |
| 8216 | .eraseblocks = { |
| 8217 | {128 * 1024, 3}, |
| 8218 | {96 * 1024, 1}, |
| 8219 | {8 * 1024, 2}, |
| 8220 | {16 * 1024, 1}, |
| 8221 | }, |
| 8222 | .block_erase = erase_block_82802ab, |
| 8223 | }, |
| 8224 | }, |
| 8225 | .write = write_82802ab, |
| 8226 | .read = read_memmapped, |
| 8227 | }, |
| 8228 | |
| 8229 | { |
| 8230 | .vendor = "Intel", |
| 8231 | .name = "28F008S3/S5/SC", |
| 8232 | .bustype = BUS_PARALLEL, |
| 8233 | .manufacture_id = INTEL_ID, |
| 8234 | .model_id = INTEL_28F004S3, |
| 8235 | .total_size = 512, |
| 8236 | .page_size = 256, |
| 8237 | .tested = TEST_UNTESTED, |
| 8238 | .probe = probe_82802ab, |
| 8239 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8240 | .block_erasers = |
| 8241 | { |
| 8242 | { |
| 8243 | .eraseblocks = { {64 * 1024, 8} }, |
| 8244 | .block_erase = erase_block_82802ab, |
| 8245 | }, |
| 8246 | }, |
| 8247 | .unlock = unlock_28f004s5, |
| 8248 | .write = write_82802ab, |
| 8249 | .read = read_memmapped, |
| 8250 | }, |
| 8251 | |
| 8252 | { |
| 8253 | .vendor = "Intel", |
| 8254 | .name = "28F400BV/BX/CE/CV-B", |
| 8255 | .bustype = BUS_PARALLEL, |
| 8256 | .manufacture_id = INTEL_ID, |
| 8257 | .model_id = INTEL_28F400B, |
| 8258 | .total_size = 512, |
| 8259 | .page_size = 128 * 1024, /* maximal block size */ |
| 8260 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 8261 | .tested = TEST_UNTESTED, |
| 8262 | .probe = probe_82802ab, |
| 8263 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8264 | .block_erasers = |
| 8265 | { |
| 8266 | { |
| 8267 | .eraseblocks = { |
| 8268 | {16 * 1024, 1}, |
| 8269 | {8 * 1024, 2}, |
| 8270 | {96 * 1024, 1}, |
| 8271 | {128 * 1024, 3}, |
| 8272 | }, |
| 8273 | .block_erase = erase_block_82802ab, |
| 8274 | }, |
| 8275 | }, |
| 8276 | .write = write_82802ab, |
| 8277 | .read = read_memmapped, |
| 8278 | }, |
| 8279 | |
| 8280 | { |
| 8281 | .vendor = "Intel", |
| 8282 | .name = "28F400BV/BX/CE/CV-T", |
| 8283 | .bustype = BUS_PARALLEL, |
| 8284 | .manufacture_id = INTEL_ID, |
| 8285 | .model_id = INTEL_28F400T, |
| 8286 | .total_size = 512, |
| 8287 | .page_size = 128 * 1024, /* maximal block size */ |
| 8288 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 8289 | .tested = TEST_UNTESTED, |
| 8290 | .probe = probe_82802ab, |
| 8291 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8292 | .block_erasers = |
| 8293 | { |
| 8294 | { |
| 8295 | .eraseblocks = { |
| 8296 | {128 * 1024, 3}, |
| 8297 | {96 * 1024, 1}, |
| 8298 | {8 * 1024, 2}, |
| 8299 | {16 * 1024, 1}, |
| 8300 | }, |
| 8301 | .block_erase = erase_block_82802ab, |
| 8302 | }, |
| 8303 | }, |
| 8304 | .write = write_82802ab, |
| 8305 | .read = read_memmapped, |
| 8306 | }, |
| 8307 | |
| 8308 | { |
| 8309 | .vendor = "Intel", |
| 8310 | .name = "82802AB", |
| 8311 | .bustype = BUS_FWH, |
| 8312 | .manufacture_id = INTEL_ID, |
| 8313 | .model_id = INTEL_82802AB, |
| 8314 | .total_size = 512, |
| 8315 | .page_size = 64 * 1024, |
| 8316 | .feature_bits = FEATURE_REGISTERMAP, |
Alan Green | 8855257 | 2019-07-24 13:56:06 +1000 | [diff] [blame] | 8317 | .tested = TEST_OK_PREW, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8318 | .probe = probe_82802ab, |
| 8319 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
| 8320 | .block_erasers = |
| 8321 | { |
| 8322 | { |
| 8323 | .eraseblocks = { {64 * 1024, 8} }, |
| 8324 | .block_erase = erase_block_82802ab, |
| 8325 | }, |
| 8326 | }, |
| 8327 | .unlock = unlock_regspace2_uniform_64k, |
| 8328 | .write = write_82802ab, |
| 8329 | .read = read_memmapped, |
| 8330 | .voltage = {3000, 3600}, |
| 8331 | }, |
| 8332 | |
| 8333 | { |
| 8334 | .vendor = "Intel", |
| 8335 | .name = "82802AC", |
| 8336 | .bustype = BUS_FWH, |
| 8337 | .manufacture_id = INTEL_ID, |
| 8338 | .model_id = INTEL_82802AC, |
| 8339 | .total_size = 1024, |
| 8340 | .page_size = 64 * 1024, |
| 8341 | .feature_bits = FEATURE_REGISTERMAP, |
| 8342 | .tested = TEST_OK_PR, |
| 8343 | .probe = probe_82802ab, |
| 8344 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
| 8345 | .block_erasers = |
| 8346 | { |
| 8347 | { |
| 8348 | .eraseblocks = { {64 * 1024, 16} }, |
| 8349 | .block_erase = erase_block_82802ab, |
| 8350 | }, |
| 8351 | }, |
| 8352 | .unlock = unlock_regspace2_uniform_64k, |
| 8353 | .write = write_82802ab, |
| 8354 | .read = read_memmapped, |
| 8355 | .voltage = {3000, 3600}, |
| 8356 | }, |
| 8357 | |
| 8358 | { |
| 8359 | .vendor = "Macronix", |
| 8360 | .name = "MX23L12854", |
| 8361 | .bustype = BUS_SPI, |
| 8362 | .manufacture_id = MACRONIX_ID, |
| 8363 | .model_id = MACRONIX_MX23L12854, |
| 8364 | .total_size = 16384, |
| 8365 | .page_size = 256, |
| 8366 | .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA}, |
| 8367 | .probe = probe_spi_rdid, |
| 8368 | .probe_timing = TIMING_ZERO, |
| 8369 | .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */ |
| 8370 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8371 | .voltage = {3000, 3600}, |
| 8372 | }, |
| 8373 | |
| 8374 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8375 | .vendor = "Macronix", |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 8376 | .name = "MX23L1654", |
| 8377 | .bustype = BUS_SPI, |
| 8378 | .manufacture_id = MACRONIX_ID, |
| 8379 | .model_id = MACRONIX_MX23L1654, |
| 8380 | .total_size = 2048, |
| 8381 | .page_size = 256, |
| 8382 | .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA}, |
| 8383 | .probe = probe_spi_rdid, |
| 8384 | .probe_timing = TIMING_ZERO, |
| 8385 | .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */ |
| 8386 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8387 | .voltage = {3000, 3600}, |
| 8388 | }, |
| 8389 | |
| 8390 | { |
| 8391 | .vendor = "Macronix", |
Michael Coppola | 4e7f36e | 2014-05-03 23:01:18 +0000 | [diff] [blame] | 8392 | .name = "MX23L3254", |
| 8393 | .bustype = BUS_SPI, |
| 8394 | .manufacture_id = MACRONIX_ID, |
| 8395 | .model_id = MACRONIX_MX23L3254, |
| 8396 | .total_size = 4096, |
| 8397 | .page_size = 256, |
Stefan Tauner | 6455dff | 2014-05-26 00:36:24 +0000 | [diff] [blame] | 8398 | .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA}, |
Michael Coppola | 4e7f36e | 2014-05-03 23:01:18 +0000 | [diff] [blame] | 8399 | .probe = probe_spi_rdid, |
| 8400 | .probe_timing = TIMING_ZERO, |
| 8401 | .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */ |
| 8402 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8403 | .voltage = {3000, 3600}, |
| 8404 | }, |
| 8405 | |
| 8406 | { |
| 8407 | .vendor = "Macronix", |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 8408 | .name = "MX23L6454", |
| 8409 | .bustype = BUS_SPI, |
| 8410 | .manufacture_id = MACRONIX_ID, |
| 8411 | .model_id = MACRONIX_MX23L6454, |
| 8412 | .total_size = 8192, |
| 8413 | .page_size = 256, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 8414 | .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA}, |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 8415 | .probe = probe_spi_rdid, |
| 8416 | .probe_timing = TIMING_ZERO, |
| 8417 | .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */ |
| 8418 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8419 | .voltage = {3000, 3600}, |
| 8420 | }, |
| 8421 | |
| 8422 | { |
| 8423 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 8424 | .name = "MX25L1005(C)/MX25L1006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8425 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8426 | .manufacture_id = MACRONIX_ID, |
| 8427 | .model_id = MACRONIX_MX25L1005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8428 | .total_size = 128, |
| 8429 | .page_size = 256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 8430 | /* MX25L1006E supports SFDP */ |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 8431 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 8432 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8433 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8434 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 8435 | .block_erasers = |
| 8436 | { |
| 8437 | { |
| 8438 | .eraseblocks = { {4 * 1024, 32} }, |
| 8439 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8440 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 8441 | .eraseblocks = { {64 * 1024, 2} }, |
| 8442 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8443 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 8444 | .eraseblocks = { {128 * 1024, 1} }, |
| 8445 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8446 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 8447 | .eraseblocks = { {128 * 1024, 1} }, |
| 8448 | .block_erase = spi_block_erase_c7, |
| 8449 | }, |
| 8450 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8451 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8452 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8453 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 8454 | .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] | 8455 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8456 | }, |
| 8457 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8458 | { |
| 8459 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8460 | .name = "MX25L12805D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8461 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8462 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8463 | .model_id = MACRONIX_MX25L12805D, |
| 8464 | .total_size = 16384, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8465 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8466 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8467 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8468 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8469 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8470 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8471 | .block_erasers = |
| 8472 | { |
| 8473 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8474 | .eraseblocks = { {4 * 1024, 4096} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8475 | .block_erase = spi_block_erase_20, |
| 8476 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8477 | .eraseblocks = { {64 * 1024, 256} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8478 | .block_erase = spi_block_erase_d8, |
| 8479 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8480 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8481 | .block_erase = spi_block_erase_60, |
| 8482 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8483 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8484 | .block_erase = spi_block_erase_c7, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8485 | } |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8486 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8487 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 8488 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8489 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 8490 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8491 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8492 | }, |
| 8493 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8494 | { |
| 8495 | .vendor = "Macronix", |
Tao Xia | 571f6ad | 2021-07-21 16:41:53 +0800 | [diff] [blame] | 8496 | .name = "MX25L12833F/MX25L12835F/MX25L12845E/MX25L12865E/MX25L12873F", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8497 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8498 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8499 | .model_id = MACRONIX_MX25L12805D, |
| 8500 | .total_size = 16384, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8501 | .page_size = 256, |
Tao Xia | 571f6ad | 2021-07-21 16:41:53 +0800 | [diff] [blame] | 8502 | /* OTP: MX25L12833F has 1KB total, others have 512B total; enter 0xB1, exit 0xC1 */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8503 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 8504 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8505 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8506 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8507 | .block_erasers = |
| 8508 | { |
| 8509 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8510 | .eraseblocks = { {4 * 1024, 4096} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8511 | .block_erase = spi_block_erase_20, |
| 8512 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8513 | .eraseblocks = { {32 * 1024, 512} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8514 | .block_erase = spi_block_erase_52, |
| 8515 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8516 | .eraseblocks = { {64 * 1024, 256} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8517 | .block_erase = spi_block_erase_d8, |
| 8518 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8519 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8520 | .block_erase = spi_block_erase_60, |
| 8521 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8522 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8523 | .block_erase = spi_block_erase_c7, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8524 | } |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8525 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8526 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
| 8527 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8528 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8529 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 8530 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8531 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8532 | }, |
| 8533 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8534 | { |
| 8535 | .vendor = "Macronix", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8536 | .name = "MX25L1605", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8537 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8538 | .manufacture_id = MACRONIX_ID, |
| 8539 | .model_id = MACRONIX_MX25L1605, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8540 | .total_size = 2048, |
| 8541 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 8542 | .feature_bits = FEATURE_WRSR_WREN, |
Sven Schnelle | 4bd8a40 | 2011-03-07 10:59:06 +0000 | [diff] [blame] | 8543 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8544 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8545 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8546 | .block_erasers = |
| 8547 | { |
| 8548 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8549 | .eraseblocks = { {64 * 1024, 32} }, |
| 8550 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8551 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8552 | .eraseblocks = { {64 * 1024, 32} }, |
| 8553 | .block_erase = spi_block_erase_d8, |
| 8554 | }, { |
| 8555 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8556 | .block_erase = spi_block_erase_60, |
| 8557 | }, { |
| 8558 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8559 | .block_erase = spi_block_erase_c7, |
| 8560 | }, |
| 8561 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8562 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8563 | .unlock = spi_disable_blockprotect, |
| 8564 | .write = spi_chip_write_256, |
| 8565 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8566 | .voltage = {2700, 3600}, |
| 8567 | }, |
| 8568 | |
| 8569 | { |
| 8570 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8571 | .name = "MX25L1605A/MX25L1606E/MX25L1608E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8572 | .bustype = BUS_SPI, |
| 8573 | .manufacture_id = MACRONIX_ID, |
| 8574 | .model_id = MACRONIX_MX25L1605, |
| 8575 | .total_size = 2048, |
| 8576 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8577 | /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8578 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8579 | .tested = TEST_OK_PREW, |
| 8580 | .probe = probe_spi_rdid, |
| 8581 | .probe_timing = TIMING_ZERO, |
| 8582 | .block_erasers = |
| 8583 | { |
| 8584 | { |
| 8585 | .eraseblocks = { {4 * 1024, 512} }, |
| 8586 | .block_erase = spi_block_erase_20, |
| 8587 | }, { |
| 8588 | .eraseblocks = { {64 * 1024, 32} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8589 | .block_erase = spi_block_erase_52, |
| 8590 | }, { |
| 8591 | .eraseblocks = { {64 * 1024, 32} }, |
| 8592 | .block_erase = spi_block_erase_d8, |
| 8593 | }, { |
| 8594 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8595 | .block_erase = spi_block_erase_60, |
| 8596 | }, { |
| 8597 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8598 | .block_erase = spi_block_erase_c7, |
| 8599 | }, |
| 8600 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8601 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8602 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8603 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8604 | .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] | 8605 | .voltage = {2700, 3600}, |
| 8606 | }, |
| 8607 | |
| 8608 | { |
| 8609 | .vendor = "Macronix", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8610 | .name = "MX25L1605D/MX25L1608D/MX25L1673E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8611 | .bustype = BUS_SPI, |
| 8612 | .manufacture_id = MACRONIX_ID, |
| 8613 | .model_id = MACRONIX_MX25L1605, |
| 8614 | .total_size = 2048, |
| 8615 | .page_size = 256, |
| 8616 | .feature_bits = FEATURE_WRSR_WREN, |
| 8617 | .tested = TEST_OK_PREW, |
| 8618 | .probe = probe_spi_rdid, |
| 8619 | .probe_timing = TIMING_ZERO, |
| 8620 | .block_erasers = |
| 8621 | { |
| 8622 | { |
| 8623 | .eraseblocks = { {4 * 1024, 512} }, |
| 8624 | .block_erase = spi_block_erase_20, |
| 8625 | }, { |
| 8626 | .eraseblocks = { {64 * 1024, 32} }, |
| 8627 | .block_erase = spi_block_erase_d8, |
| 8628 | }, { |
| 8629 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8630 | .block_erase = spi_block_erase_60, |
| 8631 | }, { |
| 8632 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8633 | .block_erase = spi_block_erase_c7, |
| 8634 | }, |
| 8635 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8636 | .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] | 8637 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8638 | .write = spi_chip_write_256, |
| 8639 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8640 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8641 | }, |
| 8642 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8643 | { |
| 8644 | .vendor = "Macronix", |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8645 | .name = "MX25L1635D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8646 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8647 | .manufacture_id = MACRONIX_ID, |
| 8648 | .model_id = MACRONIX_MX25L1635D, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8649 | .total_size = 2048, |
| 8650 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8651 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8652 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Angel Pons | c205487 | 2021-01-15 18:57:32 +0100 | [diff] [blame] | 8653 | .tested = TEST_OK_PREW, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8654 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8655 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8656 | .block_erasers = |
| 8657 | { |
| 8658 | { |
| 8659 | .eraseblocks = { {4 * 1024, 512} }, |
| 8660 | .block_erase = spi_block_erase_20, |
| 8661 | }, { |
| 8662 | .eraseblocks = { {64 * 1024, 32} }, |
| 8663 | .block_erase = spi_block_erase_d8, |
| 8664 | }, { |
| 8665 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8666 | .block_erase = spi_block_erase_60, |
| 8667 | }, { |
| 8668 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8669 | .block_erase = spi_block_erase_c7, |
| 8670 | } |
| 8671 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8672 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8673 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8674 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8675 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8676 | .voltage = {2700, 3600}, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8677 | }, |
Stephan Guilloux | fd31550 | 2009-04-20 22:54:13 +0000 | [diff] [blame] | 8678 | |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8679 | { |
| 8680 | .vendor = "Macronix", |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8681 | .name = "MX25L1635E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8682 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8683 | .manufacture_id = MACRONIX_ID, |
| 8684 | .model_id = MACRONIX_MX25L1635E, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8685 | .total_size = 2048, |
| 8686 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8687 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8688 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8689 | .tested = TEST_UNTESTED, |
| 8690 | .probe = probe_spi_rdid, |
| 8691 | .probe_timing = TIMING_ZERO, |
| 8692 | .block_erasers = |
| 8693 | { |
| 8694 | { |
| 8695 | .eraseblocks = { {4 * 1024, 512} }, |
| 8696 | .block_erase = spi_block_erase_20, |
| 8697 | }, { |
| 8698 | .eraseblocks = { {64 * 1024, 32} }, |
| 8699 | .block_erase = spi_block_erase_d8, |
| 8700 | }, { |
| 8701 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8702 | .block_erase = spi_block_erase_60, |
| 8703 | }, { |
| 8704 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8705 | .block_erase = spi_block_erase_c7, |
| 8706 | } |
| 8707 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8708 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8709 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8710 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8711 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 8712 | .voltage = {2700, 3600}, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8713 | }, |
| 8714 | |
| 8715 | { |
| 8716 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8717 | .name = "MX25L2005(C)/MX25L2006E", |
| 8718 | .bustype = BUS_SPI, |
| 8719 | .manufacture_id = MACRONIX_ID, |
| 8720 | .model_id = MACRONIX_MX25L2005, |
| 8721 | .total_size = 256, |
| 8722 | .page_size = 256, |
| 8723 | .feature_bits = FEATURE_WRSR_WREN, |
| 8724 | .tested = TEST_OK_PREW, |
| 8725 | .probe = probe_spi_rdid, |
| 8726 | .probe_timing = TIMING_ZERO, |
| 8727 | .block_erasers = |
| 8728 | { |
| 8729 | { |
| 8730 | .eraseblocks = { {4 * 1024, 64} }, |
| 8731 | .block_erase = spi_block_erase_20, |
| 8732 | }, { |
| 8733 | .eraseblocks = { {64 * 1024, 4} }, |
| 8734 | .block_erase = spi_block_erase_52, |
| 8735 | }, { |
| 8736 | .eraseblocks = { {64 * 1024, 4} }, |
| 8737 | .block_erase = spi_block_erase_d8, |
| 8738 | }, { |
| 8739 | .eraseblocks = { {256 * 1024, 1} }, |
| 8740 | .block_erase = spi_block_erase_60, |
| 8741 | }, { |
| 8742 | .eraseblocks = { {256 * 1024, 1} }, |
| 8743 | .block_erase = spi_block_erase_c7, |
| 8744 | }, |
| 8745 | }, |
| 8746 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 8747 | .unlock = spi_disable_blockprotect, |
| 8748 | .write = spi_chip_write_256, |
| 8749 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8750 | .voltage = {2700, 3600}, |
| 8751 | }, |
| 8752 | |
| 8753 | { |
| 8754 | .vendor = "Macronix", |
Alan Green | 0370730 | 2019-08-26 12:50:43 +1000 | [diff] [blame] | 8755 | .name = "MX25L25635F/MX25L25645G", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8756 | .bustype = BUS_SPI, |
| 8757 | .manufacture_id = MACRONIX_ID, |
| 8758 | .model_id = MACRONIX_MX25L25635F, |
| 8759 | .total_size = 32768, |
| 8760 | .page_size = 256, |
| 8761 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 8762 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
| 8763 | .tested = TEST_OK_PREW, |
| 8764 | .probe = probe_spi_rdid, |
| 8765 | .probe_timing = TIMING_ZERO, |
| 8766 | .block_erasers = |
| 8767 | { |
| 8768 | { |
| 8769 | .eraseblocks = { {4 * 1024, 8192} }, |
| 8770 | .block_erase = spi_block_erase_21, |
| 8771 | }, { |
| 8772 | .eraseblocks = { {4 * 1024, 8192} }, |
| 8773 | .block_erase = spi_block_erase_20, |
| 8774 | }, { |
| 8775 | .eraseblocks = { {32 * 1024, 1024} }, |
| 8776 | .block_erase = spi_block_erase_5c, |
| 8777 | }, { |
| 8778 | .eraseblocks = { {32 * 1024, 1024} }, |
| 8779 | .block_erase = spi_block_erase_52, |
| 8780 | }, { |
| 8781 | .eraseblocks = { {64 * 1024, 512} }, |
| 8782 | .block_erase = spi_block_erase_dc, |
| 8783 | }, { |
| 8784 | .eraseblocks = { {64 * 1024, 512} }, |
| 8785 | .block_erase = spi_block_erase_d8, |
| 8786 | }, { |
| 8787 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 8788 | .block_erase = spi_block_erase_60, |
| 8789 | }, { |
| 8790 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 8791 | .block_erase = spi_block_erase_c7, |
| 8792 | } |
| 8793 | }, |
| 8794 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
| 8795 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8796 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8797 | .write = spi_chip_write_256, |
| 8798 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8799 | .voltage = {2700, 3600}, |
| 8800 | }, |
| 8801 | |
| 8802 | { |
| 8803 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8804 | .name = "MX25L3205(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8805 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8806 | .manufacture_id = MACRONIX_ID, |
| 8807 | .model_id = MACRONIX_MX25L3205, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8808 | .total_size = 4096, |
| 8809 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 8810 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 8811 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8812 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8813 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8814 | .block_erasers = |
| 8815 | { |
| 8816 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8817 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8818 | .block_erase = spi_block_erase_20, |
| 8819 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8820 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 8821 | .block_erase = spi_block_erase_d8, |
| 8822 | }, { |
| 8823 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8824 | .block_erase = spi_block_erase_60, |
| 8825 | }, { |
| 8826 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8827 | .block_erase = spi_block_erase_c7, |
| 8828 | }, |
| 8829 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8830 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8831 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8832 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8833 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8834 | .voltage = {2700, 3600}, |
| 8835 | }, |
| 8836 | |
| 8837 | { |
| 8838 | .vendor = "Macronix", |
| 8839 | .name = "MX25L3205D/MX25L3208D", |
| 8840 | .bustype = BUS_SPI, |
| 8841 | .manufacture_id = MACRONIX_ID, |
| 8842 | .model_id = MACRONIX_MX25L3205, |
| 8843 | .total_size = 4096, |
| 8844 | .page_size = 256, |
| 8845 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8846 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8847 | .tested = TEST_OK_PREW, |
| 8848 | .probe = probe_spi_rdid, |
| 8849 | .probe_timing = TIMING_ZERO, |
| 8850 | .block_erasers = |
| 8851 | { |
| 8852 | { |
| 8853 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8854 | .block_erase = spi_block_erase_20, |
| 8855 | }, { |
| 8856 | .eraseblocks = { {64 * 1024, 64} }, |
| 8857 | .block_erase = spi_block_erase_d8, |
| 8858 | }, { |
| 8859 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8860 | .block_erase = spi_block_erase_60, |
| 8861 | }, { |
| 8862 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8863 | .block_erase = spi_block_erase_c7, |
| 8864 | }, |
| 8865 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8866 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8867 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8868 | .write = spi_chip_write_256, |
| 8869 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
| 8870 | .voltage = {2700, 3600}, |
| 8871 | }, |
| 8872 | |
| 8873 | { |
| 8874 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8875 | .name = "MX25L3206E/MX25L3208E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8876 | .bustype = BUS_SPI, |
| 8877 | .manufacture_id = MACRONIX_ID, |
| 8878 | .model_id = MACRONIX_MX25L3205, |
| 8879 | .total_size = 4096, |
| 8880 | .page_size = 256, |
| 8881 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8882 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8883 | .tested = TEST_OK_PREW, |
| 8884 | .probe = probe_spi_rdid, |
| 8885 | .probe_timing = TIMING_ZERO, |
| 8886 | .block_erasers = |
| 8887 | { |
| 8888 | { |
| 8889 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8890 | .block_erase = spi_block_erase_20, |
| 8891 | }, { |
| 8892 | .eraseblocks = { {64 * 1024, 64} }, |
| 8893 | .block_erase = spi_block_erase_d8, |
| 8894 | }, { |
| 8895 | .eraseblocks = { {64 * 1024, 64} }, |
| 8896 | .block_erase = spi_block_erase_52, |
| 8897 | }, { |
| 8898 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8899 | .block_erase = spi_block_erase_60, |
| 8900 | }, { |
| 8901 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8902 | .block_erase = spi_block_erase_c7, |
| 8903 | }, |
| 8904 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8905 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8906 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8907 | .write = spi_chip_write_256, |
| 8908 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8909 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8910 | }, |
| 8911 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8912 | { |
| 8913 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8914 | .name = "MX25L3235D", |
| 8915 | .bustype = BUS_SPI, |
| 8916 | .manufacture_id = MACRONIX_ID, |
| 8917 | .model_id = MACRONIX_MX25L3235D, |
| 8918 | .total_size = 4096, |
| 8919 | .page_size = 256, |
| 8920 | /* OTP: 256B total; enter 0xB1, exit 0xC1 */ |
| 8921 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8922 | .tested = TEST_UNTESTED, |
| 8923 | .probe = probe_spi_rdid, |
| 8924 | .probe_timing = TIMING_ZERO, |
| 8925 | .block_erasers = |
| 8926 | { |
| 8927 | { |
| 8928 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8929 | .block_erase = spi_block_erase_20, |
| 8930 | }, { |
| 8931 | .eraseblocks = { {64 * 1024, 64} }, |
| 8932 | .block_erase = spi_block_erase_d8, |
| 8933 | }, { |
| 8934 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8935 | .block_erase = spi_block_erase_60, |
| 8936 | }, { |
| 8937 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8938 | .block_erase = spi_block_erase_c7, |
| 8939 | } |
| 8940 | }, |
| 8941 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8942 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8943 | .write = spi_chip_write_256, |
| 8944 | .read = spi_chip_read, |
| 8945 | .voltage = {2700, 3600}, |
| 8946 | }, |
| 8947 | |
| 8948 | { |
| 8949 | .vendor = "Macronix", |
Nico Huber | b6683e0 | 2021-04-21 13:04:29 +0200 | [diff] [blame] | 8950 | .name = "MX25L3233F/MX25L3273E", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8951 | .bustype = BUS_SPI, |
| 8952 | .manufacture_id = MACRONIX_ID, |
| 8953 | .model_id = MACRONIX_MX25L3205, |
| 8954 | .total_size = 4096, |
| 8955 | .page_size = 256, |
Nico Huber | 6e69e2b | 2021-04-21 13:03:13 +0200 | [diff] [blame] | 8956 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8957 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 8958 | .tested = TEST_OK_PREW, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8959 | .probe = probe_spi_rdid, |
| 8960 | .probe_timing = TIMING_ZERO, |
| 8961 | .block_erasers = |
| 8962 | { |
| 8963 | { |
| 8964 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8965 | .block_erase = spi_block_erase_20, |
| 8966 | }, { |
| 8967 | .eraseblocks = { {32 * 1024, 128} }, |
| 8968 | .block_erase = spi_block_erase_52, |
| 8969 | }, { |
| 8970 | .eraseblocks = { {64 * 1024, 64} }, |
| 8971 | .block_erase = spi_block_erase_d8, |
| 8972 | }, { |
| 8973 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8974 | .block_erase = spi_block_erase_60, |
| 8975 | }, { |
| 8976 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8977 | .block_erase = spi_block_erase_c7, |
| 8978 | }, |
| 8979 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8980 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8981 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8982 | .write = spi_chip_write_256, |
| 8983 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
Nico Huber | b6683e0 | 2021-04-21 13:04:29 +0200 | [diff] [blame] | 8984 | .voltage = {2700, 3600}, /* 33F 2.65V..3.6V */ |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8985 | }, |
| 8986 | |
| 8987 | { |
| 8988 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8989 | .name = "MX25L4005(A/C)/MX25L4006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8990 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8991 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8992 | .model_id = MACRONIX_MX25L4005, |
| 8993 | .total_size = 512, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 8994 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8995 | .feature_bits = FEATURE_WRSR_WREN, |
| 8996 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 8997 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8998 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8999 | .block_erasers = |
| 9000 | { |
| 9001 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9002 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9003 | .block_erase = spi_block_erase_20, |
| 9004 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9005 | .eraseblocks = { {64 * 1024, 8} }, |
| 9006 | .block_erase = spi_block_erase_52, |
| 9007 | }, { |
| 9008 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9009 | .block_erase = spi_block_erase_d8, |
| 9010 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9011 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9012 | .block_erase = spi_block_erase_60, |
| 9013 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9014 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9015 | .block_erase = spi_block_erase_c7, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9016 | }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9017 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9018 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 9019 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9020 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9021 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9022 | .voltage = {2700, 3600}, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 9023 | }, |
| 9024 | |
| 9025 | { |
| 9026 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9027 | .name = "MX25L512(E)/MX25V512(C)", |
| 9028 | .bustype = BUS_SPI, |
| 9029 | .manufacture_id = MACRONIX_ID, |
| 9030 | .model_id = MACRONIX_MX25L512, |
| 9031 | .total_size = 64, |
| 9032 | .page_size = 256, |
| 9033 | /* MX25L512E supports SFDP */ |
| 9034 | .feature_bits = FEATURE_WRSR_WREN, |
| 9035 | .tested = TEST_OK_PREW, |
| 9036 | .probe = probe_spi_rdid, |
| 9037 | .probe_timing = TIMING_ZERO, |
| 9038 | .block_erasers = |
| 9039 | { |
| 9040 | { |
| 9041 | .eraseblocks = { {4 * 1024, 16} }, |
| 9042 | .block_erase = spi_block_erase_20, |
| 9043 | }, { |
| 9044 | .eraseblocks = { {64 * 1024, 1} }, |
| 9045 | .block_erase = spi_block_erase_52, |
| 9046 | }, { |
| 9047 | .eraseblocks = { {64 * 1024, 1} }, |
| 9048 | .block_erase = spi_block_erase_d8, |
| 9049 | }, { |
| 9050 | .eraseblocks = { {64 * 1024, 1} }, |
| 9051 | .block_erase = spi_block_erase_60, |
| 9052 | }, { |
| 9053 | .eraseblocks = { {64 * 1024, 1} }, |
| 9054 | .block_erase = spi_block_erase_c7, |
| 9055 | }, |
| 9056 | }, |
| 9057 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 9058 | .unlock = spi_disable_blockprotect, |
| 9059 | .write = spi_chip_write_256, |
| 9060 | .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */ |
| 9061 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */ |
| 9062 | }, |
| 9063 | |
| 9064 | { |
| 9065 | .vendor = "Macronix", |
Steve Markgraf | 7e6f3a7 | 2020-07-13 18:22:56 +0200 | [diff] [blame] | 9066 | .name = "MX25L5121E", |
| 9067 | .bustype = BUS_SPI, |
| 9068 | .manufacture_id = MACRONIX_ID, |
| 9069 | .model_id = MACRONIX_MX25L5121E, |
| 9070 | .total_size = 64, |
| 9071 | .page_size = 32, |
| 9072 | .feature_bits = FEATURE_WRSR_WREN, |
| 9073 | .tested = TEST_OK_PREW, |
| 9074 | .probe = probe_spi_rdid, |
| 9075 | .probe_timing = TIMING_ZERO, |
| 9076 | .block_erasers = |
| 9077 | { |
| 9078 | { |
| 9079 | .eraseblocks = { {4 * 1024, 16} }, |
| 9080 | .block_erase = spi_block_erase_20, |
| 9081 | }, { |
| 9082 | .eraseblocks = { {64 * 1024, 1} }, |
| 9083 | .block_erase = spi_block_erase_52, |
| 9084 | }, { |
| 9085 | .eraseblocks = { {64 * 1024, 1} }, |
| 9086 | .block_erase = spi_block_erase_d8, |
| 9087 | }, { |
| 9088 | .eraseblocks = { {64 * 1024, 1} }, |
| 9089 | .block_erase = spi_block_erase_60, |
| 9090 | }, { |
| 9091 | .eraseblocks = { {64 * 1024, 1} }, |
| 9092 | .block_erase = spi_block_erase_c7, |
| 9093 | }, |
| 9094 | }, |
| 9095 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 9096 | .unlock = spi_disable_blockprotect, |
| 9097 | .write = spi_chip_write_256, |
| 9098 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9099 | .voltage = {2700, 3600}, |
| 9100 | }, |
| 9101 | |
| 9102 | { |
| 9103 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9104 | .name = "MX25L6405", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9105 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9106 | .manufacture_id = MACRONIX_ID, |
| 9107 | .model_id = MACRONIX_MX25L6405, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9108 | .total_size = 8192, |
| 9109 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9110 | /* Has an additional 512B EEPROM sector */ |
| 9111 | .feature_bits = FEATURE_WRSR_WREN, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 9112 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9113 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9114 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9115 | .block_erasers = |
| 9116 | { |
| 9117 | { |
| 9118 | .eraseblocks = { {64 * 1024, 128} }, |
| 9119 | .block_erase = spi_block_erase_20, |
| 9120 | }, { |
| 9121 | .eraseblocks = { {64 * 1024, 128} }, |
| 9122 | .block_erase = spi_block_erase_d8, |
| 9123 | }, { |
| 9124 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9125 | .block_erase = spi_block_erase_60, |
| 9126 | }, { |
| 9127 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9128 | .block_erase = spi_block_erase_c7, |
| 9129 | } |
| 9130 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9131 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9132 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9133 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9134 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9135 | .voltage = {2700, 3600}, |
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", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9140 | .name = "MX25L6405D", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9141 | .bustype = BUS_SPI, |
| 9142 | .manufacture_id = MACRONIX_ID, |
| 9143 | .model_id = MACRONIX_MX25L6405, |
| 9144 | .total_size = 8192, |
| 9145 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9146 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9147 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9148 | .tested = TEST_OK_PREW, |
| 9149 | .probe = probe_spi_rdid, |
| 9150 | .probe_timing = TIMING_ZERO, |
| 9151 | .block_erasers = |
| 9152 | { |
| 9153 | { |
| 9154 | .eraseblocks = { {4 * 1024, 2048} }, |
| 9155 | .block_erase = spi_block_erase_20, |
| 9156 | }, { |
| 9157 | .eraseblocks = { {64 * 1024, 128} }, |
| 9158 | .block_erase = spi_block_erase_d8, |
| 9159 | }, { |
| 9160 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9161 | .block_erase = spi_block_erase_60, |
| 9162 | }, { |
| 9163 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9164 | .block_erase = spi_block_erase_c7, |
| 9165 | } |
| 9166 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9167 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9168 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9169 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9170 | .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] | 9171 | .voltage = {2700, 3600}, |
| 9172 | }, |
| 9173 | |
| 9174 | { |
| 9175 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9176 | .name = "MX25L6406E/MX25L6408E", |
| 9177 | .bustype = BUS_SPI, |
| 9178 | .manufacture_id = MACRONIX_ID, |
| 9179 | .model_id = MACRONIX_MX25L6405, |
| 9180 | .total_size = 8192, |
| 9181 | .page_size = 256, |
| 9182 | /* MX25L6406E supports SFDP */ |
| 9183 | /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */ |
| 9184 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9185 | .tested = TEST_OK_PREW, |
| 9186 | .probe = probe_spi_rdid, |
| 9187 | .probe_timing = TIMING_ZERO, |
| 9188 | .block_erasers = |
| 9189 | { |
| 9190 | { |
| 9191 | .eraseblocks = { {4 * 1024, 2048} }, |
| 9192 | .block_erase = spi_block_erase_20, |
| 9193 | }, { |
| 9194 | .eraseblocks = { {64 * 1024, 128} }, |
| 9195 | .block_erase = spi_block_erase_52, |
| 9196 | }, { |
| 9197 | .eraseblocks = { {64 * 1024, 128} }, |
| 9198 | .block_erase = spi_block_erase_d8, |
| 9199 | }, { |
| 9200 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9201 | .block_erase = spi_block_erase_60, |
| 9202 | }, { |
| 9203 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9204 | .block_erase = spi_block_erase_c7, |
| 9205 | } |
| 9206 | }, |
| 9207 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 9208 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9209 | .write = spi_chip_write_256, |
| 9210 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */ |
| 9211 | .voltage = {2700, 3600}, |
| 9212 | }, |
| 9213 | |
| 9214 | { |
| 9215 | .vendor = "Macronix", |
Nico Huber | b007278 | 2017-12-06 21:02:57 +0100 | [diff] [blame] | 9216 | .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9217 | .bustype = BUS_SPI, |
| 9218 | .manufacture_id = MACRONIX_ID, |
| 9219 | .model_id = MACRONIX_MX25L6405, |
| 9220 | .total_size = 8192, |
| 9221 | .page_size = 256, |
| 9222 | /* supports SFDP */ |
| 9223 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 9224 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9225 | .tested = TEST_OK_PREW, |
| 9226 | .probe = probe_spi_rdid, |
| 9227 | .probe_timing = TIMING_ZERO, |
| 9228 | .block_erasers = |
| 9229 | { |
| 9230 | { |
| 9231 | .eraseblocks = { {4 * 1024, 2048} }, |
| 9232 | .block_erase = spi_block_erase_20, |
| 9233 | }, { |
| 9234 | .eraseblocks = { {32 * 1024, 256} }, |
| 9235 | .block_erase = spi_block_erase_52, |
| 9236 | }, { |
| 9237 | .eraseblocks = { {64 * 1024, 128} }, |
| 9238 | .block_erase = spi_block_erase_d8, |
| 9239 | }, { |
| 9240 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9241 | .block_erase = spi_block_erase_60, |
| 9242 | }, { |
| 9243 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9244 | .block_erase = spi_block_erase_c7, |
| 9245 | } |
| 9246 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9247 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9248 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9249 | .write = spi_chip_write_256, |
| 9250 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9251 | .voltage = {2700, 3600}, |
| 9252 | }, |
| 9253 | |
| 9254 | { |
| 9255 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9256 | .name = "MX25L6495F", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9257 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9258 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9259 | .model_id = MACRONIX_MX25L6495F, |
| 9260 | .total_size = 8192, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 9261 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9262 | /* OTP: 1024B total; enter 0xB1, exit 0xC1 */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9263 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 9264 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 9265 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9266 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9267 | .block_erasers = |
| 9268 | { |
| 9269 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9270 | .eraseblocks = { {4 * 1024, 2048} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9271 | .block_erase = spi_block_erase_20, |
| 9272 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9273 | .eraseblocks = { {32 * 1024, 256} }, |
| 9274 | .block_erase = spi_block_erase_52, |
| 9275 | }, { |
Aarya Chaumal | 478e179 | 2022-06-04 01:34:44 +0530 | [diff] [blame] | 9276 | .eraseblocks = { {64 * 1024, 128} }, |
| 9277 | .block_erase = spi_block_erase_d8, |
| 9278 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9279 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9280 | .block_erase = spi_block_erase_60, |
| 9281 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9282 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9283 | .block_erase = spi_block_erase_c7, |
| 9284 | } |
| 9285 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9286 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9287 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9288 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9289 | .voltage = {2700, 3600}, |
| 9290 | }, |
| 9291 | |
| 9292 | { |
| 9293 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9294 | .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005", |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9295 | .bustype = BUS_SPI, |
| 9296 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9297 | .model_id = MACRONIX_MX25L8005, |
| 9298 | .total_size = 1024, |
| 9299 | .page_size = 256, |
| 9300 | /* MX25L8006E, MX25L8008E support SFDP */ |
| 9301 | /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */ |
| 9302 | .feature_bits = FEATURE_WRSR_WREN, |
| 9303 | .tested = TEST_OK_PREW, |
| 9304 | .probe = probe_spi_rdid, |
| 9305 | .probe_timing = TIMING_ZERO, |
| 9306 | .block_erasers = |
| 9307 | { |
| 9308 | { |
| 9309 | .eraseblocks = { {4 * 1024, 256} }, |
| 9310 | .block_erase = spi_block_erase_20, |
| 9311 | }, { |
| 9312 | .eraseblocks = { {64 * 1024, 16} }, |
| 9313 | .block_erase = spi_block_erase_52, |
| 9314 | }, { |
| 9315 | .eraseblocks = { {64 * 1024, 16} }, |
| 9316 | .block_erase = spi_block_erase_d8, |
| 9317 | }, { |
| 9318 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9319 | .block_erase = spi_block_erase_60, |
| 9320 | }, { |
| 9321 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9322 | .block_erase = spi_block_erase_c7, |
| 9323 | }, |
| 9324 | }, |
| 9325 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 9326 | .unlock = spi_disable_blockprotect, |
| 9327 | .write = spi_chip_write_256, |
| 9328 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9329 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */ |
| 9330 | }, |
| 9331 | |
| 9332 | { |
| 9333 | .vendor = "Macronix", |
sibradzic | f62623c | 2020-03-14 17:21:34 +0900 | [diff] [blame] | 9334 | .name = "MX25R3235F", |
| 9335 | .bustype = BUS_SPI, |
| 9336 | .manufacture_id = MACRONIX_ID, |
| 9337 | .model_id = MACRONIX_MX25R3235F, |
| 9338 | .total_size = 4096, |
| 9339 | .page_size = 256, |
| 9340 | /* OTP: 1024B total; enter 0xB1, exit 0xC1 */ |
| 9341 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9342 | .tested = TEST_OK_PREW, |
| 9343 | .probe = probe_spi_rdid, |
| 9344 | .probe_timing = TIMING_ZERO, |
| 9345 | .block_erasers = |
| 9346 | { |
| 9347 | { |
| 9348 | .eraseblocks = { {4 * 1024, 1024} }, |
| 9349 | .block_erase = spi_block_erase_20, |
| 9350 | }, { |
sibradzic | f62623c | 2020-03-14 17:21:34 +0900 | [diff] [blame] | 9351 | .eraseblocks = { {32 * 1024, 128} }, |
| 9352 | .block_erase = spi_block_erase_52, |
| 9353 | }, { |
Aarya Chaumal | 478e179 | 2022-06-04 01:34:44 +0530 | [diff] [blame] | 9354 | .eraseblocks = { {64 * 1024, 64} }, |
| 9355 | .block_erase = spi_block_erase_d8, |
| 9356 | }, { |
sibradzic | f62623c | 2020-03-14 17:21:34 +0900 | [diff] [blame] | 9357 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9358 | .block_erase = spi_block_erase_60, |
| 9359 | }, { |
| 9360 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9361 | .block_erase = spi_block_erase_c7, |
| 9362 | } |
| 9363 | }, |
| 9364 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit 6 is quad enable */ |
| 9365 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9366 | .write = spi_chip_write_256, |
| 9367 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9368 | .voltage = {1650, 3600}, |
| 9369 | }, |
| 9370 | |
| 9371 | { |
| 9372 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9373 | .name = "MX25R6435F", |
| 9374 | .bustype = BUS_SPI, |
| 9375 | .manufacture_id = MACRONIX_ID, |
| 9376 | .model_id = MACRONIX_MX25R6435F, |
| 9377 | .total_size = 8192, |
| 9378 | .page_size = 256, |
| 9379 | /* OTP: 1024B total; enter 0xB1, exit 0xC1 */ |
| 9380 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9381 | .tested = TEST_OK_PREW, |
| 9382 | .probe = probe_spi_rdid, |
| 9383 | .probe_timing = TIMING_ZERO, |
| 9384 | .block_erasers = |
| 9385 | { |
| 9386 | { |
| 9387 | .eraseblocks = { {4 * 1024, 2048} }, |
| 9388 | .block_erase = spi_block_erase_20, |
| 9389 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9390 | .eraseblocks = { {32 * 1024, 256} }, |
| 9391 | .block_erase = spi_block_erase_52, |
| 9392 | }, { |
Aarya Chaumal | 478e179 | 2022-06-04 01:34:44 +0530 | [diff] [blame] | 9393 | .eraseblocks = { {64 * 1024, 128} }, |
| 9394 | .block_erase = spi_block_erase_d8, |
| 9395 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9396 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9397 | .block_erase = spi_block_erase_60, |
| 9398 | }, { |
| 9399 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9400 | .block_erase = spi_block_erase_c7, |
| 9401 | } |
| 9402 | }, |
| 9403 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9404 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9405 | .write = spi_chip_write_256, |
| 9406 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9407 | .voltage = {1650, 3600}, |
| 9408 | }, |
| 9409 | |
| 9410 | { |
| 9411 | .vendor = "Macronix", |
| 9412 | .name = "MX25U12835F", |
| 9413 | .bustype = BUS_SPI, |
| 9414 | .manufacture_id = MACRONIX_ID, |
| 9415 | .model_id = MACRONIX_MX25U12835E, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9416 | .total_size = 16384, |
| 9417 | .page_size = 256, |
| 9418 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9419 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9420 | .tested = TEST_OK_PREW, |
| 9421 | .probe = probe_spi_rdid, |
| 9422 | .probe_timing = TIMING_ZERO, |
| 9423 | .block_erasers = |
| 9424 | { |
| 9425 | { |
| 9426 | .eraseblocks = { {4 * 1024, 4096} }, |
| 9427 | .block_erase = spi_block_erase_20, |
| 9428 | }, { |
| 9429 | .eraseblocks = { {32 * 1024, 512} }, |
| 9430 | .block_erase = spi_block_erase_52, |
| 9431 | }, { |
| 9432 | .eraseblocks = { {64 * 1024, 256} }, |
| 9433 | .block_erase = spi_block_erase_d8, |
| 9434 | }, { |
| 9435 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 9436 | .block_erase = spi_block_erase_60, |
| 9437 | }, { |
| 9438 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 9439 | .block_erase = spi_block_erase_c7, |
| 9440 | } |
| 9441 | }, |
Angel Pons | f112e24 | 2018-09-30 20:14:17 +0200 | [diff] [blame] | 9442 | /* TODO: security register */ |
| 9443 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9444 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9445 | .write = spi_chip_write_256, /* Multi I/O supported */ |
Angel Pons | f112e24 | 2018-09-30 20:14:17 +0200 | [diff] [blame] | 9446 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9447 | .voltage = {1650, 2000}, |
| 9448 | }, |
| 9449 | |
| 9450 | { |
| 9451 | .vendor = "Macronix", |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 9452 | .name = "MX25U1635E", |
| 9453 | .bustype = BUS_SPI, |
| 9454 | .manufacture_id = MACRONIX_ID, |
| 9455 | .model_id = MACRONIX_MX25U1635E, |
| 9456 | .total_size = 2048, |
| 9457 | .page_size = 256, |
| 9458 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 9459 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 9460 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9461 | .tested = TEST_OK_PR, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 9462 | .probe = probe_spi_rdid, |
| 9463 | .probe_timing = TIMING_ZERO, |
| 9464 | .block_erasers = |
| 9465 | { |
| 9466 | { |
| 9467 | .eraseblocks = { {4 * 1024, 512} }, |
| 9468 | .block_erase = spi_block_erase_20, |
| 9469 | }, { |
| 9470 | .eraseblocks = { {32 * 1024, 64} }, |
| 9471 | .block_erase = spi_block_erase_52, |
| 9472 | }, { |
| 9473 | .eraseblocks = { {64 * 1024, 32} }, |
| 9474 | .block_erase = spi_block_erase_d8, |
| 9475 | }, { |
| 9476 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9477 | .block_erase = spi_block_erase_60, |
| 9478 | }, { |
| 9479 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9480 | .block_erase = spi_block_erase_c7, |
| 9481 | } |
| 9482 | }, |
| 9483 | /* TODO: security register */ |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9484 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9485 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 9486 | .write = spi_chip_write_256, |
| 9487 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9488 | .voltage = {1650, 2000}, |
| 9489 | }, |
| 9490 | |
| 9491 | { |
| 9492 | .vendor = "Macronix", |
David Tomaschik | f75d8c5 | 2019-06-20 09:49:01 -0700 | [diff] [blame] | 9493 | .name = "MX25U25635F", |
| 9494 | .bustype = BUS_SPI, |
| 9495 | .manufacture_id = MACRONIX_ID, |
| 9496 | .model_id = MACRONIX_MX25U25635F, |
| 9497 | .total_size = 32768, |
| 9498 | .page_size = 256, |
| 9499 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 9500 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA, |
Nikolai Artemiev | 148254b | 2021-03-23 17:21:10 +1100 | [diff] [blame] | 9501 | .tested = TEST_OK_PREW, |
David Tomaschik | f75d8c5 | 2019-06-20 09:49:01 -0700 | [diff] [blame] | 9502 | .probe = probe_spi_rdid, |
| 9503 | .probe_timing = TIMING_ZERO, |
| 9504 | .block_erasers = |
| 9505 | { |
| 9506 | { |
| 9507 | .eraseblocks = { {4 * 1024, 8192} }, |
| 9508 | .block_erase = spi_block_erase_21, |
| 9509 | }, { |
| 9510 | .eraseblocks = { {4 * 1024, 8192} }, |
| 9511 | .block_erase = spi_block_erase_20, |
| 9512 | }, { |
| 9513 | .eraseblocks = { {32 * 1024, 1024} }, |
| 9514 | .block_erase = spi_block_erase_5c, |
| 9515 | }, { |
| 9516 | .eraseblocks = { {32 * 1024, 1024} }, |
| 9517 | .block_erase = spi_block_erase_52, |
| 9518 | }, { |
| 9519 | .eraseblocks = { {64 * 1024, 512} }, |
| 9520 | .block_erase = spi_block_erase_dc, |
| 9521 | }, { |
| 9522 | .eraseblocks = { {64 * 1024, 512} }, |
| 9523 | .block_erase = spi_block_erase_d8, |
| 9524 | }, { |
| 9525 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 9526 | .block_erase = spi_block_erase_60, |
| 9527 | }, { |
| 9528 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 9529 | .block_erase = spi_block_erase_c7, |
| 9530 | } |
| 9531 | }, |
| 9532 | /* TODO: security register */ |
| 9533 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9534 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9535 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 9536 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9537 | .voltage = {1650, 2000}, |
| 9538 | }, |
| 9539 | |
| 9540 | { |
| 9541 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9542 | .name = "MX25U3235E/F", |
| 9543 | .bustype = BUS_SPI, |
| 9544 | .manufacture_id = MACRONIX_ID, |
| 9545 | .model_id = MACRONIX_MX25U3235E, |
| 9546 | .total_size = 4096, |
| 9547 | .page_size = 256, |
| 9548 | /* F model supports SFDP */ |
| 9549 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 9550 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 9551 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 9552 | .tested = TEST_OK_PREW, |
| 9553 | .probe = probe_spi_rdid, |
| 9554 | .probe_timing = TIMING_ZERO, |
| 9555 | .block_erasers = |
| 9556 | { |
| 9557 | { |
| 9558 | .eraseblocks = { {4 * 1024, 1024} }, |
| 9559 | .block_erase = spi_block_erase_20, |
| 9560 | }, { |
| 9561 | .eraseblocks = { {32 * 1024, 128} }, |
| 9562 | .block_erase = spi_block_erase_52, |
| 9563 | }, { |
| 9564 | .eraseblocks = { {64 * 1024, 64} }, |
| 9565 | .block_erase = spi_block_erase_d8, |
| 9566 | }, { |
| 9567 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9568 | .block_erase = spi_block_erase_60, |
| 9569 | }, { |
| 9570 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9571 | .block_erase = spi_block_erase_c7, |
| 9572 | } |
| 9573 | }, |
| 9574 | /* TODO: security register */ |
| 9575 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9576 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9577 | .write = spi_chip_write_256, |
| 9578 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9579 | .voltage = {1650, 2000}, |
| 9580 | }, |
| 9581 | |
| 9582 | { |
| 9583 | .vendor = "Macronix", |
Daniel Thompson | cadd420 | 2018-06-04 13:52:22 +0100 | [diff] [blame] | 9584 | .name = "MX25U51245G", |
| 9585 | .bustype = BUS_SPI, |
| 9586 | .manufacture_id = MACRONIX_ID, |
| 9587 | .model_id = MACRONIX_MX25U51245G, |
| 9588 | .total_size = 65536, |
| 9589 | .page_size = 256, |
| 9590 | /* OTP: 512B factory programmed and 512B customer programmed; enter 0xB1, exit 0xC1 */ |
| 9591 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_4BA, |
| 9592 | .tested = TEST_OK_PREW, |
| 9593 | .probe = probe_spi_rdid, |
| 9594 | .probe_timing = TIMING_ZERO, |
| 9595 | .block_erasers = |
| 9596 | { |
| 9597 | { |
| 9598 | .eraseblocks = { {4 * 1024, 16384} }, |
| 9599 | .block_erase = spi_block_erase_21, |
| 9600 | }, { |
| 9601 | .eraseblocks = { {4 * 1024, 16384} }, |
| 9602 | .block_erase = spi_block_erase_20, |
| 9603 | }, { |
| 9604 | .eraseblocks = { {32 * 1024, 2048} }, |
| 9605 | .block_erase = spi_block_erase_5c, |
| 9606 | }, { |
| 9607 | .eraseblocks = { {32 * 1024, 2048} }, |
| 9608 | .block_erase = spi_block_erase_52, |
| 9609 | }, { |
| 9610 | .eraseblocks = { {64 * 1024, 1024} }, |
| 9611 | .block_erase = spi_block_erase_dc, |
| 9612 | }, { |
| 9613 | .eraseblocks = { {64 * 1024, 1024} }, |
| 9614 | .block_erase = spi_block_erase_d8, |
| 9615 | }, { |
| 9616 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 9617 | .block_erase = spi_block_erase_60, |
| 9618 | }, { |
| 9619 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 9620 | .block_erase = spi_block_erase_c7, |
| 9621 | } |
| 9622 | }, |
| 9623 | /* TODO: security register */ |
| 9624 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9625 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9626 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 9627 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9628 | .voltage = {1650, 2000}, |
| 9629 | }, |
| 9630 | |
| 9631 | { |
| 9632 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9633 | .name = "MX25U6435E/F", |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 9634 | .bustype = BUS_SPI, |
| 9635 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9636 | .model_id = MACRONIX_MX25U6435E, |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 9637 | .total_size = 8192, |
| 9638 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9639 | /* F model supports SFDP */ |
| 9640 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 9641 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 9642 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 9643 | .tested = TEST_OK_PREW, |
| 9644 | .probe = probe_spi_rdid, |
| 9645 | .probe_timing = TIMING_ZERO, |
| 9646 | .block_erasers = |
| 9647 | { |
| 9648 | { |
| 9649 | .eraseblocks = { {4 * 1024, 2048} }, |
| 9650 | .block_erase = spi_block_erase_20, |
| 9651 | }, { |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 9652 | .eraseblocks = { {32 * 1024, 256} }, |
| 9653 | .block_erase = spi_block_erase_52, |
| 9654 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9655 | .eraseblocks = { {64 * 1024, 128} }, |
| 9656 | .block_erase = spi_block_erase_d8, |
| 9657 | }, { |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 9658 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9659 | .block_erase = spi_block_erase_60, |
| 9660 | }, { |
| 9661 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9662 | .block_erase = spi_block_erase_c7, |
| 9663 | } |
| 9664 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9665 | /* TODO: security register */ |
Nathan Rennie-Waldock | 5a7f942 | 2018-08-10 15:35:23 +0100 | [diff] [blame] | 9666 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9667 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9668 | .write = spi_chip_write_256, |
| 9669 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9670 | .voltage = {1650, 2000}, |
| 9671 | }, |
| 9672 | |
| 9673 | { |
| 9674 | .vendor = "Macronix", |
| 9675 | .name = "MX25U8032E", |
| 9676 | .bustype = BUS_SPI, |
| 9677 | .manufacture_id = MACRONIX_ID, |
| 9678 | .model_id = MACRONIX_MX25U8032E, |
| 9679 | .total_size = 1024, |
| 9680 | .page_size = 256, |
| 9681 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 9682 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9683 | .tested = TEST_OK_PREW, |
| 9684 | .probe = probe_spi_rdid, |
| 9685 | .probe_timing = TIMING_ZERO, |
| 9686 | .block_erasers = |
| 9687 | { |
| 9688 | { |
| 9689 | .eraseblocks = { {4 * 1024, 256} }, |
| 9690 | .block_erase = spi_block_erase_20, |
| 9691 | }, { |
| 9692 | .eraseblocks = { {32 * 1024, 32} }, |
| 9693 | .block_erase = spi_block_erase_52, |
| 9694 | }, { |
| 9695 | .eraseblocks = { {64 * 1024, 16} }, |
| 9696 | .block_erase = spi_block_erase_d8, |
| 9697 | }, { |
| 9698 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9699 | .block_erase = spi_block_erase_60, |
| 9700 | }, { |
| 9701 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9702 | .block_erase = spi_block_erase_c7, |
| 9703 | } |
| 9704 | }, |
| 9705 | /* TODO: security register */ |
| 9706 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9707 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9708 | .write = spi_chip_write_256, |
| 9709 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9710 | .voltage = {1650, 2000}, |
Nathan Rennie-Waldock | 5a7f942 | 2018-08-10 15:35:23 +0100 | [diff] [blame] | 9711 | }, |
| 9712 | |
| 9713 | { |
| 9714 | .vendor = "Macronix", |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9715 | .name = "MX29F001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9716 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9717 | .manufacture_id = MACRONIX_ID, |
| 9718 | .model_id = MACRONIX_MX29F001B, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9719 | .total_size = 128, |
| 9720 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9721 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9722 | .tested = TEST_UNTESTED, |
| 9723 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 9724 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9725 | .block_erasers = |
| 9726 | { |
| 9727 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 9728 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9729 | {8 * 1024, 1}, |
| 9730 | {4 * 1024, 2}, |
| 9731 | {8 * 1024, 2}, |
| 9732 | {32 * 1024, 1}, |
| 9733 | {64 * 1024, 1}, |
| 9734 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9735 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9736 | }, { |
| 9737 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9738 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9739 | } |
| 9740 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 9741 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9742 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9743 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9744 | }, |
| 9745 | |
| 9746 | { |
| 9747 | .vendor = "Macronix", |
| 9748 | .name = "MX29F001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9749 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9750 | .manufacture_id = MACRONIX_ID, |
| 9751 | .model_id = MACRONIX_MX29F001T, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9752 | .total_size = 128, |
| 9753 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9754 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stefan Tauner | 74c6ec6 | 2011-05-18 01:31:46 +0000 | [diff] [blame] | 9755 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9756 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 9757 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9758 | .block_erasers = |
| 9759 | { |
| 9760 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 9761 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9762 | {64 * 1024, 1}, |
| 9763 | {32 * 1024, 1}, |
| 9764 | {8 * 1024, 2}, |
| 9765 | {4 * 1024, 2}, |
| 9766 | {8 * 1024, 1}, |
| 9767 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9768 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9769 | }, { |
| 9770 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9771 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9772 | } |
| 9773 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 9774 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9775 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9776 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 9777 | }, |
| 9778 | |
| 9779 | { |
| 9780 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 9781 | .name = "MX29F002(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9782 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9783 | .manufacture_id = MACRONIX_ID, |
| 9784 | .model_id = MACRONIX_MX29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9785 | .total_size = 256, |
| 9786 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9787 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9788 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9789 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 9790 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9791 | .block_erasers = |
| 9792 | { |
| 9793 | { |
| 9794 | .eraseblocks = { |
| 9795 | {16 * 1024, 1}, |
| 9796 | {8 * 1024, 2}, |
| 9797 | {32 * 1024, 1}, |
| 9798 | {64 * 1024, 3}, |
| 9799 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9800 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9801 | }, { |
| 9802 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9803 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9804 | }, |
| 9805 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 9806 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9807 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9808 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9809 | }, |
| 9810 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9811 | { |
| 9812 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 9813 | .name = "MX29F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9814 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9815 | .manufacture_id = MACRONIX_ID, |
| 9816 | .model_id = MACRONIX_MX29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9817 | .total_size = 256, |
| 9818 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9819 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 9820 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9821 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 9822 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9823 | .block_erasers = |
| 9824 | { |
| 9825 | { |
| 9826 | .eraseblocks = { |
| 9827 | {64 * 1024, 3}, |
| 9828 | {32 * 1024, 1}, |
| 9829 | {8 * 1024, 2}, |
| 9830 | {16 * 1024, 1}, |
| 9831 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9832 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9833 | }, { |
| 9834 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9835 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9836 | }, |
| 9837 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 9838 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9839 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9840 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9841 | }, |
| 9842 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9843 | { |
| 9844 | .vendor = "Macronix", |
Daniele Forsi | 6a18a93 | 2014-07-13 14:53:45 +0000 | [diff] [blame] | 9845 | .name = "MX29F022(N)B", |
| 9846 | .bustype = BUS_PARALLEL, |
| 9847 | .manufacture_id = MACRONIX_ID, |
| 9848 | .model_id = MACRONIX_MX29F022B, |
| 9849 | .total_size = 256, |
| 9850 | .page_size = 0, /* unused */ |
| 9851 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9852 | .tested = TEST_UNTESTED, |
| 9853 | .probe = probe_jedec, |
| 9854 | .probe_timing = TIMING_ZERO, |
| 9855 | .block_erasers = |
| 9856 | { |
| 9857 | { |
| 9858 | .eraseblocks = { |
| 9859 | {16 * 1024, 1}, |
| 9860 | {8 * 1024, 2}, |
| 9861 | {32 * 1024, 1}, |
| 9862 | {64 * 1024, 3}, |
| 9863 | }, |
| 9864 | .block_erase = erase_sector_jedec, |
| 9865 | }, { |
| 9866 | .eraseblocks = { {256 * 1024, 1} }, |
| 9867 | .block_erase = erase_chip_block_jedec, |
| 9868 | } |
| 9869 | }, |
| 9870 | .write = write_jedec_1, |
| 9871 | .read = read_memmapped, |
| 9872 | .voltage = {4500, 5500}, |
| 9873 | }, |
| 9874 | |
| 9875 | { |
| 9876 | .vendor = "Macronix", |
| 9877 | .name = "MX29F022(N)T", |
| 9878 | .bustype = BUS_PARALLEL, |
| 9879 | .manufacture_id = MACRONIX_ID, |
| 9880 | .model_id = MACRONIX_MX29F022T, |
| 9881 | .total_size = 256, |
| 9882 | .page_size = 0, /* unused */ |
| 9883 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9884 | .tested = TEST_OK_PREW, |
| 9885 | .probe = probe_jedec, |
| 9886 | .probe_timing = TIMING_ZERO, |
| 9887 | .block_erasers = |
| 9888 | { |
| 9889 | { |
| 9890 | .eraseblocks = { |
| 9891 | {64 * 1024, 3}, |
| 9892 | {32 * 1024, 1}, |
| 9893 | {8 * 1024, 2}, |
| 9894 | {16 * 1024, 1}, |
| 9895 | }, |
| 9896 | .block_erase = erase_sector_jedec, |
| 9897 | }, { |
| 9898 | .eraseblocks = { {256 * 1024, 1} }, |
| 9899 | .block_erase = erase_chip_block_jedec, |
| 9900 | } |
| 9901 | }, |
| 9902 | .write = write_jedec_1, |
| 9903 | .read = read_memmapped, |
| 9904 | .voltage = {4500, 5500}, |
| 9905 | }, |
| 9906 | |
| 9907 | { |
| 9908 | .vendor = "Macronix", |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 9909 | .name = "MX29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9910 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 9911 | .manufacture_id = MACRONIX_ID, |
| 9912 | .model_id = MACRONIX_MX29F040, |
| 9913 | .total_size = 512, |
| 9914 | .page_size = 64 * 1024, |
| 9915 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9916 | .tested = TEST_UNTESTED, |
| 9917 | .probe = probe_jedec, |
| 9918 | .probe_timing = TIMING_ZERO, |
| 9919 | .block_erasers = |
| 9920 | { |
| 9921 | { |
| 9922 | .eraseblocks = { {64 * 1024, 8} }, |
| 9923 | .block_erase = erase_sector_jedec, |
| 9924 | }, { |
| 9925 | .eraseblocks = { {512 * 1024, 1} }, |
| 9926 | .block_erase = erase_chip_block_jedec, |
| 9927 | }, |
| 9928 | }, |
| 9929 | .write = write_jedec_1, |
| 9930 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 9931 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 9932 | }, |
| 9933 | |
| 9934 | { |
| 9935 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9936 | .name = "MX29GL128F", |
| 9937 | .bustype = BUS_PARALLEL, |
| 9938 | .manufacture_id = MACRONIX_ID, |
| 9939 | .model_id = MACRONIX_MX29GL128F, |
| 9940 | .total_size = 16384, |
| 9941 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9942 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9943 | .tested = TEST_UNTESTED, |
| 9944 | .probe = probe_jedec_29gl, |
| 9945 | .probe_timing = TIMING_ZERO, |
| 9946 | .block_erasers = |
| 9947 | { |
| 9948 | { |
| 9949 | .eraseblocks = { {128 * 1024, 128} }, |
| 9950 | .block_erase = erase_sector_jedec, |
| 9951 | }, { |
| 9952 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 9953 | .block_erase = erase_chip_block_jedec, |
| 9954 | }, |
| 9955 | }, |
| 9956 | .write = write_jedec_1, |
| 9957 | .read = read_memmapped, |
| 9958 | .voltage = {2700, 3600}, |
| 9959 | }, |
| 9960 | |
| 9961 | { |
| 9962 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 9963 | .name = "MX29GL320EB", |
| 9964 | .bustype = BUS_PARALLEL, |
| 9965 | .manufacture_id = MACRONIX_ID, |
| 9966 | .model_id = MACRONIX_MX29GL320EB, |
| 9967 | .total_size = 4096, |
| 9968 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9969 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 9970 | .tested = TEST_UNTESTED, |
| 9971 | .probe = probe_jedec_29gl, |
| 9972 | .probe_timing = TIMING_ZERO, |
| 9973 | .block_erasers = |
| 9974 | { |
| 9975 | { |
| 9976 | .eraseblocks = { |
| 9977 | {8 * 1024, 8}, |
| 9978 | {64 * 1024, 63}, |
| 9979 | }, |
| 9980 | .block_erase = erase_sector_jedec, |
| 9981 | }, { |
| 9982 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9983 | .block_erase = erase_chip_block_jedec, |
| 9984 | }, |
| 9985 | }, |
| 9986 | .write = write_jedec_1, |
| 9987 | .read = read_memmapped, |
| 9988 | .voltage = {2700, 3600}, |
| 9989 | }, |
| 9990 | |
| 9991 | { |
| 9992 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9993 | .name = "MX29GL320EH/L", |
| 9994 | .bustype = BUS_PARALLEL, |
| 9995 | .manufacture_id = MACRONIX_ID, |
| 9996 | .model_id = MACRONIX_MX29GL320EHL, |
| 9997 | .total_size = 4096, |
| 9998 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 9999 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10000 | .tested = TEST_UNTESTED, |
| 10001 | .probe = probe_jedec_29gl, |
| 10002 | .probe_timing = TIMING_ZERO, |
| 10003 | .block_erasers = |
| 10004 | { |
| 10005 | { |
| 10006 | .eraseblocks = { {64 * 1024, 64} }, |
| 10007 | .block_erase = erase_sector_jedec, |
| 10008 | }, { |
| 10009 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10010 | .block_erase = erase_chip_block_jedec, |
| 10011 | }, |
| 10012 | }, |
| 10013 | .write = write_jedec_1, |
| 10014 | .read = read_memmapped, |
| 10015 | .voltage = {2700, 3600}, |
| 10016 | }, |
| 10017 | |
| 10018 | { |
| 10019 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 10020 | .name = "MX29GL320ET", |
| 10021 | .bustype = BUS_PARALLEL, |
| 10022 | .manufacture_id = MACRONIX_ID, |
| 10023 | .model_id = MACRONIX_MX29GL320ET, |
| 10024 | .total_size = 4096, |
| 10025 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 10026 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10027 | .tested = TEST_UNTESTED, |
| 10028 | .probe = probe_jedec_29gl, |
| 10029 | .probe_timing = TIMING_ZERO, |
| 10030 | .block_erasers = |
| 10031 | { |
| 10032 | { |
| 10033 | .eraseblocks = { |
| 10034 | {64 * 1024, 63}, |
| 10035 | {8 * 1024, 8}, |
| 10036 | }, |
| 10037 | .block_erase = erase_sector_jedec, |
| 10038 | }, { |
| 10039 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10040 | .block_erase = erase_chip_block_jedec, |
| 10041 | }, |
| 10042 | }, |
| 10043 | .write = write_jedec_1, |
| 10044 | .read = read_memmapped, |
| 10045 | .voltage = {2700, 3600}, |
| 10046 | }, |
| 10047 | |
| 10048 | { |
| 10049 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 10050 | .name = "MX29GL640EB", |
| 10051 | .bustype = BUS_PARALLEL, |
| 10052 | .manufacture_id = MACRONIX_ID, |
| 10053 | .model_id = MACRONIX_MX29GL640EB, |
| 10054 | .total_size = 8192, |
| 10055 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 10056 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10057 | .tested = TEST_UNTESTED, |
| 10058 | .probe = probe_jedec_29gl, |
| 10059 | .probe_timing = TIMING_ZERO, |
| 10060 | .block_erasers = |
| 10061 | { |
| 10062 | { |
| 10063 | .eraseblocks = { |
| 10064 | {8 * 1024, 8}, |
| 10065 | {64 * 1024, 127}, |
| 10066 | }, |
| 10067 | .block_erase = erase_sector_jedec, |
| 10068 | }, { |
| 10069 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10070 | .block_erase = erase_chip_block_jedec, |
| 10071 | }, |
| 10072 | }, |
| 10073 | .write = write_jedec_1, |
| 10074 | .read = read_memmapped, |
| 10075 | .voltage = {2700, 3600}, |
| 10076 | }, |
| 10077 | |
| 10078 | { |
| 10079 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10080 | .name = "MX29GL640EH/L", |
| 10081 | .bustype = BUS_PARALLEL, |
| 10082 | .manufacture_id = MACRONIX_ID, |
| 10083 | .model_id = MACRONIX_MX29GL640EHL, |
| 10084 | .total_size = 8192, |
| 10085 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 10086 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10087 | .tested = TEST_UNTESTED, |
| 10088 | .probe = probe_jedec_29gl, |
| 10089 | .probe_timing = TIMING_ZERO, |
| 10090 | .block_erasers = |
| 10091 | { |
| 10092 | { |
| 10093 | .eraseblocks = { {64 * 1024, 128} }, |
| 10094 | .block_erase = erase_sector_jedec, |
| 10095 | }, { |
| 10096 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10097 | .block_erase = erase_chip_block_jedec, |
| 10098 | }, |
| 10099 | }, |
| 10100 | .write = write_jedec_1, |
| 10101 | .read = read_memmapped, |
| 10102 | .voltage = {2700, 3600}, |
| 10103 | }, |
| 10104 | |
| 10105 | { |
| 10106 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 10107 | .name = "MX29GL640ET", |
| 10108 | .bustype = BUS_PARALLEL, |
| 10109 | .manufacture_id = MACRONIX_ID, |
| 10110 | .model_id = MACRONIX_MX29GL640ET, |
| 10111 | .total_size = 8192, |
| 10112 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 10113 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10114 | .tested = TEST_UNTESTED, |
| 10115 | .probe = probe_jedec_29gl, |
| 10116 | .probe_timing = TIMING_ZERO, |
| 10117 | .block_erasers = |
| 10118 | { |
| 10119 | { |
| 10120 | .eraseblocks = { |
| 10121 | {64 * 1024, 127}, |
| 10122 | {8 * 1024, 8}, |
| 10123 | }, |
| 10124 | .block_erase = erase_sector_jedec, |
| 10125 | }, { |
| 10126 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10127 | .block_erase = erase_chip_block_jedec, |
| 10128 | }, |
| 10129 | }, |
| 10130 | .write = write_jedec_1, |
| 10131 | .read = read_memmapped, |
| 10132 | .voltage = {2700, 3600}, |
| 10133 | }, |
| 10134 | |
| 10135 | { |
| 10136 | .vendor = "Macronix", |
Carl-Daniel Hailfinger | 350a0c3 | 2009-07-24 13:59:27 +0000 | [diff] [blame] | 10137 | .name = "MX29LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10138 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10139 | .manufacture_id = MACRONIX_ID, |
| 10140 | .model_id = MACRONIX_MX29LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10141 | .total_size = 512, |
| 10142 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10143 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10144 | .tested = TEST_UNTESTED, |
| 10145 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 10146 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 10147 | .block_erasers = |
| 10148 | { |
| 10149 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 10150 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10151 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 10152 | }, { |
| 10153 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10154 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 10155 | }, |
| 10156 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 10157 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10158 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10159 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 7de8639 | 2008-12-10 10:32:05 +0000 | [diff] [blame] | 10160 | }, |
| 10161 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10162 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10163 | .vendor = "Macronix", |
Hemanth Guruva Reddy | a136d42 | 2019-07-11 11:08:27 +0200 | [diff] [blame] | 10164 | .name = "MX66L51235F/MX25L51245G", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10165 | .bustype = BUS_SPI, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10166 | .manufacture_id = MACRONIX_ID, |
| 10167 | .model_id = MACRONIX_MX66L51235F, |
| 10168 | .total_size = 65536, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10169 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10170 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 10171 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10172 | .tested = TEST_OK_PREW, |
| 10173 | .probe = probe_spi_rdid, |
| 10174 | .probe_timing = TIMING_ZERO, |
| 10175 | .block_erasers = |
| 10176 | { |
| 10177 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10178 | .eraseblocks = { {4 * 1024, 16384} }, |
| 10179 | .block_erase = spi_block_erase_21, |
| 10180 | }, { |
| 10181 | .eraseblocks = { {4 * 1024, 16384} }, |
| 10182 | .block_erase = spi_block_erase_20, |
| 10183 | }, { |
| 10184 | .eraseblocks = { {32 * 1024, 2048} }, |
| 10185 | .block_erase = spi_block_erase_5c, |
| 10186 | }, { |
| 10187 | .eraseblocks = { {32 * 1024, 2048} }, |
| 10188 | .block_erase = spi_block_erase_52, |
| 10189 | }, { |
| 10190 | .eraseblocks = { {64 * 1024, 1024} }, |
| 10191 | .block_erase = spi_block_erase_dc, |
| 10192 | }, { |
| 10193 | .eraseblocks = { {64 * 1024, 1024} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10194 | .block_erase = spi_block_erase_d8, |
| 10195 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10196 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 10197 | .block_erase = spi_block_erase_60, |
| 10198 | }, { |
| 10199 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10200 | .block_erase = spi_block_erase_c7, |
| 10201 | } |
| 10202 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10203 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
| 10204 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10205 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10206 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10207 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10208 | .voltage = {2700, 3600}, |
| 10209 | }, |
| 10210 | |
Patrick Rudolph | 3ba8315 | 2021-06-08 10:52:19 +0200 | [diff] [blame] | 10211 | { |
| 10212 | .vendor = "Macronix", |
| 10213 | .name = "MX66L1G45G", |
| 10214 | .bustype = BUS_SPI, |
| 10215 | .manufacture_id = MACRONIX_ID, |
| 10216 | .model_id = MACRONIX_MX66L1G45G, |
| 10217 | .total_size = 131072, |
| 10218 | .page_size = 256, |
| 10219 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 10220 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
| 10221 | .tested = TEST_OK_PREW, |
| 10222 | .probe = probe_spi_rdid, |
| 10223 | .probe_timing = TIMING_ZERO, |
| 10224 | .block_erasers = |
| 10225 | { |
| 10226 | { |
| 10227 | .eraseblocks = { {4 * 1024, 32768} }, |
| 10228 | .block_erase = spi_block_erase_21, |
| 10229 | }, { |
| 10230 | .eraseblocks = { {4 * 1024, 32768} }, |
| 10231 | .block_erase = spi_block_erase_20, |
| 10232 | }, { |
| 10233 | .eraseblocks = { {32 * 1024, 4096} }, |
| 10234 | .block_erase = spi_block_erase_5c, |
| 10235 | }, { |
| 10236 | .eraseblocks = { {32 * 1024, 4096} }, |
| 10237 | .block_erase = spi_block_erase_52, |
| 10238 | }, { |
| 10239 | .eraseblocks = { {64 * 1024, 2048} }, |
| 10240 | .block_erase = spi_block_erase_dc, |
| 10241 | }, { |
| 10242 | .eraseblocks = { {64 * 1024, 2048} }, |
| 10243 | .block_erase = spi_block_erase_d8, |
| 10244 | }, { |
| 10245 | .eraseblocks = { {128 * 1024 * 1024, 1} }, |
| 10246 | .block_erase = spi_block_erase_60, |
| 10247 | }, { |
| 10248 | .eraseblocks = { {128 * 1024 * 1024, 1} }, |
| 10249 | .block_erase = spi_block_erase_c7, |
| 10250 | } |
| 10251 | }, |
| 10252 | /* TODO: security register and SBLK/SBULK, configuration register */ |
| 10253 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 10254 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10255 | .write = spi_chip_write_256, |
| 10256 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10257 | .voltage = {2700, 3600}, |
| 10258 | }, |
| 10259 | |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10260 | /* The ST M25P05 is a bit of a problem. It has the same ID as the |
| 10261 | * ST M25P05-A in RES mode, but supports only 128 byte writes instead |
| 10262 | * of 256 byte writes. We rely heavily on the fact that probe_spi_res1 |
| 10263 | * only is successful if RDID does not work. |
| 10264 | */ |
| 10265 | { |
| 10266 | .vendor = "Micron/Numonyx/ST", |
| 10267 | .name = "M25P05", |
| 10268 | .bustype = BUS_SPI, |
| 10269 | .manufacture_id = 0, /* Not used. */ |
| 10270 | .model_id = ST_M25P05_RES, |
| 10271 | .total_size = 64, |
| 10272 | .page_size = 256, |
| 10273 | .feature_bits = FEATURE_WRSR_WREN, |
| 10274 | .tested = TEST_UNTESTED, |
| 10275 | .probe = probe_spi_res1, |
| 10276 | .probe_timing = TIMING_ZERO, |
| 10277 | .block_erasers = |
| 10278 | { |
| 10279 | { |
| 10280 | .eraseblocks = { {32 * 1024, 2} }, |
| 10281 | .block_erase = spi_block_erase_d8, |
| 10282 | }, { |
| 10283 | .eraseblocks = { {64 * 1024, 1} }, |
| 10284 | .block_erase = spi_block_erase_c7, |
| 10285 | } |
| 10286 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10287 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10288 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10289 | .write = spi_chip_write_1, /* 128 */ |
| 10290 | .read = spi_chip_read, |
| 10291 | .voltage = {2700, 3600}, |
| 10292 | }, |
| 10293 | |
| 10294 | { |
| 10295 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10296 | .name = "M25P05-A", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10297 | .bustype = BUS_SPI, |
| 10298 | .manufacture_id = ST_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10299 | .model_id = ST_M25P05A, |
| 10300 | .total_size = 64, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10301 | .page_size = 256, |
| 10302 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 10303 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10304 | .probe = probe_spi_rdid, |
| 10305 | .probe_timing = TIMING_ZERO, |
| 10306 | .block_erasers = |
| 10307 | { |
| 10308 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10309 | .eraseblocks = { {32 * 1024, 2} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10310 | .block_erase = spi_block_erase_d8, |
| 10311 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10312 | .eraseblocks = { {64 * 1024, 1} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10313 | .block_erase = spi_block_erase_c7, |
| 10314 | } |
| 10315 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10316 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10317 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10318 | .write = spi_chip_write_256, |
| 10319 | .read = spi_chip_read, |
| 10320 | .voltage = {2700, 3600}, |
| 10321 | }, |
| 10322 | |
| 10323 | /* The ST M25P10 has the same problem as the M25P05. */ |
| 10324 | { |
| 10325 | .vendor = "Micron/Numonyx/ST", |
| 10326 | .name = "M25P10", |
| 10327 | .bustype = BUS_SPI, |
| 10328 | .manufacture_id = 0, /* Not used. */ |
| 10329 | .model_id = ST_M25P10_RES, |
| 10330 | .total_size = 128, |
| 10331 | .page_size = 256, |
| 10332 | .feature_bits = FEATURE_WRSR_WREN, |
| 10333 | .tested = TEST_UNTESTED, |
| 10334 | .probe = probe_spi_res1, |
| 10335 | .probe_timing = TIMING_ZERO, |
| 10336 | .block_erasers = |
| 10337 | { |
| 10338 | { |
| 10339 | .eraseblocks = { {32 * 1024, 4} }, |
| 10340 | .block_erase = spi_block_erase_d8, |
| 10341 | }, { |
| 10342 | .eraseblocks = { {128 * 1024, 1} }, |
| 10343 | .block_erase = spi_block_erase_c7, |
| 10344 | } |
| 10345 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10346 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10347 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10348 | .write = spi_chip_write_1, /* 128 */ |
| 10349 | .read = spi_chip_read, |
| 10350 | .voltage = {2700, 3600}, |
| 10351 | }, |
| 10352 | |
| 10353 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10354 | .vendor = "Micron/Numonyx/ST", |
| 10355 | .name = "M25P10-A", |
| 10356 | .bustype = BUS_SPI, |
| 10357 | .manufacture_id = ST_ID, |
| 10358 | .model_id = ST_M25P10A, |
| 10359 | .total_size = 128, |
| 10360 | .page_size = 256, |
| 10361 | .feature_bits = FEATURE_WRSR_WREN, |
| 10362 | .tested = TEST_OK_PREW, |
| 10363 | .probe = probe_spi_rdid, |
| 10364 | .probe_timing = TIMING_ZERO, |
| 10365 | .block_erasers = |
| 10366 | { |
| 10367 | { |
| 10368 | .eraseblocks = { {32 * 1024, 4} }, |
| 10369 | .block_erase = spi_block_erase_d8, |
| 10370 | }, { |
| 10371 | .eraseblocks = { {128 * 1024, 1} }, |
| 10372 | .block_erase = spi_block_erase_c7, |
| 10373 | } |
| 10374 | }, |
| 10375 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
| 10376 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10377 | .write = spi_chip_write_256, |
| 10378 | .read = spi_chip_read, |
| 10379 | .voltage = {2700, 3600}, |
| 10380 | }, |
| 10381 | |
| 10382 | { |
| 10383 | .vendor = "Micron/Numonyx/ST", |
| 10384 | .name = "M25P128", |
| 10385 | .bustype = BUS_SPI, |
| 10386 | .manufacture_id = ST_ID, |
| 10387 | .model_id = ST_M25P128, |
| 10388 | .total_size = 16384, |
| 10389 | .page_size = 256, |
| 10390 | .feature_bits = FEATURE_WRSR_WREN, |
| 10391 | .tested = TEST_OK_PREW, |
| 10392 | .probe = probe_spi_rdid, |
| 10393 | .probe_timing = TIMING_ZERO, |
| 10394 | .block_erasers = |
| 10395 | { |
| 10396 | { |
| 10397 | .eraseblocks = { {256 * 1024, 64} }, |
| 10398 | .block_erase = spi_block_erase_d8, |
| 10399 | }, { |
| 10400 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 10401 | .block_erase = spi_block_erase_c7, |
| 10402 | } |
| 10403 | }, |
| 10404 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
| 10405 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10406 | .write = spi_chip_write_256, |
| 10407 | .read = spi_chip_read, |
| 10408 | .voltage = {2700, 3600}, |
| 10409 | }, |
| 10410 | |
| 10411 | { |
| 10412 | .vendor = "Micron/Numonyx/ST", |
| 10413 | .name = "M25P16", |
| 10414 | .bustype = BUS_SPI, |
| 10415 | .manufacture_id = ST_ID, |
| 10416 | .model_id = ST_M25P16, |
| 10417 | .total_size = 2048, |
| 10418 | .page_size = 256, |
| 10419 | .feature_bits = FEATURE_WRSR_WREN, |
| 10420 | .tested = TEST_OK_PREW, |
| 10421 | .probe = probe_spi_rdid, |
| 10422 | .probe_timing = TIMING_ZERO, |
| 10423 | .block_erasers = |
| 10424 | { |
| 10425 | { |
| 10426 | .eraseblocks = { {64 * 1024, 32} }, |
| 10427 | .block_erase = spi_block_erase_d8, |
| 10428 | }, { |
| 10429 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10430 | .block_erase = spi_block_erase_c7, |
| 10431 | } |
| 10432 | }, |
| 10433 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
| 10434 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10435 | .write = spi_chip_write_256, |
| 10436 | .read = spi_chip_read, |
| 10437 | .voltage = {2700, 3600}, |
| 10438 | }, |
| 10439 | |
| 10440 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10441 | .vendor = "Micron/Numonyx/ST", /* Numonyx */ |
| 10442 | .name = "M25P20", |
| 10443 | .bustype = BUS_SPI, |
| 10444 | .manufacture_id = ST_ID, |
| 10445 | .model_id = ST_M25P20, |
| 10446 | .total_size = 256, |
| 10447 | .page_size = 256, |
| 10448 | .feature_bits = FEATURE_WRSR_WREN, |
| 10449 | .tested = TEST_UNTESTED, |
| 10450 | .probe = probe_spi_rdid, |
| 10451 | .probe_timing = TIMING_ZERO, |
| 10452 | .block_erasers = |
| 10453 | { |
| 10454 | { |
| 10455 | .eraseblocks = { {64 * 1024, 4} }, |
| 10456 | .block_erase = spi_block_erase_d8, |
| 10457 | }, { |
| 10458 | .eraseblocks = { {256 * 1024, 1} }, |
| 10459 | .block_erase = spi_block_erase_c7, |
| 10460 | } |
| 10461 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10462 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10463 | .unlock = spi_disable_blockprotect, |
| 10464 | .write = spi_chip_write_256, |
| 10465 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10466 | .voltage = {2700, 3600}, |
| 10467 | }, |
| 10468 | |
| 10469 | { |
| 10470 | .vendor = "Micron/Numonyx/ST", |
| 10471 | .name = "M25P20-old", |
| 10472 | .bustype = BUS_SPI, |
| 10473 | .manufacture_id = 0, /* Not used. */ |
| 10474 | .model_id = ST_M25P20_RES, |
| 10475 | .total_size = 256, |
| 10476 | .page_size = 256, |
| 10477 | .feature_bits = FEATURE_WRSR_WREN, |
| 10478 | .tested = TEST_OK_PREW, |
| 10479 | .probe = probe_spi_res1, |
| 10480 | .probe_timing = TIMING_ZERO, |
| 10481 | .block_erasers = |
| 10482 | { |
| 10483 | { |
| 10484 | .eraseblocks = { {64 * 1024, 4} }, |
| 10485 | .block_erase = spi_block_erase_d8, |
| 10486 | }, { |
| 10487 | .eraseblocks = { {256 * 1024, 1} }, |
| 10488 | .block_erase = spi_block_erase_c7, |
| 10489 | } |
| 10490 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10491 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10492 | .unlock = spi_disable_blockprotect, |
| 10493 | .write = spi_chip_write_256, |
| 10494 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10495 | .voltage = {2700, 3600}, |
| 10496 | }, |
| 10497 | |
| 10498 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10499 | .vendor = "Micron/Numonyx/ST", |
| 10500 | .name = "M25P32", |
| 10501 | .bustype = BUS_SPI, |
| 10502 | .manufacture_id = ST_ID, |
| 10503 | .model_id = ST_M25P32, |
| 10504 | .total_size = 4096, |
| 10505 | .page_size = 256, |
| 10506 | .feature_bits = FEATURE_WRSR_WREN, |
| 10507 | .tested = TEST_OK_PREW, |
| 10508 | .probe = probe_spi_rdid, |
| 10509 | .probe_timing = TIMING_ZERO, |
| 10510 | .block_erasers = |
| 10511 | { |
| 10512 | { |
| 10513 | .eraseblocks = { {64 * 1024, 64} }, |
| 10514 | .block_erase = spi_block_erase_d8, |
| 10515 | }, { |
| 10516 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10517 | .block_erase = spi_block_erase_c7, |
| 10518 | } |
| 10519 | }, |
| 10520 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
| 10521 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10522 | .write = spi_chip_write_256, |
| 10523 | .read = spi_chip_read, |
| 10524 | .voltage = {2700, 3600}, |
| 10525 | }, |
| 10526 | |
| 10527 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10528 | .vendor = "Micron/Numonyx/ST", /* Numonyx */ |
| 10529 | .name = "M25P40", |
| 10530 | .bustype = BUS_SPI, |
| 10531 | .manufacture_id = ST_ID, |
| 10532 | .model_id = ST_M25P40, |
| 10533 | .total_size = 512, |
| 10534 | .page_size = 256, |
| 10535 | .feature_bits = FEATURE_WRSR_WREN, |
| 10536 | .tested = TEST_OK_PREW, |
| 10537 | .probe = probe_spi_rdid, |
| 10538 | .probe_timing = TIMING_ZERO, |
| 10539 | .block_erasers = |
| 10540 | { |
| 10541 | { |
| 10542 | .eraseblocks = { {64 * 1024, 8} }, |
| 10543 | .block_erase = spi_block_erase_d8, |
| 10544 | }, { |
| 10545 | .eraseblocks = { {512 * 1024, 1} }, |
| 10546 | .block_erase = spi_block_erase_c7, |
| 10547 | } |
| 10548 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10549 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10550 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10551 | .write = spi_chip_write_256, |
| 10552 | .read = spi_chip_read, |
| 10553 | .voltage = {2700, 3600}, |
| 10554 | }, |
| 10555 | |
| 10556 | { |
| 10557 | .vendor = "Micron/Numonyx/ST", |
| 10558 | .name = "M25P40-old", |
| 10559 | .bustype = BUS_SPI, |
| 10560 | .manufacture_id = 0, /* Not used. */ |
| 10561 | .model_id = ST_M25P40_RES, |
| 10562 | .total_size = 512, |
| 10563 | .page_size = 256, |
| 10564 | .feature_bits = FEATURE_WRSR_WREN, |
| 10565 | .tested = TEST_UNTESTED, |
| 10566 | .probe = probe_spi_res1, |
| 10567 | .probe_timing = TIMING_ZERO, |
| 10568 | .block_erasers = |
| 10569 | { |
| 10570 | { |
| 10571 | .eraseblocks = { {64 * 1024, 8} }, |
| 10572 | .block_erase = spi_block_erase_d8, |
| 10573 | }, { |
| 10574 | .eraseblocks = { {512 * 1024, 1} }, |
| 10575 | .block_erase = spi_block_erase_c7, |
| 10576 | } |
| 10577 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10578 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10579 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10580 | .write = spi_chip_write_256, |
| 10581 | .read = spi_chip_read, |
| 10582 | }, |
| 10583 | |
| 10584 | { |
| 10585 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10586 | .name = "M25P64", |
| 10587 | .bustype = BUS_SPI, |
| 10588 | .manufacture_id = ST_ID, |
| 10589 | .model_id = ST_M25P64, |
| 10590 | .total_size = 8192, |
| 10591 | .page_size = 256, |
| 10592 | .feature_bits = FEATURE_WRSR_WREN, |
| 10593 | .tested = TEST_OK_PREW, |
| 10594 | .probe = probe_spi_rdid, |
| 10595 | .probe_timing = TIMING_ZERO, |
| 10596 | .block_erasers = |
| 10597 | { |
| 10598 | { |
| 10599 | .eraseblocks = { {64 * 1024, 128} }, |
| 10600 | .block_erase = spi_block_erase_d8, |
| 10601 | }, { |
| 10602 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10603 | .block_erase = spi_block_erase_c7, |
| 10604 | } |
| 10605 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10606 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10607 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10608 | .write = spi_chip_write_256, |
| 10609 | .read = spi_chip_read, |
| 10610 | .voltage = {2700, 3600}, |
| 10611 | }, |
| 10612 | |
| 10613 | { |
| 10614 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10615 | .name = "M25P80", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10616 | .bustype = BUS_SPI, |
| 10617 | .manufacture_id = ST_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10618 | .model_id = ST_M25P80, |
| 10619 | .total_size = 1024, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10620 | .page_size = 256, |
| 10621 | .feature_bits = FEATURE_WRSR_WREN, |
| 10622 | .tested = TEST_OK_PREW, |
| 10623 | .probe = probe_spi_rdid, |
| 10624 | .probe_timing = TIMING_ZERO, |
| 10625 | .block_erasers = |
| 10626 | { |
| 10627 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10628 | .eraseblocks = { {64 * 1024, 16} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10629 | .block_erase = spi_block_erase_d8, |
| 10630 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10631 | .eraseblocks = { {1024 * 1024, 1} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10632 | .block_erase = spi_block_erase_c7, |
| 10633 | } |
| 10634 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10635 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10636 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10637 | .write = spi_chip_write_256, |
| 10638 | .read = spi_chip_read, |
| 10639 | .voltage = {2700, 3600}, |
| 10640 | }, |
| 10641 | |
| 10642 | { |
| 10643 | .vendor = "Micron/Numonyx/ST", |
| 10644 | .name = "M25PE10", |
| 10645 | .bustype = BUS_SPI, |
| 10646 | .manufacture_id = ST_ID, |
| 10647 | .model_id = ST_M25PE10, |
| 10648 | .total_size = 128, |
| 10649 | .page_size = 256, |
| 10650 | .feature_bits = FEATURE_WRSR_WREN, |
| 10651 | .tested = TEST_UNTESTED, |
| 10652 | .probe = probe_spi_rdid, |
| 10653 | .probe_timing = TIMING_ZERO, |
| 10654 | .block_erasers = |
| 10655 | { |
| 10656 | { |
| 10657 | .eraseblocks = { {4 * 1024, 32} }, |
| 10658 | .block_erase = spi_block_erase_20, |
| 10659 | }, { |
| 10660 | .eraseblocks = { {64 * 1024, 2} }, |
| 10661 | .block_erase = spi_block_erase_d8, |
| 10662 | }, { |
| 10663 | .eraseblocks = { {128 * 1024, 1} }, |
| 10664 | .block_erase = spi_block_erase_c7, |
| 10665 | } |
| 10666 | }, |
| 10667 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 10668 | .unlock = spi_disable_blockprotect, |
| 10669 | .write = spi_chip_write_256, |
| 10670 | .read = spi_chip_read, |
| 10671 | .voltage = {2700, 3600}, |
| 10672 | }, |
| 10673 | |
| 10674 | { |
| 10675 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10676 | .name = "M25PE16", |
| 10677 | .bustype = BUS_SPI, |
| 10678 | .manufacture_id = ST_ID, |
| 10679 | .model_id = ST_M25PE16, |
| 10680 | .total_size = 2048, |
| 10681 | .page_size = 256, |
| 10682 | .feature_bits = FEATURE_WRSR_WREN, |
| 10683 | .tested = TEST_UNTESTED, |
| 10684 | .probe = probe_spi_rdid, |
| 10685 | .probe_timing = TIMING_ZERO, |
| 10686 | .block_erasers = |
| 10687 | { |
| 10688 | { |
| 10689 | .eraseblocks = { {4 * 1024, 512} }, |
| 10690 | .block_erase = spi_block_erase_20, |
| 10691 | }, { |
| 10692 | .eraseblocks = { {64 * 1024, 32} }, |
| 10693 | .block_erase = spi_block_erase_d8, |
| 10694 | }, { |
| 10695 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10696 | .block_erase = spi_block_erase_c7, |
| 10697 | } |
| 10698 | }, |
| 10699 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 10700 | .unlock = spi_disable_blockprotect, |
| 10701 | .write = spi_chip_write_256, |
| 10702 | .read = spi_chip_read, |
| 10703 | .voltage = {2700, 3600}, |
| 10704 | }, |
| 10705 | |
| 10706 | { |
| 10707 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10708 | .name = "M25PE20", |
| 10709 | .bustype = BUS_SPI, |
| 10710 | .manufacture_id = ST_ID, |
| 10711 | .model_id = ST_M25PE20, |
| 10712 | .total_size = 256, |
| 10713 | .page_size = 256, |
| 10714 | .feature_bits = FEATURE_WRSR_WREN, |
| 10715 | .tested = TEST_UNTESTED, |
| 10716 | .probe = probe_spi_rdid, |
| 10717 | .probe_timing = TIMING_ZERO, |
| 10718 | .block_erasers = |
| 10719 | { |
| 10720 | { |
| 10721 | .eraseblocks = { {4 * 1024, 64} }, |
| 10722 | .block_erase = spi_block_erase_20, |
| 10723 | }, { |
| 10724 | .eraseblocks = { {64 * 1024, 4} }, |
| 10725 | .block_erase = spi_block_erase_d8, |
| 10726 | }, { |
| 10727 | .eraseblocks = { {256 * 1024, 1} }, |
| 10728 | .block_erase = spi_block_erase_c7, |
| 10729 | } |
| 10730 | }, |
| 10731 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 10732 | .unlock = spi_disable_blockprotect, |
| 10733 | .write = spi_chip_write_256, |
| 10734 | .read = spi_chip_read, |
| 10735 | .voltage = {2700, 3600}, |
| 10736 | }, |
| 10737 | |
| 10738 | { |
| 10739 | .vendor = "Micron/Numonyx/ST", |
| 10740 | .name = "M25PE40", |
| 10741 | .bustype = BUS_SPI, |
| 10742 | .manufacture_id = ST_ID, |
| 10743 | .model_id = ST_M25PE40, |
| 10744 | .total_size = 512, |
| 10745 | .page_size = 256, |
| 10746 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 10747 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10748 | .probe = probe_spi_rdid, |
| 10749 | .probe_timing = TIMING_ZERO, |
| 10750 | .block_erasers = |
| 10751 | { |
| 10752 | { |
| 10753 | .eraseblocks = { {4 * 1024, 128} }, |
| 10754 | .block_erase = spi_block_erase_20, |
| 10755 | }, { |
| 10756 | .eraseblocks = { {64 * 1024, 8} }, |
| 10757 | .block_erase = spi_block_erase_d8, |
| 10758 | }, { |
| 10759 | .eraseblocks = { {512 * 1024, 1} }, |
| 10760 | .block_erase = spi_block_erase_c7, |
| 10761 | } |
| 10762 | }, |
| 10763 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 10764 | .unlock = spi_disable_blockprotect, |
| 10765 | .write = spi_chip_write_256, |
| 10766 | .read = spi_chip_read, |
| 10767 | .voltage = {2700, 3600}, |
| 10768 | }, |
| 10769 | |
| 10770 | { |
| 10771 | .vendor = "Micron/Numonyx/ST", |
| 10772 | .name = "M25PE80", |
| 10773 | .bustype = BUS_SPI, |
| 10774 | .manufacture_id = ST_ID, |
| 10775 | .model_id = ST_M25PE80, |
| 10776 | .total_size = 1024, |
| 10777 | .page_size = 256, |
| 10778 | .feature_bits = FEATURE_WRSR_WREN, |
| 10779 | .tested = TEST_OK_PREW, |
| 10780 | .probe = probe_spi_rdid, |
| 10781 | .probe_timing = TIMING_ZERO, |
| 10782 | .block_erasers = |
| 10783 | { |
| 10784 | { |
| 10785 | .eraseblocks = { {4 * 1024, 256} }, |
| 10786 | .block_erase = spi_block_erase_20, |
| 10787 | }, { |
| 10788 | .eraseblocks = { {64 * 1024, 16} }, |
| 10789 | .block_erase = spi_block_erase_d8, |
| 10790 | }, { |
| 10791 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10792 | .block_erase = spi_block_erase_c7, |
| 10793 | } |
| 10794 | }, |
| 10795 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 10796 | .unlock = spi_disable_blockprotect, |
| 10797 | .write = spi_chip_write_256, |
| 10798 | .read = spi_chip_read, |
| 10799 | .voltage = {2700, 3600}, |
| 10800 | }, |
| 10801 | |
| 10802 | { |
| 10803 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10804 | .name = "M25PX16", |
| 10805 | .bustype = BUS_SPI, |
| 10806 | .manufacture_id = ST_ID, |
| 10807 | .model_id = ST_M25PX16, |
| 10808 | .total_size = 2048, |
| 10809 | .page_size = 256, |
| 10810 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 10811 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10812 | .tested = TEST_OK_PREW, |
| 10813 | .probe = probe_spi_rdid, |
| 10814 | .probe_timing = TIMING_ZERO, |
| 10815 | .block_erasers = |
| 10816 | { |
| 10817 | { |
| 10818 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 10819 | .block_erase = spi_block_erase_20, |
| 10820 | }, { |
| 10821 | .eraseblocks = { {64 * 1024, 32} }, |
| 10822 | .block_erase = spi_block_erase_d8, |
| 10823 | }, { |
| 10824 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10825 | .block_erase = spi_block_erase_c7, |
| 10826 | } |
| 10827 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10828 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10829 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 10830 | .write = spi_chip_write_256, |
| 10831 | .read = spi_chip_read, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 10832 | .voltage = {2300, 3600}, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10833 | }, |
| 10834 | |
| 10835 | { |
| 10836 | .vendor = "Micron/Numonyx/ST", |
| 10837 | .name = "M25PX32", |
| 10838 | .bustype = BUS_SPI, |
| 10839 | .manufacture_id = ST_ID, |
| 10840 | .model_id = ST_M25PX32, |
| 10841 | .total_size = 4096, |
| 10842 | .page_size = 256, |
| 10843 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 10844 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10845 | .tested = TEST_OK_PRE, |
| 10846 | .probe = probe_spi_rdid, |
| 10847 | .probe_timing = TIMING_ZERO, |
| 10848 | .block_erasers = |
| 10849 | { |
| 10850 | { |
| 10851 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 10852 | .block_erase = spi_block_erase_20, |
| 10853 | }, { |
| 10854 | .eraseblocks = { {64 * 1024, 64} }, |
| 10855 | .block_erase = spi_block_erase_d8, |
| 10856 | }, { |
| 10857 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10858 | .block_erase = spi_block_erase_c7, |
| 10859 | } |
| 10860 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10861 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10862 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 10863 | .write = spi_chip_write_256, |
| 10864 | .read = spi_chip_read, |
| 10865 | .voltage = {2700, 3600}, |
| 10866 | }, |
| 10867 | |
| 10868 | { |
| 10869 | .vendor = "Micron/Numonyx/ST", |
| 10870 | .name = "M25PX64", |
| 10871 | .bustype = BUS_SPI, |
| 10872 | .manufacture_id = ST_ID, |
| 10873 | .model_id = ST_M25PX64, |
| 10874 | .total_size = 8192, |
| 10875 | .page_size = 256, |
| 10876 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 10877 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 10878 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10879 | .probe = probe_spi_rdid, |
| 10880 | .probe_timing = TIMING_ZERO, |
| 10881 | .block_erasers = |
| 10882 | { |
| 10883 | { |
| 10884 | .eraseblocks = { { 4 * 1024, 2048 } }, |
| 10885 | .block_erase = spi_block_erase_20, |
| 10886 | }, { |
| 10887 | .eraseblocks = { {64 * 1024, 128} }, |
| 10888 | .block_erase = spi_block_erase_d8, |
| 10889 | }, { |
| 10890 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10891 | .block_erase = spi_block_erase_c7, |
| 10892 | } |
| 10893 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10894 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10895 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 10896 | .write = spi_chip_write_256, |
| 10897 | .read = spi_chip_read, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 10898 | .voltage = {2700, 3600}, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10899 | }, |
| 10900 | |
| 10901 | { |
| 10902 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10903 | .name = "M25PX80", |
| 10904 | .bustype = BUS_SPI, |
| 10905 | .manufacture_id = ST_ID, |
| 10906 | .model_id = ST_M25PX80, |
| 10907 | .total_size = 1024, |
| 10908 | .page_size = 256, |
| 10909 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 10910 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10911 | .tested = TEST_OK_PREW, |
| 10912 | .probe = probe_spi_rdid, |
| 10913 | .probe_timing = TIMING_ZERO, |
| 10914 | .block_erasers = |
| 10915 | { |
| 10916 | { |
| 10917 | .eraseblocks = { { 4 * 1024, 256 } }, |
| 10918 | .block_erase = spi_block_erase_20, |
| 10919 | }, { |
| 10920 | .eraseblocks = { {64 * 1024, 16} }, |
| 10921 | .block_erase = spi_block_erase_d8, |
| 10922 | }, { |
| 10923 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10924 | .block_erase = spi_block_erase_c7, |
| 10925 | } |
| 10926 | }, |
| 10927 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
| 10928 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 10929 | .write = spi_chip_write_256, |
| 10930 | .read = spi_chip_read, |
| 10931 | .voltage = {2700, 3600}, |
| 10932 | }, |
| 10933 | |
| 10934 | { |
| 10935 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10936 | .name = "M45PE10", |
| 10937 | .bustype = BUS_SPI, |
| 10938 | .manufacture_id = ST_ID, |
| 10939 | .model_id = ST_M45PE10, |
| 10940 | .total_size = 128, |
| 10941 | .page_size = 256, |
| 10942 | .tested = TEST_UNTESTED, |
| 10943 | .probe = probe_spi_rdid, |
| 10944 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 10945 | .block_erasers = |
| 10946 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10947 | { |
| 10948 | .eraseblocks = { {256, 512} }, |
| 10949 | .block_erase = spi_block_erase_db, |
| 10950 | }, { |
| 10951 | .eraseblocks = { {64 * 1024, 2} }, |
| 10952 | .block_erase = spi_block_erase_d8, |
| 10953 | } |
| 10954 | }, |
| 10955 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 10956 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 10957 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 10958 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10959 | .voltage = {2700, 3600}, |
| 10960 | }, |
| 10961 | |
| 10962 | { |
| 10963 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10964 | .name = "M45PE16", |
| 10965 | .bustype = BUS_SPI, |
| 10966 | .manufacture_id = ST_ID, |
| 10967 | .model_id = ST_M45PE16, |
| 10968 | .total_size = 2048, |
| 10969 | .page_size = 256, |
| 10970 | .tested = TEST_UNTESTED, |
| 10971 | .probe = probe_spi_rdid, |
| 10972 | .probe_timing = TIMING_ZERO, |
| 10973 | .block_erasers = |
| 10974 | { |
| 10975 | { |
| 10976 | .eraseblocks = { {256, 8192} }, |
| 10977 | .block_erase = spi_block_erase_db, |
| 10978 | }, { |
| 10979 | .eraseblocks = { {64 * 1024, 32} }, |
| 10980 | .block_erase = spi_block_erase_d8, |
| 10981 | } |
| 10982 | }, |
| 10983 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 10984 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 10985 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 10986 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10987 | .voltage = {2700, 3600}, |
| 10988 | }, |
| 10989 | |
| 10990 | { |
| 10991 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10992 | .name = "M45PE20", |
| 10993 | .bustype = BUS_SPI, |
| 10994 | .manufacture_id = ST_ID, |
| 10995 | .model_id = ST_M45PE20, |
| 10996 | .total_size = 256, |
| 10997 | .page_size = 256, |
| 10998 | .tested = TEST_UNTESTED, |
| 10999 | .probe = probe_spi_rdid, |
| 11000 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 11001 | .block_erasers = |
| 11002 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11003 | { |
| 11004 | .eraseblocks = { {256, 1024} }, |
| 11005 | .block_erase = spi_block_erase_db, |
| 11006 | }, { |
| 11007 | .eraseblocks = { {64 * 1024, 4} }, |
| 11008 | .block_erase = spi_block_erase_d8, |
| 11009 | } |
| 11010 | }, |
| 11011 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 11012 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 11013 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 11014 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11015 | .voltage = {2700, 3600}, |
| 11016 | }, |
| 11017 | |
| 11018 | { |
| 11019 | .vendor = "Micron/Numonyx/ST", |
| 11020 | .name = "M45PE40", |
| 11021 | .bustype = BUS_SPI, |
| 11022 | .manufacture_id = ST_ID, |
| 11023 | .model_id = ST_M45PE40, |
| 11024 | .total_size = 512, |
| 11025 | .page_size = 256, |
| 11026 | .tested = TEST_UNTESTED, |
| 11027 | .probe = probe_spi_rdid, |
| 11028 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 11029 | .block_erasers = |
| 11030 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11031 | { |
| 11032 | .eraseblocks = { {256, 2048} }, |
| 11033 | .block_erase = spi_block_erase_db, |
| 11034 | }, { |
| 11035 | .eraseblocks = { {64 * 1024, 8} }, |
| 11036 | .block_erase = spi_block_erase_d8, |
| 11037 | } |
| 11038 | }, |
| 11039 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 11040 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11041 | .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] | 11042 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11043 | .voltage = {2700, 3600}, |
| 11044 | }, |
| 11045 | |
| 11046 | { |
| 11047 | .vendor = "Micron/Numonyx/ST", |
| 11048 | .name = "M45PE80", |
| 11049 | .bustype = BUS_SPI, |
| 11050 | .manufacture_id = ST_ID, |
| 11051 | .model_id = ST_M45PE80, |
| 11052 | .total_size = 1024, |
| 11053 | .page_size = 256, |
| 11054 | .tested = TEST_UNTESTED, |
| 11055 | .probe = probe_spi_rdid, |
| 11056 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 11057 | .block_erasers = |
| 11058 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11059 | { |
| 11060 | .eraseblocks = { {256, 4096} }, |
| 11061 | .block_erase = spi_block_erase_db, |
| 11062 | }, { |
| 11063 | .eraseblocks = { {64 * 1024, 16} }, |
| 11064 | .block_erase = spi_block_erase_d8, |
| 11065 | } |
| 11066 | }, |
| 11067 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 11068 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 11069 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 11070 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11071 | .voltage = {2700, 3600}, |
| 11072 | }, |
| 11073 | |
| 11074 | { |
| 11075 | .vendor = "Micron/Numonyx/ST", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11076 | .name = "N25Q00A..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11077 | .bustype = BUS_SPI, |
| 11078 | .manufacture_id = ST_ID, |
| 11079 | .model_id = ST_N25Q00A__1G, |
| 11080 | .total_size = 131072, |
| 11081 | .page_size = 256, |
| 11082 | /* supports SFDP */ |
| 11083 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11084 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11085 | .tested = TEST_UNTESTED, |
| 11086 | .probe = probe_spi_rdid, |
| 11087 | .probe_timing = TIMING_ZERO, |
| 11088 | .block_erasers = |
| 11089 | { |
| 11090 | { |
| 11091 | .eraseblocks = { {4 * 1024, 32768} }, |
| 11092 | .block_erase = spi_block_erase_21, |
| 11093 | }, { |
| 11094 | .eraseblocks = { {4 * 1024, 32768} }, |
| 11095 | .block_erase = spi_block_erase_20, |
| 11096 | }, { |
| 11097 | .eraseblocks = { {64 * 1024, 2048} }, |
| 11098 | .block_erase = spi_block_erase_dc, |
| 11099 | }, { |
| 11100 | .eraseblocks = { {64 * 1024, 2048} }, |
| 11101 | .block_erase = spi_block_erase_d8, |
| 11102 | }, { |
| 11103 | .eraseblocks = { {32768 * 1024, 4} }, |
| 11104 | .block_erase = spi_block_erase_c4, |
| 11105 | } |
| 11106 | }, |
| 11107 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11108 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11109 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11110 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11111 | .voltage = {1700, 2000}, |
| 11112 | }, |
| 11113 | |
| 11114 | { |
| 11115 | .vendor = "Micron/Numonyx/ST", |
| 11116 | .name = "N25Q00A..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */ |
| 11117 | .bustype = BUS_SPI, |
| 11118 | .manufacture_id = ST_ID, |
| 11119 | .model_id = ST_N25Q00A__3G, |
| 11120 | .total_size = 131072, |
| 11121 | .page_size = 256, |
| 11122 | /* supports SFDP */ |
| 11123 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11124 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11125 | .tested = TEST_UNTESTED, |
| 11126 | .probe = probe_spi_rdid, |
| 11127 | .probe_timing = TIMING_ZERO, |
| 11128 | .block_erasers = |
| 11129 | { |
| 11130 | { |
| 11131 | .eraseblocks = { {4 * 1024, 32768} }, |
| 11132 | .block_erase = spi_block_erase_21, |
| 11133 | }, { |
| 11134 | .eraseblocks = { {4 * 1024, 32768} }, |
| 11135 | .block_erase = spi_block_erase_20, |
| 11136 | }, { |
| 11137 | .eraseblocks = { {64 * 1024, 2048} }, |
| 11138 | .block_erase = spi_block_erase_dc, |
| 11139 | }, { |
| 11140 | .eraseblocks = { {64 * 1024, 2048} }, |
| 11141 | .block_erase = spi_block_erase_d8, |
| 11142 | }, { |
| 11143 | .eraseblocks = { {32768 * 1024, 4} }, |
| 11144 | .block_erase = spi_block_erase_c4, |
| 11145 | } |
| 11146 | }, |
| 11147 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11148 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11149 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11150 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11151 | .voltage = {2700, 3600}, |
| 11152 | }, |
| 11153 | |
| 11154 | { |
| 11155 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11156 | .name = "N25Q016", |
| 11157 | .bustype = BUS_SPI, |
| 11158 | .manufacture_id = ST_ID, |
| 11159 | .model_id = ST_N25Q016__1E, |
| 11160 | .total_size = 2048, |
| 11161 | .page_size = 256, |
| 11162 | /* supports SFDP */ |
| 11163 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11164 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11165 | .tested = TEST_UNTESTED, |
| 11166 | .probe = probe_spi_rdid, |
| 11167 | .probe_timing = TIMING_ZERO, |
| 11168 | .block_erasers = |
| 11169 | { |
| 11170 | { |
| 11171 | .eraseblocks = { {4 * 1024, 512} }, |
| 11172 | .block_erase = spi_block_erase_20, |
| 11173 | }, { |
| 11174 | .eraseblocks = { {32 * 1024, 64} }, |
| 11175 | .block_erase = spi_block_erase_52, |
| 11176 | }, { |
| 11177 | .eraseblocks = { {64 * 1024, 32} }, |
| 11178 | .block_erase = spi_block_erase_d8, |
| 11179 | }, { |
| 11180 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 11181 | .block_erase = spi_block_erase_c7, |
| 11182 | } |
| 11183 | }, |
| 11184 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11185 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11186 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11187 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11188 | .voltage = {1700, 2000}, |
| 11189 | }, |
| 11190 | |
| 11191 | { |
| 11192 | .vendor = "Micron/Numonyx/ST", |
| 11193 | .name = "N25Q032..1E", |
| 11194 | .bustype = BUS_SPI, |
| 11195 | .manufacture_id = ST_ID, |
| 11196 | .model_id = ST_N25Q032__1E, |
| 11197 | .total_size = 4096, |
| 11198 | .page_size = 256, |
| 11199 | /* supports SFDP */ |
| 11200 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11201 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11202 | .tested = TEST_UNTESTED, |
| 11203 | .probe = probe_spi_rdid, |
| 11204 | .probe_timing = TIMING_ZERO, |
| 11205 | .block_erasers = |
| 11206 | { |
| 11207 | { |
| 11208 | .eraseblocks = { {4 * 1024, 1024} }, |
| 11209 | .block_erase = spi_block_erase_20, |
| 11210 | }, { |
| 11211 | .eraseblocks = { {64 * 1024, 64} }, |
| 11212 | .block_erase = spi_block_erase_d8, |
| 11213 | }, { |
| 11214 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 11215 | .block_erase = spi_block_erase_c7, |
| 11216 | } |
| 11217 | }, |
| 11218 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11219 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11220 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11221 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11222 | .voltage = {1700, 2000}, |
Sergii Dmytruk | d5ba24c | 2022-07-25 00:28:35 +0300 | [diff] [blame] | 11223 | .reg_bits = |
| 11224 | { |
| 11225 | /* |
| 11226 | * There is also a volatile lock register per 64KiB sector, which is not |
| 11227 | * mutually exclusive with BP-based protection. |
| 11228 | */ |
| 11229 | .srp = {STATUS1, 7, RW}, |
| 11230 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 11231 | .tb = {STATUS1, 5, RW}, |
| 11232 | }, |
| 11233 | .decode_range = decode_range_spi25, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11234 | }, |
| 11235 | |
| 11236 | { |
| 11237 | .vendor = "Micron/Numonyx/ST", |
| 11238 | .name = "N25Q032..3E", |
| 11239 | .bustype = BUS_SPI, |
| 11240 | .manufacture_id = ST_ID, |
| 11241 | .model_id = ST_N25Q032__3E, |
| 11242 | .total_size = 4096, |
| 11243 | .page_size = 256, |
| 11244 | /* supports SFDP */ |
| 11245 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11246 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11247 | .tested = TEST_OK_PREW, |
| 11248 | .probe = probe_spi_rdid, |
| 11249 | .probe_timing = TIMING_ZERO, |
| 11250 | .block_erasers = |
| 11251 | { |
| 11252 | { |
| 11253 | .eraseblocks = { {4 * 1024, 1024} }, |
| 11254 | .block_erase = spi_block_erase_20, |
| 11255 | }, { |
| 11256 | .eraseblocks = { {64 * 1024, 64} }, |
| 11257 | .block_erase = spi_block_erase_d8, |
| 11258 | }, { |
| 11259 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 11260 | .block_erase = spi_block_erase_c7, |
| 11261 | } |
| 11262 | }, |
| 11263 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11264 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11265 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11266 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11267 | .voltage = {2700, 3600}, |
Sergii Dmytruk | d5ba24c | 2022-07-25 00:28:35 +0300 | [diff] [blame] | 11268 | .reg_bits = |
| 11269 | { |
| 11270 | /* |
| 11271 | * There is also a volatile lock register per 64KiB sector, which is not |
| 11272 | * mutually exclusive with BP-based protection. |
| 11273 | */ |
| 11274 | .srp = {STATUS1, 7, RW}, |
| 11275 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 11276 | .tb = {STATUS1, 5, RW}, |
| 11277 | }, |
| 11278 | .decode_range = decode_range_spi25, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11279 | }, |
| 11280 | |
| 11281 | { |
| 11282 | .vendor = "Micron/Numonyx/ST", |
| 11283 | .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11284 | .bustype = BUS_SPI, |
| 11285 | .manufacture_id = ST_ID, |
| 11286 | .model_id = ST_N25Q064__1E, |
| 11287 | .total_size = 8192, |
| 11288 | .page_size = 256, |
| 11289 | /* supports SFDP */ |
| 11290 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11291 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 11292 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11293 | .probe = probe_spi_rdid, |
| 11294 | .probe_timing = TIMING_ZERO, |
| 11295 | .block_erasers = |
| 11296 | { |
| 11297 | { |
| 11298 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 11299 | .block_erase = spi_block_erase_20, |
| 11300 | }, { |
| 11301 | .eraseblocks = { {64 * 1024, 128} }, |
| 11302 | .block_erase = spi_block_erase_d8, |
| 11303 | }, { |
| 11304 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 11305 | .block_erase = spi_block_erase_c7, |
| 11306 | } |
| 11307 | }, |
| 11308 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11309 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11310 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11311 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11312 | .voltage = {1700, 2000}, |
Sergii Dmytruk | d5ba24c | 2022-07-25 00:28:35 +0300 | [diff] [blame] | 11313 | .reg_bits = |
| 11314 | { |
| 11315 | /* |
| 11316 | * There is also a volatile lock register per 64KiB sector, which is not |
| 11317 | * mutually exclusive with BP-based protection. |
| 11318 | */ |
| 11319 | .srp = {STATUS1, 7, RW}, |
| 11320 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}}, |
| 11321 | .tb = {STATUS1, 5, RW}, |
| 11322 | }, |
| 11323 | .decode_range = decode_range_spi25, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11324 | }, |
| 11325 | |
| 11326 | { |
| 11327 | .vendor = "Micron/Numonyx/ST", |
| 11328 | .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 11329 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 11330 | .manufacture_id = ST_ID, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11331 | .model_id = ST_N25Q064__3E, |
| 11332 | .total_size = 8192, |
| 11333 | .page_size = 256, |
| 11334 | /* supports SFDP */ |
| 11335 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11336 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11337 | .tested = TEST_OK_PREW, |
| 11338 | .probe = probe_spi_rdid, |
| 11339 | .probe_timing = TIMING_ZERO, |
| 11340 | .block_erasers = |
| 11341 | { |
| 11342 | { |
| 11343 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 11344 | .block_erase = spi_block_erase_20, |
| 11345 | }, { |
| 11346 | .eraseblocks = { {64 * 1024, 128} }, |
| 11347 | .block_erase = spi_block_erase_d8, |
| 11348 | }, { |
| 11349 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 11350 | .block_erase = spi_block_erase_c7, |
| 11351 | } |
| 11352 | }, |
| 11353 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11354 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11355 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11356 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11357 | .voltage = {2700, 3600}, |
Sergii Dmytruk | d5ba24c | 2022-07-25 00:28:35 +0300 | [diff] [blame] | 11358 | .reg_bits = |
| 11359 | { |
| 11360 | /* |
| 11361 | * There is also a volatile lock register per 64KiB sector, which is not |
| 11362 | * mutually exclusive with BP-based protection. |
| 11363 | */ |
| 11364 | .srp = {STATUS1, 7, RW}, |
| 11365 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}}, |
| 11366 | .tb = {STATUS1, 5, RW}, |
| 11367 | }, |
| 11368 | .decode_range = decode_range_spi25, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11369 | }, |
| 11370 | |
| 11371 | { |
| 11372 | .vendor = "Micron/Numonyx/ST", |
| 11373 | .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11374 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 11375 | .manufacture_id = ST_ID, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11376 | .model_id = ST_N25Q128__1E, |
| 11377 | .total_size = 16384, |
| 11378 | .page_size = 256, |
| 11379 | /* supports SFDP */ |
| 11380 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11381 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11382 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11383 | .probe = probe_spi_rdid, |
| 11384 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 11385 | .block_erasers = |
| 11386 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11387 | { |
| 11388 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 11389 | .block_erase = spi_block_erase_20, |
| 11390 | }, { |
| 11391 | .eraseblocks = { {64 * 1024, 256} }, |
| 11392 | .block_erase = spi_block_erase_d8, |
| 11393 | }, { |
| 11394 | .eraseblocks = { {16384 * 1024, 1} }, |
| 11395 | .block_erase = spi_block_erase_c7, |
| 11396 | } |
| 11397 | }, |
| 11398 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11399 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11400 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11401 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11402 | .voltage = {1700, 2000}, |
| 11403 | }, |
| 11404 | |
| 11405 | { |
| 11406 | .vendor = "Micron/Numonyx/ST", |
| 11407 | .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 11408 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 11409 | .manufacture_id = ST_ID, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11410 | .model_id = ST_N25Q128__3E, |
| 11411 | .total_size = 16384, |
| 11412 | .page_size = 256, |
| 11413 | /* supports SFDP */ |
| 11414 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11415 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11416 | .tested = TEST_OK_PREW, |
| 11417 | .probe = probe_spi_rdid, |
| 11418 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 11419 | .block_erasers = |
| 11420 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11421 | { |
| 11422 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 11423 | .block_erase = spi_block_erase_20, |
| 11424 | }, { |
| 11425 | .eraseblocks = { {64 * 1024, 256} }, |
| 11426 | .block_erase = spi_block_erase_d8, |
| 11427 | }, { |
| 11428 | .eraseblocks = { {16384 * 1024, 1} }, |
| 11429 | .block_erase = spi_block_erase_c7, |
| 11430 | } |
| 11431 | }, |
| 11432 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11433 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11434 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11435 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11436 | .voltage = {2700, 3600}, |
| 11437 | }, |
| 11438 | |
| 11439 | { |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 11440 | .vendor = "Micron/Numonyx/ST", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11441 | .name = "N25Q256..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11442 | .bustype = BUS_SPI, |
| 11443 | .manufacture_id = ST_ID, |
| 11444 | .model_id = ST_N25Q256__1E, |
| 11445 | .total_size = 32768, |
| 11446 | .page_size = 256, |
| 11447 | /* supports SFDP */ |
| 11448 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11449 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11450 | .tested = TEST_UNTESTED, |
| 11451 | .probe = probe_spi_rdid, |
| 11452 | .probe_timing = TIMING_ZERO, |
| 11453 | .block_erasers = |
| 11454 | { |
| 11455 | { |
| 11456 | .eraseblocks = { {4 * 1024, 8192} }, |
| 11457 | .block_erase = spi_block_erase_21, |
| 11458 | }, { |
| 11459 | .eraseblocks = { {4 * 1024, 8192} }, |
| 11460 | .block_erase = spi_block_erase_20, |
| 11461 | }, { |
| 11462 | .eraseblocks = { {64 * 1024, 512} }, |
| 11463 | .block_erase = spi_block_erase_dc, |
| 11464 | }, { |
| 11465 | .eraseblocks = { {64 * 1024, 512} }, |
| 11466 | .block_erase = spi_block_erase_d8, |
| 11467 | }, { |
| 11468 | .eraseblocks = { {32768 * 1024, 1} }, |
| 11469 | .block_erase = spi_block_erase_c7, |
| 11470 | } |
| 11471 | }, |
| 11472 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11473 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11474 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11475 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11476 | .voltage = {1700, 2000}, |
| 11477 | }, |
| 11478 | |
| 11479 | { |
| 11480 | .vendor = "Micron/Numonyx/ST", |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 11481 | .name = "N25Q256..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 11482 | .bustype = BUS_SPI, |
| 11483 | .manufacture_id = ST_ID, |
| 11484 | .model_id = ST_N25Q256__3E, |
| 11485 | .total_size = 32768, |
| 11486 | .page_size = 256, |
| 11487 | /* supports SFDP */ |
| 11488 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11489 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11490 | .tested = TEST_UNTESTED, |
| 11491 | .probe = probe_spi_rdid, |
| 11492 | .probe_timing = TIMING_ZERO, |
| 11493 | .block_erasers = |
| 11494 | { |
| 11495 | { |
| 11496 | .eraseblocks = { {4 * 1024, 8192} }, |
| 11497 | .block_erase = spi_block_erase_21, |
| 11498 | }, { |
| 11499 | .eraseblocks = { {4 * 1024, 8192} }, |
| 11500 | .block_erase = spi_block_erase_20, |
| 11501 | }, { |
| 11502 | .eraseblocks = { {64 * 1024, 512} }, |
| 11503 | .block_erase = spi_block_erase_dc, |
| 11504 | }, { |
| 11505 | .eraseblocks = { {64 * 1024, 512} }, |
| 11506 | .block_erase = spi_block_erase_d8, |
| 11507 | }, { |
| 11508 | .eraseblocks = { {32768 * 1024, 1} }, |
| 11509 | .block_erase = spi_block_erase_c7, |
| 11510 | } |
| 11511 | }, |
| 11512 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11513 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11514 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11515 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11516 | .voltage = {2700, 3600}, |
| 11517 | }, |
| 11518 | |
| 11519 | { |
| 11520 | .vendor = "Micron/Numonyx/ST", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11521 | .name = "N25Q512..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */ |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 11522 | .bustype = BUS_SPI, |
| 11523 | .manufacture_id = ST_ID, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11524 | .model_id = ST_N25Q512__1G, |
| 11525 | .total_size = 65536, |
| 11526 | .page_size = 256, |
| 11527 | /* supports SFDP */ |
| 11528 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11529 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11530 | .tested = TEST_UNTESTED, |
| 11531 | .probe = probe_spi_rdid, |
| 11532 | .probe_timing = TIMING_ZERO, |
| 11533 | .block_erasers = |
| 11534 | { |
| 11535 | { |
| 11536 | .eraseblocks = { {4 * 1024, 16384} }, |
| 11537 | .block_erase = spi_block_erase_21, |
| 11538 | }, { |
| 11539 | .eraseblocks = { {4 * 1024, 16384} }, |
| 11540 | .block_erase = spi_block_erase_20, |
| 11541 | }, { |
| 11542 | .eraseblocks = { {64 * 1024, 1024} }, |
| 11543 | .block_erase = spi_block_erase_dc, |
| 11544 | }, { |
| 11545 | .eraseblocks = { {64 * 1024, 1024} }, |
| 11546 | .block_erase = spi_block_erase_d8, |
| 11547 | }, { |
| 11548 | .eraseblocks = { {32768 * 1024, 2} }, |
| 11549 | .block_erase = spi_block_erase_c4, |
| 11550 | } |
| 11551 | }, |
| 11552 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11553 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11554 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11555 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11556 | .voltage = {1700, 2000}, |
| 11557 | }, |
| 11558 | |
| 11559 | { |
| 11560 | .vendor = "Micron/Numonyx/ST", |
| 11561 | .name = "N25Q512..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */ |
| 11562 | .bustype = BUS_SPI, |
| 11563 | .manufacture_id = ST_ID, |
| 11564 | .model_id = ST_N25Q512__3G, |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 11565 | .total_size = 65536, |
| 11566 | .page_size = 256, |
| 11567 | /* supports SFDP */ |
| 11568 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11569 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11570 | .tested = TEST_OK_PREW, |
| 11571 | .probe = probe_spi_rdid, |
| 11572 | .probe_timing = TIMING_ZERO, |
| 11573 | .block_erasers = |
| 11574 | { |
| 11575 | { |
| 11576 | .eraseblocks = { {4 * 1024, 16384} }, |
| 11577 | .block_erase = spi_block_erase_21, |
| 11578 | }, { |
| 11579 | .eraseblocks = { {4 * 1024, 16384} }, |
| 11580 | .block_erase = spi_block_erase_20, |
| 11581 | }, { |
| 11582 | .eraseblocks = { {64 * 1024, 1024} }, |
| 11583 | .block_erase = spi_block_erase_dc, |
| 11584 | }, { |
| 11585 | .eraseblocks = { {64 * 1024, 1024} }, |
| 11586 | .block_erase = spi_block_erase_d8, |
| 11587 | }, { |
Jacob Creedon | e8e7b0e | 2019-07-22 12:21:22 -0700 | [diff] [blame] | 11588 | .eraseblocks = { {32768 * 1024, 2} }, |
| 11589 | .block_erase = spi_block_erase_c4, |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 11590 | } |
| 11591 | }, |
| 11592 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11593 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11594 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11595 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11596 | .voltage = {2700, 3600}, |
| 11597 | }, |
| 11598 | |
| 11599 | { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11600 | .vendor = "Micron", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11601 | .name = "MT25QL01G", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
| 11602 | .bustype = BUS_SPI, |
| 11603 | .manufacture_id = ST_ID, |
| 11604 | .model_id = ST_N25Q00A__3G, |
| 11605 | .total_size = 131072, |
| 11606 | .page_size = 256, |
| 11607 | /* supports SFDP */ |
| 11608 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11609 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11610 | .tested = TEST_OK_PREW, |
| 11611 | .probe = probe_spi_rdid, |
| 11612 | .probe_timing = TIMING_ZERO, |
| 11613 | .block_erasers = |
| 11614 | { |
| 11615 | { |
| 11616 | .eraseblocks = { {4 * 1024, 32768} }, |
| 11617 | .block_erase = spi_block_erase_21, |
| 11618 | }, { |
| 11619 | .eraseblocks = { {4 * 1024, 32768} }, |
| 11620 | .block_erase = spi_block_erase_20, |
| 11621 | }, { |
| 11622 | .eraseblocks = { {32 * 1024, 4096} }, |
| 11623 | .block_erase = spi_block_erase_5c, |
| 11624 | }, { |
| 11625 | .eraseblocks = { {32 * 1024, 4096} }, |
| 11626 | .block_erase = spi_block_erase_52, |
| 11627 | }, { |
| 11628 | .eraseblocks = { {64 * 1024, 2048} }, |
| 11629 | .block_erase = spi_block_erase_dc, |
| 11630 | }, { |
| 11631 | .eraseblocks = { {64 * 1024, 2048} }, |
| 11632 | .block_erase = spi_block_erase_d8, |
| 11633 | }, { |
| 11634 | .eraseblocks = { {65536 * 1024, 2} }, |
| 11635 | .block_erase = spi_block_erase_c4, |
| 11636 | } |
| 11637 | }, |
| 11638 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11639 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11640 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11641 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11642 | .voltage = {2700, 3600}, |
| 11643 | }, |
| 11644 | |
| 11645 | { |
| 11646 | .vendor = "Micron", |
| 11647 | .name = "MT25QU01G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11648 | .bustype = BUS_SPI, |
| 11649 | .manufacture_id = ST_ID, |
| 11650 | .model_id = ST_N25Q00A__1G, |
| 11651 | .total_size = 131072, |
| 11652 | .page_size = 256, |
| 11653 | /* supports SFDP */ |
| 11654 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11655 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11656 | .tested = TEST_UNTESTED, |
| 11657 | .probe = probe_spi_rdid, |
| 11658 | .probe_timing = TIMING_ZERO, |
| 11659 | .block_erasers = |
| 11660 | { |
| 11661 | { |
| 11662 | .eraseblocks = { {4 * 1024, 32768} }, |
| 11663 | .block_erase = spi_block_erase_21, |
| 11664 | }, { |
| 11665 | .eraseblocks = { {4 * 1024, 32768} }, |
| 11666 | .block_erase = spi_block_erase_20, |
| 11667 | }, { |
| 11668 | .eraseblocks = { {32 * 1024, 4096} }, |
| 11669 | .block_erase = spi_block_erase_5c, |
| 11670 | }, { |
| 11671 | .eraseblocks = { {32 * 1024, 4096} }, |
| 11672 | .block_erase = spi_block_erase_52, |
| 11673 | }, { |
| 11674 | .eraseblocks = { {64 * 1024, 2048} }, |
| 11675 | .block_erase = spi_block_erase_dc, |
| 11676 | }, { |
| 11677 | .eraseblocks = { {64 * 1024, 2048} }, |
| 11678 | .block_erase = spi_block_erase_d8, |
| 11679 | }, { |
| 11680 | .eraseblocks = { {65536 * 1024, 2} }, |
| 11681 | .block_erase = spi_block_erase_c4, |
| 11682 | } |
| 11683 | }, |
| 11684 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11685 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11686 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11687 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11688 | .voltage = {1700, 2000}, |
| 11689 | }, |
| 11690 | |
| 11691 | { |
| 11692 | .vendor = "Micron", |
| 11693 | .name = "MT25QL02G", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
| 11694 | .bustype = BUS_SPI, |
| 11695 | .manufacture_id = ST_ID, |
| 11696 | .model_id = ST_MT25QL02G, |
| 11697 | .total_size = 262144, |
| 11698 | .page_size = 256, |
| 11699 | /* supports SFDP */ |
| 11700 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11701 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11702 | .tested = TEST_UNTESTED, |
| 11703 | .probe = probe_spi_rdid, |
| 11704 | .probe_timing = TIMING_ZERO, |
| 11705 | .block_erasers = |
| 11706 | { |
| 11707 | { |
| 11708 | .eraseblocks = { {4 * 1024, 65536} }, |
| 11709 | .block_erase = spi_block_erase_21, |
| 11710 | }, { |
| 11711 | .eraseblocks = { {4 * 1024, 65536} }, |
| 11712 | .block_erase = spi_block_erase_20, |
| 11713 | }, { |
| 11714 | .eraseblocks = { {32 * 1024, 8192} }, |
| 11715 | .block_erase = spi_block_erase_5c, |
| 11716 | }, { |
| 11717 | .eraseblocks = { {32 * 1024, 8192} }, |
| 11718 | .block_erase = spi_block_erase_52, |
| 11719 | }, { |
| 11720 | .eraseblocks = { {64 * 1024, 4096} }, |
| 11721 | .block_erase = spi_block_erase_dc, |
| 11722 | }, { |
| 11723 | .eraseblocks = { {64 * 1024, 4096} }, |
| 11724 | .block_erase = spi_block_erase_d8, |
| 11725 | }, { |
| 11726 | .eraseblocks = { {65536 * 1024, 4} }, |
| 11727 | .block_erase = spi_block_erase_c4, |
| 11728 | } |
| 11729 | }, |
| 11730 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11731 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11732 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11733 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11734 | .voltage = {2700, 3600}, |
| 11735 | }, |
| 11736 | |
| 11737 | { |
| 11738 | .vendor = "Micron", |
| 11739 | .name = "MT25QU02G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11740 | .bustype = BUS_SPI, |
| 11741 | .manufacture_id = ST_ID, |
| 11742 | .model_id = ST_MT25QU02G, |
| 11743 | .total_size = 262144, |
| 11744 | .page_size = 256, |
| 11745 | /* supports SFDP */ |
| 11746 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11747 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11748 | .tested = TEST_UNTESTED, |
| 11749 | .probe = probe_spi_rdid, |
| 11750 | .probe_timing = TIMING_ZERO, |
| 11751 | .block_erasers = |
| 11752 | { |
| 11753 | { |
| 11754 | .eraseblocks = { {4 * 1024, 65536} }, |
| 11755 | .block_erase = spi_block_erase_21, |
| 11756 | }, { |
| 11757 | .eraseblocks = { {4 * 1024, 65536} }, |
| 11758 | .block_erase = spi_block_erase_20, |
| 11759 | }, { |
| 11760 | .eraseblocks = { {32 * 1024, 8192} }, |
| 11761 | .block_erase = spi_block_erase_5c, |
| 11762 | }, { |
| 11763 | .eraseblocks = { {32 * 1024, 8192} }, |
| 11764 | .block_erase = spi_block_erase_52, |
| 11765 | }, { |
| 11766 | .eraseblocks = { {64 * 1024, 4096} }, |
| 11767 | .block_erase = spi_block_erase_dc, |
| 11768 | }, { |
| 11769 | .eraseblocks = { {64 * 1024, 4096} }, |
| 11770 | .block_erase = spi_block_erase_d8, |
| 11771 | }, { |
| 11772 | .eraseblocks = { {65536 * 1024, 4} }, |
| 11773 | .block_erase = spi_block_erase_c4, |
| 11774 | } |
| 11775 | }, |
| 11776 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11777 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11778 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11779 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11780 | .voltage = {1700, 2000}, |
| 11781 | }, |
| 11782 | |
| 11783 | { |
| 11784 | .vendor = "Micron", |
| 11785 | .name = "MT25QU128", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11786 | .bustype = BUS_SPI, |
| 11787 | .manufacture_id = ST_ID, |
| 11788 | .model_id = ST_N25Q128__1E, |
| 11789 | .total_size = 16384, |
| 11790 | .page_size = 256, |
| 11791 | /* supports SFDP */ |
| 11792 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
Nico Huber | 48dc090 | 2023-03-05 17:20:55 +0100 | [diff] [blame] | 11793 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11794 | .tested = TEST_UNTESTED, |
| 11795 | .probe = probe_spi_rdid, |
| 11796 | .probe_timing = TIMING_ZERO, |
| 11797 | .block_erasers = |
| 11798 | { |
| 11799 | { |
| 11800 | .eraseblocks = { {4 * 1024, 4096} }, |
| 11801 | .block_erase = spi_block_erase_20, |
| 11802 | }, { |
| 11803 | .eraseblocks = { {32 * 1024, 512} }, |
| 11804 | .block_erase = spi_block_erase_52, |
| 11805 | }, { |
| 11806 | .eraseblocks = { {64 * 1024, 256} }, |
| 11807 | .block_erase = spi_block_erase_d8, |
| 11808 | }, { |
| 11809 | .eraseblocks = { {16384 * 1024, 1} }, |
| 11810 | .block_erase = spi_block_erase_c7, |
| 11811 | }, { |
| 11812 | .eraseblocks = { {16384 * 1024, 1} }, |
| 11813 | .block_erase = spi_block_erase_60, |
| 11814 | } |
| 11815 | }, |
| 11816 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11817 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11818 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11819 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11820 | .voltage = {1700, 2000}, |
| 11821 | }, |
| 11822 | |
| 11823 | { |
| 11824 | .vendor = "Micron", |
| 11825 | .name = "MT25QL128", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
| 11826 | .bustype = BUS_SPI, |
| 11827 | .manufacture_id = ST_ID, |
| 11828 | .model_id = ST_N25Q128__3E, |
| 11829 | .total_size = 16384, |
| 11830 | .page_size = 256, |
| 11831 | /* supports SFDP */ |
| 11832 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
Rick Altherr | 1e56360 | 2022-12-22 10:25:34 -0800 | [diff] [blame] | 11833 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11834 | .tested = TEST_OK_PREW, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11835 | .probe = probe_spi_rdid, |
| 11836 | .probe_timing = TIMING_ZERO, |
| 11837 | .block_erasers = |
| 11838 | { |
| 11839 | { |
| 11840 | .eraseblocks = { {4 * 1024, 4096} }, |
| 11841 | .block_erase = spi_block_erase_20, |
| 11842 | }, { |
| 11843 | .eraseblocks = { {32 * 1024, 512} }, |
| 11844 | .block_erase = spi_block_erase_52, |
| 11845 | }, { |
| 11846 | .eraseblocks = { {64 * 1024, 256} }, |
| 11847 | .block_erase = spi_block_erase_d8, |
| 11848 | }, { |
| 11849 | .eraseblocks = { {16384 * 1024, 1} }, |
| 11850 | .block_erase = spi_block_erase_c7, |
| 11851 | }, { |
| 11852 | .eraseblocks = { {16384 * 1024, 1} }, |
| 11853 | .block_erase = spi_block_erase_60, |
| 11854 | } |
| 11855 | }, |
| 11856 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11857 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11858 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11859 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11860 | .voltage = {2700, 3600}, |
| 11861 | }, |
| 11862 | |
| 11863 | { |
| 11864 | .vendor = "Micron", |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 11865 | .name = "MT25QL256", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11866 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 11867 | .manufacture_id = ST_ID, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11868 | .model_id = ST_N25Q256__3E, |
| 11869 | .total_size = 32768, |
| 11870 | .page_size = 256, |
| 11871 | /* supports SFDP */ |
| 11872 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 11873 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
Simon Buhrow | b7014f9 | 2021-02-15 13:16:57 +0100 | [diff] [blame] | 11874 | .tested = TEST_OK_PREW, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11875 | .probe = probe_spi_rdid, |
| 11876 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 11877 | .block_erasers = |
| 11878 | { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11879 | { |
| 11880 | .eraseblocks = { {4 * 1024, 8192} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 11881 | .block_erase = spi_block_erase_21, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11882 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 11883 | .eraseblocks = { {4 * 1024, 8192} }, |
| 11884 | .block_erase = spi_block_erase_20, |
| 11885 | }, { |
Jacob Creedon | 045b97e | 2019-07-22 12:26:56 -0700 | [diff] [blame] | 11886 | .eraseblocks = { {32 * 1024, 1024} }, |
| 11887 | .block_erase = spi_block_erase_5c, |
| 11888 | }, { |
| 11889 | .eraseblocks = { {32 * 1024, 1024} }, |
| 11890 | .block_erase = spi_block_erase_52, |
| 11891 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11892 | .eraseblocks = { {64 * 1024, 512} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 11893 | .block_erase = spi_block_erase_dc, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11894 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 11895 | .eraseblocks = { {64 * 1024, 512} }, |
| 11896 | .block_erase = spi_block_erase_d8, |
| 11897 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11898 | .eraseblocks = { {32768 * 1024, 1} }, |
| 11899 | .block_erase = spi_block_erase_c7, |
Jacob Creedon | 045b97e | 2019-07-22 12:26:56 -0700 | [diff] [blame] | 11900 | }, { |
| 11901 | .eraseblocks = { {32768 * 1024, 1} }, |
| 11902 | .block_erase = spi_block_erase_60, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11903 | } |
| 11904 | }, |
| 11905 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11906 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11907 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11908 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11909 | .voltage = {2700, 3600}, |
| 11910 | }, |
| 11911 | |
| 11912 | { |
| 11913 | .vendor = "Micron", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11914 | .name = "MT25QU256", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11915 | .bustype = BUS_SPI, |
| 11916 | .manufacture_id = ST_ID, |
| 11917 | .model_id = ST_N25Q256__1E, |
| 11918 | .total_size = 32768, |
| 11919 | .page_size = 256, |
| 11920 | /* supports SFDP */ |
| 11921 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11922 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
Angel Pons | 5905258 | 2022-03-08 15:23:58 +0100 | [diff] [blame] | 11923 | .tested = TEST_OK_PREW, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11924 | .probe = probe_spi_rdid, |
| 11925 | .probe_timing = TIMING_ZERO, |
| 11926 | .block_erasers = |
| 11927 | { |
| 11928 | { |
| 11929 | .eraseblocks = { {4 * 1024, 8192} }, |
| 11930 | .block_erase = spi_block_erase_21, |
| 11931 | }, { |
| 11932 | .eraseblocks = { {4 * 1024, 8192} }, |
| 11933 | .block_erase = spi_block_erase_20, |
| 11934 | }, { |
| 11935 | .eraseblocks = { {32 * 1024, 1024} }, |
| 11936 | .block_erase = spi_block_erase_5c, |
| 11937 | }, { |
| 11938 | .eraseblocks = { {32 * 1024, 1024} }, |
| 11939 | .block_erase = spi_block_erase_52, |
| 11940 | }, { |
| 11941 | .eraseblocks = { {64 * 1024, 512} }, |
| 11942 | .block_erase = spi_block_erase_dc, |
| 11943 | }, { |
| 11944 | .eraseblocks = { {64 * 1024, 512} }, |
| 11945 | .block_erase = spi_block_erase_d8, |
| 11946 | }, { |
| 11947 | .eraseblocks = { {32768 * 1024, 1} }, |
| 11948 | .block_erase = spi_block_erase_c7, |
| 11949 | }, { |
| 11950 | .eraseblocks = { {32768 * 1024, 1} }, |
| 11951 | .block_erase = spi_block_erase_60, |
| 11952 | } |
| 11953 | }, |
| 11954 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11955 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11956 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11957 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11958 | .voltage = {1700, 2000}, |
| 11959 | }, |
| 11960 | |
| 11961 | { |
| 11962 | .vendor = "Micron", |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 11963 | .name = "MT25QL512", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11964 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 11965 | .manufacture_id = ST_ID, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11966 | .model_id = ST_N25Q512__3G, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11967 | .total_size = 65536, |
| 11968 | .page_size = 256, |
| 11969 | /* supports SFDP */ |
| 11970 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 11971 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
Angel Pons | 3ed5a35 | 2018-09-30 16:31:09 +0200 | [diff] [blame] | 11972 | .tested = TEST_OK_PREW, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11973 | .probe = probe_spi_rdid, |
| 11974 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 11975 | .block_erasers = |
| 11976 | { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11977 | { |
| 11978 | .eraseblocks = { {4 * 1024, 16384} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 11979 | .block_erase = spi_block_erase_21, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11980 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 11981 | .eraseblocks = { {4 * 1024, 16384} }, |
| 11982 | .block_erase = spi_block_erase_20, |
| 11983 | }, { |
Jacob Creedon | 045b97e | 2019-07-22 12:26:56 -0700 | [diff] [blame] | 11984 | .eraseblocks = { {32 * 1024, 2048} }, |
| 11985 | .block_erase = spi_block_erase_5c, |
| 11986 | }, { |
| 11987 | .eraseblocks = { {32 * 1024, 2048} }, |
| 11988 | .block_erase = spi_block_erase_52, |
| 11989 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11990 | .eraseblocks = { {64 * 1024, 1024} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 11991 | .block_erase = spi_block_erase_dc, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11992 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 11993 | .eraseblocks = { {64 * 1024, 1024} }, |
| 11994 | .block_erase = spi_block_erase_d8, |
| 11995 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11996 | .eraseblocks = { {65536 * 1024, 1} }, |
| 11997 | .block_erase = spi_block_erase_c7, |
Jacob Creedon | 045b97e | 2019-07-22 12:26:56 -0700 | [diff] [blame] | 11998 | }, { |
| 11999 | .eraseblocks = { {65536 * 1024, 1} }, |
| 12000 | .block_erase = spi_block_erase_60, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12001 | } |
| 12002 | }, |
| 12003 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 12004 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 12005 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12006 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12007 | .voltage = {2700, 3600}, |
Sergii Dmytruk | d5ba24c | 2022-07-25 00:28:35 +0300 | [diff] [blame] | 12008 | .reg_bits = |
| 12009 | { |
| 12010 | .srp = {STATUS1, 7, RW}, |
| 12011 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}}, |
| 12012 | .tb = {STATUS1, 5, RW}, |
| 12013 | }, |
| 12014 | .decode_range = decode_range_spi25, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12015 | }, |
| 12016 | |
| 12017 | { |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12018 | .vendor = "Micron", |
| 12019 | .name = "MT25QU512", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 12020 | .bustype = BUS_SPI, |
| 12021 | .manufacture_id = ST_ID, |
| 12022 | .model_id = ST_N25Q512__1G, |
| 12023 | .total_size = 65536, |
| 12024 | .page_size = 256, |
| 12025 | /* supports SFDP */ |
| 12026 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 12027 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 12028 | .tested = TEST_OK_PREW, |
| 12029 | .probe = probe_spi_rdid, |
| 12030 | .probe_timing = TIMING_ZERO, |
| 12031 | .block_erasers = |
| 12032 | { |
| 12033 | { |
| 12034 | .eraseblocks = { {4 * 1024, 16384} }, |
| 12035 | .block_erase = spi_block_erase_21, |
| 12036 | }, { |
| 12037 | .eraseblocks = { {4 * 1024, 16384} }, |
| 12038 | .block_erase = spi_block_erase_20, |
| 12039 | }, { |
| 12040 | .eraseblocks = { {32 * 1024, 2048} }, |
| 12041 | .block_erase = spi_block_erase_5c, |
| 12042 | }, { |
| 12043 | .eraseblocks = { {32 * 1024, 2048} }, |
| 12044 | .block_erase = spi_block_erase_52, |
| 12045 | }, { |
| 12046 | .eraseblocks = { {64 * 1024, 1024} }, |
| 12047 | .block_erase = spi_block_erase_dc, |
| 12048 | }, { |
| 12049 | .eraseblocks = { {64 * 1024, 1024} }, |
| 12050 | .block_erase = spi_block_erase_d8, |
| 12051 | }, { |
| 12052 | .eraseblocks = { {65536 * 1024, 1} }, |
| 12053 | .block_erase = spi_block_erase_c7, |
| 12054 | }, { |
| 12055 | .eraseblocks = { {65536 * 1024, 1} }, |
| 12056 | .block_erase = spi_block_erase_60, |
| 12057 | } |
| 12058 | }, |
| 12059 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 12060 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 12061 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12062 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12063 | .voltage = {1700, 2000}, |
| 12064 | }, |
| 12065 | |
| 12066 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12067 | .vendor = "MoselVitelic", |
| 12068 | .name = "V29C51000B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12069 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12070 | .manufacture_id = SYNCMOS_MVC_ID, |
| 12071 | .model_id = MVC_V29C51000B, |
| 12072 | .total_size = 64, |
| 12073 | .page_size = 512, |
| 12074 | .feature_bits = FEATURE_EITHER_RESET, |
| 12075 | .tested = TEST_UNTESTED, |
| 12076 | .probe = probe_jedec, |
| 12077 | .probe_timing = TIMING_ZERO, |
| 12078 | .block_erasers = |
| 12079 | { |
| 12080 | { |
| 12081 | .eraseblocks = { {512, 128} }, |
| 12082 | .block_erase = erase_sector_jedec, |
| 12083 | }, { |
| 12084 | .eraseblocks = { {64 * 1024, 1} }, |
| 12085 | .block_erase = erase_chip_block_jedec, |
| 12086 | }, |
| 12087 | }, |
| 12088 | .write = write_jedec_1, |
| 12089 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12090 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12091 | }, |
| 12092 | |
| 12093 | { |
| 12094 | .vendor = "MoselVitelic", |
| 12095 | .name = "V29C51000T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12096 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12097 | .manufacture_id = SYNCMOS_MVC_ID, |
| 12098 | .model_id = MVC_V29C51000T, |
| 12099 | .total_size = 64, |
| 12100 | .page_size = 512, |
| 12101 | .feature_bits = FEATURE_EITHER_RESET, |
| 12102 | .tested = TEST_UNTESTED, |
| 12103 | .probe = probe_jedec, |
| 12104 | .probe_timing = TIMING_ZERO, |
| 12105 | .block_erasers = |
| 12106 | { |
| 12107 | { |
| 12108 | .eraseblocks = { {512, 128} }, |
| 12109 | .block_erase = erase_sector_jedec, |
| 12110 | }, { |
| 12111 | .eraseblocks = { {64 * 1024, 1} }, |
| 12112 | .block_erase = erase_chip_block_jedec, |
| 12113 | }, |
| 12114 | }, |
| 12115 | .write = write_jedec_1, |
| 12116 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12117 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12118 | }, |
| 12119 | |
| 12120 | { |
| 12121 | .vendor = "MoselVitelic", |
| 12122 | .name = "V29C51400B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12123 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12124 | .manufacture_id = SYNCMOS_MVC_ID, |
| 12125 | .model_id = MVC_V29C51400B, |
| 12126 | .total_size = 512, |
| 12127 | .page_size = 1024, |
| 12128 | .feature_bits = FEATURE_EITHER_RESET, |
| 12129 | .tested = TEST_UNTESTED, |
| 12130 | .probe = probe_jedec, |
| 12131 | .probe_timing = TIMING_ZERO, |
| 12132 | .block_erasers = |
| 12133 | { |
| 12134 | { |
| 12135 | .eraseblocks = { {1024, 512} }, |
| 12136 | .block_erase = erase_sector_jedec, |
| 12137 | }, { |
| 12138 | .eraseblocks = { {512 * 1024, 1} }, |
| 12139 | .block_erase = erase_chip_block_jedec, |
| 12140 | }, |
| 12141 | }, |
| 12142 | .write = write_jedec_1, |
| 12143 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12144 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12145 | }, |
| 12146 | |
| 12147 | { |
| 12148 | .vendor = "MoselVitelic", |
| 12149 | .name = "V29C51400T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12150 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12151 | .manufacture_id = SYNCMOS_MVC_ID, |
| 12152 | .model_id = MVC_V29C51400T, |
| 12153 | .total_size = 512, |
| 12154 | .page_size = 1024, |
| 12155 | .feature_bits = FEATURE_EITHER_RESET, |
| 12156 | .tested = TEST_UNTESTED, |
| 12157 | .probe = probe_jedec, |
| 12158 | .probe_timing = TIMING_ZERO, |
| 12159 | .block_erasers = |
| 12160 | { |
| 12161 | { |
| 12162 | .eraseblocks = { {1024, 512} }, |
| 12163 | .block_erase = erase_sector_jedec, |
| 12164 | }, { |
| 12165 | .eraseblocks = { {512 * 1024, 1} }, |
| 12166 | .block_erase = erase_chip_block_jedec, |
| 12167 | }, |
| 12168 | }, |
| 12169 | .write = write_jedec_1, |
| 12170 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12171 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12172 | }, |
| 12173 | |
| 12174 | { |
| 12175 | .vendor = "MoselVitelic", |
| 12176 | .name = "V29LC51000", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12177 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12178 | .manufacture_id = SYNCMOS_MVC_ID, |
| 12179 | .model_id = MVC_V29LC51000, |
| 12180 | .total_size = 64, |
| 12181 | .page_size = 512, |
| 12182 | .feature_bits = FEATURE_EITHER_RESET, |
| 12183 | .tested = TEST_UNTESTED, |
| 12184 | .probe = probe_jedec, |
| 12185 | .probe_timing = TIMING_ZERO, |
| 12186 | .block_erasers = |
| 12187 | { |
| 12188 | { |
| 12189 | .eraseblocks = { {512, 128} }, |
| 12190 | .block_erase = erase_sector_jedec, |
| 12191 | }, { |
| 12192 | .eraseblocks = { {64 * 1024, 1} }, |
| 12193 | .block_erase = erase_chip_block_jedec, |
| 12194 | }, |
| 12195 | }, |
| 12196 | .write = write_jedec_1, |
| 12197 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12198 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12199 | }, |
| 12200 | |
| 12201 | { |
| 12202 | .vendor = "MoselVitelic", |
| 12203 | .name = "V29LC51001", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12204 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12205 | .manufacture_id = SYNCMOS_MVC_ID, |
| 12206 | .model_id = MVC_V29LC51001, |
| 12207 | .total_size = 128, |
| 12208 | .page_size = 512, |
| 12209 | .feature_bits = FEATURE_EITHER_RESET, |
| 12210 | .tested = TEST_UNTESTED, |
| 12211 | .probe = probe_jedec, |
| 12212 | .probe_timing = TIMING_ZERO, |
| 12213 | .block_erasers = |
| 12214 | { |
| 12215 | { |
| 12216 | .eraseblocks = { {512, 256} }, |
| 12217 | .block_erase = erase_sector_jedec, |
| 12218 | }, { |
| 12219 | .eraseblocks = { {128 * 1024, 1} }, |
| 12220 | .block_erase = erase_chip_block_jedec, |
| 12221 | }, |
| 12222 | }, |
| 12223 | .write = write_jedec_1, |
| 12224 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12225 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12226 | }, |
| 12227 | |
| 12228 | { |
| 12229 | .vendor = "MoselVitelic", |
| 12230 | .name = "V29LC51002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12231 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12232 | .manufacture_id = SYNCMOS_MVC_ID, |
| 12233 | .model_id = MVC_V29LC51002, |
| 12234 | .total_size = 256, |
| 12235 | .page_size = 512, |
| 12236 | .feature_bits = FEATURE_EITHER_RESET, |
| 12237 | .tested = TEST_UNTESTED, |
| 12238 | .probe = probe_jedec, |
| 12239 | .probe_timing = TIMING_ZERO, |
| 12240 | .block_erasers = |
| 12241 | { |
| 12242 | { |
| 12243 | .eraseblocks = { {512, 512} }, |
| 12244 | .block_erase = erase_sector_jedec, |
| 12245 | }, { |
| 12246 | .eraseblocks = { {256 * 1024, 1} }, |
| 12247 | .block_erase = erase_chip_block_jedec, |
| 12248 | }, |
| 12249 | }, |
| 12250 | .write = write_jedec_1, |
| 12251 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12252 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12253 | }, |
| 12254 | |
| 12255 | { |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 12256 | .vendor = "Nantronics", |
| 12257 | .name = "N25S10", |
| 12258 | .bustype = BUS_SPI, |
| 12259 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 12260 | .model_id = NANTRONICS_N25S10, |
| 12261 | .total_size = 128, |
| 12262 | .page_size = 256, |
| 12263 | .feature_bits = FEATURE_WRSR_WREN, |
| 12264 | .tested = TEST_UNTESTED, |
| 12265 | .probe = probe_spi_rdid, |
| 12266 | .probe_timing = TIMING_ZERO, |
| 12267 | .block_erasers = |
| 12268 | { |
| 12269 | { |
| 12270 | .eraseblocks = { {4 * 1024, 32} }, |
| 12271 | .block_erase = spi_block_erase_20, |
| 12272 | }, { |
| 12273 | .eraseblocks = { {4 * 1024, 32} }, |
| 12274 | .block_erase = spi_block_erase_d7, |
| 12275 | }, { |
| 12276 | .eraseblocks = { {32 * 1024, 4} }, |
| 12277 | .block_erase = spi_block_erase_52, |
| 12278 | }, { |
| 12279 | .eraseblocks = { {64 * 1024, 2} }, |
| 12280 | .block_erase = spi_block_erase_d8, |
| 12281 | }, { |
| 12282 | .eraseblocks = { {128 * 1024, 1} }, |
| 12283 | .block_erase = spi_block_erase_60, |
| 12284 | }, { |
| 12285 | .eraseblocks = { {128 * 1024, 1} }, |
| 12286 | .block_erase = spi_block_erase_c7, |
| 12287 | } |
| 12288 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12289 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 12290 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12291 | .write = spi_chip_write_256, |
| 12292 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 12293 | .voltage = {2700, 3600}, |
| 12294 | }, |
| 12295 | |
| 12296 | { |
| 12297 | .vendor = "Nantronics", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12298 | .name = "N25S16", |
| 12299 | .bustype = BUS_SPI, |
| 12300 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 12301 | .model_id = NANTRONICS_N25S16, |
| 12302 | .total_size = 2048, |
| 12303 | .page_size = 256, |
| 12304 | .feature_bits = FEATURE_WRSR_WREN, |
| 12305 | .tested = TEST_UNTESTED, |
| 12306 | .probe = probe_spi_rdid, |
| 12307 | .probe_timing = TIMING_ZERO, |
| 12308 | .block_erasers = |
| 12309 | { |
| 12310 | { |
| 12311 | .eraseblocks = { {4 * 1024, 512} }, |
| 12312 | .block_erase = spi_block_erase_20, |
| 12313 | }, { |
| 12314 | .eraseblocks = { {64 * 1024, 32} }, |
| 12315 | .block_erase = spi_block_erase_d8, |
| 12316 | }, { |
| 12317 | .eraseblocks = { {2048 * 1024, 1} }, |
| 12318 | .block_erase = spi_block_erase_60, |
| 12319 | }, { |
| 12320 | .eraseblocks = { {2048 * 1024, 1} }, |
| 12321 | .block_erase = spi_block_erase_c7, |
| 12322 | } |
| 12323 | }, |
| 12324 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 12325 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12326 | .write = spi_chip_write_256, |
| 12327 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 12328 | .voltage = {2700, 3600}, |
| 12329 | }, |
| 12330 | |
| 12331 | { |
| 12332 | .vendor = "Nantronics", |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 12333 | .name = "N25S20", |
| 12334 | .bustype = BUS_SPI, |
| 12335 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 12336 | .model_id = NANTRONICS_N25S20, |
| 12337 | .total_size = 256, |
| 12338 | .page_size = 256, |
| 12339 | .feature_bits = FEATURE_WRSR_WREN, |
| 12340 | .tested = TEST_UNTESTED, |
| 12341 | .probe = probe_spi_rdid, |
| 12342 | .probe_timing = TIMING_ZERO, |
| 12343 | .block_erasers = |
| 12344 | { |
| 12345 | { |
| 12346 | .eraseblocks = { {4 * 1024, 64} }, |
| 12347 | .block_erase = spi_block_erase_20, |
| 12348 | }, { |
| 12349 | .eraseblocks = { {4 * 1024, 64} }, |
| 12350 | .block_erase = spi_block_erase_d7, |
| 12351 | }, { |
| 12352 | .eraseblocks = { {32 * 1024, 8} }, |
| 12353 | .block_erase = spi_block_erase_52, |
| 12354 | }, { |
| 12355 | .eraseblocks = { {64 * 1024, 4} }, |
| 12356 | .block_erase = spi_block_erase_d8, |
| 12357 | }, { |
| 12358 | .eraseblocks = { {256 * 1024, 1} }, |
| 12359 | .block_erase = spi_block_erase_60, |
| 12360 | }, { |
| 12361 | .eraseblocks = { {256 * 1024, 1} }, |
| 12362 | .block_erase = spi_block_erase_c7, |
| 12363 | } |
| 12364 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12365 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 12366 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12367 | .write = spi_chip_write_256, |
| 12368 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 12369 | .voltage = {2700, 3600}, |
| 12370 | }, |
| 12371 | |
| 12372 | { |
| 12373 | .vendor = "Nantronics", |
| 12374 | .name = "N25S40", |
| 12375 | .bustype = BUS_SPI, |
| 12376 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 12377 | .model_id = NANTRONICS_N25S40, |
| 12378 | .total_size = 512, |
| 12379 | .page_size = 256, |
| 12380 | .feature_bits = FEATURE_WRSR_WREN, |
| 12381 | .tested = TEST_UNTESTED, |
| 12382 | .probe = probe_spi_rdid, |
| 12383 | .probe_timing = TIMING_ZERO, |
| 12384 | .block_erasers = |
| 12385 | { |
| 12386 | { |
| 12387 | .eraseblocks = { {4 * 1024, 128} }, |
| 12388 | .block_erase = spi_block_erase_20, |
| 12389 | }, { |
| 12390 | .eraseblocks = { {4 * 1024, 128} }, |
| 12391 | .block_erase = spi_block_erase_d7, |
| 12392 | }, { |
| 12393 | .eraseblocks = { {32 * 1024, 16} }, |
| 12394 | .block_erase = spi_block_erase_52, |
| 12395 | }, { |
| 12396 | .eraseblocks = { {64 * 1024, 8} }, |
| 12397 | .block_erase = spi_block_erase_d8, |
| 12398 | }, { |
| 12399 | .eraseblocks = { {512 * 1024, 1} }, |
| 12400 | .block_erase = spi_block_erase_60, |
| 12401 | }, { |
| 12402 | .eraseblocks = { {512 * 1024, 1} }, |
| 12403 | .block_erase = spi_block_erase_c7, |
| 12404 | } |
| 12405 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12406 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 12407 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12408 | .write = spi_chip_write_256, |
| 12409 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 12410 | .voltage = {2700, 3600}, |
| 12411 | }, |
| 12412 | |
| 12413 | { |
| 12414 | .vendor = "Nantronics", |
| 12415 | .name = "N25S80", |
| 12416 | .bustype = BUS_SPI, |
| 12417 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 12418 | .model_id = NANTRONICS_N25S80, |
| 12419 | .total_size = 1024, |
| 12420 | .page_size = 256, |
| 12421 | .feature_bits = FEATURE_WRSR_WREN, |
| 12422 | .tested = TEST_UNTESTED, |
| 12423 | .probe = probe_spi_rdid, |
| 12424 | .probe_timing = TIMING_ZERO, |
| 12425 | .block_erasers = |
| 12426 | { |
| 12427 | { |
| 12428 | .eraseblocks = { {4 * 1024, 256} }, |
| 12429 | .block_erase = spi_block_erase_20, |
| 12430 | }, { |
| 12431 | .eraseblocks = { {32 * 1024, 32} }, |
| 12432 | .block_erase = spi_block_erase_52, |
| 12433 | }, { |
| 12434 | .eraseblocks = { {64 * 1024, 16} }, |
| 12435 | .block_erase = spi_block_erase_d8, |
| 12436 | }, { |
| 12437 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12438 | .block_erase = spi_block_erase_60, |
| 12439 | }, { |
| 12440 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12441 | .block_erase = spi_block_erase_c7, |
| 12442 | } |
| 12443 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12444 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 12445 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12446 | .write = spi_chip_write_256, |
| 12447 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 12448 | .voltage = {2700, 3600}, |
| 12449 | }, |
| 12450 | |
| 12451 | { |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 12452 | .vendor = "PMC", |
| 12453 | .name = "Pm25LD010(C)", |
| 12454 | .bustype = BUS_SPI, |
| 12455 | .manufacture_id = PMC_ID, |
| 12456 | .model_id = PMC_PM25LD010, |
| 12457 | .total_size = 128, |
| 12458 | .page_size = 256, |
| 12459 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 12460 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 12461 | .probe = probe_spi_rdid, |
| 12462 | .probe_timing = TIMING_ZERO, |
| 12463 | .block_erasers = |
| 12464 | { |
| 12465 | { |
| 12466 | .eraseblocks = { {4 * 1024, 32} }, |
| 12467 | .block_erase = spi_block_erase_20, |
| 12468 | }, { |
| 12469 | .eraseblocks = { {4 * 1024, 32} }, |
| 12470 | .block_erase = spi_block_erase_d7, |
| 12471 | }, { |
| 12472 | .eraseblocks = { {32 * 1024, 4} }, |
| 12473 | .block_erase = spi_block_erase_d8, |
| 12474 | }, { |
| 12475 | .eraseblocks = { {128 * 1024, 1} }, |
| 12476 | .block_erase = spi_block_erase_60, |
| 12477 | }, { |
| 12478 | .eraseblocks = { {128 * 1024, 1} }, |
| 12479 | .block_erase = spi_block_erase_c7, |
| 12480 | } |
| 12481 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12482 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 12483 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 12484 | .write = spi_chip_write_256, |
| 12485 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 12486 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */ |
| 12487 | }, |
| 12488 | |
| 12489 | { |
| 12490 | .vendor = "PMC", |
| 12491 | .name = "Pm25LD020(C)", |
| 12492 | .bustype = BUS_SPI, |
| 12493 | .manufacture_id = PMC_ID, |
| 12494 | .model_id = PMC_PM25LD020, |
| 12495 | .total_size = 256, |
| 12496 | .page_size = 256, |
| 12497 | .feature_bits = FEATURE_WRSR_WREN, |
Angel Pons | f5822a8 | 2018-09-30 20:09:58 +0200 | [diff] [blame] | 12498 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 12499 | .probe = probe_spi_rdid, |
| 12500 | .probe_timing = TIMING_ZERO, |
| 12501 | .block_erasers = |
| 12502 | { |
| 12503 | { |
| 12504 | .eraseblocks = { {4 * 1024, 64} }, |
| 12505 | .block_erase = spi_block_erase_20, |
| 12506 | }, { |
| 12507 | .eraseblocks = { {4 * 1024, 64} }, |
| 12508 | .block_erase = spi_block_erase_d7, |
| 12509 | }, { |
| 12510 | .eraseblocks = { {64 * 1024, 4} }, |
| 12511 | .block_erase = spi_block_erase_d8, |
| 12512 | }, { |
| 12513 | .eraseblocks = { {256 * 1024, 1} }, |
| 12514 | .block_erase = spi_block_erase_60, |
| 12515 | }, { |
| 12516 | .eraseblocks = { {256 * 1024, 1} }, |
| 12517 | .block_erase = spi_block_erase_c7, |
| 12518 | } |
| 12519 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12520 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 12521 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 12522 | .write = spi_chip_write_256, |
| 12523 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 12524 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */ |
| 12525 | }, |
| 12526 | |
| 12527 | { |
| 12528 | .vendor = "PMC", |
| 12529 | .name = "Pm25LD040(C)", |
| 12530 | .bustype = BUS_SPI, |
| 12531 | .manufacture_id = PMC_ID, |
| 12532 | .model_id = PMC_PM25LV040, |
| 12533 | .total_size = 512, |
| 12534 | .page_size = 256, |
| 12535 | .feature_bits = FEATURE_WRSR_WREN, |
Angel Pons | 05127bf | 2018-09-30 20:23:24 +0200 | [diff] [blame] | 12536 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 12537 | .probe = probe_spi_rdid, |
| 12538 | .probe_timing = TIMING_ZERO, |
| 12539 | .block_erasers = |
| 12540 | { |
| 12541 | { |
| 12542 | .eraseblocks = { {4 * 1024, 128} }, |
| 12543 | .block_erase = spi_block_erase_20, |
| 12544 | }, { |
| 12545 | .eraseblocks = { {4 * 1024, 128} }, |
| 12546 | .block_erase = spi_block_erase_d7, |
| 12547 | }, { |
| 12548 | .eraseblocks = { {64 * 1024, 8} }, |
| 12549 | .block_erase = spi_block_erase_d8, |
| 12550 | }, { |
| 12551 | .eraseblocks = { {512 * 1024, 1} }, |
| 12552 | .block_erase = spi_block_erase_60, |
| 12553 | }, { |
| 12554 | .eraseblocks = { {512 * 1024, 1} }, |
| 12555 | .block_erase = spi_block_erase_c7, |
| 12556 | } |
| 12557 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12558 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 12559 | .unlock = spi_disable_blockprotect, |
| 12560 | .write = spi_chip_write_256, |
| 12561 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 12562 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */ |
| 12563 | }, |
| 12564 | |
Steven Honeyman | 81a8fb7 | 2015-06-02 22:32:24 +0000 | [diff] [blame] | 12565 | { |
| 12566 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12567 | .name = "Pm25LD256C", |
| 12568 | .bustype = BUS_SPI, |
| 12569 | .manufacture_id = PMC_ID, |
| 12570 | .model_id = PMC_PM25LD256C, |
| 12571 | .total_size = 32, |
| 12572 | .page_size = 256, |
| 12573 | .feature_bits = FEATURE_WRSR_WREN, |
| 12574 | .tested = TEST_UNTESTED, |
| 12575 | .probe = probe_spi_rdid, |
| 12576 | .probe_timing = TIMING_ZERO, |
| 12577 | .block_erasers = |
| 12578 | { |
| 12579 | { |
| 12580 | .eraseblocks = { {4 * 1024, 8} }, |
| 12581 | .block_erase = spi_block_erase_20, |
| 12582 | }, { |
| 12583 | .eraseblocks = { {4 * 1024, 8} }, |
| 12584 | .block_erase = spi_block_erase_d7, |
| 12585 | }, { |
| 12586 | .eraseblocks = { {32 * 1024, 1} }, |
| 12587 | .block_erase = spi_block_erase_d8, |
| 12588 | }, { |
| 12589 | .eraseblocks = { {32 * 1024, 1} }, |
| 12590 | .block_erase = spi_block_erase_60, |
| 12591 | }, { |
| 12592 | .eraseblocks = { {32 * 1024, 1} }, |
| 12593 | .block_erase = spi_block_erase_c7, |
| 12594 | } |
| 12595 | }, |
| 12596 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 12597 | .unlock = spi_disable_blockprotect, |
| 12598 | .write = spi_chip_write_256, |
| 12599 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 12600 | .voltage = {2700, 3600}, |
| 12601 | }, |
| 12602 | |
| 12603 | { |
| 12604 | .vendor = "PMC", |
| 12605 | .name = "Pm25LD512(C)", |
| 12606 | .bustype = BUS_SPI, |
| 12607 | .manufacture_id = PMC_ID, |
| 12608 | .model_id = PMC_PM25LD512, |
| 12609 | .total_size = 64, |
| 12610 | .page_size = 256, |
| 12611 | .feature_bits = FEATURE_WRSR_WREN, |
| 12612 | .tested = TEST_OK_PREW, |
| 12613 | .probe = probe_spi_rdid, |
| 12614 | .probe_timing = TIMING_ZERO, |
| 12615 | .block_erasers = |
| 12616 | { |
| 12617 | { |
| 12618 | .eraseblocks = { {4 * 1024, 16} }, |
| 12619 | .block_erase = spi_block_erase_20, |
| 12620 | }, { |
| 12621 | .eraseblocks = { {4 * 1024, 16} }, |
| 12622 | .block_erase = spi_block_erase_d7, |
| 12623 | }, { |
| 12624 | .eraseblocks = { {32 * 1024, 2} }, |
| 12625 | .block_erase = spi_block_erase_d8, |
| 12626 | }, { |
| 12627 | .eraseblocks = { {64 * 1024, 1} }, |
| 12628 | .block_erase = spi_block_erase_60, |
| 12629 | }, { |
| 12630 | .eraseblocks = { {64 * 1024, 1} }, |
| 12631 | .block_erase = spi_block_erase_c7, |
| 12632 | } |
| 12633 | }, |
| 12634 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 12635 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 12636 | .write = spi_chip_write_256, |
| 12637 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 12638 | .voltage = {2300, 3600}, |
| 12639 | }, |
| 12640 | |
| 12641 | { |
| 12642 | .vendor = "PMC", |
| 12643 | .name = "Pm25LQ016", |
| 12644 | .bustype = BUS_SPI, |
| 12645 | .manufacture_id = PMC_ID, |
| 12646 | .model_id = PMC_PM25LQ016, |
| 12647 | .total_size = 2048, |
| 12648 | .page_size = 256, |
| 12649 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 12650 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12651 | .tested = TEST_UNTESTED, |
| 12652 | .probe = probe_spi_rdid, |
| 12653 | .probe_timing = TIMING_ZERO, |
| 12654 | .block_erasers = |
| 12655 | { |
| 12656 | { |
| 12657 | .eraseblocks = { {4 * 1024, 512} }, |
| 12658 | .block_erase = spi_block_erase_20, |
| 12659 | }, { |
| 12660 | .eraseblocks = { {4 * 1024, 512} }, |
| 12661 | .block_erase = spi_block_erase_d7, |
| 12662 | }, { |
| 12663 | .eraseblocks = { {64 * 1024, 32} }, |
| 12664 | .block_erase = spi_block_erase_d8, |
| 12665 | }, { |
| 12666 | .eraseblocks = { {2048 * 1024, 1} }, |
| 12667 | .block_erase = spi_block_erase_60, |
| 12668 | }, { |
| 12669 | .eraseblocks = { {2048 * 1024, 1} }, |
| 12670 | .block_erase = spi_block_erase_c7, |
| 12671 | } |
| 12672 | }, |
| 12673 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 12674 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12675 | .write = spi_chip_write_256, |
| 12676 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12677 | .voltage = {2300, 3600}, |
| 12678 | }, |
| 12679 | |
| 12680 | { |
| 12681 | .vendor = "PMC", |
Steven Honeyman | 81a8fb7 | 2015-06-02 22:32:24 +0000 | [diff] [blame] | 12682 | .name = "Pm25LQ020", |
| 12683 | .bustype = BUS_SPI, |
| 12684 | .manufacture_id = PMC_ID, |
| 12685 | .model_id = PMC_PM25LQ020, |
| 12686 | .total_size = 256, |
| 12687 | .page_size = 256, |
| 12688 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 12689 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12690 | .tested = TEST_UNTESTED, |
| 12691 | .probe = probe_spi_rdid, |
| 12692 | .probe_timing = TIMING_ZERO, |
| 12693 | .block_erasers = |
| 12694 | { |
| 12695 | { |
| 12696 | .eraseblocks = { {4 * 1024, 64} }, |
| 12697 | .block_erase = spi_block_erase_20, |
| 12698 | }, { |
| 12699 | .eraseblocks = { {4 * 1024, 64} }, |
| 12700 | .block_erase = spi_block_erase_d7, |
| 12701 | }, { |
| 12702 | .eraseblocks = { {64 * 1024, 4} }, |
| 12703 | .block_erase = spi_block_erase_d8, |
| 12704 | }, { |
| 12705 | .eraseblocks = { {256 * 1024, 1} }, |
| 12706 | .block_erase = spi_block_erase_60, |
| 12707 | }, { |
| 12708 | .eraseblocks = { {256 * 1024, 1} }, |
| 12709 | .block_erase = spi_block_erase_c7, |
| 12710 | } |
| 12711 | }, |
| 12712 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 12713 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12714 | .write = spi_chip_write_256, |
| 12715 | .read = spi_chip_read, |
| 12716 | .voltage = {2300, 3600}, |
| 12717 | }, |
| 12718 | |
| 12719 | { |
| 12720 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12721 | .name = "Pm25LQ032C", |
| 12722 | .bustype = BUS_SPI, |
| 12723 | .manufacture_id = PMC_ID, |
| 12724 | .model_id = PMC_PM25LQ032C, |
| 12725 | .total_size = 4096, |
| 12726 | .page_size = 256, |
| 12727 | /* OTP: 64B total; read 0x4B, write 0xB1 */ |
| 12728 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12729 | .tested = TEST_OK_PREW, |
| 12730 | .probe = probe_spi_rdid, |
| 12731 | .probe_timing = TIMING_ZERO, |
| 12732 | .block_erasers = |
| 12733 | { |
| 12734 | { |
| 12735 | .eraseblocks = { {4 * 1024, 1024} }, |
| 12736 | .block_erase = spi_block_erase_20, |
| 12737 | }, { |
| 12738 | .eraseblocks = { {4 * 1024, 1024} }, |
| 12739 | .block_erase = spi_block_erase_d7, |
| 12740 | }, { |
| 12741 | .eraseblocks = { {64 * 1024, 64} }, |
| 12742 | .block_erase = spi_block_erase_d8, |
| 12743 | }, { |
| 12744 | .eraseblocks = { {4096 * 1024, 1} }, |
| 12745 | .block_erase = spi_block_erase_60, |
| 12746 | }, { |
| 12747 | .eraseblocks = { {4096 * 1024, 1} }, |
| 12748 | .block_erase = spi_block_erase_c7, |
| 12749 | } |
| 12750 | }, |
| 12751 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 12752 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12753 | .write = spi_chip_write_256, |
| 12754 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12755 | .voltage = {2700, 3600}, |
| 12756 | }, |
| 12757 | |
| 12758 | { |
| 12759 | .vendor = "PMC", |
Steven Honeyman | 81a8fb7 | 2015-06-02 22:32:24 +0000 | [diff] [blame] | 12760 | .name = "Pm25LQ040", |
| 12761 | .bustype = BUS_SPI, |
| 12762 | .manufacture_id = PMC_ID, |
| 12763 | .model_id = PMC_PM25LQ040, |
| 12764 | .total_size = 512, |
| 12765 | .page_size = 256, |
| 12766 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 12767 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12768 | .tested = TEST_UNTESTED, |
| 12769 | .probe = probe_spi_rdid, |
| 12770 | .probe_timing = TIMING_ZERO, |
| 12771 | .block_erasers = |
| 12772 | { |
| 12773 | { |
| 12774 | .eraseblocks = { {4 * 1024, 128} }, |
| 12775 | .block_erase = spi_block_erase_20, |
| 12776 | }, { |
| 12777 | .eraseblocks = { {4 * 1024, 128} }, |
| 12778 | .block_erase = spi_block_erase_d7, |
| 12779 | }, { |
| 12780 | .eraseblocks = { {64 * 1024, 8} }, |
| 12781 | .block_erase = spi_block_erase_d8, |
| 12782 | }, { |
| 12783 | .eraseblocks = { {512 * 1024, 1} }, |
| 12784 | .block_erase = spi_block_erase_60, |
| 12785 | }, { |
| 12786 | .eraseblocks = { {512 * 1024, 1} }, |
| 12787 | .block_erase = spi_block_erase_c7, |
| 12788 | } |
| 12789 | }, |
| 12790 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 12791 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12792 | .write = spi_chip_write_256, |
| 12793 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12794 | .voltage = {2300, 3600}, |
| 12795 | }, |
| 12796 | |
| 12797 | { |
| 12798 | .vendor = "PMC", |
| 12799 | .name = "Pm25LQ080", |
| 12800 | .bustype = BUS_SPI, |
| 12801 | .manufacture_id = PMC_ID, |
| 12802 | .model_id = PMC_PM25LQ080, |
| 12803 | .total_size = 1024, |
| 12804 | .page_size = 256, |
| 12805 | /* OTP: 64B total; read 0x4B, write 0xB1 */ |
| 12806 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12807 | .tested = TEST_UNTESTED, |
| 12808 | .probe = probe_spi_rdid, |
| 12809 | .probe_timing = TIMING_ZERO, |
| 12810 | .block_erasers = |
| 12811 | { |
| 12812 | { |
| 12813 | .eraseblocks = { {4 * 1024, 256} }, |
| 12814 | .block_erase = spi_block_erase_20, |
| 12815 | }, { |
| 12816 | .eraseblocks = { {4 * 1024, 256} }, |
| 12817 | .block_erase = spi_block_erase_d7, |
| 12818 | }, { |
| 12819 | .eraseblocks = { {64 * 1024, 16} }, |
| 12820 | .block_erase = spi_block_erase_d8, |
| 12821 | }, { |
| 12822 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12823 | .block_erase = spi_block_erase_60, |
| 12824 | }, { |
| 12825 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12826 | .block_erase = spi_block_erase_c7, |
| 12827 | } |
| 12828 | }, |
| 12829 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 12830 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12831 | .write = spi_chip_write_256, |
| 12832 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12833 | .voltage = {2300, 3600}, |
| 12834 | }, |
| 12835 | |
| 12836 | { |
| 12837 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12838 | .name = "Pm25LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12839 | .bustype = BUS_SPI, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 12840 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12841 | .model_id = PMC_PM25LV010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12842 | .total_size = 128, |
| 12843 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12844 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 12845 | .tested = TEST_OK_PREW, |
| 12846 | .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] | 12847 | .probe_timing = TIMING_ZERO, |
| 12848 | .block_erasers = |
| 12849 | { |
| 12850 | { |
| 12851 | .eraseblocks = { {4 * 1024, 32} }, |
| 12852 | .block_erase = spi_block_erase_d7, |
| 12853 | }, { |
| 12854 | .eraseblocks = { {32 * 1024, 4} }, |
| 12855 | .block_erase = spi_block_erase_d8, |
| 12856 | }, { |
| 12857 | .eraseblocks = { {128 * 1024, 1} }, |
| 12858 | .block_erase = spi_block_erase_c7, |
| 12859 | } |
| 12860 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12861 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 12862 | .unlock = spi_disable_blockprotect, |
| 12863 | .write = spi_chip_write_256, |
| 12864 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12865 | .voltage = {2700, 3600}, |
| 12866 | }, |
| 12867 | |
| 12868 | { |
| 12869 | .vendor = "PMC", |
| 12870 | .name = "Pm25LV010A", |
| 12871 | .bustype = BUS_SPI, |
| 12872 | .manufacture_id = PMC_ID, |
| 12873 | .model_id = PMC_PM25LV010, |
| 12874 | .total_size = 128, |
| 12875 | .page_size = 256, |
| 12876 | .feature_bits = FEATURE_WRSR_WREN, |
| 12877 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12878 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12879 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12880 | .block_erasers = |
| 12881 | { |
| 12882 | { |
| 12883 | .eraseblocks = { {4 * 1024, 32} }, |
| 12884 | .block_erase = spi_block_erase_d7, |
| 12885 | }, { |
| 12886 | .eraseblocks = { {32 * 1024, 4} }, |
| 12887 | .block_erase = spi_block_erase_d8, |
| 12888 | }, { |
| 12889 | .eraseblocks = { {128 * 1024, 1} }, |
| 12890 | .block_erase = spi_block_erase_c7, |
| 12891 | } |
| 12892 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12893 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12894 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12895 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 12896 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 12897 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12898 | }, |
| 12899 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12900 | { |
| 12901 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12902 | .name = "Pm25LV016B", |
| 12903 | .bustype = BUS_SPI, |
| 12904 | .manufacture_id = PMC_ID, |
| 12905 | .model_id = PMC_PM25LV016B, |
| 12906 | .total_size = 2048, |
| 12907 | .page_size = 256, |
| 12908 | .feature_bits = FEATURE_WRSR_WREN, |
| 12909 | .tested = TEST_UNTESTED, |
| 12910 | .probe = probe_spi_rdid, |
| 12911 | .probe_timing = TIMING_ZERO, |
| 12912 | .block_erasers = |
| 12913 | { |
| 12914 | { |
| 12915 | .eraseblocks = { {4 * 1024, 512} }, |
| 12916 | .block_erase = spi_block_erase_d7, |
| 12917 | }, { |
| 12918 | .eraseblocks = { {4 * 1024, 512} }, |
| 12919 | .block_erase = spi_block_erase_20, |
| 12920 | }, { |
| 12921 | .eraseblocks = { {64 * 1024, 32} }, |
| 12922 | .block_erase = spi_block_erase_d8, |
| 12923 | }, { |
| 12924 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12925 | .block_erase = spi_block_erase_60, |
| 12926 | }, { |
| 12927 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12928 | .block_erase = spi_block_erase_c7, |
| 12929 | } |
| 12930 | }, |
| 12931 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 12932 | .unlock = spi_disable_blockprotect, |
| 12933 | .write = spi_chip_write_256, |
| 12934 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 12935 | .voltage = {2700, 3600}, |
| 12936 | }, |
| 12937 | |
| 12938 | { |
| 12939 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12940 | .name = "Pm25LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12941 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12942 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12943 | .model_id = PMC_PM25LV020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12944 | .total_size = 256, |
| 12945 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12946 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12947 | .tested = TEST_UNTESTED, |
| 12948 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12949 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12950 | .block_erasers = |
| 12951 | { |
| 12952 | { |
| 12953 | .eraseblocks = { {4 * 1024, 64} }, |
| 12954 | .block_erase = spi_block_erase_d7, |
| 12955 | }, { |
| 12956 | .eraseblocks = { {64 * 1024, 4} }, |
| 12957 | .block_erase = spi_block_erase_d8, |
| 12958 | }, { |
| 12959 | .eraseblocks = { {256 * 1024, 1} }, |
| 12960 | .block_erase = spi_block_erase_c7, |
| 12961 | } |
| 12962 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12963 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12964 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12965 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12966 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12967 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12968 | }, |
| 12969 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12970 | { |
| 12971 | .vendor = "PMC", |
| 12972 | .name = "Pm25LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12973 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12974 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12975 | .model_id = PMC_PM25LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12976 | .total_size = 512, |
| 12977 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 12978 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 12979 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12980 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12981 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 12982 | .block_erasers = |
| 12983 | { |
| 12984 | { |
| 12985 | .eraseblocks = { {4 * 1024, 128} }, |
| 12986 | .block_erase = spi_block_erase_d7, |
| 12987 | }, { |
| 12988 | .eraseblocks = { {64 * 1024, 8} }, |
| 12989 | .block_erase = spi_block_erase_d8, |
| 12990 | }, { |
| 12991 | .eraseblocks = { {512 * 1024, 1} }, |
| 12992 | .block_erase = spi_block_erase_c7, |
| 12993 | } |
| 12994 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12995 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12996 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12997 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 12998 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12999 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13000 | }, |
| 13001 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13002 | { |
| 13003 | .vendor = "PMC", |
| 13004 | .name = "Pm25LV080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13005 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13006 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13007 | .model_id = PMC_PM25LV080B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13008 | .total_size = 1024, |
| 13009 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 13010 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13011 | .tested = TEST_UNTESTED, |
| 13012 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13013 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13014 | .block_erasers = |
| 13015 | { |
| 13016 | { |
| 13017 | .eraseblocks = { {4 * 1024, 256} }, |
| 13018 | .block_erase = spi_block_erase_d7, |
| 13019 | }, { |
| 13020 | .eraseblocks = { {4 * 1024, 256} }, |
| 13021 | .block_erase = spi_block_erase_20, |
| 13022 | }, { |
| 13023 | .eraseblocks = { {64 * 1024, 16} }, |
| 13024 | .block_erase = spi_block_erase_d8, |
| 13025 | }, { |
| 13026 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13027 | .block_erase = spi_block_erase_60, |
| 13028 | }, { |
| 13029 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13030 | .block_erase = spi_block_erase_c7, |
| 13031 | } |
| 13032 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 13033 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 13034 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 13035 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 13036 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13037 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13038 | }, |
| 13039 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13040 | { |
| 13041 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13042 | .name = "Pm25LV512(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13043 | .bustype = BUS_SPI, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13044 | .manufacture_id = PMC_ID_NOPREFIX, |
| 13045 | .model_id = PMC_PM25LV512, |
| 13046 | .total_size = 64, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13047 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 13048 | .feature_bits = FEATURE_WRSR_WREN, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13049 | .tested = TEST_OK_PREW, |
| 13050 | .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] | 13051 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13052 | .block_erasers = |
| 13053 | { |
| 13054 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13055 | .eraseblocks = { {4 * 1024, 16} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13056 | .block_erase = spi_block_erase_d7, |
| 13057 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13058 | .eraseblocks = { {32 * 1024, 2} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13059 | .block_erase = spi_block_erase_d8, |
| 13060 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13061 | .eraseblocks = { {64 * 1024, 1} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13062 | .block_erase = spi_block_erase_c7, |
| 13063 | } |
| 13064 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13065 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 13066 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 13067 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 13068 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 13069 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13070 | }, |
| 13071 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13072 | { |
| 13073 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 13074 | .name = "Pm29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13075 | .bustype = BUS_PARALLEL, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 13076 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13077 | .model_id = PMC_PM29F002B, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 13078 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 13079 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13080 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 13081 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13082 | .probe = probe_jedec, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 13083 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 13084 | .block_erasers = |
| 13085 | { |
| 13086 | { |
| 13087 | .eraseblocks = { |
| 13088 | {16 * 1024, 1}, |
| 13089 | {8 * 1024, 2}, |
| 13090 | {96 * 1024, 1}, |
| 13091 | {128 * 1024, 1}, |
| 13092 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13093 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 13094 | }, { |
| 13095 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13096 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 13097 | }, |
| 13098 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13099 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 13100 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13101 | .voltage = {4500, 5500}, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 13102 | }, |
| 13103 | |
| 13104 | { |
| 13105 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13106 | .name = "Pm29F002T", |
| 13107 | .bustype = BUS_PARALLEL, |
| 13108 | .manufacture_id = PMC_ID_NOPREFIX, |
| 13109 | .model_id = PMC_PM29F002T, |
| 13110 | .total_size = 256, |
| 13111 | .page_size = 8 * 1024, |
| 13112 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 13113 | .tested = TEST_OK_PREW, |
| 13114 | .probe = probe_jedec, |
| 13115 | .probe_timing = TIMING_FIXME, |
| 13116 | .block_erasers = |
| 13117 | { |
| 13118 | { |
| 13119 | .eraseblocks = { |
| 13120 | {128 * 1024, 1}, |
| 13121 | {96 * 1024, 1}, |
| 13122 | {8 * 1024, 2}, |
| 13123 | {16 * 1024, 1}, |
| 13124 | }, |
| 13125 | .block_erase = erase_sector_jedec, |
| 13126 | }, { |
| 13127 | .eraseblocks = { {256 * 1024, 1} }, |
| 13128 | .block_erase = erase_chip_block_jedec, |
| 13129 | }, |
| 13130 | }, |
| 13131 | .write = write_jedec_1, |
| 13132 | .read = read_memmapped, |
| 13133 | .voltage = {4500, 5500}, |
| 13134 | }, |
| 13135 | |
| 13136 | { |
| 13137 | .vendor = "PMC", |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 13138 | .name = "Pm39LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13139 | .bustype = BUS_PARALLEL, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 13140 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13141 | .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] | 13142 | .total_size = 128, |
| 13143 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13144 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 13145 | .tested = TEST_OK_PREW, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 13146 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13147 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13148 | .block_erasers = |
| 13149 | { |
| 13150 | { |
| 13151 | .eraseblocks = { {4 * 1024, 32} }, |
| 13152 | .block_erase = erase_sector_jedec, |
| 13153 | }, { |
| 13154 | .eraseblocks = { {64 * 1024, 2} }, |
| 13155 | .block_erase = erase_block_jedec, |
| 13156 | }, { |
| 13157 | .eraseblocks = { {128 * 1024, 1} }, |
| 13158 | .block_erase = erase_chip_block_jedec, |
| 13159 | } |
| 13160 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13161 | .write = write_jedec_1, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 13162 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13163 | .voltage = {2700, 3600}, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 13164 | }, |
| 13165 | |
| 13166 | { |
| 13167 | .vendor = "PMC", |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13168 | .name = "Pm39LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13169 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13170 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13171 | .model_id = PMC_PM39LV020, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13172 | .total_size = 256, |
| 13173 | .page_size = 4096, |
| 13174 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 13175 | .tested = TEST_UNTESTED, |
| 13176 | .probe = probe_jedec, |
| 13177 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 13178 | .block_erasers = |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13179 | { |
| 13180 | { |
| 13181 | .eraseblocks = { {4 * 1024, 64} }, |
| 13182 | .block_erase = erase_sector_jedec, |
| 13183 | }, { |
| 13184 | .eraseblocks = { {64 * 1024, 4} }, |
| 13185 | .block_erase = erase_block_jedec, |
| 13186 | }, { |
| 13187 | .eraseblocks = { {256 * 1024, 1} }, |
| 13188 | .block_erase = erase_chip_block_jedec, |
| 13189 | } |
| 13190 | }, |
| 13191 | .write = write_jedec_1, |
| 13192 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13193 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13194 | }, |
| 13195 | |
| 13196 | { |
| 13197 | .vendor = "PMC", |
| 13198 | .name = "Pm39LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13199 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13200 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13201 | .model_id = PMC_PM39LV040, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13202 | .total_size = 512, |
| 13203 | .page_size = 4096, |
| 13204 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 13205 | .tested = TEST_OK_PR, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13206 | .probe = probe_jedec, |
| 13207 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 13208 | .block_erasers = |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13209 | { |
| 13210 | { |
| 13211 | .eraseblocks = { {4 * 1024, 128} }, |
| 13212 | .block_erase = erase_sector_jedec, |
| 13213 | }, { |
| 13214 | .eraseblocks = { {64 * 1024, 8} }, |
| 13215 | .block_erase = erase_block_jedec, |
| 13216 | }, { |
| 13217 | .eraseblocks = { {512 * 1024, 1} }, |
| 13218 | .block_erase = erase_chip_block_jedec, |
| 13219 | } |
| 13220 | }, |
| 13221 | .write = write_jedec_1, |
| 13222 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13223 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13224 | }, |
Kyösti Mälkki | edab1d2 | 2012-05-20 23:32:33 +0000 | [diff] [blame] | 13225 | |
| 13226 | { |
| 13227 | .vendor = "PMC", |
| 13228 | .name = "Pm39LV512", |
| 13229 | .bustype = BUS_PARALLEL, |
| 13230 | .manufacture_id = PMC_ID_NOPREFIX, |
| 13231 | .model_id = PMC_PM39LV512, |
| 13232 | .total_size = 64, |
| 13233 | .page_size = 4096, |
| 13234 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 13235 | .tested = TEST_OK_PREW, |
| 13236 | .probe = probe_jedec, |
| 13237 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 13238 | .block_erasers = |
| 13239 | { |
| 13240 | { |
| 13241 | .eraseblocks = { {4 * 1024, 16} }, |
| 13242 | .block_erase = erase_sector_jedec, |
| 13243 | }, { |
| 13244 | .eraseblocks = { {64 * 1024, 1} }, |
| 13245 | .block_erase = erase_block_jedec, |
| 13246 | }, { |
| 13247 | .eraseblocks = { {64 * 1024, 1} }, |
| 13248 | .block_erase = erase_chip_block_jedec, |
| 13249 | } |
| 13250 | }, |
| 13251 | .write = write_jedec_1, |
| 13252 | .read = read_memmapped, |
| 13253 | .voltage = {2700, 3600}, |
| 13254 | }, |
| 13255 | |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13256 | { |
| 13257 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13258 | .name = "Pm49FL002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13259 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13260 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13261 | .model_id = PMC_PM49FL002, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13262 | .total_size = 256, |
| 13263 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13264 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13265 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 13266 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13267 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13268 | .block_erasers = |
| 13269 | { |
| 13270 | { |
| 13271 | .eraseblocks = { {4 * 1024, 64} }, |
| 13272 | .block_erase = erase_sector_jedec, |
| 13273 | }, { |
| 13274 | .eraseblocks = { {16 * 1024, 16} }, |
| 13275 | .block_erase = erase_block_jedec, |
| 13276 | }, { |
| 13277 | .eraseblocks = { {256 * 1024, 1} }, |
| 13278 | .block_erase = erase_chip_block_jedec, |
| 13279 | } |
| 13280 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13281 | .unlock = unlock_regspace2_uniform_32k, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 13282 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13283 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13284 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13285 | }, |
| 13286 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13287 | { |
| 13288 | .vendor = "PMC", |
| 13289 | .name = "Pm49FL004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13290 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13291 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13292 | .model_id = PMC_PM49FL004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13293 | .total_size = 512, |
| 13294 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13295 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 13296 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 13297 | .probe = probe_jedec, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 13298 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13299 | .block_erasers = |
| 13300 | { |
| 13301 | { |
| 13302 | .eraseblocks = { {4 * 1024, 128} }, |
| 13303 | .block_erase = erase_sector_jedec, |
| 13304 | }, { |
| 13305 | .eraseblocks = { {64 * 1024, 8} }, |
| 13306 | .block_erase = erase_block_jedec, |
| 13307 | }, { |
| 13308 | .eraseblocks = { {512 * 1024, 1} }, |
| 13309 | .block_erase = erase_chip_block_jedec, |
| 13310 | } |
| 13311 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13312 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 13313 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13314 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13315 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13316 | }, |
| 13317 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13318 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13319 | .vendor = "SST", |
Idwer Vollering | f3607d1 | 2014-05-07 15:25:04 +0000 | [diff] [blame] | 13320 | .name = "SST25LF020A", |
| 13321 | .bustype = BUS_SPI, |
| 13322 | .manufacture_id = SST_ID, |
| 13323 | .model_id = SST_SST25VF020_REMS, |
| 13324 | .total_size = 256, |
| 13325 | .page_size = 256, |
| 13326 | .feature_bits = FEATURE_WRSR_EWSR, |
| 13327 | .tested = TEST_OK_PREW, |
| 13328 | .probe = probe_spi_rems, |
| 13329 | .probe_timing = TIMING_ZERO, |
| 13330 | .block_erasers = |
| 13331 | { |
| 13332 | { |
| 13333 | .eraseblocks = { {4 * 1024, 64} }, |
| 13334 | .block_erase = spi_block_erase_20, |
| 13335 | }, { |
| 13336 | .eraseblocks = { {32 * 1024, 8} }, |
| 13337 | .block_erase = spi_block_erase_52, |
| 13338 | }, { |
| 13339 | .eraseblocks = { {256 * 1024, 1} }, |
| 13340 | .block_erase = spi_block_erase_60, |
| 13341 | }, |
| 13342 | }, |
| 13343 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 13344 | .unlock = spi_disable_blockprotect, |
| 13345 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 13346 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13347 | .voltage = {2700, 3600}, |
| 13348 | }, |
| 13349 | |
| 13350 | { |
| 13351 | .vendor = "SST", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 13352 | .name = "SST25LF040A", |
| 13353 | .bustype = BUS_SPI, |
| 13354 | .manufacture_id = SST_ID, |
| 13355 | .model_id = SST_SST25VF040_REMS, |
| 13356 | .total_size = 512, |
| 13357 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 13358 | .feature_bits = FEATURE_WRSR_EWSR, |
Uwe Hermann | 4335ec8 | 2011-09-07 20:20:25 +0000 | [diff] [blame] | 13359 | .tested = TEST_OK_PREW, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 13360 | .probe = probe_spi_res2, |
| 13361 | .probe_timing = TIMING_ZERO, |
| 13362 | .block_erasers = |
| 13363 | { |
| 13364 | { |
| 13365 | .eraseblocks = { {4 * 1024, 128} }, |
| 13366 | .block_erase = spi_block_erase_20, |
| 13367 | }, { |
| 13368 | .eraseblocks = { {32 * 1024, 16} }, |
| 13369 | .block_erase = spi_block_erase_52, |
| 13370 | }, { |
| 13371 | .eraseblocks = { {512 * 1024, 1} }, |
| 13372 | .block_erase = spi_block_erase_60, |
| 13373 | }, |
| 13374 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 13375 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 13376 | .unlock = spi_disable_blockprotect, |
| 13377 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 13378 | .read = spi_chip_read, |
| 13379 | .voltage = {3000, 3600}, |
| 13380 | }, |
| 13381 | |
| 13382 | { |
| 13383 | .vendor = "SST", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 13384 | .name = "SST25LF080(A)", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 13385 | .bustype = BUS_SPI, |
| 13386 | .manufacture_id = SST_ID, |
| 13387 | .model_id = SST_SST25VF080_REMS, |
| 13388 | .total_size = 1024, |
| 13389 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 13390 | .feature_bits = FEATURE_WRSR_EITHER, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 13391 | .tested = TEST_UNTESTED, |
| 13392 | .probe = probe_spi_res2, |
| 13393 | .probe_timing = TIMING_ZERO, |
| 13394 | .block_erasers = |
| 13395 | { |
| 13396 | { |
| 13397 | .eraseblocks = { {4 * 1024, 256} }, |
| 13398 | .block_erase = spi_block_erase_20, |
| 13399 | }, { |
| 13400 | .eraseblocks = { {32 * 1024, 32} }, |
| 13401 | .block_erase = spi_block_erase_52, |
| 13402 | }, { |
| 13403 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13404 | .block_erase = spi_block_erase_60, |
| 13405 | }, |
| 13406 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 13407 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 13408 | .unlock = spi_disable_blockprotect, |
| 13409 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 13410 | .read = spi_chip_read, |
| 13411 | .voltage = {3000, 3600}, |
| 13412 | }, |
| 13413 | |
| 13414 | { |
| 13415 | .vendor = "SST", |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13416 | .name = "SST25VF010(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13417 | .bustype = BUS_SPI, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 13418 | .manufacture_id = SST_ID, |
| 13419 | .model_id = SST_SST25VF010_REMS, |
| 13420 | .total_size = 128, |
| 13421 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 13422 | .feature_bits = FEATURE_WRSR_EWSR, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 13423 | .tested = TEST_OK_PREW, |
| 13424 | .probe = probe_spi_rems, |
| 13425 | .probe_timing = TIMING_ZERO, |
| 13426 | .block_erasers = |
| 13427 | { |
| 13428 | { |
| 13429 | .eraseblocks = { {4 * 1024, 32} }, |
| 13430 | .block_erase = spi_block_erase_20, |
| 13431 | }, { |
| 13432 | .eraseblocks = { {32 * 1024, 4} }, |
| 13433 | .block_erase = spi_block_erase_52, |
| 13434 | }, { |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13435 | .eraseblocks = { {32 * 1024, 4} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13436 | .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13437 | }, { |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 13438 | .eraseblocks = { {128 * 1024, 1} }, |
| 13439 | .block_erase = spi_block_erase_60, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13440 | }, { |
| 13441 | .eraseblocks = { {128 * 1024, 1} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13442 | .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13443 | }, |
| 13444 | }, |
| 13445 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 13446 | .unlock = spi_disable_blockprotect, |
| 13447 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13448 | .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13449 | .voltage = {2700, 3600}, |
| 13450 | }, |
| 13451 | |
| 13452 | { |
| 13453 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13454 | .name = "SST25VF016B", |
| 13455 | .bustype = BUS_SPI, |
| 13456 | .manufacture_id = SST_ID, |
| 13457 | .model_id = SST_SST25VF016B, |
| 13458 | .total_size = 2048, |
| 13459 | .page_size = 256, |
| 13460 | .feature_bits = FEATURE_WRSR_EITHER, |
| 13461 | .tested = TEST_OK_PREW, |
| 13462 | .probe = probe_spi_rdid, |
| 13463 | .probe_timing = TIMING_ZERO, |
| 13464 | .block_erasers = |
| 13465 | { |
| 13466 | { |
| 13467 | .eraseblocks = { {4 * 1024, 512} }, |
| 13468 | .block_erase = spi_block_erase_20, |
| 13469 | }, { |
| 13470 | .eraseblocks = { {32 * 1024, 64} }, |
| 13471 | .block_erase = spi_block_erase_52, |
| 13472 | }, { |
| 13473 | .eraseblocks = { {64 * 1024, 32} }, |
| 13474 | .block_erase = spi_block_erase_d8, |
| 13475 | }, { |
| 13476 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 13477 | .block_erase = spi_block_erase_60, |
| 13478 | }, { |
| 13479 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 13480 | .block_erase = spi_block_erase_c7, |
| 13481 | }, |
| 13482 | }, |
| 13483 | .printlock = spi_prettyprint_status_register_sst25vf016, |
| 13484 | .unlock = spi_disable_blockprotect, |
| 13485 | .write = spi_aai_write, |
| 13486 | .read = spi_chip_read, |
| 13487 | .voltage = {2700, 3600}, |
| 13488 | }, |
| 13489 | |
| 13490 | { |
| 13491 | .vendor = "SST", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13492 | .name = "SST25VF020", |
| 13493 | .bustype = BUS_SPI, |
| 13494 | .manufacture_id = SST_ID, |
| 13495 | .model_id = SST_SST25VF020_REMS, |
| 13496 | .total_size = 256, |
| 13497 | .page_size = 256, |
| 13498 | .feature_bits = FEATURE_WRSR_EWSR, |
| 13499 | .tested = TEST_UNTESTED, |
| 13500 | .probe = probe_spi_rems, |
| 13501 | .probe_timing = TIMING_ZERO, |
| 13502 | .block_erasers = |
| 13503 | { |
| 13504 | { |
| 13505 | .eraseblocks = { {4 * 1024, 64} }, |
| 13506 | .block_erase = spi_block_erase_20, |
| 13507 | }, { |
| 13508 | .eraseblocks = { {32 * 1024, 8} }, |
| 13509 | .block_erase = spi_block_erase_52, |
| 13510 | }, { |
| 13511 | .eraseblocks = { {256 * 1024, 1} }, |
| 13512 | .block_erase = spi_block_erase_60, |
| 13513 | }, |
| 13514 | }, |
| 13515 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 13516 | .unlock = spi_disable_blockprotect, |
| 13517 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 13518 | .read = spi_chip_read, /* only */ |
| 13519 | .voltage = {2700, 3600}, |
| 13520 | }, |
| 13521 | |
| 13522 | { |
| 13523 | .vendor = "SST", |
| 13524 | .name = "SST25VF020B", |
| 13525 | .bustype = BUS_SPI, |
| 13526 | .manufacture_id = SST_ID, |
| 13527 | .model_id = SST_SST25VF020B, |
| 13528 | .total_size = 256, |
| 13529 | .page_size = 256, |
| 13530 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 13531 | .tested = TEST_OK_PREW, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13532 | .probe = probe_spi_rdid, |
| 13533 | .probe_timing = TIMING_ZERO, |
| 13534 | .block_erasers = |
| 13535 | { |
| 13536 | { |
| 13537 | .eraseblocks = { {4 * 1024, 64} }, |
| 13538 | .block_erase = spi_block_erase_20, |
| 13539 | }, { |
| 13540 | .eraseblocks = { {32 * 1024, 8} }, |
| 13541 | .block_erase = spi_block_erase_52, |
| 13542 | }, { |
| 13543 | .eraseblocks = { {64 * 1024, 4} }, |
| 13544 | .block_erase = spi_block_erase_d8, |
| 13545 | }, { |
| 13546 | .eraseblocks = { {256 * 1024, 1} }, |
| 13547 | .block_erase = spi_block_erase_60, |
| 13548 | }, { |
| 13549 | .eraseblocks = { {256 * 1024, 1} }, |
| 13550 | .block_erase = spi_block_erase_c7, |
| 13551 | }, |
| 13552 | }, |
| 13553 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */ |
| 13554 | .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */ |
| 13555 | .write = spi_aai_write, /* AAI supported (0xAD) */ |
| 13556 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13557 | .voltage = {2700, 3600}, |
| 13558 | }, |
| 13559 | |
| 13560 | { |
| 13561 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13562 | .name = "SST25VF032B", |
| 13563 | .bustype = BUS_SPI, |
| 13564 | .manufacture_id = SST_ID, |
| 13565 | .model_id = SST_SST25VF032B, |
| 13566 | .total_size = 4096, |
| 13567 | .page_size = 256, |
| 13568 | .feature_bits = FEATURE_WRSR_EWSR, |
| 13569 | .tested = TEST_OK_PREW, |
| 13570 | .probe = probe_spi_rdid, |
| 13571 | .probe_timing = TIMING_ZERO, |
| 13572 | .block_erasers = |
| 13573 | { |
| 13574 | { |
| 13575 | .eraseblocks = { {4 * 1024, 1024} }, |
| 13576 | .block_erase = spi_block_erase_20, |
| 13577 | }, { |
| 13578 | .eraseblocks = { {32 * 1024, 128} }, |
| 13579 | .block_erase = spi_block_erase_52, |
| 13580 | }, { |
| 13581 | .eraseblocks = { {64 * 1024, 64} }, |
| 13582 | .block_erase = spi_block_erase_d8, |
| 13583 | }, { |
| 13584 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 13585 | .block_erase = spi_block_erase_60, |
| 13586 | }, { |
| 13587 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 13588 | .block_erase = spi_block_erase_c7, |
| 13589 | }, |
| 13590 | }, |
| 13591 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
| 13592 | .unlock = spi_disable_blockprotect, |
| 13593 | .write = spi_aai_write, |
| 13594 | .read = spi_chip_read, |
| 13595 | .voltage = {2700, 3600}, |
| 13596 | }, |
| 13597 | |
| 13598 | { |
| 13599 | .vendor = "SST", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13600 | .name = "SST25VF040", |
| 13601 | .bustype = BUS_SPI, |
| 13602 | .manufacture_id = SST_ID, |
| 13603 | .model_id = SST_SST25VF040_REMS, |
| 13604 | .total_size = 512, |
| 13605 | .page_size = 256, |
| 13606 | .feature_bits = FEATURE_WRSR_EWSR, |
| 13607 | .tested = TEST_OK_PR, |
| 13608 | .probe = probe_spi_rems, |
| 13609 | .probe_timing = TIMING_ZERO, |
| 13610 | .block_erasers = |
| 13611 | { |
| 13612 | { |
| 13613 | .eraseblocks = { {4 * 1024, 128} }, |
| 13614 | .block_erase = spi_block_erase_20, |
| 13615 | }, { |
| 13616 | .eraseblocks = { {32 * 1024, 16} }, |
| 13617 | .block_erase = spi_block_erase_52, |
| 13618 | }, { |
| 13619 | .eraseblocks = { {512 * 1024, 1} }, |
| 13620 | .block_erase = spi_block_erase_60, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 13621 | }, |
| 13622 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 13623 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 13624 | .unlock = spi_disable_blockprotect, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13625 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 13626 | .read = spi_chip_read, |
| 13627 | .voltage = {2700, 3600}, |
| 13628 | }, |
| 13629 | |
| 13630 | { |
| 13631 | .vendor = "SST", |
| 13632 | .name = "SST25VF040B", |
| 13633 | .bustype = BUS_SPI, |
| 13634 | .manufacture_id = SST_ID, |
| 13635 | .model_id = SST_SST25VF040B, |
| 13636 | .total_size = 512, |
| 13637 | .page_size = 256, |
| 13638 | .feature_bits = FEATURE_WRSR_EWSR, |
| 13639 | .tested = TEST_OK_PREW, |
| 13640 | .probe = probe_spi_rdid, |
| 13641 | .probe_timing = TIMING_ZERO, |
| 13642 | .block_erasers = |
| 13643 | { |
| 13644 | { |
| 13645 | .eraseblocks = { {4 * 1024, 128} }, |
| 13646 | .block_erase = spi_block_erase_20, |
| 13647 | }, { |
| 13648 | .eraseblocks = { {32 * 1024, 16} }, |
| 13649 | .block_erase = spi_block_erase_52, |
| 13650 | }, { |
| 13651 | .eraseblocks = { {64 * 1024, 8} }, |
| 13652 | .block_erase = spi_block_erase_d8, |
| 13653 | }, { |
| 13654 | .eraseblocks = { {512 * 1024, 1} }, |
| 13655 | .block_erase = spi_block_erase_60, |
| 13656 | }, { |
| 13657 | .eraseblocks = { {512 * 1024, 1} }, |
| 13658 | .block_erase = spi_block_erase_c7, |
| 13659 | }, |
| 13660 | }, |
| 13661 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
| 13662 | .unlock = spi_disable_blockprotect, |
| 13663 | .write = spi_aai_write, /* AAI supported (0xAD) */ |
| 13664 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13665 | .voltage = {2700, 3600}, |
| 13666 | }, |
| 13667 | |
| 13668 | { |
| 13669 | .vendor = "SST", |
| 13670 | .name = "SST25VF040B.REMS", |
| 13671 | .bustype = BUS_SPI, |
| 13672 | .manufacture_id = SST_ID, |
| 13673 | .model_id = SST_SST25VF040B_REMS, |
| 13674 | .total_size = 512, |
| 13675 | .page_size = 256, |
| 13676 | .feature_bits = FEATURE_WRSR_EWSR, |
| 13677 | .tested = TEST_OK_PREW, |
| 13678 | .probe = probe_spi_rems, |
| 13679 | .probe_timing = TIMING_ZERO, |
| 13680 | .block_erasers = |
| 13681 | { |
| 13682 | { |
| 13683 | .eraseblocks = { {4 * 1024, 128} }, |
| 13684 | .block_erase = spi_block_erase_20, |
| 13685 | }, { |
| 13686 | .eraseblocks = { {32 * 1024, 16} }, |
| 13687 | .block_erase = spi_block_erase_52, |
| 13688 | }, { |
| 13689 | .eraseblocks = { {64 * 1024, 8} }, |
| 13690 | .block_erase = spi_block_erase_d8, |
| 13691 | }, { |
| 13692 | .eraseblocks = { {512 * 1024, 1} }, |
| 13693 | .block_erase = spi_block_erase_60, |
| 13694 | }, { |
| 13695 | .eraseblocks = { {512 * 1024, 1} }, |
| 13696 | .block_erase = spi_block_erase_c7, |
| 13697 | }, |
| 13698 | }, |
| 13699 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
| 13700 | .unlock = spi_disable_blockprotect, |
| 13701 | .write = spi_aai_write, |
| 13702 | .read = spi_chip_read, |
| 13703 | .voltage = {2700, 3600}, |
| 13704 | }, |
| 13705 | |
| 13706 | { |
| 13707 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13708 | .name = "SST25VF064C", |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13709 | .bustype = BUS_SPI, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13710 | .manufacture_id = SST_ID, |
| 13711 | .model_id = SST_SST25VF064C, |
| 13712 | .total_size = 8192, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13713 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13714 | .feature_bits = FEATURE_WRSR_EWSR, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13715 | .tested = TEST_OK_PREW, |
| 13716 | .probe = probe_spi_rdid, |
| 13717 | .probe_timing = TIMING_ZERO, |
| 13718 | .block_erasers = |
| 13719 | { |
| 13720 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13721 | .eraseblocks = { {4 * 1024, 2048} }, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13722 | .block_erase = spi_block_erase_20, |
| 13723 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13724 | .eraseblocks = { {32 * 1024, 256} }, |
| 13725 | .block_erase = spi_block_erase_52, |
| 13726 | }, { |
| 13727 | .eraseblocks = { {64 * 1024, 128} }, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13728 | .block_erase = spi_block_erase_d8, |
| 13729 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13730 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13731 | .block_erase = spi_block_erase_60, |
| 13732 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13733 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13734 | .block_erase = spi_block_erase_c7, |
| 13735 | }, |
| 13736 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13737 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
| 13738 | .unlock = spi_disable_blockprotect, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13739 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13740 | .read = spi_chip_read, |
| 13741 | .voltage = {2700, 3600}, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 13742 | }, |
| 13743 | |
| 13744 | { |
| 13745 | .vendor = "SST", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13746 | .name = "SST25VF080B", |
| 13747 | .bustype = BUS_SPI, |
| 13748 | .manufacture_id = SST_ID, |
| 13749 | .model_id = SST_SST25VF080B, |
| 13750 | .total_size = 1024, |
| 13751 | .page_size = 256, |
| 13752 | .feature_bits = FEATURE_WRSR_EWSR, |
| 13753 | .tested = TEST_OK_PREW, |
| 13754 | .probe = probe_spi_rdid, |
| 13755 | .probe_timing = TIMING_ZERO, |
| 13756 | .block_erasers = |
| 13757 | { |
| 13758 | { |
| 13759 | .eraseblocks = { {4 * 1024, 256} }, |
| 13760 | .block_erase = spi_block_erase_20, |
| 13761 | }, { |
| 13762 | .eraseblocks = { {32 * 1024, 32} }, |
| 13763 | .block_erase = spi_block_erase_52, |
| 13764 | }, { |
| 13765 | .eraseblocks = { {64 * 1024, 16} }, |
| 13766 | .block_erase = spi_block_erase_d8, |
| 13767 | }, { |
| 13768 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13769 | .block_erase = spi_block_erase_60, |
| 13770 | }, { |
| 13771 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13772 | .block_erase = spi_block_erase_c7, |
| 13773 | }, |
| 13774 | }, |
| 13775 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
| 13776 | .unlock = spi_disable_blockprotect, |
| 13777 | .write = spi_aai_write, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 13778 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 13779 | .voltage = {2700, 3600}, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 13780 | }, |
| 13781 | |
| 13782 | { |
| 13783 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13784 | .name = "SST25VF512(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13785 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13786 | .manufacture_id = SST_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13787 | .model_id = SST_SST25VF512_REMS, |
| 13788 | .total_size = 64, |
| 13789 | .page_size = 256, |
| 13790 | .feature_bits = FEATURE_WRSR_EWSR, |
| 13791 | .tested = TEST_OK_PREW, |
| 13792 | .probe = probe_spi_rems, |
| 13793 | .probe_timing = TIMING_ZERO, |
| 13794 | .block_erasers = |
| 13795 | { |
| 13796 | { |
| 13797 | .eraseblocks = { {4 * 1024, 16} }, |
| 13798 | .block_erase = spi_block_erase_20, |
| 13799 | }, { |
| 13800 | .eraseblocks = { {32 * 1024, 2} }, |
| 13801 | .block_erase = spi_block_erase_52, |
| 13802 | }, { |
| 13803 | .eraseblocks = { {32 * 1024, 2} }, |
| 13804 | .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */ |
| 13805 | }, { |
| 13806 | .eraseblocks = { {64 * 1024, 1} }, |
| 13807 | .block_erase = spi_block_erase_60, |
| 13808 | }, { |
| 13809 | .eraseblocks = { {64 * 1024, 1} }, |
| 13810 | .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */ |
| 13811 | }, |
| 13812 | }, |
| 13813 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 13814 | .unlock = spi_disable_blockprotect, |
| 13815 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 13816 | .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */ |
| 13817 | .voltage = {2700, 3600}, |
| 13818 | }, |
| 13819 | |
| 13820 | { |
| 13821 | .vendor = "SST", |
| 13822 | .name = "SST25WF010", |
| 13823 | .bustype = BUS_SPI, |
| 13824 | .manufacture_id = SST_ID, |
| 13825 | .model_id = SST_SST25WF010, |
| 13826 | .total_size = 128, |
| 13827 | .page_size = 256, |
| 13828 | .feature_bits = FEATURE_WRSR_EITHER, |
| 13829 | .tested = TEST_UNTESTED, |
| 13830 | .probe = probe_spi_rdid, |
| 13831 | .probe_timing = TIMING_ZERO, |
| 13832 | .block_erasers = |
| 13833 | { |
| 13834 | { |
| 13835 | .eraseblocks = { {4 * 1024, 32} }, |
| 13836 | .block_erase = spi_block_erase_20, |
| 13837 | }, { |
| 13838 | .eraseblocks = { {32 * 1024, 4} }, |
| 13839 | .block_erase = spi_block_erase_52, |
| 13840 | }, { |
| 13841 | .eraseblocks = { {1024 * 128, 1} }, |
| 13842 | .block_erase = spi_block_erase_60, |
| 13843 | }, { |
| 13844 | .eraseblocks = { {1024 * 128, 1} }, |
| 13845 | .block_erase = spi_block_erase_c7, |
| 13846 | }, |
| 13847 | }, |
| 13848 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 13849 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 13850 | .write = spi_aai_write, |
| 13851 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13852 | .voltage = {1650, 1950}, |
| 13853 | }, |
| 13854 | |
| 13855 | { |
| 13856 | .vendor = "SST", |
| 13857 | .name = "SST25WF020", |
| 13858 | .bustype = BUS_SPI, |
| 13859 | .manufacture_id = SST_ID, |
| 13860 | .model_id = SST_SST25WF020, |
| 13861 | .total_size = 256, |
| 13862 | .page_size = 256, |
| 13863 | .feature_bits = FEATURE_WRSR_EITHER, |
| 13864 | .tested = TEST_UNTESTED, |
| 13865 | .probe = probe_spi_rdid, |
| 13866 | .probe_timing = TIMING_ZERO, |
| 13867 | .block_erasers = |
| 13868 | { |
| 13869 | { |
| 13870 | .eraseblocks = { {4 * 1024, 64} }, |
| 13871 | .block_erase = spi_block_erase_20, |
| 13872 | }, { |
| 13873 | .eraseblocks = { {32 * 1024, 8} }, |
| 13874 | .block_erase = spi_block_erase_52, |
| 13875 | }, { |
| 13876 | .eraseblocks = { {64 * 1024, 4} }, |
| 13877 | .block_erase = spi_block_erase_d8, |
| 13878 | }, { |
| 13879 | .eraseblocks = { {1024 * 256, 1} }, |
| 13880 | .block_erase = spi_block_erase_60, |
| 13881 | }, { |
| 13882 | .eraseblocks = { {1024 * 256, 1} }, |
| 13883 | .block_erase = spi_block_erase_c7, |
| 13884 | }, |
| 13885 | }, |
| 13886 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 13887 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 13888 | .write = spi_aai_write, |
| 13889 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13890 | .voltage = {1650, 1950}, |
| 13891 | }, |
| 13892 | |
| 13893 | { |
| 13894 | .vendor = "SST", |
| 13895 | .name = "SST25WF020A", |
| 13896 | .bustype = BUS_SPI, |
| 13897 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 13898 | .model_id = SST_SST25WF020A, |
| 13899 | .total_size = 256, |
| 13900 | .page_size = 256, |
| 13901 | .feature_bits = FEATURE_WRSR_WREN, |
| 13902 | .tested = TEST_UNTESTED, |
| 13903 | .probe = probe_spi_rdid, |
| 13904 | .probe_timing = TIMING_ZERO, |
| 13905 | .block_erasers = |
| 13906 | { |
| 13907 | { |
| 13908 | .eraseblocks = { {4 * 1024, 64} }, |
| 13909 | .block_erase = spi_block_erase_20, |
| 13910 | }, { |
| 13911 | .eraseblocks = { {64 * 1024, 4} }, |
| 13912 | .block_erase = spi_block_erase_d8, |
| 13913 | }, { |
| 13914 | .eraseblocks = { {256 * 1024, 1} }, |
| 13915 | .block_erase = spi_block_erase_60, |
| 13916 | }, { |
| 13917 | .eraseblocks = { {256 * 1024, 1} }, |
| 13918 | .block_erase = spi_block_erase_c7, |
| 13919 | }, |
| 13920 | }, |
| 13921 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 13922 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 13923 | .write = spi_chip_write_256, |
| 13924 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13925 | .voltage = {1650, 1950}, |
| 13926 | }, |
| 13927 | |
| 13928 | { |
| 13929 | .vendor = "SST", |
| 13930 | .name = "SST25WF040", |
| 13931 | .bustype = BUS_SPI, |
| 13932 | .manufacture_id = SST_ID, |
| 13933 | .model_id = SST_SST25WF040, |
| 13934 | .total_size = 512, |
| 13935 | .page_size = 256, |
| 13936 | .feature_bits = FEATURE_WRSR_EITHER, |
| 13937 | .tested = TEST_UNTESTED, |
| 13938 | .probe = probe_spi_rdid, |
| 13939 | .probe_timing = TIMING_ZERO, |
| 13940 | .block_erasers = |
| 13941 | { |
| 13942 | { |
| 13943 | .eraseblocks = { {4 * 1024, 128} }, |
| 13944 | .block_erase = spi_block_erase_20, |
| 13945 | }, { |
| 13946 | .eraseblocks = { {32 * 1024, 16} }, |
| 13947 | .block_erase = spi_block_erase_52, |
| 13948 | }, { |
| 13949 | .eraseblocks = { {64 * 1024, 8} }, |
| 13950 | .block_erase = spi_block_erase_d8, |
| 13951 | }, { |
| 13952 | .eraseblocks = { {1024 * 512, 1} }, |
| 13953 | .block_erase = spi_block_erase_60, |
| 13954 | }, { |
| 13955 | .eraseblocks = { {1024 * 512, 1} }, |
| 13956 | .block_erase = spi_block_erase_c7, |
| 13957 | }, |
| 13958 | }, |
| 13959 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 13960 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 13961 | .write = spi_aai_write, |
| 13962 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13963 | .voltage = {1650, 1950}, |
| 13964 | }, |
| 13965 | |
| 13966 | { |
| 13967 | .vendor = "SST", |
| 13968 | .name = "SST25WF040B", |
| 13969 | .bustype = BUS_SPI, |
| 13970 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 13971 | .model_id = SST_SST25WF040B, |
| 13972 | .total_size = 512, |
| 13973 | .page_size = 256, |
| 13974 | .feature_bits = FEATURE_WRSR_WREN, |
| 13975 | .tested = TEST_UNTESTED, |
| 13976 | .probe = probe_spi_rdid, |
| 13977 | .probe_timing = TIMING_ZERO, |
| 13978 | .block_erasers = |
| 13979 | { |
| 13980 | { |
| 13981 | .eraseblocks = { {4 * 1024, 128} }, |
| 13982 | .block_erase = spi_block_erase_20, |
| 13983 | }, { |
| 13984 | .eraseblocks = { {64 * 1024, 8} }, |
| 13985 | .block_erase = spi_block_erase_d8, |
| 13986 | }, { |
| 13987 | .eraseblocks = { {512 * 1024, 1} }, |
| 13988 | .block_erase = spi_block_erase_60, |
| 13989 | }, { |
| 13990 | .eraseblocks = { {512 * 1024, 1} }, |
| 13991 | .block_erase = spi_block_erase_c7, |
| 13992 | }, |
| 13993 | }, |
| 13994 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 13995 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 13996 | .write = spi_chip_write_256, |
| 13997 | .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */ |
| 13998 | .voltage = {1650, 1950}, |
| 13999 | }, |
| 14000 | |
| 14001 | { |
| 14002 | .vendor = "SST", |
| 14003 | .name = "SST25WF080", |
| 14004 | .bustype = BUS_SPI, |
| 14005 | .manufacture_id = SST_ID, |
| 14006 | .model_id = SST_SST25WF080, |
| 14007 | .total_size = 1024, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14008 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 14009 | .feature_bits = FEATURE_WRSR_EITHER, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 14010 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14011 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 14012 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14013 | .block_erasers = |
| 14014 | { |
| 14015 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14016 | .eraseblocks = { {4 * 1024, 256} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14017 | .block_erase = spi_block_erase_20, |
| 14018 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14019 | .eraseblocks = { {32 * 1024, 32} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14020 | .block_erase = spi_block_erase_52, |
| 14021 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14022 | .eraseblocks = { {64 * 1024, 16} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14023 | .block_erase = spi_block_erase_d8, |
| 14024 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14025 | .eraseblocks = { {1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14026 | .block_erase = spi_block_erase_60, |
| 14027 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14028 | .eraseblocks = { {1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14029 | .block_erase = spi_block_erase_c7, |
| 14030 | }, |
| 14031 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14032 | .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */ |
| 14033 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 14034 | .write = spi_aai_write, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14035 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 14036 | .voltage = {1650, 1950}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14037 | }, |
| 14038 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14039 | { |
| 14040 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14041 | .name = "SST25WF080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14042 | .bustype = BUS_SPI, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14043 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 14044 | .model_id = SST_SST25WF080B, |
| 14045 | .total_size = 1024, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14046 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14047 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | fcf6a8c | 2011-05-18 01:32:00 +0000 | [diff] [blame] | 14048 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14049 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 14050 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14051 | .block_erasers = |
| 14052 | { |
| 14053 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14054 | .eraseblocks = { {4 * 1024, 256} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14055 | .block_erase = spi_block_erase_20, |
| 14056 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14057 | .eraseblocks = { {64 * 1024, 16} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14058 | .block_erase = spi_block_erase_d8, |
| 14059 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14060 | .eraseblocks = { {1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14061 | .block_erase = spi_block_erase_60, |
| 14062 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14063 | .eraseblocks = { {1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14064 | .block_erase = spi_block_erase_c7, |
| 14065 | }, |
| 14066 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14067 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 14068 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 14069 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14070 | .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */ |
| 14071 | .voltage = {1650, 1950}, |
| 14072 | }, |
| 14073 | |
| 14074 | { |
| 14075 | .vendor = "SST", |
| 14076 | .name = "SST25WF512", |
| 14077 | .bustype = BUS_SPI, |
| 14078 | .manufacture_id = SST_ID, |
| 14079 | .model_id = SST_SST25WF512, |
| 14080 | .total_size = 64, |
| 14081 | .page_size = 256, |
| 14082 | .feature_bits = FEATURE_WRSR_EITHER, |
| 14083 | .tested = TEST_UNTESTED, |
| 14084 | .probe = probe_spi_rdid, |
| 14085 | .probe_timing = TIMING_ZERO, |
| 14086 | .block_erasers = |
| 14087 | { |
| 14088 | { |
| 14089 | .eraseblocks = { {4 * 1024, 16} }, |
| 14090 | .block_erase = spi_block_erase_20, |
| 14091 | }, { |
| 14092 | .eraseblocks = { {32 * 1024, 2} }, |
| 14093 | .block_erase = spi_block_erase_52, |
| 14094 | }, { |
| 14095 | .eraseblocks = { {1024 * 64, 1} }, |
| 14096 | .block_erase = spi_block_erase_60, |
| 14097 | }, { |
| 14098 | .eraseblocks = { {1024 * 64, 1} }, |
| 14099 | .block_erase = spi_block_erase_c7, |
| 14100 | }, |
| 14101 | }, |
| 14102 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 14103 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 14104 | .write = spi_aai_write, |
| 14105 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 14106 | .voltage = {1650, 1950}, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 14107 | }, |
| 14108 | |
| 14109 | { |
| 14110 | .vendor = "SST", |
Nico Huber | a2eaf4a | 2023-02-15 22:56:53 +0100 | [diff] [blame] | 14111 | .name = "SST26VF016", |
| 14112 | .bustype = BUS_SPI, |
| 14113 | .manufacture_id = SST_ID, |
| 14114 | .model_id = SST_SST26VF016, |
| 14115 | .total_size = 2048, |
| 14116 | .page_size = 256, |
| 14117 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 14118 | .tested = TEST_UNTESTED, |
| 14119 | .probe = probe_spi_rdid, |
| 14120 | .probe_timing = TIMING_ZERO, |
| 14121 | .block_erasers = |
| 14122 | { |
| 14123 | { |
| 14124 | .eraseblocks = { {4 * 1024, 512} }, |
| 14125 | .block_erase = spi_block_erase_20, |
| 14126 | }, { |
| 14127 | .eraseblocks = { |
| 14128 | {8 * 1024, 4}, |
| 14129 | {32 * 1024, 1}, |
| 14130 | {64 * 1024, 30}, |
| 14131 | {32 * 1024, 1}, |
| 14132 | {8 * 1024, 4}, |
| 14133 | }, |
| 14134 | .block_erase = spi_block_erase_d8, |
| 14135 | }, { |
| 14136 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 14137 | .block_erase = spi_block_erase_c7, |
| 14138 | }, |
| 14139 | }, |
| 14140 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 14141 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 14142 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 14143 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 14144 | .voltage = {2700, 3600}, |
| 14145 | }, |
| 14146 | |
| 14147 | { |
| 14148 | .vendor = "SST", |
Wei Hu | 25584de | 2018-04-30 14:02:08 -0700 | [diff] [blame] | 14149 | .name = "SST26VF016B(A)", |
| 14150 | .bustype = BUS_SPI, |
| 14151 | .manufacture_id = SST_ID, |
| 14152 | .model_id = SST_SST26VF016B, |
| 14153 | .total_size = 2048, |
| 14154 | .page_size = 256, |
| 14155 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 14156 | .tested = TEST_OK_PREW, |
| 14157 | .probe = probe_spi_rdid, |
| 14158 | .probe_timing = TIMING_ZERO, |
| 14159 | .block_erasers = |
| 14160 | { |
| 14161 | { |
| 14162 | .eraseblocks = { {4 * 1024, 512} }, |
| 14163 | .block_erase = spi_block_erase_20, |
| 14164 | }, { |
| 14165 | .eraseblocks = { |
| 14166 | {8 * 1024, 4}, |
| 14167 | {32 * 1024, 1}, |
| 14168 | {64 * 1024, 30}, |
| 14169 | {32 * 1024, 1}, |
| 14170 | {8 * 1024, 4}, |
| 14171 | }, |
| 14172 | .block_erase = spi_block_erase_d8, |
| 14173 | }, { |
| 14174 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 14175 | .block_erase = spi_block_erase_c7, |
| 14176 | }, |
| 14177 | }, |
| 14178 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 14179 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 14180 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 14181 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 14182 | .voltage = {2700, 3600}, |
| 14183 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 14184 | |
Wei Hu | 25584de | 2018-04-30 14:02:08 -0700 | [diff] [blame] | 14185 | { |
| 14186 | .vendor = "SST", |
Nico Huber | a2eaf4a | 2023-02-15 22:56:53 +0100 | [diff] [blame] | 14187 | .name = "SST26VF032", |
| 14188 | .bustype = BUS_SPI, |
| 14189 | .manufacture_id = SST_ID, |
| 14190 | .model_id = SST_SST26VF032, |
| 14191 | .total_size = 4096, |
| 14192 | .page_size = 256, |
| 14193 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 14194 | .tested = TEST_UNTESTED, |
| 14195 | .probe = probe_spi_rdid, |
| 14196 | .probe_timing = TIMING_ZERO, |
| 14197 | .block_erasers = |
| 14198 | { |
| 14199 | { |
| 14200 | .eraseblocks = { {4 * 1024, 1024} }, |
| 14201 | .block_erase = spi_block_erase_20, |
| 14202 | }, { |
| 14203 | .eraseblocks = { |
| 14204 | {8 * 1024, 4}, |
| 14205 | {32 * 1024, 1}, |
| 14206 | {64 * 1024, 62}, |
| 14207 | {32 * 1024, 1}, |
| 14208 | {8 * 1024, 4}, |
| 14209 | }, |
| 14210 | .block_erase = spi_block_erase_d8, |
| 14211 | }, { |
| 14212 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 14213 | .block_erase = spi_block_erase_c7, |
| 14214 | }, |
| 14215 | }, |
| 14216 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 14217 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 14218 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 14219 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 14220 | .voltage = {2700, 3600}, |
| 14221 | }, |
| 14222 | |
| 14223 | { |
| 14224 | .vendor = "SST", |
Wei Hu | 25584de | 2018-04-30 14:02:08 -0700 | [diff] [blame] | 14225 | .name = "SST26VF032B(A)", |
| 14226 | .bustype = BUS_SPI, |
| 14227 | .manufacture_id = SST_ID, |
| 14228 | .model_id = SST_SST26VF032B, |
| 14229 | .total_size = 4096, |
| 14230 | .page_size = 256, |
| 14231 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 14232 | .tested = TEST_UNTESTED, |
| 14233 | .probe = probe_spi_rdid, |
| 14234 | .probe_timing = TIMING_ZERO, |
| 14235 | .block_erasers = |
| 14236 | { |
| 14237 | { |
| 14238 | .eraseblocks = { {4 * 1024, 1024} }, |
| 14239 | .block_erase = spi_block_erase_20, |
| 14240 | }, { |
| 14241 | .eraseblocks = { |
| 14242 | {8 * 1024, 4}, |
| 14243 | {32 * 1024, 1}, |
| 14244 | {64 * 1024, 62}, |
| 14245 | {32 * 1024, 1}, |
| 14246 | {8 * 1024, 4}, |
| 14247 | }, |
| 14248 | .block_erase = spi_block_erase_d8, |
| 14249 | }, { |
| 14250 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 14251 | .block_erase = spi_block_erase_c7, |
| 14252 | }, |
| 14253 | }, |
| 14254 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 14255 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 14256 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 14257 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 14258 | .voltage = {2700, 3600}, |
| 14259 | }, |
| 14260 | |
Wei Hu | 25584de | 2018-04-30 14:02:08 -0700 | [diff] [blame] | 14261 | { |
| 14262 | .vendor = "SST", |
| 14263 | .name = "SST26VF064B(A)", |
| 14264 | .bustype = BUS_SPI, |
| 14265 | .manufacture_id = SST_ID, |
| 14266 | .model_id = SST_SST26VF064B, |
| 14267 | .total_size = 8192, |
| 14268 | .page_size = 256, |
| 14269 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 14270 | .tested = TEST_OK_PREW, |
| 14271 | .probe = probe_spi_rdid, |
| 14272 | .probe_timing = TIMING_ZERO, |
| 14273 | .block_erasers = |
| 14274 | { |
| 14275 | { |
| 14276 | .eraseblocks = { {4 * 1024, 2048} }, |
| 14277 | .block_erase = spi_block_erase_20, |
| 14278 | }, { |
| 14279 | .eraseblocks = { |
| 14280 | {8 * 1024, 4}, |
| 14281 | {32 * 1024, 1}, |
| 14282 | {64 * 1024, 126}, |
| 14283 | {32 * 1024, 1}, |
| 14284 | {8 * 1024, 4}, |
| 14285 | }, |
| 14286 | .block_erase = spi_block_erase_d8, |
| 14287 | }, { |
| 14288 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 14289 | .block_erase = spi_block_erase_c7, |
| 14290 | }, |
| 14291 | }, |
| 14292 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 14293 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 14294 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 14295 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 14296 | .voltage = {2700, 3600}, |
| 14297 | }, |
| 14298 | |
| 14299 | { |
| 14300 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14301 | .name = "SST28SF040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14302 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14303 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14304 | .model_id = SST_SST28SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14305 | .total_size = 512, |
| 14306 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14307 | .feature_bits = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14308 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14309 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14310 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14311 | .block_erasers = |
| 14312 | { |
| 14313 | { |
| 14314 | .eraseblocks = { {128, 4096} }, |
| 14315 | .block_erase = erase_sector_28sf040, |
| 14316 | }, { |
| 14317 | .eraseblocks = { {512 * 1024, 1} }, |
| 14318 | .block_erase = erase_chip_28sf040, |
| 14319 | } |
| 14320 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 14321 | .unlock = unprotect_28sf040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14322 | .write = write_28sf040, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14323 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14324 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14325 | }, |
| 14326 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14327 | { |
| 14328 | .vendor = "SST", |
| 14329 | .name = "SST29EE010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14330 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14331 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14332 | .model_id = SST_SST29EE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14333 | .total_size = 128, |
| 14334 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14335 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 14336 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14337 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14338 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14339 | .block_erasers = |
| 14340 | { |
| 14341 | { |
| 14342 | .eraseblocks = { {128 * 1024, 1} }, |
| 14343 | .block_erase = erase_chip_block_jedec, |
| 14344 | } |
| 14345 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14346 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14347 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14348 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14349 | }, |
| 14350 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14351 | { |
| 14352 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14353 | .name = "SST29EE020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14354 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14355 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14356 | .model_id = SST_SST29EE020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14357 | .total_size = 256, |
| 14358 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14359 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 14360 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14361 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14362 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14363 | .block_erasers = |
| 14364 | { |
| 14365 | { |
| 14366 | .eraseblocks = { {256 * 1024, 1} }, |
| 14367 | .block_erase = erase_chip_block_jedec, |
| 14368 | } |
| 14369 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14370 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14371 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14372 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14373 | }, |
| 14374 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14375 | { |
| 14376 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14377 | .name = "SST29LE010", |
| 14378 | .bustype = BUS_PARALLEL, |
| 14379 | .manufacture_id = SST_ID, |
| 14380 | .model_id = SST_SST29LE010, |
| 14381 | .total_size = 128, |
| 14382 | .page_size = 128, |
| 14383 | .feature_bits = FEATURE_LONG_RESET, |
| 14384 | .tested = TEST_UNTESTED, |
| 14385 | .probe = probe_jedec, |
| 14386 | .probe_timing = 10, |
| 14387 | .block_erasers = |
| 14388 | { |
| 14389 | { |
| 14390 | .eraseblocks = { {128 * 1024, 1} }, |
| 14391 | .block_erase = erase_chip_block_jedec, |
| 14392 | } |
| 14393 | }, |
| 14394 | .write = write_jedec, |
| 14395 | .read = read_memmapped, |
| 14396 | .voltage = {3000, 3600}, |
| 14397 | }, |
| 14398 | |
| 14399 | { |
| 14400 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14401 | .name = "SST29LE020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14402 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14403 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14404 | .model_id = SST_SST29LE020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14405 | .total_size = 256, |
| 14406 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14407 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 14408 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14409 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14410 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14411 | .block_erasers = |
| 14412 | { |
| 14413 | { |
| 14414 | .eraseblocks = { {256 * 1024, 1} }, |
| 14415 | .block_erase = erase_chip_block_jedec, |
| 14416 | } |
| 14417 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14418 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14419 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14420 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14421 | }, |
| 14422 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14423 | { |
| 14424 | .vendor = "SST", |
| 14425 | .name = "SST39SF010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14426 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14427 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14428 | .model_id = SST_SST39SF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14429 | .total_size = 128, |
| 14430 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14431 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 14432 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14433 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 14434 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14435 | .block_erasers = |
| 14436 | { |
| 14437 | { |
| 14438 | .eraseblocks = { {4 * 1024, 32} }, |
| 14439 | .block_erase = erase_sector_jedec, |
| 14440 | }, { |
| 14441 | .eraseblocks = { {128 * 1024, 1} }, |
| 14442 | .block_erase = erase_chip_block_jedec, |
| 14443 | } |
| 14444 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14445 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14446 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14447 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14448 | }, |
| 14449 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14450 | { |
| 14451 | .vendor = "SST", |
| 14452 | .name = "SST39SF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14453 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14454 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14455 | .model_id = SST_SST39SF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14456 | .total_size = 256, |
| 14457 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14458 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 19f46f2 | 2011-06-18 22:56:14 +0000 | [diff] [blame] | 14459 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14460 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14461 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14462 | .block_erasers = |
| 14463 | { |
| 14464 | { |
| 14465 | .eraseblocks = { {4 * 1024, 64} }, |
| 14466 | .block_erase = erase_sector_jedec, |
| 14467 | }, { |
| 14468 | .eraseblocks = { {256 * 1024, 1} }, |
| 14469 | .block_erase = erase_chip_block_jedec, |
| 14470 | } |
| 14471 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14472 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14473 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14474 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14475 | }, |
| 14476 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14477 | { |
| 14478 | .vendor = "SST", |
| 14479 | .name = "SST39SF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14480 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14481 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14482 | .model_id = SST_SST39SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14483 | .total_size = 512, |
| 14484 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14485 | .feature_bits = FEATURE_EITHER_RESET, |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 14486 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14487 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14488 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14489 | .block_erasers = |
| 14490 | { |
| 14491 | { |
| 14492 | .eraseblocks = { {4 * 1024, 128} }, |
| 14493 | .block_erase = erase_sector_jedec, |
| 14494 | }, { |
| 14495 | .eraseblocks = { {512 * 1024, 1} }, |
| 14496 | .block_erase = erase_chip_block_jedec, |
| 14497 | } |
| 14498 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14499 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14500 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14501 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14502 | }, |
| 14503 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14504 | { |
| 14505 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14506 | .name = "SST39SF512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14507 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14508 | .manufacture_id = SST_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14509 | .model_id = SST_SST39SF512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14510 | .total_size = 64, |
| 14511 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14512 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 14513 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14514 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14515 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14516 | .block_erasers = |
| 14517 | { |
| 14518 | { |
| 14519 | .eraseblocks = { {4 * 1024, 16} }, |
| 14520 | .block_erase = erase_sector_jedec, |
| 14521 | }, { |
| 14522 | .eraseblocks = { {64 * 1024, 1} }, |
| 14523 | .block_erase = erase_chip_block_jedec, |
| 14524 | } |
| 14525 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14526 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14527 | .read = read_memmapped, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14528 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14529 | }, |
| 14530 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14531 | { |
| 14532 | .vendor = "SST", |
| 14533 | .name = "SST39VF010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14534 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14535 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14536 | .model_id = SST_SST39VF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14537 | .total_size = 128, |
| 14538 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14539 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 14540 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14541 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14542 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14543 | .block_erasers = |
| 14544 | { |
| 14545 | { |
| 14546 | .eraseblocks = { {4 * 1024, 32} }, |
| 14547 | .block_erase = erase_sector_jedec, |
| 14548 | }, { |
| 14549 | .eraseblocks = { {128 * 1024, 1} }, |
| 14550 | .block_erase = erase_chip_block_jedec, |
| 14551 | } |
| 14552 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14553 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14554 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14555 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14556 | }, |
| 14557 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14558 | { |
| 14559 | .vendor = "SST", |
| 14560 | .name = "SST39VF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14561 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14562 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14563 | .model_id = SST_SST39VF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14564 | .total_size = 256, |
| 14565 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14566 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 14567 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14568 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14569 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14570 | .block_erasers = |
| 14571 | { |
| 14572 | { |
| 14573 | .eraseblocks = { {4 * 1024, 64} }, |
| 14574 | .block_erase = erase_sector_jedec, |
| 14575 | }, { |
| 14576 | .eraseblocks = { {256 * 1024, 1} }, |
| 14577 | .block_erase = erase_chip_block_jedec, |
| 14578 | } |
| 14579 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14580 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14581 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14582 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14583 | }, |
| 14584 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14585 | { |
| 14586 | .vendor = "SST", |
| 14587 | .name = "SST39VF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14588 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14589 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14590 | .model_id = SST_SST39VF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14591 | .total_size = 512, |
| 14592 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14593 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 14594 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14595 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14596 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14597 | .block_erasers = |
| 14598 | { |
| 14599 | { |
| 14600 | .eraseblocks = { {4 * 1024, 128} }, |
| 14601 | .block_erase = erase_sector_jedec, |
| 14602 | }, { |
| 14603 | .eraseblocks = { {512 * 1024, 1} }, |
| 14604 | .block_erase = erase_chip_block_jedec, |
| 14605 | } |
| 14606 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14607 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14608 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14609 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 90eff15 | 2008-12-08 23:51:45 +0000 | [diff] [blame] | 14610 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14611 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14612 | { |
| 14613 | .vendor = "SST", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 14614 | .name = "SST39VF080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14615 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 14616 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14617 | .model_id = SST_SST39VF080, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 14618 | .total_size = 1024, |
| 14619 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14620 | .feature_bits = FEATURE_EITHER_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 14621 | .tested = TEST_UNTESTED, |
| 14622 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14623 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14624 | .block_erasers = |
| 14625 | { |
| 14626 | { |
| 14627 | .eraseblocks = { {4 * 1024, 256} }, |
| 14628 | .block_erase = erase_sector_jedec, |
| 14629 | }, { |
| 14630 | .eraseblocks = { {64 * 1024, 16} }, |
| 14631 | .block_erase = erase_block_jedec, |
| 14632 | }, { |
| 14633 | .eraseblocks = { {1024 * 1024, 1} }, |
| 14634 | .block_erase = erase_chip_block_jedec, |
| 14635 | } |
| 14636 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14637 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14638 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14639 | .voltage = {2700, 3600}, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 14640 | }, |
| 14641 | |
| 14642 | { |
| 14643 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14644 | .name = "SST39VF512", |
| 14645 | .bustype = BUS_PARALLEL, |
| 14646 | .manufacture_id = SST_ID, |
| 14647 | .model_id = SST_SST39VF512, |
| 14648 | .total_size = 64, |
| 14649 | .page_size = 4096, |
| 14650 | .feature_bits = FEATURE_EITHER_RESET, |
| 14651 | .tested = TEST_OK_PREW, |
| 14652 | .probe = probe_jedec, |
| 14653 | .probe_timing = 1, /* 150 ns */ |
| 14654 | .block_erasers = |
| 14655 | { |
| 14656 | { |
| 14657 | .eraseblocks = { {4 * 1024, 16} }, |
| 14658 | .block_erase = erase_sector_jedec, |
| 14659 | }, { |
| 14660 | .eraseblocks = { {64 * 1024, 1} }, |
| 14661 | .block_erase = erase_chip_block_jedec, |
| 14662 | } |
| 14663 | }, |
| 14664 | .write = write_jedec_1, |
| 14665 | .read = read_memmapped, |
| 14666 | .voltage = {2700, 3600}, |
| 14667 | }, |
| 14668 | |
| 14669 | { |
| 14670 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14671 | .name = "SST49LF002A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14672 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14673 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14674 | .model_id = SST_SST49LF002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14675 | .total_size = 256, |
| 14676 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14677 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 14678 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14679 | .probe = probe_jedec, |
| 14680 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14681 | .block_erasers = |
| 14682 | { |
| 14683 | { |
| 14684 | .eraseblocks = { {4 * 1024, 64} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14685 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14686 | }, { |
| 14687 | .eraseblocks = { {16 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14688 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14689 | }, { |
| 14690 | .eraseblocks = { {256 * 1024, 1} }, |
| 14691 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 14692 | } |
| 14693 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14694 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14695 | .unlock = unlock_sst_fwhub, |
| 14696 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14697 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14698 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14699 | }, |
| 14700 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14701 | { |
| 14702 | .vendor = "SST", |
| 14703 | .name = "SST49LF003A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14704 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14705 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14706 | .model_id = SST_SST49LF003A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14707 | .total_size = 384, |
| 14708 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14709 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 14710 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14711 | .probe = probe_jedec, |
| 14712 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14713 | .block_erasers = |
| 14714 | { |
| 14715 | { |
| 14716 | .eraseblocks = { {4 * 1024, 96} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14717 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14718 | }, { |
| 14719 | .eraseblocks = { {64 * 1024, 6} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14720 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14721 | }, { |
| 14722 | .eraseblocks = { {384 * 1024, 1} }, |
| 14723 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 14724 | } |
| 14725 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14726 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14727 | .unlock = unlock_sst_fwhub, |
| 14728 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14729 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14730 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14731 | }, |
| 14732 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14733 | { |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 14734 | /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB) |
| 14735 | * and is only honored for 64k block erase, but not 4k sector erase. |
| 14736 | */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14737 | .vendor = "SST", |
| 14738 | .name = "SST49LF004A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14739 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14740 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14741 | .model_id = SST_SST49LF004A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14742 | .total_size = 512, |
| 14743 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14744 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 14745 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14746 | .probe = probe_jedec, |
| 14747 | .probe_timing = 1, /* 150 ns */ |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 14748 | .block_erasers = |
| 14749 | { |
| 14750 | { |
| 14751 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14752 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 14753 | }, { |
| 14754 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14755 | .block_erase = erase_block_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 14756 | }, { |
| 14757 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14758 | .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] | 14759 | }, |
| 14760 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14761 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14762 | .unlock = unlock_sst_fwhub, |
| 14763 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14764 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14765 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14766 | }, |
| 14767 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14768 | { |
| 14769 | .vendor = "SST", |
| 14770 | .name = "SST49LF004C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14771 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14772 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14773 | .model_id = SST_SST49LF004C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14774 | .total_size = 512, |
| 14775 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14776 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14777 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14778 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14779 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14780 | .block_erasers = |
| 14781 | { |
| 14782 | { |
| 14783 | .eraseblocks = { {4 * 1024, 128} }, |
| 14784 | .block_erase = erase_sector_49lfxxxc, |
| 14785 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14786 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14787 | {64 * 1024, 7}, |
| 14788 | {32 * 1024, 1}, |
| 14789 | {8 * 1024, 2}, |
| 14790 | {16 * 1024, 1}, |
| 14791 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 14792 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14793 | } |
| 14794 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14795 | .printlock = printlock_regspace2_block_eraser_1, |
| 14796 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 14797 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14798 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14799 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14800 | }, |
| 14801 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14802 | { |
| 14803 | .vendor = "SST", |
| 14804 | .name = "SST49LF008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14805 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14806 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14807 | .model_id = SST_SST49LF008A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14808 | .total_size = 1024, |
| 14809 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14810 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 14811 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14812 | .probe = probe_jedec, |
| 14813 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14814 | .block_erasers = |
| 14815 | { |
| 14816 | { |
| 14817 | .eraseblocks = { {4 * 1024, 256} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14818 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14819 | }, { |
| 14820 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14821 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14822 | }, { |
| 14823 | .eraseblocks = { {1024 * 1024, 1} }, |
| 14824 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 14825 | } |
| 14826 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14827 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 14828 | .unlock = unlock_sst_fwhub, |
| 14829 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14830 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14831 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14832 | }, |
| 14833 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14834 | { |
| 14835 | .vendor = "SST", |
| 14836 | .name = "SST49LF008C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14837 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14838 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14839 | .model_id = SST_SST49LF008C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14840 | .total_size = 1024, |
| 14841 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14842 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14843 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14844 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14845 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14846 | .block_erasers = |
| 14847 | { |
| 14848 | { |
| 14849 | .eraseblocks = { {4 * 1024, 256} }, |
| 14850 | .block_erase = erase_sector_49lfxxxc, |
| 14851 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14852 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14853 | {64 * 1024, 15}, |
| 14854 | {32 * 1024, 1}, |
| 14855 | {8 * 1024, 2}, |
| 14856 | {16 * 1024, 1}, |
| 14857 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 14858 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14859 | } |
| 14860 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14861 | .printlock = printlock_regspace2_block_eraser_1, |
| 14862 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 14863 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14864 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14865 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14866 | }, |
| 14867 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14868 | { |
| 14869 | .vendor = "SST", |
| 14870 | .name = "SST49LF016C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14871 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14872 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14873 | .model_id = SST_SST49LF016C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14874 | .total_size = 2048, |
| 14875 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14876 | .feature_bits = FEATURE_REGISTERMAP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 14877 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14878 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14879 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14880 | .block_erasers = |
| 14881 | { |
| 14882 | { |
| 14883 | .eraseblocks = { {4 * 1024, 512} }, |
| 14884 | .block_erase = erase_sector_49lfxxxc, |
| 14885 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14886 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14887 | {64 * 1024, 31}, |
| 14888 | {32 * 1024, 1}, |
| 14889 | {8 * 1024, 2}, |
| 14890 | {16 * 1024, 1}, |
| 14891 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 14892 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14893 | } |
| 14894 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14895 | .printlock = printlock_regspace2_block_eraser_1, |
| 14896 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 14897 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14898 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14899 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14900 | }, |
| 14901 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14902 | { |
| 14903 | .vendor = "SST", |
| 14904 | .name = "SST49LF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14905 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14906 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14907 | .model_id = SST_SST49LF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14908 | .total_size = 256, |
| 14909 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14910 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 14911 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14912 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14913 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14914 | .block_erasers = |
| 14915 | { |
| 14916 | { |
| 14917 | .eraseblocks = { {4 * 1024, 64} }, |
| 14918 | .block_erase = erase_sector_jedec, |
| 14919 | }, { |
| 14920 | .eraseblocks = { {16 * 1024, 16} }, |
| 14921 | .block_erase = erase_block_jedec, |
| 14922 | }, { |
| 14923 | .eraseblocks = { {256 * 1024, 1} }, |
| 14924 | .block_erase = NULL, |
| 14925 | } |
| 14926 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14927 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14928 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14929 | .voltage = {3000, 3600}, |
Sven Schnelle | c208dfb | 2009-01-07 12:35:09 +0000 | [diff] [blame] | 14930 | }, |
| 14931 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14932 | { |
| 14933 | .vendor = "SST", |
| 14934 | .name = "SST49LF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14935 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14936 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14937 | .model_id = SST_SST49LF020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14938 | .total_size = 256, |
Carl-Daniel Hailfinger | da65432 | 2009-07-23 01:44:38 +0000 | [diff] [blame] | 14939 | .page_size = 4 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14940 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 14941 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14942 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14943 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14944 | .block_erasers = |
| 14945 | { |
| 14946 | { |
| 14947 | .eraseblocks = { {4 * 1024, 64} }, |
| 14948 | .block_erase = erase_sector_jedec, |
| 14949 | }, { |
| 14950 | .eraseblocks = { {16 * 1024, 16} }, |
| 14951 | .block_erase = erase_block_jedec, |
| 14952 | }, { |
| 14953 | .eraseblocks = { {256 * 1024, 1} }, |
| 14954 | .block_erase = NULL, |
| 14955 | } |
| 14956 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14957 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14958 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14959 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14960 | }, |
| 14961 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14962 | { |
| 14963 | .vendor = "SST", |
| 14964 | .name = "SST49LF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14965 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14966 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14967 | .model_id = SST_SST49LF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14968 | .total_size = 512, |
| 14969 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14970 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 14971 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14972 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14973 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14974 | .block_erasers = |
| 14975 | { |
| 14976 | { |
| 14977 | .eraseblocks = { {4 * 1024, 128} }, |
| 14978 | .block_erase = erase_sector_jedec, |
| 14979 | }, { |
| 14980 | .eraseblocks = { {64 * 1024, 8} }, |
| 14981 | .block_erase = erase_block_jedec, |
| 14982 | }, { |
| 14983 | .eraseblocks = { {512 * 1024, 1} }, |
| 14984 | .block_erase = NULL, |
| 14985 | } |
| 14986 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14987 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14988 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14989 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14990 | }, |
| 14991 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14992 | { |
| 14993 | .vendor = "SST", |
| 14994 | .name = "SST49LF040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14995 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14996 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14997 | .model_id = SST_SST49LF040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14998 | .total_size = 512, |
| 14999 | .page_size = 64 * 1024, |
Joshua Roys | a84b0bd | 2010-08-16 22:12:39 +0000 | [diff] [blame] | 15000 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 15001 | .tested = TEST_OK_PREW, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15002 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15003 | .probe_timing = 1, /* 150ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15004 | .block_erasers = |
| 15005 | { |
| 15006 | { |
| 15007 | .eraseblocks = { {4 * 1024, 128} }, |
| 15008 | .block_erase = erase_sector_jedec, |
| 15009 | }, { |
| 15010 | .eraseblocks = { {64 * 1024, 8} }, |
| 15011 | .block_erase = erase_block_jedec, |
| 15012 | }, { |
| 15013 | .eraseblocks = { {512 * 1024, 1} }, |
| 15014 | .block_erase = NULL, |
| 15015 | } |
| 15016 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15017 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15018 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15019 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15020 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15021 | }, |
| 15022 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15023 | { |
| 15024 | .vendor = "SST", |
| 15025 | .name = "SST49LF080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15026 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15027 | .manufacture_id = SST_ID, |
Elyes HAOUAS | 124ef38 | 2018-03-27 12:15:09 +0200 | [diff] [blame] | 15028 | .model_id = SST_SST49LF080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15029 | .total_size = 1024, |
| 15030 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15031 | .feature_bits = FEATURE_EITHER_RESET, |
Brandon Dowdy | f07bf32 | 2011-03-06 18:31:11 +0000 | [diff] [blame] | 15032 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15033 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 15034 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15035 | .block_erasers = |
| 15036 | { |
| 15037 | { |
| 15038 | .eraseblocks = { {4 * 1024, 256} }, |
| 15039 | .block_erase = erase_sector_jedec, |
| 15040 | }, { |
| 15041 | .eraseblocks = { {64 * 1024, 16} }, |
| 15042 | .block_erase = erase_block_jedec, |
| 15043 | }, { |
| 15044 | .eraseblocks = { {1024 * 1024, 1} }, |
| 15045 | .block_erase = NULL, |
| 15046 | } |
| 15047 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15048 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15049 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15050 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15051 | }, |
| 15052 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15053 | { |
| 15054 | .vendor = "SST", |
| 15055 | .name = "SST49LF160C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15056 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15057 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15058 | .model_id = SST_SST49LF160C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15059 | .total_size = 2048, |
| 15060 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15061 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15062 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15063 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 15064 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15065 | .block_erasers = |
| 15066 | { |
| 15067 | { |
| 15068 | .eraseblocks = { {4 * 1024, 512} }, |
| 15069 | .block_erase = erase_sector_49lfxxxc, |
| 15070 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 15071 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15072 | {64 * 1024, 31}, |
| 15073 | {32 * 1024, 1}, |
| 15074 | {8 * 1024, 2}, |
| 15075 | {16 * 1024, 1}, |
| 15076 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 15077 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15078 | } |
| 15079 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15080 | .printlock = printlock_regspace2_block_eraser_1, |
| 15081 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 15082 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15083 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15084 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15085 | }, |
| 15086 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15087 | { |
| 15088 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15089 | .name = "M29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15090 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15091 | .manufacture_id = ST_ID, |
| 15092 | .model_id = ST_M29F002B, |
| 15093 | .total_size = 256, |
| 15094 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15095 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15096 | .tested = TEST_UNTESTED, |
| 15097 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 15098 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15099 | .block_erasers = |
| 15100 | { |
| 15101 | { |
| 15102 | .eraseblocks = { |
| 15103 | {16 * 1024, 1}, |
| 15104 | {8 * 1024, 2}, |
| 15105 | {32 * 1024, 1}, |
| 15106 | {64 * 1024, 3}, |
| 15107 | }, |
| 15108 | .block_erase = erase_sector_jedec, |
| 15109 | }, { |
| 15110 | .eraseblocks = { {256 * 1024, 1} }, |
| 15111 | .block_erase = erase_chip_block_jedec, |
| 15112 | } |
| 15113 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15114 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15115 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 15116 | .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] | 15117 | }, |
| 15118 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15119 | { |
| 15120 | .vendor = "ST", |
| 15121 | .name = "M29F002T/NT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15122 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15123 | .manufacture_id = ST_ID, |
| 15124 | .model_id = ST_M29F002T, |
| 15125 | .total_size = 256, |
| 15126 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15127 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 15128 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15129 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 15130 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15131 | .block_erasers = |
| 15132 | { |
| 15133 | { |
| 15134 | .eraseblocks = { |
| 15135 | {64 * 1024, 3}, |
| 15136 | {32 * 1024, 1}, |
| 15137 | {8 * 1024, 2}, |
| 15138 | {16 * 1024, 1}, |
| 15139 | }, |
| 15140 | .block_erase = erase_sector_jedec, |
| 15141 | }, { |
| 15142 | .eraseblocks = { {256 * 1024, 1} }, |
| 15143 | .block_erase = erase_chip_block_jedec, |
| 15144 | } |
| 15145 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15146 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15147 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 15148 | .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] | 15149 | }, |
| 15150 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15151 | { |
| 15152 | .vendor = "ST", |
| 15153 | .name = "M29F040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15154 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15155 | .manufacture_id = ST_ID, |
| 15156 | .model_id = ST_M29F040B, |
| 15157 | .total_size = 512, |
| 15158 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15159 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 15160 | .tested = TEST_UNTESTED, |
| 15161 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 15162 | .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15163 | .block_erasers = |
| 15164 | { |
| 15165 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15166 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15167 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15168 | }, { |
| 15169 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15170 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15171 | } |
| 15172 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15173 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15174 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15175 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15176 | }, |
| 15177 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15178 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15179 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15180 | .vendor = "ST", |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 15181 | .name = "M29F400BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15182 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 15183 | .manufacture_id = ST_ID, |
| 15184 | .model_id = ST_M29F400BB, |
| 15185 | .total_size = 512, |
| 15186 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 15187 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 15188 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 15189 | .probe = probe_jedec, |
| 15190 | .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] | 15191 | .block_erasers = |
| 15192 | { |
| 15193 | { |
| 15194 | .eraseblocks = { |
| 15195 | {16 * 1024, 1}, |
| 15196 | {8 * 1024, 2}, |
| 15197 | {32 * 1024, 1}, |
| 15198 | {64 * 1024, 7}, |
| 15199 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 15200 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 15201 | }, { |
| 15202 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 15203 | .block_erase = erase_chip_block_jedec, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 15204 | } |
| 15205 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 15206 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 15207 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15208 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 15209 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 15210 | |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 15211 | { |
| 15212 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
| 15213 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15214 | .name = "M29F400BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15215 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15216 | .manufacture_id = ST_ID, |
| 15217 | .model_id = ST_M29F400BT, |
| 15218 | .total_size = 512, |
| 15219 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 15220 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15221 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 15222 | .probe = probe_jedec, |
| 15223 | .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] | 15224 | .block_erasers = |
| 15225 | { |
| 15226 | { |
| 15227 | .eraseblocks = { |
| 15228 | {64 * 1024, 7}, |
| 15229 | {32 * 1024, 1}, |
| 15230 | {8 * 1024, 2}, |
| 15231 | {16 * 1024, 1}, |
| 15232 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 15233 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15234 | }, { |
| 15235 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 15236 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15237 | } |
| 15238 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 15239 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15240 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15241 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15242 | }, |
| 15243 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15244 | { |
| 15245 | .vendor = "ST", |
| 15246 | .name = "M29W010B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15247 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15248 | .manufacture_id = ST_ID, |
| 15249 | .model_id = ST_M29W010B, |
| 15250 | .total_size = 128, |
| 15251 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15252 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15253 | .tested = TEST_UNTESTED, |
| 15254 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 15255 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15256 | .block_erasers = |
| 15257 | { |
| 15258 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15259 | .eraseblocks = { {16 * 1024, 8} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15260 | .block_erase = erase_sector_jedec, |
| 15261 | }, { |
| 15262 | .eraseblocks = { {128 * 1024, 1} }, |
| 15263 | .block_erase = erase_chip_block_jedec, |
| 15264 | } |
| 15265 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15266 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15267 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15268 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15269 | }, |
| 15270 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15271 | { |
| 15272 | .vendor = "ST", |
| 15273 | .name = "M29W040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15274 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15275 | .manufacture_id = ST_ID, |
| 15276 | .model_id = ST_M29W040B, |
| 15277 | .total_size = 512, |
| 15278 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15279 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15280 | .tested = TEST_UNTESTED, |
| 15281 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 15282 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15283 | .block_erasers = |
| 15284 | { |
| 15285 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15286 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15287 | .block_erase = erase_sector_jedec, |
| 15288 | }, { |
| 15289 | .eraseblocks = { {512 * 1024, 1} }, |
| 15290 | .block_erase = erase_chip_block_jedec, |
| 15291 | } |
| 15292 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15293 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15294 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15295 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15296 | }, |
| 15297 | |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 15298 | { |
| 15299 | .vendor = "ST", |
| 15300 | .name = "M29W512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15301 | .bustype = BUS_PARALLEL, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 15302 | .manufacture_id = ST_ID, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 15303 | .model_id = ST_M29W512B, |
| 15304 | .total_size = 64, |
| 15305 | .page_size = 64 * 1024, |
| 15306 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 15307 | .tested = TEST_OK_PREW, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 15308 | .probe = probe_jedec, |
| 15309 | .probe_timing = TIMING_ZERO, |
| 15310 | .block_erasers = |
| 15311 | { |
| 15312 | { |
| 15313 | .eraseblocks = { {64 * 1024, 1} }, |
| 15314 | .block_erase = erase_chip_block_jedec, |
| 15315 | } |
| 15316 | }, |
| 15317 | .write = write_jedec_1, |
| 15318 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15319 | .voltage = {2700, 3600}, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 15320 | }, |
Jeffrey A. Kent | ba7c922 | 2010-02-01 05:49:46 +0000 | [diff] [blame] | 15321 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15322 | { |
| 15323 | .vendor = "ST", |
| 15324 | .name = "M50FLW040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15325 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15326 | .manufacture_id = ST_ID, |
| 15327 | .model_id = ST_M50FLW040A, |
| 15328 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 15329 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15330 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15331 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15332 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 15333 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15334 | .block_erasers = |
| 15335 | { |
| 15336 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15337 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 15338 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15339 | {64 * 1024, 5}, /* block */ |
| 15340 | {4 * 1024, 16}, /* sector */ |
| 15341 | {4 * 1024, 16}, /* sector */ |
| 15342 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 15343 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15344 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15345 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15346 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15347 | } |
| 15348 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15349 | .unlock = unlock_regspace2_uniform_64k, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 15350 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15351 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15352 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15353 | }, |
| 15354 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15355 | { |
| 15356 | .vendor = "ST", |
| 15357 | .name = "M50FLW040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15358 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15359 | .manufacture_id = ST_ID, |
| 15360 | .model_id = ST_M50FLW040B, |
| 15361 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 15362 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15363 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15364 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15365 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 15366 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15367 | .block_erasers = |
| 15368 | { |
| 15369 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15370 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 15371 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15372 | {4 * 1024, 16}, /* sector */ |
| 15373 | {64 * 1024, 5}, /* block */ |
| 15374 | {4 * 1024, 16}, /* sector */ |
| 15375 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 15376 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15377 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15378 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15379 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15380 | } |
| 15381 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15382 | .unlock = unlock_regspace2_uniform_64k, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 15383 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15384 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15385 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15386 | }, |
| 15387 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15388 | { |
| 15389 | .vendor = "ST", |
| 15390 | .name = "M50FLW080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15391 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15392 | .manufacture_id = ST_ID, |
| 15393 | .model_id = ST_M50FLW080A, |
| 15394 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 15395 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15396 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15397 | .tested = TEST_OK_PR, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15398 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 15399 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15400 | .block_erasers = |
| 15401 | { |
| 15402 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15403 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 15404 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15405 | {64 * 1024, 13}, /* block */ |
| 15406 | {4 * 1024, 16}, /* sector */ |
| 15407 | {4 * 1024, 16}, /* sector */ |
| 15408 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 15409 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15410 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15411 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15412 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15413 | } |
| 15414 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15415 | .printlock = printlock_regspace2_block_eraser_0, |
| 15416 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15417 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15418 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15419 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15420 | }, |
| 15421 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15422 | { |
| 15423 | .vendor = "ST", |
| 15424 | .name = "M50FLW080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15425 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15426 | .manufacture_id = ST_ID, |
| 15427 | .model_id = ST_M50FLW080B, |
| 15428 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 15429 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15430 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15431 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15432 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 15433 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15434 | .block_erasers = |
| 15435 | { |
| 15436 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15437 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 15438 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15439 | {4 * 1024, 16}, /* sector */ |
| 15440 | {64 * 1024, 13}, /* block */ |
| 15441 | {4 * 1024, 16}, /* sector */ |
| 15442 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 15443 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15444 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15445 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15446 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15447 | } |
| 15448 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15449 | .printlock = printlock_regspace2_block_eraser_0, |
| 15450 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15451 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15452 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15453 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15454 | }, |
| 15455 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15456 | { |
| 15457 | .vendor = "ST", |
| 15458 | .name = "M50FW002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15459 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15460 | .manufacture_id = ST_ID, |
| 15461 | .model_id = ST_M50FW002, |
| 15462 | .total_size = 256, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 15463 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15464 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15465 | .tested = TEST_OK_PR, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15466 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15467 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15468 | .block_erasers = |
| 15469 | { |
| 15470 | { |
| 15471 | .eraseblocks = { |
| 15472 | {64 * 1024, 3}, |
| 15473 | {32 * 1024, 1}, |
| 15474 | {8 * 1024, 2}, |
| 15475 | {16 * 1024, 1}, |
| 15476 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15477 | .block_erase = erase_block_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15478 | }, { |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 15479 | .eraseblocks = { {256 * 1024, 1} }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15480 | .block_erase = NULL, /* Only in A/A mux mode */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15481 | } |
| 15482 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15483 | .printlock = printlock_regspace2_block_eraser_0, |
| 15484 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15485 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15486 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15487 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15488 | }, |
| 15489 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15490 | { |
| 15491 | .vendor = "ST", |
| 15492 | .name = "M50FW016", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15493 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15494 | .manufacture_id = ST_ID, |
| 15495 | .model_id = ST_M50FW016, |
| 15496 | .total_size = 2048, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 15497 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15498 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15499 | .tested = TEST_UNTESTED, |
| 15500 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 15501 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15502 | .block_erasers = |
| 15503 | { |
| 15504 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15505 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15506 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15507 | } |
| 15508 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15509 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15510 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15511 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15512 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15513 | }, |
| 15514 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15515 | { |
| 15516 | .vendor = "ST", |
| 15517 | .name = "M50FW040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15518 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15519 | .manufacture_id = ST_ID, |
| 15520 | .model_id = ST_M50FW040, |
| 15521 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 15522 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15523 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15524 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15525 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 15526 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15527 | .block_erasers = |
| 15528 | { |
| 15529 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15530 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15531 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15532 | } |
| 15533 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15534 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15535 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15536 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15537 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15538 | }, |
| 15539 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15540 | { |
| 15541 | .vendor = "ST", |
| 15542 | .name = "M50FW080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15543 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15544 | .manufacture_id = ST_ID, |
| 15545 | .model_id = ST_M50FW080, |
| 15546 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 15547 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15548 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15549 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15550 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 15551 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15552 | .block_erasers = |
| 15553 | { |
| 15554 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15555 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15556 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15557 | } |
| 15558 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15559 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15560 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15561 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15562 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15563 | }, |
| 15564 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15565 | { |
| 15566 | .vendor = "ST", |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 15567 | .name = "M50LPW080", |
| 15568 | .bustype = BUS_LPC, /* A/A Mux */ |
| 15569 | .manufacture_id = ST_ID, |
| 15570 | .model_id = ST_M50LPW080, |
| 15571 | .total_size = 1024, |
| 15572 | .page_size = 0, |
| 15573 | .feature_bits = FEATURE_REGISTERMAP, |
| 15574 | .tested = TEST_UNTESTED, |
| 15575 | .probe = probe_82802ab, |
| 15576 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 15577 | .block_erasers = |
| 15578 | { |
| 15579 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15580 | .eraseblocks = { {64 * 1024, 16} }, |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 15581 | .block_erase = erase_block_82802ab, |
| 15582 | } |
| 15583 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15584 | .unlock = unlock_regspace2_uniform_64k, |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 15585 | .write = write_82802ab, |
| 15586 | .read = read_memmapped, |
| 15587 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
| 15588 | }, |
| 15589 | |
| 15590 | { |
| 15591 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15592 | .name = "M50LPW116", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15593 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15594 | .manufacture_id = ST_ID, |
| 15595 | .model_id = ST_M50LPW116, |
| 15596 | .total_size = 2048, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 15597 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15598 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15599 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15600 | .probe = probe_82802ab, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 15601 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15602 | .block_erasers = |
| 15603 | { |
| 15604 | { |
| 15605 | .eraseblocks = { |
| 15606 | {4 * 1024, 16}, |
| 15607 | {64 * 1024, 30}, |
| 15608 | {32 * 1024, 1}, |
| 15609 | {8 * 1024, 2}, |
| 15610 | {16 * 1024, 1}, |
| 15611 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15612 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15613 | } |
| 15614 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15615 | .printlock = printlock_regspace2_block_eraser_0, |
| 15616 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15617 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15618 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15619 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15620 | }, |
| 15621 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15622 | { |
Konstantin Grudnev | 3d8868c | 2019-07-23 00:48:54 +0300 | [diff] [blame] | 15623 | .vendor = "ST", |
| 15624 | .name = "M95M02", |
| 15625 | .bustype = BUS_SPI, |
| 15626 | .manufacture_id = ST_ID, |
| 15627 | .model_id = ST_M95M02, |
| 15628 | .total_size = 256, |
| 15629 | .page_size = 256, |
| 15630 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_NO_ERASE | FEATURE_ERASED_ZERO, |
| 15631 | .tested = TEST_OK_PREW, |
Nico Huber | 5455786 | 2023-05-15 12:01:04 +0200 | [diff] [blame] | 15632 | .spi_cmd_set = SPI95, |
Konstantin Grudnev | 3d8868c | 2019-07-23 00:48:54 +0300 | [diff] [blame] | 15633 | .probe = probe_spi_st95, |
| 15634 | .probe_timing = TIMING_ZERO, |
| 15635 | .block_erasers = |
| 15636 | { |
| 15637 | { |
| 15638 | .eraseblocks = { {256 * 1024, 1} }, |
| 15639 | .block_erase = spi_block_erase_emulation, |
| 15640 | } |
| 15641 | }, |
| 15642 | |
| 15643 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 15644 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 15645 | .write = spi_chip_write_256, |
| 15646 | .read = spi_chip_read, |
| 15647 | .voltage = {2500, 5500}, |
| 15648 | }, |
| 15649 | |
| 15650 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 15651 | .vendor = "Sanyo", |
| 15652 | .name = "LE25FU106B", |
| 15653 | .bustype = BUS_SPI, |
| 15654 | .manufacture_id = SANYO_ID, |
| 15655 | .model_id = SANYO_LE25FU106B, |
| 15656 | .total_size = 128, |
| 15657 | .page_size = 256, |
| 15658 | .feature_bits = FEATURE_WRSR_WREN, |
| 15659 | .tested = TEST_UNTESTED, |
| 15660 | .probe = probe_spi_res2, |
| 15661 | .probe_timing = TIMING_ZERO, |
| 15662 | .block_erasers = |
| 15663 | { |
| 15664 | /* FIXME: Is this correct? |
| 15665 | { |
| 15666 | .eraseblocks = { {2 * 1024, 64} }, |
| 15667 | .block_erase = spi_block_erase_d7, |
| 15668 | },*/ |
| 15669 | { |
| 15670 | .eraseblocks = { {32 * 1024, 4} }, |
| 15671 | .block_erase = spi_block_erase_d8, |
| 15672 | }, { |
| 15673 | .eraseblocks = { {128 * 1024, 1} }, |
| 15674 | .block_erase = spi_block_erase_c7, |
| 15675 | } |
| 15676 | }, |
| 15677 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 15678 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 15679 | .write = spi_chip_write_256, |
| 15680 | .read = spi_chip_read, |
| 15681 | .voltage = {2300, 3600}, |
| 15682 | }, |
| 15683 | |
| 15684 | { |
| 15685 | .vendor = "Sanyo", |
| 15686 | .name = "LE25FU206", |
| 15687 | .bustype = BUS_SPI, |
| 15688 | .manufacture_id = SANYO_ID, |
| 15689 | .model_id = SANYO_LE25FU206, |
| 15690 | .total_size = 256, |
| 15691 | .page_size = 256, |
| 15692 | .feature_bits = FEATURE_WRSR_WREN, |
| 15693 | .tested = TEST_UNTESTED, |
| 15694 | .probe = probe_spi_res2, |
| 15695 | .probe_timing = TIMING_ZERO, |
| 15696 | .block_erasers = |
| 15697 | { |
| 15698 | { |
| 15699 | .eraseblocks = { {4 * 1024, 64} }, |
| 15700 | .block_erase = spi_block_erase_d7, |
| 15701 | }, { |
| 15702 | .eraseblocks = { {64 * 1024, 4} }, |
| 15703 | .block_erase = spi_block_erase_d8, |
| 15704 | }, { |
| 15705 | .eraseblocks = { {256 * 1024, 1} }, |
| 15706 | .block_erase = spi_block_erase_c7, |
| 15707 | } |
| 15708 | }, |
| 15709 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 15710 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 15711 | .write = spi_chip_write_256, |
| 15712 | .read = spi_chip_read, |
| 15713 | .voltage = {2300, 3600}, |
| 15714 | }, |
| 15715 | |
| 15716 | { |
| 15717 | .vendor = "Sanyo", |
| 15718 | .name = "LE25FU206A", |
| 15719 | .bustype = BUS_SPI, |
| 15720 | .manufacture_id = SANYO_ID, |
| 15721 | .model_id = SANYO_LE25FU206A, |
| 15722 | .total_size = 256, |
| 15723 | .page_size = 256, |
| 15724 | .tested = TEST_UNTESTED, |
| 15725 | .probe = probe_spi_rdid, |
| 15726 | .probe_timing = TIMING_ZERO, |
| 15727 | .block_erasers = |
| 15728 | { |
| 15729 | { |
| 15730 | .eraseblocks = { {4 * 1024, 64} }, |
| 15731 | .block_erase = spi_block_erase_20, |
| 15732 | }, { |
| 15733 | .eraseblocks = { {4 * 1024, 64} }, |
| 15734 | .block_erase = spi_block_erase_d7, |
| 15735 | }, { |
| 15736 | .eraseblocks = { {64 * 1024, 4} }, |
| 15737 | .block_erase = spi_block_erase_d8, |
| 15738 | }, { |
| 15739 | .eraseblocks = { {256 * 1024, 1} }, |
| 15740 | .block_erase = spi_block_erase_60, |
| 15741 | }, { |
| 15742 | .eraseblocks = { {256 * 1024, 1} }, |
| 15743 | .block_erase = spi_block_erase_c7, |
| 15744 | } |
| 15745 | }, |
| 15746 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 15747 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 15748 | .write = spi_chip_write_256, |
| 15749 | .read = spi_chip_read, |
| 15750 | .voltage = {2300, 3600}, |
| 15751 | }, |
| 15752 | |
| 15753 | { |
| 15754 | .vendor = "Sanyo", |
| 15755 | .name = "LE25FU406B", |
| 15756 | .bustype = BUS_SPI, |
| 15757 | .manufacture_id = SANYO_ID, |
| 15758 | .model_id = SANYO_LE25FU406B, |
| 15759 | .total_size = 512, |
| 15760 | .page_size = 256, |
| 15761 | .feature_bits = FEATURE_WRSR_WREN, |
| 15762 | .tested = TEST_OK_PREW, |
| 15763 | .probe = probe_spi_res2, |
| 15764 | .probe_timing = TIMING_ZERO, |
| 15765 | .block_erasers = |
| 15766 | { |
| 15767 | { |
| 15768 | .eraseblocks = { {4 * 1024, 128} }, |
| 15769 | .block_erase = spi_block_erase_d7, |
| 15770 | }, { |
| 15771 | .eraseblocks = { {64 * 1024, 8} }, |
| 15772 | .block_erase = spi_block_erase_d8, |
| 15773 | }, { |
| 15774 | .eraseblocks = { {512 * 1024, 1} }, |
| 15775 | .block_erase = spi_block_erase_c7, |
| 15776 | } |
| 15777 | }, |
| 15778 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 15779 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 15780 | .write = spi_chip_write_256, |
| 15781 | .read = spi_chip_read, |
| 15782 | .voltage = {2300, 3600}, |
| 15783 | }, |
| 15784 | |
| 15785 | { |
| 15786 | .vendor = "Sanyo", |
| 15787 | .name = "LE25FU406C/LE25U40CMC", |
| 15788 | .bustype = BUS_SPI, |
| 15789 | .manufacture_id = SANYO_ID, |
| 15790 | .model_id = SANYO_LE25FU406C, |
| 15791 | .total_size = 512, |
| 15792 | .page_size = 256, |
| 15793 | .feature_bits = FEATURE_WRSR_WREN, |
| 15794 | .tested = TEST_OK_PREW, |
| 15795 | .probe = probe_spi_rdid, |
| 15796 | .probe_timing = TIMING_ZERO, |
| 15797 | .block_erasers = |
| 15798 | { |
| 15799 | { |
| 15800 | .eraseblocks = { {4 * 1024, 128} }, |
| 15801 | .block_erase = spi_block_erase_20, |
| 15802 | }, { |
| 15803 | .eraseblocks = { {4 * 1024, 128} }, |
| 15804 | .block_erase = spi_block_erase_d7, |
| 15805 | }, { |
| 15806 | .eraseblocks = { {64 * 1024, 8} }, |
| 15807 | .block_erase = spi_block_erase_d8, |
| 15808 | }, { |
| 15809 | .eraseblocks = { {512 * 1024, 1} }, |
| 15810 | .block_erase = spi_block_erase_60, |
| 15811 | }, { |
| 15812 | .eraseblocks = { {512 * 1024, 1} }, |
| 15813 | .block_erase = spi_block_erase_c7, |
| 15814 | } |
| 15815 | }, |
| 15816 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 15817 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 15818 | .write = spi_chip_write_256, |
| 15819 | .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */ |
| 15820 | .voltage = {2300, 3600}, |
| 15821 | }, |
| 15822 | |
| 15823 | { |
| 15824 | .vendor = "Sanyo", |
| 15825 | .name = "LE25FW106", |
| 15826 | .bustype = BUS_SPI, |
| 15827 | .manufacture_id = SANYO_ID, |
| 15828 | .model_id = SANYO_LE25FW106, |
| 15829 | .total_size = 128, |
| 15830 | .page_size = 256, |
| 15831 | .feature_bits = FEATURE_WRSR_WREN, |
| 15832 | .tested = TEST_OK_PREW, |
| 15833 | .probe = probe_spi_res2, |
| 15834 | .probe_timing = TIMING_ZERO, |
| 15835 | .block_erasers = |
| 15836 | { |
| 15837 | { |
| 15838 | .eraseblocks = { {2 * 1024, 64} }, |
| 15839 | .block_erase = spi_block_erase_d7, |
| 15840 | }, { |
| 15841 | .eraseblocks = { {32 * 1024, 4} }, |
| 15842 | .block_erase = spi_block_erase_d8, |
| 15843 | }, { |
| 15844 | .eraseblocks = { {128 * 1024, 1} }, |
| 15845 | .block_erase = spi_block_erase_c7, |
| 15846 | } |
| 15847 | }, |
| 15848 | .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */ |
| 15849 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 15850 | .write = spi_chip_write_256, |
| 15851 | .read = spi_chip_read, |
| 15852 | .voltage = {2700, 3600}, |
| 15853 | }, |
| 15854 | |
| 15855 | { |
| 15856 | .vendor = "Sanyo", |
| 15857 | .name = "LE25FW203A", |
| 15858 | .bustype = BUS_SPI, |
| 15859 | .manufacture_id = SANYO_ID, |
| 15860 | .model_id = SANYO_LE25FW203A, |
| 15861 | .total_size = 256, |
| 15862 | .page_size = 256, |
| 15863 | .tested = TEST_UNTESTED, |
| 15864 | .probe = probe_spi_rdid, |
| 15865 | .probe_timing = TIMING_ZERO, |
| 15866 | .block_erasers = |
| 15867 | { |
| 15868 | { |
| 15869 | .eraseblocks = { {256, 1024} }, |
| 15870 | .block_erase = spi_block_erase_db, |
| 15871 | }, { |
| 15872 | .eraseblocks = { {64 * 1024, 4} }, |
| 15873 | .block_erase = spi_block_erase_d8, |
| 15874 | }, { |
| 15875 | .eraseblocks = { {256 * 1024, 1} }, |
| 15876 | .block_erase = spi_block_erase_c7, |
| 15877 | } |
| 15878 | }, |
| 15879 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 15880 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 15881 | .write = spi_chip_write_256, |
| 15882 | .read = spi_chip_read, |
| 15883 | .voltage = {2700, 3600}, |
| 15884 | }, |
| 15885 | |
| 15886 | { |
| 15887 | .vendor = "Sanyo", |
| 15888 | .name = "LE25FW403A", |
| 15889 | .bustype = BUS_SPI, |
| 15890 | .manufacture_id = SANYO_ID, |
| 15891 | .model_id = SANYO_LE25FW403A, |
| 15892 | .total_size = 512, |
| 15893 | .page_size = 256, |
| 15894 | .tested = TEST_UNTESTED, |
| 15895 | .probe = probe_spi_rdid, |
| 15896 | .probe_timing = TIMING_ZERO, |
| 15897 | .block_erasers = |
| 15898 | { |
| 15899 | { |
| 15900 | .eraseblocks = { {256, 2 * 1024} }, |
| 15901 | .block_erase = spi_block_erase_db, |
| 15902 | }, { |
| 15903 | .eraseblocks = { {64 * 1024, 8} }, |
| 15904 | .block_erase = spi_block_erase_d8, |
| 15905 | }, { |
| 15906 | .eraseblocks = { {512 * 1024, 1} }, |
| 15907 | .block_erase = spi_block_erase_c7, |
| 15908 | } |
| 15909 | }, |
| 15910 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 15911 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 15912 | .write = spi_chip_write_256, |
| 15913 | .read = spi_chip_read, |
| 15914 | .voltage = {2700, 3600}, |
| 15915 | }, |
| 15916 | |
| 15917 | { |
| 15918 | .vendor = "Sanyo", |
| 15919 | .name = "LE25FW406A", |
| 15920 | .bustype = BUS_SPI, |
| 15921 | .manufacture_id = SANYO_ID, |
| 15922 | .model_id = SANYO_LE25FW406A, |
| 15923 | .total_size = 512, |
| 15924 | .page_size = 256, |
| 15925 | .feature_bits = FEATURE_WRSR_WREN, |
| 15926 | .tested = TEST_OK_PREW, |
| 15927 | .probe = probe_spi_res2, |
| 15928 | .probe_timing = TIMING_ZERO, |
| 15929 | .block_erasers = |
| 15930 | { |
| 15931 | { |
| 15932 | .eraseblocks = { {4 * 1024, 128} }, |
| 15933 | .block_erase = spi_block_erase_d7, |
| 15934 | }, { |
| 15935 | .eraseblocks = { {64 * 1024, 8} }, |
| 15936 | .block_erase = spi_block_erase_d8, |
| 15937 | }, { |
| 15938 | .eraseblocks = { {512 * 1024, 1} }, |
| 15939 | .block_erase = spi_block_erase_c7, |
| 15940 | } |
| 15941 | }, |
| 15942 | .printlock = spi_prettyprint_status_register_plain, |
| 15943 | .unlock = spi_disable_blockprotect, |
| 15944 | .write = spi_chip_write_256, |
| 15945 | .read = spi_chip_read, |
| 15946 | .voltage = {2700, 3600}, |
| 15947 | }, |
| 15948 | |
| 15949 | { |
| 15950 | .vendor = "Sanyo", |
| 15951 | .name = "LE25FW418A", |
| 15952 | .bustype = BUS_SPI, |
| 15953 | .manufacture_id = SANYO_ID, |
| 15954 | .model_id = SANYO_LE25FW418A, |
| 15955 | .total_size = 512, |
| 15956 | .page_size = 256, |
| 15957 | .feature_bits = FEATURE_WRSR_WREN, |
| 15958 | .tested = TEST_UNTESTED, |
| 15959 | .probe = probe_spi_res2, |
| 15960 | .probe_timing = TIMING_ZERO, |
| 15961 | .block_erasers = |
| 15962 | { |
| 15963 | { |
| 15964 | .eraseblocks = { {4 * 1024, 128} }, |
| 15965 | .block_erase = spi_block_erase_d7, |
| 15966 | }, { |
| 15967 | .eraseblocks = { {64 * 1024, 8} }, |
| 15968 | .block_erase = spi_block_erase_d8, |
| 15969 | }, { |
| 15970 | .eraseblocks = { {512 * 1024, 1} }, |
| 15971 | .block_erase = spi_block_erase_c7, |
| 15972 | } |
| 15973 | }, |
| 15974 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 15975 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 15976 | .write = spi_chip_write_256, |
| 15977 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 15978 | .voltage = {2700, 3600}, |
| 15979 | }, |
| 15980 | |
| 15981 | { |
| 15982 | .vendor = "Sanyo", |
| 15983 | .name = "LE25FW806", |
| 15984 | .bustype = BUS_SPI, |
| 15985 | .manufacture_id = SANYO_ID, |
| 15986 | .model_id = SANYO_LE25FW806, |
| 15987 | .total_size = 1024, |
| 15988 | .page_size = 256, |
| 15989 | .feature_bits = FEATURE_WRSR_WREN, |
| 15990 | .tested = TEST_UNTESTED, |
| 15991 | .probe = probe_spi_res2, |
| 15992 | .probe_timing = TIMING_ZERO, |
| 15993 | .block_erasers = |
| 15994 | { |
| 15995 | { |
| 15996 | .eraseblocks = { {4 * 1024, 256} }, |
| 15997 | .block_erase = spi_block_erase_20, |
| 15998 | }, { |
| 15999 | .eraseblocks = { {4 * 1024, 256} }, |
| 16000 | .block_erase = spi_block_erase_d7, |
| 16001 | }, { |
| 16002 | .eraseblocks = { {64 * 1024, 16} }, |
| 16003 | .block_erase = spi_block_erase_d8, |
| 16004 | }, { |
| 16005 | .eraseblocks = { {1024 * 1024, 1} }, |
| 16006 | .block_erase = spi_block_erase_c7, |
| 16007 | } |
| 16008 | }, |
| 16009 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 16010 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 16011 | .write = spi_chip_write_256, |
| 16012 | .read = spi_chip_read, |
| 16013 | .voltage = {2700, 3600}, |
| 16014 | }, |
| 16015 | |
| 16016 | { |
| 16017 | .vendor = "Sanyo", |
| 16018 | .name = "LE25FW808", |
| 16019 | .bustype = BUS_SPI, |
| 16020 | .manufacture_id = SANYO_ID, |
| 16021 | .model_id = SANYO_LE25FW808, |
| 16022 | .total_size = 1024, |
| 16023 | .page_size = 256, |
| 16024 | .feature_bits = FEATURE_WRSR_WREN, |
| 16025 | .tested = TEST_UNTESTED, |
| 16026 | .probe = probe_spi_res2, |
| 16027 | .probe_timing = TIMING_ZERO, |
| 16028 | .block_erasers = |
| 16029 | { |
| 16030 | { |
| 16031 | .eraseblocks = { {8 * 1024, 128} }, |
| 16032 | .block_erase = spi_block_erase_d7, |
| 16033 | }, { |
| 16034 | .eraseblocks = { {64 * 1024, 16} }, |
| 16035 | .block_erase = spi_block_erase_d8, |
| 16036 | }, { |
| 16037 | .eraseblocks = { {1024 * 1024, 1} }, |
| 16038 | .block_erase = spi_block_erase_c7, |
| 16039 | } |
| 16040 | }, |
| 16041 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 16042 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 16043 | .write = spi_chip_write_256, |
| 16044 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 16045 | .voltage = {2700, 3600}, |
| 16046 | }, |
| 16047 | |
| 16048 | { |
| 16049 | .vendor = "Sharp", |
| 16050 | .name = "LH28F008BJT-BTLZ1", |
| 16051 | .bustype = BUS_PARALLEL, |
| 16052 | .manufacture_id = SHARP_ID, |
| 16053 | .model_id = SHARP_LH28F008BJ__PB, |
| 16054 | .total_size = 1024, |
| 16055 | .page_size = 64 * 1024, |
| 16056 | .tested = TEST_OK_PREW, |
| 16057 | .probe = probe_82802ab, |
| 16058 | .probe_timing = TIMING_ZERO, |
| 16059 | .block_erasers = |
| 16060 | { |
| 16061 | { |
| 16062 | .eraseblocks = { |
| 16063 | {8 * 1024, 8}, |
| 16064 | {64 * 1024, 15} |
| 16065 | }, |
| 16066 | .block_erase = erase_block_82802ab, |
| 16067 | }, { |
| 16068 | .eraseblocks = { {1024 * 1024, 1} }, |
| 16069 | .block_erase = erase_sector_49lfxxxc, |
| 16070 | } |
| 16071 | }, |
| 16072 | .unlock = unlock_lh28f008bjt, |
| 16073 | .write = write_82802ab, |
| 16074 | .read = read_memmapped, |
| 16075 | .voltage = {2700, 3600}, |
| 16076 | }, |
| 16077 | |
| 16078 | { |
| 16079 | .vendor = "Sharp", |
| 16080 | .name = "LHF00L04", |
| 16081 | .bustype = BUS_FWH, /* A/A Mux */ |
| 16082 | .manufacture_id = SHARP_ID, |
| 16083 | .model_id = SHARP_LHF00L04, |
| 16084 | .total_size = 1024, |
| 16085 | .page_size = 64 * 1024, |
| 16086 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
| 16087 | .tested = TEST_UNTESTED, |
| 16088 | .probe = probe_82802ab, |
| 16089 | .probe_timing = TIMING_ZERO, |
| 16090 | .block_erasers = |
| 16091 | { |
| 16092 | { |
| 16093 | .eraseblocks = { |
| 16094 | {64 * 1024, 15}, |
| 16095 | {8 * 1024, 8} |
| 16096 | }, |
| 16097 | .block_erase = erase_block_82802ab, |
| 16098 | }, { |
| 16099 | .eraseblocks = { |
| 16100 | {1024 * 1024, 1} |
| 16101 | }, |
| 16102 | .block_erase = NULL, /* 30 D0, only in A/A mux mode */ |
| 16103 | }, |
| 16104 | }, |
| 16105 | .unlock = unlock_regspace2_uniform_64k, |
| 16106 | .write = write_82802ab, |
| 16107 | .read = read_memmapped, |
| 16108 | .voltage = {3000, 3600}, |
| 16109 | }, |
| 16110 | |
| 16111 | { |
| 16112 | .vendor = "Spansion", |
| 16113 | .name = "S25FL004A", |
| 16114 | .bustype = BUS_SPI, |
| 16115 | .manufacture_id = SPANSION_ID, |
| 16116 | .model_id = SPANSION_S25FL004A, |
| 16117 | .total_size = 512, |
| 16118 | .page_size = 256, |
| 16119 | .feature_bits = FEATURE_WRSR_WREN, |
| 16120 | .tested = TEST_UNTESTED, |
| 16121 | .probe = probe_spi_rdid, |
| 16122 | .probe_timing = TIMING_ZERO, |
| 16123 | .block_erasers = |
| 16124 | { |
| 16125 | { |
| 16126 | .eraseblocks = { {64 * 1024, 8} }, |
| 16127 | .block_erase = spi_block_erase_d8, |
| 16128 | }, { |
| 16129 | .eraseblocks = { {512 * 1024, 1} }, |
| 16130 | .block_erase = spi_block_erase_c7, |
| 16131 | } |
| 16132 | }, |
| 16133 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16134 | .unlock = spi_disable_blockprotect, |
| 16135 | .write = spi_chip_write_256, |
| 16136 | .read = spi_chip_read, |
| 16137 | .voltage = {2700, 3600}, |
| 16138 | }, |
| 16139 | |
| 16140 | { |
| 16141 | .vendor = "Spansion", |
| 16142 | .name = "S25FL008A", |
| 16143 | .bustype = BUS_SPI, |
| 16144 | .manufacture_id = SPANSION_ID, |
| 16145 | .model_id = SPANSION_S25FL008A, |
| 16146 | .total_size = 1024, |
| 16147 | .page_size = 256, |
| 16148 | .feature_bits = FEATURE_WRSR_WREN, |
| 16149 | .tested = TEST_OK_PRE, |
| 16150 | .probe = probe_spi_rdid, |
| 16151 | .probe_timing = TIMING_ZERO, |
| 16152 | .block_erasers = |
| 16153 | { |
| 16154 | { |
| 16155 | .eraseblocks = { {64 * 1024, 16} }, |
| 16156 | .block_erase = spi_block_erase_d8, |
| 16157 | }, { |
| 16158 | .eraseblocks = { {1024 * 1024, 1} }, |
| 16159 | .block_erase = spi_block_erase_c7, |
| 16160 | } |
| 16161 | }, |
| 16162 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16163 | .unlock = spi_disable_blockprotect, |
| 16164 | .write = spi_chip_write_256, |
| 16165 | .read = spi_chip_read, |
| 16166 | .voltage = {2700, 3600}, |
| 16167 | }, |
| 16168 | |
| 16169 | { |
| 16170 | .vendor = "Spansion", |
| 16171 | .name = "S25FL016A", |
| 16172 | .bustype = BUS_SPI, |
| 16173 | .manufacture_id = SPANSION_ID, |
| 16174 | .model_id = SPANSION_S25FL016A, |
| 16175 | .total_size = 2048, |
| 16176 | .page_size = 256, |
| 16177 | .feature_bits = FEATURE_WRSR_WREN, |
| 16178 | .tested = TEST_OK_PREW, |
| 16179 | .probe = probe_spi_rdid, |
| 16180 | .probe_timing = TIMING_ZERO, |
| 16181 | .block_erasers = |
| 16182 | { |
| 16183 | { |
| 16184 | .eraseblocks = { {64 * 1024, 32} }, |
| 16185 | .block_erase = spi_block_erase_d8, |
| 16186 | }, { |
| 16187 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 16188 | .block_erase = spi_block_erase_c7, |
| 16189 | } |
| 16190 | }, |
| 16191 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16192 | .unlock = spi_disable_blockprotect, |
| 16193 | .write = spi_chip_write_256, |
| 16194 | .read = spi_chip_read, |
| 16195 | .voltage = {2700, 3600}, |
| 16196 | }, |
| 16197 | |
| 16198 | { |
| 16199 | .vendor = "Spansion", |
| 16200 | .name = "S25FL032A/P", |
| 16201 | .bustype = BUS_SPI, |
| 16202 | .manufacture_id = SPANSION_ID, |
| 16203 | .model_id = SPANSION_S25FL032A, |
| 16204 | .total_size = 4096, |
| 16205 | .page_size = 256, |
| 16206 | .feature_bits = FEATURE_WRSR_WREN, |
| 16207 | .tested = TEST_OK_PREW, |
| 16208 | .probe = probe_spi_rdid, |
| 16209 | .probe_timing = TIMING_ZERO, |
| 16210 | .block_erasers = |
| 16211 | { |
| 16212 | { |
| 16213 | .eraseblocks = { {64 * 1024, 64} }, |
| 16214 | .block_erase = spi_block_erase_d8, |
| 16215 | }, { |
| 16216 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 16217 | .block_erase = spi_block_erase_c7, |
| 16218 | } |
| 16219 | }, |
| 16220 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16221 | .unlock = spi_disable_blockprotect, |
| 16222 | .write = spi_chip_write_256, |
| 16223 | .read = spi_chip_read, |
| 16224 | .voltage = {2700, 3600}, |
| 16225 | }, |
| 16226 | |
| 16227 | { |
| 16228 | .vendor = "Spansion", |
| 16229 | .name = "S25FL064A/P", |
| 16230 | .bustype = BUS_SPI, |
| 16231 | .manufacture_id = SPANSION_ID, |
| 16232 | .model_id = SPANSION_S25FL064A, |
| 16233 | .total_size = 8192, |
| 16234 | .page_size = 256, |
| 16235 | .feature_bits = FEATURE_WRSR_WREN, |
| 16236 | .tested = TEST_OK_PREW, |
| 16237 | .probe = probe_spi_rdid, |
| 16238 | .probe_timing = TIMING_ZERO, |
| 16239 | .block_erasers = |
| 16240 | { |
| 16241 | { |
| 16242 | .eraseblocks = { {64 * 1024, 128} }, |
| 16243 | .block_erase = spi_block_erase_d8, |
| 16244 | }, { |
| 16245 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 16246 | .block_erase = spi_block_erase_c7, |
| 16247 | } |
| 16248 | }, |
| 16249 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16250 | .unlock = spi_disable_blockprotect, |
| 16251 | .write = spi_chip_write_256, |
| 16252 | .read = spi_chip_read, |
| 16253 | .voltage = {2700, 3600}, |
| 16254 | }, |
| 16255 | |
| 16256 | { |
| 16257 | .vendor = "Spansion", |
| 16258 | .name = "S25FL116K/S25FL216K", /* FIXME: separate them */ |
| 16259 | .bustype = BUS_SPI, |
| 16260 | .manufacture_id = SPANSION_ID, |
| 16261 | .model_id = SPANSION_S25FL216, |
| 16262 | .total_size = 2048, |
| 16263 | .page_size = 256, |
| 16264 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */ |
| 16265 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16266 | .tested = TEST_UNTESTED, |
| 16267 | .probe = probe_spi_rdid, |
| 16268 | .probe_timing = TIMING_ZERO, |
| 16269 | .block_erasers = |
| 16270 | { |
| 16271 | { |
| 16272 | .eraseblocks = { {4 * 1024, 512} }, |
| 16273 | .block_erase = spi_block_erase_20, |
| 16274 | }, { |
| 16275 | .eraseblocks = { {64 * 1024, 32} }, |
| 16276 | .block_erase = spi_block_erase_d8, |
| 16277 | }, { |
| 16278 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 16279 | .block_erase = spi_block_erase_60, |
| 16280 | }, { |
| 16281 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 16282 | .block_erase = spi_block_erase_c7, |
| 16283 | } |
| 16284 | }, |
| 16285 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 16286 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 16287 | .write = spi_chip_write_256, |
| 16288 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
| 16289 | .voltage = {2700, 3600}, |
| 16290 | }, |
| 16291 | |
| 16292 | { |
| 16293 | .vendor = "Spansion", |
| 16294 | .name = "S25FL127S-256kB", /* uniform 256kB sectors */ |
| 16295 | .bustype = BUS_SPI, |
| 16296 | .manufacture_id = SPANSION_ID, |
| 16297 | .model_id = SPANSION_S25FL128, |
| 16298 | .total_size = 16384, |
| 16299 | .page_size = 512, |
| 16300 | /* supports 4B addressing */ |
| 16301 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 16302 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16303 | .tested = TEST_UNTESTED, |
| 16304 | .probe = probe_spi_rdid, |
| 16305 | .probe_timing = TIMING_ZERO, |
| 16306 | .block_erasers = |
| 16307 | { |
| 16308 | { |
| 16309 | .eraseblocks = { {256 * 1024, 64} }, |
| 16310 | .block_erase = spi_block_erase_d8, |
| 16311 | }, { |
| 16312 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16313 | .block_erase = spi_block_erase_60, |
| 16314 | }, { |
| 16315 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16316 | .block_erase = spi_block_erase_c7, |
| 16317 | } |
| 16318 | }, |
| 16319 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 16320 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 16321 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 16322 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 16323 | .voltage = {2700, 3600}, |
| 16324 | }, |
| 16325 | |
| 16326 | { |
| 16327 | .vendor = "Spansion", |
| 16328 | .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 16329 | .bustype = BUS_SPI, |
| 16330 | .manufacture_id = SPANSION_ID, |
| 16331 | .model_id = SPANSION_S25FL128, |
| 16332 | .total_size = 16384, |
| 16333 | .page_size = 256, |
| 16334 | /* supports 4B addressing */ |
| 16335 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 16336 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16337 | .tested = TEST_OK_PREW, |
| 16338 | /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */ |
| 16339 | .probe = probe_spi_rdid, |
| 16340 | .probe_timing = TIMING_ZERO, |
| 16341 | .block_erasers = |
| 16342 | { |
| 16343 | { |
| 16344 | /* This chip supports erasing of 32 so-called "parameter sectors" with |
| 16345 | * opcode 0x20 which may be configured to be on top or bottom of the address |
| 16346 | * space. Trying to access an address outside these 4kB blocks does have no |
| 16347 | * effect on the memory contents, e.g. |
| 16348 | .eraseblocks = { |
| 16349 | {4 * 1024, 32}, |
| 16350 | {64 * 1024, 254} // inaccessible |
| 16351 | }, |
| 16352 | .block_erase = spi_block_erase_20, |
| 16353 | }, { */ |
| 16354 | .eraseblocks = { { 64 * 1024, 256} }, |
| 16355 | .block_erase = spi_block_erase_d8, |
| 16356 | }, { |
| 16357 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16358 | .block_erase = spi_block_erase_60, |
| 16359 | }, { |
| 16360 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16361 | .block_erase = spi_block_erase_c7, |
| 16362 | } |
| 16363 | }, |
| 16364 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 16365 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 16366 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 16367 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 16368 | .voltage = {2700, 3600}, |
| 16369 | }, |
| 16370 | |
| 16371 | { |
| 16372 | .vendor = "Spansion", |
Nico Huber | fffc48d | 2022-05-28 14:26:06 +0200 | [diff] [blame] | 16373 | .name = "S25FL128L", |
| 16374 | .bustype = BUS_SPI, |
| 16375 | .manufacture_id = SPANSION_ID, |
| 16376 | .model_id = SPANSION_S25FL128L, |
| 16377 | .total_size = 16384, |
| 16378 | .page_size = 256, |
| 16379 | /* 4 x 256B Security Region (OTP) */ |
| 16380 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT3 | FEATURE_OTP, |
| 16381 | .tested = TEST_UNTESTED, |
| 16382 | .probe = probe_spi_rdid, |
| 16383 | .probe_timing = TIMING_ZERO, |
| 16384 | .block_erasers = |
| 16385 | { |
| 16386 | { |
| 16387 | .eraseblocks = { {4 * 1024, 4096} }, |
| 16388 | .block_erase = spi_block_erase_20, |
| 16389 | }, { |
| 16390 | .eraseblocks = { {32 * 1024, 512} }, |
| 16391 | .block_erase = spi_block_erase_52, |
| 16392 | }, { |
| 16393 | .eraseblocks = { {64 * 1024, 256} }, |
| 16394 | .block_erase = spi_block_erase_d8, |
| 16395 | }, { |
| 16396 | .eraseblocks = { {16384 * 1024, 1} }, |
| 16397 | .block_erase = spi_block_erase_60, |
| 16398 | }, { |
| 16399 | .eraseblocks = { {16384 * 1024, 1} }, |
| 16400 | .block_erase = spi_block_erase_c7, |
| 16401 | } |
| 16402 | }, |
| 16403 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 16404 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 16405 | .write = spi_chip_write_256, |
| 16406 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 16407 | .voltage = {2700, 3600}, |
| 16408 | .reg_bits = |
| 16409 | { |
| 16410 | /* |
| 16411 | * Note: This chip has a read-only Status Register 2 that is not |
| 16412 | * counted here. Registers are mapped as follows: |
| 16413 | * STATUS1 ... Status Register 1 |
| 16414 | * STATUS2 ... Configuration Register 1 |
| 16415 | * STATUS3 ... Configuration Register 2 |
| 16416 | */ |
| 16417 | .srp = {STATUS1, 7, RW}, |
| 16418 | .srl = {STATUS2, 0, RW}, |
| 16419 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 16420 | .tb = {STATUS1, 5, RW}, |
| 16421 | .sec = {STATUS1, 6, RW}, |
| 16422 | .cmp = {STATUS2, 6, RW}, |
| 16423 | .wps = {STATUS3, 2, RW}, |
| 16424 | }, |
| 16425 | .decode_range = decode_range_spi25, |
| 16426 | }, |
| 16427 | |
| 16428 | { |
| 16429 | .vendor = "Spansion", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16430 | .name = "S25FL128P......0", /* uniform 64 kB sectors */ |
| 16431 | .bustype = BUS_SPI, |
| 16432 | .manufacture_id = SPANSION_ID, |
| 16433 | .model_id = SPANSION_S25FL128, |
| 16434 | .total_size = 16384, |
| 16435 | .page_size = 256, |
| 16436 | .feature_bits = FEATURE_WRSR_WREN, |
| 16437 | .tested = TEST_OK_PREW, |
| 16438 | .probe = probe_spi_rdid, |
| 16439 | .probe_timing = TIMING_ZERO, |
| 16440 | .block_erasers = |
| 16441 | { |
| 16442 | { |
| 16443 | .eraseblocks = { {64 * 1024, 256} }, |
| 16444 | .block_erase = spi_block_erase_20, |
| 16445 | }, { |
| 16446 | .eraseblocks = { {64 * 1024, 256} }, |
| 16447 | .block_erase = spi_block_erase_d8, |
| 16448 | }, { |
| 16449 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16450 | .block_erase = spi_block_erase_60, |
| 16451 | }, { |
| 16452 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16453 | .block_erase = spi_block_erase_c7, |
| 16454 | } |
| 16455 | }, |
| 16456 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 16457 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 16458 | .write = spi_chip_write_256, |
| 16459 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 16460 | .voltage = {2700, 3600}, |
| 16461 | }, |
| 16462 | |
| 16463 | { |
| 16464 | .vendor = "Spansion", |
| 16465 | .name = "S25FL128P......1", /* uniform 256kB sectors */ |
| 16466 | .bustype = BUS_SPI, |
| 16467 | .manufacture_id = SPANSION_ID, |
| 16468 | .model_id = SPANSION_S25FL128, |
| 16469 | .total_size = 16384, |
| 16470 | .page_size = 256, |
| 16471 | .feature_bits = FEATURE_WRSR_WREN, |
| 16472 | .tested = TEST_UNTESTED, |
| 16473 | .probe = probe_spi_rdid, |
| 16474 | .probe_timing = TIMING_ZERO, |
| 16475 | .block_erasers = |
| 16476 | { |
| 16477 | { |
| 16478 | .eraseblocks = { {256 * 1024, 64} }, |
| 16479 | .block_erase = spi_block_erase_d8, |
| 16480 | }, { |
| 16481 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16482 | .block_erase = spi_block_erase_c7, |
| 16483 | } |
| 16484 | }, |
| 16485 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 16486 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 16487 | .write = spi_chip_write_256, |
| 16488 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 16489 | .voltage = {2700, 3600}, |
| 16490 | }, |
| 16491 | |
| 16492 | { |
| 16493 | .vendor = "Spansion", |
| 16494 | .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 16495 | .bustype = BUS_SPI, |
| 16496 | .manufacture_id = SPANSION_ID, |
| 16497 | .model_id = SPANSION_S25FL128, |
| 16498 | .total_size = 16384, |
| 16499 | .page_size = 256, |
| 16500 | /* supports 4B addressing */ |
| 16501 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 16502 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16503 | .tested = TEST_OK_PREW, |
| 16504 | .probe = probe_spi_rdid, |
| 16505 | .probe_timing = TIMING_ZERO, |
| 16506 | .block_erasers = |
| 16507 | { |
| 16508 | { |
| 16509 | /* This chip supports erasing of the 32 so-called "parameter sectors" with |
| 16510 | * opcode 0x20. Trying to access an address outside these 4kB blocks does |
| 16511 | * have no effect on the memory contents, but sets a flag in the SR. |
| 16512 | .eraseblocks = { |
| 16513 | {4 * 1024, 32}, |
| 16514 | {64 * 1024, 254} // inaccessible |
| 16515 | }, |
| 16516 | .block_erase = spi_block_erase_20, |
| 16517 | }, { */ |
| 16518 | .eraseblocks = { { 64 * 1024, 256} }, |
| 16519 | .block_erase = spi_block_erase_d8, |
| 16520 | }, { |
| 16521 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16522 | .block_erase = spi_block_erase_60, |
| 16523 | }, { |
| 16524 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16525 | .block_erase = spi_block_erase_c7, |
| 16526 | } |
| 16527 | }, |
| 16528 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 16529 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 16530 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 16531 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 16532 | .voltage = {2700, 3600}, |
| 16533 | }, |
| 16534 | |
| 16535 | { |
| 16536 | .vendor = "Spansion", |
| 16537 | .name = "S25FL128S......1", /* uniform 256 kB sectors */ |
| 16538 | .bustype = BUS_SPI, |
| 16539 | .manufacture_id = SPANSION_ID, |
| 16540 | .model_id = SPANSION_S25FL128, |
| 16541 | .total_size = 16384, |
| 16542 | .page_size = 512, |
| 16543 | /* supports 4B addressing */ |
| 16544 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 16545 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16546 | .tested = TEST_UNTESTED, |
| 16547 | .probe = probe_spi_rdid, |
| 16548 | .probe_timing = TIMING_ZERO, |
| 16549 | .block_erasers = |
| 16550 | { |
| 16551 | { |
| 16552 | .eraseblocks = { {256 * 1024, 64} }, |
| 16553 | .block_erase = spi_block_erase_d8, |
| 16554 | }, { |
| 16555 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16556 | .block_erase = spi_block_erase_60, |
| 16557 | }, { |
| 16558 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16559 | .block_erase = spi_block_erase_c7, |
| 16560 | } |
| 16561 | }, |
| 16562 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 16563 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 16564 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 16565 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 16566 | .voltage = {2700, 3600}, |
| 16567 | }, |
| 16568 | |
| 16569 | { |
| 16570 | .vendor = "Spansion", |
| 16571 | .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 16572 | .bustype = BUS_SPI, |
| 16573 | .manufacture_id = SPANSION_ID, |
| 16574 | .model_id = SPANSION_S25FL128, |
| 16575 | .total_size = 16384, |
| 16576 | .page_size = 256, |
| 16577 | /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */ |
| 16578 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16579 | .tested = TEST_OK_PREW, |
| 16580 | .probe = probe_spi_rdid, |
| 16581 | .probe_timing = TIMING_ZERO, |
| 16582 | .block_erasers = |
| 16583 | { |
| 16584 | { |
| 16585 | /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with |
| 16586 | * opcode 0x20. Trying to access an address outside these 4kB blocks does have no |
| 16587 | * effect on the memory contents, but sets a flag in the SR. |
| 16588 | .eraseblocks = { |
| 16589 | {4 * 1024, 32}, |
| 16590 | {64 * 1024, 254} // inaccessible |
| 16591 | }, |
| 16592 | .block_erase = spi_block_erase_20, |
| 16593 | }, { */ |
| 16594 | /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs |
| 16595 | .eraseblocks = { |
| 16596 | {8 * 1024, 16}, |
| 16597 | {64 * 1024, 254} // inaccessible |
| 16598 | }, |
| 16599 | .block_erase = spi_block_erase_40, |
| 16600 | }, { */ |
| 16601 | .eraseblocks = { { 64 * 1024, 256} }, |
| 16602 | .block_erase = spi_block_erase_d8, |
| 16603 | }, { |
| 16604 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16605 | .block_erase = spi_block_erase_60, |
| 16606 | }, { |
| 16607 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16608 | .block_erase = spi_block_erase_c7, |
| 16609 | } |
| 16610 | }, |
| 16611 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */ |
| 16612 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 16613 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 16614 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 16615 | .voltage = {2700, 3600}, |
| 16616 | }, |
| 16617 | |
| 16618 | { |
| 16619 | .vendor = "Spansion", |
| 16620 | .name = "S25FL129P......1", /* uniform 256 kB sectors */ |
| 16621 | .bustype = BUS_SPI, |
| 16622 | .manufacture_id = SPANSION_ID, |
| 16623 | .model_id = SPANSION_S25FL128, |
| 16624 | .total_size = 16384, |
| 16625 | .page_size = 256, |
| 16626 | /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */ |
| 16627 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16628 | .tested = TEST_UNTESTED, |
| 16629 | .probe = probe_spi_rdid, |
| 16630 | .probe_timing = TIMING_ZERO, |
| 16631 | .block_erasers = |
| 16632 | { |
| 16633 | { |
| 16634 | .eraseblocks = { {256 * 1024, 64} }, |
| 16635 | .block_erase = spi_block_erase_d8, |
| 16636 | }, { |
| 16637 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16638 | .block_erase = spi_block_erase_60, |
| 16639 | }, { |
| 16640 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16641 | .block_erase = spi_block_erase_c7, |
| 16642 | } |
| 16643 | }, |
| 16644 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */ |
| 16645 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 16646 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 16647 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 16648 | .voltage = {2700, 3600}, |
| 16649 | }, |
| 16650 | |
| 16651 | { |
| 16652 | .vendor = "Spansion", |
| 16653 | .name = "S25FL132K", |
| 16654 | .bustype = BUS_SPI, |
| 16655 | .manufacture_id = SPANSION_ID, |
| 16656 | .model_id = SPANSION_S25FL132K, |
| 16657 | .total_size = 4096, |
| 16658 | .page_size = 256, |
| 16659 | /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 16660 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16661 | .tested = TEST_UNTESTED, |
| 16662 | .probe = probe_spi_rdid, |
| 16663 | .probe_timing = TIMING_ZERO, |
| 16664 | .block_erasers = |
| 16665 | { |
| 16666 | { |
| 16667 | .eraseblocks = { {4 * 1024, 1024} }, |
| 16668 | .block_erase = spi_block_erase_20, |
| 16669 | }, { |
| 16670 | .eraseblocks = { {64 * 1024, 64} }, |
| 16671 | .block_erase = spi_block_erase_d8, |
| 16672 | }, { |
| 16673 | .eraseblocks = { { 4096 * 1024, 1} }, |
| 16674 | .block_erase = spi_block_erase_60, |
| 16675 | }, { |
| 16676 | .eraseblocks = { { 4096 * 1024, 1} }, |
| 16677 | .block_erase = spi_block_erase_c7, |
| 16678 | } |
| 16679 | }, |
| 16680 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */ |
| 16681 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 16682 | .write = spi_chip_write_256, |
| 16683 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 16684 | .voltage = {2700, 3600}, |
| 16685 | }, |
| 16686 | |
| 16687 | { |
| 16688 | .vendor = "Spansion", |
| 16689 | .name = "S25FL164K", |
| 16690 | .bustype = BUS_SPI, |
| 16691 | .manufacture_id = SPANSION_ID, |
| 16692 | .model_id = SPANSION_S25FL164K, |
| 16693 | .total_size = 8192, |
| 16694 | .page_size = 256, |
| 16695 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 16696 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16697 | .tested = TEST_OK_PREW, |
| 16698 | .probe = probe_spi_rdid, |
| 16699 | .probe_timing = TIMING_ZERO, |
| 16700 | .block_erasers = |
| 16701 | { |
| 16702 | { |
| 16703 | .eraseblocks = { {4 * 1024, 2048} }, |
| 16704 | .block_erase = spi_block_erase_20, |
| 16705 | }, { |
| 16706 | .eraseblocks = { {64 * 1024, 128} }, |
| 16707 | .block_erase = spi_block_erase_d8, |
| 16708 | }, { |
| 16709 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 16710 | .block_erase = spi_block_erase_60, |
| 16711 | }, { |
| 16712 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 16713 | .block_erase = spi_block_erase_c7, |
| 16714 | } |
| 16715 | }, |
| 16716 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */ |
| 16717 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 16718 | .write = spi_chip_write_256, |
| 16719 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 16720 | .voltage = {2700, 3600}, |
| 16721 | }, |
| 16722 | |
| 16723 | { |
| 16724 | .vendor = "Spansion", |
| 16725 | .name = "S25FL204K", |
| 16726 | .bustype = BUS_SPI, |
| 16727 | .manufacture_id = SPANSION_ID, |
| 16728 | .model_id = SPANSION_S25FL204, |
| 16729 | .total_size = 512, |
| 16730 | .page_size = 256, |
| 16731 | .feature_bits = FEATURE_WRSR_WREN, |
| 16732 | .tested = TEST_OK_PR, |
| 16733 | .probe = probe_spi_rdid, |
| 16734 | .probe_timing = TIMING_ZERO, |
| 16735 | .block_erasers = |
| 16736 | { |
| 16737 | { |
| 16738 | .eraseblocks = { {4 * 1024, 128} }, |
| 16739 | .block_erase = spi_block_erase_20, |
| 16740 | }, { |
| 16741 | .eraseblocks = { {64 * 1024, 8} }, |
| 16742 | .block_erase = spi_block_erase_d8, |
| 16743 | }, { |
| 16744 | .eraseblocks = { { 512 * 1024, 1} }, |
| 16745 | .block_erase = spi_block_erase_60, |
| 16746 | }, { |
| 16747 | .eraseblocks = { { 512 * 1024, 1} }, |
| 16748 | .block_erase = spi_block_erase_c7, |
| 16749 | } |
| 16750 | }, |
| 16751 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 16752 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 16753 | .write = spi_chip_write_256, |
| 16754 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
| 16755 | .voltage = {2700, 3600}, |
| 16756 | }, |
| 16757 | |
| 16758 | { |
| 16759 | .vendor = "Spansion", |
| 16760 | .name = "S25FL208K", |
| 16761 | .bustype = BUS_SPI, |
| 16762 | .manufacture_id = SPANSION_ID, |
| 16763 | .model_id = SPANSION_S25FL208, |
| 16764 | .total_size = 1024, |
| 16765 | .page_size = 256, |
| 16766 | .feature_bits = FEATURE_WRSR_WREN, |
| 16767 | .tested = TEST_OK_PREW, |
| 16768 | .probe = probe_spi_rdid, |
| 16769 | .probe_timing = TIMING_ZERO, |
| 16770 | .block_erasers = |
| 16771 | { |
| 16772 | { |
| 16773 | .eraseblocks = { {4 * 1024, 256} }, |
| 16774 | .block_erase = spi_block_erase_20, |
| 16775 | }, { |
| 16776 | .eraseblocks = { {64 * 1024, 16} }, |
| 16777 | .block_erase = spi_block_erase_d8, |
| 16778 | }, { |
| 16779 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 16780 | .block_erase = spi_block_erase_60, |
| 16781 | }, { |
| 16782 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 16783 | .block_erase = spi_block_erase_c7, |
| 16784 | } |
| 16785 | }, |
| 16786 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 16787 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 16788 | .write = spi_chip_write_256, |
| 16789 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
| 16790 | .voltage = {2700, 3600}, |
| 16791 | }, |
| 16792 | |
| 16793 | { |
| 16794 | .vendor = "Spansion", |
Nico Huber | fffc48d | 2022-05-28 14:26:06 +0200 | [diff] [blame] | 16795 | .name = "S25FL256L", |
| 16796 | .bustype = BUS_SPI, |
| 16797 | .manufacture_id = SPANSION_ID, |
| 16798 | .model_id = SPANSION_S25FL256L, |
| 16799 | .total_size = 32768, |
| 16800 | .page_size = 256, |
| 16801 | /* 4 x 256B Security Region (OTP) */ |
| 16802 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT3 | FEATURE_OTP | |
| 16803 | FEATURE_4BA_ENTER | FEATURE_4BA_NATIVE, |
| 16804 | .tested = TEST_UNTESTED, |
| 16805 | .probe = probe_spi_rdid, |
| 16806 | .probe_timing = TIMING_ZERO, |
| 16807 | .block_erasers = |
| 16808 | { |
| 16809 | { |
| 16810 | .eraseblocks = { {4 * 1024, 8192} }, |
| 16811 | .block_erase = spi_block_erase_21, |
| 16812 | }, { |
| 16813 | .eraseblocks = { {4 * 1024, 8192} }, |
| 16814 | .block_erase = spi_block_erase_20, |
| 16815 | }, { |
| 16816 | .eraseblocks = { {32 * 1024, 1024} }, |
| 16817 | .block_erase = spi_block_erase_53, |
| 16818 | }, { |
| 16819 | .eraseblocks = { {32 * 1024, 1024} }, |
| 16820 | .block_erase = spi_block_erase_52, |
| 16821 | }, { |
| 16822 | .eraseblocks = { {64 * 1024, 512} }, |
| 16823 | .block_erase = spi_block_erase_dc, |
| 16824 | }, { |
| 16825 | .eraseblocks = { {64 * 1024, 512} }, |
| 16826 | .block_erase = spi_block_erase_d8, |
| 16827 | }, { |
| 16828 | .eraseblocks = { {32768 * 1024, 1} }, |
| 16829 | .block_erase = spi_block_erase_60, |
| 16830 | }, { |
| 16831 | .eraseblocks = { {32768 * 1024, 1} }, |
| 16832 | .block_erase = spi_block_erase_c7, |
| 16833 | } |
| 16834 | }, |
| 16835 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 16836 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 16837 | .write = spi_chip_write_256, |
| 16838 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 16839 | .voltage = {2700, 3600}, |
| 16840 | .reg_bits = |
| 16841 | { |
| 16842 | /* |
| 16843 | * Note: This chip has a read-only Status Register 2 that is not |
| 16844 | * counted here. Registers are mapped as follows: |
| 16845 | * STATUS1 ... Status Register 1 |
| 16846 | * STATUS2 ... Configuration Register 1 |
| 16847 | * STATUS3 ... Configuration Register 2 |
| 16848 | */ |
| 16849 | .srp = {STATUS1, 7, RW}, |
| 16850 | .srl = {STATUS2, 0, RW}, |
| 16851 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}}, |
| 16852 | .tb = {STATUS1, 6, RW}, |
| 16853 | .cmp = {STATUS2, 6, RW}, |
| 16854 | .wps = {STATUS3, 2, RW}, |
| 16855 | }, |
| 16856 | .decode_range = decode_range_spi25, |
| 16857 | }, |
| 16858 | |
| 16859 | { |
| 16860 | .vendor = "Spansion", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16861 | .name = "S25FL256S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 16862 | .bustype = BUS_SPI, |
| 16863 | .manufacture_id = SPANSION_ID, |
| 16864 | .model_id = SPANSION_S25FL256, |
| 16865 | .total_size = 32768, |
| 16866 | .page_size = 256, |
| 16867 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
Nico Huber | 9bb8a32 | 2022-05-24 15:07:34 +0200 | [diff] [blame] | 16868 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 16869 | FEATURE_4BA_NATIVE | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16870 | .tested = TEST_OK_PREW, |
| 16871 | .probe = probe_spi_rdid, |
| 16872 | .probe_timing = TIMING_ZERO, |
| 16873 | .block_erasers = |
| 16874 | { |
| 16875 | { |
| 16876 | /* This chip supports erasing of the 32 so-called "parameter sectors" with |
| 16877 | * opcode 0x20. Trying to access an address outside these 4kB blocks does |
| 16878 | * have no effect on the memory contents, but sets a flag in the SR. |
| 16879 | .eraseblocks = { |
| 16880 | {4 * 1024, 32}, |
| 16881 | {64 * 1024, 254} // inaccessible |
| 16882 | }, |
| 16883 | .block_erase = spi_block_erase_20, |
| 16884 | }, { */ |
| 16885 | .eraseblocks = { { 64 * 1024, 512} }, |
| 16886 | .block_erase = spi_block_erase_dc, |
| 16887 | }, { |
| 16888 | .eraseblocks = { { 64 * 1024, 512} }, |
| 16889 | .block_erase = spi_block_erase_d8, |
| 16890 | }, { |
| 16891 | .eraseblocks = { { 32768 * 1024, 1} }, |
| 16892 | .block_erase = spi_block_erase_60, |
| 16893 | }, { |
| 16894 | .eraseblocks = { { 32768 * 1024, 1} }, |
| 16895 | .block_erase = spi_block_erase_c7, |
| 16896 | } |
| 16897 | }, |
| 16898 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 16899 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 16900 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 16901 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 16902 | .voltage = {2700, 3600}, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16903 | }, |
| 16904 | |
| 16905 | { |
Bernhard Urban-Forster | 05c629b | 2020-02-02 21:29:48 +0100 | [diff] [blame] | 16906 | .vendor = "Spansion", |
| 16907 | .name = "S25FL512S", |
| 16908 | .bustype = BUS_SPI, |
| 16909 | .manufacture_id = SPANSION_ID, |
| 16910 | .model_id = SPANSION_S25FL512, |
| 16911 | .total_size = 65536, /* 512 Mb (=> 64 MB)) */ |
| 16912 | .page_size = 256, |
| 16913 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
Nico Huber | 2623792 | 2022-06-20 19:37:37 +0200 | [diff] [blame] | 16914 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 16915 | FEATURE_4BA_NATIVE | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716, |
| 16916 | .tested = TEST_UNTESTED, |
Bernhard Urban-Forster | 05c629b | 2020-02-02 21:29:48 +0100 | [diff] [blame] | 16917 | .probe = probe_spi_rdid, |
| 16918 | .probe_timing = TIMING_ZERO, |
| 16919 | .block_erasers = |
| 16920 | { |
| 16921 | { |
| 16922 | .eraseblocks = { { 256 * 1024, 256} }, |
| 16923 | .block_erase = spi_block_erase_dc, |
| 16924 | }, { |
Nico Huber | bb608ff | 2022-05-24 15:33:26 +0200 | [diff] [blame] | 16925 | .eraseblocks = { { 256 * 1024, 256} }, |
| 16926 | .block_erase = spi_block_erase_d8, |
| 16927 | }, { |
Bernhard Urban-Forster | 05c629b | 2020-02-02 21:29:48 +0100 | [diff] [blame] | 16928 | .eraseblocks = { { 65536 * 1024, 1} }, |
| 16929 | .block_erase = spi_block_erase_60, |
| 16930 | }, { |
| 16931 | .eraseblocks = { { 65536 * 1024, 1} }, |
| 16932 | .block_erase = spi_block_erase_c7, |
| 16933 | } |
| 16934 | }, |
| 16935 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 16936 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 16937 | .write = spi_chip_write_256, /* Multi I/O supported, IGNORE for now */ |
| 16938 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 16939 | .voltage = {2700, 3600}, |
| 16940 | }, |
| 16941 | |
| 16942 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16943 | .vendor = "SyncMOS/MoselVitelic", |
| 16944 | .name = "{F,S,V}29C51001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16945 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16946 | .manufacture_id = SYNCMOS_MVC_ID, |
| 16947 | .model_id = SM_MVC_29C51001B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16948 | .total_size = 128, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16949 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16950 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16951 | .tested = TEST_UNTESTED, |
| 16952 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 16953 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16954 | .block_erasers = |
| 16955 | { |
| 16956 | { |
| 16957 | .eraseblocks = { {512, 256} }, |
| 16958 | .block_erase = erase_sector_jedec, |
| 16959 | }, { |
| 16960 | .eraseblocks = { {128 * 1024, 1} }, |
| 16961 | .block_erase = erase_chip_block_jedec, |
| 16962 | }, |
| 16963 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16964 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16965 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16966 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16967 | }, |
| 16968 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16969 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16970 | .vendor = "SyncMOS/MoselVitelic", |
| 16971 | .name = "{F,S,V}29C51001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16972 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16973 | .manufacture_id = SYNCMOS_MVC_ID, |
| 16974 | .model_id = SM_MVC_29C51001T, |
| 16975 | .total_size = 128, |
| 16976 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16977 | .feature_bits = FEATURE_EITHER_RESET, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16978 | .tested = TEST_UNTESTED, |
| 16979 | .probe = probe_jedec, |
| 16980 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 16981 | .block_erasers = |
| 16982 | { |
| 16983 | { |
| 16984 | .eraseblocks = { {512, 256} }, |
| 16985 | .block_erase = erase_sector_jedec, |
| 16986 | }, { |
| 16987 | .eraseblocks = { {128 * 1024, 1} }, |
| 16988 | .block_erase = erase_chip_block_jedec, |
| 16989 | }, |
| 16990 | }, |
| 16991 | .write = write_jedec_1, |
| 16992 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16993 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 16994 | }, |
| 16995 | |
| 16996 | { |
| 16997 | .vendor = "SyncMOS/MoselVitelic", |
| 16998 | .name = "{F,S,V}29C51002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16999 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17000 | .manufacture_id = SYNCMOS_MVC_ID, |
| 17001 | .model_id = SM_MVC_29C51002B, |
| 17002 | .total_size = 256, |
| 17003 | .page_size = 512, |
| 17004 | .feature_bits = FEATURE_EITHER_RESET, |
| 17005 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17006 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 17007 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 17008 | .block_erasers = |
| 17009 | { |
| 17010 | { |
| 17011 | .eraseblocks = { {512, 512} }, |
| 17012 | .block_erase = erase_sector_jedec, |
| 17013 | }, { |
| 17014 | .eraseblocks = { {256 * 1024, 1} }, |
| 17015 | .block_erase = erase_chip_block_jedec, |
| 17016 | }, |
| 17017 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17018 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17019 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17020 | }, |
| 17021 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17022 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17023 | .vendor = "SyncMOS/MoselVitelic", |
| 17024 | .name = "{F,S,V}29C51002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17025 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17026 | .manufacture_id = SYNCMOS_MVC_ID, |
| 17027 | .model_id = SM_MVC_29C51002T, |
| 17028 | .total_size = 256, |
| 17029 | .page_size = 512, |
| 17030 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 17031 | .tested = TEST_OK_PREW, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17032 | .probe = probe_jedec, |
| 17033 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 17034 | .block_erasers = |
| 17035 | { |
| 17036 | { |
| 17037 | .eraseblocks = { {512, 512} }, |
| 17038 | .block_erase = erase_sector_jedec, |
| 17039 | }, { |
| 17040 | .eraseblocks = { {256 * 1024, 1} }, |
| 17041 | .block_erase = erase_chip_block_jedec, |
| 17042 | }, |
| 17043 | }, |
| 17044 | .write = write_jedec_1, |
| 17045 | .read = read_memmapped, |
| 17046 | }, |
| 17047 | |
| 17048 | { |
| 17049 | .vendor = "SyncMOS/MoselVitelic", |
| 17050 | .name = "{F,S,V}29C51004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17051 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17052 | .manufacture_id = SYNCMOS_MVC_ID, |
| 17053 | .model_id = SM_MVC_29C51004B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17054 | .total_size = 512, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17055 | .page_size = 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17056 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17057 | .tested = TEST_UNTESTED, |
| 17058 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 17059 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 17060 | .block_erasers = |
| 17061 | { |
| 17062 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17063 | .eraseblocks = { {1024, 512} }, |
| 17064 | .block_erase = erase_sector_jedec, |
| 17065 | }, { |
| 17066 | .eraseblocks = { {512 * 1024, 1} }, |
| 17067 | .block_erase = erase_chip_block_jedec, |
| 17068 | }, |
| 17069 | }, |
| 17070 | .write = write_jedec_1, |
| 17071 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17072 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17073 | }, |
| 17074 | |
| 17075 | { |
| 17076 | .vendor = "SyncMOS/MoselVitelic", |
| 17077 | .name = "{F,S,V}29C51004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17078 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17079 | .manufacture_id = SYNCMOS_MVC_ID, |
| 17080 | .model_id = SM_MVC_29C51004T, |
| 17081 | .total_size = 512, |
| 17082 | .page_size = 1024, |
| 17083 | .feature_bits = FEATURE_EITHER_RESET, |
| 17084 | .tested = TEST_UNTESTED, |
| 17085 | .probe = probe_jedec, |
| 17086 | .probe_timing = TIMING_ZERO, |
| 17087 | .block_erasers = |
| 17088 | { |
| 17089 | { |
| 17090 | .eraseblocks = { {1024, 512} }, |
| 17091 | .block_erase = erase_sector_jedec, |
| 17092 | }, { |
| 17093 | .eraseblocks = { {512 * 1024, 1} }, |
| 17094 | .block_erase = erase_chip_block_jedec, |
| 17095 | }, |
| 17096 | }, |
| 17097 | .write = write_jedec_1, |
| 17098 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17099 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17100 | }, |
| 17101 | |
| 17102 | { |
| 17103 | .vendor = "SyncMOS/MoselVitelic", |
| 17104 | .name = "{S,V}29C31004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17105 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17106 | .manufacture_id = SYNCMOS_MVC_ID, |
| 17107 | .model_id = SM_MVC_29C31004B, |
| 17108 | .total_size = 512, |
| 17109 | .page_size = 1024, |
| 17110 | .feature_bits = FEATURE_EITHER_RESET, |
| 17111 | .tested = TEST_UNTESTED, |
| 17112 | .probe = probe_jedec, |
| 17113 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 17114 | .block_erasers = |
| 17115 | { |
| 17116 | { |
| 17117 | .eraseblocks = { {1024, 512} }, |
| 17118 | .block_erase = erase_sector_jedec, |
| 17119 | }, { |
| 17120 | .eraseblocks = { {512 * 1024, 1} }, |
| 17121 | .block_erase = erase_chip_block_jedec, |
| 17122 | }, |
| 17123 | }, |
| 17124 | .write = write_jedec_1, |
| 17125 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17126 | .voltage = {3000, 3600}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17127 | }, |
| 17128 | |
| 17129 | { |
| 17130 | .vendor = "SyncMOS/MoselVitelic", |
| 17131 | .name = "{S,V}29C31004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17132 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17133 | .manufacture_id = SYNCMOS_MVC_ID, |
| 17134 | .model_id = SM_MVC_29C31004T, |
| 17135 | .total_size = 512, |
| 17136 | .page_size = 1024, |
| 17137 | .feature_bits = FEATURE_EITHER_RESET, |
| 17138 | .tested = TEST_UNTESTED, |
| 17139 | .probe = probe_jedec, |
| 17140 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 17141 | .block_erasers = |
| 17142 | { |
| 17143 | { |
| 17144 | .eraseblocks = { {1024, 512} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 17145 | .block_erase = erase_sector_jedec, |
| 17146 | }, { |
| 17147 | .eraseblocks = { {512 * 1024, 1} }, |
| 17148 | .block_erase = erase_chip_block_jedec, |
| 17149 | }, |
| 17150 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17151 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17152 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17153 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17154 | }, |
| 17155 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17156 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 17157 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 17158 | .name = "TMS29F002RB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17159 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 17160 | .manufacture_id = TI_OLD_ID, |
| 17161 | .model_id = TI_TMS29F002RB, |
| 17162 | .total_size = 256, |
| 17163 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17164 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 17165 | .tested = TEST_UNTESTED, |
| 17166 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 17167 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 17168 | .block_erasers = |
| 17169 | { |
| 17170 | { |
| 17171 | .eraseblocks = { |
| 17172 | {16 * 1024, 1}, |
| 17173 | {8 * 1024, 2}, |
| 17174 | {32 * 1024, 1}, |
| 17175 | {64 * 1024, 3}, |
| 17176 | }, |
| 17177 | .block_erase = erase_sector_jedec, |
| 17178 | }, { |
| 17179 | .eraseblocks = { {256 * 1024, 1} }, |
| 17180 | .block_erase = erase_chip_block_jedec, |
| 17181 | }, |
| 17182 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17183 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 17184 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17185 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 17186 | }, |
| 17187 | |
| 17188 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 17189 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 17190 | .name = "TMS29F002RT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17191 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 17192 | .manufacture_id = TI_OLD_ID, |
| 17193 | .model_id = TI_TMS29F002RT, |
| 17194 | .total_size = 256, |
| 17195 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17196 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 17197 | .tested = TEST_UNTESTED, |
| 17198 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 17199 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 17200 | .block_erasers = |
| 17201 | { |
| 17202 | { |
| 17203 | .eraseblocks = { |
| 17204 | {64 * 1024, 3}, |
| 17205 | {32 * 1024, 1}, |
| 17206 | {8 * 1024, 2}, |
| 17207 | {16 * 1024, 1}, |
| 17208 | }, |
| 17209 | .block_erase = erase_sector_jedec, |
| 17210 | }, { |
| 17211 | .eraseblocks = { {256 * 1024, 1} }, |
| 17212 | .block_erase = erase_chip_block_jedec, |
| 17213 | }, |
| 17214 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17215 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 17216 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17217 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 17218 | }, |
| 17219 | |
| 17220 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17221 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17222 | .name = "W25P16", |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 17223 | .bustype = BUS_SPI, |
| 17224 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17225 | .model_id = WINBOND_NEX_W25P16, |
| 17226 | .total_size = 2048, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 17227 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17228 | .feature_bits = FEATURE_WRSR_WREN, |
| 17229 | .tested = TEST_UNTESTED, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 17230 | .probe = probe_spi_rdid, |
| 17231 | .probe_timing = TIMING_ZERO, |
| 17232 | .block_erasers = |
| 17233 | { |
| 17234 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17235 | .eraseblocks = { {64 * 1024, 32} }, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 17236 | .block_erase = spi_block_erase_d8, |
| 17237 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17238 | .eraseblocks = { {2048 * 1024, 1} }, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 17239 | .block_erase = spi_block_erase_c7, |
| 17240 | } |
| 17241 | }, |
| 17242 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17243 | .unlock = spi_disable_blockprotect, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17244 | .write = spi_chip_write_256, |
| 17245 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 17246 | .voltage = {2700, 3600}, |
| 17247 | }, |
| 17248 | |
| 17249 | { |
| 17250 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17251 | .name = "W25P32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17252 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 17253 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17254 | .model_id = WINBOND_NEX_W25P32, |
| 17255 | .total_size = 4096, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 17256 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17257 | .feature_bits = FEATURE_WRSR_WREN, |
| 17258 | .tested = TEST_UNTESTED, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 17259 | .probe = probe_spi_rdid, |
| 17260 | .probe_timing = TIMING_ZERO, |
| 17261 | .block_erasers = |
| 17262 | { |
| 17263 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17264 | .eraseblocks = { {64 * 1024, 64} }, |
| 17265 | .block_erase = spi_block_erase_d8, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 17266 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17267 | .eraseblocks = { {4096 * 1024, 1} }, |
| 17268 | .block_erase = spi_block_erase_c7, |
| 17269 | } |
| 17270 | }, |
| 17271 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17272 | .unlock = spi_disable_blockprotect, |
| 17273 | .write = spi_chip_write_256, |
| 17274 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 17275 | .voltage = {2700, 3600}, |
| 17276 | }, |
| 17277 | |
| 17278 | { |
| 17279 | .vendor = "Winbond", |
| 17280 | .name = "W25P80", |
| 17281 | .bustype = BUS_SPI, |
| 17282 | .manufacture_id = WINBOND_NEX_ID, |
| 17283 | .model_id = WINBOND_NEX_W25P80, |
| 17284 | .total_size = 1024, |
| 17285 | .page_size = 256, |
| 17286 | .feature_bits = FEATURE_WRSR_WREN, |
| 17287 | .tested = TEST_UNTESTED, |
| 17288 | .probe = probe_spi_rdid, |
| 17289 | .probe_timing = TIMING_ZERO, |
| 17290 | .block_erasers = |
| 17291 | { |
| 17292 | { |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 17293 | .eraseblocks = { {64 * 1024, 16} }, |
| 17294 | .block_erase = spi_block_erase_d8, |
| 17295 | }, { |
| 17296 | .eraseblocks = { {1024 * 1024, 1} }, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 17297 | .block_erase = spi_block_erase_c7, |
| 17298 | } |
| 17299 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 17300 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 17301 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 17302 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17303 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17304 | .voltage = {2700, 3600}, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 17305 | }, |
| 17306 | |
| 17307 | { |
| 17308 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17309 | .name = "W25Q128.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17310 | .bustype = BUS_SPI, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 17311 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17312 | .model_id = WINBOND_NEX_W25Q128_V, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 17313 | .total_size = 16384, |
| 17314 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17315 | /* supports SFDP */ |
| 17316 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 3f3c1f3 | 2022-05-28 16:48:26 +0200 | [diff] [blame] | 17317 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 17318 | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3, |
Edward O'Callaghan | a97e353 | 2022-12-16 15:41:05 +1100 | [diff] [blame] | 17319 | .tested = TEST_OK_PREWB, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 17320 | .probe = probe_spi_rdid, |
| 17321 | .probe_timing = TIMING_ZERO, |
| 17322 | .block_erasers = |
| 17323 | { |
| 17324 | { |
| 17325 | .eraseblocks = { {4 * 1024, 4096} }, |
| 17326 | .block_erase = spi_block_erase_20, |
| 17327 | }, { |
| 17328 | .eraseblocks = { {32 * 1024, 512} }, |
| 17329 | .block_erase = spi_block_erase_52, |
| 17330 | }, { |
| 17331 | .eraseblocks = { {64 * 1024, 256} }, |
| 17332 | .block_erase = spi_block_erase_d8, |
| 17333 | }, { |
| 17334 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 17335 | .block_erase = spi_block_erase_60, |
| 17336 | }, { |
| 17337 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 17338 | .block_erase = spi_block_erase_c7, |
| 17339 | } |
| 17340 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 17341 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 17342 | .unlock = spi_disable_blockprotect, |
| 17343 | .write = spi_chip_write_256, |
| 17344 | .read = spi_chip_read, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17345 | .voltage = {2700, 3600}, |
Sergii Dmytruk | d1af307 | 2021-11-08 00:00:43 +0200 | [diff] [blame] | 17346 | /* FIXME: Older versions (e.g. 25Q128BV) use WRSR_EXT and have no WPS. */ |
| 17347 | .reg_bits = |
| 17348 | { |
| 17349 | .srp = {STATUS1, 7, RW}, |
| 17350 | .srl = {STATUS2, 0, RW}, |
| 17351 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 17352 | .tb = {STATUS1, 5, RW}, |
| 17353 | .sec = {STATUS1, 6, RW}, |
| 17354 | .cmp = {STATUS2, 6, RW}, |
| 17355 | .wps = {STATUS3, 2, RW}, |
| 17356 | }, |
| 17357 | .decode_range = decode_range_spi25, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17358 | }, |
| 17359 | |
| 17360 | { |
| 17361 | .vendor = "Winbond", |
Patrick Rudolph | 3432349 | 2018-10-04 14:59:40 +0200 | [diff] [blame] | 17362 | .name = "W25Q128.V..M", |
| 17363 | .bustype = BUS_SPI, |
| 17364 | .manufacture_id = WINBOND_NEX_ID, |
| 17365 | .model_id = WINBOND_NEX_W25Q128_V_M, |
| 17366 | .total_size = 16384, |
| 17367 | .page_size = 256, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 17368 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2, |
Sergii Dmytruk | c74eac2 | 2022-10-06 18:17:58 +0300 | [diff] [blame] | 17369 | .tested = TEST_OK_PREWB, |
Patrick Rudolph | 3432349 | 2018-10-04 14:59:40 +0200 | [diff] [blame] | 17370 | .probe = probe_spi_rdid, |
| 17371 | .probe_timing = TIMING_ZERO, |
| 17372 | .block_erasers = |
| 17373 | { |
| 17374 | { |
| 17375 | .eraseblocks = { {4 * 1024, 4096} }, |
| 17376 | .block_erase = spi_block_erase_20, |
| 17377 | }, { |
| 17378 | .eraseblocks = { {32 * 1024, 512} }, |
| 17379 | .block_erase = spi_block_erase_52, |
| 17380 | }, { |
| 17381 | .eraseblocks = { {64 * 1024, 256} }, |
| 17382 | .block_erase = spi_block_erase_d8, |
| 17383 | }, { |
| 17384 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 17385 | .block_erase = spi_block_erase_60, |
| 17386 | }, { |
| 17387 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 17388 | .block_erase = spi_block_erase_c7, |
| 17389 | } |
| 17390 | }, |
Alan Green | a1fc01d | 2019-09-23 17:12:44 +1000 | [diff] [blame] | 17391 | .printlock = spi_prettyprint_status_register_plain, |
Patrick Rudolph | 3432349 | 2018-10-04 14:59:40 +0200 | [diff] [blame] | 17392 | .unlock = spi_disable_blockprotect, |
| 17393 | .write = spi_chip_write_256, |
| 17394 | .read = spi_chip_read, |
| 17395 | .voltage = {2700, 3600}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 17396 | .reg_bits = |
| 17397 | { |
| 17398 | .srp = {STATUS1, 7, RW}, |
| 17399 | .srl = {STATUS2, 0, RW}, |
| 17400 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 17401 | .tb = {STATUS1, 5, RW}, |
| 17402 | .sec = {STATUS1, 6, RW}, |
| 17403 | .cmp = {STATUS2, 6, RW}, |
| 17404 | }, |
| 17405 | .decode_range = decode_range_spi25, |
Patrick Rudolph | 3432349 | 2018-10-04 14:59:40 +0200 | [diff] [blame] | 17406 | }, |
| 17407 | |
| 17408 | { |
| 17409 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17410 | .name = "W25Q128.W", |
| 17411 | .bustype = BUS_SPI, |
| 17412 | .manufacture_id = WINBOND_NEX_ID, |
| 17413 | .model_id = WINBOND_NEX_W25Q128_W, |
| 17414 | .total_size = 16384, |
| 17415 | .page_size = 256, |
| 17416 | /* supports SFDP */ |
| 17417 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 17418 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17419 | .tested = TEST_OK_PREW, |
| 17420 | .probe = probe_spi_rdid, |
| 17421 | .probe_timing = TIMING_ZERO, |
| 17422 | .block_erasers = |
| 17423 | { |
| 17424 | { |
| 17425 | .eraseblocks = { {4 * 1024, 4096} }, |
| 17426 | .block_erase = spi_block_erase_20, |
| 17427 | }, { |
| 17428 | .eraseblocks = { {32 * 1024, 512} }, |
| 17429 | .block_erase = spi_block_erase_52, |
| 17430 | }, { |
| 17431 | .eraseblocks = { {64 * 1024, 256} }, |
| 17432 | .block_erase = spi_block_erase_d8, |
| 17433 | }, { |
| 17434 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 17435 | .block_erase = spi_block_erase_60, |
| 17436 | }, { |
| 17437 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 17438 | .block_erase = spi_block_erase_c7, |
| 17439 | } |
| 17440 | }, |
| 17441 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17442 | .unlock = spi_disable_blockprotect, |
| 17443 | .write = spi_chip_write_256, |
| 17444 | .read = spi_chip_read, |
| 17445 | .voltage = {1650, 1950}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 17446 | .reg_bits = |
| 17447 | { |
| 17448 | .srp = {STATUS1, 7, RW}, |
| 17449 | .srl = {STATUS2, 0, RW}, |
| 17450 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 17451 | .tb = {STATUS1, 5, RW}, |
| 17452 | .sec = {STATUS1, 6, RW}, |
| 17453 | .cmp = {STATUS2, 6, RW}, |
| 17454 | }, |
| 17455 | .decode_range = decode_range_spi25, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17456 | }, |
| 17457 | |
| 17458 | { |
| 17459 | .vendor = "Winbond", |
Peichao Wang | 1a11949 | 2019-11-11 15:26:41 +0800 | [diff] [blame] | 17460 | .name = "W25Q128.JW.DTR", |
| 17461 | .bustype = BUS_SPI, |
| 17462 | .manufacture_id = WINBOND_NEX_ID, |
| 17463 | .model_id = WINBOND_NEX_W25Q128_DTR, |
| 17464 | .total_size = 16384, |
| 17465 | .page_size = 256, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 17466 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2, |
Peichao Wang | 1a11949 | 2019-11-11 15:26:41 +0800 | [diff] [blame] | 17467 | .tested = TEST_OK_PREW, |
| 17468 | .probe = probe_spi_rdid, |
| 17469 | .probe_timing = TIMING_ZERO, |
| 17470 | .block_erasers = |
| 17471 | { |
| 17472 | { |
| 17473 | .eraseblocks = { {4 * 1024, 4096} }, |
| 17474 | .block_erase = spi_block_erase_20, |
| 17475 | }, { |
| 17476 | .eraseblocks = { {32 * 1024, 512} }, |
| 17477 | .block_erase = spi_block_erase_52, |
| 17478 | }, { |
| 17479 | .eraseblocks = { {64 * 1024, 256} }, |
| 17480 | .block_erase = spi_block_erase_d8, |
| 17481 | }, { |
| 17482 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 17483 | .block_erase = spi_block_erase_60, |
| 17484 | }, { |
| 17485 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 17486 | .block_erase = spi_block_erase_c7, |
| 17487 | } |
| 17488 | }, |
| 17489 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17490 | .unlock = spi_disable_blockprotect, |
| 17491 | .write = spi_chip_write_256, |
| 17492 | .read = spi_chip_read, |
| 17493 | .voltage = {1650, 1950}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 17494 | .reg_bits = |
| 17495 | { |
| 17496 | .srp = {STATUS1, 7, RW}, |
| 17497 | .srl = {STATUS2, 0, RW}, |
| 17498 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 17499 | .tb = {STATUS1, 5, RW}, |
| 17500 | .sec = {STATUS1, 6, RW}, |
| 17501 | .cmp = {STATUS2, 6, RW}, |
| 17502 | }, |
| 17503 | .decode_range = decode_range_spi25, |
Peichao Wang | 1a11949 | 2019-11-11 15:26:41 +0800 | [diff] [blame] | 17504 | }, |
| 17505 | |
| 17506 | { |
| 17507 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17508 | .name = "W25Q16.V", |
| 17509 | .bustype = BUS_SPI, |
| 17510 | .manufacture_id = WINBOND_NEX_ID, |
| 17511 | .model_id = WINBOND_NEX_W25Q16_V, |
| 17512 | .total_size = 2048, |
| 17513 | .page_size = 256, |
| 17514 | /* supports SFDP */ |
| 17515 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 17516 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 17517 | .tested = TEST_OK_PREW, |
| 17518 | .probe = probe_spi_rdid, |
| 17519 | .probe_timing = TIMING_ZERO, |
| 17520 | .block_erasers = |
| 17521 | { |
| 17522 | { |
| 17523 | .eraseblocks = { {4 * 1024, 512} }, |
| 17524 | .block_erase = spi_block_erase_20, |
| 17525 | }, { |
| 17526 | .eraseblocks = { {32 * 1024, 64} }, |
| 17527 | .block_erase = spi_block_erase_52, |
| 17528 | }, { |
| 17529 | .eraseblocks = { {64 * 1024, 32} }, |
| 17530 | .block_erase = spi_block_erase_d8, |
| 17531 | }, { |
| 17532 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 17533 | .block_erase = spi_block_erase_60, |
| 17534 | }, { |
| 17535 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 17536 | .block_erase = spi_block_erase_c7, |
| 17537 | } |
| 17538 | }, |
| 17539 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17540 | .unlock = spi_disable_blockprotect, |
| 17541 | .write = spi_chip_write_256, |
| 17542 | .read = spi_chip_read, |
| 17543 | .voltage = {2700, 3600}, |
| 17544 | }, |
| 17545 | |
| 17546 | { |
| 17547 | .vendor = "Winbond", |
| 17548 | .name = "W25Q16.W", |
| 17549 | .bustype = BUS_SPI, |
| 17550 | .manufacture_id = WINBOND_NEX_ID, |
| 17551 | .model_id = WINBOND_NEX_W25Q16_W, |
| 17552 | .total_size = 2048, |
| 17553 | .page_size = 256, |
| 17554 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 17555 | /* QPI enable 0x38, disable 0xFF */ |
| 17556 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 17557 | .tested = TEST_UNTESTED, |
| 17558 | .probe = probe_spi_rdid, |
| 17559 | .probe_timing = TIMING_ZERO, |
| 17560 | .block_erasers = |
| 17561 | { |
| 17562 | { |
| 17563 | .eraseblocks = { {4 * 1024, 512} }, |
| 17564 | .block_erase = spi_block_erase_20, |
| 17565 | }, { |
| 17566 | .eraseblocks = { {32 * 1024, 64} }, |
| 17567 | .block_erase = spi_block_erase_52, |
| 17568 | }, { |
| 17569 | .eraseblocks = { {64 * 1024, 32} }, |
| 17570 | .block_erase = spi_block_erase_d8, |
| 17571 | }, { |
| 17572 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 17573 | .block_erase = spi_block_erase_60, |
| 17574 | }, { |
| 17575 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 17576 | .block_erase = spi_block_erase_c7, |
| 17577 | } |
| 17578 | }, |
| 17579 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17580 | .unlock = spi_disable_blockprotect, |
| 17581 | .write = spi_chip_write_256, |
| 17582 | .read = spi_chip_read, |
| 17583 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 17584 | }, |
| 17585 | |
| 17586 | { |
| 17587 | .vendor = "Winbond", |
| 17588 | .name = "W25Q20.W", |
| 17589 | .bustype = BUS_SPI, |
| 17590 | .manufacture_id = WINBOND_NEX_ID, |
| 17591 | .model_id = WINBOND_NEX_W25Q20_W, |
| 17592 | .total_size = 256, |
| 17593 | .page_size = 256, |
| 17594 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 17595 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 17596 | .tested = TEST_UNTESTED, |
| 17597 | .probe = probe_spi_rdid, |
| 17598 | .probe_timing = TIMING_ZERO, |
| 17599 | .block_erasers = |
| 17600 | { |
| 17601 | { |
| 17602 | .eraseblocks = { {4 * 1024, 64} }, |
| 17603 | .block_erase = spi_block_erase_20, |
| 17604 | }, { |
| 17605 | .eraseblocks = { {32 * 1024, 8} }, |
| 17606 | .block_erase = spi_block_erase_52, |
| 17607 | }, { |
| 17608 | .eraseblocks = { {64 * 1024, 4} }, |
| 17609 | .block_erase = spi_block_erase_d8, |
| 17610 | }, { |
| 17611 | .eraseblocks = { {256 * 1024, 1} }, |
| 17612 | .block_erase = spi_block_erase_60, |
| 17613 | }, { |
| 17614 | .eraseblocks = { {256 * 1024, 1} }, |
| 17615 | .block_erase = spi_block_erase_c7, |
| 17616 | } |
| 17617 | }, |
| 17618 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17619 | .unlock = spi_disable_blockprotect, |
| 17620 | .write = spi_chip_write_256, |
| 17621 | .read = spi_chip_read, |
| 17622 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 17623 | }, |
| 17624 | |
| 17625 | { |
| 17626 | .vendor = "Winbond", |
Nico Huber | 5215eab | 2022-05-23 15:13:07 +0200 | [diff] [blame] | 17627 | .name = "W25Q256FV", |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 17628 | .bustype = BUS_SPI, |
| 17629 | .manufacture_id = WINBOND_NEX_ID, |
| 17630 | .model_id = WINBOND_NEX_W25Q256_V, |
| 17631 | .total_size = 32768, |
| 17632 | .page_size = 256, |
| 17633 | /* supports SFDP */ |
| 17634 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 17635 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN | |
Nico Huber | 542b1f0 | 2022-05-24 14:30:12 +0200 | [diff] [blame] | 17636 | FEATURE_4BA_EAR_C5C8 | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ | |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 17637 | FEATURE_WRSR2, |
Angel Pons | 3130cbd | 2018-09-30 19:32:30 +0200 | [diff] [blame] | 17638 | .tested = TEST_OK_PREW, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 17639 | .probe = probe_spi_rdid, |
| 17640 | .probe_timing = TIMING_ZERO, |
| 17641 | .block_erasers = |
| 17642 | { |
| 17643 | { |
| 17644 | .eraseblocks = { {4 * 1024, 8192} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 17645 | .block_erase = spi_block_erase_20, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 17646 | }, { |
| 17647 | .eraseblocks = { {32 * 1024, 1024} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 17648 | .block_erase = spi_block_erase_52, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 17649 | }, { |
| 17650 | .eraseblocks = { {64 * 1024, 512} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 17651 | .block_erase = spi_block_erase_d8, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 17652 | }, { |
| 17653 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 17654 | .block_erase = spi_block_erase_60, |
| 17655 | }, { |
| 17656 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 17657 | .block_erase = spi_block_erase_c7, |
| 17658 | } |
| 17659 | }, |
| 17660 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17661 | .unlock = spi_disable_blockprotect, |
| 17662 | .write = spi_chip_write_256, |
| 17663 | .read = spi_chip_read, |
| 17664 | .voltage = {2700, 3600}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 17665 | .reg_bits = |
| 17666 | { |
| 17667 | .srp = {STATUS1, 7, RW}, |
| 17668 | .srl = {STATUS2, 0, RW}, |
| 17669 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}}, |
| 17670 | .tb = {STATUS1, 6, RW}, |
| 17671 | .cmp = {STATUS2, 6, RW}, |
| 17672 | }, |
| 17673 | .decode_range = decode_range_spi25, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 17674 | }, |
| 17675 | |
| 17676 | { |
| 17677 | .vendor = "Winbond", |
Nico Huber | 5215eab | 2022-05-23 15:13:07 +0200 | [diff] [blame] | 17678 | .name = "W25Q256JV_Q", |
| 17679 | .bustype = BUS_SPI, |
| 17680 | .manufacture_id = WINBOND_NEX_ID, |
| 17681 | .model_id = WINBOND_NEX_W25Q256_V, |
| 17682 | .total_size = 32768, |
| 17683 | .page_size = 256, |
| 17684 | /* supports SFDP */ |
| 17685 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 17686 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2, |
Nico Huber | ddfbbe8 | 2023-12-21 16:31:27 +0100 | [diff] [blame] | 17687 | .tested = TEST_OK_PREW, |
Nico Huber | 5215eab | 2022-05-23 15:13:07 +0200 | [diff] [blame] | 17688 | .probe = probe_spi_rdid, |
| 17689 | .probe_timing = TIMING_ZERO, |
| 17690 | .block_erasers = |
| 17691 | { |
| 17692 | { |
| 17693 | .eraseblocks = { {4 * 1024, 8192} }, |
| 17694 | .block_erase = spi_block_erase_21, |
| 17695 | }, { |
| 17696 | .eraseblocks = { {4 * 1024, 8192} }, |
| 17697 | .block_erase = spi_block_erase_20, |
| 17698 | }, { |
| 17699 | .eraseblocks = { {32 * 1024, 1024} }, |
| 17700 | .block_erase = spi_block_erase_52, |
| 17701 | }, { |
| 17702 | .eraseblocks = { {64 * 1024, 512} }, |
| 17703 | .block_erase = spi_block_erase_dc, |
| 17704 | }, { |
| 17705 | .eraseblocks = { {64 * 1024, 512} }, |
| 17706 | .block_erase = spi_block_erase_d8, |
| 17707 | }, { |
| 17708 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 17709 | .block_erase = spi_block_erase_60, |
| 17710 | }, { |
| 17711 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 17712 | .block_erase = spi_block_erase_c7, |
| 17713 | } |
| 17714 | }, |
| 17715 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17716 | .unlock = spi_disable_blockprotect, |
| 17717 | .write = spi_chip_write_256, |
| 17718 | .read = spi_chip_read, |
| 17719 | .voltage = {2700, 3600}, |
| 17720 | .reg_bits = |
| 17721 | { |
| 17722 | .srp = {STATUS1, 7, RW}, |
| 17723 | .srl = {STATUS2, 0, RW}, |
| 17724 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}}, |
| 17725 | .tb = {STATUS1, 6, RW}, |
| 17726 | .cmp = {STATUS2, 6, RW}, |
| 17727 | }, |
| 17728 | .decode_range = decode_range_spi25, |
| 17729 | }, |
| 17730 | |
| 17731 | { |
| 17732 | .vendor = "Winbond", |
David Hendricks | 4987679 | 2018-10-27 20:19:42 +0000 | [diff] [blame] | 17733 | .name = "W25Q256JV_M", |
| 17734 | .bustype = BUS_SPI, |
| 17735 | .manufacture_id = WINBOND_NEX_ID, |
| 17736 | .model_id = WINBOND_NEX_W25Q256JV_M, |
| 17737 | .total_size = 32768, |
| 17738 | .page_size = 256, |
| 17739 | /* supports SFDP */ |
| 17740 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 17741 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2, |
David Hendricks | 4987679 | 2018-10-27 20:19:42 +0000 | [diff] [blame] | 17742 | .tested = TEST_OK_PREW, |
| 17743 | .probe = probe_spi_rdid, |
| 17744 | .probe_timing = TIMING_ZERO, |
| 17745 | .block_erasers = |
| 17746 | { |
| 17747 | { |
| 17748 | .eraseblocks = { {4 * 1024, 8192} }, |
| 17749 | .block_erase = spi_block_erase_21, |
| 17750 | }, { |
| 17751 | .eraseblocks = { {4 * 1024, 8192} }, |
| 17752 | .block_erase = spi_block_erase_20, |
| 17753 | }, { |
| 17754 | .eraseblocks = { {32 * 1024, 1024} }, |
| 17755 | .block_erase = spi_block_erase_52, |
| 17756 | }, { |
| 17757 | .eraseblocks = { {64 * 1024, 512} }, |
| 17758 | .block_erase = spi_block_erase_dc, |
| 17759 | }, { |
| 17760 | .eraseblocks = { {64 * 1024, 512} }, |
| 17761 | .block_erase = spi_block_erase_d8, |
| 17762 | }, { |
| 17763 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 17764 | .block_erase = spi_block_erase_60, |
| 17765 | }, { |
| 17766 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 17767 | .block_erase = spi_block_erase_c7, |
| 17768 | } |
| 17769 | }, |
| 17770 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17771 | .unlock = spi_disable_blockprotect, |
| 17772 | .write = spi_chip_write_256, |
| 17773 | .read = spi_chip_read, |
| 17774 | .voltage = {2700, 3600}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 17775 | .reg_bits = |
| 17776 | { |
| 17777 | .srp = {STATUS1, 7, RW}, |
| 17778 | .srl = {STATUS2, 0, RW}, |
| 17779 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}}, |
| 17780 | .tb = {STATUS1, 6, RW}, |
| 17781 | .cmp = {STATUS2, 6, RW}, |
| 17782 | }, |
| 17783 | .decode_range = decode_range_spi25, |
David Hendricks | 4987679 | 2018-10-27 20:19:42 +0000 | [diff] [blame] | 17784 | }, |
| 17785 | |
| 17786 | { |
| 17787 | .vendor = "Winbond", |
Patrick Rudolph | 8f5bd98 | 2020-08-26 09:15:53 +0200 | [diff] [blame] | 17788 | .name = "W25Q256JW", |
el-coderon | 0120985 | 2020-04-29 12:12:53 +0200 | [diff] [blame] | 17789 | .bustype = BUS_SPI, |
| 17790 | .manufacture_id = WINBOND_NEX_ID, |
| 17791 | .model_id = WINBOND_NEX_W25Q256_W, |
| 17792 | .total_size = 32768, |
| 17793 | .page_size = 256, |
| 17794 | /* supports SFDP */ |
| 17795 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Patrick Rudolph | 8f5bd98 | 2020-08-26 09:15:53 +0200 | [diff] [blame] | 17796 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
el-coderon | 0120985 | 2020-04-29 12:12:53 +0200 | [diff] [blame] | 17797 | .tested = TEST_OK_PREW, |
| 17798 | .probe = probe_spi_rdid, |
| 17799 | .probe_timing = TIMING_ZERO, |
| 17800 | .block_erasers = |
| 17801 | { |
| 17802 | { |
| 17803 | .eraseblocks = { {4 * 1024, 8192} }, |
Patrick Rudolph | 8f5bd98 | 2020-08-26 09:15:53 +0200 | [diff] [blame] | 17804 | .block_erase = spi_block_erase_21, |
| 17805 | }, { |
| 17806 | .eraseblocks = { {4 * 1024, 8192} }, |
el-coderon | 0120985 | 2020-04-29 12:12:53 +0200 | [diff] [blame] | 17807 | .block_erase = spi_block_erase_20, |
| 17808 | }, { |
| 17809 | .eraseblocks = { {32 * 1024, 1024} }, |
| 17810 | .block_erase = spi_block_erase_52, |
| 17811 | }, { |
| 17812 | .eraseblocks = { {64 * 1024, 512} }, |
Patrick Rudolph | 8f5bd98 | 2020-08-26 09:15:53 +0200 | [diff] [blame] | 17813 | .block_erase = spi_block_erase_dc, |
| 17814 | }, { |
| 17815 | .eraseblocks = { {64 * 1024, 512} }, |
el-coderon | 0120985 | 2020-04-29 12:12:53 +0200 | [diff] [blame] | 17816 | .block_erase = spi_block_erase_d8, |
| 17817 | }, { |
| 17818 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 17819 | .block_erase = spi_block_erase_60, |
| 17820 | }, { |
| 17821 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 17822 | .block_erase = spi_block_erase_c7, |
| 17823 | } |
| 17824 | }, |
| 17825 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17826 | .unlock = spi_disable_blockprotect, |
| 17827 | .write = spi_chip_write_256, |
| 17828 | .read = spi_chip_read, |
| 17829 | .voltage = {1650, 1950}, |
| 17830 | }, |
| 17831 | |
| 17832 | { |
| 17833 | .vendor = "Winbond", |
David Hendricks | 3153260 | 2020-08-16 17:14:56 -0700 | [diff] [blame] | 17834 | .name = "W25Q256JW_DTR", |
| 17835 | .bustype = BUS_SPI, |
| 17836 | .manufacture_id = WINBOND_NEX_ID, |
| 17837 | .model_id = WINBOND_NEX_W25Q256_DTR, |
| 17838 | .total_size = 32768, |
| 17839 | .page_size = 256, |
| 17840 | /* supports SFDP */ |
| 17841 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Kapil Porwal | 111c380 | 2022-12-09 19:41:27 +0530 | [diff] [blame] | 17842 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2 |
| 17843 | | FEATURE_WRSR3, |
| 17844 | .tested = TEST_OK_PREWB, |
David Hendricks | 3153260 | 2020-08-16 17:14:56 -0700 | [diff] [blame] | 17845 | .probe = probe_spi_rdid, |
| 17846 | .probe_timing = TIMING_ZERO, |
| 17847 | .block_erasers = |
| 17848 | { |
| 17849 | { |
| 17850 | .eraseblocks = { {4 * 1024, 8192} }, |
| 17851 | .block_erase = spi_block_erase_21, |
| 17852 | }, { |
| 17853 | .eraseblocks = { {4 * 1024, 8192} }, |
| 17854 | .block_erase = spi_block_erase_20, |
| 17855 | }, { |
| 17856 | .eraseblocks = { {32 * 1024, 1024} }, |
| 17857 | .block_erase = spi_block_erase_52, |
| 17858 | }, { |
| 17859 | .eraseblocks = { {64 * 1024, 512} }, |
| 17860 | .block_erase = spi_block_erase_dc, |
| 17861 | }, { |
| 17862 | .eraseblocks = { {64 * 1024, 512} }, |
| 17863 | .block_erase = spi_block_erase_d8, |
| 17864 | }, { |
| 17865 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 17866 | .block_erase = spi_block_erase_60, |
| 17867 | }, { |
| 17868 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 17869 | .block_erase = spi_block_erase_c7, |
| 17870 | } |
| 17871 | }, |
| 17872 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17873 | .unlock = spi_disable_blockprotect, |
| 17874 | .write = spi_chip_write_256, |
| 17875 | .read = spi_chip_read, |
| 17876 | .voltage = {1700, 1950}, |
Kapil Porwal | 111c380 | 2022-12-09 19:41:27 +0530 | [diff] [blame] | 17877 | .reg_bits = |
| 17878 | { |
| 17879 | .srp = {STATUS1, 7, RW}, |
| 17880 | .srl = {STATUS2, 0, RW}, |
| 17881 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}}, |
| 17882 | .tb = {STATUS1, 6, RW}, |
| 17883 | .cmp = {STATUS2, 6, RW}, |
| 17884 | .wps = {STATUS3, 2, RW}, |
| 17885 | }, |
| 17886 | .decode_range = decode_range_spi25, |
David Hendricks | 3153260 | 2020-08-16 17:14:56 -0700 | [diff] [blame] | 17887 | }, |
| 17888 | |
| 17889 | { |
| 17890 | .vendor = "Winbond", |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 17891 | .name = "W25Q32BV/W25Q32CV/W25Q32DV", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17892 | .bustype = BUS_SPI, |
| 17893 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17894 | .model_id = WINBOND_NEX_W25Q32_V, |
| 17895 | .total_size = 4096, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17896 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17897 | /* supports SFDP */ |
| 17898 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 17899 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR_EXT2, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17900 | .tested = TEST_OK_PREW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17901 | .probe = probe_spi_rdid, |
| 17902 | .probe_timing = TIMING_ZERO, |
| 17903 | .block_erasers = |
| 17904 | { |
| 17905 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17906 | .eraseblocks = { {4 * 1024, 1024} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17907 | .block_erase = spi_block_erase_20, |
| 17908 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17909 | .eraseblocks = { {32 * 1024, 128} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17910 | .block_erase = spi_block_erase_52, |
| 17911 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17912 | .eraseblocks = { {64 * 1024, 64} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17913 | .block_erase = spi_block_erase_d8, |
| 17914 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17915 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17916 | .block_erase = spi_block_erase_60, |
| 17917 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17918 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 17919 | .block_erase = spi_block_erase_c7, |
| 17920 | } |
| 17921 | }, |
| 17922 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17923 | .unlock = spi_disable_blockprotect, |
| 17924 | .write = spi_chip_write_256, |
| 17925 | .read = spi_chip_read, |
| 17926 | .voltage = {2700, 3600}, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 17927 | .reg_bits = |
| 17928 | { |
| 17929 | .srp = {STATUS1, 7, RW}, |
| 17930 | .srl = {STATUS2, 0, RW}, |
| 17931 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 17932 | .tb = {STATUS1, 5, RW}, |
| 17933 | .sec = {STATUS1, 6, RW}, |
| 17934 | .cmp = {STATUS2, 6, RW}, |
| 17935 | }, |
| 17936 | .decode_range = decode_range_spi25, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17937 | }, |
| 17938 | |
| 17939 | { |
| 17940 | .vendor = "Winbond", |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 17941 | .name = "W25Q32FV", |
| 17942 | .bustype = BUS_SPI, |
| 17943 | .manufacture_id = WINBOND_NEX_ID, |
| 17944 | .model_id = WINBOND_NEX_W25Q32_V, |
| 17945 | .total_size = 4096, |
| 17946 | .page_size = 256, |
| 17947 | /* supports SFDP */ |
| 17948 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 17949 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | |
| 17950 | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3, |
| 17951 | .tested = TEST_OK_PREW, |
| 17952 | .probe = probe_spi_rdid, |
| 17953 | .probe_timing = TIMING_ZERO, |
| 17954 | .block_erasers = |
| 17955 | { |
| 17956 | { |
| 17957 | .eraseblocks = { {4 * 1024, 1024} }, |
| 17958 | .block_erase = spi_block_erase_20, |
| 17959 | }, { |
| 17960 | .eraseblocks = { {32 * 1024, 128} }, |
| 17961 | .block_erase = spi_block_erase_52, |
| 17962 | }, { |
| 17963 | .eraseblocks = { {64 * 1024, 64} }, |
| 17964 | .block_erase = spi_block_erase_d8, |
| 17965 | }, { |
| 17966 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 17967 | .block_erase = spi_block_erase_60, |
| 17968 | }, { |
| 17969 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 17970 | .block_erase = spi_block_erase_c7, |
| 17971 | } |
| 17972 | }, |
| 17973 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17974 | .unlock = spi_disable_blockprotect, |
| 17975 | .write = spi_chip_write_256, |
| 17976 | .read = spi_chip_read, |
| 17977 | .voltage = {2700, 3600}, |
| 17978 | .reg_bits = |
| 17979 | { |
| 17980 | .srp = {STATUS1, 7, RW}, |
| 17981 | .srl = {STATUS2, 0, RW}, |
| 17982 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 17983 | .tb = {STATUS1, 5, RW}, |
| 17984 | .sec = {STATUS1, 6, RW}, |
| 17985 | .cmp = {STATUS2, 6, RW}, |
| 17986 | .wps = {STATUS3, 2, RW}, |
| 17987 | }, |
| 17988 | .decode_range = decode_range_spi25, |
| 17989 | }, |
| 17990 | |
| 17991 | { |
| 17992 | .vendor = "Winbond", |
| 17993 | .name = "W25Q32JV", |
| 17994 | .bustype = BUS_SPI, |
| 17995 | .manufacture_id = WINBOND_NEX_ID, |
| 17996 | .model_id = WINBOND_NEX_W25Q32_V, |
| 17997 | .total_size = 4096, |
| 17998 | .page_size = 256, |
| 17999 | /* supports SFDP */ |
| 18000 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 18001 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 18002 | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3, |
| 18003 | .tested = TEST_OK_PREW, |
| 18004 | .probe = probe_spi_rdid, |
| 18005 | .probe_timing = TIMING_ZERO, |
| 18006 | .block_erasers = |
| 18007 | { |
| 18008 | { |
| 18009 | .eraseblocks = { {4 * 1024, 1024} }, |
| 18010 | .block_erase = spi_block_erase_20, |
| 18011 | }, { |
| 18012 | .eraseblocks = { {32 * 1024, 128} }, |
| 18013 | .block_erase = spi_block_erase_52, |
| 18014 | }, { |
| 18015 | .eraseblocks = { {64 * 1024, 64} }, |
| 18016 | .block_erase = spi_block_erase_d8, |
| 18017 | }, { |
| 18018 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18019 | .block_erase = spi_block_erase_60, |
| 18020 | }, { |
| 18021 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18022 | .block_erase = spi_block_erase_c7, |
| 18023 | } |
| 18024 | }, |
| 18025 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18026 | .unlock = spi_disable_blockprotect, |
| 18027 | .write = spi_chip_write_256, |
| 18028 | .read = spi_chip_read, |
| 18029 | .voltage = {2700, 3600}, |
| 18030 | .reg_bits = |
| 18031 | { |
| 18032 | .srp = {STATUS1, 7, RW}, |
| 18033 | .srl = {STATUS2, 0, RW}, |
| 18034 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 18035 | .tb = {STATUS1, 5, RW}, |
| 18036 | .sec = {STATUS1, 6, RW}, |
| 18037 | .cmp = {STATUS2, 6, RW}, |
| 18038 | .wps = {STATUS3, 2, RW}, |
| 18039 | }, |
| 18040 | .decode_range = decode_range_spi25, |
| 18041 | }, |
| 18042 | |
| 18043 | { |
| 18044 | .vendor = "Winbond", |
| 18045 | .name = "W25Q32BW/W25Q32CW/W25Q32DW", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18046 | .bustype = BUS_SPI, |
| 18047 | .manufacture_id = WINBOND_NEX_ID, |
| 18048 | .model_id = WINBOND_NEX_W25Q32_W, |
| 18049 | .total_size = 4096, |
| 18050 | .page_size = 256, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18051 | /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18052 | /* QPI enable 0x38, disable 0xFF */ |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18053 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR_EXT2, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18054 | .tested = TEST_OK_PREW, |
| 18055 | .probe = probe_spi_rdid, |
| 18056 | .probe_timing = TIMING_ZERO, |
| 18057 | .block_erasers = |
| 18058 | { |
| 18059 | { |
| 18060 | .eraseblocks = { {4 * 1024, 1024} }, |
| 18061 | .block_erase = spi_block_erase_20, |
| 18062 | }, { |
| 18063 | .eraseblocks = { {32 * 1024, 128} }, |
| 18064 | .block_erase = spi_block_erase_52, |
| 18065 | }, { |
| 18066 | .eraseblocks = { {64 * 1024, 64} }, |
| 18067 | .block_erase = spi_block_erase_d8, |
| 18068 | }, { |
| 18069 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18070 | .block_erase = spi_block_erase_60, |
| 18071 | }, { |
| 18072 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18073 | .block_erase = spi_block_erase_c7, |
| 18074 | } |
| 18075 | }, |
| 18076 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18077 | .unlock = spi_disable_blockprotect, |
| 18078 | .write = spi_chip_write_256, |
| 18079 | .read = spi_chip_read, |
| 18080 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18081 | .reg_bits = |
| 18082 | { |
| 18083 | .srp = {STATUS1, 7, RW}, |
| 18084 | .srl = {STATUS2, 0, RW}, |
| 18085 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 18086 | .tb = {STATUS1, 5, RW}, |
| 18087 | .sec = {STATUS1, 6, RW}, |
| 18088 | .cmp = {STATUS2, 6, RW}, |
| 18089 | }, |
| 18090 | .decode_range = decode_range_spi25, |
| 18091 | }, |
| 18092 | |
| 18093 | { |
| 18094 | .vendor = "Winbond", |
| 18095 | .name = "W25Q32FW", |
| 18096 | .bustype = BUS_SPI, |
| 18097 | .manufacture_id = WINBOND_NEX_ID, |
| 18098 | .model_id = WINBOND_NEX_W25Q32_W, |
| 18099 | .total_size = 4096, |
| 18100 | .page_size = 256, |
| 18101 | /* OTP: 768B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 18102 | /* QPI enable 0x38, disable 0xFF */ |
| 18103 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | |
| 18104 | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3, |
| 18105 | .tested = TEST_OK_PREW, |
| 18106 | .probe = probe_spi_rdid, |
| 18107 | .probe_timing = TIMING_ZERO, |
| 18108 | .block_erasers = |
| 18109 | { |
| 18110 | { |
| 18111 | .eraseblocks = { {4 * 1024, 1024} }, |
| 18112 | .block_erase = spi_block_erase_20, |
| 18113 | }, { |
| 18114 | .eraseblocks = { {32 * 1024, 128} }, |
| 18115 | .block_erase = spi_block_erase_52, |
| 18116 | }, { |
| 18117 | .eraseblocks = { {64 * 1024, 64} }, |
| 18118 | .block_erase = spi_block_erase_d8, |
| 18119 | }, { |
| 18120 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18121 | .block_erase = spi_block_erase_60, |
| 18122 | }, { |
| 18123 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18124 | .block_erase = spi_block_erase_c7, |
| 18125 | } |
| 18126 | }, |
| 18127 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18128 | .unlock = spi_disable_blockprotect, |
| 18129 | .write = spi_chip_write_256, |
| 18130 | .read = spi_chip_read, |
| 18131 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 18132 | .reg_bits = |
| 18133 | { |
| 18134 | .srp = {STATUS1, 7, RW}, |
| 18135 | .srl = {STATUS2, 0, RW}, |
| 18136 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 18137 | .tb = {STATUS1, 5, RW}, |
| 18138 | .sec = {STATUS1, 6, RW}, |
| 18139 | .cmp = {STATUS2, 6, RW}, |
| 18140 | .wps = {STATUS3, 2, RW}, |
| 18141 | }, |
| 18142 | .decode_range = decode_range_spi25, |
| 18143 | }, |
| 18144 | |
| 18145 | { |
| 18146 | .vendor = "Winbond", |
| 18147 | .name = "W25Q32JW...Q", |
| 18148 | .bustype = BUS_SPI, |
| 18149 | .manufacture_id = WINBOND_NEX_ID, |
| 18150 | .model_id = WINBOND_NEX_W25Q32_W, |
| 18151 | .total_size = 4096, |
| 18152 | .page_size = 256, |
| 18153 | /* OTP: 768B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 18154 | /* QPI enable 0x38, disable 0xFF */ |
| 18155 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 18156 | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3, |
| 18157 | .tested = TEST_OK_PREW, |
| 18158 | .probe = probe_spi_rdid, |
| 18159 | .probe_timing = TIMING_ZERO, |
| 18160 | .block_erasers = |
| 18161 | { |
| 18162 | { |
| 18163 | .eraseblocks = { {4 * 1024, 1024} }, |
| 18164 | .block_erase = spi_block_erase_20, |
| 18165 | }, { |
| 18166 | .eraseblocks = { {32 * 1024, 128} }, |
| 18167 | .block_erase = spi_block_erase_52, |
| 18168 | }, { |
| 18169 | .eraseblocks = { {64 * 1024, 64} }, |
| 18170 | .block_erase = spi_block_erase_d8, |
| 18171 | }, { |
| 18172 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18173 | .block_erase = spi_block_erase_60, |
| 18174 | }, { |
| 18175 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18176 | .block_erase = spi_block_erase_c7, |
| 18177 | } |
| 18178 | }, |
| 18179 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18180 | .unlock = spi_disable_blockprotect, |
| 18181 | .write = spi_chip_write_256, |
| 18182 | .read = spi_chip_read, |
| 18183 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 18184 | .reg_bits = |
| 18185 | { |
| 18186 | .srp = {STATUS1, 7, RW}, |
| 18187 | .srl = {STATUS2, 0, RW}, |
| 18188 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 18189 | .tb = {STATUS1, 5, RW}, |
| 18190 | .sec = {STATUS1, 6, RW}, |
| 18191 | .cmp = {STATUS2, 6, RW}, |
| 18192 | .wps = {STATUS3, 2, RW}, |
| 18193 | }, |
| 18194 | .decode_range = decode_range_spi25, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18195 | }, |
| 18196 | |
| 18197 | { |
| 18198 | .vendor = "Winbond", |
Nikolai Artemiev | 6ae79b1 | 2021-05-08 17:31:23 +1000 | [diff] [blame] | 18199 | .name = "W25Q32JW...M", |
| 18200 | .bustype = BUS_SPI, |
| 18201 | .manufacture_id = WINBOND_NEX_ID, |
| 18202 | .model_id = WINBOND_NEX_W25Q32JW_M, |
| 18203 | .total_size = 4096, |
| 18204 | .page_size = 256, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18205 | /* OTP: 768B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 18206 | /* QPI enable 0x38, disable 0xFF */ |
| 18207 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 18208 | FEATURE_WRSR2 | FEATURE_WRSR3 | FEATURE_WRSR_EXT2, |
Nikolai Artemiev | 6ae79b1 | 2021-05-08 17:31:23 +1000 | [diff] [blame] | 18209 | .tested = TEST_OK_PREW, |
| 18210 | .probe = probe_spi_rdid, |
| 18211 | .probe_timing = TIMING_ZERO, |
| 18212 | .block_erasers = |
| 18213 | { |
| 18214 | { |
| 18215 | .eraseblocks = { {4 * 1024, 1024} }, |
| 18216 | .block_erase = spi_block_erase_20, |
| 18217 | }, { |
| 18218 | .eraseblocks = { {32 * 1024, 128} }, |
| 18219 | .block_erase = spi_block_erase_52, |
| 18220 | }, { |
| 18221 | .eraseblocks = { {64 * 1024, 64} }, |
| 18222 | .block_erase = spi_block_erase_d8, |
| 18223 | }, { |
| 18224 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18225 | .block_erase = spi_block_erase_60, |
| 18226 | }, { |
| 18227 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18228 | .block_erase = spi_block_erase_c7, |
| 18229 | } |
| 18230 | }, |
| 18231 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 18232 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 18233 | .write = spi_chip_write_256, |
| 18234 | .read = spi_chip_read, |
| 18235 | .voltage = {1700, 1950}, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18236 | .reg_bits = |
| 18237 | { |
| 18238 | .srp = {STATUS1, 7, RW}, |
| 18239 | .srl = {STATUS2, 0, RW}, |
| 18240 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 18241 | .tb = {STATUS1, 5, RW}, |
| 18242 | .sec = {STATUS1, 6, RW}, |
| 18243 | .cmp = {STATUS2, 6, RW}, |
| 18244 | .wps = {STATUS3, 2, RW}, |
| 18245 | }, |
| 18246 | .decode_range = decode_range_spi25, |
Nikolai Artemiev | 6ae79b1 | 2021-05-08 17:31:23 +1000 | [diff] [blame] | 18247 | }, |
| 18248 | |
| 18249 | { |
| 18250 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18251 | .name = "W25Q40.V", |
| 18252 | .bustype = BUS_SPI, |
| 18253 | .manufacture_id = WINBOND_NEX_ID, |
| 18254 | .model_id = WINBOND_NEX_W25Q40_V, |
| 18255 | .total_size = 512, |
| 18256 | .page_size = 256, |
| 18257 | /* supports SFDP */ |
| 18258 | /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 18259 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 18260 | .tested = TEST_OK_PREW, |
| 18261 | .probe = probe_spi_rdid, |
| 18262 | .probe_timing = TIMING_ZERO, |
| 18263 | .block_erasers = |
| 18264 | { |
| 18265 | { |
| 18266 | .eraseblocks = { {4 * 1024, 128} }, |
| 18267 | .block_erase = spi_block_erase_20, |
| 18268 | }, { |
| 18269 | .eraseblocks = { {32 * 1024, 16} }, |
| 18270 | .block_erase = spi_block_erase_52, |
| 18271 | }, { |
| 18272 | .eraseblocks = { {64 * 1024, 8} }, |
| 18273 | .block_erase = spi_block_erase_d8, |
| 18274 | }, { |
| 18275 | .eraseblocks = { {512 * 1024, 1} }, |
| 18276 | .block_erase = spi_block_erase_60, |
| 18277 | }, { |
| 18278 | .eraseblocks = { {512 * 1024, 1} }, |
| 18279 | .block_erase = spi_block_erase_c7, |
| 18280 | } |
| 18281 | }, |
| 18282 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18283 | .unlock = spi_disable_blockprotect, |
| 18284 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 18285 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 18286 | .voltage = {2700, 3600}, |
| 18287 | }, |
| 18288 | |
| 18289 | { |
| 18290 | .vendor = "Winbond", |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 18291 | .name = "W25Q40BW", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18292 | .bustype = BUS_SPI, |
| 18293 | .manufacture_id = WINBOND_NEX_ID, |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 18294 | .model_id = WINBOND_NEX_W25Q40BW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18295 | .total_size = 512, |
| 18296 | .page_size = 256, |
| 18297 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 18298 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Angel Pons | 3164a0c | 2018-09-30 20:26:06 +0200 | [diff] [blame] | 18299 | .tested = TEST_OK_PREW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18300 | .probe = probe_spi_rdid, |
| 18301 | .probe_timing = TIMING_ZERO, |
| 18302 | .block_erasers = |
| 18303 | { |
| 18304 | { |
| 18305 | .eraseblocks = { {4 * 1024, 128} }, |
| 18306 | .block_erase = spi_block_erase_20, |
| 18307 | }, { |
| 18308 | .eraseblocks = { {32 * 1024, 16} }, |
| 18309 | .block_erase = spi_block_erase_52, |
| 18310 | }, { |
| 18311 | .eraseblocks = { {64 * 1024, 8} }, |
| 18312 | .block_erase = spi_block_erase_d8, |
| 18313 | }, { |
| 18314 | .eraseblocks = { {512 * 1024, 1} }, |
| 18315 | .block_erase = spi_block_erase_60, |
| 18316 | }, { |
| 18317 | .eraseblocks = { {512 * 1024, 1} }, |
| 18318 | .block_erase = spi_block_erase_c7, |
| 18319 | } |
| 18320 | }, |
| 18321 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18322 | .unlock = spi_disable_blockprotect, |
| 18323 | .write = spi_chip_write_256, |
| 18324 | .read = spi_chip_read, |
| 18325 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 18326 | }, |
| 18327 | |
| 18328 | { |
| 18329 | .vendor = "Winbond", |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 18330 | .name = "W25Q40EW", |
| 18331 | .bustype = BUS_SPI, |
| 18332 | .manufacture_id = WINBOND_NEX_ID, |
| 18333 | .model_id = WINBOND_NEX_W25Q40EW, |
| 18334 | .total_size = 512, |
| 18335 | .page_size = 256, |
| 18336 | /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 18337 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Alan Green | 07b8a17 | 2019-09-23 16:47:05 +1000 | [diff] [blame] | 18338 | .tested = TEST_OK_PREW, |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 18339 | .probe = probe_spi_rdid, |
| 18340 | .probe_timing = TIMING_ZERO, |
| 18341 | .block_erasers = |
| 18342 | { |
| 18343 | { |
| 18344 | .eraseblocks = { {4 * 1024, 128} }, |
| 18345 | .block_erase = spi_block_erase_20, |
| 18346 | }, { |
| 18347 | .eraseblocks = { {32 * 1024, 16} }, |
| 18348 | .block_erase = spi_block_erase_52, |
| 18349 | }, { |
| 18350 | .eraseblocks = { {64 * 1024, 8} }, |
| 18351 | .block_erase = spi_block_erase_d8, |
| 18352 | }, { |
| 18353 | .eraseblocks = { {512 * 1024, 1} }, |
| 18354 | .block_erase = spi_block_erase_60, |
| 18355 | }, { |
| 18356 | .eraseblocks = { {512 * 1024, 1} }, |
| 18357 | .block_erase = spi_block_erase_c7, |
| 18358 | } |
| 18359 | }, |
| 18360 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18361 | .unlock = spi_disable_blockprotect, |
| 18362 | .write = spi_chip_write_256, |
| 18363 | .read = spi_chip_read, |
| 18364 | .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 18365 | }, |
| 18366 | |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 18367 | { |
| 18368 | .vendor = "Winbond", |
Joel Stanley | 5543961 | 2019-07-27 19:25:35 +0930 | [diff] [blame] | 18369 | .name = "W25Q512JV", |
| 18370 | .bustype = BUS_SPI, |
| 18371 | .manufacture_id = WINBOND_NEX_ID, |
| 18372 | .model_id = WINBOND_NEX_W25Q512JV, |
| 18373 | .total_size = 64 * 1024, |
| 18374 | .page_size = 256, |
| 18375 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
| 18376 | .tested = TEST_OK_PREW, |
| 18377 | .probe = probe_spi_rdid, |
| 18378 | .probe_timing = TIMING_ZERO, |
| 18379 | .block_erasers = |
| 18380 | { |
| 18381 | { |
| 18382 | .eraseblocks = { {4 * 1024, 16384} }, |
| 18383 | .block_erase = spi_block_erase_21, |
| 18384 | }, { |
| 18385 | .eraseblocks = { {4 * 1024, 16384} }, |
| 18386 | .block_erase = spi_block_erase_20, |
| 18387 | }, { |
| 18388 | .eraseblocks = { {32 * 1024, 2048} }, |
| 18389 | .block_erase = spi_block_erase_52, |
| 18390 | }, { |
| 18391 | .eraseblocks = { {64 * 1024, 1024} }, |
| 18392 | .block_erase = spi_block_erase_dc, |
| 18393 | }, { |
| 18394 | .eraseblocks = { {64 * 1024, 1024} }, |
| 18395 | .block_erase = spi_block_erase_d8, |
| 18396 | }, { |
| 18397 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 18398 | .block_erase = spi_block_erase_60, |
| 18399 | }, { |
| 18400 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 18401 | .block_erase = spi_block_erase_c7, |
| 18402 | } |
| 18403 | }, |
| 18404 | .printlock = spi_prettyprint_status_register_plain, |
| 18405 | .unlock = spi_disable_blockprotect, |
| 18406 | .write = spi_chip_write_256, |
| 18407 | .read = spi_chip_read, |
| 18408 | .voltage = {2700, 3600}, |
| 18409 | }, |
| 18410 | |
| 18411 | { |
Felix Singer | 3c9bdb9 | 2022-12-15 23:30:16 +0100 | [diff] [blame] | 18412 | .vendor = "Winbond", |
| 18413 | .name = "W25Q512NW-IM", |
| 18414 | .bustype = BUS_SPI, |
| 18415 | .manufacture_id = WINBOND_NEX_ID, |
| 18416 | .model_id = WINBOND_NEX_W25Q512NW_IM, |
| 18417 | .total_size = 64 * 1024, |
| 18418 | .page_size = 256, |
Subrata Banik | f5bffd9 | 2022-12-14 12:30:43 +0530 | [diff] [blame] | 18419 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2 |
| 18420 | | FEATURE_WRSR3, |
| 18421 | .tested = TEST_OK_PREWB, |
Felix Singer | 3c9bdb9 | 2022-12-15 23:30:16 +0100 | [diff] [blame] | 18422 | .probe = probe_spi_rdid, |
| 18423 | .probe_timing = TIMING_ZERO, |
| 18424 | .block_erasers = |
Atul Dhudase | 2502dbd | 2021-09-21 10:02:20 +0530 | [diff] [blame] | 18425 | { |
Felix Singer | 3c9bdb9 | 2022-12-15 23:30:16 +0100 | [diff] [blame] | 18426 | { |
| 18427 | .eraseblocks = { {4 * 1024, 16384} }, |
| 18428 | .block_erase = spi_block_erase_21, |
| 18429 | }, { |
| 18430 | .eraseblocks = { {4 * 1024, 16384} }, |
| 18431 | .block_erase = spi_block_erase_20, |
| 18432 | }, { |
| 18433 | .eraseblocks = { {32 * 1024, 2048} }, |
| 18434 | .block_erase = spi_block_erase_52, |
| 18435 | }, { |
| 18436 | .eraseblocks = { {64 * 1024, 1024} }, |
| 18437 | .block_erase = spi_block_erase_dc, |
| 18438 | }, { |
| 18439 | .eraseblocks = { {64 * 1024, 1024} }, |
| 18440 | .block_erase = spi_block_erase_d8, |
| 18441 | }, { |
| 18442 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 18443 | .block_erase = spi_block_erase_60, |
| 18444 | }, { |
| 18445 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 18446 | .block_erase = spi_block_erase_c7, |
| 18447 | } |
| 18448 | }, |
| 18449 | .unlock = spi_disable_blockprotect, |
| 18450 | .write = spi_chip_write_256, |
| 18451 | .read = spi_chip_read, |
| 18452 | .voltage = {1650, 1950}, |
Subrata Banik | f5bffd9 | 2022-12-14 12:30:43 +0530 | [diff] [blame] | 18453 | .reg_bits = |
| 18454 | { |
| 18455 | .srp = {STATUS1, 7, RW}, |
| 18456 | .srl = {STATUS2, 0, RW}, |
| 18457 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}}, |
| 18458 | .tb = {STATUS1, 6, RW}, |
| 18459 | .cmp = {STATUS2, 6, RW}, |
| 18460 | .wps = {STATUS3, 2, RW}, |
| 18461 | }, |
| 18462 | .decode_range = decode_range_spi25, |
Atul Dhudase | 2502dbd | 2021-09-21 10:02:20 +0530 | [diff] [blame] | 18463 | }, |
| 18464 | |
| 18465 | { |
Joel Stanley | 5543961 | 2019-07-27 19:25:35 +0930 | [diff] [blame] | 18466 | .vendor = "Winbond", |
Sergii Dmytruk | d1af307 | 2021-11-08 00:00:43 +0200 | [diff] [blame] | 18467 | .name = "W25Q64BV/W25Q64CV/W25Q64FV", |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 18468 | .bustype = BUS_SPI, |
| 18469 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18470 | .model_id = WINBOND_NEX_W25Q64_V, |
| 18471 | .total_size = 8192, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 18472 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18473 | /* supports SFDP */ |
| 18474 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Sergii Dmytruk | d1af307 | 2021-11-08 00:00:43 +0200 | [diff] [blame] | 18475 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR2, |
Sergii Dmytruk | c74eac2 | 2022-10-06 18:17:58 +0300 | [diff] [blame] | 18476 | .tested = TEST_OK_PREWB, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 18477 | .probe = probe_spi_rdid, |
| 18478 | .probe_timing = TIMING_ZERO, |
| 18479 | .block_erasers = |
| 18480 | { |
| 18481 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18482 | .eraseblocks = { {4 * 1024, 2048} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 18483 | .block_erase = spi_block_erase_20, |
| 18484 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18485 | .eraseblocks = { {32 * 1024, 256} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 18486 | .block_erase = spi_block_erase_52, |
| 18487 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18488 | .eraseblocks = { {64 * 1024, 128} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 18489 | .block_erase = spi_block_erase_d8, |
| 18490 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18491 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 18492 | .block_erase = spi_block_erase_60, |
| 18493 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18494 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 18495 | .block_erase = spi_block_erase_c7, |
| 18496 | } |
| 18497 | }, |
| 18498 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18499 | .unlock = spi_disable_blockprotect, |
| 18500 | .write = spi_chip_write_256, |
| 18501 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18502 | .voltage = {2700, 3600}, |
Sergii Dmytruk | d1af307 | 2021-11-08 00:00:43 +0200 | [diff] [blame] | 18503 | .reg_bits = |
| 18504 | { |
| 18505 | .srp = {STATUS1, 7, RW}, |
| 18506 | .srl = {STATUS2, 0, RW}, |
| 18507 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 18508 | .tb = {STATUS1, 5, RW}, |
| 18509 | .sec = {STATUS1, 6, RW}, |
| 18510 | .cmp = {STATUS2, 6, RW}, |
| 18511 | }, |
| 18512 | .decode_range = decode_range_spi25, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18513 | }, |
| 18514 | |
| 18515 | { |
| 18516 | .vendor = "Winbond", |
Sergii Dmytruk | d1af307 | 2021-11-08 00:00:43 +0200 | [diff] [blame] | 18517 | .name = "W25Q64JV-.Q", |
| 18518 | .bustype = BUS_SPI, |
| 18519 | .manufacture_id = WINBOND_NEX_ID, |
| 18520 | .model_id = WINBOND_NEX_W25Q64_V, |
| 18521 | .total_size = 8192, |
| 18522 | .page_size = 256, |
| 18523 | /* supports SFDP */ |
| 18524 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 3f3c1f3 | 2022-05-28 16:48:26 +0200 | [diff] [blame] | 18525 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 18526 | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3, |
Sergii Dmytruk | d1af307 | 2021-11-08 00:00:43 +0200 | [diff] [blame] | 18527 | .tested = TEST_OK_PREW, |
| 18528 | .probe = probe_spi_rdid, |
| 18529 | .probe_timing = TIMING_ZERO, |
| 18530 | .block_erasers = |
| 18531 | { |
| 18532 | { |
| 18533 | .eraseblocks = { {4 * 1024, 2048} }, |
| 18534 | .block_erase = spi_block_erase_20, |
| 18535 | }, { |
| 18536 | .eraseblocks = { {32 * 1024, 256} }, |
| 18537 | .block_erase = spi_block_erase_52, |
| 18538 | }, { |
| 18539 | .eraseblocks = { {64 * 1024, 128} }, |
| 18540 | .block_erase = spi_block_erase_d8, |
| 18541 | }, { |
| 18542 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 18543 | .block_erase = spi_block_erase_60, |
| 18544 | }, { |
| 18545 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 18546 | .block_erase = spi_block_erase_c7, |
| 18547 | } |
| 18548 | }, |
| 18549 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18550 | .unlock = spi_disable_blockprotect, |
| 18551 | .write = spi_chip_write_256, |
| 18552 | .read = spi_chip_read, |
| 18553 | .voltage = {2700, 3600}, |
| 18554 | .reg_bits = |
| 18555 | { |
| 18556 | .srp = {STATUS1, 7, RW}, |
| 18557 | .srl = {STATUS2, 0, RW}, |
| 18558 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 18559 | .tb = {STATUS1, 5, RW}, |
| 18560 | .sec = {STATUS1, 6, RW}, |
| 18561 | .cmp = {STATUS2, 6, RW}, |
| 18562 | .wps = {STATUS3, 2, RW}, |
| 18563 | }, |
| 18564 | .decode_range = decode_range_spi25, |
| 18565 | }, |
| 18566 | |
| 18567 | { |
| 18568 | .vendor = "Winbond", |
| 18569 | .name = "W25Q64JV-.M", |
Simon Buhrow | 236a38c | 2021-11-05 11:48:30 +0100 | [diff] [blame] | 18570 | .bustype = BUS_SPI, |
| 18571 | .manufacture_id = WINBOND_NEX_ID, |
| 18572 | .model_id = WINBOND_NEX_W25Q64JV, |
| 18573 | .total_size = 8192, |
| 18574 | .page_size = 256, |
| 18575 | /* supports SFDP */ |
| 18576 | /* QPI enable 0x38 */ |
| 18577 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 18578 | .tested = TEST_OK_PREW, |
| 18579 | .probe = probe_spi_rdid, |
| 18580 | .probe_timing = TIMING_ZERO, |
| 18581 | .block_erasers = |
| 18582 | { |
| 18583 | { |
| 18584 | .eraseblocks = { {4 * 1024, 2048} }, |
| 18585 | .block_erase = spi_block_erase_20, |
| 18586 | }, { |
| 18587 | .eraseblocks = { {32 * 1024, 256} }, |
| 18588 | .block_erase = spi_block_erase_52, |
| 18589 | }, { |
| 18590 | .eraseblocks = { {64 * 1024, 128} }, |
| 18591 | .block_erase = spi_block_erase_d8, |
| 18592 | }, { |
| 18593 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 18594 | .block_erase = spi_block_erase_60, |
| 18595 | }, { |
| 18596 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 18597 | .block_erase = spi_block_erase_c7, |
| 18598 | } |
| 18599 | }, |
| 18600 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 18601 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 18602 | .write = spi_chip_write_256, |
| 18603 | .read = spi_chip_read, |
| 18604 | .voltage = {2700, 3600}, |
| 18605 | }, |
| 18606 | |
| 18607 | { |
| 18608 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18609 | .name = "W25Q64.W", |
| 18610 | .bustype = BUS_SPI, |
| 18611 | .manufacture_id = WINBOND_NEX_ID, |
| 18612 | .model_id = WINBOND_NEX_W25Q64_W, |
| 18613 | .total_size = 8192, |
| 18614 | .page_size = 256, |
| 18615 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 18616 | /* QPI enable 0x38, disable 0xFF */ |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 18617 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2, |
Sergii Dmytruk | c74eac2 | 2022-10-06 18:17:58 +0300 | [diff] [blame] | 18618 | .tested = TEST_OK_PREWB, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18619 | .probe = probe_spi_rdid, |
| 18620 | .probe_timing = TIMING_ZERO, |
| 18621 | .block_erasers = |
| 18622 | { |
| 18623 | { |
| 18624 | .eraseblocks = { {4 * 1024, 2048} }, |
| 18625 | .block_erase = spi_block_erase_20, |
| 18626 | }, { |
| 18627 | .eraseblocks = { {32 * 1024, 256} }, |
| 18628 | .block_erase = spi_block_erase_52, |
| 18629 | }, { |
| 18630 | .eraseblocks = { {64 * 1024, 128} }, |
| 18631 | .block_erase = spi_block_erase_d8, |
| 18632 | }, { |
| 18633 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 18634 | .block_erase = spi_block_erase_60, |
| 18635 | }, { |
| 18636 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 18637 | .block_erase = spi_block_erase_c7, |
| 18638 | } |
| 18639 | }, |
| 18640 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18641 | .unlock = spi_disable_blockprotect, |
| 18642 | .write = spi_chip_write_256, |
| 18643 | .read = spi_chip_read, |
| 18644 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 18645 | .reg_bits = |
| 18646 | { |
| 18647 | .srp = {STATUS1, 7, RW}, |
| 18648 | .srl = {STATUS2, 0, RW}, |
| 18649 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 18650 | .tb = {STATUS1, 5, RW}, |
| 18651 | .sec = {STATUS1, 6, RW}, |
| 18652 | .cmp = {STATUS2, 6, RW}, |
| 18653 | }, |
| 18654 | .decode_range = decode_range_spi25, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 18655 | }, |
| 18656 | |
| 18657 | { |
| 18658 | .vendor = "Winbond", |
Nikolai Artemiev | 5fa0505 | 2021-05-14 15:26:47 +1000 | [diff] [blame] | 18659 | .name = "W25Q64JW...M", |
Scott Chao | 1bbc501 | 2020-04-08 22:10:50 +0800 | [diff] [blame] | 18660 | .bustype = BUS_SPI, |
| 18661 | .manufacture_id = WINBOND_NEX_ID, |
Nikolai Artemiev | 5fa0505 | 2021-05-14 15:26:47 +1000 | [diff] [blame] | 18662 | .model_id = WINBOND_NEX_W25Q64JW_M, |
Scott Chao | 1bbc501 | 2020-04-08 22:10:50 +0800 | [diff] [blame] | 18663 | .total_size = 8192, |
| 18664 | .page_size = 256, |
| 18665 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 18666 | /* QPI enable 0x38, disable 0xFF */ |
Evan Benn | 29c8b5d | 2022-09-13 16:01:10 +1000 | [diff] [blame] | 18667 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2 | FEATURE_WRSR3, |
Scott Chao | 1bbc501 | 2020-04-08 22:10:50 +0800 | [diff] [blame] | 18668 | .tested = TEST_OK_PREW, |
| 18669 | .probe = probe_spi_rdid, |
| 18670 | .probe_timing = TIMING_ZERO, |
| 18671 | .block_erasers = |
| 18672 | { |
| 18673 | { |
| 18674 | .eraseblocks = { {4 * 1024, 2048} }, |
| 18675 | .block_erase = spi_block_erase_20, |
| 18676 | }, { |
| 18677 | .eraseblocks = { {32 * 1024, 256} }, |
| 18678 | .block_erase = spi_block_erase_52, |
| 18679 | }, { |
| 18680 | .eraseblocks = { {64 * 1024, 128} }, |
| 18681 | .block_erase = spi_block_erase_d8, |
| 18682 | }, { |
| 18683 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 18684 | .block_erase = spi_block_erase_60, |
| 18685 | }, { |
| 18686 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 18687 | .block_erase = spi_block_erase_c7, |
| 18688 | } |
| 18689 | }, |
| 18690 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18691 | .unlock = spi_disable_blockprotect, |
| 18692 | .write = spi_chip_write_256, |
| 18693 | .read = spi_chip_read, |
| 18694 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
Evan Benn | 29c8b5d | 2022-09-13 16:01:10 +1000 | [diff] [blame] | 18695 | .reg_bits = |
| 18696 | { |
| 18697 | .srp = {STATUS1, 7, RW}, |
| 18698 | .srl = {STATUS2, 0, RW}, |
| 18699 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 18700 | .tb = {STATUS1, 5, RW}, |
| 18701 | .sec = {STATUS1, 6, RW}, |
| 18702 | .cmp = {STATUS2, 6, RW}, |
| 18703 | .wps = {STATUS3, 2, RW}, |
| 18704 | }, |
| 18705 | .decode_range = decode_range_spi25, |
Scott Chao | 1bbc501 | 2020-04-08 22:10:50 +0800 | [diff] [blame] | 18706 | }, |
| 18707 | |
| 18708 | { |
| 18709 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18710 | .name = "W25Q80.V", |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 18711 | .bustype = BUS_SPI, |
| 18712 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18713 | .model_id = WINBOND_NEX_W25Q80_V, |
| 18714 | .total_size = 1024, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 18715 | .page_size = 256, |
| 18716 | /* supports SFDP */ |
| 18717 | /* 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] | 18718 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 48729d3 | 2017-12-08 14:44:07 -0800 | [diff] [blame] | 18719 | .tested = TEST_OK_PREW, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 18720 | .probe = probe_spi_rdid, |
| 18721 | .probe_timing = TIMING_ZERO, |
| 18722 | .block_erasers = |
| 18723 | { |
| 18724 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18725 | .eraseblocks = { {4 * 1024, 256} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 18726 | .block_erase = spi_block_erase_20, |
| 18727 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18728 | .eraseblocks = { {32 * 1024, 32} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 18729 | .block_erase = spi_block_erase_52, |
| 18730 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18731 | .eraseblocks = { {64 * 1024, 16} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 18732 | .block_erase = spi_block_erase_d8, |
| 18733 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18734 | .eraseblocks = { {1024 * 1024, 1} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 18735 | .block_erase = spi_block_erase_60, |
| 18736 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18737 | .eraseblocks = { {1024 * 1024, 1} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 18738 | .block_erase = spi_block_erase_c7, |
| 18739 | } |
| 18740 | }, |
| 18741 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18742 | .unlock = spi_disable_blockprotect, |
| 18743 | .write = spi_chip_write_256, |
| 18744 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18745 | .voltage = {2700, 3600}, |
| 18746 | }, |
| 18747 | |
| 18748 | { |
| 18749 | .vendor = "Winbond", |
| 18750 | .name = "W25Q80BW", |
| 18751 | .bustype = BUS_SPI, |
| 18752 | .manufacture_id = WINBOND_NEX_ID, |
| 18753 | .model_id = WINBOND_NEX_W25Q80BW, |
| 18754 | .total_size = 1024, |
| 18755 | .page_size = 256, |
| 18756 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 18757 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 18758 | .tested = TEST_OK_PREW, |
| 18759 | .probe = probe_spi_rdid, |
| 18760 | .probe_timing = TIMING_ZERO, |
| 18761 | .block_erasers = |
| 18762 | { |
| 18763 | { |
| 18764 | .eraseblocks = { {4 * 1024, 256} }, |
| 18765 | .block_erase = spi_block_erase_20, |
| 18766 | }, { |
| 18767 | .eraseblocks = { {32 * 1024, 32} }, |
| 18768 | .block_erase = spi_block_erase_52, |
| 18769 | }, { |
| 18770 | .eraseblocks = { {64 * 1024, 16} }, |
| 18771 | .block_erase = spi_block_erase_d8, |
| 18772 | }, { |
| 18773 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 18774 | .block_erase = spi_block_erase_60, |
| 18775 | }, { |
| 18776 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 18777 | .block_erase = spi_block_erase_c7, |
| 18778 | } |
| 18779 | }, |
| 18780 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18781 | .unlock = spi_disable_blockprotect, |
| 18782 | .write = spi_chip_write_256, |
| 18783 | .read = spi_chip_read, |
| 18784 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 18785 | }, |
| 18786 | |
| 18787 | { |
| 18788 | .vendor = "Winbond", |
| 18789 | .name = "W25Q80EW", |
| 18790 | .bustype = BUS_SPI, |
| 18791 | .manufacture_id = WINBOND_NEX_ID, |
| 18792 | .model_id = WINBOND_NEX_W25Q80EW, |
| 18793 | .total_size = 1024, |
| 18794 | .page_size = 256, |
| 18795 | /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 18796 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 18797 | .tested = TEST_OK_PREW, |
| 18798 | .probe = probe_spi_rdid, |
| 18799 | .probe_timing = TIMING_ZERO, |
| 18800 | .block_erasers = |
| 18801 | { |
| 18802 | { |
| 18803 | .eraseblocks = { {4 * 1024, 256} }, |
| 18804 | .block_erase = spi_block_erase_20, |
| 18805 | }, { |
| 18806 | .eraseblocks = { {32 * 1024, 32} }, |
| 18807 | .block_erase = spi_block_erase_52, |
| 18808 | }, { |
| 18809 | .eraseblocks = { {64 * 1024, 16} }, |
| 18810 | .block_erase = spi_block_erase_d8, |
| 18811 | }, { |
| 18812 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 18813 | .block_erase = spi_block_erase_60, |
| 18814 | }, { |
| 18815 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 18816 | .block_erase = spi_block_erase_c7, |
| 18817 | } |
| 18818 | }, |
| 18819 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18820 | .unlock = spi_disable_blockprotect, |
| 18821 | .write = spi_chip_write_256, |
| 18822 | .read = spi_chip_read, |
| 18823 | .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 18824 | }, |
| 18825 | |
| 18826 | { |
| 18827 | .vendor = "Winbond", |
Jacob Appelbaum | ebbdc02 | 2019-09-02 09:10:43 -0400 | [diff] [blame] | 18828 | .name = "W25X05", |
| 18829 | .bustype = BUS_SPI, |
| 18830 | .manufacture_id = WINBOND_NEX_ID, |
| 18831 | .model_id = WINBOND_NEX_W25X05, |
| 18832 | .total_size = 64, |
| 18833 | .page_size = 256, |
| 18834 | .feature_bits = FEATURE_WRSR_WREN, |
| 18835 | .tested = TEST_OK_PREW, |
| 18836 | .probe = probe_spi_rdid, |
| 18837 | .probe_timing = TIMING_ZERO, |
| 18838 | .block_erasers = |
| 18839 | { |
| 18840 | { |
| 18841 | .eraseblocks = { {4 * 1024, 16} }, |
| 18842 | .block_erase = spi_block_erase_20, |
| 18843 | }, { |
| 18844 | .eraseblocks = { {32 * 1024, 2} }, |
| 18845 | .block_erase = spi_block_erase_52, |
| 18846 | }, { |
| 18847 | .eraseblocks = { {64 * 1024, 1} }, |
| 18848 | .block_erase = spi_block_erase_d8, |
| 18849 | } |
| 18850 | }, |
| 18851 | .printlock = spi_prettyprint_status_register_plain, |
| 18852 | .unlock = spi_disable_blockprotect, |
| 18853 | .write = spi_chip_write_256, |
| 18854 | .read = spi_chip_read, |
| 18855 | .voltage = {2300, 3600}, |
| 18856 | }, |
| 18857 | |
| 18858 | { |
| 18859 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 18860 | .name = "W25X10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18861 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18862 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18863 | .model_id = WINBOND_NEX_W25X10, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18864 | .total_size = 128, |
| 18865 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 18866 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 18867 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18868 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 18869 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 18870 | .block_erasers = |
| 18871 | { |
| 18872 | { |
| 18873 | .eraseblocks = { {4 * 1024, 32} }, |
| 18874 | .block_erase = spi_block_erase_20, |
| 18875 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 18876 | .eraseblocks = { {64 * 1024, 2} }, |
| 18877 | .block_erase = spi_block_erase_d8, |
| 18878 | }, { |
| 18879 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 18880 | .block_erase = spi_block_erase_c7, |
| 18881 | } |
| 18882 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 18883 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 18884 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 18885 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18886 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 18887 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18888 | }, |
| 18889 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18890 | { |
| 18891 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 18892 | .name = "W25X16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18893 | .bustype = BUS_SPI, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 18894 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18895 | .model_id = WINBOND_NEX_W25X16, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 18896 | .total_size = 2048, |
| 18897 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 18898 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 18899 | .tested = TEST_OK_PREW, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 18900 | .probe = probe_spi_rdid, |
| 18901 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 18902 | .block_erasers = |
| 18903 | { |
| 18904 | { |
| 18905 | .eraseblocks = { {4 * 1024, 512} }, |
| 18906 | .block_erase = spi_block_erase_20, |
| 18907 | }, { |
| 18908 | .eraseblocks = { {32 * 1024, 64} }, |
| 18909 | .block_erase = spi_block_erase_52, |
| 18910 | }, { |
| 18911 | .eraseblocks = { {64 * 1024, 32} }, |
| 18912 | .block_erase = spi_block_erase_d8, |
| 18913 | }, { |
| 18914 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 18915 | .block_erase = spi_block_erase_60, |
| 18916 | }, { |
| 18917 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 18918 | .block_erase = spi_block_erase_c7, |
| 18919 | } |
| 18920 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 18921 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 18922 | .unlock = spi_disable_blockprotect, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 18923 | .write = spi_chip_write_256, |
| 18924 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 18925 | .voltage = {2700, 3600}, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 18926 | }, |
| 18927 | |
| 18928 | { |
| 18929 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18930 | .name = "W25X20", |
| 18931 | .bustype = BUS_SPI, |
| 18932 | .manufacture_id = WINBOND_NEX_ID, |
| 18933 | .model_id = WINBOND_NEX_W25X20, |
| 18934 | .total_size = 256, |
| 18935 | .page_size = 256, |
| 18936 | .feature_bits = FEATURE_WRSR_WREN, |
| 18937 | .tested = TEST_OK_PREW, |
| 18938 | .probe = probe_spi_rdid, |
| 18939 | .probe_timing = TIMING_ZERO, |
| 18940 | .block_erasers = |
| 18941 | { |
| 18942 | { |
| 18943 | .eraseblocks = { {4 * 1024, 64} }, |
| 18944 | .block_erase = spi_block_erase_20, |
| 18945 | }, { |
| 18946 | .eraseblocks = { {64 * 1024, 4} }, |
| 18947 | .block_erase = spi_block_erase_d8, |
| 18948 | }, { |
| 18949 | .eraseblocks = { {256 * 1024, 1} }, |
| 18950 | .block_erase = spi_block_erase_c7, |
| 18951 | } |
| 18952 | }, |
| 18953 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18954 | .unlock = spi_disable_blockprotect, |
| 18955 | .write = spi_chip_write_256, |
| 18956 | .read = spi_chip_read, |
| 18957 | .voltage = {2700, 3600}, |
| 18958 | }, |
| 18959 | |
| 18960 | { |
| 18961 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 18962 | .name = "W25X32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18963 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 18964 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 18965 | .model_id = WINBOND_NEX_W25X32, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 18966 | .total_size = 4096, |
| 18967 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 18968 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 18969 | .tested = TEST_OK_PREW, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 18970 | .probe = probe_spi_rdid, |
| 18971 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 18972 | .block_erasers = |
| 18973 | { |
| 18974 | { |
| 18975 | .eraseblocks = { {4 * 1024, 1024} }, |
| 18976 | .block_erase = spi_block_erase_20, |
| 18977 | }, { |
| 18978 | .eraseblocks = { {32 * 1024, 128} }, |
| 18979 | .block_erase = spi_block_erase_52, |
| 18980 | }, { |
| 18981 | .eraseblocks = { {64 * 1024, 64} }, |
| 18982 | .block_erase = spi_block_erase_d8, |
| 18983 | }, { |
| 18984 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18985 | .block_erase = spi_block_erase_60, |
| 18986 | }, { |
| 18987 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18988 | .block_erase = spi_block_erase_c7, |
| 18989 | } |
| 18990 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 18991 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 18992 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 18993 | .write = spi_chip_write_256, |
| 18994 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 18995 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 18996 | }, |
| 18997 | |
| 18998 | { |
| 18999 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19000 | .name = "W25X40", |
| 19001 | .bustype = BUS_SPI, |
| 19002 | .manufacture_id = WINBOND_NEX_ID, |
| 19003 | .model_id = WINBOND_NEX_W25X40, |
| 19004 | .total_size = 512, |
| 19005 | .page_size = 256, |
| 19006 | .feature_bits = FEATURE_WRSR_WREN, |
| 19007 | .tested = TEST_OK_PREW, |
| 19008 | .probe = probe_spi_rdid, |
| 19009 | .probe_timing = TIMING_ZERO, |
| 19010 | .block_erasers = |
| 19011 | { |
| 19012 | { |
| 19013 | .eraseblocks = { {4 * 1024, 128} }, |
| 19014 | .block_erase = spi_block_erase_20, |
| 19015 | }, { |
| 19016 | .eraseblocks = { {64 * 1024, 8} }, |
| 19017 | .block_erase = spi_block_erase_d8, |
| 19018 | }, { |
| 19019 | .eraseblocks = { {512 * 1024, 1} }, |
| 19020 | .block_erase = spi_block_erase_c7, |
| 19021 | } |
| 19022 | }, |
| 19023 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19024 | .unlock = spi_disable_blockprotect, |
| 19025 | .write = spi_chip_write_256, |
| 19026 | .read = spi_chip_read, |
| 19027 | .voltage = {2700, 3600}, |
| 19028 | }, |
| 19029 | |
| 19030 | { |
| 19031 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 19032 | .name = "W25X64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19033 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 19034 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19035 | .model_id = WINBOND_NEX_W25X64, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 19036 | .total_size = 8192, |
| 19037 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 19038 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 19039 | .tested = TEST_OK_PREW, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 19040 | .probe = probe_spi_rdid, |
| 19041 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 19042 | .block_erasers = |
| 19043 | { |
| 19044 | { |
| 19045 | .eraseblocks = { {4 * 1024, 2048} }, |
| 19046 | .block_erase = spi_block_erase_20, |
| 19047 | }, { |
| 19048 | .eraseblocks = { {32 * 1024, 256} }, |
| 19049 | .block_erase = spi_block_erase_52, |
| 19050 | }, { |
| 19051 | .eraseblocks = { {64 * 1024, 128} }, |
| 19052 | .block_erase = spi_block_erase_d8, |
| 19053 | }, { |
| 19054 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 19055 | .block_erase = spi_block_erase_60, |
| 19056 | }, { |
| 19057 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 19058 | .block_erase = spi_block_erase_c7, |
| 19059 | } |
| 19060 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 19061 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 19062 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 19063 | .write = spi_chip_write_256, |
| 19064 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 19065 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 19066 | }, |
| 19067 | |
| 19068 | { |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 19069 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19070 | .name = "W25X80", |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 19071 | .bustype = BUS_SPI, |
| 19072 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19073 | .model_id = WINBOND_NEX_W25X80, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 19074 | .total_size = 1024, |
| 19075 | .page_size = 256, |
| 19076 | .feature_bits = FEATURE_WRSR_WREN, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19077 | .tested = TEST_OK_PREW, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 19078 | .probe = probe_spi_rdid, |
| 19079 | .probe_timing = TIMING_ZERO, |
| 19080 | .block_erasers = |
David Hendricks | c9ee0ed | 2018-02-11 17:40:53 -0800 | [diff] [blame] | 19081 | { |
| 19082 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19083 | .eraseblocks = { {4 * 1024, 256} }, |
| 19084 | .block_erase = spi_block_erase_20, |
| 19085 | }, { |
David Hendricks | c9ee0ed | 2018-02-11 17:40:53 -0800 | [diff] [blame] | 19086 | .eraseblocks = { {64 * 1024, 16} }, |
| 19087 | .block_erase = spi_block_erase_d8, |
| 19088 | }, { |
| 19089 | .eraseblocks = { {1024 * 1024, 1} }, |
| 19090 | .block_erase = spi_block_erase_c7, |
| 19091 | } |
| 19092 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 19093 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19094 | .unlock = spi_disable_blockprotect, |
| 19095 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19096 | .read = spi_chip_read, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 19097 | .voltage = {2700, 3600}, |
David Hendricks | c9ee0ed | 2018-02-11 17:40:53 -0800 | [diff] [blame] | 19098 | }, |
| 19099 | |
Alan Green | f29ea36 | 2019-06-27 17:14:02 +1000 | [diff] [blame] | 19100 | /* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */ |
| 19101 | { |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 19102 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19103 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19104 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19105 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19106 | .model_id = WINBOND_W29C010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19107 | .total_size = 128, |
| 19108 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 19109 | .feature_bits = FEATURE_LONG_RESET, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 19110 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19111 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 19112 | .probe_timing = 10, /* used datasheet for the W29C011A */ |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 19113 | .block_erasers = |
| 19114 | { |
| 19115 | { |
| 19116 | .eraseblocks = { {128 * 1024, 1} }, |
| 19117 | .block_erase = erase_chip_block_jedec, |
| 19118 | } |
| 19119 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19120 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 19121 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 19122 | }, |
| 19123 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19124 | { |
| 19125 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19126 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old", |
| 19127 | .bustype = BUS_PARALLEL, |
| 19128 | .manufacture_id = WINBOND_ID, |
| 19129 | .model_id = WINBOND_W29C010, |
| 19130 | .total_size = 128, |
| 19131 | .page_size = 128, |
| 19132 | .feature_bits = FEATURE_LONG_RESET, |
| 19133 | .tested = TEST_OK_PREW, |
| 19134 | .probe = probe_w29ee011, |
| 19135 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */ |
| 19136 | .block_erasers = |
| 19137 | { |
| 19138 | { |
| 19139 | .eraseblocks = { {128 * 1024, 1} }, |
| 19140 | .block_erase = erase_chip_block_jedec, |
| 19141 | } |
| 19142 | }, |
| 19143 | .write = write_jedec, |
| 19144 | .read = read_memmapped, |
| 19145 | }, |
| 19146 | |
| 19147 | { |
| 19148 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19149 | .name = "W29C020(C)/W29C022", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19150 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19151 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19152 | .model_id = WINBOND_W29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19153 | .total_size = 256, |
| 19154 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 19155 | .feature_bits = FEATURE_LONG_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 19156 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19157 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 19158 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 19159 | .block_erasers = |
| 19160 | { |
| 19161 | { |
| 19162 | .eraseblocks = { {256 * 1024, 1} }, |
| 19163 | .block_erase = erase_chip_block_jedec, |
| 19164 | } |
| 19165 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19166 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 19167 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 19168 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 19169 | }, |
| 19170 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19171 | { |
| 19172 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19173 | .name = "W29C040/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19174 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19175 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19176 | .model_id = WINBOND_W29C040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19177 | .total_size = 512, |
| 19178 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 19179 | .feature_bits = FEATURE_LONG_RESET, |
| 19180 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19181 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 19182 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 19183 | .block_erasers = |
| 19184 | { |
| 19185 | { |
| 19186 | .eraseblocks = { {512 * 1024, 1} }, |
| 19187 | .block_erase = erase_chip_block_jedec, |
| 19188 | } |
| 19189 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19190 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 19191 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 19192 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 19193 | }, |
| 19194 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19195 | { |
| 19196 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19197 | .name = "W29C512A/W29EE512", |
| 19198 | .bustype = BUS_PARALLEL, |
| 19199 | .manufacture_id = WINBOND_ID, |
| 19200 | .model_id = WINBOND_W29C512A, |
| 19201 | .total_size = 64, |
| 19202 | .page_size = 128, |
| 19203 | .feature_bits = FEATURE_LONG_RESET, |
| 19204 | .tested = TEST_OK_PREW, |
| 19205 | .probe = probe_jedec, |
| 19206 | .probe_timing = 10, |
| 19207 | .block_erasers = |
| 19208 | { |
| 19209 | { |
| 19210 | .eraseblocks = { {64 * 1024, 1} }, |
| 19211 | .block_erase = erase_chip_block_jedec, |
| 19212 | } |
| 19213 | }, |
| 19214 | .write = write_jedec, |
| 19215 | .read = read_memmapped, |
| 19216 | .voltage = {4500, 5500}, |
| 19217 | }, |
| 19218 | |
| 19219 | { |
| 19220 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 19221 | .name = "W29GL032CB", |
| 19222 | .bustype = BUS_PARALLEL, |
| 19223 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 19224 | .model_id = WINBOND_W29GL032CB, |
| 19225 | .total_size = 4096, |
| 19226 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 19227 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 19228 | .tested = TEST_UNTESTED, |
| 19229 | .probe = probe_jedec_29gl, |
| 19230 | .probe_timing = TIMING_ZERO, |
| 19231 | .block_erasers = |
| 19232 | { |
| 19233 | { |
| 19234 | .eraseblocks = { |
| 19235 | {8 * 1024, 8}, |
| 19236 | {64 * 1024, 63}, |
| 19237 | }, |
| 19238 | .block_erase = erase_sector_jedec, |
| 19239 | }, { |
| 19240 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 19241 | .block_erase = erase_chip_block_jedec, |
| 19242 | }, |
| 19243 | }, |
| 19244 | .write = write_jedec_1, |
| 19245 | .read = read_memmapped, |
| 19246 | .voltage = {2700, 3600}, |
| 19247 | }, |
| 19248 | |
| 19249 | { |
| 19250 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19251 | .name = "W29GL032CH/L", |
| 19252 | .bustype = BUS_PARALLEL, |
| 19253 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 19254 | .model_id = WINBOND_W29GL032CHL, |
| 19255 | .total_size = 4096, |
| 19256 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 19257 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 19258 | .tested = TEST_UNTESTED, |
| 19259 | .probe = probe_jedec_29gl, |
| 19260 | .probe_timing = TIMING_ZERO, |
| 19261 | .block_erasers = |
| 19262 | { |
| 19263 | { |
| 19264 | .eraseblocks = { {64 * 1024, 64} }, |
| 19265 | .block_erase = erase_sector_jedec, |
| 19266 | }, { |
| 19267 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 19268 | .block_erase = erase_chip_block_jedec, |
| 19269 | }, |
| 19270 | }, |
| 19271 | .write = write_jedec_1, |
| 19272 | .read = read_memmapped, |
| 19273 | .voltage = {2700, 3600}, |
| 19274 | }, |
| 19275 | |
| 19276 | { |
| 19277 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 19278 | .name = "W29GL032CT", |
| 19279 | .bustype = BUS_PARALLEL, |
| 19280 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 19281 | .model_id = WINBOND_W29GL032CT, |
| 19282 | .total_size = 4096, |
| 19283 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 19284 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 19285 | .tested = TEST_UNTESTED, |
| 19286 | .probe = probe_jedec_29gl, |
| 19287 | .probe_timing = TIMING_ZERO, |
| 19288 | .block_erasers = |
| 19289 | { |
| 19290 | { |
| 19291 | .eraseblocks = { |
| 19292 | {64 * 1024, 63}, |
| 19293 | {8 * 1024, 8}, |
| 19294 | }, |
| 19295 | .block_erase = erase_sector_jedec, |
| 19296 | }, { |
| 19297 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 19298 | .block_erase = erase_chip_block_jedec, |
| 19299 | }, |
| 19300 | }, |
| 19301 | .write = write_jedec_1, |
| 19302 | .read = read_memmapped, |
| 19303 | .voltage = {2700, 3600}, |
| 19304 | }, |
| 19305 | |
| 19306 | { |
| 19307 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 19308 | .name = "W29GL064CB", |
| 19309 | .bustype = BUS_PARALLEL, |
| 19310 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 19311 | .model_id = WINBOND_W29GL064CB, |
| 19312 | .total_size = 8192, |
| 19313 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 19314 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 19315 | .tested = TEST_UNTESTED, |
| 19316 | .probe = probe_jedec_29gl, |
| 19317 | .probe_timing = TIMING_ZERO, |
| 19318 | .block_erasers = |
| 19319 | { |
| 19320 | { |
| 19321 | .eraseblocks = { |
| 19322 | {8 * 1024, 8}, |
| 19323 | {64 * 1024, 127}, |
| 19324 | }, |
| 19325 | .block_erase = erase_sector_jedec, |
| 19326 | }, { |
| 19327 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 19328 | .block_erase = erase_chip_block_jedec, |
| 19329 | }, |
| 19330 | }, |
| 19331 | .write = write_jedec_1, |
| 19332 | .read = read_memmapped, |
| 19333 | .voltage = {2700, 3600}, |
| 19334 | }, |
| 19335 | |
| 19336 | { |
| 19337 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19338 | .name = "W29GL064CH/L", |
| 19339 | .bustype = BUS_PARALLEL, |
| 19340 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 19341 | .model_id = WINBOND_W29GL064CHL, |
| 19342 | .total_size = 8192, |
| 19343 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 19344 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 19345 | .tested = TEST_UNTESTED, |
| 19346 | .probe = probe_jedec_29gl, |
| 19347 | .probe_timing = TIMING_ZERO, |
| 19348 | .block_erasers = |
| 19349 | { |
| 19350 | { |
| 19351 | .eraseblocks = { {64 * 1024, 128} }, |
| 19352 | .block_erase = erase_sector_jedec, |
| 19353 | }, { |
| 19354 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 19355 | .block_erase = erase_chip_block_jedec, |
| 19356 | }, |
| 19357 | }, |
| 19358 | .write = write_jedec_1, |
| 19359 | .read = read_memmapped, |
| 19360 | .voltage = {2700, 3600}, |
| 19361 | }, |
| 19362 | |
| 19363 | { |
| 19364 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 19365 | .name = "W29GL064CT", |
| 19366 | .bustype = BUS_PARALLEL, |
| 19367 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 19368 | .model_id = WINBOND_W29GL064CT, |
| 19369 | .total_size = 8192, |
| 19370 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 19371 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 19372 | .tested = TEST_UNTESTED, |
| 19373 | .probe = probe_jedec_29gl, |
| 19374 | .probe_timing = TIMING_ZERO, |
| 19375 | .block_erasers = |
| 19376 | { |
| 19377 | { |
| 19378 | .eraseblocks = { |
| 19379 | {64 * 1024, 127}, |
| 19380 | {8 * 1024, 8}, |
| 19381 | }, |
| 19382 | .block_erase = erase_sector_jedec, |
| 19383 | }, { |
| 19384 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 19385 | .block_erase = erase_chip_block_jedec, |
| 19386 | }, |
| 19387 | }, |
| 19388 | .write = write_jedec_1, |
| 19389 | .read = read_memmapped, |
| 19390 | .voltage = {2700, 3600}, |
| 19391 | }, |
| 19392 | |
| 19393 | { |
| 19394 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 19395 | .name = "W29GL128C", |
| 19396 | .bustype = BUS_PARALLEL, |
| 19397 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 19398 | .model_id = WINBOND_W29GL128CHL, |
| 19399 | .total_size = 16384, |
| 19400 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 19401 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 19402 | .tested = TEST_UNTESTED, |
| 19403 | .probe = probe_jedec_29gl, |
| 19404 | .probe_timing = TIMING_ZERO, |
| 19405 | .block_erasers = |
| 19406 | { |
| 19407 | { |
| 19408 | .eraseblocks = { {128 * 1024, 128} }, |
| 19409 | .block_erase = erase_sector_jedec, |
| 19410 | }, { |
| 19411 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 19412 | .block_erase = erase_chip_block_jedec, |
| 19413 | }, |
| 19414 | }, |
| 19415 | .write = write_jedec_1, |
| 19416 | .read = read_memmapped, |
| 19417 | .voltage = {2700, 3600}, |
| 19418 | }, |
| 19419 | |
| 19420 | { |
| 19421 | .vendor = "Winbond", |
Kyösti Mälkki | c31243e | 2012-10-28 01:50:08 +0000 | [diff] [blame] | 19422 | .name = "W39F010", |
| 19423 | .bustype = BUS_PARALLEL, |
| 19424 | .manufacture_id = WINBOND_ID, |
| 19425 | .model_id = WINBOND_W39F010, |
| 19426 | .total_size = 128, |
| 19427 | .page_size = 4 * 1024, |
| 19428 | .feature_bits = FEATURE_EITHER_RESET, |
| 19429 | .tested = TEST_OK_PREW, |
| 19430 | .probe = probe_jedec, |
| 19431 | .probe_timing = 10, |
| 19432 | .block_erasers = |
| 19433 | { |
| 19434 | { |
| 19435 | .eraseblocks = { {4 * 1024, 32} }, |
| 19436 | .block_erase = erase_block_jedec, |
| 19437 | }, { |
| 19438 | .eraseblocks = { {128 * 1024, 1} }, |
| 19439 | .block_erase = erase_chip_block_jedec, |
| 19440 | } |
| 19441 | }, |
| 19442 | .printlock = printlock_w39f010, |
| 19443 | .write = write_jedec_1, |
| 19444 | .read = read_memmapped, |
| 19445 | .voltage = {4500, 5500}, |
| 19446 | }, |
| 19447 | |
| 19448 | { |
| 19449 | .vendor = "Winbond", |
| 19450 | .name = "W39L010", |
| 19451 | .bustype = BUS_PARALLEL, |
| 19452 | .manufacture_id = WINBOND_ID, |
| 19453 | .model_id = WINBOND_W39L010, |
| 19454 | .total_size = 128, |
| 19455 | .page_size = 4 * 1024, |
| 19456 | .feature_bits = FEATURE_EITHER_RESET, |
| 19457 | .tested = TEST_UNTESTED, |
| 19458 | .probe = probe_jedec, |
| 19459 | .probe_timing = 10, |
| 19460 | .block_erasers = |
| 19461 | { |
| 19462 | { |
| 19463 | .eraseblocks = { {4 * 1024, 32} }, |
| 19464 | .block_erase = erase_block_jedec, |
| 19465 | }, { |
| 19466 | .eraseblocks = { {128 * 1024, 1} }, |
| 19467 | .block_erase = erase_chip_block_jedec, |
| 19468 | } |
| 19469 | }, |
| 19470 | .printlock = printlock_w39l010, |
| 19471 | .write = write_jedec_1, |
| 19472 | .read = read_memmapped, |
| 19473 | .voltage = {3000, 3600}, |
| 19474 | }, |
| 19475 | |
| 19476 | { |
| 19477 | .vendor = "Winbond", |
| 19478 | .name = "W39L020", |
| 19479 | .bustype = BUS_PARALLEL, |
| 19480 | .manufacture_id = WINBOND_ID, |
| 19481 | .model_id = WINBOND_W39L020, |
| 19482 | .total_size = 256, |
| 19483 | .page_size = 4 * 1024, |
| 19484 | .feature_bits = FEATURE_EITHER_RESET, |
| 19485 | .tested = TEST_UNTESTED, |
| 19486 | .probe = probe_jedec, |
| 19487 | .probe_timing = 10, |
| 19488 | .block_erasers = |
| 19489 | { |
| 19490 | { |
| 19491 | .eraseblocks = { {4 * 1024, 64} }, |
| 19492 | .block_erase = erase_block_jedec, |
| 19493 | }, { |
| 19494 | .eraseblocks = { {64 * 1024, 4} }, |
| 19495 | .block_erase = erase_sector_jedec, |
| 19496 | }, { |
| 19497 | .eraseblocks = { {256 * 1024, 1} }, |
| 19498 | .block_erase = erase_chip_block_jedec, |
| 19499 | } |
| 19500 | }, |
| 19501 | .printlock = printlock_w39l020, |
| 19502 | .write = write_jedec_1, |
| 19503 | .read = read_memmapped, |
| 19504 | .voltage = {3000, 3600}, |
| 19505 | }, |
| 19506 | |
| 19507 | { |
| 19508 | .vendor = "Winbond", |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 19509 | .name = "W39L040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19510 | .bustype = BUS_PARALLEL, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 19511 | .manufacture_id = WINBOND_ID, |
| 19512 | .model_id = WINBOND_W39L040, |
| 19513 | .total_size = 512, |
| 19514 | .page_size = 64 * 1024, |
| 19515 | .feature_bits = FEATURE_EITHER_RESET, |
| 19516 | .tested = TEST_OK_PR, |
| 19517 | .probe = probe_jedec, |
| 19518 | .probe_timing = 10, |
| 19519 | .block_erasers = |
| 19520 | { |
| 19521 | { |
| 19522 | .eraseblocks = { {4 * 1024, 128} }, |
| 19523 | .block_erase = erase_block_jedec, |
| 19524 | }, { |
| 19525 | .eraseblocks = { {64 * 1024, 8} }, |
| 19526 | .block_erase = erase_sector_jedec, |
| 19527 | }, { |
| 19528 | .eraseblocks = { {512 * 1024, 1} }, |
| 19529 | .block_erase = erase_chip_block_jedec, |
| 19530 | } |
| 19531 | }, |
| 19532 | .printlock = printlock_w39l040, |
| 19533 | .write = write_jedec_1, |
| 19534 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 19535 | .voltage = {3000, 3600}, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 19536 | }, |
| 19537 | |
| 19538 | { |
| 19539 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19540 | .name = "W39V040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19541 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19542 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19543 | .model_id = WINBOND_W39V040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19544 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 19545 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 19546 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 19547 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19548 | .probe = probe_jedec, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 19549 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 19550 | .block_erasers = |
| 19551 | { |
| 19552 | { |
| 19553 | .eraseblocks = { {64 * 1024, 8} }, |
| 19554 | .block_erase = erase_sector_jedec, |
| 19555 | }, { |
| 19556 | .eraseblocks = { {512 * 1024, 1} }, |
| 19557 | .block_erase = erase_chip_block_jedec, |
| 19558 | } |
| 19559 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 19560 | .printlock = printlock_w39v040a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 19561 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 19562 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 19563 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 19564 | }, |
| 19565 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19566 | { |
| 19567 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 19568 | .name = "W39V040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19569 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19570 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19571 | .model_id = WINBOND_W39V040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19572 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 19573 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 19574 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 19575 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19576 | .probe = probe_jedec, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 19577 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 19578 | .block_erasers = |
| 19579 | { |
| 19580 | { |
| 19581 | .eraseblocks = { {64 * 1024, 8} }, |
| 19582 | .block_erase = erase_sector_jedec, |
| 19583 | }, { |
| 19584 | .eraseblocks = { {512 * 1024, 1} }, |
| 19585 | .block_erase = erase_chip_block_jedec, |
| 19586 | } |
| 19587 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 19588 | .printlock = printlock_w39v040b, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 19589 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 19590 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 19591 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 19592 | }, |
| 19593 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19594 | { |
| 19595 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 19596 | .name = "W39V040C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19597 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19598 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19599 | .model_id = WINBOND_W39V040C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19600 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 19601 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 19602 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 19603 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 19604 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 19605 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 19606 | .block_erasers = |
| 19607 | { |
| 19608 | { |
| 19609 | .eraseblocks = { {64 * 1024, 8} }, |
| 19610 | .block_erase = erase_sector_jedec, |
| 19611 | }, { |
| 19612 | .eraseblocks = { {512 * 1024, 1} }, |
| 19613 | .block_erase = erase_chip_block_jedec, |
| 19614 | } |
| 19615 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 19616 | .printlock = printlock_w39v040c, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 19617 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 19618 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 19619 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 19620 | }, |
| 19621 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19622 | { |
| 19623 | .vendor = "Winbond", |
| 19624 | .name = "W39V040FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19625 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19626 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19627 | .model_id = WINBOND_W39V040FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19628 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 19629 | .page_size = 64 * 1024, |
Michael Karcher | c9b6341 | 2010-05-30 16:55:18 +0000 | [diff] [blame] | 19630 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 19631 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19632 | .probe = probe_jedec, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 19633 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 19634 | .block_erasers = |
| 19635 | { |
| 19636 | { |
| 19637 | .eraseblocks = { {4 * 1024, 128} }, |
| 19638 | .block_erase = erase_block_jedec, |
| 19639 | }, { |
| 19640 | .eraseblocks = { {64 * 1024, 8} }, |
| 19641 | .block_erase = erase_sector_jedec, |
| 19642 | }, { |
| 19643 | .eraseblocks = { {512 * 1024, 1} }, |
| 19644 | .block_erase = erase_chip_block_jedec, |
| 19645 | } |
| 19646 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 19647 | .printlock = printlock_w39v040fa, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 19648 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 19649 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 19650 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 19651 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 19652 | }, |
| 19653 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19654 | { |
| 19655 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 19656 | .name = "W39V040FB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19657 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 19658 | .manufacture_id = WINBOND_ID, |
| 19659 | .model_id = WINBOND_W39V040B, |
| 19660 | .total_size = 512, |
| 19661 | .page_size = 64 * 1024, |
| 19662 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 19663 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 19664 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 19665 | .probe_timing = 10, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 19666 | .block_erasers = |
| 19667 | { |
| 19668 | { |
| 19669 | .eraseblocks = { {64 * 1024, 8} }, |
| 19670 | .block_erase = erase_sector_jedec, |
| 19671 | }, { |
| 19672 | .eraseblocks = { {512 * 1024, 1} }, |
| 19673 | .block_erase = erase_chip_block_jedec, |
| 19674 | } |
| 19675 | }, |
| 19676 | .printlock = printlock_w39v040fb, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 19677 | .unlock = unlock_regspace2_uniform_64k, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 19678 | .write = write_jedec_1, |
| 19679 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 19680 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 19681 | }, |
| 19682 | |
| 19683 | { |
| 19684 | .vendor = "Winbond", |
| 19685 | .name = "W39V040FC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19686 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 19687 | .manufacture_id = WINBOND_ID, |
| 19688 | .model_id = WINBOND_W39V040C, |
| 19689 | .total_size = 512, |
| 19690 | .page_size = 64 * 1024, |
| 19691 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 19692 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 19693 | .probe = probe_jedec, |
| 19694 | .probe_timing = 10, |
| 19695 | .block_erasers = |
| 19696 | { |
| 19697 | { |
| 19698 | .eraseblocks = { {64 * 1024, 8} }, |
| 19699 | .block_erase = erase_sector_jedec, |
| 19700 | }, { |
| 19701 | .eraseblocks = { {512 * 1024, 1} }, |
| 19702 | .block_erase = erase_chip_block_jedec, |
| 19703 | } |
| 19704 | }, |
| 19705 | .printlock = printlock_w39v040fc, |
| 19706 | .write = write_jedec_1, |
| 19707 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 19708 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 19709 | }, |
| 19710 | |
| 19711 | { |
| 19712 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19713 | .name = "W39V080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19714 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19715 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19716 | .model_id = WINBOND_W39V080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19717 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 19718 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 19719 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 19720 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19721 | .probe = probe_jedec, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 19722 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 19723 | .block_erasers = |
| 19724 | { |
| 19725 | { |
| 19726 | .eraseblocks = { {64 * 1024, 16} }, |
| 19727 | .block_erase = erase_sector_jedec, |
| 19728 | }, { |
| 19729 | .eraseblocks = { {1024 * 1024, 1} }, |
| 19730 | .block_erase = erase_chip_block_jedec, |
| 19731 | } |
| 19732 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 19733 | .printlock = printlock_w39v080a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 19734 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 19735 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 19736 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 19737 | }, |
| 19738 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19739 | { |
| 19740 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19741 | .name = "W39V080FA", |
| 19742 | .bustype = BUS_FWH, |
| 19743 | .manufacture_id = WINBOND_ID, |
| 19744 | .model_id = WINBOND_W39V080FA, |
| 19745 | .total_size = 1024, |
| 19746 | .page_size = 64 * 1024, |
| 19747 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
| 19748 | .tested = TEST_OK_PREW, |
| 19749 | .probe = probe_jedec, |
| 19750 | .probe_timing = 10, |
| 19751 | .block_erasers = |
| 19752 | { |
| 19753 | { |
| 19754 | .eraseblocks = { {64 * 1024, 16} }, |
| 19755 | .block_erase = erase_sector_jedec, |
| 19756 | }, { |
| 19757 | .eraseblocks = { {1024 * 1024, 1} }, |
| 19758 | .block_erase = erase_chip_block_jedec, |
| 19759 | } |
| 19760 | }, |
| 19761 | .printlock = printlock_w39v080fa, |
| 19762 | .unlock = unlock_regspace2_uniform_64k, |
| 19763 | .write = write_jedec_1, |
| 19764 | .read = read_memmapped, |
| 19765 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
| 19766 | }, |
| 19767 | |
| 19768 | { |
| 19769 | .vendor = "Winbond", |
| 19770 | .name = "W39V080FA (dual mode)", |
| 19771 | .bustype = BUS_FWH, |
| 19772 | .manufacture_id = WINBOND_ID, |
| 19773 | .model_id = WINBOND_W39V080FA_DM, |
| 19774 | .total_size = 512, |
| 19775 | .page_size = 64 * 1024, |
| 19776 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
| 19777 | .tested = TEST_UNTESTED, |
| 19778 | .probe = probe_jedec, |
| 19779 | .probe_timing = 10, |
| 19780 | .block_erasers = |
| 19781 | { |
| 19782 | { |
| 19783 | .eraseblocks = { {64 * 1024, 8} }, |
| 19784 | .block_erase = erase_sector_jedec, |
| 19785 | }, { |
| 19786 | .eraseblocks = { {512 * 1024, 1} }, |
| 19787 | .block_erase = erase_chip_block_jedec, |
| 19788 | } |
| 19789 | }, |
| 19790 | .printlock = printlock_w39v080fa_dual, |
| 19791 | .write = write_jedec_1, |
| 19792 | .read = read_memmapped, |
| 19793 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
| 19794 | }, |
| 19795 | |
| 19796 | { |
| 19797 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19798 | .name = "W49F002U/N", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19799 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19800 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19801 | .model_id = WINBOND_W49F002U, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19802 | .total_size = 256, |
| 19803 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 19804 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 19805 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19806 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 19807 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 19808 | .block_erasers = |
| 19809 | { |
| 19810 | { |
| 19811 | .eraseblocks = { |
| 19812 | {128 * 1024, 1}, |
| 19813 | {96 * 1024, 1}, |
| 19814 | {8 * 1024, 2}, |
| 19815 | {16 * 1024, 1}, |
| 19816 | }, |
| 19817 | .block_erase = erase_sector_jedec, |
| 19818 | }, { |
| 19819 | .eraseblocks = { {256 * 1024, 1} }, |
| 19820 | .block_erase = erase_chip_block_jedec, |
| 19821 | } |
| 19822 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 19823 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 19824 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 19825 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 19826 | }, |
| 19827 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19828 | { |
| 19829 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 19830 | .name = "W49F020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19831 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 19832 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19833 | .model_id = WINBOND_W49F020, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 19834 | .total_size = 256, |
| 19835 | .page_size = 128, |
| 19836 | .feature_bits = FEATURE_EITHER_RESET, |
| 19837 | .tested = TEST_OK_PROBE, |
| 19838 | .probe = probe_jedec, |
| 19839 | .probe_timing = 10, |
| 19840 | .block_erasers = |
| 19841 | { |
| 19842 | { |
| 19843 | .eraseblocks = { {256 * 1024, 1} }, |
| 19844 | .block_erase = erase_chip_block_jedec, |
| 19845 | } |
| 19846 | }, |
| 19847 | .write = write_jedec_1, |
| 19848 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 19849 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 19850 | }, |
| 19851 | |
| 19852 | { |
| 19853 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19854 | .name = "W49V002A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19855 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19856 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19857 | .model_id = WINBOND_W49V002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19858 | .total_size = 256, |
| 19859 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 19860 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 19861 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19862 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 19863 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 19864 | .block_erasers = |
| 19865 | { |
| 19866 | { |
| 19867 | .eraseblocks = { |
| 19868 | {64 * 1024, 3}, |
| 19869 | {32 * 1024, 1}, |
| 19870 | {8 * 1024, 2}, |
| 19871 | {16 * 1024, 1}, |
| 19872 | }, |
| 19873 | .block_erase = erase_sector_jedec, |
| 19874 | }, { |
| 19875 | .eraseblocks = { {256 * 1024, 1} }, |
| 19876 | .block_erase = erase_chip_block_jedec, |
| 19877 | } |
| 19878 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 19879 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 19880 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 19881 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 19882 | }, |
| 19883 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19884 | { |
| 19885 | .vendor = "Winbond", |
| 19886 | .name = "W49V002FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19887 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19888 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19889 | .model_id = WINBOND_W49V002FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19890 | .total_size = 256, |
| 19891 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 19892 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 19893 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19894 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 19895 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 19896 | .block_erasers = |
| 19897 | { |
| 19898 | { |
| 19899 | .eraseblocks = { |
| 19900 | {64 * 1024, 3}, |
| 19901 | {32 * 1024, 1}, |
| 19902 | {8 * 1024, 2}, |
| 19903 | {16 * 1024, 1}, |
| 19904 | }, |
| 19905 | .block_erase = erase_sector_jedec, |
| 19906 | }, { |
| 19907 | .eraseblocks = { {256 * 1024, 1} }, |
| 19908 | .block_erase = erase_chip_block_jedec, |
| 19909 | } |
| 19910 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 19911 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 19912 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 19913 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 19914 | }, |
| 19915 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19916 | { |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 19917 | .vendor = "XMC", |
| 19918 | .name = "XM25QH128C", |
| 19919 | .bustype = BUS_SPI, |
| 19920 | .manufacture_id = ST_ID, |
| 19921 | .model_id = XMC_XM25QH128C, |
| 19922 | .total_size = 16384, |
| 19923 | .page_size = 256, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 19924 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI | FEATURE_WRSR2, |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 19925 | .tested = TEST_UNTESTED, |
| 19926 | .probe = probe_spi_rdid, |
| 19927 | .probe_timing = TIMING_ZERO, |
| 19928 | .block_erasers = |
| 19929 | { |
| 19930 | { |
| 19931 | .eraseblocks = { {4 * 1024, 4096} }, |
| 19932 | .block_erase = spi_block_erase_20, |
| 19933 | }, { |
| 19934 | .eraseblocks = { {32 * 1024, 512} }, |
| 19935 | .block_erase = spi_block_erase_52, |
| 19936 | }, { |
| 19937 | .eraseblocks = { {64 * 1024, 256} }, |
| 19938 | .block_erase = spi_block_erase_d8, |
| 19939 | }, { |
| 19940 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 19941 | .block_erase = spi_block_erase_60, |
| 19942 | }, { |
| 19943 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 19944 | .block_erase = spi_block_erase_c7, |
| 19945 | } |
| 19946 | }, |
| 19947 | .printlock = spi_prettyprint_status_register_plain, |
| 19948 | .unlock = spi_disable_blockprotect, |
| 19949 | .write = spi_chip_write_256, |
| 19950 | .read = spi_chip_read, |
| 19951 | .voltage = {2700, 3600}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 19952 | .reg_bits = |
| 19953 | { |
| 19954 | .srp = {STATUS1, 7, RW}, |
| 19955 | .srl = {STATUS2, 0, RW}, |
| 19956 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 19957 | .tb = {STATUS1, 5, RW}, |
| 19958 | .sec = {STATUS1, 6, RW}, |
| 19959 | .cmp = {STATUS2, 6, RW}, |
| 19960 | }, |
| 19961 | .decode_range = decode_range_spi25, |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 19962 | }, |
| 19963 | |
| 19964 | { |
| 19965 | .vendor = "XMC", |
| 19966 | .name = "XM25QH256C", |
| 19967 | .bustype = BUS_SPI, |
| 19968 | .manufacture_id = ST_ID, |
| 19969 | .model_id = XMC_XM25QH256C, |
| 19970 | .total_size = 32768, |
| 19971 | .page_size = 256, |
| 19972 | /* supports SFDP */ |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 19973 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN | FEATURE_WRSR2, |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 19974 | .tested = TEST_UNTESTED, |
| 19975 | .probe = probe_spi_rdid, |
| 19976 | .probe_timing = TIMING_ZERO, |
| 19977 | .block_erasers = |
| 19978 | { |
| 19979 | { |
| 19980 | .eraseblocks = { {4 * 1024, 8192} }, |
| 19981 | .block_erase = spi_block_erase_21, |
| 19982 | }, { |
| 19983 | .eraseblocks = { {4 * 1024, 8192} }, |
| 19984 | .block_erase = spi_block_erase_20, |
| 19985 | }, { |
| 19986 | .eraseblocks = { {32 * 1024, 1024} }, |
| 19987 | .block_erase = spi_block_erase_52, |
| 19988 | }, { |
| 19989 | .eraseblocks = { {64 * 1024, 512} }, |
| 19990 | .block_erase = spi_block_erase_dc, |
| 19991 | }, { |
| 19992 | .eraseblocks = { {64 * 1024, 512} }, |
| 19993 | .block_erase = spi_block_erase_d8, |
| 19994 | }, { |
| 19995 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 19996 | .block_erase = spi_block_erase_60, |
| 19997 | }, { |
| 19998 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 19999 | .block_erase = spi_block_erase_c7, |
| 20000 | } |
| 20001 | }, |
| 20002 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 20003 | .unlock = spi_disable_blockprotect, |
| 20004 | .write = spi_chip_write_256, |
| 20005 | .read = spi_chip_read, |
| 20006 | .voltage = {2700, 3600}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 20007 | .reg_bits = |
| 20008 | { |
| 20009 | .srp = {STATUS1, 7, RW}, |
| 20010 | .srl = {STATUS2, 0, RW}, |
| 20011 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}}, |
| 20012 | .tb = {STATUS1, 6, RW}, |
| 20013 | }, |
| 20014 | .decode_range = decode_range_spi25, |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 20015 | }, |
| 20016 | |
| 20017 | { |
| 20018 | .vendor = "XMC", |
| 20019 | .name = "XM25QH64C", |
| 20020 | .bustype = BUS_SPI, |
| 20021 | .manufacture_id = ST_ID, |
| 20022 | .model_id = XMC_XM25QH64C, |
| 20023 | .total_size = 8192, |
| 20024 | .page_size = 256, |
| 20025 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 20026 | .tested = TEST_UNTESTED, |
| 20027 | .probe = probe_spi_rdid, |
| 20028 | .probe_timing = TIMING_ZERO, |
| 20029 | .block_erasers = |
| 20030 | { |
| 20031 | { |
| 20032 | .eraseblocks = { {4 * 1024, 2048} }, |
| 20033 | .block_erase = spi_block_erase_20, |
| 20034 | }, { |
| 20035 | .eraseblocks = { {32 * 1024, 256} }, |
| 20036 | .block_erase = spi_block_erase_52, |
| 20037 | }, { |
| 20038 | .eraseblocks = { {64 * 1024, 128} }, |
| 20039 | .block_erase = spi_block_erase_d8, |
| 20040 | }, { |
| 20041 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 20042 | .block_erase = spi_block_erase_60, |
| 20043 | }, { |
| 20044 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 20045 | .block_erase = spi_block_erase_c7, |
| 20046 | } |
| 20047 | }, |
| 20048 | .printlock = spi_prettyprint_status_register_plain, |
| 20049 | .unlock = spi_disable_blockprotect, |
| 20050 | .write = spi_chip_write_256, |
| 20051 | .read = spi_chip_read, |
| 20052 | .voltage = {2700, 3600}, |
| 20053 | }, |
| 20054 | |
| 20055 | { |
| 20056 | .vendor = "XMC", |
| 20057 | .name = "XM25QU128C", |
| 20058 | .bustype = BUS_SPI, |
| 20059 | .manufacture_id = ST_ID, |
| 20060 | .model_id = XMC_XM25QU128C, |
| 20061 | .total_size = 16384, |
| 20062 | .page_size = 256, |
| 20063 | /* supports SFDP */ |
| 20064 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 20065 | .tested = TEST_UNTESTED, |
| 20066 | .probe = probe_spi_rdid, |
| 20067 | .probe_timing = TIMING_ZERO, |
| 20068 | .block_erasers = |
| 20069 | { |
| 20070 | { |
| 20071 | .eraseblocks = { {4 * 1024, 4096} }, |
| 20072 | .block_erase = spi_block_erase_20, |
| 20073 | }, { |
| 20074 | .eraseblocks = { {32 * 1024, 512} }, |
| 20075 | .block_erase = spi_block_erase_52, |
| 20076 | }, { |
| 20077 | .eraseblocks = { {64 * 1024, 256} }, |
| 20078 | .block_erase = spi_block_erase_d8, |
| 20079 | }, { |
| 20080 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 20081 | .block_erase = spi_block_erase_60, |
| 20082 | }, { |
| 20083 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 20084 | .block_erase = spi_block_erase_c7, |
| 20085 | } |
| 20086 | }, |
| 20087 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 20088 | .unlock = spi_disable_blockprotect, |
| 20089 | .write = spi_chip_write_256, |
| 20090 | .read = spi_chip_read, |
| 20091 | .voltage = {1650, 1950}, |
| 20092 | }, |
| 20093 | |
| 20094 | { |
| 20095 | .vendor = "XMC", |
| 20096 | .name = "XM25QU256C", |
| 20097 | .bustype = BUS_SPI, |
| 20098 | .manufacture_id = ST_ID, |
| 20099 | .model_id = XMC_XM25QU256C, |
| 20100 | .total_size = 32768, |
| 20101 | .page_size = 256, |
| 20102 | /* supports SFDP */ |
| 20103 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 20104 | .tested = TEST_UNTESTED, |
| 20105 | .probe = probe_spi_rdid, |
| 20106 | .probe_timing = TIMING_ZERO, |
| 20107 | .block_erasers = |
| 20108 | { |
| 20109 | { |
| 20110 | .eraseblocks = { {4 * 1024, 8192} }, |
| 20111 | .block_erase = spi_block_erase_21, |
| 20112 | }, { |
| 20113 | .eraseblocks = { {4 * 1024, 8192} }, |
| 20114 | .block_erase = spi_block_erase_20, |
| 20115 | }, { |
| 20116 | .eraseblocks = { {32 * 1024, 1024} }, |
| 20117 | .block_erase = spi_block_erase_52, |
| 20118 | }, { |
| 20119 | .eraseblocks = { {64 * 1024, 512} }, |
| 20120 | .block_erase = spi_block_erase_dc, |
| 20121 | }, { |
| 20122 | .eraseblocks = { {64 * 1024, 512} }, |
| 20123 | .block_erase = spi_block_erase_d8, |
| 20124 | }, { |
| 20125 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 20126 | .block_erase = spi_block_erase_60, |
| 20127 | }, { |
| 20128 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 20129 | .block_erase = spi_block_erase_c7, |
| 20130 | } |
| 20131 | }, |
| 20132 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 20133 | .unlock = spi_disable_blockprotect, |
| 20134 | .write = spi_chip_write_256, |
| 20135 | .read = spi_chip_read, |
| 20136 | .voltage = {1650, 1950}, |
| 20137 | }, |
| 20138 | |
| 20139 | { |
| 20140 | .vendor = "XMC", |
| 20141 | .name = "XM25QU64C", |
| 20142 | .bustype = BUS_SPI, |
| 20143 | .manufacture_id = ST_ID, |
| 20144 | .model_id = XMC_XM25QU64C, |
| 20145 | .total_size = 8192, |
| 20146 | .page_size = 256, |
| 20147 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 20148 | .tested = TEST_UNTESTED, |
| 20149 | .probe = probe_spi_rdid, |
| 20150 | .probe_timing = TIMING_ZERO, |
| 20151 | .block_erasers = |
| 20152 | { |
| 20153 | { |
| 20154 | .eraseblocks = { {4 * 1024, 2048} }, |
| 20155 | .block_erase = spi_block_erase_20, |
| 20156 | }, { |
| 20157 | .eraseblocks = { {32 * 1024, 256} }, |
| 20158 | .block_erase = spi_block_erase_52, |
| 20159 | }, { |
| 20160 | .eraseblocks = { {64 * 1024, 128} }, |
| 20161 | .block_erase = spi_block_erase_d8, |
| 20162 | }, { |
| 20163 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 20164 | .block_erase = spi_block_erase_60, |
| 20165 | }, { |
| 20166 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 20167 | .block_erase = spi_block_erase_c7, |
| 20168 | } |
| 20169 | }, |
| 20170 | .printlock = spi_prettyprint_status_register_plain, |
| 20171 | .unlock = spi_disable_blockprotect, |
| 20172 | .write = spi_chip_write_256, |
| 20173 | .read = spi_chip_read, |
| 20174 | .voltage = {1650, 1950}, |
| 20175 | }, |
| 20176 | |
| 20177 | { |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 20178 | .vendor = "Zetta Device", |
| 20179 | .name = "ZD25D20", |
| 20180 | .bustype = BUS_SPI, |
| 20181 | .manufacture_id = ZETTADEVICE_ID, |
| 20182 | .model_id = ZETTADEVICE_ZD25D20, |
| 20183 | .total_size = 256, |
| 20184 | .page_size = 256, |
| 20185 | .feature_bits = FEATURE_WRSR_WREN, |
| 20186 | .tested = TEST_UNTESTED, |
| 20187 | .probe = probe_spi_rdid, |
| 20188 | .probe_timing = TIMING_ZERO, |
| 20189 | .block_erasers = |
David Hendricks | a72d5a9 | 2018-02-11 17:58:44 -0800 | [diff] [blame] | 20190 | { |
| 20191 | { |
| 20192 | .eraseblocks = { {4 * 1024, 64} }, |
| 20193 | .block_erase = spi_block_erase_20, |
| 20194 | }, { |
| 20195 | .eraseblocks = { {32 * 1024, 8} }, |
| 20196 | .block_erase = spi_block_erase_52, |
| 20197 | }, { |
| 20198 | .eraseblocks = { {64 * 1024, 4} }, |
| 20199 | .block_erase = spi_block_erase_d8, |
| 20200 | }, { |
| 20201 | .eraseblocks = { {256 * 1024, 1} }, |
| 20202 | .block_erase = spi_block_erase_60, |
| 20203 | }, { |
| 20204 | .eraseblocks = { {256 * 1024, 1} }, |
| 20205 | .block_erase = spi_block_erase_c7, |
| 20206 | } |
| 20207 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 20208 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 20209 | .unlock = spi_disable_blockprotect, |
| 20210 | .write = spi_chip_write_256, |
| 20211 | .read = spi_chip_read, |
| 20212 | .voltage = {2700, 3600}, |
David Hendricks | a72d5a9 | 2018-02-11 17:58:44 -0800 | [diff] [blame] | 20213 | }, |
| 20214 | |
| 20215 | { |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 20216 | .vendor = "Zetta Device", |
| 20217 | .name = "ZD25D40", |
| 20218 | .bustype = BUS_SPI, |
| 20219 | .manufacture_id = ZETTADEVICE_ID, |
| 20220 | .model_id = ZETTADEVICE_ZD25D40, |
| 20221 | .total_size = 512, |
| 20222 | .page_size = 256, |
| 20223 | .feature_bits = FEATURE_WRSR_WREN, |
| 20224 | .tested = TEST_UNTESTED, |
| 20225 | .probe = probe_spi_rdid, |
| 20226 | .probe_timing = TIMING_ZERO, |
| 20227 | .block_erasers = |
nybash | cbb46e2 | 2018-02-11 17:53:49 -0800 | [diff] [blame] | 20228 | { |
| 20229 | { |
| 20230 | .eraseblocks = { {4 * 1024, 128} }, |
| 20231 | .block_erase = spi_block_erase_20, |
| 20232 | }, { |
| 20233 | .eraseblocks = { {32 * 1024, 16} }, |
| 20234 | .block_erase = spi_block_erase_52, |
| 20235 | }, { |
| 20236 | .eraseblocks = { {64 * 1024, 8} }, |
| 20237 | .block_erase = spi_block_erase_d8, |
| 20238 | }, { |
| 20239 | .eraseblocks = { {512 * 1024, 1} }, |
| 20240 | .block_erase = spi_block_erase_60, |
| 20241 | }, { |
| 20242 | .eraseblocks = { {512 * 1024, 1} }, |
| 20243 | .block_erase = spi_block_erase_c7, |
| 20244 | } |
| 20245 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 20246 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 20247 | .unlock = spi_disable_blockprotect, |
| 20248 | .write = spi_chip_write_256, |
| 20249 | .read = spi_chip_read, |
| 20250 | .voltage = {2700, 3600}, |
nybash | cbb46e2 | 2018-02-11 17:53:49 -0800 | [diff] [blame] | 20251 | }, |
| 20252 | |
Stefan Tauner | ac1b4c8 | 2012-02-17 14:51:04 +0000 | [diff] [blame] | 20253 | { |
Alan Green | dd59220 | 2019-08-23 10:11:37 +1000 | [diff] [blame] | 20254 | .vendor = "Unknown", |
| 20255 | .name = "SFDP-capable chip", |
| 20256 | .bustype = BUS_SPI, |
| 20257 | .manufacture_id = GENERIC_MANUF_ID, |
| 20258 | .model_id = SFDP_DEVICE_ID, |
| 20259 | .total_size = 0, /* set by probing function */ |
| 20260 | .page_size = 0, /* set by probing function */ |
| 20261 | .feature_bits = 0, /* set by probing function */ |
| 20262 | /* We present our own "report this" text hence we do not */ |
| 20263 | /* want the default "This flash part has status UNTESTED..." */ |
| 20264 | /* text to be printed. */ |
| 20265 | .tested = TEST_OK_PREW, |
| 20266 | .probe = probe_spi_sfdp, |
| 20267 | .block_erasers = {}, /* set by probing function */ |
| 20268 | .unlock = spi_disable_blockprotect, /* is this safe? */ |
| 20269 | .write = NULL, /* set by probing function */ |
| 20270 | .read = spi_chip_read, |
| 20271 | /* FIXME: some vendor extensions define this */ |
| 20272 | .voltage = {0}, |
| 20273 | }, |
| 20274 | |
| 20275 | { |
Carl-Daniel Hailfinger | 532c717 | 2011-11-04 21:35:26 +0000 | [diff] [blame] | 20276 | .vendor = "Programmer", |
| 20277 | .name = "Opaque flash chip", |
| 20278 | .bustype = BUS_PROG, |
| 20279 | .manufacture_id = PROGMANUF_ID, |
| 20280 | .model_id = PROGDEV_ID, |
| 20281 | .total_size = 0, |
| 20282 | .page_size = 256, |
| 20283 | /* probe is assumed to work, rest will be filled in by probe */ |
| 20284 | .tested = TEST_OK_PROBE, |
| 20285 | .probe = probe_opaque, |
| 20286 | /* eraseblock sizes will be set by the probing function */ |
| 20287 | .block_erasers = |
| 20288 | { |
| 20289 | { |
| 20290 | .block_erase = erase_opaque, |
| 20291 | } |
| 20292 | }, |
| 20293 | .write = write_opaque, |
| 20294 | .read = read_opaque, |
| 20295 | }, |
| 20296 | |
| 20297 | { |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 20298 | .vendor = "AMIC", |
| 20299 | .name = "unknown AMIC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20300 | .bustype = BUS_SPI, |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 20301 | .manufacture_id = AMIC_ID, |
| 20302 | .model_id = GENERIC_DEVICE_ID, |
| 20303 | .total_size = 0, |
| 20304 | .page_size = 256, |
| 20305 | .tested = TEST_BAD_PREW, |
| 20306 | .probe = probe_spi_rdid4, |
| 20307 | .probe_timing = TIMING_ZERO, |
| 20308 | .write = NULL, |
| 20309 | .read = NULL, |
| 20310 | }, |
| 20311 | |
| 20312 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20313 | .vendor = "Atmel", |
| 20314 | .name = "unknown Atmel SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20315 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20316 | .manufacture_id = ATMEL_ID, |
| 20317 | .model_id = GENERIC_DEVICE_ID, |
| 20318 | .total_size = 0, |
| 20319 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 20320 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20321 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 20322 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20323 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 20324 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 20325 | }, |
| 20326 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20327 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 20328 | .vendor = "Eon", |
| 20329 | .name = "unknown Eon SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20330 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20331 | .manufacture_id = EON_ID_NOPREFIX, |
| 20332 | .model_id = GENERIC_DEVICE_ID, |
| 20333 | .total_size = 0, |
| 20334 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 20335 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20336 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 20337 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20338 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 20339 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 20340 | }, |
| 20341 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20342 | { |
| 20343 | .vendor = "Macronix", |
| 20344 | .name = "unknown Macronix SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20345 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 20346 | .manufacture_id = MACRONIX_ID, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20347 | .model_id = GENERIC_DEVICE_ID, |
| 20348 | .total_size = 0, |
| 20349 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 20350 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20351 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 20352 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20353 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 20354 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 20355 | }, |
| 20356 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20357 | { |
| 20358 | .vendor = "PMC", |
| 20359 | .name = "unknown PMC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20360 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20361 | .manufacture_id = PMC_ID, |
| 20362 | .model_id = GENERIC_DEVICE_ID, |
| 20363 | .total_size = 0, |
| 20364 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 20365 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20366 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 20367 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20368 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 20369 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 20370 | }, |
| 20371 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20372 | { |
| 20373 | .vendor = "SST", |
| 20374 | .name = "unknown SST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20375 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20376 | .manufacture_id = SST_ID, |
| 20377 | .model_id = GENERIC_DEVICE_ID, |
| 20378 | .total_size = 0, |
| 20379 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 20380 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20381 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 20382 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20383 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 20384 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 20385 | }, |
| 20386 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20387 | { |
| 20388 | .vendor = "ST", |
| 20389 | .name = "unknown ST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20390 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20391 | .manufacture_id = ST_ID, |
| 20392 | .model_id = GENERIC_DEVICE_ID, |
| 20393 | .total_size = 0, |
| 20394 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 20395 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20396 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 20397 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20398 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 20399 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 20400 | }, |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 20401 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 20402 | { |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 20403 | .vendor = "Sanyo", |
| 20404 | .name = "unknown Sanyo SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20405 | .bustype = BUS_SPI, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 20406 | .manufacture_id = SANYO_ID, |
| 20407 | .model_id = GENERIC_DEVICE_ID, |
| 20408 | .total_size = 0, |
| 20409 | .page_size = 256, |
| 20410 | .tested = TEST_BAD_PREW, |
| 20411 | .probe = probe_spi_rdid, |
| 20412 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 20413 | .write = NULL, |
| 20414 | .read = NULL, |
| 20415 | }, |
| 20416 | |
| 20417 | { |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 20418 | .vendor = "Winbond", |
| 20419 | .name = "unknown Winbond (ex Nexcom) SPI chip", |
| 20420 | .bustype = BUS_SPI, |
| 20421 | .manufacture_id = WINBOND_NEX_ID, |
| 20422 | .model_id = GENERIC_DEVICE_ID, |
| 20423 | .total_size = 0, |
| 20424 | .page_size = 256, |
| 20425 | .tested = TEST_BAD_PREW, |
| 20426 | .probe = probe_spi_rdid, |
| 20427 | .probe_timing = TIMING_ZERO, |
| 20428 | .write = NULL, |
| 20429 | .read = NULL, |
| 20430 | }, |
| 20431 | |
| 20432 | { |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 20433 | .vendor = "Generic", |
| 20434 | .name = "unknown SPI chip (RDID)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20435 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 20436 | .manufacture_id = GENERIC_MANUF_ID, |
| 20437 | .model_id = GENERIC_DEVICE_ID, |
| 20438 | .total_size = 0, |
| 20439 | .page_size = 256, |
| 20440 | .tested = TEST_BAD_PREW, |
| 20441 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 20442 | .write = NULL, |
| 20443 | }, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 20444 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 20445 | { |
| 20446 | .vendor = "Generic", |
| 20447 | .name = "unknown SPI chip (REMS)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20448 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 20449 | .manufacture_id = GENERIC_MANUF_ID, |
| 20450 | .model_id = GENERIC_DEVICE_ID, |
| 20451 | .total_size = 0, |
| 20452 | .page_size = 256, |
| 20453 | .tested = TEST_BAD_PREW, |
| 20454 | .probe = probe_spi_rems, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 20455 | .write = NULL, |
| 20456 | }, |
| 20457 | |
Stefan Tauner | 96658be | 2014-05-26 22:05:31 +0000 | [diff] [blame] | 20458 | {0} |
Stephan Guilloux | 72cf565 | 2009-04-21 01:46:07 +0000 | [diff] [blame] | 20459 | }; |
Stefan Tauner | 96658be | 2014-05-26 22:05:31 +0000 | [diff] [blame] | 20460 | |
| 20461 | const unsigned int flashchips_size = ARRAY_SIZE(flashchips); |