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" |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 24 | #include "writeprotect.h" |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 25 | |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 26 | /** |
Uwe Hermann | a972040 | 2009-05-21 15:55:46 +0000 | [diff] [blame] | 27 | * List of supported flash chips. |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 28 | * |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 29 | * Temporarily, this file is sorted alphabetically by vendor and name to |
Nico Huber | c3b02dc | 2023-08-12 01:13:45 +0200 | [diff] [blame] | 30 | * assist with merging the Chromium fork of flashprog. |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 31 | * |
| 32 | * 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] | 33 | * 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] | 34 | */ |
Carl-Daniel Hailfinger | 4c82318 | 2011-05-04 00:39:50 +0000 | [diff] [blame] | 35 | const struct flashchip flashchips[] = { |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 36 | |
Carl-Daniel Hailfinger | 21eedec | 2009-07-23 12:42:01 +0000 | [diff] [blame] | 37 | /* |
| 38 | * .vendor = Vendor name |
| 39 | * .name = Chip name |
| 40 | * .bustype = Supported flash bus types (Parallel, LPC...) |
| 41 | * .manufacture_id = Manufacturer chip ID |
| 42 | * .model_id = Model chip ID |
| 43 | * .total_size = Total size in (binary) kbytes |
| 44 | * .page_size = Page or eraseblock(?) size in bytes |
| 45 | * .tested = Test status |
| 46 | * .probe = Probe function |
| 47 | * .probe_timing = Probe function delay |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 48 | * .block_erasers[] = Array of erase layouts and erase functions |
| 49 | * { |
| 50 | * .eraseblocks[] = Array of { blocksize, blockcount } |
| 51 | * .block_erase = Block erase function |
| 52 | * } |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 53 | * .printlock = Chip lock status function |
| 54 | * .unlock = Chip unlock function |
Carl-Daniel Hailfinger | 21eedec | 2009-07-23 12:42:01 +0000 | [diff] [blame] | 55 | * .write = Chip write function |
| 56 | * .read = Chip read function |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 57 | * .voltage = Voltage range in millivolt |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 58 | */ |
| 59 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 60 | { |
| 61 | .vendor = "AMD", |
| 62 | .name = "Am29F002(N)BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 63 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 64 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 65 | .model_id = AMD_AM29F002BB, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 66 | .total_size = 256, |
| 67 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 68 | .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 69 | .tested = TEST_UNTESTED, |
| 70 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 71 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 72 | .block_erasers = |
| 73 | { |
| 74 | { |
| 75 | .eraseblocks = { |
| 76 | {16 * 1024, 1}, |
| 77 | {8 * 1024, 2}, |
| 78 | {32 * 1024, 1}, |
| 79 | {64 * 1024, 3}, |
| 80 | }, |
| 81 | .block_erase = erase_sector_jedec, |
| 82 | }, { |
| 83 | .eraseblocks = { {256 * 1024, 1} }, |
| 84 | .block_erase = erase_chip_block_jedec, |
| 85 | }, |
| 86 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 87 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 88 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 89 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 90 | .prepare_access = prepare_memory_access, |
| 91 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 92 | }, |
| 93 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 94 | { |
| 95 | .vendor = "AMD", |
| 96 | .name = "Am29F002(N)BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 97 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 98 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 99 | .model_id = AMD_AM29F002BT, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 100 | .total_size = 256, |
| 101 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 102 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA, |
| 103 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 104 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 105 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 106 | .block_erasers = |
| 107 | { |
| 108 | { |
| 109 | .eraseblocks = { |
| 110 | {64 * 1024, 3}, |
| 111 | {32 * 1024, 1}, |
| 112 | {8 * 1024, 2}, |
| 113 | {16 * 1024, 1}, |
| 114 | }, |
| 115 | .block_erase = erase_sector_jedec, |
| 116 | }, { |
| 117 | .eraseblocks = { {256 * 1024, 1} }, |
| 118 | .block_erase = erase_chip_block_jedec, |
| 119 | }, |
| 120 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 121 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 122 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 123 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 124 | .prepare_access = prepare_memory_access, |
| 125 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 126 | }, |
| 127 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 128 | { |
| 129 | .vendor = "AMD", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 130 | .name = "Am29F010", |
| 131 | .bustype = BUS_PARALLEL, |
| 132 | .manufacture_id = AMD_ID, |
| 133 | .model_id = AMD_AM29F010, |
| 134 | .total_size = 128, |
| 135 | .page_size = 16 * 1024, |
| 136 | .feature_bits = FEATURE_SHORT_RESET, |
| 137 | .tested = TEST_UNTESTED, |
| 138 | .probe = probe_jedec, |
| 139 | .probe_timing = TIMING_ZERO, |
| 140 | .block_erasers = |
| 141 | { |
| 142 | { |
| 143 | .eraseblocks = { {16 * 1024, 8} }, |
| 144 | .block_erase = erase_sector_jedec, |
| 145 | }, { |
| 146 | .eraseblocks = { {128 * 1024, 1} }, |
| 147 | .block_erase = erase_chip_block_jedec, |
| 148 | }, |
| 149 | }, |
| 150 | .write = write_jedec_1, |
| 151 | .read = read_memmapped, |
| 152 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 153 | .prepare_access = prepare_memory_access, |
| 154 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 155 | }, |
| 156 | |
| 157 | { |
| 158 | .vendor = "AMD", |
| 159 | .name = "Am29F010A/B", |
| 160 | .bustype = BUS_PARALLEL, |
| 161 | .manufacture_id = AMD_ID, |
| 162 | .model_id = AMD_AM29F010, |
| 163 | .total_size = 128, |
| 164 | .page_size = 16 * 1024, |
| 165 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Alan Green | a4e579f | 2019-07-24 14:18:39 +1000 | [diff] [blame] | 166 | .tested = TEST_OK_PRE, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 167 | .probe = probe_jedec, |
| 168 | .probe_timing = TIMING_ZERO, |
| 169 | .block_erasers = |
| 170 | { |
| 171 | { |
| 172 | .eraseblocks = { {16 * 1024, 8} }, |
| 173 | .block_erase = erase_sector_jedec, |
| 174 | }, { |
| 175 | .eraseblocks = { {128 * 1024, 1} }, |
| 176 | .block_erase = erase_chip_block_jedec, |
| 177 | }, |
| 178 | }, |
| 179 | .write = write_jedec_1, |
| 180 | .read = read_memmapped, |
| 181 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 182 | .prepare_access = prepare_memory_access, |
| 183 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 184 | }, |
| 185 | |
| 186 | { |
| 187 | .vendor = "AMD", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 188 | .name = "Am29F016D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 189 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 190 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 191 | .model_id = AMD_AM29F016D, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 192 | .total_size = 2 * 1024, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 193 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 194 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 195 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 196 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 197 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 198 | .block_erasers = |
| 199 | { |
| 200 | { |
| 201 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 202 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 203 | }, { |
| 204 | .eraseblocks = { {2048 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 205 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 206 | }, |
| 207 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 208 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 209 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 210 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 211 | .prepare_access = prepare_memory_access, |
| 212 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 213 | }, |
| 214 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 215 | { |
| 216 | .vendor = "AMD", |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 217 | .name = "Am29F040", |
| 218 | .bustype = BUS_PARALLEL, |
| 219 | .manufacture_id = AMD_ID, |
| 220 | .model_id = AMD_AM29F040, |
| 221 | .total_size = 512, |
| 222 | .page_size = 64 * 1024, |
| 223 | .feature_bits = FEATURE_EITHER_RESET, |
| 224 | .tested = TEST_UNTESTED, |
| 225 | .probe = probe_jedec, |
| 226 | .probe_timing = TIMING_ZERO, |
| 227 | .block_erasers = |
| 228 | { |
| 229 | { |
| 230 | .eraseblocks = { {64 * 1024, 8} }, |
| 231 | .block_erase = erase_sector_jedec, |
| 232 | }, { |
| 233 | .eraseblocks = { {512 * 1024, 1} }, |
| 234 | .block_erase = erase_chip_block_jedec, |
| 235 | }, |
| 236 | }, |
| 237 | .write = write_jedec_1, |
| 238 | .read = read_memmapped, |
| 239 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 240 | .prepare_access = prepare_memory_access, |
| 241 | .finish_access = finish_memory_access, |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 242 | }, |
| 243 | |
| 244 | { |
| 245 | .vendor = "AMD", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 246 | .name = "Am29F040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 247 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 248 | .manufacture_id = AMD_ID, |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 249 | .model_id = AMD_AM29F040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 250 | .total_size = 512, |
| 251 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 252 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 253 | .tested = TEST_UNTESTED, |
| 254 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 255 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 256 | .block_erasers = |
| 257 | { |
| 258 | { |
| 259 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 260 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 261 | }, { |
| 262 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 263 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 264 | }, |
| 265 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 266 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 267 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 268 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 269 | .prepare_access = prepare_memory_access, |
| 270 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 271 | }, |
| 272 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 273 | { |
| 274 | .vendor = "AMD", |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 275 | .name = "Am29F080", |
| 276 | .bustype = BUS_PARALLEL, |
| 277 | .manufacture_id = AMD_ID, |
| 278 | .model_id = AMD_AM29F080, |
| 279 | .total_size = 1024, |
| 280 | .page_size = 64 * 1024, |
| 281 | .feature_bits = FEATURE_EITHER_RESET, |
| 282 | .tested = TEST_UNTESTED, |
| 283 | .probe = probe_jedec, |
| 284 | .probe_timing = TIMING_ZERO, |
| 285 | .block_erasers = |
| 286 | { |
| 287 | { |
| 288 | .eraseblocks = { {64 * 1024, 16} }, |
| 289 | .block_erase = erase_sector_jedec, |
| 290 | }, { |
| 291 | .eraseblocks = { {1024 * 1024, 1} }, |
| 292 | .block_erase = erase_chip_block_jedec, |
| 293 | }, |
| 294 | }, |
| 295 | .write = write_jedec_1, |
| 296 | .read = read_memmapped, |
| 297 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 298 | .prepare_access = prepare_memory_access, |
| 299 | .finish_access = finish_memory_access, |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 300 | }, |
| 301 | |
| 302 | { |
| 303 | .vendor = "AMD", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 304 | .name = "Am29F080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 305 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | 5bae438 | 2009-06-02 00:38:14 +0000 | [diff] [blame] | 306 | .manufacture_id = AMD_ID, |
Stefan Tauner | d1ca1e8 | 2016-01-31 23:17:35 +0000 | [diff] [blame] | 307 | .model_id = AMD_AM29F080, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 308 | .total_size = 1024, |
| 309 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 310 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 311 | .tested = TEST_UNTESTED, |
| 312 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 313 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 314 | .block_erasers = |
| 315 | { |
| 316 | { |
| 317 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 318 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 319 | }, { |
| 320 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 321 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 322 | }, |
| 323 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 324 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 325 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 326 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 327 | .prepare_access = prepare_memory_access, |
| 328 | .finish_access = finish_memory_access, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 329 | }, |
| 330 | |
| 331 | { |
| 332 | .vendor = "AMD", |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 333 | .name = "Am29LV001BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 334 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 335 | .manufacture_id = AMD_ID, |
| 336 | .model_id = AMD_AM29LV001BB, |
| 337 | .total_size = 128, |
| 338 | .page_size = 64 * 1024, /* unused */ |
| 339 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 340 | .tested = TEST_OK_PREW, |
| 341 | .probe = probe_jedec, |
| 342 | .probe_timing = TIMING_ZERO, |
| 343 | .block_erasers = |
| 344 | { |
| 345 | { |
| 346 | .eraseblocks = { |
| 347 | {8 * 1024, 1}, |
| 348 | {4 * 1024, 2}, |
| 349 | {16 * 1024, 7}, |
| 350 | }, |
| 351 | .block_erase = erase_sector_jedec, |
| 352 | }, { |
| 353 | .eraseblocks = { {128 * 1024, 1} }, |
| 354 | .block_erase = erase_chip_block_jedec, |
| 355 | }, |
| 356 | }, |
| 357 | .write = write_jedec_1, |
| 358 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 359 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 360 | .prepare_access = prepare_memory_access, |
| 361 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 362 | }, |
| 363 | |
| 364 | { |
| 365 | .vendor = "AMD", |
| 366 | .name = "Am29LV001BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 367 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 368 | .manufacture_id = AMD_ID, |
| 369 | .model_id = AMD_AM29LV001BT, |
| 370 | .total_size = 128, |
| 371 | .page_size = 64 * 1024, /* unused */ |
| 372 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 373 | .tested = TEST_UNTESTED, |
| 374 | .probe = probe_jedec, |
| 375 | .probe_timing = TIMING_ZERO, |
| 376 | .block_erasers = |
| 377 | { |
| 378 | { |
| 379 | .eraseblocks = { |
| 380 | {16 * 1024, 7}, |
| 381 | {4 * 1024, 2}, |
| 382 | {8 * 1024, 1}, |
| 383 | }, |
| 384 | .block_erase = erase_sector_jedec, |
| 385 | }, { |
| 386 | .eraseblocks = { {128 * 1024, 1} }, |
| 387 | .block_erase = erase_chip_block_jedec, |
| 388 | }, |
| 389 | }, |
| 390 | .write = write_jedec_1, |
| 391 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 392 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 393 | .prepare_access = prepare_memory_access, |
| 394 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 395 | }, |
| 396 | |
| 397 | { |
| 398 | .vendor = "AMD", |
| 399 | .name = "Am29LV002BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 400 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 401 | .manufacture_id = AMD_ID, |
| 402 | .model_id = AMD_AM29LV002BB, |
| 403 | .total_size = 256, |
| 404 | .page_size = 64 * 1024, /* unused */ |
| 405 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 406 | .tested = TEST_UNTESTED, |
| 407 | .probe = probe_jedec, |
| 408 | .probe_timing = TIMING_ZERO, |
| 409 | .block_erasers = |
| 410 | { |
| 411 | { |
| 412 | .eraseblocks = { |
| 413 | {16 * 1024, 1}, |
| 414 | {8 * 1024, 2}, |
| 415 | {32 * 1024, 1}, |
| 416 | {64 * 1024, 3}, |
| 417 | }, |
| 418 | .block_erase = erase_sector_jedec, |
| 419 | }, { |
| 420 | .eraseblocks = { {256 * 1024, 1} }, |
| 421 | .block_erase = erase_chip_block_jedec, |
| 422 | }, |
| 423 | }, |
| 424 | .write = write_jedec_1, |
| 425 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 426 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 427 | .prepare_access = prepare_memory_access, |
| 428 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 429 | }, |
| 430 | |
| 431 | { |
| 432 | .vendor = "AMD", |
| 433 | .name = "Am29LV002BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 434 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 435 | .manufacture_id = AMD_ID, |
| 436 | .model_id = AMD_AM29LV002BT, |
| 437 | .total_size = 256, |
| 438 | .page_size = 64 * 1024, /* unused */ |
| 439 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 440 | .tested = TEST_UNTESTED, |
| 441 | .probe = probe_jedec, |
| 442 | .probe_timing = TIMING_ZERO, |
| 443 | .block_erasers = |
| 444 | { |
| 445 | { |
| 446 | .eraseblocks = { |
| 447 | {64 * 1024, 3}, |
| 448 | {32 * 1024, 1}, |
| 449 | {8 * 1024, 2}, |
| 450 | {16 * 1024, 1}, |
| 451 | }, |
| 452 | .block_erase = erase_sector_jedec, |
| 453 | }, { |
| 454 | .eraseblocks = { {256 * 1024, 1} }, |
| 455 | .block_erase = erase_chip_block_jedec, |
| 456 | }, |
| 457 | }, |
| 458 | .write = write_jedec_1, |
| 459 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 460 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 461 | .prepare_access = prepare_memory_access, |
| 462 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 463 | }, |
| 464 | |
| 465 | { |
| 466 | .vendor = "AMD", |
| 467 | .name = "Am29LV004BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 468 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 469 | .manufacture_id = AMD_ID, |
| 470 | .model_id = AMD_AM29LV004BB, |
| 471 | .total_size = 512, |
| 472 | .page_size = 64 * 1024, /* unused */ |
| 473 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 474 | .tested = TEST_UNTESTED, |
| 475 | .probe = probe_jedec, |
| 476 | .probe_timing = TIMING_ZERO, |
| 477 | .block_erasers = |
| 478 | { |
| 479 | { |
| 480 | .eraseblocks = { |
| 481 | {16 * 1024, 1}, |
| 482 | {8 * 1024, 2}, |
| 483 | {32 * 1024, 1}, |
| 484 | {64 * 1024, 7}, |
| 485 | }, |
| 486 | .block_erase = erase_sector_jedec, |
| 487 | }, { |
| 488 | .eraseblocks = { {512 * 1024, 1} }, |
| 489 | .block_erase = erase_chip_block_jedec, |
| 490 | }, |
| 491 | }, |
| 492 | .write = write_jedec_1, |
| 493 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 494 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 495 | .prepare_access = prepare_memory_access, |
| 496 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 497 | }, |
| 498 | |
| 499 | { |
| 500 | .vendor = "AMD", |
| 501 | .name = "Am29LV004BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 502 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 503 | .manufacture_id = AMD_ID, |
| 504 | .model_id = AMD_AM29LV004BT, |
| 505 | .total_size = 512, |
| 506 | .page_size = 64 * 1024, /* unused */ |
| 507 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 508 | .tested = TEST_UNTESTED, |
| 509 | .probe = probe_jedec, |
| 510 | .probe_timing = TIMING_ZERO, |
| 511 | .block_erasers = |
| 512 | { |
| 513 | { |
| 514 | .eraseblocks = { |
| 515 | {64 * 1024, 7}, |
| 516 | {32 * 1024, 1}, |
| 517 | {8 * 1024, 2}, |
| 518 | {16 * 1024, 1}, |
| 519 | }, |
| 520 | .block_erase = erase_sector_jedec, |
| 521 | }, { |
| 522 | .eraseblocks = { {512 * 1024, 1} }, |
| 523 | .block_erase = erase_chip_block_jedec, |
| 524 | }, |
| 525 | }, |
| 526 | .write = write_jedec_1, |
| 527 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 528 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 529 | .prepare_access = prepare_memory_access, |
| 530 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 531 | }, |
| 532 | |
| 533 | { |
| 534 | .vendor = "AMD", |
| 535 | .name = "Am29LV008BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 536 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 537 | .manufacture_id = AMD_ID, |
| 538 | .model_id = AMD_AM29LV008BB, |
| 539 | .total_size = 1024, |
| 540 | .page_size = 64 * 1024, /* unused */ |
| 541 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Uwe Hermann | 09ebd52 | 2011-08-25 22:54:23 +0000 | [diff] [blame] | 542 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 543 | .probe = probe_jedec, |
| 544 | .probe_timing = TIMING_ZERO, |
| 545 | .block_erasers = |
| 546 | { |
| 547 | { |
| 548 | .eraseblocks = { |
| 549 | {16 * 1024, 1}, |
| 550 | {8 * 1024, 2}, |
| 551 | {32 * 1024, 1}, |
| 552 | {64 * 1024, 15}, |
| 553 | }, |
| 554 | .block_erase = erase_sector_jedec, |
| 555 | }, { |
| 556 | .eraseblocks = { {1024 * 1024, 1} }, |
| 557 | .block_erase = erase_chip_block_jedec, |
| 558 | }, |
| 559 | }, |
| 560 | .write = write_jedec_1, |
| 561 | .read = read_memmapped, |
Alan Green | f5ad688 | 2019-06-27 12:09:13 +1000 | [diff] [blame] | 562 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 563 | .prepare_access = prepare_memory_access, |
| 564 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 565 | }, |
| 566 | |
| 567 | { |
| 568 | .vendor = "AMD", |
| 569 | .name = "Am29LV008BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 570 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 571 | .manufacture_id = AMD_ID, |
| 572 | .model_id = AMD_AM29LV008BT, |
| 573 | .total_size = 1024, |
| 574 | .page_size = 64 * 1024, /* unused */ |
| 575 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 576 | .tested = TEST_UNTESTED, |
| 577 | .probe = probe_jedec, |
| 578 | .probe_timing = TIMING_ZERO, |
| 579 | .block_erasers = |
| 580 | { |
| 581 | { |
| 582 | .eraseblocks = { |
| 583 | {64 * 1024, 15}, |
| 584 | {32 * 1024, 1}, |
| 585 | {8 * 1024, 2}, |
| 586 | {16 * 1024, 1}, |
| 587 | }, |
| 588 | .block_erase = erase_sector_jedec, |
| 589 | }, { |
| 590 | .eraseblocks = { {1024 * 1024, 1} }, |
| 591 | .block_erase = erase_chip_block_jedec, |
| 592 | }, |
| 593 | }, |
| 594 | .write = write_jedec_1, |
| 595 | .read = read_memmapped, |
Alan Green | f5ad688 | 2019-06-27 12:09:13 +1000 | [diff] [blame] | 596 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 597 | .prepare_access = prepare_memory_access, |
| 598 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 599 | }, |
| 600 | |
| 601 | { |
| 602 | .vendor = "AMD", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 603 | .name = "Am29LV040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 604 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 605 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 606 | .model_id = AMD_AM29LV040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 607 | .total_size = 512, |
| 608 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 609 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 610 | .tested = TEST_OK_PRE, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 611 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 612 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 613 | .block_erasers = |
| 614 | { |
| 615 | { |
| 616 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 617 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 618 | }, { |
| 619 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 620 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 621 | }, |
| 622 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 623 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 624 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 625 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 626 | .prepare_access = prepare_memory_access, |
| 627 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 628 | }, |
| 629 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 630 | { |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 631 | .vendor = "AMD", |
| 632 | .name = "Am29LV081B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 633 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | 5bae438 | 2009-06-02 00:38:14 +0000 | [diff] [blame] | 634 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 635 | .model_id = AMD_AM29LV080B, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 636 | .total_size = 1024, |
| 637 | .page_size = 64 * 1024, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 638 | .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] | 639 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 640 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 641 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 642 | .block_erasers = |
| 643 | { |
| 644 | { |
| 645 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 646 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 647 | }, { |
| 648 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 649 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 650 | }, |
| 651 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 652 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 653 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 654 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 655 | .prepare_access = prepare_memory_access, |
| 656 | .finish_access = finish_memory_access, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 657 | }, |
| 658 | |
| 659 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 660 | .vendor = "AMIC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 661 | .name = "A25L010", |
| 662 | .bustype = BUS_SPI, |
| 663 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 664 | .model_id = AMIC_A25L010, |
| 665 | .total_size = 128, |
| 666 | .page_size = 256, |
| 667 | .feature_bits = FEATURE_WRSR_WREN, |
| 668 | .tested = TEST_UNTESTED, |
| 669 | .probe = probe_spi_rdid, |
| 670 | .probe_timing = TIMING_ZERO, |
| 671 | .block_erasers = |
| 672 | { |
| 673 | { |
| 674 | .eraseblocks = { { 4 * 1024, 32 } }, |
| 675 | .block_erase = spi_block_erase_20, |
| 676 | }, { |
| 677 | .eraseblocks = { { 64 * 1024, 2 } }, |
| 678 | .block_erase = spi_block_erase_d8, |
| 679 | }, { |
| 680 | .eraseblocks = { { 128 * 1024, 1 } }, |
| 681 | .block_erase = spi_block_erase_c7, |
| 682 | } |
| 683 | }, |
| 684 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 685 | .unlock = spi_disable_blockprotect, |
| 686 | .write = spi_chip_write_256, |
| 687 | .read = spi_chip_read, |
| 688 | .voltage = {2700, 3600}, |
| 689 | }, |
| 690 | |
| 691 | { |
| 692 | .vendor = "AMIC", |
| 693 | .name = "A25L016", |
| 694 | .bustype = BUS_SPI, |
| 695 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 696 | .model_id = AMIC_A25L016, |
| 697 | .total_size = 2048, |
| 698 | .page_size = 256, |
| 699 | .feature_bits = FEATURE_WRSR_WREN, |
| 700 | .tested = TEST_UNTESTED, |
| 701 | .probe = probe_spi_rdid, |
| 702 | .probe_timing = TIMING_ZERO, |
| 703 | .block_erasers = |
| 704 | { |
| 705 | { |
| 706 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 707 | .block_erase = spi_block_erase_20, |
| 708 | }, { |
| 709 | .eraseblocks = { { 64 * 1024, 32 } }, |
| 710 | .block_erase = spi_block_erase_d8, |
| 711 | }, { |
| 712 | .eraseblocks = { { 2048 * 1024, 1 } }, |
| 713 | .block_erase = spi_block_erase_c7, |
| 714 | } |
| 715 | }, |
| 716 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 717 | .unlock = spi_disable_blockprotect, |
| 718 | .write = spi_chip_write_256, |
| 719 | .read = spi_chip_read, |
| 720 | .voltage = {2700, 3600}, |
| 721 | }, |
| 722 | |
| 723 | { |
| 724 | .vendor = "AMIC", |
| 725 | .name = "A25L020", |
| 726 | .bustype = BUS_SPI, |
| 727 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 728 | .model_id = AMIC_A25L020, |
| 729 | .total_size = 256, |
| 730 | .page_size = 256, |
| 731 | .feature_bits = FEATURE_WRSR_WREN, |
| 732 | .tested = TEST_UNTESTED, |
| 733 | .probe = probe_spi_rdid, |
| 734 | .probe_timing = TIMING_ZERO, |
| 735 | .block_erasers = |
| 736 | { |
| 737 | { |
| 738 | .eraseblocks = { { 4 * 1024, 64 } }, |
| 739 | .block_erase = spi_block_erase_20, |
| 740 | }, { |
| 741 | .eraseblocks = { { 64 * 1024, 4 } }, |
| 742 | .block_erase = spi_block_erase_d8, |
| 743 | }, { |
| 744 | .eraseblocks = { { 256 * 1024, 1 } }, |
| 745 | .block_erase = spi_block_erase_c7, |
| 746 | } |
| 747 | }, |
| 748 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 749 | .unlock = spi_disable_blockprotect, |
| 750 | .write = spi_chip_write_256, |
| 751 | .read = spi_chip_read, |
| 752 | .voltage = {2700, 3600}, |
| 753 | }, |
| 754 | |
| 755 | { |
| 756 | .vendor = "AMIC", |
| 757 | .name = "A25L032", |
| 758 | .bustype = BUS_SPI, |
| 759 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 760 | .model_id = AMIC_A25L032, |
| 761 | .total_size = 4096, |
| 762 | .page_size = 256, |
| 763 | /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */ |
| 764 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 765 | .tested = TEST_OK_PREW, |
| 766 | .probe = probe_spi_rdid, |
| 767 | .probe_timing = TIMING_ZERO, |
| 768 | .block_erasers = |
| 769 | { |
| 770 | { |
| 771 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 772 | .block_erase = spi_block_erase_20, |
| 773 | }, { |
| 774 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 775 | .block_erase = spi_block_erase_52, |
| 776 | }, { |
| 777 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 778 | .block_erase = spi_block_erase_d8, |
| 779 | }, { |
| 780 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 781 | .block_erase = spi_block_erase_60, |
| 782 | }, { |
| 783 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 784 | .block_erase = spi_block_erase_c7, |
| 785 | } |
| 786 | }, |
| 787 | .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */ |
| 788 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 789 | .write = spi_chip_write_256, |
| 790 | .read = spi_chip_read, |
| 791 | .voltage = {2700, 3600}, |
| 792 | }, |
| 793 | |
| 794 | { |
| 795 | .vendor = "AMIC", |
| 796 | .name = "A25L040", |
| 797 | .bustype = BUS_SPI, |
| 798 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 799 | .model_id = AMIC_A25L040, |
| 800 | .total_size = 512, |
| 801 | .page_size = 256, |
| 802 | .feature_bits = FEATURE_WRSR_WREN, |
| 803 | .tested = TEST_UNTESTED, |
| 804 | .probe = probe_spi_rdid, |
| 805 | .probe_timing = TIMING_ZERO, |
| 806 | .block_erasers = |
| 807 | { |
| 808 | { |
| 809 | .eraseblocks = { { 4 * 1024, 128 } }, |
| 810 | .block_erase = spi_block_erase_20, |
| 811 | }, { |
| 812 | .eraseblocks = { { 64 * 1024, 8 } }, |
| 813 | .block_erase = spi_block_erase_d8, |
| 814 | }, { |
| 815 | .eraseblocks = { { 512 * 1024, 1 } }, |
| 816 | .block_erase = spi_block_erase_c7, |
| 817 | } |
| 818 | }, |
| 819 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 820 | .unlock = spi_disable_blockprotect, |
| 821 | .write = spi_chip_write_256, |
| 822 | .read = spi_chip_read, |
| 823 | .voltage = {2700, 3600}, |
| 824 | }, |
| 825 | |
| 826 | { |
| 827 | .vendor = "AMIC", |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 828 | .name = "A25L05PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 829 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 830 | .manufacture_id = AMIC_ID, |
| 831 | .model_id = AMIC_A25L05PT, |
| 832 | .total_size = 64, |
| 833 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 834 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 835 | .tested = TEST_UNTESTED, |
| 836 | .probe = probe_spi_rdid4, |
| 837 | .probe_timing = TIMING_ZERO, |
| 838 | .block_erasers = |
| 839 | { |
| 840 | { |
| 841 | .eraseblocks = { |
| 842 | {32 * 1024, 1}, |
| 843 | {16 * 1024, 1}, |
| 844 | {8 * 1024, 1}, |
| 845 | {4 * 1024, 2}, |
| 846 | }, |
| 847 | .block_erase = spi_block_erase_d8, |
| 848 | }, { |
| 849 | .eraseblocks = { {64 * 1024, 1} }, |
| 850 | .block_erase = spi_block_erase_c7, |
| 851 | } |
| 852 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 853 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 854 | .unlock = spi_disable_blockprotect, |
| 855 | .write = spi_chip_write_256, |
| 856 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 857 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 858 | }, |
| 859 | |
| 860 | { |
| 861 | .vendor = "AMIC", |
| 862 | .name = "A25L05PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 863 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 864 | .manufacture_id = AMIC_ID, |
| 865 | .model_id = AMIC_A25L05PU, |
| 866 | .total_size = 64, |
| 867 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 868 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 869 | .tested = TEST_UNTESTED, |
| 870 | .probe = probe_spi_rdid4, |
| 871 | .probe_timing = TIMING_ZERO, |
| 872 | .block_erasers = |
| 873 | { |
| 874 | { |
| 875 | .eraseblocks = { |
| 876 | {4 * 1024, 2}, |
| 877 | {8 * 1024, 1}, |
| 878 | {16 * 1024, 1}, |
| 879 | {32 * 1024, 1}, |
| 880 | }, |
| 881 | .block_erase = spi_block_erase_d8, |
| 882 | }, { |
| 883 | .eraseblocks = { {64 * 1024, 1} }, |
| 884 | .block_erase = spi_block_erase_c7, |
| 885 | } |
| 886 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 887 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 888 | .unlock = spi_disable_blockprotect, |
| 889 | .write = spi_chip_write_256, |
| 890 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 891 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 892 | }, |
| 893 | |
| 894 | { |
| 895 | .vendor = "AMIC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 896 | .name = "A25L080", |
| 897 | .bustype = BUS_SPI, |
| 898 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 899 | .model_id = AMIC_A25L080, |
| 900 | .total_size = 1024, |
| 901 | .page_size = 256, |
| 902 | .feature_bits = FEATURE_WRSR_WREN, |
| 903 | .tested = TEST_UNTESTED, |
| 904 | .probe = probe_spi_rdid, |
| 905 | .probe_timing = TIMING_ZERO, |
| 906 | .block_erasers = |
| 907 | { |
| 908 | { |
| 909 | .eraseblocks = { { 4 * 1024, 256 } }, |
| 910 | .block_erase = spi_block_erase_20, |
| 911 | }, { |
| 912 | .eraseblocks = { { 64 * 1024, 16 } }, |
| 913 | .block_erase = spi_block_erase_d8, |
| 914 | }, { |
| 915 | .eraseblocks = { { 1024 * 1024, 1 } }, |
| 916 | .block_erase = spi_block_erase_c7, |
| 917 | } |
| 918 | }, |
| 919 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 920 | .unlock = spi_disable_blockprotect, |
| 921 | .write = spi_chip_write_256, |
| 922 | .read = spi_chip_read, |
| 923 | .voltage = {2700, 3600}, |
| 924 | }, |
| 925 | |
| 926 | { |
| 927 | .vendor = "AMIC", |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 928 | .name = "A25L10PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 929 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 930 | .manufacture_id = AMIC_ID, |
| 931 | .model_id = AMIC_A25L10PT, |
| 932 | .total_size = 128, |
| 933 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 934 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 935 | .tested = TEST_UNTESTED, |
| 936 | .probe = probe_spi_rdid4, |
| 937 | .probe_timing = TIMING_ZERO, |
| 938 | .block_erasers = |
| 939 | { |
| 940 | { |
| 941 | .eraseblocks = { |
| 942 | {64 * 1024, 1}, |
| 943 | {32 * 1024, 1}, |
| 944 | {16 * 1024, 1}, |
| 945 | {8 * 1024, 1}, |
| 946 | {4 * 1024, 2}, |
| 947 | }, |
| 948 | .block_erase = spi_block_erase_d8, |
| 949 | }, { |
| 950 | .eraseblocks = { {128 * 1024, 1} }, |
| 951 | .block_erase = spi_block_erase_c7, |
| 952 | } |
| 953 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 954 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 955 | .unlock = spi_disable_blockprotect, |
| 956 | .write = spi_chip_write_256, |
| 957 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 958 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 959 | }, |
| 960 | |
| 961 | { |
| 962 | .vendor = "AMIC", |
| 963 | .name = "A25L10PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 964 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 965 | .manufacture_id = AMIC_ID, |
| 966 | .model_id = AMIC_A25L10PU, |
| 967 | .total_size = 128, |
| 968 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 969 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 970 | .tested = TEST_UNTESTED, |
| 971 | .probe = probe_spi_rdid4, |
| 972 | .probe_timing = TIMING_ZERO, |
| 973 | .block_erasers = |
| 974 | { |
| 975 | { |
| 976 | .eraseblocks = { |
| 977 | {4 * 1024, 2}, |
| 978 | {8 * 1024, 1}, |
| 979 | {16 * 1024, 1}, |
| 980 | {32 * 1024, 1}, |
| 981 | {64 * 1024, 1}, |
| 982 | }, |
| 983 | .block_erase = spi_block_erase_d8, |
| 984 | }, { |
| 985 | .eraseblocks = { {128 * 1024, 1} }, |
| 986 | .block_erase = spi_block_erase_c7, |
| 987 | } |
| 988 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 989 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 990 | .unlock = spi_disable_blockprotect, |
| 991 | .write = spi_chip_write_256, |
| 992 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 993 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 994 | }, |
| 995 | |
| 996 | { |
| 997 | .vendor = "AMIC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 998 | .name = "A25L16PT", |
| 999 | .bustype = BUS_SPI, |
| 1000 | .manufacture_id = AMIC_ID, |
| 1001 | .model_id = AMIC_A25L16PT, |
| 1002 | .total_size = 2048, |
| 1003 | .page_size = 256, |
| 1004 | .feature_bits = FEATURE_WRSR_WREN, |
| 1005 | .tested = TEST_UNTESTED, |
| 1006 | .probe = probe_spi_rdid4, |
| 1007 | .probe_timing = TIMING_ZERO, |
| 1008 | .block_erasers = |
| 1009 | { |
| 1010 | { |
| 1011 | .eraseblocks = { |
| 1012 | {64 * 1024, 31}, |
| 1013 | {32 * 1024, 1}, |
| 1014 | {16 * 1024, 1}, |
| 1015 | {8 * 1024, 1}, |
| 1016 | {4 * 1024, 2}, |
| 1017 | }, |
| 1018 | .block_erase = spi_block_erase_d8, |
| 1019 | }, { |
| 1020 | .eraseblocks = { {2048 * 1024, 1} }, |
| 1021 | .block_erase = spi_block_erase_60, |
| 1022 | }, { |
| 1023 | .eraseblocks = { {2048 * 1024, 1} }, |
| 1024 | .block_erase = spi_block_erase_c7, |
| 1025 | } |
| 1026 | }, |
| 1027 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 1028 | .unlock = spi_disable_blockprotect, |
| 1029 | .write = spi_chip_write_256, |
| 1030 | .read = spi_chip_read, |
| 1031 | .voltage = {2700, 3600}, |
| 1032 | }, |
| 1033 | |
| 1034 | { |
| 1035 | .vendor = "AMIC", |
| 1036 | .name = "A25L16PU", |
| 1037 | .bustype = BUS_SPI, |
| 1038 | .manufacture_id = AMIC_ID, |
| 1039 | .model_id = AMIC_A25L16PU, |
| 1040 | .total_size = 2048, |
| 1041 | .page_size = 256, |
| 1042 | .feature_bits = FEATURE_WRSR_WREN, |
| 1043 | .tested = TEST_OK_PR, |
| 1044 | .probe = probe_spi_rdid4, |
| 1045 | .probe_timing = TIMING_ZERO, |
| 1046 | .block_erasers = |
| 1047 | { |
| 1048 | { |
| 1049 | .eraseblocks = { |
| 1050 | {4 * 1024, 2}, |
| 1051 | {8 * 1024, 1}, |
| 1052 | {16 * 1024, 1}, |
| 1053 | {32 * 1024, 1}, |
| 1054 | {64 * 1024, 31}, |
| 1055 | }, |
| 1056 | .block_erase = spi_block_erase_d8, |
| 1057 | }, { |
| 1058 | .eraseblocks = { {2048 * 1024, 1} }, |
| 1059 | .block_erase = spi_block_erase_60, |
| 1060 | }, { |
| 1061 | .eraseblocks = { {2048 * 1024, 1} }, |
| 1062 | .block_erase = spi_block_erase_c7, |
| 1063 | } |
| 1064 | }, |
| 1065 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 1066 | .unlock = spi_disable_blockprotect, |
| 1067 | .write = spi_chip_write_256, |
| 1068 | .read = spi_chip_read, |
| 1069 | .voltage = {2700, 3600}, |
| 1070 | }, |
| 1071 | |
| 1072 | { |
| 1073 | .vendor = "AMIC", |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1074 | .name = "A25L20PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1075 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1076 | .manufacture_id = AMIC_ID, |
| 1077 | .model_id = AMIC_A25L20PT, |
| 1078 | .total_size = 256, |
| 1079 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1080 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1081 | .tested = TEST_UNTESTED, |
| 1082 | .probe = probe_spi_rdid4, |
| 1083 | .probe_timing = TIMING_ZERO, |
| 1084 | .block_erasers = |
| 1085 | { |
| 1086 | { |
| 1087 | .eraseblocks = { |
| 1088 | {64 * 1024, 3}, |
| 1089 | {32 * 1024, 1}, |
| 1090 | {16 * 1024, 1}, |
| 1091 | {8 * 1024, 1}, |
| 1092 | {4 * 1024, 2}, |
| 1093 | }, |
| 1094 | .block_erase = spi_block_erase_d8, |
| 1095 | }, { |
| 1096 | .eraseblocks = { {256 * 1024, 1} }, |
| 1097 | .block_erase = spi_block_erase_c7, |
| 1098 | } |
| 1099 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1100 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1101 | .unlock = spi_disable_blockprotect, |
| 1102 | .write = spi_chip_write_256, |
| 1103 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1104 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1105 | }, |
| 1106 | |
| 1107 | { |
| 1108 | .vendor = "AMIC", |
| 1109 | .name = "A25L20PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1110 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1111 | .manufacture_id = AMIC_ID, |
| 1112 | .model_id = AMIC_A25L20PU, |
| 1113 | .total_size = 256, |
| 1114 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1115 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1116 | .tested = TEST_UNTESTED, |
| 1117 | .probe = probe_spi_rdid4, |
| 1118 | .probe_timing = TIMING_ZERO, |
| 1119 | .block_erasers = |
| 1120 | { |
| 1121 | { |
| 1122 | .eraseblocks = { |
| 1123 | {4 * 1024, 2}, |
| 1124 | {8 * 1024, 1}, |
| 1125 | {16 * 1024, 1}, |
| 1126 | {32 * 1024, 1}, |
| 1127 | {64 * 1024, 3}, |
| 1128 | }, |
| 1129 | .block_erase = spi_block_erase_d8, |
| 1130 | }, { |
| 1131 | .eraseblocks = { {256 * 1024, 1} }, |
| 1132 | .block_erase = spi_block_erase_c7, |
| 1133 | } |
| 1134 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1135 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1136 | .unlock = spi_disable_blockprotect, |
| 1137 | .write = spi_chip_write_256, |
| 1138 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1139 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1140 | }, |
| 1141 | |
| 1142 | /* The A25L40P{T,U} chips are distinguished by their |
| 1143 | * erase block layouts, but without any distinction in RDID. |
| 1144 | * This inexplicable quirk was verified by Rudolf Marek |
Nico Huber | c3b02dc | 2023-08-12 01:13:45 +0200 | [diff] [blame] | 1145 | * and discussed on the flashprog mailing list on 2010-07-12. |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1146 | */ |
| 1147 | { |
| 1148 | .vendor = "AMIC", |
| 1149 | .name = "A25L40PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1150 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1151 | .manufacture_id = AMIC_ID, |
| 1152 | .model_id = AMIC_A25L40PT, |
| 1153 | .total_size = 512, |
| 1154 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1155 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 1156 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1157 | .probe = probe_spi_rdid4, |
| 1158 | .probe_timing = TIMING_ZERO, |
| 1159 | .block_erasers = |
| 1160 | { |
| 1161 | { |
| 1162 | .eraseblocks = { |
| 1163 | {64 * 1024, 7}, |
| 1164 | {32 * 1024, 1}, |
| 1165 | {16 * 1024, 1}, |
| 1166 | {8 * 1024, 1}, |
| 1167 | {4 * 1024, 2}, |
| 1168 | }, |
| 1169 | .block_erase = spi_block_erase_d8, |
| 1170 | }, { |
| 1171 | .eraseblocks = { {512 * 1024, 1} }, |
| 1172 | .block_erase = spi_block_erase_c7, |
| 1173 | } |
| 1174 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1175 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1176 | .unlock = spi_disable_blockprotect, |
| 1177 | .write = spi_chip_write_256, |
| 1178 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1179 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1180 | }, |
| 1181 | |
| 1182 | { |
| 1183 | .vendor = "AMIC", |
| 1184 | .name = "A25L40PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1185 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1186 | .manufacture_id = AMIC_ID, |
| 1187 | .model_id = AMIC_A25L40PU, |
| 1188 | .total_size = 512, |
| 1189 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1190 | .feature_bits = FEATURE_WRSR_WREN, |
Angel Pons | 6f08835 | 2018-09-30 19:59:42 +0200 | [diff] [blame] | 1191 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1192 | .probe = probe_spi_rdid4, |
| 1193 | .probe_timing = TIMING_ZERO, |
| 1194 | .block_erasers = |
| 1195 | { |
| 1196 | { |
| 1197 | .eraseblocks = { |
| 1198 | {4 * 1024, 2}, |
| 1199 | {8 * 1024, 1}, |
| 1200 | {16 * 1024, 1}, |
| 1201 | {32 * 1024, 1}, |
| 1202 | {64 * 1024, 7}, |
| 1203 | }, |
| 1204 | .block_erase = spi_block_erase_d8, |
| 1205 | }, { |
| 1206 | .eraseblocks = { {512 * 1024, 1} }, |
| 1207 | .block_erase = spi_block_erase_c7, |
| 1208 | } |
| 1209 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1210 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1211 | .unlock = spi_disable_blockprotect, |
| 1212 | .write = spi_chip_write_256, |
| 1213 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1214 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1215 | }, |
| 1216 | |
| 1217 | { |
| 1218 | .vendor = "AMIC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 1219 | .name = "A25L512", |
| 1220 | .bustype = BUS_SPI, |
| 1221 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1222 | .model_id = AMIC_A25L512, |
| 1223 | .total_size = 64, |
| 1224 | .page_size = 256, |
| 1225 | .feature_bits = FEATURE_WRSR_WREN, |
| 1226 | .tested = TEST_UNTESTED, |
| 1227 | .probe = probe_spi_rdid, |
| 1228 | .probe_timing = TIMING_ZERO, |
| 1229 | .block_erasers = |
| 1230 | { |
| 1231 | { |
| 1232 | .eraseblocks = { { 4 * 1024, 16 } }, |
| 1233 | .block_erase = spi_block_erase_20, |
| 1234 | }, { |
| 1235 | .eraseblocks = { { 64 * 1024, 1 } }, |
| 1236 | .block_erase = spi_block_erase_d8, |
| 1237 | }, { |
| 1238 | .eraseblocks = { { 64 * 1024, 1 } }, |
| 1239 | .block_erase = spi_block_erase_c7, |
| 1240 | } |
| 1241 | }, |
| 1242 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 1243 | .unlock = spi_disable_blockprotect, |
| 1244 | .write = spi_chip_write_256, |
| 1245 | .read = spi_chip_read, |
| 1246 | .voltage = {2700, 3600}, |
| 1247 | }, |
| 1248 | |
| 1249 | { |
| 1250 | .vendor = "AMIC", |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1251 | .name = "A25L80P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1252 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1253 | .manufacture_id = AMIC_ID, |
| 1254 | .model_id = AMIC_A25L80P, |
| 1255 | .total_size = 1024, |
| 1256 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1257 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 1258 | .tested = TEST_OK_PRE, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1259 | .probe = probe_spi_rdid4, |
| 1260 | .probe_timing = TIMING_ZERO, |
| 1261 | .block_erasers = |
| 1262 | { |
| 1263 | { |
| 1264 | .eraseblocks = { |
| 1265 | {4 * 1024, 2}, |
| 1266 | {8 * 1024, 1}, |
| 1267 | {16 * 1024, 1}, |
| 1268 | {32 * 1024, 1}, |
| 1269 | {64 * 1024, 15}, |
| 1270 | }, |
| 1271 | .block_erase = spi_block_erase_d8, |
| 1272 | }, { |
| 1273 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1274 | .block_erase = spi_block_erase_c7, |
| 1275 | } |
| 1276 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1277 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1278 | .unlock = spi_disable_blockprotect, |
| 1279 | .write = spi_chip_write_256, |
| 1280 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1281 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1282 | }, |
| 1283 | |
| 1284 | { |
| 1285 | .vendor = "AMIC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 1286 | .name = "A25LQ032/A25LQ32A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1287 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1288 | .manufacture_id = AMIC_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 1289 | .model_id = AMIC_A25LQ032, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1290 | .total_size = 4096, |
| 1291 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 1292 | /* A25LQ32A supports SFDP */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1293 | /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */ |
| 1294 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 1295 | .tested = TEST_UNTESTED, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1296 | .probe = probe_spi_rdid, |
| 1297 | .probe_timing = TIMING_ZERO, |
| 1298 | .block_erasers = |
| 1299 | { |
| 1300 | { |
| 1301 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 1302 | .block_erase = spi_block_erase_20, |
| 1303 | }, { |
| 1304 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1305 | .block_erase = spi_block_erase_52, |
| 1306 | }, { |
| 1307 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1308 | .block_erase = spi_block_erase_d8, |
| 1309 | }, { |
| 1310 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1311 | .block_erase = spi_block_erase_60, |
| 1312 | }, { |
| 1313 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1314 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1315 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1316 | }, |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1317 | .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */ |
| 1318 | .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] | 1319 | .write = spi_chip_write_256, |
| 1320 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1321 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1322 | }, |
| 1323 | |
| 1324 | { |
| 1325 | .vendor = "AMIC", |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1326 | .name = "A25LQ16", |
| 1327 | .bustype = BUS_SPI, |
| 1328 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1329 | .model_id = AMIC_A25LQ16, |
| 1330 | .total_size = 2048, |
| 1331 | .page_size = 256, |
| 1332 | /* supports SFDP */ |
| 1333 | /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */ |
| 1334 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1335 | .tested = TEST_UNTESTED, |
| 1336 | .probe = probe_spi_rdid, |
| 1337 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 1338 | .block_erasers = |
| 1339 | { |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1340 | { |
| 1341 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 1342 | .block_erase = spi_block_erase_20, |
| 1343 | }, { |
| 1344 | .eraseblocks = { { 64 * 1024, 32 } }, |
| 1345 | .block_erase = spi_block_erase_52, |
| 1346 | }, { |
| 1347 | .eraseblocks = { { 64 * 1024, 32 } }, |
| 1348 | .block_erase = spi_block_erase_d8, |
| 1349 | }, { |
| 1350 | .eraseblocks = { { 2048 * 1024, 1 } }, |
| 1351 | .block_erase = spi_block_erase_60, |
| 1352 | }, { |
| 1353 | .eraseblocks = { { 2048 * 1024, 1 } }, |
| 1354 | .block_erase = spi_block_erase_c7, |
| 1355 | } |
| 1356 | }, |
| 1357 | .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */ |
| 1358 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 1359 | .write = spi_chip_write_256, |
| 1360 | .read = spi_chip_read, |
| 1361 | .voltage = {2700, 3600}, |
| 1362 | }, |
| 1363 | |
| 1364 | { |
| 1365 | .vendor = "AMIC", |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1366 | .name = "A25LQ64", |
| 1367 | .bustype = BUS_SPI, |
| 1368 | .manufacture_id = AMIC_ID_NOPREFIX, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 1369 | .model_id = AMIC_A25LQ64, |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1370 | .total_size = 8192, |
| 1371 | .page_size = 256, |
| 1372 | /* supports SFDP */ |
| 1373 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 1374 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 1375 | FEATURE_FAST_READ | FEATURE_FAST_READ_DOUT | |
| 1376 | FEATURE_FAST_READ_DIO | FEATURE_FAST_READ_QIO | |
| 1377 | FEATURE_QPI_35_F5, |
| 1378 | .dummy_cycles = |
| 1379 | { |
| 1380 | .qpi_fast_read = 4, |
| 1381 | .qpi_fast_read_qio = 6, |
| 1382 | }, |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1383 | .tested = TEST_UNTESTED, |
| 1384 | .probe = probe_spi_rdid, |
| 1385 | .probe_timing = TIMING_ZERO, |
| 1386 | .block_erasers = |
| 1387 | { |
| 1388 | { |
| 1389 | .eraseblocks = { { 4 * 1024, 2048 } }, |
| 1390 | .block_erase = spi_block_erase_20, |
| 1391 | }, { |
| 1392 | .eraseblocks = { { 32 * 1024, 256 } }, |
| 1393 | .block_erase = spi_block_erase_52, |
| 1394 | }, { |
| 1395 | .eraseblocks = { { 64 * 1024, 128 } }, |
| 1396 | .block_erase = spi_block_erase_d8, |
| 1397 | }, { |
| 1398 | .eraseblocks = { { 8192 * 1024, 1 } }, |
| 1399 | .block_erase = spi_block_erase_60, |
| 1400 | }, { |
| 1401 | .eraseblocks = { { 8192 * 1024, 1 } }, |
| 1402 | .block_erase = spi_block_erase_c7, |
| 1403 | } |
| 1404 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1405 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enhance (sic!) */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 1406 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1407 | .write = spi_chip_write_256, |
| 1408 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1409 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1410 | }, |
| 1411 | |
| 1412 | { |
| 1413 | .vendor = "AMIC", |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1414 | .name = "A29002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1415 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1416 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1417 | .model_id = AMIC_A29002B, |
| 1418 | .total_size = 256, |
| 1419 | .page_size = 64 * 1024, |
| 1420 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 1421 | .tested = TEST_UNTESTED, |
| 1422 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1423 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1424 | .block_erasers = |
| 1425 | { |
| 1426 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1427 | .eraseblocks = { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1428 | {16 * 1024, 1}, |
| 1429 | {8 * 1024, 2}, |
| 1430 | {32 * 1024, 1}, |
| 1431 | {64 * 1024, 3}, |
| 1432 | }, |
| 1433 | .block_erase = erase_sector_jedec, |
| 1434 | }, { |
| 1435 | .eraseblocks = { {256 * 1024, 1} }, |
| 1436 | .block_erase = erase_chip_block_jedec, |
| 1437 | }, |
| 1438 | }, |
| 1439 | .write = write_jedec_1, |
| 1440 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1441 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 1442 | .prepare_access = prepare_memory_access, |
| 1443 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1444 | }, |
| 1445 | |
| 1446 | { |
| 1447 | .vendor = "AMIC", |
| 1448 | .name = "A29002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1449 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1450 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1451 | .model_id = AMIC_A29002T, |
| 1452 | .total_size = 256, |
| 1453 | .page_size = 64 * 1024, |
| 1454 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 1455 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1456 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1457 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1458 | .block_erasers = |
| 1459 | { |
| 1460 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1461 | .eraseblocks = { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1462 | {64 * 1024, 3}, |
| 1463 | {32 * 1024, 1}, |
| 1464 | {8 * 1024, 2}, |
| 1465 | {16 * 1024, 1}, |
| 1466 | }, |
| 1467 | .block_erase = erase_sector_jedec, |
| 1468 | }, { |
| 1469 | .eraseblocks = { {256 * 1024, 1} }, |
| 1470 | .block_erase = erase_chip_block_jedec, |
| 1471 | }, |
| 1472 | }, |
| 1473 | .write = write_jedec_1, |
| 1474 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1475 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 1476 | .prepare_access = prepare_memory_access, |
| 1477 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1478 | }, |
| 1479 | |
| 1480 | { |
| 1481 | .vendor = "AMIC", |
| 1482 | .name = "A29040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1483 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1484 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1485 | .model_id = AMIC_A29040B, |
| 1486 | .total_size = 512, |
| 1487 | .page_size = 64 * 1024, |
| 1488 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Corey Osgood | cbd5665 | 2013-09-10 10:42:48 +0000 | [diff] [blame] | 1489 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1490 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1491 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1492 | .block_erasers = |
| 1493 | { |
| 1494 | { |
| 1495 | .eraseblocks = { {64 * 1024, 8} }, |
| 1496 | .block_erase = erase_sector_jedec, |
| 1497 | }, { |
| 1498 | .eraseblocks = { {512 * 1024, 1} }, |
| 1499 | .block_erase = erase_chip_block_jedec, |
| 1500 | }, |
| 1501 | }, |
| 1502 | .write = write_jedec_1, |
| 1503 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1504 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 1505 | .prepare_access = prepare_memory_access, |
| 1506 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1507 | }, |
| 1508 | |
| 1509 | { |
| 1510 | .vendor = "AMIC", |
| 1511 | .name = "A49LF040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1512 | .bustype = BUS_LPC, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1513 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1514 | .model_id = AMIC_A49LF040A, |
| 1515 | .total_size = 512, |
| 1516 | .page_size = 64 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 1517 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 1518 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1519 | .probe = probe_jedec, |
| 1520 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
| 1521 | .block_erasers = |
| 1522 | { |
| 1523 | { |
| 1524 | .eraseblocks = { {64 * 1024, 8} }, |
| 1525 | .block_erase = erase_block_jedec, |
| 1526 | }, { |
| 1527 | .eraseblocks = { {512 * 1024, 1} }, |
| 1528 | .block_erase = erase_chip_block_jedec, |
| 1529 | } |
| 1530 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 1531 | .unlock = unlock_regspace2_uniform_64k, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1532 | .write = write_jedec_1, |
| 1533 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1534 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 1535 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 1536 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1537 | }, |
| 1538 | |
| 1539 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1540 | .vendor = "Atmel", |
| 1541 | .name = "AT25DF021", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1542 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1543 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1544 | .model_id = ATMEL_AT25DF021, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1545 | .total_size = 256, |
| 1546 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1547 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1548 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1549 | .tested = TEST_UNTESTED, |
| 1550 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1551 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1552 | .block_erasers = |
| 1553 | { |
| 1554 | { |
| 1555 | .eraseblocks = { {4 * 1024, 64} }, |
| 1556 | .block_erase = spi_block_erase_20, |
| 1557 | }, { |
| 1558 | .eraseblocks = { {32 * 1024, 8} }, |
| 1559 | .block_erase = spi_block_erase_52, |
| 1560 | }, { |
| 1561 | .eraseblocks = { {64 * 1024, 4} }, |
| 1562 | .block_erase = spi_block_erase_d8, |
| 1563 | }, { |
| 1564 | .eraseblocks = { {256 * 1024, 1} }, |
| 1565 | .block_erase = spi_block_erase_60, |
| 1566 | }, { |
| 1567 | .eraseblocks = { {256 * 1024, 1} }, |
| 1568 | .block_erase = spi_block_erase_c7, |
| 1569 | } |
| 1570 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1571 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1572 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1573 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1574 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1575 | .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] | 1576 | }, |
| 1577 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1578 | { |
| 1579 | .vendor = "Atmel", |
Steffen Mauch | 0b59b0d | 2018-06-02 23:46:03 +0200 | [diff] [blame] | 1580 | .name = "AT25DF021A", |
| 1581 | .bustype = BUS_SPI, |
| 1582 | .manufacture_id = ATMEL_ID, |
| 1583 | .model_id = ATMEL_AT25DF021A, |
| 1584 | .total_size = 256, |
| 1585 | .page_size = 256, |
| 1586 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1587 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1588 | .tested = TEST_OK_PREW, |
| 1589 | .probe = probe_spi_rdid, |
| 1590 | .probe_timing = TIMING_ZERO, |
| 1591 | .block_erasers = |
| 1592 | { |
| 1593 | { |
| 1594 | .eraseblocks = { {4 * 1024, 64} }, |
| 1595 | .block_erase = spi_block_erase_20, |
| 1596 | }, { |
| 1597 | .eraseblocks = { {32 * 1024, 8} }, |
| 1598 | .block_erase = spi_block_erase_52, |
| 1599 | }, { |
| 1600 | .eraseblocks = { {64 * 1024, 4} }, |
| 1601 | .block_erase = spi_block_erase_d8, |
| 1602 | }, { |
| 1603 | .eraseblocks = { {256 * 1024, 1} }, |
| 1604 | .block_erase = spi_block_erase_60, |
| 1605 | }, { |
| 1606 | .eraseblocks = { {256 * 1024, 1} }, |
| 1607 | .block_erase = spi_block_erase_c7, |
| 1608 | } |
| 1609 | }, |
| 1610 | .printlock = spi_prettyprint_status_register_at25df, |
| 1611 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
| 1612 | .write = spi_chip_write_256, |
| 1613 | .read = spi_chip_read, |
| 1614 | .voltage = {1650, 3600}, |
| 1615 | }, |
| 1616 | |
| 1617 | { |
| 1618 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1619 | .name = "AT25DF041A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1620 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1621 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1622 | .model_id = ATMEL_AT25DF041A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1623 | .total_size = 512, |
| 1624 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1625 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 1626 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1627 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1628 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1629 | .block_erasers = |
| 1630 | { |
| 1631 | { |
| 1632 | .eraseblocks = { {4 * 1024, 128} }, |
| 1633 | .block_erase = spi_block_erase_20, |
| 1634 | }, { |
| 1635 | .eraseblocks = { {32 * 1024, 16} }, |
| 1636 | .block_erase = spi_block_erase_52, |
| 1637 | }, { |
| 1638 | .eraseblocks = { {64 * 1024, 8} }, |
| 1639 | .block_erase = spi_block_erase_d8, |
| 1640 | }, { |
| 1641 | .eraseblocks = { {512 * 1024, 1} }, |
| 1642 | .block_erase = spi_block_erase_60, |
| 1643 | }, { |
| 1644 | .eraseblocks = { {512 * 1024, 1} }, |
| 1645 | .block_erase = spi_block_erase_c7, |
| 1646 | } |
| 1647 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1648 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1649 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1650 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1651 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1652 | .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] | 1653 | }, |
| 1654 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1655 | { |
| 1656 | .vendor = "Atmel", |
| 1657 | .name = "AT25DF081", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1658 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1659 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1660 | .model_id = ATMEL_AT25DF081, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1661 | .total_size = 1024, |
| 1662 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1663 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1664 | .tested = TEST_UNTESTED, |
| 1665 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1666 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1667 | .block_erasers = |
| 1668 | { |
| 1669 | { |
| 1670 | .eraseblocks = { {4 * 1024, 256} }, |
| 1671 | .block_erase = spi_block_erase_20, |
| 1672 | }, { |
| 1673 | .eraseblocks = { {32 * 1024, 32} }, |
| 1674 | .block_erase = spi_block_erase_52, |
| 1675 | }, { |
| 1676 | .eraseblocks = { {64 * 1024, 16} }, |
| 1677 | .block_erase = spi_block_erase_d8, |
| 1678 | }, { |
| 1679 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1680 | .block_erase = spi_block_erase_60, |
| 1681 | }, { |
| 1682 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1683 | .block_erase = spi_block_erase_c7, |
| 1684 | } |
| 1685 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1686 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1687 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1688 | .write = spi_chip_write_256, |
| 1689 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1690 | .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] | 1691 | }, |
| 1692 | |
| 1693 | { |
| 1694 | .vendor = "Atmel", |
| 1695 | .name = "AT25DF081A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1696 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1697 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1698 | .model_id = ATMEL_AT25DF081A, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1699 | .total_size = 1024, |
| 1700 | .page_size = 256, |
| 1701 | .feature_bits = FEATURE_WRSR_WREN, |
| 1702 | .tested = TEST_UNTESTED, |
| 1703 | .probe = probe_spi_rdid, |
| 1704 | .probe_timing = TIMING_ZERO, |
| 1705 | .block_erasers = |
| 1706 | { |
| 1707 | { |
| 1708 | .eraseblocks = { {4 * 1024, 256} }, |
| 1709 | .block_erase = spi_block_erase_20, |
| 1710 | }, { |
| 1711 | .eraseblocks = { {32 * 1024, 32} }, |
| 1712 | .block_erase = spi_block_erase_52, |
| 1713 | }, { |
| 1714 | .eraseblocks = { {64 * 1024, 16} }, |
| 1715 | .block_erase = spi_block_erase_d8, |
| 1716 | }, { |
| 1717 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1718 | .block_erase = spi_block_erase_60, |
| 1719 | }, { |
| 1720 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1721 | .block_erase = spi_block_erase_c7, |
| 1722 | } |
| 1723 | }, |
| 1724 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1725 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1726 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1727 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1728 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1729 | }, |
| 1730 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1731 | { |
| 1732 | .vendor = "Atmel", |
| 1733 | .name = "AT25DF161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1734 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1735 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1736 | .model_id = ATMEL_AT25DF161, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1737 | .total_size = 2048, |
| 1738 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1739 | .feature_bits = FEATURE_WRSR_WREN, |
Angel Pons | 8b5b962 | 2018-09-30 19:13:15 +0200 | [diff] [blame] | 1740 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1741 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1742 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1743 | .block_erasers = |
| 1744 | { |
| 1745 | { |
| 1746 | .eraseblocks = { {4 * 1024, 512} }, |
| 1747 | .block_erase = spi_block_erase_20, |
| 1748 | }, { |
| 1749 | .eraseblocks = { {32 * 1024, 64} }, |
| 1750 | .block_erase = spi_block_erase_52, |
| 1751 | }, { |
| 1752 | .eraseblocks = { {64 * 1024, 32} }, |
| 1753 | .block_erase = spi_block_erase_d8, |
| 1754 | }, { |
| 1755 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1756 | .block_erase = spi_block_erase_60, |
| 1757 | }, { |
| 1758 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1759 | .block_erase = spi_block_erase_c7, |
| 1760 | } |
| 1761 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1762 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1763 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1764 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1765 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1766 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1767 | }, |
| 1768 | |
Alan Green | 86bf6ab | 2019-06-27 16:58:20 +1000 | [diff] [blame] | 1769 | /*The AT26DF321 has the same ID as the AT25DF321. */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1770 | { |
| 1771 | .vendor = "Atmel", |
| 1772 | .name = "AT25DF321", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1773 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1774 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1775 | .model_id = ATMEL_AT25DF321, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1776 | .total_size = 4096, |
| 1777 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1778 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d06d941 | 2011-06-12 19:47:55 +0000 | [diff] [blame] | 1779 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1780 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1781 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1782 | .block_erasers = |
| 1783 | { |
| 1784 | { |
| 1785 | .eraseblocks = { {4 * 1024, 1024} }, |
| 1786 | .block_erase = spi_block_erase_20, |
| 1787 | }, { |
| 1788 | .eraseblocks = { {32 * 1024, 128} }, |
| 1789 | .block_erase = spi_block_erase_52, |
| 1790 | }, { |
| 1791 | .eraseblocks = { {64 * 1024, 64} }, |
| 1792 | .block_erase = spi_block_erase_d8, |
| 1793 | }, { |
| 1794 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1795 | .block_erase = spi_block_erase_60, |
| 1796 | }, { |
| 1797 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1798 | .block_erase = spi_block_erase_c7, |
| 1799 | } |
| 1800 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1801 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1802 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1803 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1804 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1805 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1806 | }, |
| 1807 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1808 | { |
| 1809 | .vendor = "Atmel", |
| 1810 | .name = "AT25DF321A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1811 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1812 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1813 | .model_id = ATMEL_AT25DF321A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1814 | .total_size = 4096, |
| 1815 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1816 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1817 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 1818 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1819 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1820 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1821 | .block_erasers = |
| 1822 | { |
| 1823 | { |
| 1824 | .eraseblocks = { {4 * 1024, 1024} }, |
| 1825 | .block_erase = spi_block_erase_20, |
| 1826 | }, { |
| 1827 | .eraseblocks = { {32 * 1024, 128} }, |
| 1828 | .block_erase = spi_block_erase_52, |
| 1829 | }, { |
| 1830 | .eraseblocks = { {64 * 1024, 64} }, |
| 1831 | .block_erase = spi_block_erase_d8, |
| 1832 | }, { |
| 1833 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1834 | .block_erase = spi_block_erase_60, |
| 1835 | }, { |
| 1836 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1837 | .block_erase = spi_block_erase_c7, |
| 1838 | } |
| 1839 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1840 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1841 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1842 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1843 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1844 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1845 | }, |
| 1846 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1847 | { |
| 1848 | .vendor = "Atmel", |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 1849 | .name = "AT25DF641(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1850 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1851 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1852 | .model_id = ATMEL_AT25DF641, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1853 | .total_size = 8192, |
| 1854 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1855 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1856 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1857 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1858 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1859 | .block_erasers = |
| 1860 | { |
| 1861 | { |
| 1862 | .eraseblocks = { {4 * 1024, 2048} }, |
| 1863 | .block_erase = spi_block_erase_20, |
| 1864 | }, { |
| 1865 | .eraseblocks = { {32 * 1024, 256} }, |
| 1866 | .block_erase = spi_block_erase_52, |
| 1867 | }, { |
| 1868 | .eraseblocks = { {64 * 1024, 128} }, |
| 1869 | .block_erase = spi_block_erase_d8, |
| 1870 | }, { |
| 1871 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 1872 | .block_erase = spi_block_erase_60, |
| 1873 | }, { |
| 1874 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 1875 | .block_erase = spi_block_erase_c7, |
| 1876 | } |
| 1877 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1878 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1879 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1880 | .write = spi_chip_write_256, |
| 1881 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1882 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1883 | }, |
| 1884 | |
| 1885 | { |
| 1886 | .vendor = "Atmel", |
Stefan Tauner | c9d8b27 | 2014-06-01 13:22:35 +0000 | [diff] [blame] | 1887 | .name = "AT25DL081", |
| 1888 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 1889 | .manufacture_id = ATMEL_ID, |
Stefan Tauner | c9d8b27 | 2014-06-01 13:22:35 +0000 | [diff] [blame] | 1890 | .model_id = ATMEL_AT25DF081, |
| 1891 | .total_size = 1024, |
| 1892 | .page_size = 256, |
| 1893 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1894 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1895 | .tested = TEST_UNTESTED, |
| 1896 | .probe = probe_spi_rdid, |
| 1897 | .probe_timing = TIMING_ZERO, |
| 1898 | .block_erasers = |
| 1899 | { |
| 1900 | { |
| 1901 | .eraseblocks = { {4 * 1024, 256} }, |
| 1902 | .block_erase = spi_block_erase_20, |
| 1903 | }, { |
| 1904 | .eraseblocks = { {32 * 1024, 32} }, |
| 1905 | .block_erase = spi_block_erase_52, |
| 1906 | }, { |
| 1907 | .eraseblocks = { {64 * 1024, 16} }, |
| 1908 | .block_erase = spi_block_erase_d8, |
| 1909 | }, { |
| 1910 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 1911 | .block_erase = spi_block_erase_60, |
| 1912 | }, { |
| 1913 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 1914 | .block_erase = spi_block_erase_c7, |
| 1915 | } |
| 1916 | }, |
| 1917 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1918 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
| 1919 | .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */ |
| 1920 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 1921 | .voltage = {1650, 1950}, |
| 1922 | }, |
| 1923 | |
| 1924 | { |
| 1925 | .vendor = "Atmel", |
| 1926 | .name = "AT25DL161", |
| 1927 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 1928 | .manufacture_id = ATMEL_ID, |
Stefan Tauner | c9d8b27 | 2014-06-01 13:22:35 +0000 | [diff] [blame] | 1929 | .model_id = ATMEL_AT25DL161, |
| 1930 | .total_size = 2048, |
| 1931 | .page_size = 256, |
| 1932 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1933 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1934 | .tested = TEST_UNTESTED, |
| 1935 | .probe = probe_spi_rdid, |
| 1936 | .probe_timing = TIMING_ZERO, |
| 1937 | .block_erasers = |
| 1938 | { |
| 1939 | { |
| 1940 | .eraseblocks = { {4 * 1024, 512} }, |
| 1941 | .block_erase = spi_block_erase_20, |
| 1942 | }, { |
| 1943 | .eraseblocks = { {32 * 1024, 64} }, |
| 1944 | .block_erase = spi_block_erase_52, |
| 1945 | }, { |
| 1946 | .eraseblocks = { {64 * 1024, 32} }, |
| 1947 | .block_erase = spi_block_erase_d8, |
| 1948 | }, { |
| 1949 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1950 | .block_erase = spi_block_erase_60, |
| 1951 | }, { |
| 1952 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1953 | .block_erase = spi_block_erase_c7, |
| 1954 | } |
| 1955 | }, |
| 1956 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1957 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
| 1958 | .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */ |
| 1959 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 1960 | .voltage = {1650, 1950}, |
| 1961 | }, |
| 1962 | |
| 1963 | { |
| 1964 | .vendor = "Atmel", |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1965 | .name = "AT25DQ161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1966 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1967 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1968 | .model_id = ATMEL_AT25DQ161, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1969 | .total_size = 2048, |
| 1970 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1971 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1972 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1973 | .tested = TEST_UNTESTED, |
| 1974 | .probe = probe_spi_rdid, |
| 1975 | .probe_timing = TIMING_ZERO, |
| 1976 | .block_erasers = |
| 1977 | { |
| 1978 | { |
| 1979 | .eraseblocks = { {4 * 1024, 512} }, |
| 1980 | .block_erase = spi_block_erase_20, |
| 1981 | }, { |
| 1982 | .eraseblocks = { {32 * 1024, 64} }, |
| 1983 | .block_erase = spi_block_erase_52, |
| 1984 | }, { |
| 1985 | .eraseblocks = { {64 * 1024, 32} }, |
| 1986 | .block_erase = spi_block_erase_d8, |
| 1987 | }, { |
| 1988 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1989 | .block_erase = spi_block_erase_60, |
| 1990 | }, { |
| 1991 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1992 | .block_erase = spi_block_erase_c7, |
| 1993 | } |
| 1994 | }, |
| 1995 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1996 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1997 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1998 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1999 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2000 | }, |
| 2001 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2002 | { |
| 2003 | .vendor = "Atmel", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 2004 | /* The A suffix indicates 33MHz instead of 20MHz clock rate. |
| 2005 | * All other properties seem to be the same.*/ |
| 2006 | .name = "AT25F1024(A)", |
| 2007 | .bustype = BUS_SPI, |
| 2008 | .manufacture_id = ATMEL_ID, |
| 2009 | .model_id = ATMEL_AT25F1024, |
| 2010 | .total_size = 128, |
| 2011 | .page_size = 256, |
| 2012 | .feature_bits = FEATURE_WRSR_WREN, |
| 2013 | .tested = TEST_OK_PREW, |
| 2014 | .probe = probe_spi_at25f, |
| 2015 | .probe_timing = TIMING_ZERO, |
| 2016 | .block_erasers = |
| 2017 | { |
| 2018 | { |
| 2019 | .eraseblocks = { {32 * 1024, 4} }, |
| 2020 | .block_erase = spi_block_erase_52, |
| 2021 | }, { |
| 2022 | .eraseblocks = { {128 * 1024, 1} }, |
| 2023 | .block_erase = spi_block_erase_62, |
| 2024 | } |
| 2025 | }, |
| 2026 | .printlock = spi_prettyprint_status_register_at25f, |
| 2027 | .unlock = spi_disable_blockprotect_at25f, |
| 2028 | .write = spi_chip_write_256, |
| 2029 | .read = spi_chip_read, |
| 2030 | .voltage = {2700, 3600}, |
| 2031 | }, |
| 2032 | |
| 2033 | { |
| 2034 | .vendor = "Atmel", |
| 2035 | .name = "AT25F2048", |
| 2036 | .bustype = BUS_SPI, |
| 2037 | .manufacture_id = ATMEL_ID, |
| 2038 | .model_id = ATMEL_AT25F2048, |
| 2039 | .total_size = 256, |
| 2040 | .page_size = 256, |
| 2041 | .feature_bits = FEATURE_WRSR_WREN, |
| 2042 | .tested = TEST_UNTESTED, |
| 2043 | .probe = probe_spi_at25f, |
| 2044 | .probe_timing = TIMING_ZERO, |
| 2045 | .block_erasers = |
| 2046 | { |
| 2047 | { |
| 2048 | .eraseblocks = { {64 * 1024, 4} }, |
| 2049 | .block_erase = spi_block_erase_52, |
| 2050 | }, { |
| 2051 | .eraseblocks = { {256 * 1024, 1} }, |
| 2052 | .block_erase = spi_block_erase_62, |
| 2053 | } |
| 2054 | }, |
| 2055 | .printlock = spi_prettyprint_status_register_at25f, |
| 2056 | .unlock = spi_disable_blockprotect_at25f, |
| 2057 | .write = spi_chip_write_256, |
| 2058 | .read = spi_chip_read, |
| 2059 | .voltage = {2700, 3600}, |
| 2060 | }, |
| 2061 | |
| 2062 | { |
| 2063 | .vendor = "Atmel", |
| 2064 | .name = "AT25F4096", |
| 2065 | .bustype = BUS_SPI, |
| 2066 | .manufacture_id = ATMEL_ID, |
| 2067 | .model_id = ATMEL_AT25F4096, |
| 2068 | .total_size = 512, |
| 2069 | .page_size = 256, |
| 2070 | .feature_bits = FEATURE_WRSR_WREN, |
| 2071 | .tested = TEST_OK_PREW, |
| 2072 | .probe = probe_spi_at25f, |
| 2073 | .probe_timing = TIMING_ZERO, |
| 2074 | .block_erasers = |
| 2075 | { |
| 2076 | { |
| 2077 | .eraseblocks = { {64 * 1024, 8} }, |
| 2078 | .block_erase = spi_block_erase_52, |
| 2079 | }, { |
| 2080 | .eraseblocks = { {512 * 1024, 1} }, |
| 2081 | .block_erase = spi_block_erase_62, |
| 2082 | } |
| 2083 | }, |
| 2084 | .printlock = spi_prettyprint_status_register_at25f4096, |
| 2085 | /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */ |
| 2086 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 2087 | .write = spi_chip_write_256, |
| 2088 | .read = spi_chip_read, |
| 2089 | .voltage = {2700, 3600}, |
| 2090 | }, |
| 2091 | |
| 2092 | { |
| 2093 | .vendor = "Atmel", |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 2094 | .name = "AT25F512", |
| 2095 | .bustype = BUS_SPI, |
| 2096 | .manufacture_id = ATMEL_ID, |
| 2097 | .model_id = ATMEL_AT25F512, |
| 2098 | .total_size = 64, |
| 2099 | .page_size = 256, |
| 2100 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 2101 | .tested = TEST_OK_PREW, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 2102 | .probe = probe_spi_at25f, |
| 2103 | .probe_timing = TIMING_ZERO, |
| 2104 | .block_erasers = |
| 2105 | { |
| 2106 | { |
| 2107 | .eraseblocks = { {32 * 1024, 2} }, |
| 2108 | .block_erase = spi_block_erase_52, |
| 2109 | }, { |
| 2110 | .eraseblocks = { {64 * 1024, 1} }, |
| 2111 | .block_erase = spi_block_erase_62, |
| 2112 | } |
| 2113 | }, |
| 2114 | .printlock = spi_prettyprint_status_register_at25f, |
| 2115 | .unlock = spi_disable_blockprotect_at25f, |
| 2116 | .write = spi_chip_write_256, |
| 2117 | .read = spi_chip_read, |
| 2118 | .voltage = {2700, 3600}, |
| 2119 | }, |
| 2120 | |
| 2121 | { |
| 2122 | .vendor = "Atmel", |
| 2123 | .name = "AT25F512A", |
| 2124 | .bustype = BUS_SPI, |
| 2125 | .manufacture_id = ATMEL_ID, |
| 2126 | .model_id = ATMEL_AT25F512A, |
| 2127 | .total_size = 64, |
| 2128 | .page_size = 128, |
| 2129 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 2130 | .tested = TEST_OK_PREW, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 2131 | .probe = probe_spi_at25f, |
| 2132 | .probe_timing = TIMING_ZERO, |
| 2133 | .block_erasers = |
| 2134 | { |
| 2135 | { |
| 2136 | .eraseblocks = { {32 * 1024, 2} }, |
| 2137 | .block_erase = spi_block_erase_52, |
| 2138 | }, { |
| 2139 | .eraseblocks = { {64 * 1024, 1} }, |
| 2140 | .block_erase = spi_block_erase_62, |
| 2141 | } |
| 2142 | }, |
| 2143 | .printlock = spi_prettyprint_status_register_at25f512a, |
| 2144 | /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */ |
| 2145 | .unlock = spi_disable_blockprotect_at25f512a, |
| 2146 | .write = spi_chip_write_256, |
| 2147 | .read = spi_chip_read, |
| 2148 | .voltage = {2700, 3600}, |
| 2149 | }, |
| 2150 | |
| 2151 | { |
| 2152 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2153 | .name = "AT25F512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2154 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2155 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2156 | .model_id = ATMEL_AT25F512B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2157 | .total_size = 64, |
| 2158 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 2159 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2160 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2161 | .tested = TEST_UNTESTED, |
| 2162 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2163 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2164 | .block_erasers = |
| 2165 | { |
| 2166 | { |
| 2167 | .eraseblocks = { {4 * 1024, 16} }, |
| 2168 | .block_erase = spi_block_erase_20, |
| 2169 | }, { |
| 2170 | .eraseblocks = { {32 * 1024, 2} }, |
| 2171 | .block_erase = spi_block_erase_52, |
| 2172 | }, { |
| 2173 | .eraseblocks = { {32 * 1024, 2} }, |
| 2174 | .block_erase = spi_block_erase_d8, |
| 2175 | }, { |
| 2176 | .eraseblocks = { {64 * 1024, 1} }, |
| 2177 | .block_erase = spi_block_erase_60, |
| 2178 | }, { |
| 2179 | .eraseblocks = { {64 * 1024, 1} }, |
| 2180 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | 3c0fcd0 | 2012-09-21 12:46:56 +0000 | [diff] [blame] | 2181 | }, { |
| 2182 | .eraseblocks = { {64 * 1024, 1} }, |
| 2183 | .block_erase = spi_block_erase_62, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2184 | } |
| 2185 | }, |
Stefan Tauner | 7bf4ed9 | 2012-08-26 21:04:27 +0000 | [diff] [blame] | 2186 | .printlock = spi_prettyprint_status_register_at25f512b, |
| 2187 | .unlock = spi_disable_blockprotect_at25f512b, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2188 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2189 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2190 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2191 | }, |
| 2192 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2193 | { |
| 2194 | .vendor = "Atmel", |
| 2195 | .name = "AT25FS010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2196 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2197 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2198 | .model_id = ATMEL_AT25FS010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2199 | .total_size = 128, |
| 2200 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2201 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 2202 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2203 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2204 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2205 | .block_erasers = |
| 2206 | { |
| 2207 | { |
| 2208 | .eraseblocks = { {4 * 1024, 32} }, |
| 2209 | .block_erase = spi_block_erase_20, |
| 2210 | }, { |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 2211 | .eraseblocks = { {4 * 1024, 32} }, |
| 2212 | .block_erase = spi_block_erase_d7, |
| 2213 | }, { |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2214 | .eraseblocks = { {32 * 1024, 4} }, |
| 2215 | .block_erase = spi_block_erase_52, |
| 2216 | }, { |
| 2217 | .eraseblocks = { {32 * 1024, 4} }, |
| 2218 | .block_erase = spi_block_erase_d8, |
| 2219 | }, { |
| 2220 | .eraseblocks = { {128 * 1024, 1} }, |
| 2221 | .block_erase = spi_block_erase_60, |
| 2222 | }, { |
| 2223 | .eraseblocks = { {128 * 1024, 1} }, |
| 2224 | .block_erase = spi_block_erase_c7, |
| 2225 | } |
| 2226 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 2227 | .printlock = spi_prettyprint_status_register_at25fs010, |
| 2228 | .unlock = spi_disable_blockprotect_at25fs010, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2229 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2230 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2231 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2232 | }, |
| 2233 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2234 | { |
| 2235 | .vendor = "Atmel", |
| 2236 | .name = "AT25FS040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2237 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2238 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2239 | .model_id = ATMEL_AT25FS040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2240 | .total_size = 512, |
| 2241 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2242 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2243 | .tested = TEST_UNTESTED, |
| 2244 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2245 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2246 | .block_erasers = |
| 2247 | { |
| 2248 | { |
| 2249 | .eraseblocks = { {4 * 1024, 128} }, |
| 2250 | .block_erase = spi_block_erase_20, |
| 2251 | }, { |
| 2252 | .eraseblocks = { {64 * 1024, 8} }, |
| 2253 | .block_erase = spi_block_erase_52, |
| 2254 | }, { |
| 2255 | .eraseblocks = { {64 * 1024, 8} }, |
| 2256 | .block_erase = spi_block_erase_d8, |
| 2257 | }, { |
| 2258 | .eraseblocks = { {512 * 1024, 1} }, |
| 2259 | .block_erase = spi_block_erase_60, |
| 2260 | }, { |
| 2261 | .eraseblocks = { {512 * 1024, 1} }, |
| 2262 | .block_erase = spi_block_erase_c7, |
| 2263 | } |
| 2264 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 2265 | .printlock = spi_prettyprint_status_register_at25fs040, |
| 2266 | .unlock = spi_disable_blockprotect_at25fs040, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2267 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2268 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2269 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2270 | }, |
| 2271 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2272 | { |
| 2273 | .vendor = "Atmel", |
jvm | a3ab6c6 | 2018-03-08 15:43:20 +0100 | [diff] [blame] | 2274 | .name = "AT25SF041", |
| 2275 | .bustype = BUS_SPI, |
| 2276 | .manufacture_id = ATMEL_ID, |
| 2277 | .model_id = ATMEL_AT25SF041, |
| 2278 | .total_size = 512, |
| 2279 | .page_size = 256, |
| 2280 | .feature_bits = FEATURE_WRSR_WREN, |
| 2281 | .tested = TEST_OK_PREW, |
| 2282 | .probe = probe_spi_rdid, |
| 2283 | .probe_timing = TIMING_ZERO, |
| 2284 | .block_erasers = |
| 2285 | { |
| 2286 | { |
| 2287 | .eraseblocks = { {4 * 1024, 128} }, |
| 2288 | .block_erase = spi_block_erase_20, |
| 2289 | }, { |
| 2290 | .eraseblocks = { {32 * 1024, 16} }, |
| 2291 | .block_erase = spi_block_erase_52, |
| 2292 | }, { |
| 2293 | .eraseblocks = { {64 * 1024, 8} }, |
| 2294 | .block_erase = spi_block_erase_d8, |
| 2295 | }, { |
| 2296 | .eraseblocks = { {512 * 1024, 1} }, |
| 2297 | .block_erase = spi_block_erase_60, |
| 2298 | }, { |
| 2299 | .eraseblocks = { {512 * 1024, 1} }, |
| 2300 | .block_erase = spi_block_erase_c7, |
| 2301 | } |
| 2302 | }, |
| 2303 | .printlock = spi_prettyprint_status_register_plain, |
| 2304 | .unlock = spi_disable_blockprotect, |
| 2305 | .write = spi_chip_write_256, |
| 2306 | .read = spi_chip_read, |
| 2307 | .voltage = {2500, 3600}, |
| 2308 | }, |
| 2309 | |
| 2310 | { |
| 2311 | .vendor = "Atmel", |
Evan Jensen | 291c101 | 2018-05-17 14:30:19 -0700 | [diff] [blame] | 2312 | .name = "AT25SF081", |
| 2313 | .bustype = BUS_SPI, |
| 2314 | .manufacture_id = ATMEL_ID, |
| 2315 | .model_id = ATMEL_AT25SF081, |
| 2316 | .total_size = 1024, |
| 2317 | .page_size = 256, |
| 2318 | .feature_bits = FEATURE_WRSR_WREN, |
| 2319 | .tested = TEST_OK_PREW, |
| 2320 | .probe = probe_spi_rdid, |
| 2321 | .probe_timing = TIMING_ZERO, |
| 2322 | .block_erasers = |
| 2323 | { |
| 2324 | { |
| 2325 | .eraseblocks = { {4 * 1024, 256} }, |
| 2326 | .block_erase = spi_block_erase_20, |
| 2327 | }, { |
| 2328 | .eraseblocks = { {32 * 1024, 32} }, |
| 2329 | .block_erase = spi_block_erase_52, |
| 2330 | }, { |
| 2331 | .eraseblocks = { {64 * 1024, 16} }, |
| 2332 | .block_erase = spi_block_erase_d8, |
| 2333 | }, { |
| 2334 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2335 | .block_erase = spi_block_erase_60, |
| 2336 | }, { |
| 2337 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2338 | .block_erase = spi_block_erase_c7, |
| 2339 | } |
| 2340 | }, |
| 2341 | .printlock = spi_prettyprint_status_register_plain, |
| 2342 | .unlock = spi_disable_blockprotect, |
| 2343 | .write = spi_chip_write_256, |
| 2344 | .read = spi_chip_read, |
| 2345 | .voltage = {2300, 3600}, |
| 2346 | }, |
| 2347 | |
| 2348 | { |
| 2349 | .vendor = "Atmel", |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 2350 | .name = "AT25SF161", |
| 2351 | .bustype = BUS_SPI, |
| 2352 | .manufacture_id = ATMEL_ID, |
| 2353 | .model_id = ATMEL_AT25SF161, |
| 2354 | .total_size = 2048, |
| 2355 | .page_size = 256, |
| 2356 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 2357 | .tested = TEST_OK_PREW, |
| 2358 | .probe = probe_spi_rdid, |
| 2359 | .probe_timing = TIMING_ZERO, |
| 2360 | .block_erasers = |
| 2361 | { |
| 2362 | { |
| 2363 | .eraseblocks = { {4 * 1024, 512} }, |
| 2364 | .block_erase = spi_block_erase_20, |
| 2365 | }, { |
| 2366 | .eraseblocks = { {32 * 1024, 64} }, |
| 2367 | .block_erase = spi_block_erase_52, |
| 2368 | }, { |
| 2369 | .eraseblocks = { {64 * 1024, 32} }, |
| 2370 | .block_erase = spi_block_erase_d8, |
| 2371 | }, { |
| 2372 | .eraseblocks = { {2048 * 1024, 1} }, |
| 2373 | .block_erase = spi_block_erase_60, |
| 2374 | }, { |
| 2375 | .eraseblocks = { {2048 * 1024, 1} }, |
| 2376 | .block_erase = spi_block_erase_c7, |
| 2377 | } |
| 2378 | }, |
| 2379 | .printlock = spi_prettyprint_status_register_plain, |
| 2380 | .unlock = spi_disable_blockprotect, |
| 2381 | .write = spi_chip_write_256, |
| 2382 | .read = spi_chip_read, |
| 2383 | .voltage = {2500, 3600}, |
| 2384 | }, |
| 2385 | |
| 2386 | { |
Alan Green | 57938f8 | 2019-06-27 15:06:43 +1000 | [diff] [blame] | 2387 | .vendor = "Atmel", |
darkarnium | 4139438 | 2019-11-04 20:06:48 +0000 | [diff] [blame] | 2388 | .name = "AT25SF321", |
| 2389 | .bustype = BUS_SPI, |
| 2390 | .manufacture_id = ATMEL_ID, |
| 2391 | .model_id = ATMEL_AT25SF321, |
| 2392 | .total_size = 4096, |
| 2393 | .page_size = 256, |
| 2394 | .feature_bits = FEATURE_WRSR_WREN, |
| 2395 | .tested = TEST_OK_PR, |
| 2396 | .probe = probe_spi_rdid, |
| 2397 | .probe_timing = TIMING_ZERO, |
| 2398 | .block_erasers = |
| 2399 | { |
| 2400 | { |
| 2401 | .eraseblocks = { {4 * 1024, 1024} }, |
| 2402 | .block_erase = spi_block_erase_20, |
| 2403 | }, { |
| 2404 | .eraseblocks = { {32 * 1024, 128} }, |
| 2405 | .block_erase = spi_block_erase_52, |
| 2406 | }, { |
| 2407 | .eraseblocks = { {64 * 1024, 64} }, |
| 2408 | .block_erase = spi_block_erase_d8, |
| 2409 | }, { |
| 2410 | .eraseblocks = { {4096 * 1024, 1} }, |
| 2411 | .block_erase = spi_block_erase_60, |
| 2412 | }, { |
| 2413 | .eraseblocks = { {4096 * 1024, 1} }, |
| 2414 | .block_erase = spi_block_erase_c7, |
| 2415 | } |
| 2416 | }, |
| 2417 | .printlock = spi_prettyprint_status_register_plain, |
| 2418 | .unlock = spi_disable_blockprotect, |
| 2419 | .write = spi_chip_write_256, |
| 2420 | .read = spi_chip_read, |
| 2421 | .voltage = {2500, 3600}, |
| 2422 | }, |
| 2423 | |
| 2424 | { |
| 2425 | .vendor = "Atmel", |
Hal Martin | 49e23d2 | 2018-05-27 14:18:43 +0200 | [diff] [blame] | 2426 | .name = "AT25SL128A", |
| 2427 | .bustype = BUS_SPI, |
| 2428 | .manufacture_id = ATMEL_ID, |
| 2429 | .model_id = ATMEL_AT25SL128A, |
| 2430 | .total_size = 16384, |
| 2431 | .page_size = 256, |
| 2432 | /* supports SFDP */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 2433 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QPI_SRP, |
| 2434 | .dummy_cycles = { .qpi_read_params = { 4, 4, 6, 8 } }, |
Hal Martin | 49e23d2 | 2018-05-27 14:18:43 +0200 | [diff] [blame] | 2435 | .tested = TEST_OK_PREW, |
| 2436 | .probe = probe_spi_rdid, |
| 2437 | .probe_timing = TIMING_ZERO, |
| 2438 | .block_erasers = |
| 2439 | { |
| 2440 | { |
| 2441 | .eraseblocks = { {4 * 1024, 4096} }, |
| 2442 | .block_erase = spi_block_erase_20, |
| 2443 | }, { |
| 2444 | .eraseblocks = { {32 * 1024, 512} }, |
| 2445 | .block_erase = spi_block_erase_52, |
| 2446 | }, { |
| 2447 | .eraseblocks = { {64 * 1024, 256} }, |
| 2448 | .block_erase = spi_block_erase_d8, |
| 2449 | }, { |
| 2450 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 2451 | .block_erase = spi_block_erase_60, |
| 2452 | }, { |
| 2453 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 2454 | .block_erase = spi_block_erase_c7, |
| 2455 | } |
| 2456 | }, |
| 2457 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 2458 | .unlock = spi_disable_blockprotect, |
| 2459 | .write = spi_chip_write_256, |
| 2460 | .read = spi_chip_read, |
| 2461 | .voltage = {1700, 2000}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 2462 | .reg_bits = |
| 2463 | { |
| 2464 | .srp = {STATUS1, 7, RW}, |
| 2465 | .srl = {STATUS2, 0, RW}, |
| 2466 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 2467 | .tb = {STATUS1, 5, RW}, |
| 2468 | .sec = {STATUS1, 6, RW}, |
| 2469 | .cmp = {STATUS2, 6, RW}, |
| 2470 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 2471 | .wp_write_cfg = spi_wp_write_cfg, |
| 2472 | .wp_read_cfg = spi_wp_read_cfg, |
| 2473 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 2474 | .decode_range = decode_range_spi25, |
Hal Martin | 49e23d2 | 2018-05-27 14:18:43 +0200 | [diff] [blame] | 2475 | }, |
| 2476 | |
| 2477 | { |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 2478 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2479 | .name = "AT26DF041", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2480 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2481 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2482 | .model_id = ATMEL_AT26DF041, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2483 | .total_size = 512, |
| 2484 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2485 | /* 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] | 2486 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2487 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2488 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2489 | .block_erasers = |
| 2490 | { |
| 2491 | { |
Stefan Tauner | 94b39b4 | 2012-10-27 00:06:02 +0000 | [diff] [blame] | 2492 | .eraseblocks = { {256, 2048} }, |
| 2493 | .block_erase = spi_block_erase_81, |
| 2494 | }, { |
| 2495 | .eraseblocks = { {2 * 1024, 256} }, |
| 2496 | .block_erase = spi_block_erase_50, |
| 2497 | }, { |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2498 | .eraseblocks = { {4 * 1024, 128} }, |
| 2499 | .block_erase = spi_block_erase_20, |
| 2500 | } |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2501 | }, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2502 | .printlock = spi_prettyprint_status_register_plain, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2503 | /* 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] | 2504 | .write = spi_chip_write_1, |
| 2505 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2506 | .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] | 2507 | }, |
| 2508 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2509 | { |
| 2510 | .vendor = "Atmel", |
| 2511 | .name = "AT26DF081A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2512 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2513 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2514 | .model_id = ATMEL_AT26DF081A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2515 | .total_size = 1024, |
| 2516 | .page_size = 256, |
Mathias Krause | 2c3afa3 | 2011-01-17 07:45:54 +0000 | [diff] [blame] | 2517 | .feature_bits = FEATURE_WRSR_WREN, |
| 2518 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2519 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2520 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2521 | .block_erasers = |
| 2522 | { |
| 2523 | { |
| 2524 | .eraseblocks = { {4 * 1024, 256} }, |
| 2525 | .block_erase = spi_block_erase_20, |
| 2526 | }, { |
| 2527 | .eraseblocks = { {32 * 1024, 32} }, |
| 2528 | .block_erase = spi_block_erase_52, |
| 2529 | }, { |
| 2530 | .eraseblocks = { {64 * 1024, 16} }, |
| 2531 | .block_erase = spi_block_erase_d8, |
| 2532 | }, { |
| 2533 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2534 | .block_erase = spi_block_erase_60, |
| 2535 | }, { |
| 2536 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2537 | .block_erase = spi_block_erase_c7, |
| 2538 | } |
| 2539 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2540 | .printlock = spi_prettyprint_status_register_at26df081a, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2541 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2542 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2543 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2544 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2545 | }, |
| 2546 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2547 | { |
| 2548 | .vendor = "Atmel", |
| 2549 | .name = "AT26DF161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2550 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2551 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2552 | .model_id = ATMEL_AT26DF161, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2553 | .total_size = 2048, |
| 2554 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2555 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 2556 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2557 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2558 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2559 | .block_erasers = |
| 2560 | { |
| 2561 | { |
| 2562 | .eraseblocks = { {4 * 1024, 512} }, |
| 2563 | .block_erase = spi_block_erase_20, |
| 2564 | }, { |
| 2565 | .eraseblocks = { {32 * 1024, 64} }, |
| 2566 | .block_erase = spi_block_erase_52, |
| 2567 | }, { |
| 2568 | .eraseblocks = { {64 * 1024, 32} }, |
| 2569 | .block_erase = spi_block_erase_d8, |
| 2570 | }, { |
| 2571 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2572 | .block_erase = spi_block_erase_60, |
| 2573 | }, { |
| 2574 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2575 | .block_erase = spi_block_erase_c7, |
| 2576 | } |
| 2577 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 2578 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2579 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2580 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2581 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2582 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2583 | }, |
| 2584 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2585 | { |
| 2586 | .vendor = "Atmel", |
| 2587 | .name = "AT26DF161A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2588 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2589 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2590 | .model_id = ATMEL_AT26DF161A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2591 | .total_size = 2048, |
| 2592 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2593 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2594 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2595 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2596 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2597 | .block_erasers = |
| 2598 | { |
| 2599 | { |
| 2600 | .eraseblocks = { {4 * 1024, 512} }, |
| 2601 | .block_erase = spi_block_erase_20, |
| 2602 | }, { |
| 2603 | .eraseblocks = { {32 * 1024, 64} }, |
| 2604 | .block_erase = spi_block_erase_52, |
| 2605 | }, { |
| 2606 | .eraseblocks = { {64 * 1024, 32} }, |
| 2607 | .block_erase = spi_block_erase_d8, |
| 2608 | }, { |
| 2609 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2610 | .block_erase = spi_block_erase_60, |
| 2611 | }, { |
| 2612 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2613 | .block_erase = spi_block_erase_c7, |
| 2614 | } |
| 2615 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2616 | .printlock = spi_prettyprint_status_register_at26df081a, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2617 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2618 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2619 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2620 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2621 | }, |
| 2622 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2623 | { |
| 2624 | .vendor = "Atmel", |
| 2625 | .name = "AT26F004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2626 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2627 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2628 | .model_id = ATMEL_AT26F004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2629 | .total_size = 512, |
| 2630 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2631 | .feature_bits = FEATURE_WRSR_WREN, |
Alan Green | 908adf4 | 2019-07-03 15:34:06 +1000 | [diff] [blame] | 2632 | .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD}, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2633 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2634 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2635 | .block_erasers = |
| 2636 | { |
| 2637 | { |
| 2638 | .eraseblocks = { {4 * 1024, 128} }, |
| 2639 | .block_erase = spi_block_erase_20, |
| 2640 | }, { |
| 2641 | .eraseblocks = { {32 * 1024, 16} }, |
| 2642 | .block_erase = spi_block_erase_52, |
| 2643 | }, { |
| 2644 | .eraseblocks = { {64 * 1024, 8} }, |
| 2645 | .block_erase = spi_block_erase_d8, |
| 2646 | }, { |
| 2647 | .eraseblocks = { {512 * 1024, 1} }, |
| 2648 | .block_erase = spi_block_erase_60, |
| 2649 | }, { |
| 2650 | .eraseblocks = { {512 * 1024, 1} }, |
| 2651 | .block_erase = spi_block_erase_c7, |
| 2652 | } |
| 2653 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2654 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2655 | .write = NULL, /* Incompatible Page write */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2656 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2657 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2658 | }, |
| 2659 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2660 | { |
| 2661 | .vendor = "Atmel", |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2662 | .name = "AT29C010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2663 | .bustype = BUS_PARALLEL, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2664 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2665 | .model_id = ATMEL_AT29C010A, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2666 | .total_size = 128, |
| 2667 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2668 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 2669 | .tested = TEST_OK_PRE, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2670 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 2671 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2672 | .block_erasers = |
| 2673 | { |
| 2674 | { |
| 2675 | .eraseblocks = { {128 * 1024, 1} }, |
| 2676 | .block_erase = erase_chip_block_jedec, |
| 2677 | } |
| 2678 | }, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2679 | .write = write_jedec, /* FIXME */ |
| 2680 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2681 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 2682 | .prepare_access = prepare_memory_access, |
| 2683 | .finish_access = finish_memory_access, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2684 | }, |
| 2685 | |
| 2686 | { |
| 2687 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2688 | .name = "AT29C020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2689 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2690 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2691 | .model_id = ATMEL_AT29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2692 | .total_size = 256, |
| 2693 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2694 | .feature_bits = FEATURE_LONG_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 2695 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2696 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 2697 | .probe_timing = 10000, /* 10ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2698 | .block_erasers = |
| 2699 | { |
| 2700 | { |
| 2701 | .eraseblocks = { {256 * 1024, 1} }, |
| 2702 | .block_erase = erase_chip_block_jedec, |
| 2703 | } |
| 2704 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2705 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2706 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2707 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 2708 | .prepare_access = prepare_memory_access, |
| 2709 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2710 | }, |
| 2711 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2712 | { |
| 2713 | .vendor = "Atmel", |
| 2714 | .name = "AT29C040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2715 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2716 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2717 | .model_id = ATMEL_AT29C040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2718 | .total_size = 512, |
| 2719 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2720 | .feature_bits = FEATURE_LONG_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2721 | .tested = TEST_UNTESTED, |
| 2722 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 2723 | .probe_timing = 10000, /* 10 ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2724 | .block_erasers = |
| 2725 | { |
| 2726 | { |
| 2727 | .eraseblocks = { {512 * 1024, 1} }, |
| 2728 | .block_erase = erase_chip_block_jedec, |
| 2729 | } |
| 2730 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2731 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2732 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2733 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 2734 | .prepare_access = prepare_memory_access, |
| 2735 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2736 | }, |
| 2737 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2738 | { |
| 2739 | .vendor = "Atmel", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 2740 | .name = "AT29C512", |
| 2741 | .bustype = BUS_PARALLEL, |
| 2742 | .manufacture_id = ATMEL_ID, |
| 2743 | .model_id = ATMEL_AT29C512, |
| 2744 | .total_size = 64, |
| 2745 | .page_size = 128, |
| 2746 | .feature_bits = FEATURE_LONG_RESET, |
| 2747 | .tested = TEST_OK_PREW, |
| 2748 | .probe = probe_jedec, |
| 2749 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
| 2750 | .block_erasers = |
| 2751 | { |
| 2752 | { |
| 2753 | .eraseblocks = { {64 * 1024, 1} }, |
| 2754 | .block_erase = erase_chip_block_jedec, |
| 2755 | } |
| 2756 | }, |
| 2757 | .write = write_jedec, |
| 2758 | .read = read_memmapped, |
| 2759 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 2760 | .prepare_access = prepare_memory_access, |
| 2761 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 2762 | }, |
| 2763 | |
| 2764 | { |
| 2765 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2766 | .name = "AT45CS1282", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2767 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2768 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2769 | .model_id = ATMEL_AT45CS1282, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2770 | .total_size = 16896, /* No power of two sizes */ |
| 2771 | .page_size = 1056, /* No power of two sizes */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2772 | /* 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] | 2773 | /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */ |
| 2774 | .feature_bits = FEATURE_OTP, |
| 2775 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2776 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2777 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | 1dd5d3a | 2013-08-27 18:02:19 +0000 | [diff] [blame] | 2778 | .block_erasers = |
| 2779 | { |
| 2780 | { |
| 2781 | .eraseblocks = { |
| 2782 | {8 * 1056, 1}, /* sector 0a: opcode 50h */ |
| 2783 | {248 * 1056, 1}, /* sector 0b: opcode 7Ch */ |
| 2784 | {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */ |
| 2785 | }, |
| 2786 | .block_erase = spi_erase_at45cs_sector, |
| 2787 | } |
| 2788 | }, |
| 2789 | .printlock = spi_prettyprint_status_register_plain, |
Stefan Tauner | 1dd5d3a | 2013-08-27 18:02:19 +0000 | [diff] [blame] | 2790 | .write = spi_write_at45db, |
| 2791 | .read = spi_read_at45db, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2792 | .voltage = {2700, 3600}, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2793 | .gran = write_gran_1056bytes, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2794 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2795 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2796 | { |
| 2797 | .vendor = "Atmel", |
| 2798 | .name = "AT45DB011D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2799 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2800 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2801 | .model_id = ATMEL_AT45DB011D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2802 | .total_size = 128, /* or 132, determined from status register */ |
| 2803 | .page_size = 256, /* or 264, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2804 | /* 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] | 2805 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2806 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 2807 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2808 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2809 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2810 | .block_erasers = |
| 2811 | { |
| 2812 | { |
| 2813 | .eraseblocks = { {256, 512} }, |
| 2814 | .block_erase = spi_erase_at45db_page, |
| 2815 | }, { |
| 2816 | .eraseblocks = { {8 * 256, 512/8} }, |
| 2817 | .block_erase = spi_erase_at45db_block, |
| 2818 | }, { |
| 2819 | .eraseblocks = { |
| 2820 | {8 * 256, 1}, |
| 2821 | {120 * 256, 1}, |
| 2822 | {128 * 256, 3}, |
| 2823 | }, |
| 2824 | .block_erase = spi_erase_at45db_sector |
| 2825 | }, { |
| 2826 | .eraseblocks = { {128 * 1024, 1} }, |
| 2827 | .block_erase = spi_erase_at45db_chip, |
| 2828 | } |
| 2829 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2830 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2831 | .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] | 2832 | /* granularity will be set by the probing function. */ |
| 2833 | .write = spi_write_at45db, |
| 2834 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2835 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2836 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2837 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2838 | { |
| 2839 | .vendor = "Atmel", |
| 2840 | .name = "AT45DB021D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2841 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2842 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2843 | .model_id = ATMEL_AT45DB021D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2844 | .total_size = 256, /* or 264, determined from status register */ |
| 2845 | .page_size = 256, /* or 264, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2846 | /* 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] | 2847 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2848 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 2849 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2850 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2851 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2852 | .block_erasers = |
| 2853 | { |
| 2854 | { |
| 2855 | .eraseblocks = { {256, 1024} }, |
| 2856 | .block_erase = spi_erase_at45db_page, |
| 2857 | }, { |
| 2858 | .eraseblocks = { {8 * 256, 1024/8} }, |
| 2859 | .block_erase = spi_erase_at45db_block, |
| 2860 | }, { |
| 2861 | .eraseblocks = { |
| 2862 | {8 * 256, 1}, |
| 2863 | {120 * 256, 1}, |
| 2864 | {128 * 256, 7}, |
| 2865 | }, |
| 2866 | .block_erase = spi_erase_at45db_sector |
| 2867 | }, { |
| 2868 | .eraseblocks = { {256 * 1024, 1} }, |
| 2869 | .block_erase = spi_erase_at45db_chip, |
| 2870 | } |
| 2871 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2872 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2873 | .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] | 2874 | /* granularity will be set by the probing function. */ |
| 2875 | .write = spi_write_at45db, |
| 2876 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2877 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2878 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2879 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2880 | { |
| 2881 | .vendor = "Atmel", |
| 2882 | .name = "AT45DB041D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2883 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2884 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2885 | .model_id = ATMEL_AT45DB041D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2886 | .total_size = 512, /* or 528, determined from status register */ |
| 2887 | .page_size = 256, /* or 264, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2888 | /* 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] | 2889 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2890 | .feature_bits = FEATURE_OTP, |
| 2891 | .tested = TEST_OK_PREW, |
| 2892 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2893 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2894 | .block_erasers = |
| 2895 | { |
| 2896 | { |
| 2897 | .eraseblocks = { {256, 2048} }, |
| 2898 | .block_erase = spi_erase_at45db_page, |
| 2899 | }, { |
| 2900 | .eraseblocks = { {8 * 256, 2048/8} }, |
| 2901 | .block_erase = spi_erase_at45db_block, |
| 2902 | }, { |
| 2903 | .eraseblocks = { |
| 2904 | {8 * 256, 1}, |
| 2905 | {248 * 256, 1}, |
| 2906 | {256 * 256, 7}, |
| 2907 | }, |
| 2908 | .block_erase = spi_erase_at45db_sector |
| 2909 | }, { |
| 2910 | .eraseblocks = { {512 * 1024, 1} }, |
| 2911 | .block_erase = spi_erase_at45db_chip, |
| 2912 | } |
| 2913 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2914 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2915 | .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] | 2916 | /* granularity will be set by the probing function. */ |
| 2917 | .write = spi_write_at45db, |
| 2918 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 2919 | .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] | 2920 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2921 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2922 | { |
| 2923 | .vendor = "Atmel", |
| 2924 | .name = "AT45DB081D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2925 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2926 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2927 | .model_id = ATMEL_AT45DB081D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2928 | .total_size = 1024, /* or 1056, determined from status register */ |
| 2929 | .page_size = 256, /* or 264, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2930 | /* 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] | 2931 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2932 | .feature_bits = FEATURE_OTP, |
Angel Pons | 250aeba | 2018-09-30 20:28:22 +0200 | [diff] [blame] | 2933 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2934 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2935 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2936 | .block_erasers = |
| 2937 | { |
| 2938 | { |
| 2939 | .eraseblocks = { {256, 4096} }, |
| 2940 | .block_erase = spi_erase_at45db_page, |
| 2941 | }, { |
| 2942 | .eraseblocks = { {8 * 256, 4096/8} }, |
| 2943 | .block_erase = spi_erase_at45db_block, |
| 2944 | }, { |
| 2945 | .eraseblocks = { |
| 2946 | {8 * 256, 1}, |
| 2947 | {248 * 256, 1}, |
| 2948 | {256 * 256, 15}, |
| 2949 | }, |
| 2950 | .block_erase = spi_erase_at45db_sector |
| 2951 | }, { |
| 2952 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2953 | .block_erase = spi_erase_at45db_chip, |
| 2954 | } |
| 2955 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2956 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2957 | .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] | 2958 | /* granularity will be set by the probing function. */ |
| 2959 | .write = spi_write_at45db, |
| 2960 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2961 | .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] | 2962 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2963 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2964 | { |
| 2965 | .vendor = "Atmel", |
| 2966 | .name = "AT45DB161D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2967 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2968 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2969 | .model_id = ATMEL_AT45DB161D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2970 | .total_size = 2048, /* or 2112, determined from status register */ |
| 2971 | .page_size = 512, /* or 528, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2972 | /* 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] | 2973 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2974 | .feature_bits = FEATURE_OTP, |
| 2975 | .tested = TEST_OK_PREW, |
| 2976 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2977 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2978 | .block_erasers = |
| 2979 | { |
| 2980 | { |
| 2981 | .eraseblocks = { {512, 4096} }, |
| 2982 | .block_erase = spi_erase_at45db_page, |
| 2983 | }, { |
| 2984 | .eraseblocks = { {8 * 512, 4096/8} }, |
| 2985 | .block_erase = spi_erase_at45db_block, |
| 2986 | }, { |
| 2987 | .eraseblocks = { |
| 2988 | {8 * 512, 1}, |
| 2989 | {248 * 512, 1}, |
| 2990 | {256 * 512, 15}, |
| 2991 | }, |
| 2992 | .block_erase = spi_erase_at45db_sector |
| 2993 | }, { |
| 2994 | .eraseblocks = { {2048 * 1024, 1} }, |
| 2995 | .block_erase = spi_erase_at45db_chip, |
| 2996 | } |
| 2997 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2998 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2999 | .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] | 3000 | /* granularity will be set by the probing function. */ |
| 3001 | .write = spi_write_at45db, |
| 3002 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 3003 | .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] | 3004 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3005 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3006 | { |
| 3007 | .vendor = "Atmel", |
| 3008 | .name = "AT45DB321C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3009 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3010 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3011 | .model_id = ATMEL_AT45DB321C, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 3012 | .total_size = 4224, /* No power of two sizes */ |
| 3013 | .page_size = 528, /* No power of two sizes */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3014 | /* 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] | 3015 | /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */ |
| 3016 | .feature_bits = FEATURE_OTP, |
| 3017 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3018 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3019 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | fdc4f7e | 2013-08-27 18:02:12 +0000 | [diff] [blame] | 3020 | .block_erasers = |
| 3021 | { |
| 3022 | { |
| 3023 | .eraseblocks = { {528, 8192} }, |
| 3024 | .block_erase = spi_erase_at45db_page, |
| 3025 | }, { |
| 3026 | .eraseblocks = { {8 * 528, 8192/8} }, |
| 3027 | .block_erase = spi_erase_at45db_block, |
| 3028 | }, /* Although the datasheets describes sectors (which can be write protected) |
| 3029 | * there seems to be no erase functions for them. |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 3030 | { |
Stefan Tauner | fdc4f7e | 2013-08-27 18:02:12 +0000 | [diff] [blame] | 3031 | .eraseblocks = { |
| 3032 | {8 * 528, 1}, |
| 3033 | {120 * 528, 1}, |
| 3034 | {128 * 528, 63}, |
| 3035 | }, |
| 3036 | .block_erase = spi_erase_at45db_sector |
| 3037 | }, */ { |
| 3038 | .eraseblocks = { {4224 * 1024, 1} }, |
| 3039 | .block_erase = spi_erase_at45db_chip, |
| 3040 | } |
| 3041 | }, |
| 3042 | .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */ |
Stefan Tauner | fdc4f7e | 2013-08-27 18:02:12 +0000 | [diff] [blame] | 3043 | .write = spi_write_at45db, |
| 3044 | .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3045 | .voltage = {2700, 3600}, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3046 | .gran = write_gran_528bytes, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 3047 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3048 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3049 | { |
| 3050 | .vendor = "Atmel", |
| 3051 | .name = "AT45DB321D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3052 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3053 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3054 | .model_id = ATMEL_AT45DB321D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 3055 | .total_size = 4096, /* or 4224, determined from status register */ |
| 3056 | .page_size = 512, /* or 528, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3057 | /* 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] | 3058 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 3059 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 3060 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3061 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3062 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3063 | .block_erasers = |
| 3064 | { |
| 3065 | { |
| 3066 | .eraseblocks = { {512, 8192} }, |
| 3067 | .block_erase = spi_erase_at45db_page, |
| 3068 | }, { |
| 3069 | .eraseblocks = { {8 * 512, 8192/8} }, |
| 3070 | .block_erase = spi_erase_at45db_block, |
| 3071 | }, { |
| 3072 | .eraseblocks = { |
| 3073 | {8 * 512, 1}, |
| 3074 | {120 * 512, 1}, |
| 3075 | {128 * 512, 63}, |
| 3076 | }, |
| 3077 | .block_erase = spi_erase_at45db_sector |
| 3078 | }, { |
| 3079 | .eraseblocks = { {4096 * 1024, 1} }, |
| 3080 | .block_erase = spi_erase_at45db_chip, |
| 3081 | } |
| 3082 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3083 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3084 | .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] | 3085 | /* granularity will be set by the probing function. */ |
| 3086 | .write = spi_write_at45db, |
| 3087 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 3088 | .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */ |
| 3089 | }, |
| 3090 | |
| 3091 | { |
| 3092 | .vendor = "Atmel", |
| 3093 | .name = "AT45DB321E", |
| 3094 | .bustype = BUS_SPI, |
| 3095 | .manufacture_id = ATMEL_ID, |
| 3096 | .model_id = ATMEL_AT45DB321C, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 3097 | .total_size = 4096, /* or 4224, determined from status register */ |
| 3098 | .page_size = 512, /* or 528, determined from status register */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3099 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
| 3100 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 3101 | .feature_bits = FEATURE_OTP, |
| 3102 | .tested = TEST_UNTESTED, |
| 3103 | .probe = probe_spi_at45db, |
| 3104 | .probe_timing = TIMING_ZERO, |
| 3105 | .block_erasers = |
| 3106 | { |
| 3107 | { |
| 3108 | .eraseblocks = { {512, 8192} }, |
| 3109 | .block_erase = spi_erase_at45db_page, |
| 3110 | }, { |
| 3111 | .eraseblocks = { {8 * 512, 8192/8} }, |
| 3112 | .block_erase = spi_erase_at45db_block, |
| 3113 | }, { |
| 3114 | .eraseblocks = { |
| 3115 | {8 * 512, 1}, |
| 3116 | {120 * 512, 1}, |
| 3117 | {128 * 512, 63}, |
| 3118 | }, |
| 3119 | .block_erase = spi_erase_at45db_sector |
| 3120 | }, { |
| 3121 | .eraseblocks = { {4096 * 1024, 1} }, |
| 3122 | .block_erase = spi_erase_at45db_chip, |
| 3123 | } |
| 3124 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3125 | .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */ |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3126 | .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] | 3127 | /* granularity will be set by the probing function. */ |
| 3128 | .write = spi_write_at45db, |
| 3129 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 3130 | .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] | 3131 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3132 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3133 | { |
| 3134 | .vendor = "Atmel", |
| 3135 | .name = "AT45DB642D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3136 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3137 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3138 | .model_id = ATMEL_AT45DB642D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 3139 | .total_size = 8192, /* or 8448, determined from status register */ |
| 3140 | .page_size = 1024, /* or 1056, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3141 | /* 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] | 3142 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 3143 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 3144 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3145 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3146 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3147 | .block_erasers = |
| 3148 | { |
| 3149 | { |
| 3150 | .eraseblocks = { {1024, 8192} }, |
| 3151 | .block_erase = spi_erase_at45db_page, |
| 3152 | }, { |
| 3153 | .eraseblocks = { {8 * 1024, 8192/8} }, |
| 3154 | .block_erase = spi_erase_at45db_block, |
| 3155 | }, { |
| 3156 | .eraseblocks = { |
| 3157 | {8 * 1024, 1}, |
| 3158 | {248 * 1024, 1}, |
| 3159 | {256 * 1024, 31}, |
| 3160 | }, |
| 3161 | .block_erase = spi_erase_at45db_sector |
| 3162 | }, { |
| 3163 | .eraseblocks = { {8192 * 1024, 1} }, |
| 3164 | .block_erase = spi_erase_at45db_chip, |
| 3165 | } |
| 3166 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3167 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3168 | .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] | 3169 | /* granularity will be set by the probing function. */ |
| 3170 | .write = spi_write_at45db, |
| 3171 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3172 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 3173 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3174 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3175 | { |
| 3176 | .vendor = "Atmel", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3177 | .name = "AT49(H)F010", |
| 3178 | .bustype = BUS_PARALLEL, |
| 3179 | .manufacture_id = ATMEL_ID, |
| 3180 | .model_id = ATMEL_AT49F010, |
| 3181 | .total_size = 128, |
| 3182 | .page_size = 0, /* unused */ |
| 3183 | .feature_bits = FEATURE_EITHER_RESET, |
| 3184 | .tested = TEST_OK_PREW, |
| 3185 | .probe = probe_jedec, |
| 3186 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3187 | .block_erasers = |
| 3188 | { |
| 3189 | { |
| 3190 | .eraseblocks = { {128 * 1024, 1} }, |
| 3191 | .block_erase = erase_chip_block_jedec, |
| 3192 | } |
| 3193 | }, |
| 3194 | .printlock = printlock_at49f, |
| 3195 | .write = write_jedec_1, |
| 3196 | .read = read_memmapped, |
| 3197 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3198 | .prepare_access = prepare_memory_access, |
| 3199 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3200 | }, |
| 3201 | |
| 3202 | { |
| 3203 | .vendor = "Atmel", |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3204 | .name = "AT49BV512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3205 | .bustype = BUS_PARALLEL, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3206 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3207 | .model_id = ATMEL_AT49BV512, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3208 | .total_size = 64, |
| 3209 | .page_size = 64, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3210 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 3211 | .tested = TEST_OK_PREW, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3212 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3213 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 3214 | .block_erasers = |
| 3215 | { |
| 3216 | { |
| 3217 | .eraseblocks = { {64 * 1024, 1} }, |
| 3218 | .block_erase = erase_chip_block_jedec, |
| 3219 | } |
| 3220 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3221 | .write = write_jedec_1, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3222 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3223 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3224 | .prepare_access = prepare_memory_access, |
| 3225 | .finish_access = finish_memory_access, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3226 | }, |
| 3227 | |
| 3228 | { |
| 3229 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3230 | .name = "AT49F002(N)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3231 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3232 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3233 | .model_id = ATMEL_AT49F002N, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3234 | .total_size = 256, |
| 3235 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3236 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3237 | .tested = TEST_UNTESTED, |
| 3238 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3239 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 3240 | .block_erasers = |
| 3241 | { |
| 3242 | { |
| 3243 | .eraseblocks = { |
| 3244 | {16 * 1024, 1}, |
| 3245 | {8 * 1024, 2}, |
| 3246 | {96 * 1024, 1}, |
| 3247 | {128 * 1024, 1}, |
| 3248 | }, |
| 3249 | .block_erase = erase_sector_jedec, |
| 3250 | }, { |
| 3251 | .eraseblocks = { {256 * 1024, 1} }, |
| 3252 | .block_erase = erase_chip_block_jedec, |
| 3253 | } |
| 3254 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3255 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3256 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3257 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3258 | .prepare_access = prepare_memory_access, |
| 3259 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3260 | }, |
| 3261 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3262 | { |
| 3263 | .vendor = "Atmel", |
| 3264 | .name = "AT49F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3265 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3266 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3267 | .model_id = ATMEL_AT49F002NT, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3268 | .total_size = 256, |
| 3269 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3270 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 3271 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3272 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3273 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 3274 | .block_erasers = |
| 3275 | { |
| 3276 | { |
| 3277 | .eraseblocks = { |
| 3278 | {128 * 1024, 1}, |
| 3279 | {96 * 1024, 1}, |
| 3280 | {8 * 1024, 2}, |
| 3281 | {16 * 1024, 1}, |
| 3282 | }, |
| 3283 | .block_erase = erase_sector_jedec, |
| 3284 | }, { |
| 3285 | .eraseblocks = { {256 * 1024, 1} }, |
| 3286 | .block_erase = erase_chip_block_jedec, |
| 3287 | } |
| 3288 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3289 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3290 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3291 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3292 | .prepare_access = prepare_memory_access, |
| 3293 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3294 | }, |
| 3295 | |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 3296 | { |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3297 | .vendor = "Atmel", |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 3298 | .name = "AT49F020", |
| 3299 | .bustype = BUS_PARALLEL, |
| 3300 | .manufacture_id = ATMEL_ID, |
| 3301 | .model_id = ATMEL_AT49F020, |
| 3302 | .total_size = 256, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3303 | .page_size = 0, /* unused */ |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 3304 | .feature_bits = FEATURE_EITHER_RESET, |
| 3305 | .tested = TEST_OK_PRE, |
| 3306 | .probe = probe_jedec, |
| 3307 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3308 | .block_erasers = |
| 3309 | { |
| 3310 | { |
| 3311 | .eraseblocks = { {256 * 1024, 1} }, |
| 3312 | .block_erase = erase_chip_block_jedec, |
| 3313 | } |
| 3314 | /* Chip features an optional permanent write protection |
| 3315 | * of the first 8 kB. The erase function is the same as |
| 3316 | * above, but 00000H to 01FFFH will not be erased. |
| 3317 | * FIXME: add another eraser when partial erasers are |
| 3318 | * supported. |
| 3319 | */ |
| 3320 | }, |
| 3321 | .printlock = printlock_at49f, |
| 3322 | .write = write_jedec_1, |
| 3323 | .read = read_memmapped, |
| 3324 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3325 | .prepare_access = prepare_memory_access, |
| 3326 | .finish_access = finish_memory_access, |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 3327 | }, |
| 3328 | |
| 3329 | { |
| 3330 | .vendor = "Atmel", |
| 3331 | .name = "AT49F040", |
| 3332 | .bustype = BUS_PARALLEL, |
| 3333 | .manufacture_id = ATMEL_ID, |
| 3334 | .model_id = ATMEL_AT49F040, |
| 3335 | .total_size = 512, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3336 | .page_size = 0, /* unused */ |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 3337 | .feature_bits = FEATURE_EITHER_RESET, |
| 3338 | .tested = TEST_UNTESTED, |
| 3339 | .probe = probe_jedec, |
| 3340 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3341 | .block_erasers = |
| 3342 | { |
| 3343 | { |
| 3344 | .eraseblocks = { {512 * 1024, 1} }, |
| 3345 | .block_erase = erase_chip_block_jedec, |
| 3346 | } |
| 3347 | /* Chip features an optional permanent write protection |
| 3348 | * of the first 16 kB. The erase function is the same as |
| 3349 | * above, but 00000H to 03FFFH will not be erased. |
| 3350 | * FIXME: add another eraser when partial erasers are |
| 3351 | * supported. |
| 3352 | */ |
| 3353 | }, |
| 3354 | .printlock = printlock_at49f, |
| 3355 | .write = write_jedec_1, |
| 3356 | .read = read_memmapped, |
| 3357 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3358 | .prepare_access = prepare_memory_access, |
| 3359 | .finish_access = finish_memory_access, |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 3360 | }, |
| 3361 | |
| 3362 | { |
| 3363 | .vendor = "Atmel", |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3364 | .name = "AT49F080", |
| 3365 | .bustype = BUS_PARALLEL, |
| 3366 | .manufacture_id = ATMEL_ID, |
| 3367 | .model_id = ATMEL_AT49F080, |
| 3368 | .total_size = 1024, |
| 3369 | .page_size = 0, /* unused */ |
| 3370 | .feature_bits = FEATURE_EITHER_RESET, |
| 3371 | .tested = TEST_UNTESTED, |
| 3372 | .probe = probe_jedec, |
| 3373 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3374 | .block_erasers = |
| 3375 | { |
| 3376 | { |
| 3377 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3378 | .block_erase = erase_chip_block_jedec, |
| 3379 | } |
| 3380 | /* Chip features an optional permanent write protection |
| 3381 | * of the first 16 kB. The erase function is the same as |
| 3382 | * above, but 00000H to 03FFFH will not be erased. |
| 3383 | * FIXME: add another eraser when partial erasers are |
| 3384 | * supported. |
| 3385 | */ |
| 3386 | }, |
| 3387 | .printlock = printlock_at49f, |
| 3388 | .write = write_jedec_1, |
| 3389 | .read = read_memmapped, |
| 3390 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3391 | .prepare_access = prepare_memory_access, |
| 3392 | .finish_access = finish_memory_access, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3393 | }, |
| 3394 | |
| 3395 | { |
| 3396 | /* 'top' version of AT49F080. equal in all aspects but the boot block address */ |
| 3397 | .vendor = "Atmel", |
| 3398 | .name = "AT49F080T", |
| 3399 | .bustype = BUS_PARALLEL, |
| 3400 | .manufacture_id = ATMEL_ID, |
| 3401 | .model_id = ATMEL_AT49F080T, |
| 3402 | .total_size = 1024, |
| 3403 | .page_size = 0, /* unused */ |
| 3404 | .feature_bits = FEATURE_EITHER_RESET, |
| 3405 | .tested = TEST_UNTESTED, |
| 3406 | .probe = probe_jedec, |
| 3407 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3408 | .block_erasers = |
| 3409 | { |
| 3410 | { |
| 3411 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3412 | .block_erase = erase_chip_block_jedec, |
| 3413 | } |
| 3414 | /* Chip features an optional permanent write protection |
| 3415 | * of the first 16 kB. The erase function is the same as |
| 3416 | * above, but FC000H to FFFFFH will not be erased. |
| 3417 | * FIXME: add another eraser when partial erasers are |
| 3418 | * supported. |
| 3419 | */ |
| 3420 | }, |
| 3421 | .printlock = printlock_at49f, |
| 3422 | .write = write_jedec_1, |
| 3423 | .read = read_memmapped, |
| 3424 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3425 | .prepare_access = prepare_memory_access, |
| 3426 | .finish_access = finish_memory_access, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3427 | }, |
| 3428 | |
| 3429 | { |
| 3430 | .vendor = "Atmel", |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3431 | .name = "AT49LH002", |
| 3432 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 3433 | .manufacture_id = ATMEL_ID, |
| 3434 | .model_id = ATMEL_AT49LH002, |
| 3435 | .total_size = 256, |
| 3436 | .page_size = 0, /* unused */ |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3437 | .tested = TEST_UNTESTED, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3438 | .probe = probe_82802ab, |
| 3439 | .probe_timing = TIMING_ZERO, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3440 | .block_erasers = |
| 3441 | { |
| 3442 | { |
| 3443 | .eraseblocks = { |
| 3444 | {64 * 1024, 3}, |
| 3445 | {32 * 1024, 1}, |
| 3446 | {8 * 1024, 2}, |
| 3447 | {16 * 1024, 1}, |
| 3448 | }, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3449 | .block_erase = NULL, /* TODO: Implement. */ |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3450 | }, { |
| 3451 | .eraseblocks = { |
| 3452 | {64 * 1024, 4}, |
| 3453 | }, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3454 | .block_erase = erase_block_82802ab, |
| 3455 | }, |
| 3456 | }, |
| 3457 | .printlock = printlock_regspace2_block_eraser_0, |
| 3458 | .unlock = unlock_regspace2_block_eraser_0, |
| 3459 | .write = write_82802ab, |
| 3460 | .read = read_memmapped, |
| 3461 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 3462 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3463 | .finish_access = finish_memory_access, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3464 | }, |
| 3465 | |
| 3466 | { |
| 3467 | .vendor = "Atmel", |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3468 | .name = "AT49LH004", |
| 3469 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 3470 | .manufacture_id = ATMEL_ID, |
| 3471 | .model_id = ATMEL_AT49LH004, |
| 3472 | .total_size = 512, |
| 3473 | .page_size = 0, /* unused */ |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3474 | .tested = TEST_UNTESTED, |
| 3475 | .probe = probe_82802ab, |
| 3476 | .probe_timing = TIMING_ZERO, |
| 3477 | .block_erasers = |
| 3478 | { |
| 3479 | { |
| 3480 | .eraseblocks = { |
| 3481 | {64 * 1024, 7}, |
| 3482 | {32 * 1024, 1}, |
| 3483 | {8 * 1024, 2}, |
| 3484 | {16 * 1024, 1}, |
| 3485 | }, |
| 3486 | .block_erase = erase_block_82802ab, |
| 3487 | }, { |
| 3488 | .eraseblocks = { |
| 3489 | {64 * 1024, 8}, |
| 3490 | }, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3491 | .block_erase = NULL, /* TODO: Implement. */ |
| 3492 | }, |
| 3493 | }, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3494 | .printlock = printlock_regspace2_block_eraser_0, |
| 3495 | .unlock = unlock_regspace2_block_eraser_0, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3496 | .write = write_82802ab, |
| 3497 | .read = read_memmapped, |
| 3498 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 3499 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3500 | .finish_access = finish_memory_access, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3501 | }, |
| 3502 | |
| 3503 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3504 | .vendor = "Atmel", |
| 3505 | .name = "AT49LH00B4", |
| 3506 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 3507 | .manufacture_id = ATMEL_ID, |
| 3508 | .model_id = ATMEL_AT49LH00B4, |
| 3509 | .total_size = 512, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3510 | .page_size = 0, /* unused */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3511 | .tested = TEST_UNTESTED, |
| 3512 | .probe = probe_82802ab, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3513 | .probe_timing = TIMING_ZERO, |
| 3514 | .block_erasers = |
| 3515 | { |
| 3516 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3517 | .eraseblocks = { |
| 3518 | {8 * 1024, 2}, |
| 3519 | {16 * 1024, 1}, |
| 3520 | {32 * 1024, 1}, |
| 3521 | {64 * 1024, 7}, |
| 3522 | }, |
| 3523 | .block_erase = NULL, /* TODO: Implement. */ |
| 3524 | }, { |
| 3525 | .eraseblocks = { |
| 3526 | {64 * 1024, 8}, |
| 3527 | }, |
| 3528 | .block_erase = erase_block_82802ab, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3529 | }, |
| 3530 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3531 | .printlock = printlock_regspace2_block_eraser_0, |
| 3532 | .unlock = unlock_regspace2_block_eraser_0, |
| 3533 | .write = write_82802ab, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3534 | .read = read_memmapped, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3535 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 3536 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3537 | .finish_access = finish_memory_access, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3538 | }, |
| 3539 | |
| 3540 | { |
Angel Pons | 1ebda78 | 2021-04-20 21:39:11 +0200 | [diff] [blame] | 3541 | .vendor = "Boya/BoHong Microelectronics", |
Christian Kudera | 475a7ee | 2021-04-20 22:50:01 +0200 | [diff] [blame] | 3542 | .name = "B.25D16A", |
| 3543 | .bustype = BUS_SPI, |
| 3544 | .manufacture_id = BOYA_BOHONG_ID, |
| 3545 | .model_id = BOYA_BOHONG_B_25D16A, |
| 3546 | .total_size = 2048, |
| 3547 | .page_size = 256, |
| 3548 | .feature_bits = FEATURE_WRSR_WREN, |
| 3549 | .tested = TEST_OK_PR, |
| 3550 | .probe = probe_spi_rdid, |
| 3551 | .probe_timing = TIMING_ZERO, |
| 3552 | .block_erasers = |
| 3553 | { |
| 3554 | { |
| 3555 | .eraseblocks = { {4 * 1024, 512} }, |
| 3556 | .block_erase = spi_block_erase_20, |
| 3557 | }, { |
| 3558 | .eraseblocks = { {32 * 1024, 64} }, |
| 3559 | .block_erase = spi_block_erase_52, |
| 3560 | }, { |
| 3561 | .eraseblocks = { {64 * 1024, 32} }, |
| 3562 | .block_erase = spi_block_erase_d8, |
| 3563 | }, { |
| 3564 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3565 | .block_erase = spi_block_erase_60, |
| 3566 | }, { |
| 3567 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3568 | .block_erase = spi_block_erase_c7, |
| 3569 | } |
| 3570 | }, |
| 3571 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 3572 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 3573 | .write = spi_chip_write_256, |
| 3574 | .read = spi_chip_read, |
| 3575 | .voltage = {2700, 3600}, |
| 3576 | }, |
| 3577 | |
| 3578 | { |
| 3579 | .vendor = "Boya/BoHong Microelectronics", |
Angel Pons | 1ebda78 | 2021-04-20 21:39:11 +0200 | [diff] [blame] | 3580 | .name = "B.25Q128AS", |
Jack Olsen | 73ae5ef | 2020-08-08 21:12:13 -0500 | [diff] [blame] | 3581 | .bustype = BUS_SPI, |
Angel Pons | 1ebda78 | 2021-04-20 21:39:11 +0200 | [diff] [blame] | 3582 | .manufacture_id = BOYA_BOHONG_ID, |
| 3583 | .model_id = BOYA_BOHONG_B_25Q128AS, |
Jack Olsen | 73ae5ef | 2020-08-08 21:12:13 -0500 | [diff] [blame] | 3584 | .total_size = 16384, |
| 3585 | .page_size = 256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 3586 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QIO, |
Jack Olsen | 73ae5ef | 2020-08-08 21:12:13 -0500 | [diff] [blame] | 3587 | .tested = TEST_OK_PREW, |
| 3588 | .probe = probe_spi_rdid, |
| 3589 | .probe_timing = TIMING_ZERO, |
| 3590 | .block_erasers = |
| 3591 | { |
| 3592 | { |
| 3593 | .eraseblocks = { {4 * 1024, 4096} }, |
| 3594 | .block_erase = spi_block_erase_20, |
| 3595 | }, { |
| 3596 | .eraseblocks = { {32 * 1024, 512} }, |
| 3597 | .block_erase = spi_block_erase_52, |
| 3598 | }, { |
| 3599 | .eraseblocks = { {64 * 1024, 256} }, |
| 3600 | .block_erase = spi_block_erase_d8, |
| 3601 | }, { |
| 3602 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 3603 | .block_erase = spi_block_erase_60, |
| 3604 | }, { |
| 3605 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 3606 | .block_erase = spi_block_erase_c7, |
| 3607 | } |
| 3608 | }, |
| 3609 | .printlock = spi_prettyprint_status_register_plain, |
| 3610 | .unlock = spi_disable_blockprotect_at25fs040, |
| 3611 | .write = spi_chip_write_256, |
| 3612 | .read = spi_chip_read, |
| 3613 | .voltage = {2700, 3600}, |
| 3614 | }, |
| 3615 | |
| 3616 | { |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3617 | .vendor = "Bright", |
| 3618 | .name = "BM29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3619 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3620 | .manufacture_id = BRIGHT_ID, |
| 3621 | .model_id = BRIGHT_BM29F040, |
| 3622 | .total_size = 512, |
| 3623 | .page_size = 64 * 1024, |
| 3624 | .feature_bits = FEATURE_EITHER_RESET, |
| 3625 | .tested = TEST_OK_PR, |
| 3626 | .probe = probe_jedec, |
| 3627 | .probe_timing = TIMING_ZERO, |
| 3628 | .block_erasers = |
| 3629 | { |
| 3630 | { |
| 3631 | .eraseblocks = { {64 * 1024, 8} }, |
| 3632 | .block_erase = erase_sector_jedec, |
| 3633 | }, { |
| 3634 | .eraseblocks = { {512 * 1024, 1} }, |
| 3635 | .block_erase = erase_chip_block_jedec, |
| 3636 | }, |
| 3637 | }, |
| 3638 | .write = write_jedec_1, |
| 3639 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 3640 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3641 | .prepare_access = prepare_memory_access, |
| 3642 | .finish_access = finish_memory_access, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3643 | }, |
| 3644 | |
| 3645 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3646 | .vendor = "Catalyst", |
| 3647 | .name = "CAT28F512", |
| 3648 | .bustype = BUS_PARALLEL, |
| 3649 | .manufacture_id = CATALYST_ID, |
| 3650 | .model_id = CATALYST_CAT28F512, |
| 3651 | .total_size = 64, |
| 3652 | .page_size = 0, /* unused */ |
| 3653 | .feature_bits = 0, |
Alan Green | 908adf4 | 2019-07-03 15:34:06 +1000 | [diff] [blame] | 3654 | .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD}, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3655 | .probe = probe_jedec, /* FIXME! */ |
| 3656 | .probe_timing = TIMING_ZERO, |
| 3657 | .block_erasers = |
| 3658 | { |
| 3659 | { |
| 3660 | .eraseblocks = { {64 * 1024, 1} }, |
| 3661 | .block_erase = NULL, /* TODO */ |
| 3662 | }, |
| 3663 | }, |
| 3664 | .write = NULL, /* TODO */ |
| 3665 | .read = read_memmapped, |
| 3666 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3667 | .prepare_access = prepare_memory_access, |
| 3668 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3669 | }, |
| 3670 | |
| 3671 | { |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3672 | .vendor = "ENE", |
| 3673 | .name = "KB9012 (EDI)", |
| 3674 | .bustype = BUS_SPI, |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3675 | .total_size = 128, |
| 3676 | .page_size = 128, |
| 3677 | .feature_bits = FEATURE_ERASED_ZERO, |
| 3678 | .tested = TEST_OK_PREW, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3679 | .spi_cmd_set = SPI_EDI, |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3680 | .probe = edi_probe_kb9012, |
| 3681 | .probe_timing = TIMING_ZERO, |
| 3682 | .block_erasers = |
| 3683 | { |
| 3684 | { |
| 3685 | .eraseblocks = { {128, 1024} }, |
| 3686 | .block_erase = edi_chip_block_erase, |
| 3687 | }, |
| 3688 | }, |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3689 | .write = edi_chip_write, |
| 3690 | .read = edi_chip_read, |
| 3691 | .voltage = {2700, 3600}, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3692 | .gran = write_gran_128bytes, |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3693 | }, |
| 3694 | |
| 3695 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3696 | .vendor = "ESI", |
| 3697 | .name = "ES25P16", |
| 3698 | .bustype = BUS_SPI, |
| 3699 | .manufacture_id = EXCEL_ID_NOPREFIX, |
| 3700 | .model_id = EXCEL_ES25P16, |
| 3701 | .total_size = 2 * 1024, |
| 3702 | .page_size = 256, |
| 3703 | /* 256-byte parameter page separate from memory array: |
| 3704 | * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */ |
| 3705 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3706 | .tested = TEST_UNTESTED, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3707 | .probe = probe_spi_rdid, |
| 3708 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3709 | .block_erasers = |
| 3710 | { |
| 3711 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3712 | .eraseblocks = { {64 * 1024, 32} }, |
| 3713 | .block_erase = spi_block_erase_d8, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3714 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3715 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3716 | .block_erase = spi_block_erase_c7, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3717 | } |
| 3718 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3719 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 3720 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 3721 | .write = spi_chip_write_256, |
| 3722 | .read = spi_chip_read, /* Fast Read (0x0B) supported */ |
| 3723 | .voltage = {2700, 3600}, |
| 3724 | }, |
| 3725 | |
| 3726 | { |
| 3727 | .vendor = "ESI", |
| 3728 | .name = "ES25P40", |
| 3729 | .bustype = BUS_SPI, |
| 3730 | .manufacture_id = EXCEL_ID_NOPREFIX, |
| 3731 | .model_id = EXCEL_ES25P40, |
| 3732 | .total_size = 512, |
| 3733 | .page_size = 256, |
| 3734 | /* 256-byte parameter page separate from memory array: |
| 3735 | * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */ |
| 3736 | .feature_bits = FEATURE_WRSR_WREN, |
| 3737 | .tested = TEST_UNTESTED, |
| 3738 | .probe = probe_spi_rdid, |
| 3739 | .probe_timing = TIMING_ZERO, |
| 3740 | .block_erasers = |
| 3741 | { |
| 3742 | { |
| 3743 | .eraseblocks = { {64 * 1024, 8} }, |
| 3744 | .block_erase = spi_block_erase_d8, |
| 3745 | }, { |
| 3746 | .eraseblocks = { {512 * 1024, 1} }, |
| 3747 | .block_erase = spi_block_erase_c7, |
| 3748 | } |
| 3749 | }, |
| 3750 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 3751 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 3752 | .write = spi_chip_write_256, |
| 3753 | .read = spi_chip_read, /* Fast Read (0x0B) supported */ |
| 3754 | .voltage = {2700, 3600}, |
| 3755 | }, |
| 3756 | |
| 3757 | { |
| 3758 | .vendor = "ESI", |
| 3759 | .name = "ES25P80", |
| 3760 | .bustype = BUS_SPI, |
| 3761 | .manufacture_id = EXCEL_ID_NOPREFIX, |
| 3762 | .model_id = EXCEL_ES25P80, |
| 3763 | .total_size = 1024, |
| 3764 | .page_size = 256, |
| 3765 | /* 256-byte parameter page separate from memory array: |
| 3766 | * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */ |
| 3767 | .feature_bits = FEATURE_WRSR_WREN, |
| 3768 | .tested = TEST_UNTESTED, |
| 3769 | .probe = probe_spi_rdid, |
| 3770 | .probe_timing = TIMING_ZERO, |
| 3771 | .block_erasers = |
| 3772 | { |
| 3773 | { |
| 3774 | .eraseblocks = { {64 * 1024, 16} }, |
| 3775 | .block_erase = spi_block_erase_d8, |
| 3776 | }, { |
| 3777 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3778 | .block_erase = spi_block_erase_c7, |
| 3779 | } |
| 3780 | }, |
| 3781 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 3782 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 3783 | .write = spi_chip_write_256, |
| 3784 | .read = spi_chip_read, /* Fast Read (0x0B) supported */ |
| 3785 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3786 | }, |
| 3787 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3788 | { |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3789 | .vendor = "ESMT", |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3790 | .name = "F25L008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3791 | .bustype = BUS_SPI, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3792 | .manufacture_id = ESMT_ID, |
| 3793 | .model_id = ESMT_F25L008A, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3794 | .total_size = 1024, |
| 3795 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3796 | .feature_bits = FEATURE_WRSR_EITHER, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 3797 | .tested = TEST_OK_PREW, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3798 | .probe = probe_spi_rdid, |
| 3799 | .probe_timing = TIMING_ZERO, |
| 3800 | .block_erasers = |
| 3801 | { |
| 3802 | { |
| 3803 | .eraseblocks = { {4 * 1024, 256} }, |
| 3804 | .block_erase = spi_block_erase_20, |
| 3805 | }, { |
| 3806 | .eraseblocks = { {64 * 1024, 16} }, |
| 3807 | .block_erase = spi_block_erase_d8, |
| 3808 | }, { |
| 3809 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3810 | .block_erase = spi_block_erase_60, |
| 3811 | }, { |
| 3812 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3813 | .block_erase = spi_block_erase_c7, |
| 3814 | } |
| 3815 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3816 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3817 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 9a795d8 | 2010-07-14 16:19:05 +0000 | [diff] [blame] | 3818 | .write = spi_chip_write_1, |
Michael Karcher | 4497e86 | 2010-07-10 19:34:15 +0000 | [diff] [blame] | 3819 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3820 | .voltage = {2700, 3600}, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3821 | }, |
| 3822 | |
| 3823 | { |
Stefan Tauner | 85f09f7 | 2014-05-27 21:27:14 +0000 | [diff] [blame] | 3824 | .vendor = "ESMT", |
| 3825 | .name = "F25L32PA", |
| 3826 | .bustype = BUS_SPI, |
| 3827 | .manufacture_id = ESMT_ID, |
| 3828 | .model_id = ESMT_F25L32PA, |
| 3829 | .total_size = 4096, |
| 3830 | .page_size = 256, |
| 3831 | .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP, |
| 3832 | .tested = TEST_UNTESTED, |
| 3833 | .probe = probe_spi_rdid, |
| 3834 | .probe_timing = TIMING_ZERO, |
| 3835 | .block_erasers = |
| 3836 | { |
| 3837 | { |
| 3838 | .eraseblocks = { {4 * 1024, 1024} }, |
| 3839 | .block_erase = spi_block_erase_20, |
| 3840 | }, { |
| 3841 | .eraseblocks = { {64 * 1024, 64} }, |
| 3842 | .block_erase = spi_block_erase_d8, |
| 3843 | }, { |
| 3844 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3845 | .block_erase = spi_block_erase_60, |
| 3846 | }, { |
| 3847 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3848 | .block_erase = spi_block_erase_c7, |
| 3849 | } |
| 3850 | }, |
| 3851 | .printlock = spi_prettyprint_status_register_bp2_bpl, |
| 3852 | .unlock = spi_disable_blockprotect, |
| 3853 | .write = spi_chip_write_256, |
| 3854 | .read = spi_chip_read, |
| 3855 | .voltage = {2700, 3600}, |
| 3856 | }, |
| 3857 | |
| 3858 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3859 | .vendor = "ESMT", |
| 3860 | .name = "F49B002UA", |
| 3861 | .bustype = BUS_PARALLEL, |
| 3862 | .manufacture_id = ESMT_ID, |
| 3863 | .model_id = ESMT_F49B002UA, |
| 3864 | .total_size = 256, |
| 3865 | .page_size = 4096, |
| 3866 | .feature_bits = FEATURE_EITHER_RESET, |
| 3867 | .tested = TEST_UNTESTED, |
| 3868 | .probe = probe_jedec, |
| 3869 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3870 | .block_erasers = |
| 3871 | { |
| 3872 | { |
| 3873 | .eraseblocks = { |
| 3874 | {128 * 1024, 1}, |
| 3875 | {96 * 1024, 1}, |
| 3876 | {8 * 1024, 2}, |
| 3877 | {16 * 1024, 1}, |
| 3878 | }, |
| 3879 | .block_erase = erase_sector_jedec, |
| 3880 | }, { |
| 3881 | .eraseblocks = { {256 * 1024, 1} }, |
| 3882 | .block_erase = erase_chip_block_jedec, |
| 3883 | } |
| 3884 | }, |
| 3885 | .write = write_jedec_1, |
| 3886 | .read = read_memmapped, |
| 3887 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3888 | .prepare_access = prepare_memory_access, |
| 3889 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3890 | }, |
| 3891 | |
| 3892 | { |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3893 | .vendor = "Eon", |
| 3894 | .name = "EN25B05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3895 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3896 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3897 | .model_id = EON_EN25B05, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3898 | .total_size = 64, |
| 3899 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3900 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3901 | .tested = TEST_UNTESTED, |
| 3902 | .probe = probe_spi_rdid, |
| 3903 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3904 | .block_erasers = |
| 3905 | { |
| 3906 | { |
| 3907 | .eraseblocks = { |
| 3908 | {4 * 1024, 2}, |
| 3909 | {8 * 1024, 1}, |
| 3910 | {16 * 1024, 1}, |
| 3911 | {32 * 1024, 1}, |
| 3912 | }, |
| 3913 | .block_erase = spi_block_erase_d8, |
| 3914 | }, { |
| 3915 | .eraseblocks = { {64 * 1024, 1} }, |
| 3916 | .block_erase = spi_block_erase_c7, |
| 3917 | } |
| 3918 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3919 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3920 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3921 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3922 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3923 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3924 | }, |
| 3925 | |
| 3926 | { |
| 3927 | .vendor = "Eon", |
| 3928 | .name = "EN25B05T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3929 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3930 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3931 | .model_id = EON_EN25B05, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3932 | .total_size = 64, |
| 3933 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3934 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3935 | .tested = TEST_UNTESTED, |
| 3936 | .probe = probe_spi_rdid, |
| 3937 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3938 | .block_erasers = |
| 3939 | { |
| 3940 | { |
| 3941 | .eraseblocks = { |
| 3942 | {32 * 1024, 1}, |
| 3943 | {16 * 1024, 1}, |
| 3944 | {8 * 1024, 1}, |
| 3945 | {4 * 1024, 2}, |
| 3946 | }, |
| 3947 | .block_erase = spi_block_erase_d8, |
| 3948 | }, { |
| 3949 | .eraseblocks = { {64 * 1024, 1} }, |
| 3950 | .block_erase = spi_block_erase_c7, |
| 3951 | } |
| 3952 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3953 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3954 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3955 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3956 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3957 | .voltage = {2700, 3600}, |
| 3958 | }, |
| 3959 | |
| 3960 | { |
| 3961 | .vendor = "Eon", |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3962 | .name = "EN25B10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3963 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3964 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3965 | .model_id = EON_EN25B10, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3966 | .total_size = 128, |
| 3967 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3968 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3969 | .tested = TEST_UNTESTED, |
| 3970 | .probe = probe_spi_rdid, |
| 3971 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3972 | .block_erasers = |
| 3973 | { |
| 3974 | { |
| 3975 | .eraseblocks = { |
| 3976 | {4 * 1024, 2}, |
| 3977 | {8 * 1024, 1}, |
| 3978 | {16 * 1024, 1}, |
| 3979 | {32 * 1024, 3}, |
| 3980 | }, |
| 3981 | .block_erase = spi_block_erase_d8, |
| 3982 | }, { |
| 3983 | .eraseblocks = { {128 * 1024, 1} }, |
| 3984 | .block_erase = spi_block_erase_c7, |
| 3985 | } |
| 3986 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3987 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3988 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3989 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3990 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3991 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3992 | }, |
| 3993 | |
| 3994 | { |
| 3995 | .vendor = "Eon", |
| 3996 | .name = "EN25B10T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3997 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3998 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3999 | .model_id = EON_EN25B10, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4000 | .total_size = 128, |
| 4001 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 4002 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 4003 | .tested = TEST_OK_PREW, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4004 | .probe = probe_spi_rdid, |
| 4005 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4006 | .block_erasers = |
| 4007 | { |
| 4008 | { |
| 4009 | .eraseblocks = { |
| 4010 | {32 * 1024, 3}, |
| 4011 | {16 * 1024, 1}, |
| 4012 | {8 * 1024, 1}, |
| 4013 | {4 * 1024, 2}, |
| 4014 | }, |
| 4015 | .block_erase = spi_block_erase_d8, |
| 4016 | }, { |
| 4017 | .eraseblocks = { {128 * 1024, 1} }, |
| 4018 | .block_erase = spi_block_erase_c7, |
| 4019 | } |
| 4020 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4021 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4022 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4023 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4024 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4025 | .voltage = {2700, 3600}, |
| 4026 | }, |
| 4027 | |
| 4028 | { |
| 4029 | .vendor = "Eon", |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4030 | .name = "EN25B16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4031 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4032 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4033 | .model_id = EON_EN25B16, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4034 | .total_size = 2048, |
| 4035 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 4036 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4037 | .tested = TEST_UNTESTED, |
| 4038 | .probe = probe_spi_rdid, |
| 4039 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4040 | .block_erasers = |
| 4041 | { |
| 4042 | { |
| 4043 | .eraseblocks = { |
| 4044 | {4 * 1024, 2}, |
| 4045 | {8 * 1024, 1}, |
| 4046 | {16 * 1024, 1}, |
| 4047 | {32 * 1024, 1}, |
| 4048 | {64 * 1024, 31}, |
| 4049 | }, |
| 4050 | .block_erase = spi_block_erase_d8, |
| 4051 | }, { |
| 4052 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4053 | .block_erase = spi_block_erase_c7, |
| 4054 | } |
| 4055 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4056 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4057 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4058 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4059 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4060 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4061 | }, |
| 4062 | |
| 4063 | { |
| 4064 | .vendor = "Eon", |
| 4065 | .name = "EN25B16T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4066 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4067 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4068 | .model_id = EON_EN25B16, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4069 | .total_size = 2048, |
| 4070 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 4071 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4072 | .tested = TEST_UNTESTED, |
| 4073 | .probe = probe_spi_rdid, |
| 4074 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4075 | .block_erasers = |
| 4076 | { |
| 4077 | { |
| 4078 | .eraseblocks = { |
| 4079 | {64 * 1024, 31}, |
| 4080 | {32 * 1024, 1}, |
| 4081 | {16 * 1024, 1}, |
| 4082 | {8 * 1024, 1}, |
| 4083 | {4 * 1024, 2}, |
| 4084 | }, |
| 4085 | .block_erase = spi_block_erase_d8, |
| 4086 | }, { |
| 4087 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4088 | .block_erase = spi_block_erase_c7, |
| 4089 | } |
| 4090 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4091 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4092 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4093 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4094 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4095 | .voltage = {2700, 3600}, |
| 4096 | }, |
| 4097 | |
| 4098 | { |
| 4099 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4100 | .name = "EN25B20", |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4101 | .bustype = BUS_SPI, |
| 4102 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4103 | .model_id = EON_EN25B20, |
| 4104 | .total_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4105 | .page_size = 256, |
| 4106 | .feature_bits = FEATURE_WRSR_WREN, |
| 4107 | .tested = TEST_UNTESTED, |
| 4108 | .probe = probe_spi_rdid, |
| 4109 | .probe_timing = TIMING_ZERO, |
| 4110 | .block_erasers = |
| 4111 | { |
| 4112 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4113 | .eraseblocks = { |
| 4114 | {4 * 1024, 2}, |
| 4115 | {8 * 1024, 1}, |
| 4116 | {16 * 1024, 1}, |
| 4117 | {32 * 1024, 1}, |
| 4118 | {64 * 1024, 3} |
| 4119 | }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4120 | .block_erase = spi_block_erase_d8, |
| 4121 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4122 | .eraseblocks = { {256 * 1024, 1} }, |
| 4123 | .block_erase = spi_block_erase_c7, |
| 4124 | } |
| 4125 | }, |
| 4126 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4127 | .unlock = spi_disable_blockprotect, |
| 4128 | .write = spi_chip_write_256, |
| 4129 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4130 | .voltage = {2700, 3600}, |
| 4131 | }, |
| 4132 | |
| 4133 | { |
| 4134 | .vendor = "Eon", |
| 4135 | .name = "EN25B20T", |
| 4136 | .bustype = BUS_SPI, |
| 4137 | .manufacture_id = EON_ID_NOPREFIX, |
| 4138 | .model_id = EON_EN25B20, |
| 4139 | .total_size = 256, |
| 4140 | .page_size = 256, |
| 4141 | .feature_bits = FEATURE_WRSR_WREN, |
| 4142 | .tested = TEST_UNTESTED, |
| 4143 | .probe = probe_spi_rdid, |
| 4144 | .probe_timing = TIMING_ZERO, |
| 4145 | .block_erasers = |
| 4146 | { |
| 4147 | { |
| 4148 | .eraseblocks = { |
| 4149 | {64 * 1024, 3}, |
| 4150 | {32 * 1024, 1}, |
| 4151 | {16 * 1024, 1}, |
| 4152 | {8 * 1024, 1}, |
| 4153 | {4 * 1024, 2}, |
| 4154 | }, |
| 4155 | .block_erase = spi_block_erase_d8, |
| 4156 | }, { |
| 4157 | .eraseblocks = { {256 * 1024, 1} }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4158 | .block_erase = spi_block_erase_c7, |
| 4159 | } |
| 4160 | }, |
| 4161 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4162 | .unlock = spi_disable_blockprotect, |
| 4163 | .write = spi_chip_write_256, |
| 4164 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4165 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4166 | }, |
| 4167 | |
| 4168 | { |
| 4169 | .vendor = "Eon", |
| 4170 | .name = "EN25B32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4171 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4172 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4173 | .model_id = EON_EN25B32, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4174 | .total_size = 4096, |
| 4175 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4176 | /* OTP: 512B total; enter 0x3A */ |
| 4177 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4178 | .tested = TEST_UNTESTED, |
| 4179 | .probe = probe_spi_rdid, |
| 4180 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4181 | .block_erasers = |
| 4182 | { |
| 4183 | { |
| 4184 | .eraseblocks = { |
| 4185 | {4 * 1024, 2}, |
| 4186 | {8 * 1024, 1}, |
| 4187 | {16 * 1024, 1}, |
| 4188 | {32 * 1024, 1}, |
| 4189 | {64 * 1024, 63}, |
| 4190 | }, |
| 4191 | .block_erase = spi_block_erase_d8, |
| 4192 | }, { |
| 4193 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4194 | .block_erase = spi_block_erase_c7, |
| 4195 | } |
| 4196 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4197 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4198 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4199 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4200 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4201 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4202 | }, |
| 4203 | |
| 4204 | { |
| 4205 | .vendor = "Eon", |
| 4206 | .name = "EN25B32T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4207 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4208 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4209 | .model_id = EON_EN25B32, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4210 | .total_size = 4096, |
| 4211 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4212 | /* OTP: 512B total; enter 0x3A */ |
| 4213 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4214 | .tested = TEST_UNTESTED, |
| 4215 | .probe = probe_spi_rdid, |
| 4216 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4217 | .block_erasers = |
| 4218 | { |
| 4219 | { |
| 4220 | .eraseblocks = { |
| 4221 | {64 * 1024, 63}, |
| 4222 | {32 * 1024, 1}, |
| 4223 | {16 * 1024, 1}, |
| 4224 | {8 * 1024, 1}, |
| 4225 | {4 * 1024, 2}, |
| 4226 | }, |
| 4227 | .block_erase = spi_block_erase_d8, |
| 4228 | }, { |
| 4229 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4230 | .block_erase = spi_block_erase_c7, |
| 4231 | } |
| 4232 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4233 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4234 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4235 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4236 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4237 | .voltage = {2700, 3600}, |
| 4238 | }, |
| 4239 | |
| 4240 | { |
| 4241 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4242 | .name = "EN25B40", |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4243 | .bustype = BUS_SPI, |
| 4244 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4245 | .model_id = EON_EN25B40, |
| 4246 | .total_size = 512, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4247 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4248 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4249 | .tested = TEST_UNTESTED, |
| 4250 | .probe = probe_spi_rdid, |
| 4251 | .probe_timing = TIMING_ZERO, |
| 4252 | .block_erasers = |
| 4253 | { |
| 4254 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4255 | .eraseblocks = { |
| 4256 | {4 * 1024, 2}, |
| 4257 | {8 * 1024, 1}, |
| 4258 | {16 * 1024, 1}, |
| 4259 | {32 * 1024, 1}, |
| 4260 | {64 * 1024, 7} |
| 4261 | }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4262 | .block_erase = spi_block_erase_d8, |
| 4263 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4264 | .eraseblocks = { {512 * 1024, 1} }, |
| 4265 | .block_erase = spi_block_erase_c7, |
| 4266 | } |
| 4267 | }, |
| 4268 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4269 | .unlock = spi_disable_blockprotect, |
| 4270 | .write = spi_chip_write_256, |
| 4271 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4272 | .voltage = {2700, 3600}, |
| 4273 | }, |
| 4274 | |
| 4275 | { |
| 4276 | .vendor = "Eon", |
| 4277 | .name = "EN25B40T", |
| 4278 | .bustype = BUS_SPI, |
| 4279 | .manufacture_id = EON_ID_NOPREFIX, |
| 4280 | .model_id = EON_EN25B40, |
| 4281 | .total_size = 512, |
| 4282 | .page_size = 256, |
| 4283 | .feature_bits = FEATURE_WRSR_WREN, |
| 4284 | .tested = TEST_UNTESTED, |
| 4285 | .probe = probe_spi_rdid, |
| 4286 | .probe_timing = TIMING_ZERO, |
| 4287 | .block_erasers = |
| 4288 | { |
| 4289 | { |
| 4290 | .eraseblocks = { |
| 4291 | {64 * 1024, 7}, |
| 4292 | {32 * 1024, 1}, |
| 4293 | {16 * 1024, 1}, |
| 4294 | {8 * 1024, 1}, |
| 4295 | {4 * 1024, 2}, |
| 4296 | }, |
| 4297 | .block_erase = spi_block_erase_d8, |
| 4298 | }, { |
| 4299 | .eraseblocks = { {512 * 1024, 1} }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4300 | .block_erase = spi_block_erase_c7, |
| 4301 | } |
| 4302 | }, |
| 4303 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4304 | .unlock = spi_disable_blockprotect, |
| 4305 | .write = spi_chip_write_256, |
| 4306 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4307 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4308 | }, |
| 4309 | |
| 4310 | { |
| 4311 | .vendor = "Eon", |
| 4312 | .name = "EN25B64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4313 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4314 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4315 | .model_id = EON_EN25B64, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4316 | .total_size = 8192, |
| 4317 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4318 | /* OTP: 512B total; enter 0x3A */ |
| 4319 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4320 | .tested = TEST_UNTESTED, |
| 4321 | .probe = probe_spi_rdid, |
| 4322 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4323 | .block_erasers = |
| 4324 | { |
| 4325 | { |
| 4326 | .eraseblocks = { |
| 4327 | {4 * 1024, 2}, |
| 4328 | {8 * 1024, 1}, |
| 4329 | {16 * 1024, 1}, |
| 4330 | {32 * 1024, 1}, |
| 4331 | {64 * 1024, 127}, |
| 4332 | }, |
| 4333 | .block_erase = spi_block_erase_d8, |
| 4334 | }, { |
| 4335 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4336 | .block_erase = spi_block_erase_c7, |
| 4337 | } |
| 4338 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4339 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4340 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4341 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4342 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4343 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4344 | }, |
| 4345 | |
| 4346 | { |
| 4347 | .vendor = "Eon", |
| 4348 | .name = "EN25B64T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4349 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4350 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4351 | .model_id = EON_EN25B64, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4352 | .total_size = 8192, |
| 4353 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4354 | /* OTP: 512B total; enter 0x3A */ |
| 4355 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4356 | .tested = TEST_UNTESTED, |
| 4357 | .probe = probe_spi_rdid, |
| 4358 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4359 | .block_erasers = |
| 4360 | { |
| 4361 | { |
| 4362 | .eraseblocks = { |
| 4363 | {64 * 1024, 127}, |
| 4364 | {32 * 1024, 1}, |
| 4365 | {16 * 1024, 1}, |
| 4366 | {8 * 1024, 1}, |
| 4367 | {4 * 1024, 2}, |
| 4368 | }, |
| 4369 | .block_erase = spi_block_erase_d8, |
| 4370 | }, { |
| 4371 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4372 | .block_erase = spi_block_erase_c7, |
| 4373 | } |
| 4374 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4375 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4376 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4377 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4378 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4379 | .voltage = {2700, 3600}, |
| 4380 | }, |
| 4381 | |
| 4382 | { |
| 4383 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4384 | .name = "EN25B80", |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4385 | .bustype = BUS_SPI, |
| 4386 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4387 | .model_id = EON_EN25B80, |
| 4388 | .total_size = 1024, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4389 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4390 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4391 | .tested = TEST_UNTESTED, |
| 4392 | .probe = probe_spi_rdid, |
| 4393 | .probe_timing = TIMING_ZERO, |
| 4394 | .block_erasers = |
| 4395 | { |
| 4396 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4397 | .eraseblocks = { |
| 4398 | {4 * 1024, 2}, |
| 4399 | {8 * 1024, 1}, |
| 4400 | {16 * 1024, 1}, |
| 4401 | {32 * 1024, 1}, |
| 4402 | {64 * 1024, 15} |
| 4403 | }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4404 | .block_erase = spi_block_erase_d8, |
| 4405 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4406 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4407 | .block_erase = spi_block_erase_c7, |
| 4408 | } |
| 4409 | }, |
| 4410 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4411 | .unlock = spi_disable_blockprotect, |
| 4412 | .write = spi_chip_write_256, |
| 4413 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4414 | .voltage = {2700, 3600}, |
| 4415 | }, |
| 4416 | |
| 4417 | { |
| 4418 | .vendor = "Eon", |
| 4419 | .name = "EN25B80T", |
| 4420 | .bustype = BUS_SPI, |
| 4421 | .manufacture_id = EON_ID_NOPREFIX, |
| 4422 | .model_id = EON_EN25B80, |
| 4423 | .total_size = 1024, |
| 4424 | .page_size = 256, |
| 4425 | .feature_bits = FEATURE_WRSR_WREN, |
| 4426 | .tested = TEST_UNTESTED, |
| 4427 | .probe = probe_spi_rdid, |
| 4428 | .probe_timing = TIMING_ZERO, |
| 4429 | .block_erasers = |
| 4430 | { |
| 4431 | { |
| 4432 | .eraseblocks = { |
| 4433 | {64 * 1024, 15}, |
| 4434 | {32 * 1024, 1}, |
| 4435 | {16 * 1024, 1}, |
| 4436 | {8 * 1024, 1}, |
| 4437 | {4 * 1024, 2}, |
| 4438 | }, |
| 4439 | .block_erase = spi_block_erase_d8, |
| 4440 | }, { |
| 4441 | .eraseblocks = { {1024 * 1024, 1} }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4442 | .block_erase = spi_block_erase_c7, |
| 4443 | } |
| 4444 | }, |
| 4445 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4446 | .unlock = spi_disable_blockprotect, |
| 4447 | .write = spi_chip_write_256, |
| 4448 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4449 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4450 | }, |
| 4451 | |
| 4452 | { |
| 4453 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4454 | .name = "EN25F05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4455 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4456 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4457 | .model_id = EON_EN25F05, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4458 | .total_size = 64, |
| 4459 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4460 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 4461 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4462 | .probe = probe_spi_rdid, |
| 4463 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4464 | .block_erasers = |
| 4465 | { |
| 4466 | { |
| 4467 | .eraseblocks = { {4 * 1024, 16} }, |
| 4468 | .block_erase = spi_block_erase_20, |
| 4469 | }, { |
| 4470 | .eraseblocks = { {32 * 1024, 2} }, |
| 4471 | .block_erase = spi_block_erase_d8, |
| 4472 | }, { |
| 4473 | .eraseblocks = { {32 * 1024, 2} }, |
| 4474 | .block_erase = spi_block_erase_52, |
| 4475 | }, { |
| 4476 | .eraseblocks = { {64 * 1024, 1} }, |
| 4477 | .block_erase = spi_block_erase_60, |
| 4478 | }, { |
| 4479 | .eraseblocks = { {64 * 1024, 1} }, |
| 4480 | .block_erase = spi_block_erase_c7, |
| 4481 | } |
| 4482 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4483 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4484 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4485 | .write = spi_chip_write_256, |
| 4486 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4487 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4488 | }, |
| 4489 | |
| 4490 | { |
| 4491 | .vendor = "Eon", |
| 4492 | .name = "EN25F10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4493 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4494 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4495 | .model_id = EON_EN25F10, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4496 | .total_size = 128, |
| 4497 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4498 | .feature_bits = FEATURE_WRSR_WREN, |
Simon Buhrow | d173ed4 | 2021-09-29 09:28:07 +0200 | [diff] [blame] | 4499 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4500 | .probe = probe_spi_rdid, |
| 4501 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4502 | .block_erasers = |
| 4503 | { |
| 4504 | { |
| 4505 | .eraseblocks = { {4 * 1024, 32} }, |
| 4506 | .block_erase = spi_block_erase_20, |
| 4507 | }, { |
| 4508 | .eraseblocks = { {32 * 1024, 4} }, |
| 4509 | .block_erase = spi_block_erase_d8, |
| 4510 | }, { |
| 4511 | .eraseblocks = { {32 * 1024, 4} }, |
| 4512 | .block_erase = spi_block_erase_52, |
| 4513 | }, { |
| 4514 | .eraseblocks = { {128 * 1024, 1} }, |
| 4515 | .block_erase = spi_block_erase_60, |
| 4516 | }, { |
| 4517 | .eraseblocks = { {128 * 1024, 1} }, |
| 4518 | .block_erase = spi_block_erase_c7, |
| 4519 | } |
| 4520 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4521 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4522 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4523 | .write = spi_chip_write_256, |
| 4524 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4525 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4526 | }, |
| 4527 | |
| 4528 | { |
| 4529 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4530 | .name = "EN25F16", |
| 4531 | .bustype = BUS_SPI, |
| 4532 | .manufacture_id = EON_ID_NOPREFIX, |
| 4533 | .model_id = EON_EN25F16, |
| 4534 | .total_size = 2048, |
| 4535 | .page_size = 256, |
| 4536 | .feature_bits = FEATURE_WRSR_WREN, |
| 4537 | .tested = TEST_OK_PREW, |
| 4538 | .probe = probe_spi_rdid, |
| 4539 | .probe_timing = TIMING_ZERO, |
| 4540 | .block_erasers = |
| 4541 | { |
| 4542 | { |
| 4543 | .eraseblocks = { {4 * 1024, 512} }, |
| 4544 | .block_erase = spi_block_erase_20, |
| 4545 | }, { |
| 4546 | .eraseblocks = { {64 * 1024, 32} }, |
| 4547 | .block_erase = spi_block_erase_d8, |
| 4548 | }, { |
| 4549 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4550 | .block_erase = spi_block_erase_60, |
| 4551 | }, { |
| 4552 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4553 | .block_erase = spi_block_erase_c7, |
| 4554 | } |
| 4555 | }, |
| 4556 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4557 | .unlock = spi_disable_blockprotect, |
| 4558 | .write = spi_chip_write_256, |
| 4559 | .read = spi_chip_read, |
| 4560 | .voltage = {2700, 3600}, |
| 4561 | }, |
| 4562 | |
| 4563 | { |
| 4564 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4565 | .name = "EN25F20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4566 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4567 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4568 | .model_id = EON_EN25F20, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4569 | .total_size = 256, |
| 4570 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4571 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4572 | .tested = TEST_UNTESTED, |
| 4573 | .probe = probe_spi_rdid, |
| 4574 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4575 | .block_erasers = |
| 4576 | { |
| 4577 | { |
| 4578 | .eraseblocks = { {4 * 1024, 64} }, |
| 4579 | .block_erase = spi_block_erase_20, |
| 4580 | }, { |
| 4581 | .eraseblocks = { {64 * 1024, 4} }, |
| 4582 | .block_erase = spi_block_erase_d8, |
| 4583 | }, { |
| 4584 | .eraseblocks = { {64 * 1024, 4} }, |
| 4585 | .block_erase = spi_block_erase_52, |
| 4586 | }, { |
| 4587 | .eraseblocks = { {256 * 1024, 1} }, |
| 4588 | .block_erase = spi_block_erase_60, |
| 4589 | }, { |
| 4590 | .eraseblocks = { {256 * 1024, 1} }, |
| 4591 | .block_erase = spi_block_erase_c7, |
| 4592 | } |
| 4593 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4594 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4595 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4596 | .write = spi_chip_write_256, |
| 4597 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4598 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4599 | }, |
| 4600 | |
| 4601 | { |
| 4602 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4603 | .name = "EN25F32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4604 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4605 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4606 | .model_id = EON_EN25F32, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4607 | .total_size = 4096, |
| 4608 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4609 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 4610 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4611 | .probe = probe_spi_rdid, |
| 4612 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4613 | .block_erasers = |
| 4614 | { |
| 4615 | { |
| 4616 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4617 | .block_erase = spi_block_erase_20, |
| 4618 | }, { |
| 4619 | .eraseblocks = { {64 * 1024, 64} }, |
| 4620 | .block_erase = spi_block_erase_d8, |
| 4621 | }, { |
| 4622 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4623 | .block_erase = spi_block_erase_60, |
| 4624 | }, { |
| 4625 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4626 | .block_erase = spi_block_erase_c7, |
| 4627 | } |
| 4628 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4629 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4630 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4631 | .write = spi_chip_write_256, |
| 4632 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4633 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4634 | }, |
| 4635 | |
| 4636 | { |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4637 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4638 | .name = "EN25F40", |
| 4639 | .bustype = BUS_SPI, |
| 4640 | .manufacture_id = EON_ID_NOPREFIX, |
| 4641 | .model_id = EON_EN25F40, |
| 4642 | .total_size = 512, |
| 4643 | .page_size = 256, |
| 4644 | .feature_bits = FEATURE_WRSR_WREN, |
| 4645 | .tested = TEST_OK_PREW, |
| 4646 | .probe = probe_spi_rdid, |
| 4647 | .probe_timing = TIMING_ZERO, |
| 4648 | .block_erasers = |
| 4649 | { |
| 4650 | { |
| 4651 | .eraseblocks = { {4 * 1024, 128} }, |
| 4652 | .block_erase = spi_block_erase_20, |
| 4653 | }, { |
| 4654 | .eraseblocks = { {64 * 1024, 8} }, |
| 4655 | .block_erase = spi_block_erase_d8, |
| 4656 | }, { |
| 4657 | .eraseblocks = { {512 * 1024, 1} }, |
| 4658 | .block_erase = spi_block_erase_60, |
| 4659 | }, { |
| 4660 | .eraseblocks = { {512 * 1024, 1} }, |
| 4661 | .block_erase = spi_block_erase_c7, |
| 4662 | }, |
| 4663 | }, |
| 4664 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4665 | .unlock = spi_disable_blockprotect, |
| 4666 | .write = spi_chip_write_256, |
| 4667 | .read = spi_chip_read, |
| 4668 | .voltage = {2700, 3600}, |
| 4669 | }, |
| 4670 | |
| 4671 | { |
| 4672 | .vendor = "Eon", |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4673 | .name = "EN25F64", |
| 4674 | .bustype = BUS_SPI, |
| 4675 | .manufacture_id = EON_ID_NOPREFIX, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 4676 | .model_id = EON_EN25F64, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4677 | .total_size = 8192, |
| 4678 | .page_size = 256, |
| 4679 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 4680 | .tested = TEST_OK_PREW, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4681 | .probe = probe_spi_rdid, |
| 4682 | .probe_timing = TIMING_ZERO, |
| 4683 | .block_erasers = |
| 4684 | { |
| 4685 | { |
| 4686 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4687 | .block_erase = spi_block_erase_20, |
| 4688 | }, { |
| 4689 | .eraseblocks = { {64 * 1024, 128} }, |
| 4690 | .block_erase = spi_block_erase_d8, |
| 4691 | }, { |
| 4692 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4693 | .block_erase = spi_block_erase_60, |
| 4694 | }, { |
| 4695 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4696 | .block_erase = spi_block_erase_c7, |
| 4697 | } |
| 4698 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4699 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4700 | .unlock = spi_disable_blockprotect, |
| 4701 | .write = spi_chip_write_256, |
| 4702 | .read = spi_chip_read, |
| 4703 | .voltage = {2700, 3600}, |
| 4704 | }, |
| 4705 | |
| 4706 | { |
| 4707 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4708 | .name = "EN25F80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4709 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4710 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4711 | .model_id = EON_EN25F80, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4712 | .total_size = 1024, |
| 4713 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4714 | .feature_bits = FEATURE_WRSR_WREN, |
| 4715 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4716 | .probe = probe_spi_rdid, |
| 4717 | .probe_timing = TIMING_ZERO, |
| 4718 | .block_erasers = |
| 4719 | { |
| 4720 | { |
| 4721 | .eraseblocks = { {4 * 1024, 256} }, |
| 4722 | .block_erase = spi_block_erase_20, |
| 4723 | }, { |
| 4724 | .eraseblocks = { {64 * 1024, 16} }, |
| 4725 | .block_erase = spi_block_erase_d8, |
| 4726 | }, { |
| 4727 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4728 | .block_erase = spi_block_erase_60, |
| 4729 | }, { |
| 4730 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4731 | .block_erase = spi_block_erase_c7, |
| 4732 | } |
| 4733 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4734 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4735 | .unlock = spi_disable_blockprotect, |
| 4736 | .write = spi_chip_write_256, |
| 4737 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4738 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4739 | }, |
| 4740 | |
| 4741 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4742 | .vendor = "Eon", |
| 4743 | .name = "EN25P05", |
| 4744 | .bustype = BUS_SPI, |
| 4745 | .manufacture_id = EON_ID_NOPREFIX, |
| 4746 | .model_id = EON_EN25B05, |
| 4747 | .total_size = 64, |
| 4748 | .page_size = 256, |
| 4749 | .feature_bits = FEATURE_WRSR_WREN, |
| 4750 | .tested = TEST_UNTESTED, |
| 4751 | .probe = probe_spi_rdid, |
| 4752 | .probe_timing = TIMING_ZERO, |
| 4753 | .block_erasers = |
| 4754 | { |
| 4755 | { |
| 4756 | .eraseblocks = { |
| 4757 | {32 * 1024, 2} }, |
| 4758 | .block_erase = spi_block_erase_d8, |
| 4759 | }, { |
| 4760 | .eraseblocks = { {64 * 1024, 1} }, |
| 4761 | .block_erase = spi_block_erase_c7, |
| 4762 | } |
| 4763 | }, |
| 4764 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4765 | .unlock = spi_disable_blockprotect, |
| 4766 | .write = spi_chip_write_256, |
| 4767 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4768 | .voltage = {2700, 3600}, |
| 4769 | }, |
| 4770 | |
| 4771 | { |
| 4772 | .vendor = "Eon", |
| 4773 | .name = "EN25P10", |
| 4774 | .bustype = BUS_SPI, |
| 4775 | .manufacture_id = EON_ID_NOPREFIX, |
| 4776 | .model_id = EON_EN25B10, |
| 4777 | .total_size = 128, |
| 4778 | .page_size = 256, |
| 4779 | .feature_bits = FEATURE_WRSR_WREN, |
| 4780 | .tested = TEST_UNTESTED, |
| 4781 | .probe = probe_spi_rdid, |
| 4782 | .probe_timing = TIMING_ZERO, |
| 4783 | .block_erasers = |
| 4784 | { |
| 4785 | { |
| 4786 | .eraseblocks = { {32 * 1024, 4} }, |
| 4787 | .block_erase = spi_block_erase_d8, |
| 4788 | }, { |
| 4789 | .eraseblocks = { {128 * 1024, 1} }, |
| 4790 | .block_erase = spi_block_erase_c7, |
| 4791 | } |
| 4792 | }, |
| 4793 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4794 | .unlock = spi_disable_blockprotect, |
| 4795 | .write = spi_chip_write_256, |
| 4796 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4797 | .voltage = {2700, 3600}, |
| 4798 | }, |
| 4799 | |
| 4800 | { |
| 4801 | .vendor = "Eon", |
| 4802 | .name = "EN25P16", |
| 4803 | .bustype = BUS_SPI, |
| 4804 | .manufacture_id = EON_ID_NOPREFIX, |
| 4805 | .model_id = EON_EN25B16, |
| 4806 | .total_size = 2048, |
| 4807 | .page_size = 256, |
| 4808 | .feature_bits = FEATURE_WRSR_WREN, |
| 4809 | .tested = TEST_UNTESTED, |
| 4810 | .probe = probe_spi_rdid, |
| 4811 | .probe_timing = TIMING_ZERO, |
| 4812 | .block_erasers = |
| 4813 | { |
| 4814 | { |
| 4815 | .eraseblocks = { {64 * 1024, 32} }, |
| 4816 | .block_erase = spi_block_erase_d8, |
| 4817 | }, { |
| 4818 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4819 | .block_erase = spi_block_erase_c7, |
| 4820 | } |
| 4821 | }, |
| 4822 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4823 | .unlock = spi_disable_blockprotect, |
| 4824 | .write = spi_chip_write_256, |
| 4825 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4826 | .voltage = {2700, 3600}, |
| 4827 | }, |
| 4828 | |
| 4829 | { |
| 4830 | .vendor = "Eon", |
| 4831 | .name = "EN25P20", |
| 4832 | .bustype = BUS_SPI, |
| 4833 | .manufacture_id = EON_ID_NOPREFIX, |
| 4834 | .model_id = EON_EN25B20, |
| 4835 | .total_size = 256, |
| 4836 | .page_size = 256, |
| 4837 | .feature_bits = FEATURE_WRSR_WREN, |
| 4838 | .tested = TEST_UNTESTED, |
| 4839 | .probe = probe_spi_rdid, |
| 4840 | .probe_timing = TIMING_ZERO, |
| 4841 | .block_erasers = |
| 4842 | { |
| 4843 | { |
| 4844 | .eraseblocks = { {64 * 1024, 4} }, |
| 4845 | .block_erase = spi_block_erase_d8, |
| 4846 | }, { |
| 4847 | .eraseblocks = { {256 * 1024, 1} }, |
| 4848 | .block_erase = spi_block_erase_c7, |
| 4849 | } |
| 4850 | }, |
| 4851 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4852 | .unlock = spi_disable_blockprotect, |
| 4853 | .write = spi_chip_write_256, |
| 4854 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4855 | .voltage = {2700, 3600}, |
| 4856 | }, |
| 4857 | |
| 4858 | { |
| 4859 | .vendor = "Eon", |
| 4860 | .name = "EN25P32", /* Uniform version of EN25B32 */ |
| 4861 | .bustype = BUS_SPI, |
| 4862 | .manufacture_id = EON_ID_NOPREFIX, |
| 4863 | .model_id = EON_EN25B32, |
| 4864 | .total_size = 4096, |
| 4865 | .page_size = 256, |
| 4866 | /* OTP: 512B total; enter 0x3A */ |
| 4867 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4868 | .tested = TEST_UNTESTED, |
| 4869 | .probe = probe_spi_rdid, |
| 4870 | .probe_timing = TIMING_ZERO, |
| 4871 | .block_erasers = |
| 4872 | { |
| 4873 | { |
| 4874 | .eraseblocks = { {64 * 1024, 64} }, |
| 4875 | .block_erase = spi_block_erase_d8, |
| 4876 | }, { |
| 4877 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4878 | .block_erase = spi_block_erase_c7, |
| 4879 | } |
| 4880 | }, |
| 4881 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4882 | .unlock = spi_disable_blockprotect, |
| 4883 | .write = spi_chip_write_256, |
| 4884 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4885 | .voltage = {2700, 3600}, |
| 4886 | }, |
| 4887 | |
| 4888 | { |
| 4889 | .vendor = "Eon", |
| 4890 | .name = "EN25P40", |
| 4891 | .bustype = BUS_SPI, |
| 4892 | .manufacture_id = EON_ID_NOPREFIX, |
| 4893 | .model_id = EON_EN25B40, |
| 4894 | .total_size = 512, |
| 4895 | .page_size = 256, |
| 4896 | .feature_bits = FEATURE_WRSR_WREN, |
| 4897 | .tested = TEST_UNTESTED, |
| 4898 | .probe = probe_spi_rdid, |
| 4899 | .probe_timing = TIMING_ZERO, |
| 4900 | .block_erasers = |
| 4901 | { |
| 4902 | { |
| 4903 | .eraseblocks = { {64 * 1024, 8} }, |
| 4904 | .block_erase = spi_block_erase_d8, |
| 4905 | }, { |
| 4906 | .eraseblocks = { {512 * 1024, 1} }, |
| 4907 | .block_erase = spi_block_erase_c7, |
| 4908 | } |
| 4909 | }, |
| 4910 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4911 | .unlock = spi_disable_blockprotect, |
| 4912 | .write = spi_chip_write_256, |
| 4913 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4914 | .voltage = {2700, 3600}, |
| 4915 | }, |
| 4916 | |
| 4917 | { |
| 4918 | .vendor = "Eon", |
| 4919 | .name = "EN25P64", |
| 4920 | .bustype = BUS_SPI, |
| 4921 | .manufacture_id = EON_ID_NOPREFIX, |
| 4922 | .model_id = EON_EN25B64, |
| 4923 | .total_size = 8192, |
| 4924 | .page_size = 256, |
| 4925 | /* OTP: 512B total; enter 0x3A */ |
| 4926 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4927 | .tested = TEST_UNTESTED, |
| 4928 | .probe = probe_spi_rdid, |
| 4929 | .probe_timing = TIMING_ZERO, |
| 4930 | .block_erasers = |
| 4931 | { |
| 4932 | { |
| 4933 | .eraseblocks = { {64 * 1024, 128} }, |
| 4934 | .block_erase = spi_block_erase_d8, |
| 4935 | }, { |
| 4936 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4937 | .block_erase = spi_block_erase_c7, |
| 4938 | } |
| 4939 | }, |
| 4940 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4941 | .unlock = spi_disable_blockprotect, |
| 4942 | .write = spi_chip_write_256, |
| 4943 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4944 | .voltage = {2700, 3600}, |
| 4945 | }, |
| 4946 | |
| 4947 | { |
| 4948 | .vendor = "Eon", |
| 4949 | .name = "EN25P80", |
| 4950 | .bustype = BUS_SPI, |
| 4951 | .manufacture_id = EON_ID_NOPREFIX, |
| 4952 | .model_id = EON_EN25B80, |
| 4953 | .total_size = 1024, |
| 4954 | .page_size = 256, |
| 4955 | .feature_bits = FEATURE_WRSR_WREN, |
| 4956 | .tested = TEST_UNTESTED, |
| 4957 | .probe = probe_spi_rdid, |
| 4958 | .probe_timing = TIMING_ZERO, |
| 4959 | .block_erasers = |
| 4960 | { |
| 4961 | { |
| 4962 | .eraseblocks = { {64 * 1024, 16} }, |
| 4963 | .block_erase = spi_block_erase_d8, |
| 4964 | }, { |
| 4965 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4966 | .block_erase = spi_block_erase_c7, |
| 4967 | } |
| 4968 | }, |
| 4969 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4970 | .unlock = spi_disable_blockprotect, |
| 4971 | .write = spi_chip_write_256, |
| 4972 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4973 | .voltage = {2700, 3600}, |
| 4974 | }, |
| 4975 | |
| 4976 | { |
| 4977 | .vendor = "Eon", |
| 4978 | .name = "EN25Q128", |
| 4979 | .bustype = BUS_SPI, |
| 4980 | .manufacture_id = EON_ID_NOPREFIX, |
| 4981 | .model_id = EON_EN25Q128, |
| 4982 | .total_size = 16384, |
| 4983 | .page_size = 256, |
| 4984 | /* OTP: 512B total; enter 0x3A */ |
| 4985 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4986 | .tested = TEST_OK_PREW, |
| 4987 | .probe = probe_spi_rdid, |
| 4988 | .probe_timing = TIMING_ZERO, |
| 4989 | .block_erasers = |
| 4990 | { |
| 4991 | { |
| 4992 | .eraseblocks = { {4 * 1024, 4096} }, |
| 4993 | .block_erase = spi_block_erase_20, |
| 4994 | }, { |
| 4995 | .eraseblocks = { {64 * 1024, 256} }, |
| 4996 | .block_erase = spi_block_erase_d8, |
| 4997 | }, { |
| 4998 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4999 | .block_erase = spi_block_erase_60, |
| 5000 | }, { |
| 5001 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 5002 | .block_erase = spi_block_erase_c7, |
| 5003 | } |
| 5004 | }, |
| 5005 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 5006 | .unlock = spi_disable_blockprotect, |
| 5007 | .write = spi_chip_write_256, |
| 5008 | .read = spi_chip_read, |
| 5009 | }, |
| 5010 | |
| 5011 | { |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5012 | /* Note: EN25D16 is an evil twin which shares the model ID |
| 5013 | but has different write protection capabilities */ |
| 5014 | .vendor = "Eon", |
| 5015 | .name = "EN25Q16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5016 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5017 | .manufacture_id = EON_ID_NOPREFIX, |
| 5018 | .model_id = EON_EN25Q16, |
| 5019 | .total_size = 2048, |
| 5020 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 5021 | /* OTP: D16 512B/Q16 128B total; enter 0x3A */ |
| 5022 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5023 | .tested = TEST_UNTESTED, |
| 5024 | .probe = probe_spi_rdid, |
| 5025 | .probe_timing = TIMING_ZERO, |
| 5026 | .block_erasers = |
| 5027 | { |
| 5028 | { |
| 5029 | .eraseblocks = { {4 * 1024, 512} }, |
| 5030 | .block_erase = spi_block_erase_20, |
| 5031 | }, { |
| 5032 | .eraseblocks = { {64 * 1024, 32} }, |
| 5033 | .block_erase = spi_block_erase_d8, |
| 5034 | }, { |
| 5035 | /* not supported by Q16 version */ |
| 5036 | .eraseblocks = { {64 * 1024, 32} }, |
| 5037 | .block_erase = spi_block_erase_52, |
| 5038 | }, { |
| 5039 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5040 | .block_erase = spi_block_erase_60, |
| 5041 | }, { |
| 5042 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5043 | .block_erase = spi_block_erase_c7, |
| 5044 | } |
| 5045 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 5046 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5047 | .unlock = spi_disable_blockprotect, |
| 5048 | .write = spi_chip_write_256, |
| 5049 | .read = spi_chip_read, |
| 5050 | .voltage = {2700, 3600}, |
| 5051 | }, |
| 5052 | |
| 5053 | { |
| 5054 | .vendor = "Eon", |
| 5055 | .name = "EN25Q32(A/B)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5056 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5057 | .manufacture_id = EON_ID_NOPREFIX, |
| 5058 | .model_id = EON_EN25Q32, |
| 5059 | .total_size = 4096, |
| 5060 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 5061 | /* OTP: 512B total; enter 0x3A */ |
| 5062 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5063 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5064 | .probe = probe_spi_rdid, |
| 5065 | .probe_timing = TIMING_ZERO, |
| 5066 | .block_erasers = |
| 5067 | { |
| 5068 | { |
| 5069 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5070 | .block_erase = spi_block_erase_20, |
| 5071 | }, { |
| 5072 | .eraseblocks = { {64 * 1024, 64} }, |
| 5073 | .block_erase = spi_block_erase_d8, |
| 5074 | }, { |
| 5075 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5076 | .block_erase = spi_block_erase_60, |
| 5077 | }, { |
| 5078 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5079 | .block_erase = spi_block_erase_c7, |
| 5080 | } |
| 5081 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 5082 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5083 | .unlock = spi_disable_blockprotect, |
| 5084 | .write = spi_chip_write_256, |
| 5085 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 5086 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5087 | }, |
| 5088 | |
| 5089 | { |
| 5090 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5091 | .name = "EN25Q40", |
| 5092 | .bustype = BUS_SPI, |
| 5093 | .manufacture_id = EON_ID_NOPREFIX, |
| 5094 | .model_id = EON_EN25Q40, |
| 5095 | .total_size = 512, |
| 5096 | .page_size = 256, |
| 5097 | /* OTP: 256B total; enter 0x3A */ |
| 5098 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5099 | .tested = TEST_UNTESTED, |
| 5100 | .probe = probe_spi_rdid, |
| 5101 | .probe_timing = TIMING_ZERO, |
| 5102 | .block_erasers = |
| 5103 | { |
| 5104 | { |
| 5105 | .eraseblocks = { {4 * 1024, 128} }, |
| 5106 | .block_erase = spi_block_erase_20, |
| 5107 | }, { |
| 5108 | .eraseblocks = { {64 * 1024, 8} }, |
| 5109 | .block_erase = spi_block_erase_d8, |
| 5110 | }, { |
| 5111 | .eraseblocks = { {512 * 1024, 1} }, |
| 5112 | .block_erase = spi_block_erase_60, |
| 5113 | }, { |
| 5114 | .eraseblocks = { {512 * 1024, 1} }, |
| 5115 | .block_erase = spi_block_erase_c7, |
| 5116 | } |
| 5117 | }, |
| 5118 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 5119 | .unlock = spi_disable_blockprotect, |
| 5120 | .write = spi_chip_write_256, |
| 5121 | .read = spi_chip_read, |
| 5122 | .voltage = {2700, 3600}, |
| 5123 | }, |
| 5124 | |
| 5125 | { |
| 5126 | .vendor = "Eon", |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5127 | .name = "EN25Q64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5128 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5129 | .manufacture_id = EON_ID_NOPREFIX, |
| 5130 | .model_id = EON_EN25Q64, |
| 5131 | .total_size = 8192, |
| 5132 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 5133 | /* OTP: 512B total; enter 0x3A */ |
| 5134 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5135 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5136 | .probe = probe_spi_rdid, |
| 5137 | .probe_timing = TIMING_ZERO, |
| 5138 | .block_erasers = |
| 5139 | { |
| 5140 | { |
| 5141 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5142 | .block_erase = spi_block_erase_20, |
| 5143 | }, { |
| 5144 | .eraseblocks = { {64 * 1024, 128} }, |
| 5145 | .block_erase = spi_block_erase_d8, |
| 5146 | }, { |
| 5147 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5148 | .block_erase = spi_block_erase_60, |
| 5149 | }, { |
| 5150 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5151 | .block_erase = spi_block_erase_c7, |
| 5152 | } |
| 5153 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 5154 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5155 | .unlock = spi_disable_blockprotect, |
| 5156 | .write = spi_chip_write_256, |
| 5157 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 5158 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5159 | }, |
| 5160 | |
| 5161 | { |
| 5162 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5163 | .name = "EN25Q80(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5164 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5165 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5166 | .model_id = EON_EN25Q80, |
| 5167 | .total_size = 1024, |
| 5168 | .page_size = 256, |
| 5169 | /* OTP: 256B total; enter 0x3A */ |
| 5170 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5171 | .tested = TEST_UNTESTED, |
| 5172 | .probe = probe_spi_rdid, |
| 5173 | .probe_timing = TIMING_ZERO, |
| 5174 | .block_erasers = |
| 5175 | { |
| 5176 | { |
| 5177 | .eraseblocks = { {4 * 1024, 256} }, |
| 5178 | .block_erase = spi_block_erase_20, |
| 5179 | }, { |
| 5180 | .eraseblocks = { {64 * 1024, 16} }, |
| 5181 | .block_erase = spi_block_erase_d8, |
| 5182 | }, { |
| 5183 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5184 | .block_erase = spi_block_erase_60, |
| 5185 | }, { |
| 5186 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5187 | .block_erase = spi_block_erase_c7, |
| 5188 | } |
| 5189 | }, |
| 5190 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 5191 | .unlock = spi_disable_blockprotect, |
| 5192 | .write = spi_chip_write_256, |
| 5193 | .read = spi_chip_read, |
| 5194 | .voltage = {2700, 3600}, |
| 5195 | }, |
| 5196 | |
| 5197 | { |
| 5198 | .vendor = "Eon", |
| 5199 | .name = "EN25QH128", |
| 5200 | .bustype = BUS_SPI, |
| 5201 | .manufacture_id = EON_ID_NOPREFIX, |
| 5202 | .model_id = EON_EN25QH128, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5203 | .total_size = 16384, |
| 5204 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5205 | /* supports SFDP */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 5206 | /* OTP: 512B total; enter 0x3A */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 5207 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | (FEATURE_QPI_38 & ~FEATURE_FAST_READ_QOUT), |
| 5208 | .dummy_cycles = |
| 5209 | { |
| 5210 | .qpi_fast_read = 6, |
| 5211 | .qpi_fast_read_qio = 6, |
| 5212 | }, |
Tim Chen | bfe149a | 2020-07-06 14:59:21 +0800 | [diff] [blame] | 5213 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5214 | .probe = probe_spi_rdid, |
| 5215 | .probe_timing = TIMING_ZERO, |
| 5216 | .block_erasers = |
| 5217 | { |
| 5218 | { |
| 5219 | .eraseblocks = { {4 * 1024, 4096} }, |
| 5220 | .block_erase = spi_block_erase_20, |
| 5221 | }, { |
| 5222 | .eraseblocks = { {64 * 1024, 256} }, |
| 5223 | .block_erase = spi_block_erase_d8, |
| 5224 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5225 | .eraseblocks = { { 16384 * 1024, 1} }, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5226 | .block_erase = spi_block_erase_60, |
| 5227 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5228 | .eraseblocks = { { 16384 * 1024, 1} }, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5229 | .block_erase = spi_block_erase_c7, |
| 5230 | } |
| 5231 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5232 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 5233 | .unlock = spi_disable_blockprotect_bp3_srwd, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5234 | .write = spi_chip_write_256, |
| 5235 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5236 | .voltage = {2700, 3600}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 5237 | .reg_bits = |
| 5238 | { |
| 5239 | .srp = {STATUS1, 7, RW}, |
| 5240 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 5241 | .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */ |
| 5242 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 5243 | .wp_write_cfg = spi_wp_write_cfg, |
| 5244 | .wp_read_cfg = spi_wp_read_cfg, |
| 5245 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 5246 | .decode_range = decode_range_spi25, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5247 | }, |
| 5248 | |
| 5249 | { |
| 5250 | .vendor = "Eon", |
| 5251 | .name = "EN25QH16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5252 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5253 | .manufacture_id = EON_ID_NOPREFIX, |
| 5254 | .model_id = EON_EN25QH16, |
| 5255 | .total_size = 2048, |
| 5256 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 5257 | /* supports SFDP */ |
| 5258 | /* OTP: 512B total; enter 0x3A */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 5259 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | (FEATURE_QPI_38 & ~FEATURE_FAST_READ_QOUT), |
| 5260 | .dummy_cycles = |
| 5261 | { |
| 5262 | .qpi_fast_read = 6, |
| 5263 | .qpi_fast_read_qio = 6, |
| 5264 | }, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 5265 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5266 | .probe = probe_spi_rdid, |
| 5267 | .probe_timing = TIMING_ZERO, |
| 5268 | .block_erasers = |
| 5269 | { |
| 5270 | { |
| 5271 | .eraseblocks = { {4 * 1024, 512} }, |
| 5272 | .block_erase = spi_block_erase_20, |
| 5273 | }, { |
| 5274 | .eraseblocks = { {64 * 1024, 32} }, |
| 5275 | .block_erase = spi_block_erase_d8, |
| 5276 | }, { |
| 5277 | .eraseblocks = { {1024 * 2048, 1} }, |
| 5278 | .block_erase = spi_block_erase_60, |
| 5279 | }, { |
| 5280 | .eraseblocks = { {1024 * 2048, 1} }, |
| 5281 | .block_erase = spi_block_erase_c7, |
| 5282 | } |
| 5283 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5284 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5285 | .unlock = spi_disable_blockprotect_bp3_srwd, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5286 | .write = spi_chip_write_256, |
| 5287 | .read = spi_chip_read, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 5288 | .voltage = {2700, 3600}, |
| 5289 | }, |
| 5290 | |
| 5291 | { |
| 5292 | .vendor = "Eon", |
| 5293 | .name = "EN25QH32", |
| 5294 | .bustype = BUS_SPI, |
| 5295 | .manufacture_id = EON_ID_NOPREFIX, |
| 5296 | .model_id = EON_EN25QH32, |
| 5297 | .total_size = 4096, |
| 5298 | .page_size = 256, |
| 5299 | /* supports SFDP */ |
| 5300 | /* OTP: 512B total; enter 0x3A */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 5301 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | (FEATURE_QPI_38 & ~FEATURE_FAST_READ_QOUT), |
| 5302 | .dummy_cycles = |
| 5303 | { |
| 5304 | .qpi_fast_read = 6, |
| 5305 | .qpi_fast_read_qio = 6, |
| 5306 | }, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 5307 | .tested = TEST_OK_PREW, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 5308 | .probe = probe_spi_rdid, |
| 5309 | .probe_timing = TIMING_ZERO, |
| 5310 | .block_erasers = |
| 5311 | { |
| 5312 | { |
| 5313 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5314 | .block_erase = spi_block_erase_20, |
| 5315 | }, { |
| 5316 | .eraseblocks = { {64 * 1024, 64} }, |
| 5317 | .block_erase = spi_block_erase_d8, |
| 5318 | }, { |
| 5319 | .eraseblocks = { {1024 * 4096, 1} }, |
| 5320 | .block_erase = spi_block_erase_60, |
| 5321 | }, { |
| 5322 | .eraseblocks = { {1024 * 4096, 1} }, |
| 5323 | .block_erase = spi_block_erase_c7, |
| 5324 | } |
| 5325 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5326 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5327 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5328 | .write = spi_chip_write_256, |
| 5329 | .read = spi_chip_read, |
| 5330 | .voltage = {2700, 3600}, |
Sergii Dmytruk | c6e8b1a | 2022-08-14 20:57:48 +0300 | [diff] [blame] | 5331 | .reg_bits = |
| 5332 | { |
| 5333 | .srp = {STATUS1, 7, RW}, |
| 5334 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 5335 | .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */ |
| 5336 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 5337 | .wp_write_cfg = spi_wp_write_cfg, |
| 5338 | .wp_read_cfg = spi_wp_read_cfg, |
| 5339 | .wp_get_ranges = spi_wp_get_available_ranges, |
Sergii Dmytruk | c6e8b1a | 2022-08-14 20:57:48 +0300 | [diff] [blame] | 5340 | .decode_range = decode_range_spi25, |
| 5341 | }, |
| 5342 | |
| 5343 | { |
| 5344 | .vendor = "Eon", |
| 5345 | .name = "EN25QH32B", |
| 5346 | .bustype = BUS_SPI, |
| 5347 | .manufacture_id = EON_ID_NOPREFIX, |
| 5348 | .model_id = EON_EN25QH32, |
| 5349 | .total_size = 4096, |
| 5350 | .page_size = 256, |
| 5351 | /* supports SFDP */ |
| 5352 | /* OTP: 1536B total; enter 0x3A */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 5353 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_38, |
| 5354 | .dummy_cycles = |
| 5355 | { |
| 5356 | .qpi_fast_read = 6, |
| 5357 | .qpi_fast_read_qio = 6, |
| 5358 | }, |
Sergii Dmytruk | c6e8b1a | 2022-08-14 20:57:48 +0300 | [diff] [blame] | 5359 | .tested = TEST_OK_PREW, |
| 5360 | .probe = probe_spi_rdid, |
| 5361 | .probe_timing = TIMING_ZERO, |
| 5362 | .block_erasers = |
| 5363 | { |
| 5364 | { |
| 5365 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5366 | .block_erase = spi_block_erase_20, |
| 5367 | }, { |
| 5368 | .eraseblocks = { {32 * 1024, 128} }, |
| 5369 | .block_erase = spi_block_erase_52, |
| 5370 | }, { |
| 5371 | .eraseblocks = { {64 * 1024, 64} }, |
| 5372 | .block_erase = spi_block_erase_d8, |
| 5373 | }, { |
| 5374 | .eraseblocks = { {1024 * 4096, 1} }, |
| 5375 | .block_erase = spi_block_erase_60, |
| 5376 | }, { |
| 5377 | .eraseblocks = { {1024 * 4096, 1} }, |
| 5378 | .block_erase = spi_block_erase_c7, |
| 5379 | } |
| 5380 | }, |
| 5381 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 5382 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5383 | .write = spi_chip_write_256, |
| 5384 | .read = spi_chip_read, |
| 5385 | .voltage = {2700, 3600}, |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5386 | }, |
| 5387 | |
| 5388 | { |
| 5389 | .vendor = "Eon", |
| 5390 | .name = "EN25QH64", |
| 5391 | .bustype = BUS_SPI, |
| 5392 | .manufacture_id = EON_ID_NOPREFIX, |
| 5393 | .model_id = EON_EN25QH64, |
| 5394 | .total_size = 8192, |
| 5395 | .page_size = 256, |
| 5396 | /* supports SFDP */ |
| 5397 | /* OTP: 512B total; enter 0x3A */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 5398 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | (FEATURE_QPI_38 & ~FEATURE_FAST_READ_QOUT), |
| 5399 | .dummy_cycles = |
| 5400 | { |
| 5401 | .qpi_fast_read = 6, |
| 5402 | .qpi_fast_read_qio = 6, |
| 5403 | }, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 5404 | .tested = TEST_OK_PREW, |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5405 | .probe = probe_spi_rdid, |
| 5406 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5407 | .block_erasers = |
| 5408 | { |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5409 | { |
| 5410 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5411 | .block_erase = spi_block_erase_20, |
| 5412 | }, { |
| 5413 | .eraseblocks = { {64 * 1024, 128} }, |
| 5414 | .block_erase = spi_block_erase_d8, |
| 5415 | }, { |
| 5416 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 5417 | .block_erase = spi_block_erase_60, |
| 5418 | }, { |
| 5419 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 5420 | .block_erase = spi_block_erase_c7, |
| 5421 | } |
| 5422 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5423 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5424 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5425 | .write = spi_chip_write_256, |
| 5426 | .read = spi_chip_read, |
| 5427 | .voltage = {2700, 3600}, |
Sergii Dmytruk | c6e8b1a | 2022-08-14 20:57:48 +0300 | [diff] [blame] | 5428 | .reg_bits = |
| 5429 | { |
| 5430 | .srp = {STATUS1, 7, RW}, |
| 5431 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 5432 | .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */ |
| 5433 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 5434 | .wp_write_cfg = spi_wp_write_cfg, |
| 5435 | .wp_read_cfg = spi_wp_read_cfg, |
| 5436 | .wp_get_ranges = spi_wp_get_available_ranges, |
Sergii Dmytruk | c6e8b1a | 2022-08-14 20:57:48 +0300 | [diff] [blame] | 5437 | .decode_range = decode_range_spi25_64k_block, |
| 5438 | }, |
| 5439 | |
| 5440 | { |
| 5441 | .vendor = "Eon", |
| 5442 | .name = "EN25QH64A", |
| 5443 | .bustype = BUS_SPI, |
| 5444 | .manufacture_id = EON_ID_NOPREFIX, |
| 5445 | .model_id = EON_EN25QH64, |
| 5446 | .total_size = 8192, |
| 5447 | .page_size = 256, |
| 5448 | /* supports SFDP */ |
| 5449 | /* OTP: 512B total; enter 0x3A */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 5450 | /* Has a special, volatile status register 3 that is written with |
| 5451 | 0xc0 like Set Read Parameters. Hence treating as QPI_SRP. */ |
| 5452 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP, |
| 5453 | .dummy_cycles = { .qpi_read_params = { 6, 4, 8, 10 } }, |
Sergii Dmytruk | c6e8b1a | 2022-08-14 20:57:48 +0300 | [diff] [blame] | 5454 | .tested = TEST_OK_PREW, |
| 5455 | .probe = probe_spi_rdid, |
| 5456 | .probe_timing = TIMING_ZERO, |
| 5457 | .block_erasers = |
| 5458 | { |
| 5459 | { |
| 5460 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5461 | .block_erase = spi_block_erase_20, |
| 5462 | }, { |
| 5463 | .eraseblocks = { {32 * 1024, 256} }, |
| 5464 | .block_erase = spi_block_erase_52, |
| 5465 | }, { |
| 5466 | .eraseblocks = { {64 * 1024, 128} }, |
| 5467 | .block_erase = spi_block_erase_d8, |
| 5468 | }, { |
| 5469 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 5470 | .block_erase = spi_block_erase_60, |
| 5471 | }, { |
| 5472 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 5473 | .block_erase = spi_block_erase_c7, |
| 5474 | } |
| 5475 | }, |
| 5476 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 5477 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5478 | .write = spi_chip_write_256, |
| 5479 | .read = spi_chip_read, |
| 5480 | .voltage = {2700, 3600}, |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5481 | }, |
| 5482 | |
| 5483 | { |
| 5484 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5485 | .name = "EN25S10", |
| 5486 | .bustype = BUS_SPI, |
| 5487 | .manufacture_id = EON_ID_NOPREFIX, |
| 5488 | .model_id = EON_EN25S10, |
| 5489 | .total_size = 128, |
| 5490 | .page_size = 256, |
| 5491 | /* OTP: 256B total; enter 0x3A */ |
| 5492 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5493 | .tested = TEST_UNTESTED, |
| 5494 | .probe = probe_spi_rdid, |
| 5495 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5496 | .block_erasers = |
| 5497 | { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5498 | { |
| 5499 | .eraseblocks = { {4 * 1024, 32} }, |
| 5500 | .block_erase = spi_block_erase_20, |
| 5501 | }, { |
| 5502 | .eraseblocks = { {32 * 1024, 4} }, |
| 5503 | .block_erase = spi_block_erase_52, |
| 5504 | }, { |
| 5505 | .eraseblocks = { {128 * 1024, 1} }, |
| 5506 | .block_erase = spi_block_erase_60, |
| 5507 | }, { |
| 5508 | .eraseblocks = { {128 * 1024, 1} }, |
| 5509 | .block_erase = spi_block_erase_c7, |
| 5510 | } |
| 5511 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5512 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5513 | .unlock = spi_disable_blockprotect, |
| 5514 | .write = spi_chip_write_256, |
| 5515 | .read = spi_chip_read, |
| 5516 | .voltage = {1650, 1950}, |
| 5517 | }, |
| 5518 | |
| 5519 | { |
| 5520 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5521 | .name = "EN25S16", |
| 5522 | .bustype = BUS_SPI, |
| 5523 | .manufacture_id = EON_ID_NOPREFIX, |
| 5524 | .model_id = EON_EN25S16, |
| 5525 | .total_size = 2048, |
| 5526 | .page_size = 256, |
| 5527 | /* OTP: 512B total; enter 0x3A */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 5528 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | (FEATURE_QPI_38 & ~FEATURE_FAST_READ_QOUT), |
| 5529 | .dummy_cycles = |
| 5530 | { |
| 5531 | .qpi_fast_read = 6, |
| 5532 | .qpi_fast_read_qio = 6, |
| 5533 | }, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5534 | .tested = TEST_UNTESTED, |
| 5535 | .probe = probe_spi_rdid, |
| 5536 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5537 | .block_erasers = |
| 5538 | { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5539 | { |
| 5540 | .eraseblocks = { {4 * 1024, 512} }, |
| 5541 | .block_erase = spi_block_erase_20, |
| 5542 | }, { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5543 | .eraseblocks = { {32 * 1024, 64} }, |
| 5544 | .block_erase = spi_block_erase_d8, |
| 5545 | }, { |
Aarya Chaumal | 478e179 | 2022-06-04 01:34:44 +0530 | [diff] [blame] | 5546 | .eraseblocks = { {64 * 1024, 32} }, |
| 5547 | .block_erase = spi_block_erase_52, |
| 5548 | }, { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5549 | .eraseblocks = { {2048 * 1024, 1} }, |
| 5550 | .block_erase = spi_block_erase_60, |
| 5551 | }, { |
| 5552 | .eraseblocks = { {2048 * 1024, 1} }, |
| 5553 | .block_erase = spi_block_erase_c7, |
| 5554 | } |
| 5555 | }, |
| 5556 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 5557 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5558 | .write = spi_chip_write_256, |
| 5559 | .read = spi_chip_read, |
| 5560 | .voltage = {1650, 1950}, |
| 5561 | }, |
| 5562 | |
| 5563 | { |
| 5564 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5565 | .name = "EN25S20", |
| 5566 | .bustype = BUS_SPI, |
| 5567 | .manufacture_id = EON_ID_NOPREFIX, |
| 5568 | .model_id = EON_EN25S20, |
| 5569 | .total_size = 256, |
| 5570 | .page_size = 256, |
| 5571 | /* OTP: 256B total; enter 0x3A */ |
| 5572 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5573 | .tested = TEST_UNTESTED, |
| 5574 | .probe = probe_spi_rdid, |
| 5575 | .probe_timing = TIMING_ZERO, |
| 5576 | .block_erasers = |
| 5577 | { |
| 5578 | { |
| 5579 | .eraseblocks = { {4 * 1024, 64} }, |
| 5580 | .block_erase = spi_block_erase_20, |
| 5581 | }, { |
| 5582 | .eraseblocks = { {64 * 1024, 4} }, |
| 5583 | .block_erase = spi_block_erase_d8, |
| 5584 | }, { |
| 5585 | .eraseblocks = { {256 * 1024, 1} }, |
| 5586 | .block_erase = spi_block_erase_60, |
| 5587 | }, { |
| 5588 | .eraseblocks = { {256 * 1024, 1} }, |
| 5589 | .block_erase = spi_block_erase_c7, |
| 5590 | } |
| 5591 | }, |
| 5592 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 5593 | .unlock = spi_disable_blockprotect, |
| 5594 | .write = spi_chip_write_256, |
| 5595 | .read = spi_chip_read, |
| 5596 | .voltage = {1650, 1950}, |
| 5597 | }, |
| 5598 | |
| 5599 | { |
| 5600 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5601 | .name = "EN25S32", |
| 5602 | .bustype = BUS_SPI, |
| 5603 | .manufacture_id = EON_ID_NOPREFIX, |
| 5604 | .model_id = EON_EN25S32, |
| 5605 | .total_size = 4096, |
| 5606 | .page_size = 256, |
| 5607 | /* OTP: 512B total; enter 0x3A */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 5608 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | (FEATURE_QPI_38 & ~FEATURE_FAST_READ_QOUT), |
| 5609 | .dummy_cycles = |
| 5610 | { |
| 5611 | .qpi_fast_read = 6, |
| 5612 | .qpi_fast_read_qio = 6, |
| 5613 | }, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5614 | .tested = TEST_UNTESTED, |
| 5615 | .probe = probe_spi_rdid, |
| 5616 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5617 | .block_erasers = |
| 5618 | { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5619 | { |
| 5620 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5621 | .block_erase = spi_block_erase_20, |
| 5622 | }, { |
| 5623 | .eraseblocks = { {32 * 1024, 128} }, |
| 5624 | .block_erase = spi_block_erase_52, |
| 5625 | }, { |
| 5626 | .eraseblocks = { {64 * 1024, 64} }, |
| 5627 | .block_erase = spi_block_erase_d8, |
| 5628 | }, { |
| 5629 | .eraseblocks = { {4096 * 1024, 1} }, |
| 5630 | .block_erase = spi_block_erase_60, |
| 5631 | }, { |
| 5632 | .eraseblocks = { {4096 * 1024, 1} }, |
| 5633 | .block_erase = spi_block_erase_c7, |
| 5634 | } |
| 5635 | }, |
| 5636 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 5637 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5638 | .write = spi_chip_write_256, |
| 5639 | .read = spi_chip_read, |
| 5640 | .voltage = {1650, 1950}, |
| 5641 | }, |
| 5642 | |
| 5643 | { |
| 5644 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5645 | .name = "EN25S40", |
| 5646 | .bustype = BUS_SPI, |
| 5647 | .manufacture_id = EON_ID_NOPREFIX, |
| 5648 | .model_id = EON_EN25S40, |
| 5649 | .total_size = 512, |
| 5650 | .page_size = 256, |
| 5651 | /* OTP: 256B total; enter 0x3A */ |
| 5652 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5653 | .tested = TEST_OK_PREW, |
| 5654 | .probe = probe_spi_rdid, |
| 5655 | .probe_timing = TIMING_ZERO, |
| 5656 | .block_erasers = |
| 5657 | { |
| 5658 | { |
| 5659 | .eraseblocks = { {4 * 1024, 128} }, |
| 5660 | .block_erase = spi_block_erase_20, |
| 5661 | }, { |
| 5662 | .eraseblocks = { {64 * 1024, 8} }, |
| 5663 | .block_erase = spi_block_erase_d8, |
| 5664 | }, { |
| 5665 | .eraseblocks = { {512 * 1024, 1} }, |
| 5666 | .block_erase = spi_block_erase_60, |
| 5667 | }, { |
| 5668 | .eraseblocks = { {512 * 1024, 1} }, |
| 5669 | .block_erase = spi_block_erase_c7, |
| 5670 | } |
| 5671 | }, |
| 5672 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 5673 | .unlock = spi_disable_blockprotect, |
| 5674 | .write = spi_chip_write_256, |
| 5675 | .read = spi_chip_read, |
| 5676 | .voltage = {1650, 1950}, |
| 5677 | }, |
| 5678 | |
| 5679 | { |
| 5680 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5681 | .name = "EN25S64", |
| 5682 | .bustype = BUS_SPI, |
| 5683 | .manufacture_id = EON_ID_NOPREFIX, |
| 5684 | .model_id = EON_EN25S64, |
| 5685 | .total_size = 8192, |
| 5686 | .page_size = 256, |
| 5687 | /* OTP: 512B total; enter 0x3A */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 5688 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | (FEATURE_QPI_38 & ~FEATURE_FAST_READ_QOUT), |
| 5689 | .dummy_cycles = |
| 5690 | { |
| 5691 | .qpi_fast_read = 6, |
| 5692 | .qpi_fast_read_qio = 6, |
| 5693 | }, |
Nikolai Artemiev | df889fa | 2021-03-23 17:10:45 +1100 | [diff] [blame] | 5694 | .tested = TEST_OK_PREW, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5695 | .probe = probe_spi_rdid, |
| 5696 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5697 | .block_erasers = |
| 5698 | { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5699 | { |
| 5700 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5701 | .block_erase = spi_block_erase_20, |
| 5702 | }, { |
| 5703 | .eraseblocks = { {64 * 1024, 128} }, |
| 5704 | .block_erase = spi_block_erase_d8, |
| 5705 | }, { |
| 5706 | .eraseblocks = { {8192 * 1024, 1} }, |
| 5707 | .block_erase = spi_block_erase_60, |
| 5708 | }, { |
| 5709 | .eraseblocks = { {8192 * 1024, 1} }, |
| 5710 | .block_erase = spi_block_erase_c7, |
| 5711 | } |
| 5712 | }, |
| 5713 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 5714 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5715 | .write = spi_chip_write_256, |
| 5716 | .read = spi_chip_read, |
| 5717 | .voltage = {1650, 1950}, |
| 5718 | }, |
| 5719 | |
| 5720 | { |
| 5721 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5722 | .name = "EN25S80", |
| 5723 | .bustype = BUS_SPI, |
| 5724 | .manufacture_id = EON_ID_NOPREFIX, |
| 5725 | .model_id = EON_EN25S80, |
| 5726 | .total_size = 1024, |
| 5727 | .page_size = 256, |
| 5728 | /* OTP: 256B total; enter 0x3A */ |
| 5729 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5730 | .tested = TEST_UNTESTED, |
| 5731 | .probe = probe_spi_rdid, |
| 5732 | .probe_timing = TIMING_ZERO, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5733 | .block_erasers = |
| 5734 | { |
| 5735 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5736 | .eraseblocks = { {4 * 1024, 256} }, |
| 5737 | .block_erase = spi_block_erase_20, |
| 5738 | }, { |
| 5739 | .eraseblocks = { {64 * 1024, 16} }, |
| 5740 | .block_erase = spi_block_erase_d8, |
| 5741 | }, { |
| 5742 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5743 | .block_erase = spi_block_erase_60, |
| 5744 | }, { |
| 5745 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5746 | .block_erase = spi_block_erase_c7, |
| 5747 | } |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5748 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5749 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 5750 | .unlock = spi_disable_blockprotect, |
| 5751 | .write = spi_chip_write_256, |
| 5752 | .read = spi_chip_read, |
| 5753 | .voltage = {1650, 1950}, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5754 | }, |
| 5755 | |
| 5756 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 5757 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5758 | .name = "EN29F002(A)(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5759 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5760 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5761 | .model_id = EON_EN29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5762 | .total_size = 256, |
| 5763 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5764 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Alan Green | 4362e62 | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 5765 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5766 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5767 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5768 | .block_erasers = |
| 5769 | { |
| 5770 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5771 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5772 | {16 * 1024, 1}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 5773 | {8 * 1024, 2}, |
| 5774 | {32 * 1024, 1}, |
| 5775 | {64 * 1024, 3}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5776 | }, |
| 5777 | .block_erase = erase_sector_jedec, |
| 5778 | }, { |
| 5779 | .eraseblocks = { {256 * 1024, 1} }, |
| 5780 | .block_erase = erase_chip_block_jedec, |
| 5781 | }, |
| 5782 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 5783 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5784 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5785 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 5786 | .prepare_access = prepare_memory_access, |
| 5787 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5788 | }, |
| 5789 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5790 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 5791 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5792 | .name = "EN29F002(A)(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5793 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5794 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5795 | .model_id = EON_EN29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5796 | .total_size = 256, |
| 5797 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5798 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 5799 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5800 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5801 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5802 | .block_erasers = |
| 5803 | { |
| 5804 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5805 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5806 | {64 * 1024, 3}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 5807 | {32 * 1024, 1}, |
| 5808 | {8 * 1024, 2}, |
| 5809 | {16 * 1024, 1}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5810 | }, |
| 5811 | .block_erase = erase_sector_jedec, |
| 5812 | }, { |
| 5813 | .eraseblocks = { {256 * 1024, 1} }, |
| 5814 | .block_erase = erase_chip_block_jedec, |
| 5815 | }, |
| 5816 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 5817 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5818 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5819 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 5820 | .prepare_access = prepare_memory_access, |
| 5821 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5822 | }, |
| 5823 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5824 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5825 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5826 | .name = "EN29F010", |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5827 | .bustype = BUS_PARALLEL, |
| 5828 | .manufacture_id = EON_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5829 | .model_id = EON_EN29F010, |
| 5830 | .total_size = 128, |
| 5831 | .page_size = 128, |
| 5832 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 5833 | .tested = TEST_OK_PRE, |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5834 | .probe = probe_jedec, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5835 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5836 | .block_erasers = |
| 5837 | { |
| 5838 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5839 | .eraseblocks = { {16 * 1024, 8} }, |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5840 | .block_erase = erase_sector_jedec, |
| 5841 | }, |
| 5842 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5843 | .eraseblocks = { {128 * 1024, 1} }, |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5844 | .block_erase = erase_chip_block_jedec, |
| 5845 | }, |
| 5846 | }, |
| 5847 | .write = write_jedec_1, |
| 5848 | .read = read_memmapped, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5849 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 5850 | .prepare_access = prepare_memory_access, |
| 5851 | .finish_access = finish_memory_access, |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5852 | }, |
| 5853 | |
| 5854 | { |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 5855 | .vendor = "Eon", |
| 5856 | .name = "EN29GL064(A)B", |
| 5857 | .bustype = BUS_PARALLEL, |
| 5858 | .manufacture_id = EON_ID, |
| 5859 | .model_id = EON_EN29GL064B, |
| 5860 | .total_size = 8192, |
| 5861 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5862 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5863 | .tested = TEST_UNTESTED, |
| 5864 | .probe = probe_jedec_29gl, |
| 5865 | .probe_timing = TIMING_ZERO, |
| 5866 | .block_erasers = |
| 5867 | { |
| 5868 | { |
| 5869 | .eraseblocks = { |
| 5870 | {8 * 1024, 8}, |
| 5871 | {64 * 1024, 127}, |
| 5872 | }, |
| 5873 | .block_erase = erase_sector_jedec, |
| 5874 | }, { |
| 5875 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5876 | .block_erase = erase_chip_block_jedec, |
| 5877 | }, |
| 5878 | }, |
| 5879 | .write = write_jedec_1, |
| 5880 | .read = read_memmapped, |
| 5881 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 5882 | .prepare_access = prepare_memory_access, |
| 5883 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 5884 | }, |
| 5885 | |
| 5886 | { |
| 5887 | .vendor = "Eon", |
| 5888 | .name = "EN29GL064(A)T", |
| 5889 | .bustype = BUS_PARALLEL, |
| 5890 | .manufacture_id = EON_ID, |
| 5891 | .model_id = EON_EN29GL064T, |
| 5892 | .total_size = 8192, |
| 5893 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5894 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5895 | .tested = TEST_UNTESTED, |
| 5896 | .probe = probe_jedec_29gl, |
| 5897 | .probe_timing = TIMING_ZERO, |
| 5898 | .block_erasers = |
| 5899 | { |
| 5900 | { |
| 5901 | .eraseblocks = { |
| 5902 | {64 * 1024, 127}, |
| 5903 | {8 * 1024, 8}, |
| 5904 | }, |
| 5905 | .block_erase = erase_sector_jedec, |
| 5906 | }, { |
| 5907 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5908 | .block_erase = erase_chip_block_jedec, |
| 5909 | }, |
| 5910 | }, |
| 5911 | .write = write_jedec_1, |
| 5912 | .read = read_memmapped, |
| 5913 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 5914 | .prepare_access = prepare_memory_access, |
| 5915 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 5916 | }, |
| 5917 | |
| 5918 | { |
| 5919 | .vendor = "Eon", |
| 5920 | .name = "EN29GL064H/L", |
| 5921 | .bustype = BUS_PARALLEL, |
| 5922 | .manufacture_id = EON_ID, |
| 5923 | .model_id = EON_EN29GL064HL, |
| 5924 | .total_size = 8192, |
| 5925 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5926 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5927 | .tested = TEST_UNTESTED, |
| 5928 | .probe = probe_jedec_29gl, |
| 5929 | .probe_timing = TIMING_ZERO, |
| 5930 | .block_erasers = |
| 5931 | { |
| 5932 | { |
| 5933 | .eraseblocks = { {64 * 1024, 128} }, |
| 5934 | .block_erase = erase_sector_jedec, |
| 5935 | }, { |
| 5936 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5937 | .block_erase = erase_chip_block_jedec, |
| 5938 | }, |
| 5939 | }, |
| 5940 | .write = write_jedec_1, |
| 5941 | .read = read_memmapped, |
| 5942 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 5943 | .prepare_access = prepare_memory_access, |
| 5944 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 5945 | }, |
| 5946 | |
| 5947 | { |
| 5948 | .vendor = "Eon", |
| 5949 | .name = "EN29GL128", |
| 5950 | .bustype = BUS_PARALLEL, |
| 5951 | .manufacture_id = EON_ID, |
| 5952 | .model_id = EON_EN29GL128HL, |
| 5953 | .total_size = 16384, |
| 5954 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5955 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5956 | .tested = TEST_UNTESTED, |
| 5957 | .probe = probe_jedec_29gl, |
| 5958 | .probe_timing = TIMING_ZERO, |
| 5959 | .block_erasers = |
| 5960 | { |
| 5961 | { |
| 5962 | .eraseblocks = { {128 * 1024, 128} }, |
| 5963 | .block_erase = erase_sector_jedec, |
| 5964 | }, { |
| 5965 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 5966 | .block_erase = erase_chip_block_jedec, |
| 5967 | }, |
| 5968 | }, |
| 5969 | .write = write_jedec_1, |
| 5970 | .read = read_memmapped, |
| 5971 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 5972 | .prepare_access = prepare_memory_access, |
| 5973 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 5974 | }, |
| 5975 | |
| 5976 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5977 | .vendor = "Eon", |
| 5978 | .name = "EN29LV040(A)", |
| 5979 | .bustype = BUS_PARALLEL, |
| 5980 | .manufacture_id = EON_ID, |
| 5981 | .model_id = EON_EN29LV040, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5982 | .total_size = 512, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5983 | .page_size = 4 * 1024, |
| 5984 | .tested = TEST_OK_PREW, |
| 5985 | .probe = probe_jedec, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5986 | .probe_timing = TIMING_ZERO, |
| 5987 | .block_erasers = |
| 5988 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 5989 | { |
| 5990 | .eraseblocks = { {64 * 1024, 8} }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5991 | .block_erase = erase_sector_jedec, |
| 5992 | }, |
| 5993 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 5994 | .eraseblocks = { {512 * 1024, 1} }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5995 | .block_erase = erase_chip_block_jedec, |
| 5996 | }, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 5997 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5998 | .write = write_jedec_1, |
| 5999 | .read = read_memmapped, |
| 6000 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 6001 | .prepare_access = prepare_memory_access, |
| 6002 | .finish_access = finish_memory_access, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 6003 | }, |
| 6004 | |
| 6005 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6006 | .vendor = "Eon", |
| 6007 | .name = "EN29LV640B", |
| 6008 | .bustype = BUS_PARALLEL, |
| 6009 | .manufacture_id = EON_ID, |
| 6010 | .model_id = EON_EN29LV640B, |
| 6011 | .total_size = 8192, |
| 6012 | .page_size = 8192, |
| 6013 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 6014 | .tested = TEST_OK_PREW, |
| 6015 | .probe = probe_en29lv640b, |
| 6016 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 6017 | .block_erasers = |
| 6018 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 6019 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6020 | .eraseblocks = { |
| 6021 | {8 * 1024, 8}, |
| 6022 | {64 * 1024, 127}, |
| 6023 | }, |
| 6024 | .block_erase = erase_block_jedec, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 6025 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6026 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6027 | .block_erase = erase_chip_block_jedec, |
| 6028 | }, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 6029 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6030 | .write = write_en29lv640b, |
| 6031 | .read = read_memmapped, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 6032 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 6033 | .prepare_access = prepare_memory_access, |
| 6034 | .finish_access = finish_memory_access, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 6035 | }, |
| 6036 | |
| 6037 | { |
Jakob Petersson | 0cf3e12 | 2019-02-18 01:55:43 +0100 | [diff] [blame] | 6038 | .vendor = "Fudan", |
| 6039 | .name = "FM25F005", |
| 6040 | .bustype = BUS_SPI, |
| 6041 | .manufacture_id = FUDAN_ID_NOPREFIX, |
| 6042 | .model_id = FUDAN_FM25F005, |
| 6043 | .total_size = 64, |
| 6044 | .page_size = 256, |
| 6045 | /* OTP: 256B total; enter 0x3A */ |
| 6046 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6047 | .tested = TEST_UNTESTED, |
| 6048 | .probe = probe_spi_rdid, |
| 6049 | .probe_timing = TIMING_ZERO, |
| 6050 | .block_erasers = { |
| 6051 | { |
| 6052 | .eraseblocks = { {4 * 1024, 16} }, |
| 6053 | .block_erase = spi_block_erase_20, |
| 6054 | }, { |
| 6055 | .eraseblocks = { {32 * 1024, 2} }, |
| 6056 | .block_erase = spi_block_erase_52, |
| 6057 | }, { |
| 6058 | .eraseblocks = { {64 * 1024, 1} }, |
| 6059 | .block_erase = spi_block_erase_d8, |
| 6060 | }, { |
| 6061 | .eraseblocks = { {64 * 1024, 1} }, |
| 6062 | .block_erase = spi_block_erase_60, |
| 6063 | }, { |
| 6064 | .eraseblocks = { {64 * 1024, 1} }, |
| 6065 | .block_erase = spi_block_erase_c7, |
| 6066 | } |
| 6067 | }, |
| 6068 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 6069 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 6070 | .write = spi_chip_write_256, |
| 6071 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 6072 | .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */ |
| 6073 | }, |
| 6074 | |
| 6075 | { |
| 6076 | .vendor = "Fudan", |
| 6077 | .name = "FM25F01", |
| 6078 | .bustype = BUS_SPI, |
| 6079 | .manufacture_id = FUDAN_ID_NOPREFIX, |
| 6080 | .model_id = FUDAN_FM25F01, |
| 6081 | .total_size = 128, |
| 6082 | .page_size = 256, |
| 6083 | /* OTP: 256B total; enter 0x3A */ |
| 6084 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6085 | .tested = TEST_UNTESTED, |
| 6086 | .probe = probe_spi_rdid, |
| 6087 | .probe_timing = TIMING_ZERO, |
| 6088 | .block_erasers = { |
| 6089 | { |
| 6090 | .eraseblocks = { {4 * 1024, 32} }, |
| 6091 | .block_erase = spi_block_erase_20, |
| 6092 | }, { |
| 6093 | .eraseblocks = { {32 * 1024, 4} }, |
| 6094 | .block_erase = spi_block_erase_52, |
| 6095 | }, { |
| 6096 | .eraseblocks = { {64 * 1024, 2} }, |
| 6097 | .block_erase = spi_block_erase_d8, |
| 6098 | }, { |
| 6099 | .eraseblocks = { {128 * 1024, 1} }, |
| 6100 | .block_erase = spi_block_erase_60, |
| 6101 | }, { |
| 6102 | .eraseblocks = { {128 * 1024, 1} }, |
| 6103 | .block_erase = spi_block_erase_c7, |
| 6104 | } |
| 6105 | }, |
| 6106 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 6107 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 6108 | .write = spi_chip_write_256, |
| 6109 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 6110 | .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */ |
| 6111 | }, |
| 6112 | |
| 6113 | { |
| 6114 | .vendor = "Fudan", |
| 6115 | .name = "FM25F02(A)", |
| 6116 | .bustype = BUS_SPI, |
| 6117 | .manufacture_id = FUDAN_ID_NOPREFIX, |
| 6118 | .model_id = FUDAN_FM25F02, |
| 6119 | .total_size = 256, |
| 6120 | .page_size = 256, |
| 6121 | /* OTP: 256B total; enter 0x3A, (A version only:) read ID 0x4B */ |
| 6122 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6123 | .tested = TEST_UNTESTED, |
| 6124 | .probe = probe_spi_rdid, |
| 6125 | .probe_timing = TIMING_ZERO, |
| 6126 | .block_erasers = { |
| 6127 | { |
| 6128 | .eraseblocks = { {4 * 1024, 64} }, |
| 6129 | .block_erase = spi_block_erase_20, |
| 6130 | }, { |
| 6131 | .eraseblocks = { {32 * 1024, 8} }, |
| 6132 | .block_erase = spi_block_erase_52, |
| 6133 | }, { |
| 6134 | .eraseblocks = { {64 * 1024, 4} }, |
| 6135 | .block_erase = spi_block_erase_d8, |
| 6136 | }, { |
| 6137 | .eraseblocks = { {1024 * 256, 1} }, |
| 6138 | .block_erase = spi_block_erase_60, |
| 6139 | }, { |
| 6140 | .eraseblocks = { {1024 * 256, 1} }, |
| 6141 | .block_erase = spi_block_erase_c7, |
| 6142 | }, |
| 6143 | }, |
| 6144 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 6145 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 6146 | .write = spi_chip_write_256, |
| 6147 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 6148 | .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */ |
| 6149 | }, |
| 6150 | |
| 6151 | { |
| 6152 | .vendor = "Fudan", |
| 6153 | .name = "FM25F04(A)", |
| 6154 | .bustype = BUS_SPI, |
| 6155 | .manufacture_id = FUDAN_ID_NOPREFIX, |
| 6156 | .model_id = FUDAN_FM25F04, |
| 6157 | .total_size = 512, |
| 6158 | .page_size = 256, |
| 6159 | /* OTP: 256B total; enter 0x3A, (A version only:) read ID 0x4B */ |
| 6160 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6161 | .tested = TEST_UNTESTED, |
| 6162 | .probe = probe_spi_rdid, |
| 6163 | .probe_timing = TIMING_ZERO, |
| 6164 | .block_erasers = { |
| 6165 | { |
| 6166 | .eraseblocks = { {4 * 1024, 128} }, |
| 6167 | .block_erase = spi_block_erase_20, |
| 6168 | }, { |
| 6169 | .eraseblocks = { {32 * 1024, 16} }, |
| 6170 | .block_erase = spi_block_erase_52, |
| 6171 | }, { |
| 6172 | .eraseblocks = { {64 * 1024, 8} }, |
| 6173 | .block_erase = spi_block_erase_d8, |
| 6174 | }, { |
| 6175 | .eraseblocks = { {1024 * 512, 1} }, |
| 6176 | .block_erase = spi_block_erase_60, |
| 6177 | }, { |
| 6178 | .eraseblocks = { {1024 * 512, 1} }, |
| 6179 | .block_erase = spi_block_erase_c7, |
| 6180 | }, |
| 6181 | }, |
| 6182 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 6183 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 6184 | .write = spi_chip_write_256, |
| 6185 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 6186 | .voltage = {2700, 3600}, |
| 6187 | }, |
| 6188 | |
| 6189 | { |
| 6190 | .vendor = "Fudan", |
| 6191 | .name = "FM25Q08", |
| 6192 | .bustype = BUS_SPI, |
| 6193 | .manufacture_id = FUDAN_ID_NOPREFIX, |
| 6194 | .model_id = FUDAN_FM25Q08, |
| 6195 | .total_size = 1024, |
| 6196 | .page_size = 256, |
| 6197 | /* supports SFDP */ |
| 6198 | /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 6199 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP, |
| 6200 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
Jakob Petersson | 0cf3e12 | 2019-02-18 01:55:43 +0100 | [diff] [blame] | 6201 | .tested = TEST_UNTESTED, |
| 6202 | .probe = probe_spi_rdid, |
| 6203 | .probe_timing = TIMING_ZERO, |
| 6204 | .block_erasers = { |
| 6205 | { |
| 6206 | .eraseblocks = { {4 * 1024, 256} }, |
| 6207 | .block_erase = spi_block_erase_20, |
| 6208 | }, { |
| 6209 | .eraseblocks = { {32 * 1024, 32} }, |
| 6210 | .block_erase = spi_block_erase_52, |
| 6211 | }, { |
| 6212 | .eraseblocks = { {64 * 1024, 16} }, |
| 6213 | .block_erase = spi_block_erase_d8, |
| 6214 | }, { |
| 6215 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6216 | .block_erase = spi_block_erase_60, |
| 6217 | }, { |
| 6218 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6219 | .block_erase = spi_block_erase_c7, |
| 6220 | }, |
| 6221 | }, |
| 6222 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */ |
| 6223 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 6224 | .write = spi_chip_write_256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 6225 | .read = spi_chip_read, |
Jakob Petersson | 0cf3e12 | 2019-02-18 01:55:43 +0100 | [diff] [blame] | 6226 | .voltage = {2700, 3600}, |
| 6227 | }, |
| 6228 | |
| 6229 | { |
| 6230 | .vendor = "Fudan", |
| 6231 | .name = "FM25Q16", |
| 6232 | .bustype = BUS_SPI, |
| 6233 | .manufacture_id = FUDAN_ID_NOPREFIX, |
| 6234 | .model_id = FUDAN_FM25Q16, |
| 6235 | .total_size = 2048, |
| 6236 | .page_size = 256, |
| 6237 | /* supports SFDP */ |
| 6238 | /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 6239 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP, |
| 6240 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
Jakob Petersson | 0cf3e12 | 2019-02-18 01:55:43 +0100 | [diff] [blame] | 6241 | .tested = TEST_UNTESTED, |
| 6242 | .probe = probe_spi_rdid, |
| 6243 | .probe_timing = TIMING_ZERO, |
| 6244 | .block_erasers = { |
| 6245 | { |
| 6246 | .eraseblocks = { {4 * 1024, 512} }, |
| 6247 | .block_erase = spi_block_erase_20, |
| 6248 | }, { |
| 6249 | .eraseblocks = { {32 * 1024, 64} }, |
| 6250 | .block_erase = spi_block_erase_52, |
| 6251 | }, { |
| 6252 | .eraseblocks = { {64 * 1024, 32} }, |
| 6253 | .block_erase = spi_block_erase_d8, |
| 6254 | }, { |
| 6255 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6256 | .block_erase = spi_block_erase_60, |
| 6257 | }, { |
| 6258 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6259 | .block_erase = spi_block_erase_c7, |
| 6260 | } |
| 6261 | }, |
| 6262 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */ |
| 6263 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 6264 | .write = spi_chip_write_256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 6265 | .read = spi_chip_read, |
Jakob Petersson | 0cf3e12 | 2019-02-18 01:55:43 +0100 | [diff] [blame] | 6266 | .voltage = {2700, 3600}, |
| 6267 | }, |
| 6268 | |
| 6269 | { |
| 6270 | .vendor = "Fudan", |
| 6271 | .name = "FM25Q32", |
| 6272 | .bustype = BUS_SPI, |
| 6273 | .manufacture_id = FUDAN_ID_NOPREFIX, |
| 6274 | .model_id = FUDAN_FM25Q32, |
| 6275 | .total_size = 4096, |
| 6276 | .page_size = 256, |
| 6277 | /* supports SFDP */ |
| 6278 | /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 6279 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP, |
| 6280 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
Jakob Petersson | 0cf3e12 | 2019-02-18 01:55:43 +0100 | [diff] [blame] | 6281 | .tested = TEST_UNTESTED, |
| 6282 | .probe = probe_spi_rdid, |
| 6283 | .probe_timing = TIMING_ZERO, |
| 6284 | .block_erasers = { |
| 6285 | { |
| 6286 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6287 | .block_erase = spi_block_erase_20, |
| 6288 | }, { |
| 6289 | .eraseblocks = { {32 * 1024, 128} }, |
| 6290 | .block_erase = spi_block_erase_52, |
| 6291 | }, { |
| 6292 | .eraseblocks = { {64 * 1024, 64} }, |
| 6293 | .block_erase = spi_block_erase_d8, |
| 6294 | }, { |
| 6295 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6296 | .block_erase = spi_block_erase_60, |
| 6297 | }, { |
| 6298 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6299 | .block_erase = spi_block_erase_c7, |
| 6300 | }, |
| 6301 | }, |
| 6302 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */ |
| 6303 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 6304 | .write = spi_chip_write_256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 6305 | .read = spi_chip_read, |
Jakob Petersson | 0cf3e12 | 2019-02-18 01:55:43 +0100 | [diff] [blame] | 6306 | .voltage = {2700, 3600}, |
| 6307 | }, |
| 6308 | |
| 6309 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6310 | .vendor = "Fujitsu", |
| 6311 | .name = "MBM29F004BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6312 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6313 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6314 | .model_id = FUJITSU_MBM29F004BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6315 | .total_size = 512, |
| 6316 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6317 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6318 | .tested = TEST_UNTESTED, |
| 6319 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6320 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6321 | .block_erasers = |
| 6322 | { |
| 6323 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6324 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6325 | {16 * 1024, 1}, |
| 6326 | {8 * 1024, 2}, |
| 6327 | {32 * 1024, 1}, |
| 6328 | {64 * 1024, 7}, |
| 6329 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6330 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6331 | }, { |
| 6332 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6333 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6334 | }, |
| 6335 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6336 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6337 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6338 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 6339 | .prepare_access = prepare_memory_access, |
| 6340 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6341 | }, |
| 6342 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6343 | { |
| 6344 | .vendor = "Fujitsu", |
| 6345 | .name = "MBM29F004TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6346 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6347 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6348 | .model_id = FUJITSU_MBM29F004TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6349 | .total_size = 512, |
| 6350 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6351 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6352 | .tested = TEST_UNTESTED, |
| 6353 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6354 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6355 | .block_erasers = |
| 6356 | { |
| 6357 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6358 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6359 | {64 * 1024, 7}, |
| 6360 | {32 * 1024, 1}, |
| 6361 | {8 * 1024, 2}, |
| 6362 | {16 * 1024, 1}, |
| 6363 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6364 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6365 | }, { |
| 6366 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6367 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6368 | }, |
| 6369 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6370 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6371 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6372 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 6373 | .prepare_access = prepare_memory_access, |
| 6374 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6375 | }, |
| 6376 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6377 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6378 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6379 | .vendor = "Fujitsu", |
| 6380 | .name = "MBM29F400BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6381 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6382 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6383 | .model_id = FUJITSU_MBM29F400BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6384 | .total_size = 512, |
| 6385 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6386 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 6387 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6388 | .probe = probe_jedec, |
| 6389 | .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] | 6390 | .block_erasers = |
| 6391 | { |
| 6392 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6393 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6394 | {16 * 1024, 1}, |
| 6395 | {8 * 1024, 2}, |
| 6396 | {32 * 1024, 1}, |
| 6397 | {64 * 1024, 7}, |
| 6398 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6399 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6400 | }, { |
| 6401 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6402 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6403 | }, |
| 6404 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6405 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6406 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6407 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 6408 | .prepare_access = prepare_memory_access, |
| 6409 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6410 | }, |
| 6411 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6412 | { |
| 6413 | .vendor = "Fujitsu", |
| 6414 | .name = "MBM29F400TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6415 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6416 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6417 | .model_id = FUJITSU_MBM29F400TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6418 | .total_size = 512, |
| 6419 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6420 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6421 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6422 | .probe = probe_jedec, |
| 6423 | .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] | 6424 | .block_erasers = |
| 6425 | { |
| 6426 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6427 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6428 | {64 * 1024, 7}, |
| 6429 | {32 * 1024, 1}, |
| 6430 | {8 * 1024, 2}, |
| 6431 | {16 * 1024, 1}, |
| 6432 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6433 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6434 | }, { |
| 6435 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6436 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6437 | }, |
| 6438 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6439 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6440 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6441 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 6442 | .prepare_access = prepare_memory_access, |
| 6443 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6444 | }, |
| 6445 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6446 | { |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6447 | .vendor = "Fujitsu", |
| 6448 | .name = "MBM29LV160BE", |
| 6449 | .bustype = BUS_PARALLEL, |
| 6450 | .manufacture_id = FUJITSU_ID, |
| 6451 | .model_id = FUJITSU_MBM29LV160BE, |
| 6452 | .total_size = 2 * 1024, |
| 6453 | .page_size = 0, |
| 6454 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET, |
| 6455 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6456 | .probe = probe_jedec, |
| 6457 | .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] | 6458 | .block_erasers = |
| 6459 | { |
| 6460 | { |
| 6461 | .eraseblocks = { |
| 6462 | {16 * 1024, 1}, |
| 6463 | {8 * 1024, 2}, |
| 6464 | {32 * 1024, 1}, |
| 6465 | {64 * 1024, 31}, |
| 6466 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6467 | .block_erase = erase_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6468 | }, { |
| 6469 | .eraseblocks = { {2048 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6470 | .block_erase = erase_chip_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6471 | }, |
| 6472 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6473 | .write = write_jedec_1, /* Supports a fast mode too */ |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6474 | .read = read_memmapped, |
| 6475 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 6476 | .prepare_access = prepare_memory_access, |
| 6477 | .finish_access = finish_memory_access, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6478 | }, |
| 6479 | |
| 6480 | { |
| 6481 | .vendor = "Fujitsu", |
| 6482 | .name = "MBM29LV160TE", |
| 6483 | .bustype = BUS_PARALLEL, |
| 6484 | .manufacture_id = FUJITSU_ID, |
| 6485 | .model_id = FUJITSU_MBM29LV160TE, |
| 6486 | .total_size = 2 * 1024, |
| 6487 | .page_size = 0, |
| 6488 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET, |
| 6489 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6490 | .probe = probe_jedec, |
| 6491 | .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] | 6492 | .block_erasers = |
| 6493 | { |
| 6494 | { |
| 6495 | .eraseblocks = { |
| 6496 | {64 * 1024, 31}, |
| 6497 | {32 * 1024, 1}, |
| 6498 | {8 * 1024, 2}, |
| 6499 | {16 * 1024, 1}, |
| 6500 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6501 | .block_erase = erase_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6502 | }, { |
| 6503 | .eraseblocks = { {2048 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6504 | .block_erase = erase_chip_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6505 | }, |
| 6506 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6507 | .write = write_jedec_1, /* Supports a fast mode too */ |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6508 | .read = read_memmapped, |
| 6509 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 6510 | .prepare_access = prepare_memory_access, |
| 6511 | .finish_access = finish_memory_access, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6512 | }, |
| 6513 | |
| 6514 | { |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6515 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6516 | .name = "GD25B128B/GD25Q128B", |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6517 | .bustype = BUS_SPI, |
| 6518 | .manufacture_id = GIGADEVICE_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6519 | .model_id = GIGADEVICE_GD25Q128, |
| 6520 | .total_size = 16384, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6521 | .page_size = 256, |
| 6522 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 6523 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6524 | .tested = TEST_OK_PREW, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6525 | .probe = probe_spi_rdid, |
| 6526 | .probe_timing = TIMING_ZERO, |
| 6527 | .block_erasers = |
| 6528 | { |
| 6529 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6530 | .eraseblocks = { {4 * 1024, 4096} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6531 | .block_erase = spi_block_erase_20, |
| 6532 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6533 | .eraseblocks = { {32 * 1024, 512} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6534 | .block_erase = spi_block_erase_52, |
| 6535 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6536 | .eraseblocks = { {64 * 1024, 256} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6537 | .block_erase = spi_block_erase_d8, |
| 6538 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6539 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6540 | .block_erase = spi_block_erase_60, |
| 6541 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6542 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6543 | .block_erase = spi_block_erase_c7, |
| 6544 | } |
| 6545 | }, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 6546 | .reg_bits = |
| 6547 | { |
| 6548 | .qe = {STATUS2, 1, RW}, /* RO 1 in GD25B128B case */ |
| 6549 | }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6550 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6551 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6552 | .write = spi_chip_write_256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 6553 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6554 | .voltage = {2700, 3600}, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6555 | }, |
| 6556 | |
| 6557 | { |
| 6558 | .vendor = "GigaDevice", |
Edward O'Callaghan | 981a344 | 2021-06-22 11:16:55 +1000 | [diff] [blame] | 6559 | .name = "GD25LQ128C/GD25LQ128D/GD25LQ128E", |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6560 | .bustype = BUS_SPI, |
| 6561 | .manufacture_id = GIGADEVICE_ID, |
Alan Green | 188127e | 2019-08-06 16:10:34 +1000 | [diff] [blame] | 6562 | .model_id = GIGADEVICE_GD25LQ128CD, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6563 | .total_size = 16384, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6564 | .page_size = 256, |
| 6565 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 6566 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QPI_SRP, |
| 6567 | .dummy_cycles = { .qpi_read_params = { 4, 6, 8, 8 } }, |
Sergii Dmytruk | c74eac2 | 2022-10-06 18:17:58 +0300 | [diff] [blame] | 6568 | .tested = TEST_OK_PREWB, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6569 | .probe = probe_spi_rdid, |
| 6570 | .probe_timing = TIMING_ZERO, |
| 6571 | .block_erasers = |
| 6572 | { |
| 6573 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6574 | .eraseblocks = { {4 * 1024, 4096} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6575 | .block_erase = spi_block_erase_20, |
| 6576 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6577 | .eraseblocks = { {32 * 1024, 512} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6578 | .block_erase = spi_block_erase_52, |
| 6579 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6580 | .eraseblocks = { {64 * 1024, 256} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6581 | .block_erase = spi_block_erase_d8, |
| 6582 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6583 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6584 | .block_erase = spi_block_erase_60, |
| 6585 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6586 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6587 | .block_erase = spi_block_erase_c7, |
| 6588 | } |
| 6589 | }, |
| 6590 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6591 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6592 | .write = spi_chip_write_256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 6593 | .read = spi_chip_read, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6594 | .voltage = {1695, 1950}, |
Nikolai Artemiev | c6c3f28 | 2021-10-20 23:34:15 +1100 | [diff] [blame] | 6595 | .reg_bits = |
| 6596 | { |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 6597 | .qe = {STATUS2, 1, RW}, |
Nikolai Artemiev | c6c3f28 | 2021-10-20 23:34:15 +1100 | [diff] [blame] | 6598 | .srp = {STATUS1, 7, RW}, |
| 6599 | .srl = {STATUS2, 0, RW}, |
| 6600 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 6601 | .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */ |
| 6602 | .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */ |
| 6603 | .cmp = {STATUS2, 6, RW}, |
| 6604 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 6605 | .wp_write_cfg = spi_wp_write_cfg, |
| 6606 | .wp_read_cfg = spi_wp_read_cfg, |
| 6607 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nikolai Artemiev | c9feb1b | 2021-10-21 01:35:13 +1100 | [diff] [blame] | 6608 | .decode_range = decode_range_spi25, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6609 | }, |
| 6610 | |
| 6611 | { |
| 6612 | .vendor = "GigaDevice", |
| 6613 | .name = "GD25LQ16", |
| 6614 | .bustype = BUS_SPI, |
| 6615 | .manufacture_id = GIGADEVICE_ID, |
| 6616 | .model_id = GIGADEVICE_GD25LQ16, |
| 6617 | .total_size = 2048, |
| 6618 | .page_size = 256, |
| 6619 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 6620 | /* FEATURE_QPI_SRP(4, 4, 6, 8) except for LQ16C */ |
| 6621 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6622 | .tested = TEST_UNTESTED, |
| 6623 | .probe = probe_spi_rdid, |
| 6624 | .probe_timing = TIMING_ZERO, |
| 6625 | .block_erasers = |
| 6626 | { |
| 6627 | { |
| 6628 | .eraseblocks = { {4 * 1024, 512} }, |
| 6629 | .block_erase = spi_block_erase_20, |
| 6630 | }, { |
| 6631 | .eraseblocks = { {32 * 1024, 64} }, |
| 6632 | .block_erase = spi_block_erase_52, |
| 6633 | }, { |
| 6634 | .eraseblocks = { {64 * 1024, 32} }, |
| 6635 | .block_erase = spi_block_erase_d8, |
| 6636 | }, { |
| 6637 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6638 | .block_erase = spi_block_erase_60, |
| 6639 | }, { |
| 6640 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6641 | .block_erase = spi_block_erase_c7, |
| 6642 | } |
| 6643 | }, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 6644 | .reg_bits = |
| 6645 | { |
| 6646 | .qe = {STATUS2, 1, RW}, |
| 6647 | }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6648 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6649 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6650 | .write = spi_chip_write_256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 6651 | .read = spi_chip_read, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6652 | .voltage = {1695, 1950}, |
| 6653 | }, |
| 6654 | |
| 6655 | { |
| 6656 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6657 | .name = "GD25LQ32", |
| 6658 | .bustype = BUS_SPI, |
| 6659 | .manufacture_id = GIGADEVICE_ID, |
| 6660 | .model_id = GIGADEVICE_GD25LQ32, |
| 6661 | .total_size = 4096, |
| 6662 | .page_size = 256, |
| 6663 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 6664 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QPI_SRP, |
| 6665 | .dummy_cycles = { .qpi_read_params = { 4, 4, 6, 8 } }, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6666 | .tested = TEST_OK_PREW, |
| 6667 | .probe = probe_spi_rdid, |
| 6668 | .probe_timing = TIMING_ZERO, |
| 6669 | .block_erasers = |
| 6670 | { |
| 6671 | { |
| 6672 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6673 | .block_erase = spi_block_erase_20, |
| 6674 | }, { |
| 6675 | .eraseblocks = { {32 * 1024, 128} }, |
| 6676 | .block_erase = spi_block_erase_52, |
| 6677 | }, { |
| 6678 | .eraseblocks = { {64 * 1024, 64} }, |
| 6679 | .block_erase = spi_block_erase_d8, |
| 6680 | }, { |
| 6681 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6682 | .block_erase = spi_block_erase_60, |
| 6683 | }, { |
| 6684 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6685 | .block_erase = spi_block_erase_c7, |
| 6686 | } |
| 6687 | }, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 6688 | .reg_bits = |
| 6689 | { |
| 6690 | .qe = {STATUS2, 1, RW}, |
| 6691 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6692 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6693 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6694 | .write = spi_chip_write_256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 6695 | .read = spi_chip_read, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6696 | .voltage = {1695, 1950}, |
| 6697 | }, |
| 6698 | |
| 6699 | { |
| 6700 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6701 | .name = "GD25LQ40", |
| 6702 | .bustype = BUS_SPI, |
| 6703 | .manufacture_id = GIGADEVICE_ID, |
| 6704 | .model_id = GIGADEVICE_GD25LQ40, |
| 6705 | .total_size = 512, |
| 6706 | .page_size = 256, |
| 6707 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 6708 | /* FEATURE_QPI_SRP(4, 4, 6, 8) except for LQ40B, LQ40C */ |
| 6709 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6710 | .tested = TEST_UNTESTED, |
| 6711 | .probe = probe_spi_rdid, |
| 6712 | .probe_timing = TIMING_ZERO, |
| 6713 | .block_erasers = |
| 6714 | { |
| 6715 | { |
| 6716 | .eraseblocks = { {4 * 1024, 128} }, |
| 6717 | .block_erase = spi_block_erase_20, |
| 6718 | }, { |
| 6719 | .eraseblocks = { {32 * 1024, 16} }, |
| 6720 | .block_erase = spi_block_erase_52, |
| 6721 | }, { |
| 6722 | .eraseblocks = { {64 * 1024, 8} }, |
| 6723 | .block_erase = spi_block_erase_d8, |
| 6724 | }, { |
| 6725 | .eraseblocks = { {512 * 1024, 1} }, |
| 6726 | .block_erase = spi_block_erase_60, |
| 6727 | }, { |
| 6728 | .eraseblocks = { {512 * 1024, 1} }, |
| 6729 | .block_erase = spi_block_erase_c7, |
| 6730 | } |
| 6731 | }, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 6732 | .reg_bits = |
| 6733 | { |
| 6734 | .qe = {STATUS2, 1, RW}, |
| 6735 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6736 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6737 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6738 | .write = spi_chip_write_256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 6739 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6740 | .voltage = {1695, 1950}, |
| 6741 | }, |
| 6742 | |
| 6743 | { |
| 6744 | .vendor = "GigaDevice", |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6745 | .name = "GD25LQ64(B)", |
| 6746 | .bustype = BUS_SPI, |
| 6747 | .manufacture_id = GIGADEVICE_ID, |
| 6748 | .model_id = GIGADEVICE_GD25LQ64, |
| 6749 | .total_size = 8192, |
| 6750 | .page_size = 256, |
| 6751 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 6752 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QPI_SRP, |
| 6753 | .dummy_cycles = { .qpi_read_params = { 4, 4, 6, 8 } }, |
Sergii Dmytruk | c74eac2 | 2022-10-06 18:17:58 +0300 | [diff] [blame] | 6754 | .tested = TEST_OK_PREWB, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6755 | .probe = probe_spi_rdid, |
| 6756 | .probe_timing = TIMING_ZERO, |
| 6757 | .block_erasers = |
| 6758 | { |
| 6759 | { |
| 6760 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6761 | .block_erase = spi_block_erase_20, |
| 6762 | }, { |
| 6763 | .eraseblocks = { {32 * 1024, 256} }, |
| 6764 | .block_erase = spi_block_erase_52, |
| 6765 | }, { |
| 6766 | .eraseblocks = { {64 * 1024, 128} }, |
| 6767 | .block_erase = spi_block_erase_d8, |
| 6768 | }, { |
| 6769 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6770 | .block_erase = spi_block_erase_60, |
| 6771 | }, { |
| 6772 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6773 | .block_erase = spi_block_erase_c7, |
| 6774 | } |
| 6775 | }, |
| 6776 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6777 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6778 | .write = spi_chip_write_256, |
| 6779 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6780 | .voltage = {1695, 1950}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 6781 | .reg_bits = |
| 6782 | { |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 6783 | .qe = {STATUS2, 1, RW}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 6784 | .srp = {STATUS1, 7, RW}, |
| 6785 | .srl = {STATUS2, 0, RW}, |
| 6786 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 6787 | .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */ |
| 6788 | .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */ |
| 6789 | .cmp = {STATUS2, 6, RW}, |
| 6790 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 6791 | .wp_write_cfg = spi_wp_write_cfg, |
| 6792 | .wp_read_cfg = spi_wp_read_cfg, |
| 6793 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 6794 | .decode_range = decode_range_spi25, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6795 | }, |
| 6796 | |
| 6797 | { |
| 6798 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6799 | .name = "GD25LQ80", |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6800 | .bustype = BUS_SPI, |
| 6801 | .manufacture_id = GIGADEVICE_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6802 | .model_id = GIGADEVICE_GD25LQ80, |
| 6803 | .total_size = 1024, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6804 | .page_size = 256, |
| 6805 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 6806 | /* FEATURE_QPI_SRP(4, 4, 6, 8) except for LQ80B, LQ80C */ |
| 6807 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6808 | .tested = TEST_UNTESTED, |
| 6809 | .probe = probe_spi_rdid, |
| 6810 | .probe_timing = TIMING_ZERO, |
| 6811 | .block_erasers = |
| 6812 | { |
| 6813 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6814 | .eraseblocks = { {4 * 1024, 256} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6815 | .block_erase = spi_block_erase_20, |
| 6816 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6817 | .eraseblocks = { {32 * 1024, 32} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6818 | .block_erase = spi_block_erase_52, |
| 6819 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6820 | .eraseblocks = { {64 * 1024, 16} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6821 | .block_erase = spi_block_erase_d8, |
| 6822 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6823 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6824 | .block_erase = spi_block_erase_60, |
| 6825 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6826 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6827 | .block_erase = spi_block_erase_c7, |
| 6828 | } |
| 6829 | }, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 6830 | .reg_bits = |
| 6831 | { |
| 6832 | .qe = {STATUS2, 1, RW}, |
| 6833 | }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6834 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6835 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6836 | .write = spi_chip_write_256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 6837 | .read = spi_chip_read, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6838 | .voltage = {1695, 1950}, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6839 | }, |
| 6840 | |
| 6841 | { |
| 6842 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6843 | .name = "GD25Q10", |
| 6844 | .bustype = BUS_SPI, |
| 6845 | .manufacture_id = GIGADEVICE_ID, |
| 6846 | .model_id = GIGADEVICE_GD25Q10, |
| 6847 | .total_size = 128, |
| 6848 | .page_size = 256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 6849 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_QIO, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6850 | .tested = TEST_UNTESTED, |
| 6851 | .probe = probe_spi_rdid, |
| 6852 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 6853 | .block_erasers = |
| 6854 | { |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6855 | { |
| 6856 | .eraseblocks = { {4 * 1024, 32} }, |
| 6857 | .block_erase = spi_block_erase_20, |
| 6858 | }, { |
| 6859 | .eraseblocks = { {32 * 1024, 4} }, |
| 6860 | .block_erase = spi_block_erase_52, |
| 6861 | }, { |
| 6862 | .eraseblocks = { {64 * 1024, 2} }, |
| 6863 | .block_erase = spi_block_erase_d8, |
| 6864 | }, { |
| 6865 | .eraseblocks = { {128 * 1024, 1} }, |
| 6866 | .block_erase = spi_block_erase_60, |
| 6867 | }, { |
| 6868 | .eraseblocks = { {128 * 1024, 1} }, |
| 6869 | .block_erase = spi_block_erase_c7, |
| 6870 | } |
| 6871 | }, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 6872 | .reg_bits = |
| 6873 | { |
| 6874 | .qe = {STATUS2, 1, RW}, |
| 6875 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6876 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6877 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6878 | .write = spi_chip_write_256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 6879 | .read = spi_chip_read, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6880 | .voltage = {2700, 3600}, |
| 6881 | }, |
| 6882 | |
| 6883 | { |
| 6884 | .vendor = "GigaDevice", |
Alan Green | 4f00912 | 2019-08-26 10:45:18 +1000 | [diff] [blame] | 6885 | .name = "GD25Q127C/GD25Q128C", |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6886 | .bustype = BUS_SPI, |
| 6887 | .manufacture_id = GIGADEVICE_ID, |
| 6888 | .model_id = GIGADEVICE_GD25Q128, |
| 6889 | .total_size = 16384, |
| 6890 | .page_size = 256, |
| 6891 | /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 6892 | /* QPI: only 128C version, w/ SRP */ |
| 6893 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QIO, |
Sergii Dmytruk | c74eac2 | 2022-10-06 18:17:58 +0300 | [diff] [blame] | 6894 | .tested = TEST_OK_PREWB, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6895 | .probe = probe_spi_rdid, |
| 6896 | .probe_timing = TIMING_ZERO, |
| 6897 | .block_erasers = |
| 6898 | { |
| 6899 | { |
| 6900 | .eraseblocks = { {4 * 1024, 4096} }, |
| 6901 | .block_erase = spi_block_erase_20, |
| 6902 | }, { |
| 6903 | .eraseblocks = { {32 * 1024, 512} }, |
| 6904 | .block_erase = spi_block_erase_52, |
| 6905 | }, { |
| 6906 | .eraseblocks = { {64 * 1024, 256} }, |
| 6907 | .block_erase = spi_block_erase_d8, |
| 6908 | }, { |
| 6909 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6910 | .block_erase = spi_block_erase_60, |
| 6911 | }, { |
| 6912 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6913 | .block_erase = spi_block_erase_c7, |
| 6914 | } |
| 6915 | }, |
| 6916 | /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */ |
| 6917 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6918 | .unlock = spi_disable_blockprotect_bp4_srwd, |
| 6919 | .write = spi_chip_write_256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 6920 | .read = spi_chip_read, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6921 | .voltage = {2700, 3600}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 6922 | .reg_bits = |
| 6923 | { |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 6924 | .qe = {STATUS2, 1, RW}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 6925 | .srp = {STATUS1, 7, RW}, |
| 6926 | .srl = {STATUS2, 0, RW}, |
| 6927 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 6928 | .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */ |
| 6929 | .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */ |
| 6930 | .cmp = {STATUS2, 6, RW}, |
| 6931 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 6932 | .wp_write_cfg = spi_wp_write_cfg, |
| 6933 | .wp_read_cfg = spi_wp_read_cfg, |
| 6934 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 6935 | .decode_range = decode_range_spi25, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 6936 | }, |
| 6937 | |
| 6938 | { |
| 6939 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6940 | .name = "GD25Q16(B)", |
| 6941 | .bustype = BUS_SPI, |
| 6942 | .manufacture_id = GIGADEVICE_ID, |
| 6943 | .model_id = GIGADEVICE_GD25Q16, |
| 6944 | .total_size = 2048, |
| 6945 | .page_size = 256, |
| 6946 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */ |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 6947 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6948 | .tested = TEST_OK_PREW, |
| 6949 | .probe = probe_spi_rdid, |
| 6950 | .probe_timing = TIMING_ZERO, |
| 6951 | .block_erasers = |
| 6952 | { |
| 6953 | { |
| 6954 | .eraseblocks = { {4 * 1024, 512} }, |
| 6955 | .block_erase = spi_block_erase_20, |
| 6956 | }, { |
| 6957 | .eraseblocks = { {32 * 1024, 64} }, |
| 6958 | .block_erase = spi_block_erase_52, |
| 6959 | }, { |
| 6960 | .eraseblocks = { {64 * 1024, 32} }, |
| 6961 | .block_erase = spi_block_erase_d8, |
| 6962 | }, { |
| 6963 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6964 | .block_erase = spi_block_erase_60, |
| 6965 | }, { |
| 6966 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6967 | .block_erase = spi_block_erase_c7, |
| 6968 | } |
| 6969 | }, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 6970 | .reg_bits = |
| 6971 | { |
| 6972 | .qe = {STATUS2, 1, RW}, |
| 6973 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6974 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6975 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6976 | .write = spi_chip_write_256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 6977 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6978 | .voltage = {2700, 3600}, |
| 6979 | }, |
| 6980 | |
| 6981 | { |
| 6982 | .vendor = "GigaDevice", |
| 6983 | .name = "GD25Q20(B)", |
| 6984 | .bustype = BUS_SPI, |
| 6985 | .manufacture_id = GIGADEVICE_ID, |
| 6986 | .model_id = GIGADEVICE_GD25Q20, |
| 6987 | .total_size = 256, |
| 6988 | .page_size = 256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 6989 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_QIO, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6990 | .tested = TEST_OK_PREW, |
| 6991 | .probe = probe_spi_rdid, |
| 6992 | .probe_timing = TIMING_ZERO, |
| 6993 | .block_erasers = |
| 6994 | { |
| 6995 | { |
| 6996 | .eraseblocks = { {4 * 1024, 64} }, |
| 6997 | .block_erase = spi_block_erase_20, |
| 6998 | }, { |
| 6999 | .eraseblocks = { {32 * 1024, 8} }, |
| 7000 | .block_erase = spi_block_erase_52, |
| 7001 | }, { |
| 7002 | .eraseblocks = { {64 * 1024, 4} }, |
| 7003 | .block_erase = spi_block_erase_d8, |
| 7004 | }, { |
| 7005 | .eraseblocks = { {256 * 1024, 1} }, |
| 7006 | .block_erase = spi_block_erase_60, |
| 7007 | }, { |
| 7008 | .eraseblocks = { {256 * 1024, 1} }, |
| 7009 | .block_erase = spi_block_erase_c7, |
| 7010 | } |
| 7011 | }, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 7012 | .reg_bits = { |
| 7013 | .qe = {STATUS2, 1, RW}, |
| 7014 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7015 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7016 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7017 | .write = spi_chip_write_256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 7018 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7019 | .voltage = {2700, 3600}, |
| 7020 | }, |
| 7021 | |
| 7022 | { |
| 7023 | .vendor = "GigaDevice", |
Nikolai Artemiev | 3ca0af0 | 2022-06-17 15:10:18 +1000 | [diff] [blame] | 7024 | .name = "GD25Q256D/GD25Q256E", |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 7025 | .bustype = BUS_SPI, |
| 7026 | .manufacture_id = GIGADEVICE_ID, |
| 7027 | .model_id = GIGADEVICE_GD25Q256D, |
| 7028 | .total_size = 32768, |
| 7029 | .page_size = 256, |
Nikolai Artemiev | b931e7a | 2022-12-05 13:06:14 +1100 | [diff] [blame] | 7030 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 7031 | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3 | |
| 7032 | FEATURE_QIO, |
Sergii Dmytruk | c74eac2 | 2022-10-06 18:17:58 +0300 | [diff] [blame] | 7033 | .tested = TEST_OK_PREWB, |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 7034 | .probe = probe_spi_rdid, |
| 7035 | .probe_timing = TIMING_ZERO, |
| 7036 | .block_erasers = |
| 7037 | { |
| 7038 | { |
| 7039 | .eraseblocks = { {4 * 1024, 8192} }, |
Nico Huber | 5374dc3 | 2019-10-04 16:16:15 +0200 | [diff] [blame] | 7040 | .block_erase = spi_block_erase_21, |
| 7041 | }, { |
| 7042 | .eraseblocks = { {4 * 1024, 8192} }, |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 7043 | .block_erase = spi_block_erase_20, |
| 7044 | }, { |
| 7045 | .eraseblocks = { {32 * 1024, 1024} }, |
Nico Huber | 5374dc3 | 2019-10-04 16:16:15 +0200 | [diff] [blame] | 7046 | .block_erase = spi_block_erase_5c, |
| 7047 | }, { |
| 7048 | .eraseblocks = { {32 * 1024, 1024} }, |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 7049 | .block_erase = spi_block_erase_52, |
| 7050 | }, { |
| 7051 | .eraseblocks = { {64 * 1024, 512} }, |
Nico Huber | 5374dc3 | 2019-10-04 16:16:15 +0200 | [diff] [blame] | 7052 | .block_erase = spi_block_erase_dc, |
| 7053 | }, { |
| 7054 | .eraseblocks = { {64 * 1024, 512} }, |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 7055 | .block_erase = spi_block_erase_d8, |
| 7056 | }, { |
| 7057 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 7058 | .block_erase = spi_block_erase_60, |
| 7059 | }, { |
| 7060 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 7061 | .block_erase = spi_block_erase_c7, |
| 7062 | } |
| 7063 | }, |
| 7064 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 7065 | .unlock = spi_disable_blockprotect, |
| 7066 | .write = spi_chip_write_256, |
| 7067 | .read = spi_chip_read, |
| 7068 | .voltage = {2700, 3600}, |
Nikolai Artemiev | c6c3f28 | 2021-10-20 23:34:15 +1100 | [diff] [blame] | 7069 | .reg_bits = |
| 7070 | { |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 7071 | .qe = {STATUS2, 1, RW}, |
Nikolai Artemiev | c6c3f28 | 2021-10-20 23:34:15 +1100 | [diff] [blame] | 7072 | .srp = {STATUS1, 7, RW}, |
| 7073 | .srl = {STATUS2, 6, RW}, |
| 7074 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}}, |
| 7075 | .tb = {STATUS1, 6, RW}, |
| 7076 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 7077 | .wp_write_cfg = spi_wp_write_cfg, |
| 7078 | .wp_read_cfg = spi_wp_read_cfg, |
| 7079 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nikolai Artemiev | c9feb1b | 2021-10-21 01:35:13 +1100 | [diff] [blame] | 7080 | .decode_range = decode_range_spi25, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 7081 | .prepare_access = spi_prepare_4ba, |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 7082 | }, |
| 7083 | |
| 7084 | { |
| 7085 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7086 | .name = "GD25Q32(B)", |
| 7087 | .bustype = BUS_SPI, |
| 7088 | .manufacture_id = GIGADEVICE_ID, |
| 7089 | .model_id = GIGADEVICE_GD25Q32, |
| 7090 | .total_size = 4096, |
| 7091 | .page_size = 256, |
| 7092 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 7093 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QIO, |
Sergii Dmytruk | c74eac2 | 2022-10-06 18:17:58 +0300 | [diff] [blame] | 7094 | .tested = TEST_OK_PREWB, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7095 | .probe = probe_spi_rdid, |
| 7096 | .probe_timing = TIMING_ZERO, |
| 7097 | .block_erasers = |
| 7098 | { |
| 7099 | { |
| 7100 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7101 | .block_erase = spi_block_erase_20, |
| 7102 | }, { |
| 7103 | .eraseblocks = { {32 * 1024, 128} }, |
| 7104 | .block_erase = spi_block_erase_52, |
| 7105 | }, { |
| 7106 | .eraseblocks = { {64 * 1024, 64} }, |
| 7107 | .block_erase = spi_block_erase_d8, |
| 7108 | }, { |
| 7109 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7110 | .block_erase = spi_block_erase_60, |
| 7111 | }, { |
| 7112 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7113 | .block_erase = spi_block_erase_c7, |
| 7114 | } |
| 7115 | }, |
| 7116 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7117 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7118 | .write = spi_chip_write_256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 7119 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7120 | .voltage = {2700, 3600}, |
Nikolai Artemiev | c6c3f28 | 2021-10-20 23:34:15 +1100 | [diff] [blame] | 7121 | .reg_bits = |
| 7122 | { |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 7123 | .qe = {STATUS2, 1, RW}, |
Nikolai Artemiev | c6c3f28 | 2021-10-20 23:34:15 +1100 | [diff] [blame] | 7124 | .srp = {STATUS1, 7, RW}, |
| 7125 | .srl = {STATUS2, 0, RW}, |
| 7126 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 7127 | .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */ |
| 7128 | .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */ |
| 7129 | .cmp = {STATUS2, 6, RW}, |
| 7130 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 7131 | .wp_write_cfg = spi_wp_write_cfg, |
| 7132 | .wp_read_cfg = spi_wp_read_cfg, |
| 7133 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nikolai Artemiev | c9feb1b | 2021-10-21 01:35:13 +1100 | [diff] [blame] | 7134 | .decode_range = decode_range_spi25, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7135 | }, |
| 7136 | |
| 7137 | { |
| 7138 | .vendor = "GigaDevice", |
| 7139 | .name = "GD25Q40(B)", |
| 7140 | .bustype = BUS_SPI, |
| 7141 | .manufacture_id = GIGADEVICE_ID, |
| 7142 | .model_id = GIGADEVICE_GD25Q40, |
| 7143 | .total_size = 512, |
| 7144 | .page_size = 256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 7145 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_QIO, |
Simon Buhrow | 551664c | 2022-03-09 16:09:08 +0100 | [diff] [blame] | 7146 | .tested = TEST_OK_PREW, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7147 | .probe = probe_spi_rdid, |
| 7148 | .probe_timing = TIMING_ZERO, |
| 7149 | .block_erasers = |
| 7150 | { |
| 7151 | { |
| 7152 | .eraseblocks = { {4 * 1024, 128} }, |
| 7153 | .block_erase = spi_block_erase_20, |
| 7154 | }, { |
| 7155 | .eraseblocks = { {32 * 1024, 16} }, |
| 7156 | .block_erase = spi_block_erase_52, |
| 7157 | }, { |
| 7158 | .eraseblocks = { {64 * 1024, 8} }, |
| 7159 | .block_erase = spi_block_erase_d8, |
| 7160 | }, { |
| 7161 | .eraseblocks = { {512 * 1024, 1} }, |
| 7162 | .block_erase = spi_block_erase_60, |
| 7163 | }, { |
| 7164 | .eraseblocks = { {512 * 1024, 1} }, |
| 7165 | .block_erase = spi_block_erase_c7, |
| 7166 | } |
| 7167 | }, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 7168 | .reg_bits = |
| 7169 | { |
| 7170 | .qe = {STATUS2, 1, RW}, |
| 7171 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7172 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7173 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7174 | .write = spi_chip_write_256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 7175 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7176 | .voltage = {2700, 3600}, |
| 7177 | }, |
| 7178 | |
| 7179 | { |
| 7180 | .vendor = "GigaDevice", |
| 7181 | .name = "GD25Q512", |
| 7182 | .bustype = BUS_SPI, |
| 7183 | .manufacture_id = GIGADEVICE_ID, |
| 7184 | .model_id = GIGADEVICE_GD25Q512, |
| 7185 | .total_size = 64, |
| 7186 | .page_size = 256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 7187 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_QIO, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7188 | .tested = TEST_OK_PREW, |
| 7189 | .probe = probe_spi_rdid, |
| 7190 | .probe_timing = TIMING_ZERO, |
| 7191 | .block_erasers = |
| 7192 | { |
| 7193 | { |
| 7194 | .eraseblocks = { {4 * 1024, 16} }, |
| 7195 | .block_erase = spi_block_erase_20, |
| 7196 | }, { |
| 7197 | .eraseblocks = { {32 * 1024, 2} }, |
| 7198 | .block_erase = spi_block_erase_52, |
| 7199 | }, { |
| 7200 | .eraseblocks = { {64 * 1024, 1} }, |
| 7201 | .block_erase = spi_block_erase_60, |
| 7202 | }, { |
| 7203 | .eraseblocks = { {64 * 1024, 1} }, |
| 7204 | .block_erase = spi_block_erase_c7, |
| 7205 | } |
| 7206 | }, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 7207 | .reg_bits = |
| 7208 | { |
| 7209 | .qe = {STATUS2, 1, RW}, |
| 7210 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7211 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7212 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7213 | .write = spi_chip_write_256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 7214 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7215 | .voltage = {2700, 3600}, |
| 7216 | }, |
| 7217 | |
| 7218 | { |
| 7219 | .vendor = "GigaDevice", |
| 7220 | .name = "GD25Q64(B)", |
| 7221 | .bustype = BUS_SPI, |
| 7222 | .manufacture_id = GIGADEVICE_ID, |
| 7223 | .model_id = GIGADEVICE_GD25Q64, |
| 7224 | .total_size = 8192, |
| 7225 | .page_size = 256, |
| 7226 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 7227 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QIO, |
Sergii Dmytruk | c74eac2 | 2022-10-06 18:17:58 +0300 | [diff] [blame] | 7228 | .tested = TEST_OK_PREWB, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7229 | .probe = probe_spi_rdid, |
| 7230 | .probe_timing = TIMING_ZERO, |
| 7231 | .block_erasers = |
| 7232 | { |
| 7233 | { |
| 7234 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7235 | .block_erase = spi_block_erase_20, |
| 7236 | }, { |
| 7237 | .eraseblocks = { {32 * 1024, 256} }, |
| 7238 | .block_erase = spi_block_erase_52, |
| 7239 | }, { |
| 7240 | .eraseblocks = { {64 * 1024, 128} }, |
| 7241 | .block_erase = spi_block_erase_d8, |
| 7242 | }, { |
| 7243 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7244 | .block_erase = spi_block_erase_60, |
| 7245 | }, { |
| 7246 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7247 | .block_erase = spi_block_erase_c7, |
| 7248 | } |
| 7249 | }, |
| 7250 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7251 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7252 | .write = spi_chip_write_256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 7253 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7254 | .voltage = {2700, 3600}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 7255 | .reg_bits = |
| 7256 | { |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 7257 | .qe = {STATUS2, 1, RW}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 7258 | .srp = {STATUS1, 7, RW}, |
| 7259 | .srl = {STATUS2, 0, RW}, |
| 7260 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 7261 | .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */ |
| 7262 | .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */ |
| 7263 | .cmp = {STATUS2, 6, RW}, |
| 7264 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 7265 | .wp_write_cfg = spi_wp_write_cfg, |
| 7266 | .wp_read_cfg = spi_wp_read_cfg, |
| 7267 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 7268 | .decode_range = decode_range_spi25, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7269 | }, |
| 7270 | |
| 7271 | { |
| 7272 | .vendor = "GigaDevice", |
| 7273 | .name = "GD25Q80(B)", |
| 7274 | .bustype = BUS_SPI, |
| 7275 | .manufacture_id = GIGADEVICE_ID, |
| 7276 | .model_id = GIGADEVICE_GD25Q80, |
| 7277 | .total_size = 1024, |
| 7278 | .page_size = 256, |
| 7279 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */ |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 7280 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7281 | .tested = TEST_OK_PREW, |
| 7282 | .probe = probe_spi_rdid, |
| 7283 | .probe_timing = TIMING_ZERO, |
| 7284 | .block_erasers = |
| 7285 | { |
| 7286 | { |
| 7287 | .eraseblocks = { {4 * 1024, 256} }, |
| 7288 | .block_erase = spi_block_erase_20, |
| 7289 | }, { |
| 7290 | .eraseblocks = { {32 * 1024, 32} }, |
| 7291 | .block_erase = spi_block_erase_52, |
| 7292 | }, { |
| 7293 | .eraseblocks = { {64 * 1024, 16} }, |
| 7294 | .block_erase = spi_block_erase_d8, |
| 7295 | }, { |
| 7296 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7297 | .block_erase = spi_block_erase_60, |
| 7298 | }, { |
| 7299 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7300 | .block_erase = spi_block_erase_c7, |
| 7301 | } |
| 7302 | }, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 7303 | .reg_bits = |
| 7304 | { |
| 7305 | .qe = {STATUS2, 1, RW}, |
| 7306 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7307 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7308 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7309 | .write = spi_chip_write_256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 7310 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7311 | .voltage = {2700, 3600}, |
| 7312 | }, |
| 7313 | |
| 7314 | { |
| 7315 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 7316 | .name = "GD25T80", |
| 7317 | .bustype = BUS_SPI, |
| 7318 | .manufacture_id = GIGADEVICE_ID, |
| 7319 | .model_id = GIGADEVICE_GD25T80, |
| 7320 | .total_size = 1024, |
| 7321 | .page_size = 256, |
| 7322 | /* OTP: 256B total; enter 0x3A */ |
| 7323 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7324 | .tested = TEST_UNTESTED, |
| 7325 | .probe = probe_spi_rdid, |
| 7326 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 7327 | .block_erasers = |
| 7328 | { |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 7329 | { |
| 7330 | .eraseblocks = { {4 * 1024, 256} }, |
| 7331 | .block_erase = spi_block_erase_20, |
| 7332 | }, { |
| 7333 | .eraseblocks = { {64 * 1024, 16} }, |
| 7334 | .block_erase = spi_block_erase_52, |
| 7335 | }, { |
| 7336 | .eraseblocks = { {64 * 1024, 16} }, |
| 7337 | .block_erase = spi_block_erase_d8, |
| 7338 | }, { |
| 7339 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7340 | .block_erase = spi_block_erase_60, |
| 7341 | }, { |
| 7342 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7343 | .block_erase = spi_block_erase_c7, |
| 7344 | } |
| 7345 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 7346 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 7347 | .unlock = spi_disable_blockprotect, |
| 7348 | .write = spi_chip_write_256, |
| 7349 | .read = spi_chip_read, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 7350 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 7351 | }, |
| 7352 | |
| 7353 | { |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 7354 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7355 | .name = "GD25VQ16C", |
| 7356 | .bustype = BUS_SPI, |
| 7357 | .manufacture_id = GIGADEVICE_ID, |
| 7358 | .model_id = GIGADEVICE_GD25VQ16C, |
| 7359 | .total_size = 2 * 1024, |
| 7360 | .page_size = 256, |
| 7361 | /* Supports SFDP */ |
| 7362 | /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */ |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 7363 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7364 | .tested = TEST_UNTESTED, |
| 7365 | .probe = probe_spi_rdid, |
| 7366 | .probe_timing = TIMING_ZERO, |
| 7367 | .block_erasers = |
| 7368 | { |
| 7369 | { |
| 7370 | .eraseblocks = { { 4 * 1024, 512} }, |
| 7371 | .block_erase = spi_block_erase_20, |
| 7372 | }, { |
| 7373 | .eraseblocks = { { 32 * 1024, 64} }, |
| 7374 | .block_erase = spi_block_erase_52, |
| 7375 | }, { |
| 7376 | .eraseblocks = { { 64 * 1024, 32} }, |
| 7377 | .block_erase = spi_block_erase_d8, |
| 7378 | }, { |
| 7379 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7380 | .block_erase = spi_block_erase_60, |
| 7381 | }, { |
| 7382 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7383 | .block_erase = spi_block_erase_c7, |
| 7384 | } |
| 7385 | }, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 7386 | .reg_bits = |
| 7387 | { |
| 7388 | .qe = {STATUS2, 1, RW}, |
| 7389 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7390 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7391 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7392 | .write = spi_chip_write_256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 7393 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7394 | .voltage = {2300, 3600}, |
| 7395 | }, |
| 7396 | |
| 7397 | { |
| 7398 | .vendor = "GigaDevice", |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7399 | .name = "GD25VQ21B", |
| 7400 | .bustype = BUS_SPI, |
| 7401 | .manufacture_id = GIGADEVICE_ID, |
| 7402 | .model_id = GIGADEVICE_GD25VQ21B, |
| 7403 | .total_size = 256, |
| 7404 | .page_size = 256, |
| 7405 | /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */ |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 7406 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | |
| 7407 | FEATURE_OTP | FEATURE_QIO, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7408 | .tested = TEST_UNTESTED, |
| 7409 | .probe = probe_spi_rdid, |
| 7410 | .probe_timing = TIMING_ZERO, |
| 7411 | .block_erasers = |
| 7412 | { |
| 7413 | { |
| 7414 | .eraseblocks = { { 4 * 1024, 64} }, |
| 7415 | .block_erase = spi_block_erase_20, |
| 7416 | }, { |
| 7417 | .eraseblocks = { { 32 * 1024, 8} }, |
| 7418 | .block_erase = spi_block_erase_52, |
| 7419 | }, { |
| 7420 | .eraseblocks = { { 64 * 1024, 4} }, |
| 7421 | .block_erase = spi_block_erase_d8, |
| 7422 | }, { |
| 7423 | .eraseblocks = { {256 * 1024, 1} }, |
| 7424 | .block_erase = spi_block_erase_60, |
| 7425 | }, { |
| 7426 | .eraseblocks = { {256 * 1024, 1} }, |
| 7427 | .block_erase = spi_block_erase_c7, |
| 7428 | } |
| 7429 | }, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 7430 | .reg_bits = |
| 7431 | { |
| 7432 | .qe = {STATUS2, 1, RW}, |
| 7433 | }, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7434 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7435 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7436 | .write = spi_chip_write_256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 7437 | .read = spi_chip_read, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7438 | .voltage = {2300, 3600}, |
| 7439 | }, |
| 7440 | |
| 7441 | { |
| 7442 | .vendor = "GigaDevice", |
| 7443 | .name = "GD25VQ40C", |
| 7444 | .bustype = BUS_SPI, |
| 7445 | .manufacture_id = GIGADEVICE_ID, |
| 7446 | .model_id = GIGADEVICE_GD25VQ41B, |
| 7447 | .total_size = 512, |
| 7448 | .page_size = 256, |
| 7449 | /* Supports SFDP */ |
| 7450 | /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */ |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 7451 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7452 | .tested = TEST_UNTESTED, |
| 7453 | .probe = probe_spi_rdid, |
| 7454 | .probe_timing = TIMING_ZERO, |
| 7455 | .block_erasers = |
| 7456 | { |
| 7457 | { |
| 7458 | .eraseblocks = { { 4 * 1024, 128} }, |
| 7459 | .block_erase = spi_block_erase_20, |
| 7460 | }, { |
| 7461 | .eraseblocks = { { 32 * 1024, 16} }, |
| 7462 | .block_erase = spi_block_erase_52, |
| 7463 | }, { |
| 7464 | .eraseblocks = { { 64 * 1024, 8} }, |
| 7465 | .block_erase = spi_block_erase_d8, |
| 7466 | }, { |
| 7467 | .eraseblocks = { {512 * 1024, 1} }, |
| 7468 | .block_erase = spi_block_erase_60, |
| 7469 | }, { |
| 7470 | .eraseblocks = { {512 * 1024, 1} }, |
| 7471 | .block_erase = spi_block_erase_c7, |
| 7472 | } |
| 7473 | }, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 7474 | .reg_bits = |
| 7475 | { |
| 7476 | .qe = {STATUS2, 1, RW}, |
| 7477 | }, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7478 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7479 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7480 | .write = spi_chip_write_256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 7481 | .read = spi_chip_read, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7482 | .voltage = {2300, 3600}, |
| 7483 | }, |
| 7484 | |
| 7485 | { |
| 7486 | .vendor = "GigaDevice", |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 7487 | .name = "GD25VQ41B", |
| 7488 | .bustype = BUS_SPI, |
| 7489 | .manufacture_id = GIGADEVICE_ID, |
| 7490 | .model_id = GIGADEVICE_GD25VQ41B, |
| 7491 | .total_size = 512, |
| 7492 | .page_size = 256, |
| 7493 | /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */ |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 7494 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | |
| 7495 | FEATURE_OTP | FEATURE_QIO, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 7496 | .tested = TEST_OK_PREW, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 7497 | .probe = probe_spi_rdid, |
| 7498 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 7499 | .block_erasers = |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 7500 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 7501 | { |
| 7502 | .eraseblocks = { { 4 * 1024, 128} }, |
| 7503 | .block_erase = spi_block_erase_20, |
| 7504 | }, { |
| 7505 | .eraseblocks = { { 32 * 1024, 16} }, |
| 7506 | .block_erase = spi_block_erase_52, |
| 7507 | }, { |
| 7508 | .eraseblocks = { { 64 * 1024, 8} }, |
| 7509 | .block_erase = spi_block_erase_d8, |
| 7510 | }, { |
| 7511 | .eraseblocks = { {512 * 1024, 1} }, |
| 7512 | .block_erase = spi_block_erase_60, |
| 7513 | }, { |
| 7514 | .eraseblocks = { {512 * 1024, 1} }, |
| 7515 | .block_erase = spi_block_erase_c7, |
| 7516 | } |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 7517 | }, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 7518 | .reg_bits = |
| 7519 | { |
| 7520 | .qe = {STATUS2, 1, RW}, |
| 7521 | }, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 7522 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7523 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7524 | .write = spi_chip_write_256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 7525 | .read = spi_chip_read, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7526 | .voltage = {2300, 3600}, |
| 7527 | }, |
| 7528 | |
| 7529 | { |
| 7530 | .vendor = "GigaDevice", |
| 7531 | .name = "GD25VQ80C", |
| 7532 | .bustype = BUS_SPI, |
| 7533 | .manufacture_id = GIGADEVICE_ID, |
| 7534 | .model_id = GIGADEVICE_GD25VQ80C, |
| 7535 | .total_size = 1024, |
| 7536 | .page_size = 256, |
| 7537 | /* Supports SFDP */ |
| 7538 | /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */ |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 7539 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7540 | .tested = TEST_UNTESTED, |
| 7541 | .probe = probe_spi_rdid, |
| 7542 | .probe_timing = TIMING_ZERO, |
| 7543 | .block_erasers = |
| 7544 | { |
| 7545 | { |
| 7546 | .eraseblocks = { { 4 * 1024, 256} }, |
| 7547 | .block_erase = spi_block_erase_20, |
| 7548 | }, { |
| 7549 | .eraseblocks = { { 32 * 1024, 32} }, |
| 7550 | .block_erase = spi_block_erase_52, |
| 7551 | }, { |
| 7552 | .eraseblocks = { { 64 * 1024, 16} }, |
| 7553 | .block_erase = spi_block_erase_d8, |
| 7554 | }, { |
| 7555 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7556 | .block_erase = spi_block_erase_60, |
| 7557 | }, { |
| 7558 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7559 | .block_erase = spi_block_erase_c7, |
| 7560 | } |
| 7561 | }, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 7562 | .reg_bits = |
| 7563 | { |
| 7564 | .qe = {STATUS2, 1, RW}, |
| 7565 | }, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7566 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7567 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7568 | .write = spi_chip_write_256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 7569 | .read = spi_chip_read, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7570 | .voltage = {2300, 3600}, |
| 7571 | }, |
| 7572 | |
| 7573 | { |
Dino Li | 3214f58 | 2020-03-25 17:39:53 +0800 | [diff] [blame] | 7574 | .vendor = "GigaDevice", |
| 7575 | .name = "GD25WQ80E", |
| 7576 | .bustype = BUS_SPI, |
| 7577 | .manufacture_id = GIGADEVICE_ID, |
| 7578 | .model_id = GIGADEVICE_GD25WQ80E, |
| 7579 | .total_size = 1024, |
| 7580 | .page_size = 256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 7581 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_QIO, |
Dino Li | 3214f58 | 2020-03-25 17:39:53 +0800 | [diff] [blame] | 7582 | .tested = TEST_OK_PREW, |
| 7583 | .probe = probe_spi_rdid, |
| 7584 | .probe_timing = TIMING_ZERO, |
| 7585 | .block_erasers = |
| 7586 | { |
| 7587 | { |
| 7588 | .eraseblocks = { {4 * 1024, 256} }, |
| 7589 | .block_erase = spi_block_erase_20, |
| 7590 | }, { |
| 7591 | .eraseblocks = { {32 * 1024, 32} }, |
| 7592 | .block_erase = spi_block_erase_52, |
| 7593 | }, { |
| 7594 | .eraseblocks = { {64 * 1024, 16} }, |
| 7595 | .block_erase = spi_block_erase_d8, |
| 7596 | }, { |
| 7597 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 7598 | .block_erase = spi_block_erase_60, |
| 7599 | }, { |
| 7600 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 7601 | .block_erase = spi_block_erase_c7, |
| 7602 | } |
| 7603 | }, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame^] | 7604 | .reg_bits = |
| 7605 | { |
| 7606 | .qe = {STATUS2, 1, RW}, |
| 7607 | }, |
Dino Li | 3214f58 | 2020-03-25 17:39:53 +0800 | [diff] [blame] | 7608 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7609 | .unlock = spi_disable_blockprotect_bp4_srwd, |
| 7610 | .write = spi_chip_write_256, |
| 7611 | .read = spi_chip_read, |
| 7612 | .voltage = {1650, 3600}, |
| 7613 | }, |
| 7614 | |
| 7615 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7616 | .vendor = "Hyundai", |
| 7617 | .name = "HY29F002B", |
| 7618 | .bustype = BUS_PARALLEL, |
| 7619 | .manufacture_id = HYUNDAI_ID, |
| 7620 | .model_id = HYUNDAI_HY29F002B, |
| 7621 | .total_size = 256, |
| 7622 | .page_size = 256 * 1024, |
| 7623 | .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */ |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7624 | .tested = TEST_UNTESTED, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7625 | .probe = probe_jedec, |
| 7626 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7627 | .block_erasers = |
| 7628 | { |
| 7629 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7630 | .eraseblocks = { |
| 7631 | {16 * 1024, 1}, |
| 7632 | {8 * 1024, 2}, |
| 7633 | {32 * 1024, 1}, |
| 7634 | {64 * 1024, 3}, |
| 7635 | }, |
| 7636 | .block_erase = erase_sector_jedec, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7637 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7638 | .eraseblocks = { {256 * 1024, 1} }, |
| 7639 | .block_erase = erase_chip_block_jedec, |
| 7640 | }, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7641 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7642 | .write = write_jedec_1, |
| 7643 | .read = read_memmapped, |
| 7644 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 7645 | .prepare_access = prepare_memory_access, |
| 7646 | .finish_access = finish_memory_access, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 7647 | }, |
| 7648 | |
| 7649 | { |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 7650 | .vendor = "Hyundai", |
| 7651 | .name = "HY29F002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7652 | .bustype = BUS_PARALLEL, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 7653 | .manufacture_id = HYUNDAI_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7654 | .model_id = HYUNDAI_HY29F002T, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 7655 | .total_size = 256, |
| 7656 | .page_size = 256 * 1024, |
| 7657 | .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] | 7658 | .tested = TEST_OK_PRE, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 7659 | .probe = probe_jedec, |
| 7660 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7661 | .block_erasers = |
| 7662 | { |
| 7663 | { |
| 7664 | .eraseblocks = { |
| 7665 | {64 * 1024, 3}, |
| 7666 | {32 * 1024, 1}, |
| 7667 | {8 * 1024, 2}, |
| 7668 | {16 * 1024, 1}, |
| 7669 | }, |
| 7670 | .block_erase = erase_sector_jedec, |
| 7671 | }, { |
| 7672 | .eraseblocks = { {256 * 1024, 1} }, |
| 7673 | .block_erase = erase_chip_block_jedec, |
| 7674 | }, |
| 7675 | }, |
| 7676 | .write = write_jedec_1, |
| 7677 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 7678 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 7679 | .prepare_access = prepare_memory_access, |
| 7680 | .finish_access = finish_memory_access, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 7681 | }, |
| 7682 | |
| 7683 | { |
| 7684 | .vendor = "Hyundai", |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 7685 | .name = "HY29F040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7686 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 7687 | .manufacture_id = HYUNDAI_ID, |
| 7688 | .model_id = HYUNDAI_HY29F040A, |
| 7689 | .total_size = 512, |
| 7690 | .page_size = 64 * 1024, |
| 7691 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 7692 | .tested = TEST_UNTESTED, |
| 7693 | .probe = probe_jedec, |
| 7694 | .probe_timing = TIMING_ZERO, |
| 7695 | .block_erasers = |
| 7696 | { |
| 7697 | { |
| 7698 | .eraseblocks = { {64 * 1024, 8} }, |
| 7699 | .block_erase = erase_sector_jedec, |
| 7700 | }, { |
| 7701 | .eraseblocks = { {512 * 1024, 1} }, |
| 7702 | .block_erase = erase_chip_block_jedec, |
| 7703 | }, |
| 7704 | }, |
| 7705 | .write = write_jedec_1, |
| 7706 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 7707 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 7708 | .prepare_access = prepare_memory_access, |
| 7709 | .finish_access = finish_memory_access, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 7710 | }, |
| 7711 | |
| 7712 | { |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 7713 | .vendor = "ISSI", |
Angel Pons | 2ef47f3 | 2018-09-30 16:47:30 +0200 | [diff] [blame] | 7714 | .name = "IS25LP064", |
| 7715 | .bustype = BUS_SPI, |
| 7716 | .manufacture_id = ISSI_ID_SPI, |
| 7717 | .model_id = ISSI_IS25LP064, |
| 7718 | .total_size = 8192, |
| 7719 | .page_size = 256, |
| 7720 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 7721 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Simon Buhrow | 9bf829d | 2021-10-20 17:09:09 +0200 | [diff] [blame] | 7722 | .tested = TEST_OK_PREW, |
Angel Pons | 2ef47f3 | 2018-09-30 16:47:30 +0200 | [diff] [blame] | 7723 | .probe = probe_spi_rdid, |
| 7724 | .probe_timing = TIMING_ZERO, |
| 7725 | .block_erasers = |
| 7726 | { |
| 7727 | { |
| 7728 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7729 | .block_erase = spi_block_erase_20, |
| 7730 | }, { |
| 7731 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7732 | .block_erase = spi_block_erase_d7, |
| 7733 | }, { |
| 7734 | .eraseblocks = { {32 * 1024, 256} }, |
| 7735 | .block_erase = spi_block_erase_52, |
| 7736 | }, { |
| 7737 | .eraseblocks = { {64 * 1024, 128} }, |
| 7738 | .block_erase = spi_block_erase_d8, |
| 7739 | }, { |
| 7740 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7741 | .block_erase = spi_block_erase_60, |
| 7742 | }, { |
| 7743 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7744 | .block_erase = spi_block_erase_c7, |
| 7745 | } |
| 7746 | }, |
| 7747 | .unlock = spi_disable_blockprotect, |
| 7748 | .write = spi_chip_write_256, |
| 7749 | .read = spi_chip_read, |
| 7750 | .voltage = {2300, 3600}, |
| 7751 | }, |
| 7752 | |
| 7753 | { |
| 7754 | .vendor = "ISSI", |
David Hendricks | 3083ed9 | 2017-05-02 13:25:56 -0700 | [diff] [blame] | 7755 | .name = "IS25LP128", |
| 7756 | .bustype = BUS_SPI, |
| 7757 | .manufacture_id = ISSI_ID_SPI, |
| 7758 | .model_id = ISSI_IS25LP128, |
| 7759 | .total_size = 16384, |
| 7760 | .page_size = 256, |
| 7761 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 7762 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7763 | .tested = TEST_OK_PREW, |
| 7764 | .probe = probe_spi_rdid, |
| 7765 | .probe_timing = TIMING_ZERO, |
| 7766 | .block_erasers = |
| 7767 | { |
| 7768 | { |
| 7769 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7770 | .block_erase = spi_block_erase_20, |
| 7771 | }, { |
| 7772 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7773 | .block_erase = spi_block_erase_d7, |
| 7774 | }, { |
| 7775 | .eraseblocks = { {32 * 1024, 512} }, |
| 7776 | .block_erase = spi_block_erase_52, |
| 7777 | }, { |
| 7778 | .eraseblocks = { {64 * 1024, 256} }, |
| 7779 | .block_erase = spi_block_erase_d8, |
| 7780 | }, { |
| 7781 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7782 | .block_erase = spi_block_erase_60, |
| 7783 | }, { |
| 7784 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7785 | .block_erase = spi_block_erase_c7, |
| 7786 | } |
| 7787 | }, |
| 7788 | .unlock = spi_disable_blockprotect, |
| 7789 | .write = spi_chip_write_256, |
| 7790 | .read = spi_chip_read, |
| 7791 | .voltage = {2300, 3600}, |
| 7792 | }, |
| 7793 | |
| 7794 | { |
| 7795 | .vendor = "ISSI", |
David Hendricks | 61818dc | 2018-10-28 01:02:21 +0000 | [diff] [blame] | 7796 | .name = "IS25LP256", |
| 7797 | .bustype = BUS_SPI, |
| 7798 | .manufacture_id = ISSI_ID_SPI, |
| 7799 | .model_id = ISSI_IS25LP256, |
| 7800 | .total_size = 32768, |
| 7801 | .page_size = 256, |
| 7802 | /* supports SFDP */ |
| 7803 | /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */ |
Nico Huber | ad55d5a | 2022-06-20 19:32:16 +0200 | [diff] [blame] | 7804 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 7805 | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716, |
David Hendricks | 61818dc | 2018-10-28 01:02:21 +0000 | [diff] [blame] | 7806 | .tested = TEST_OK_PREW, |
| 7807 | .probe = probe_spi_rdid, |
| 7808 | .probe_timing = TIMING_ZERO, |
| 7809 | .block_erasers = |
| 7810 | { |
| 7811 | { |
| 7812 | .eraseblocks = { {4 * 1024, 8192} }, |
| 7813 | .block_erase = spi_block_erase_21, |
| 7814 | }, { |
| 7815 | .eraseblocks = { {4 * 1024, 8192} }, |
| 7816 | .block_erase = spi_block_erase_20, |
| 7817 | /* could also use spi_block_erase_d7 */ |
| 7818 | }, { |
| 7819 | .eraseblocks = { {32 * 1024, 1024} }, |
| 7820 | .block_erase = spi_block_erase_5c, |
| 7821 | }, { |
| 7822 | .eraseblocks = { {32 * 1024, 1024} }, |
| 7823 | .block_erase = spi_block_erase_52, |
| 7824 | }, { |
| 7825 | .eraseblocks = { {64 * 1024, 512} }, |
| 7826 | .block_erase = spi_block_erase_dc, |
| 7827 | }, { |
| 7828 | .eraseblocks = { {64 * 1024, 512} }, |
| 7829 | .block_erase = spi_block_erase_d8, |
| 7830 | }, { |
| 7831 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 7832 | .block_erase = spi_block_erase_60, |
| 7833 | }, { |
| 7834 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 7835 | .block_erase = spi_block_erase_c7, |
| 7836 | } |
| 7837 | }, |
| 7838 | .unlock = spi_disable_blockprotect, |
| 7839 | .write = spi_chip_write_256, |
| 7840 | .read = spi_chip_read, |
| 7841 | .voltage = {2300, 3600}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 7842 | .prepare_access = spi_prepare_4ba, |
David Hendricks | 61818dc | 2018-10-28 01:02:21 +0000 | [diff] [blame] | 7843 | }, |
| 7844 | |
| 7845 | { |
| 7846 | .vendor = "ISSI", |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 7847 | .name = "IS25WP032", |
| 7848 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 7849 | .manufacture_id = ISSI_ID_SPI, |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 7850 | .model_id = ISSI_IS25WP032, |
| 7851 | .total_size = 4096, |
| 7852 | .page_size = 256, |
| 7853 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 7854 | /* QPI: enter/exit 35/f5, SRP with 4 bits directly specifying |
| 7855 | dummy cycles; non-volatile read parameters, so disable for now */ |
| 7856 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 7857 | .tested = TEST_UNTESTED, |
| 7858 | .probe = probe_spi_rdid, |
| 7859 | .probe_timing = TIMING_ZERO, |
| 7860 | .block_erasers = |
| 7861 | { |
| 7862 | { |
| 7863 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7864 | .block_erase = spi_block_erase_20, |
| 7865 | }, { |
| 7866 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7867 | .block_erase = spi_block_erase_d7, |
| 7868 | }, { |
| 7869 | .eraseblocks = { {32 * 1024, 128} }, |
| 7870 | .block_erase = spi_block_erase_52, |
| 7871 | }, { |
| 7872 | .eraseblocks = { {64 * 1024, 64} }, |
| 7873 | .block_erase = spi_block_erase_d8, |
| 7874 | }, { |
| 7875 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7876 | .block_erase = spi_block_erase_60, |
| 7877 | }, { |
| 7878 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7879 | .block_erase = spi_block_erase_c7, |
| 7880 | } |
| 7881 | }, |
| 7882 | .unlock = spi_disable_blockprotect, |
| 7883 | .write = spi_chip_write_256, |
| 7884 | .read = spi_chip_read, |
| 7885 | .voltage = {1650, 1950}, |
| 7886 | }, |
| 7887 | |
| 7888 | { |
| 7889 | .vendor = "ISSI", |
| 7890 | .name = "IS25WP064", |
| 7891 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 7892 | .manufacture_id = ISSI_ID_SPI, |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 7893 | .model_id = ISSI_IS25WP064, |
| 7894 | .total_size = 8192, |
| 7895 | .page_size = 256, |
| 7896 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 7897 | /* QPI: enter/exit 35/f5, SRP with 4 bits directly specifying |
| 7898 | dummy cycles; non-volatile read parameters, so disable for now */ |
| 7899 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 7900 | .tested = TEST_OK_PREW, |
| 7901 | .probe = probe_spi_rdid, |
| 7902 | .probe_timing = TIMING_ZERO, |
| 7903 | .block_erasers = |
| 7904 | { |
| 7905 | { |
| 7906 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7907 | .block_erase = spi_block_erase_20, |
| 7908 | }, { |
| 7909 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7910 | .block_erase = spi_block_erase_d7, |
| 7911 | }, { |
| 7912 | .eraseblocks = { {32 * 1024, 256} }, |
| 7913 | .block_erase = spi_block_erase_52, |
| 7914 | }, { |
| 7915 | .eraseblocks = { {64 * 1024, 128} }, |
| 7916 | .block_erase = spi_block_erase_d8, |
| 7917 | }, { |
| 7918 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7919 | .block_erase = spi_block_erase_60, |
| 7920 | }, { |
| 7921 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7922 | .block_erase = spi_block_erase_c7, |
| 7923 | } |
| 7924 | }, |
| 7925 | .unlock = spi_disable_blockprotect, |
| 7926 | .write = spi_chip_write_256, |
| 7927 | .read = spi_chip_read, |
| 7928 | .voltage = {1650, 1950}, |
| 7929 | }, |
| 7930 | |
| 7931 | { |
| 7932 | .vendor = "ISSI", |
David Hendricks | 3083ed9 | 2017-05-02 13:25:56 -0700 | [diff] [blame] | 7933 | .name = "IS25WP128", |
| 7934 | .bustype = BUS_SPI, |
| 7935 | .manufacture_id = ISSI_ID_SPI, |
| 7936 | .model_id = ISSI_IS25WP128, |
| 7937 | .total_size = 16384, |
| 7938 | .page_size = 256, |
| 7939 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 7940 | /* QPI: enter/exit 35/f5, SRP with 4 bits directly specifying |
| 7941 | dummy cycles; non-volatile read parameters, so disable for now */ |
| 7942 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 3083ed9 | 2017-05-02 13:25:56 -0700 | [diff] [blame] | 7943 | .tested = TEST_OK_PREW, |
| 7944 | .probe = probe_spi_rdid, |
| 7945 | .probe_timing = TIMING_ZERO, |
| 7946 | .block_erasers = |
| 7947 | { |
| 7948 | { |
| 7949 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7950 | .block_erase = spi_block_erase_20, |
| 7951 | }, { |
| 7952 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7953 | .block_erase = spi_block_erase_d7, |
| 7954 | }, { |
| 7955 | .eraseblocks = { {32 * 1024, 512} }, |
| 7956 | .block_erase = spi_block_erase_52, |
| 7957 | }, { |
| 7958 | .eraseblocks = { {64 * 1024, 256} }, |
| 7959 | .block_erase = spi_block_erase_d8, |
| 7960 | }, { |
| 7961 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7962 | .block_erase = spi_block_erase_60, |
| 7963 | }, { |
| 7964 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7965 | .block_erase = spi_block_erase_c7, |
| 7966 | } |
| 7967 | }, |
| 7968 | .unlock = spi_disable_blockprotect, |
| 7969 | .write = spi_chip_write_256, |
| 7970 | .read = spi_chip_read, |
| 7971 | .voltage = {1650, 1950}, |
| 7972 | }, |
| 7973 | |
| 7974 | { |
| 7975 | .vendor = "ISSI", |
David Hendricks | 61818dc | 2018-10-28 01:02:21 +0000 | [diff] [blame] | 7976 | .name = "IS25WP256", |
| 7977 | .bustype = BUS_SPI, |
| 7978 | .manufacture_id = ISSI_ID_SPI, |
| 7979 | .model_id = ISSI_IS25WP256, |
| 7980 | .total_size = 32768, |
| 7981 | .page_size = 256, |
| 7982 | /* supports SFDP */ |
| 7983 | /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */ |
Nico Huber | ad55d5a | 2022-06-20 19:32:16 +0200 | [diff] [blame] | 7984 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 7985 | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716, |
David Hendricks | 61818dc | 2018-10-28 01:02:21 +0000 | [diff] [blame] | 7986 | .tested = TEST_OK_PREW, |
| 7987 | .probe = probe_spi_rdid, |
| 7988 | .probe_timing = TIMING_ZERO, |
| 7989 | .block_erasers = |
| 7990 | { |
| 7991 | { |
| 7992 | .eraseblocks = { {4 * 1024, 8192} }, |
| 7993 | .block_erase = spi_block_erase_21, |
| 7994 | }, { |
| 7995 | .eraseblocks = { {4 * 1024, 8192} }, |
| 7996 | .block_erase = spi_block_erase_20, |
| 7997 | /* could also use spi_block_erase_d7 */ |
| 7998 | }, { |
| 7999 | .eraseblocks = { {32 * 1024, 1024} }, |
| 8000 | .block_erase = spi_block_erase_5c, |
| 8001 | }, { |
| 8002 | .eraseblocks = { {32 * 1024, 1024} }, |
| 8003 | .block_erase = spi_block_erase_52, |
| 8004 | }, { |
| 8005 | .eraseblocks = { {64 * 1024, 512} }, |
| 8006 | .block_erase = spi_block_erase_dc, |
| 8007 | }, { |
| 8008 | .eraseblocks = { {64 * 1024, 512} }, |
| 8009 | .block_erase = spi_block_erase_d8, |
| 8010 | }, { |
| 8011 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 8012 | .block_erase = spi_block_erase_60, |
| 8013 | }, { |
| 8014 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 8015 | .block_erase = spi_block_erase_c7, |
| 8016 | } |
| 8017 | }, |
| 8018 | .unlock = spi_disable_blockprotect, |
| 8019 | .write = spi_chip_write_256, |
| 8020 | .read = spi_chip_read, |
| 8021 | .voltage = {1650, 1950}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 8022 | .prepare_access = spi_prepare_4ba, |
David Hendricks | 61818dc | 2018-10-28 01:02:21 +0000 | [diff] [blame] | 8023 | }, |
| 8024 | |
| 8025 | { |
| 8026 | .vendor = "ISSI", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 8027 | .name = "IS29GL064B", |
| 8028 | .bustype = BUS_PARALLEL, |
| 8029 | .manufacture_id = ISSI_ID, |
| 8030 | .model_id = ISSI_PMC_IS29GL064B, |
| 8031 | .total_size = 8192, |
| 8032 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 8033 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8034 | .tested = TEST_UNTESTED, |
| 8035 | .probe = probe_jedec_29gl, |
| 8036 | .probe_timing = TIMING_ZERO, |
| 8037 | .block_erasers = |
| 8038 | { |
| 8039 | { |
| 8040 | .eraseblocks = { |
| 8041 | {8 * 1024, 8}, |
| 8042 | {64 * 1024, 127}, |
| 8043 | }, |
| 8044 | .block_erase = erase_sector_jedec, |
| 8045 | }, { |
| 8046 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8047 | .block_erase = erase_chip_block_jedec, |
| 8048 | }, |
| 8049 | }, |
| 8050 | .write = write_jedec_1, |
| 8051 | .read = read_memmapped, |
| 8052 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8053 | .prepare_access = prepare_memory_access, |
| 8054 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 8055 | }, |
| 8056 | |
| 8057 | { |
| 8058 | .vendor = "ISSI", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8059 | .name = "IS29GL064H/L", |
| 8060 | .bustype = BUS_PARALLEL, |
| 8061 | .manufacture_id = ISSI_ID, |
| 8062 | .model_id = ISSI_PMC_IS29GL064HL, |
| 8063 | .total_size = 8192, |
| 8064 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 8065 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8066 | .tested = TEST_UNTESTED, |
| 8067 | .probe = probe_jedec_29gl, |
| 8068 | .probe_timing = TIMING_ZERO, |
| 8069 | .block_erasers = |
| 8070 | { |
| 8071 | { |
| 8072 | .eraseblocks = { {64 * 1024, 128} }, |
| 8073 | .block_erase = erase_sector_jedec, |
| 8074 | }, { |
| 8075 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8076 | .block_erase = erase_chip_block_jedec, |
| 8077 | }, |
| 8078 | }, |
| 8079 | .write = write_jedec_1, |
| 8080 | .read = read_memmapped, |
| 8081 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8082 | .prepare_access = prepare_memory_access, |
| 8083 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8084 | }, |
| 8085 | |
| 8086 | { |
| 8087 | .vendor = "ISSI", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 8088 | .name = "IS29GL064T", |
| 8089 | .bustype = BUS_PARALLEL, |
| 8090 | .manufacture_id = ISSI_ID, |
| 8091 | .model_id = ISSI_PMC_IS29GL064T, |
| 8092 | .total_size = 8192, |
| 8093 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 8094 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8095 | .tested = TEST_UNTESTED, |
| 8096 | .probe = probe_jedec_29gl, |
| 8097 | .probe_timing = TIMING_ZERO, |
| 8098 | .block_erasers = |
| 8099 | { |
| 8100 | { |
| 8101 | .eraseblocks = { |
| 8102 | {64 * 1024, 127}, |
| 8103 | {8 * 1024, 8}, |
| 8104 | }, |
| 8105 | .block_erase = erase_sector_jedec, |
| 8106 | }, { |
| 8107 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8108 | .block_erase = erase_chip_block_jedec, |
| 8109 | }, |
| 8110 | }, |
| 8111 | .write = write_jedec_1, |
| 8112 | .read = read_memmapped, |
| 8113 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8114 | .prepare_access = prepare_memory_access, |
| 8115 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 8116 | }, |
| 8117 | |
| 8118 | { |
| 8119 | .vendor = "ISSI", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 8120 | .name = "IS29GL128H/L", |
| 8121 | .bustype = BUS_PARALLEL, |
| 8122 | .manufacture_id = ISSI_ID, |
| 8123 | .model_id = ISSI_PMC_IS29GL128HL, |
| 8124 | .total_size = 16384, |
| 8125 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 8126 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8127 | .tested = TEST_UNTESTED, |
| 8128 | .probe = probe_jedec_29gl, |
| 8129 | .probe_timing = TIMING_ZERO, |
| 8130 | .block_erasers = |
| 8131 | { |
| 8132 | { |
| 8133 | .eraseblocks = { {128 * 1024, 128} }, |
| 8134 | .block_erase = erase_sector_jedec, |
| 8135 | }, { |
| 8136 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 8137 | .block_erase = erase_chip_block_jedec, |
| 8138 | }, |
| 8139 | }, |
| 8140 | .write = write_jedec_1, |
| 8141 | .read = read_memmapped, |
| 8142 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8143 | .prepare_access = prepare_memory_access, |
| 8144 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 8145 | }, |
| 8146 | |
| 8147 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8148 | .vendor = "Intel", |
| 8149 | .name = "25F160S33B8", |
| 8150 | .bustype = BUS_SPI, |
| 8151 | .manufacture_id = INTEL_ID, |
| 8152 | .model_id = INTEL_25F160S33B8, |
| 8153 | .total_size = 2048, |
| 8154 | .page_size = 256, |
| 8155 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 8156 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8157 | .tested = TEST_UNTESTED, |
| 8158 | .probe = probe_spi_rdid, |
| 8159 | .probe_timing = TIMING_ZERO, |
| 8160 | .block_erasers = |
| 8161 | { |
| 8162 | { |
| 8163 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 8164 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 8165 | * have no effect on the memory contents, but sets a flag in the SR. |
| 8166 | .eraseblocks = { |
| 8167 | {8 * 1024, 8}, |
| 8168 | {64 * 1024, 31} // inaccessible |
| 8169 | }, |
| 8170 | .block_erase = spi_block_erase_40, |
| 8171 | }, { */ |
| 8172 | .eraseblocks = { {64 * 1024, 32} }, |
| 8173 | .block_erase = spi_block_erase_d8, |
| 8174 | }, { |
| 8175 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8176 | .block_erase = spi_block_erase_c7, |
| 8177 | } |
| 8178 | }, |
| 8179 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 8180 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 8181 | .write = spi_chip_write_256, |
| 8182 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 8183 | .voltage = {2700, 3600}, |
| 8184 | }, |
| 8185 | |
| 8186 | { |
| 8187 | .vendor = "Intel", |
| 8188 | .name = "25F160S33T8", |
| 8189 | .bustype = BUS_SPI, |
| 8190 | .manufacture_id = INTEL_ID, |
| 8191 | .model_id = INTEL_25F160S33T8, |
| 8192 | .total_size = 2048, |
| 8193 | .page_size = 256, |
| 8194 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 8195 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8196 | .tested = TEST_UNTESTED, |
| 8197 | .probe = probe_spi_rdid, |
| 8198 | .probe_timing = TIMING_ZERO, |
| 8199 | .block_erasers = |
| 8200 | { |
| 8201 | { |
| 8202 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 8203 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 8204 | * have no effect on the memory contents, but sets a flag in the SR. |
| 8205 | .eraseblocks = { |
| 8206 | {64 * 1024, 31}, // inaccessible |
| 8207 | {8 * 1024, 8} |
| 8208 | }, |
| 8209 | .block_erase = spi_block_erase_40, |
| 8210 | }, { */ |
| 8211 | .eraseblocks = { {64 * 1024, 32} }, |
| 8212 | .block_erase = spi_block_erase_d8, |
| 8213 | }, { |
| 8214 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8215 | .block_erase = spi_block_erase_c7, |
| 8216 | } |
| 8217 | }, |
| 8218 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 8219 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 8220 | .write = spi_chip_write_256, |
| 8221 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 8222 | .voltage = {2700, 3600}, |
| 8223 | }, |
| 8224 | |
| 8225 | { |
| 8226 | .vendor = "Intel", |
| 8227 | .name = "25F320S33B8", |
| 8228 | .bustype = BUS_SPI, |
| 8229 | .manufacture_id = INTEL_ID, |
| 8230 | .model_id = INTEL_25F320S33B8, |
| 8231 | .total_size = 4096, |
| 8232 | .page_size = 256, |
| 8233 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 8234 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8235 | .tested = TEST_UNTESTED, |
| 8236 | .probe = probe_spi_rdid, |
| 8237 | .probe_timing = TIMING_ZERO, |
| 8238 | .block_erasers = |
| 8239 | { |
| 8240 | { |
| 8241 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 8242 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 8243 | * have no effect on the memory contents, but sets a flag in the SR. |
| 8244 | .eraseblocks = { |
| 8245 | {8 * 1024, 8}, |
| 8246 | {64 * 1024, 63} // inaccessible |
| 8247 | }, |
| 8248 | .block_erase = spi_block_erase_40, |
| 8249 | }, { */ |
| 8250 | .eraseblocks = { {64 * 1024, 64} }, |
| 8251 | .block_erase = spi_block_erase_d8, |
| 8252 | }, { |
| 8253 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8254 | .block_erase = spi_block_erase_c7, |
| 8255 | } |
| 8256 | }, |
| 8257 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 8258 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 8259 | .write = spi_chip_write_256, |
| 8260 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 8261 | .voltage = {2700, 3600}, |
| 8262 | }, |
| 8263 | |
| 8264 | { |
| 8265 | .vendor = "Intel", |
| 8266 | .name = "25F320S33T8", |
| 8267 | .bustype = BUS_SPI, |
| 8268 | .manufacture_id = INTEL_ID, |
| 8269 | .model_id = INTEL_25F320S33T8, |
| 8270 | .total_size = 4096, |
| 8271 | .page_size = 256, |
| 8272 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 8273 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8274 | .tested = TEST_UNTESTED, |
| 8275 | .probe = probe_spi_rdid, |
| 8276 | .probe_timing = TIMING_ZERO, |
| 8277 | .block_erasers = |
| 8278 | { |
| 8279 | { |
| 8280 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 8281 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 8282 | * have no effect on the memory contents, but sets a flag in the SR. |
| 8283 | .eraseblocks = { |
| 8284 | {64 * 1024, 63}, // inaccessible |
| 8285 | {8 * 1024, 8} |
| 8286 | }, |
| 8287 | .block_erase = spi_block_erase_40, |
| 8288 | }, { */ |
| 8289 | .eraseblocks = { {64 * 1024, 64} }, |
| 8290 | .block_erase = spi_block_erase_d8, |
| 8291 | }, { |
| 8292 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8293 | .block_erase = spi_block_erase_c7, |
| 8294 | } |
| 8295 | }, |
| 8296 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 8297 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 8298 | .write = spi_chip_write_256, |
| 8299 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 8300 | .voltage = {2700, 3600}, |
| 8301 | }, |
| 8302 | |
| 8303 | { |
| 8304 | .vendor = "Intel", |
| 8305 | .name = "25F640S33B8", |
| 8306 | .bustype = BUS_SPI, |
| 8307 | .manufacture_id = INTEL_ID, |
| 8308 | .model_id = INTEL_25F640S33B8, |
| 8309 | .total_size = 8192, |
| 8310 | .page_size = 256, |
| 8311 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 8312 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Zoltan HERPAI | e0e8b2b | 2020-08-08 16:04:34 +0200 | [diff] [blame] | 8313 | .tested = TEST_OK_PREW, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8314 | .probe = probe_spi_rdid, |
| 8315 | .probe_timing = TIMING_ZERO, |
| 8316 | .block_erasers = |
| 8317 | { |
| 8318 | { |
| 8319 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 8320 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 8321 | * have no effect on the memory contents, but sets a flag in the SR. |
| 8322 | .eraseblocks = { |
| 8323 | {8 * 1024, 8}, |
| 8324 | {64 * 1024, 127} // inaccessible |
| 8325 | }, |
| 8326 | .block_erase = spi_block_erase_40, |
| 8327 | }, { */ |
| 8328 | .eraseblocks = { {64 * 1024, 128} }, |
| 8329 | .block_erase = spi_block_erase_d8, |
| 8330 | }, { |
| 8331 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8332 | .block_erase = spi_block_erase_c7, |
| 8333 | } |
| 8334 | }, |
| 8335 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 8336 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 8337 | .write = spi_chip_write_256, |
| 8338 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 8339 | .voltage = {2700, 3600}, |
| 8340 | }, |
| 8341 | |
| 8342 | { |
| 8343 | .vendor = "Intel", |
| 8344 | .name = "25F640S33T8", |
| 8345 | .bustype = BUS_SPI, |
| 8346 | .manufacture_id = INTEL_ID, |
| 8347 | .model_id = INTEL_25F640S33T8, |
| 8348 | .total_size = 8192, |
| 8349 | .page_size = 256, |
| 8350 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 8351 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8352 | .tested = TEST_UNTESTED, |
| 8353 | .probe = probe_spi_rdid, |
| 8354 | .probe_timing = TIMING_ZERO, |
| 8355 | .block_erasers = |
| 8356 | { |
| 8357 | { |
| 8358 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 8359 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 8360 | * have no effect on the memory contents, but sets a flag in the SR. |
| 8361 | .eraseblocks = { |
| 8362 | {64 * 1024, 127}, // inaccessible |
| 8363 | {8 * 1024, 8} |
| 8364 | }, |
| 8365 | .block_erase = spi_block_erase_40, |
| 8366 | }, { */ |
| 8367 | .eraseblocks = { {64 * 1024, 128} }, |
| 8368 | .block_erase = spi_block_erase_d8, |
| 8369 | }, { |
| 8370 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8371 | .block_erase = spi_block_erase_c7, |
| 8372 | } |
| 8373 | }, |
| 8374 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 8375 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 8376 | .write = spi_chip_write_256, |
| 8377 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 8378 | .voltage = {2700, 3600}, |
| 8379 | }, |
| 8380 | |
| 8381 | { |
| 8382 | .vendor = "Intel", |
| 8383 | .name = "28F001BN/BX-B", |
| 8384 | .bustype = BUS_PARALLEL, |
| 8385 | .manufacture_id = INTEL_ID, |
| 8386 | .model_id = INTEL_28F001B, |
| 8387 | .total_size = 128, |
| 8388 | .page_size = 128 * 1024, /* 8k + 2x4k + 112k */ |
| 8389 | .tested = TEST_UNTESTED, |
| 8390 | .probe = probe_jedec, |
| 8391 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8392 | .block_erasers = |
| 8393 | { |
| 8394 | { |
| 8395 | .eraseblocks = { |
| 8396 | {8 * 1024, 1}, |
| 8397 | {4 * 1024, 2}, |
| 8398 | {112 * 1024, 1}, |
| 8399 | }, |
| 8400 | .block_erase = erase_block_82802ab, |
| 8401 | }, |
| 8402 | }, |
| 8403 | .write = write_82802ab, |
| 8404 | .read = read_memmapped, |
| 8405 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8406 | .prepare_access = prepare_memory_access, |
| 8407 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8408 | }, |
| 8409 | |
| 8410 | { |
| 8411 | .vendor = "Intel", |
| 8412 | .name = "28F001BN/BX-T", |
| 8413 | .bustype = BUS_PARALLEL, |
| 8414 | .manufacture_id = INTEL_ID, |
| 8415 | .model_id = INTEL_28F001T, |
| 8416 | .total_size = 128, |
| 8417 | .page_size = 128 * 1024, /* 112k + 2x4k + 8k */ |
| 8418 | .tested = TEST_OK_PREW, |
| 8419 | .probe = probe_jedec, |
| 8420 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8421 | .block_erasers = |
| 8422 | { |
| 8423 | { |
| 8424 | .eraseblocks = { |
| 8425 | {112 * 1024, 1}, |
| 8426 | {4 * 1024, 2}, |
| 8427 | {8 * 1024, 1}, |
| 8428 | }, |
| 8429 | .block_erase = erase_block_82802ab, |
| 8430 | }, |
| 8431 | }, |
| 8432 | .write = write_82802ab, |
| 8433 | .read = read_memmapped, |
| 8434 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8435 | .prepare_access = prepare_memory_access, |
| 8436 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8437 | }, |
| 8438 | |
| 8439 | { |
| 8440 | .vendor = "Intel", |
| 8441 | .name = "28F002BC/BL/BV/BX-T", |
| 8442 | .bustype = BUS_PARALLEL, |
| 8443 | .manufacture_id = INTEL_ID, |
| 8444 | .model_id = INTEL_28F002T, |
| 8445 | .total_size = 256, |
| 8446 | .page_size = 256 * 1024, |
| 8447 | .tested = TEST_OK_PRE, |
| 8448 | .probe = probe_82802ab, |
| 8449 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8450 | .block_erasers = |
| 8451 | { |
| 8452 | { |
| 8453 | .eraseblocks = { |
| 8454 | {128 * 1024, 1}, |
| 8455 | {96 * 1024, 1}, |
| 8456 | {8 * 1024, 2}, |
| 8457 | {16 * 1024, 1}, |
| 8458 | }, |
| 8459 | .block_erase = erase_block_82802ab, |
| 8460 | }, |
| 8461 | }, |
| 8462 | .write = write_82802ab, |
| 8463 | .read = read_memmapped, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8464 | .prepare_access = prepare_memory_access, |
| 8465 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8466 | }, |
| 8467 | |
| 8468 | { |
| 8469 | .vendor = "Intel", |
| 8470 | .name = "28F004B5/BE/BV/BX-B", |
| 8471 | .bustype = BUS_PARALLEL, |
| 8472 | .manufacture_id = INTEL_ID, |
| 8473 | .model_id = INTEL_28F004B, |
| 8474 | .total_size = 512, |
| 8475 | .page_size = 128 * 1024, /* maximal block size */ |
| 8476 | .tested = TEST_UNTESTED, |
| 8477 | .probe = probe_82802ab, |
| 8478 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8479 | .block_erasers = |
| 8480 | { |
| 8481 | { |
| 8482 | .eraseblocks = { |
| 8483 | {16 * 1024, 1}, |
| 8484 | {8 * 1024, 2}, |
| 8485 | {96 * 1024, 1}, |
| 8486 | {128 * 1024, 3}, |
| 8487 | }, |
| 8488 | .block_erase = erase_block_82802ab, |
| 8489 | }, |
| 8490 | }, |
| 8491 | .write = write_82802ab, |
| 8492 | .read = read_memmapped, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8493 | .prepare_access = prepare_memory_access, |
| 8494 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8495 | }, |
| 8496 | |
| 8497 | { |
| 8498 | .vendor = "Intel", |
| 8499 | .name = "28F004B5/BE/BV/BX-T", |
| 8500 | .bustype = BUS_PARALLEL, |
| 8501 | .manufacture_id = INTEL_ID, |
| 8502 | .model_id = INTEL_28F004T, |
| 8503 | .total_size = 512, |
| 8504 | .page_size = 128 * 1024, /* maximal block size */ |
| 8505 | .tested = TEST_UNTESTED, |
| 8506 | .probe = probe_82802ab, |
| 8507 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8508 | .block_erasers = |
| 8509 | { |
| 8510 | { |
| 8511 | .eraseblocks = { |
| 8512 | {128 * 1024, 3}, |
| 8513 | {96 * 1024, 1}, |
| 8514 | {8 * 1024, 2}, |
| 8515 | {16 * 1024, 1}, |
| 8516 | }, |
| 8517 | .block_erase = erase_block_82802ab, |
| 8518 | }, |
| 8519 | }, |
| 8520 | .write = write_82802ab, |
| 8521 | .read = read_memmapped, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8522 | .prepare_access = prepare_memory_access, |
| 8523 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8524 | }, |
| 8525 | |
| 8526 | { |
| 8527 | .vendor = "Intel", |
| 8528 | .name = "28F008S3/S5/SC", |
| 8529 | .bustype = BUS_PARALLEL, |
| 8530 | .manufacture_id = INTEL_ID, |
| 8531 | .model_id = INTEL_28F004S3, |
| 8532 | .total_size = 512, |
| 8533 | .page_size = 256, |
| 8534 | .tested = TEST_UNTESTED, |
| 8535 | .probe = probe_82802ab, |
| 8536 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8537 | .block_erasers = |
| 8538 | { |
| 8539 | { |
| 8540 | .eraseblocks = { {64 * 1024, 8} }, |
| 8541 | .block_erase = erase_block_82802ab, |
| 8542 | }, |
| 8543 | }, |
| 8544 | .unlock = unlock_28f004s5, |
| 8545 | .write = write_82802ab, |
| 8546 | .read = read_memmapped, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8547 | .prepare_access = prepare_memory_access, |
| 8548 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8549 | }, |
| 8550 | |
| 8551 | { |
| 8552 | .vendor = "Intel", |
| 8553 | .name = "28F400BV/BX/CE/CV-B", |
| 8554 | .bustype = BUS_PARALLEL, |
| 8555 | .manufacture_id = INTEL_ID, |
| 8556 | .model_id = INTEL_28F400B, |
| 8557 | .total_size = 512, |
| 8558 | .page_size = 128 * 1024, /* maximal block size */ |
| 8559 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 8560 | .tested = TEST_UNTESTED, |
| 8561 | .probe = probe_82802ab, |
| 8562 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8563 | .block_erasers = |
| 8564 | { |
| 8565 | { |
| 8566 | .eraseblocks = { |
| 8567 | {16 * 1024, 1}, |
| 8568 | {8 * 1024, 2}, |
| 8569 | {96 * 1024, 1}, |
| 8570 | {128 * 1024, 3}, |
| 8571 | }, |
| 8572 | .block_erase = erase_block_82802ab, |
| 8573 | }, |
| 8574 | }, |
| 8575 | .write = write_82802ab, |
| 8576 | .read = read_memmapped, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8577 | .prepare_access = prepare_memory_access, |
| 8578 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8579 | }, |
| 8580 | |
| 8581 | { |
| 8582 | .vendor = "Intel", |
| 8583 | .name = "28F400BV/BX/CE/CV-T", |
| 8584 | .bustype = BUS_PARALLEL, |
| 8585 | .manufacture_id = INTEL_ID, |
| 8586 | .model_id = INTEL_28F400T, |
| 8587 | .total_size = 512, |
| 8588 | .page_size = 128 * 1024, /* maximal block size */ |
| 8589 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 8590 | .tested = TEST_UNTESTED, |
| 8591 | .probe = probe_82802ab, |
| 8592 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8593 | .block_erasers = |
| 8594 | { |
| 8595 | { |
| 8596 | .eraseblocks = { |
| 8597 | {128 * 1024, 3}, |
| 8598 | {96 * 1024, 1}, |
| 8599 | {8 * 1024, 2}, |
| 8600 | {16 * 1024, 1}, |
| 8601 | }, |
| 8602 | .block_erase = erase_block_82802ab, |
| 8603 | }, |
| 8604 | }, |
| 8605 | .write = write_82802ab, |
| 8606 | .read = read_memmapped, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8607 | .prepare_access = prepare_memory_access, |
| 8608 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8609 | }, |
| 8610 | |
| 8611 | { |
| 8612 | .vendor = "Intel", |
| 8613 | .name = "82802AB", |
| 8614 | .bustype = BUS_FWH, |
| 8615 | .manufacture_id = INTEL_ID, |
| 8616 | .model_id = INTEL_82802AB, |
| 8617 | .total_size = 512, |
| 8618 | .page_size = 64 * 1024, |
Alan Green | 8855257 | 2019-07-24 13:56:06 +1000 | [diff] [blame] | 8619 | .tested = TEST_OK_PREW, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8620 | .probe = probe_82802ab, |
| 8621 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
| 8622 | .block_erasers = |
| 8623 | { |
| 8624 | { |
| 8625 | .eraseblocks = { {64 * 1024, 8} }, |
| 8626 | .block_erase = erase_block_82802ab, |
| 8627 | }, |
| 8628 | }, |
| 8629 | .unlock = unlock_regspace2_uniform_64k, |
| 8630 | .write = write_82802ab, |
| 8631 | .read = read_memmapped, |
| 8632 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 8633 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8634 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8635 | }, |
| 8636 | |
| 8637 | { |
| 8638 | .vendor = "Intel", |
| 8639 | .name = "82802AC", |
| 8640 | .bustype = BUS_FWH, |
| 8641 | .manufacture_id = INTEL_ID, |
| 8642 | .model_id = INTEL_82802AC, |
| 8643 | .total_size = 1024, |
| 8644 | .page_size = 64 * 1024, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8645 | .tested = TEST_OK_PR, |
| 8646 | .probe = probe_82802ab, |
| 8647 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
| 8648 | .block_erasers = |
| 8649 | { |
| 8650 | { |
| 8651 | .eraseblocks = { {64 * 1024, 16} }, |
| 8652 | .block_erase = erase_block_82802ab, |
| 8653 | }, |
| 8654 | }, |
| 8655 | .unlock = unlock_regspace2_uniform_64k, |
| 8656 | .write = write_82802ab, |
| 8657 | .read = read_memmapped, |
| 8658 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 8659 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8660 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8661 | }, |
| 8662 | |
| 8663 | { |
| 8664 | .vendor = "Macronix", |
| 8665 | .name = "MX23L12854", |
| 8666 | .bustype = BUS_SPI, |
| 8667 | .manufacture_id = MACRONIX_ID, |
| 8668 | .model_id = MACRONIX_MX23L12854, |
| 8669 | .total_size = 16384, |
| 8670 | .page_size = 256, |
| 8671 | .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA}, |
| 8672 | .probe = probe_spi_rdid, |
| 8673 | .probe_timing = TIMING_ZERO, |
| 8674 | .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */ |
| 8675 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8676 | .voltage = {3000, 3600}, |
| 8677 | }, |
| 8678 | |
| 8679 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8680 | .vendor = "Macronix", |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 8681 | .name = "MX23L1654", |
| 8682 | .bustype = BUS_SPI, |
| 8683 | .manufacture_id = MACRONIX_ID, |
| 8684 | .model_id = MACRONIX_MX23L1654, |
| 8685 | .total_size = 2048, |
| 8686 | .page_size = 256, |
| 8687 | .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA}, |
| 8688 | .probe = probe_spi_rdid, |
| 8689 | .probe_timing = TIMING_ZERO, |
| 8690 | .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */ |
| 8691 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8692 | .voltage = {3000, 3600}, |
| 8693 | }, |
| 8694 | |
| 8695 | { |
| 8696 | .vendor = "Macronix", |
Michael Coppola | 4e7f36e | 2014-05-03 23:01:18 +0000 | [diff] [blame] | 8697 | .name = "MX23L3254", |
| 8698 | .bustype = BUS_SPI, |
| 8699 | .manufacture_id = MACRONIX_ID, |
| 8700 | .model_id = MACRONIX_MX23L3254, |
| 8701 | .total_size = 4096, |
| 8702 | .page_size = 256, |
Stefan Tauner | 6455dff | 2014-05-26 00:36:24 +0000 | [diff] [blame] | 8703 | .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA}, |
Michael Coppola | 4e7f36e | 2014-05-03 23:01:18 +0000 | [diff] [blame] | 8704 | .probe = probe_spi_rdid, |
| 8705 | .probe_timing = TIMING_ZERO, |
| 8706 | .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */ |
| 8707 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8708 | .voltage = {3000, 3600}, |
| 8709 | }, |
| 8710 | |
| 8711 | { |
| 8712 | .vendor = "Macronix", |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 8713 | .name = "MX23L6454", |
| 8714 | .bustype = BUS_SPI, |
| 8715 | .manufacture_id = MACRONIX_ID, |
| 8716 | .model_id = MACRONIX_MX23L6454, |
| 8717 | .total_size = 8192, |
| 8718 | .page_size = 256, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 8719 | .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA}, |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 8720 | .probe = probe_spi_rdid, |
| 8721 | .probe_timing = TIMING_ZERO, |
| 8722 | .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */ |
| 8723 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8724 | .voltage = {3000, 3600}, |
| 8725 | }, |
| 8726 | |
| 8727 | { |
| 8728 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 8729 | .name = "MX25L1005(C)/MX25L1006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8730 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8731 | .manufacture_id = MACRONIX_ID, |
| 8732 | .model_id = MACRONIX_MX25L1005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8733 | .total_size = 128, |
| 8734 | .page_size = 256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 8735 | /* MX25L1006E supports SFDP */ |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 8736 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 8737 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8738 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8739 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 8740 | .block_erasers = |
| 8741 | { |
| 8742 | { |
| 8743 | .eraseblocks = { {4 * 1024, 32} }, |
| 8744 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8745 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 8746 | .eraseblocks = { {64 * 1024, 2} }, |
| 8747 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8748 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 8749 | .eraseblocks = { {128 * 1024, 1} }, |
| 8750 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8751 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 8752 | .eraseblocks = { {128 * 1024, 1} }, |
| 8753 | .block_erase = spi_block_erase_c7, |
| 8754 | }, |
| 8755 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8756 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8757 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8758 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 8759 | .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] | 8760 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8761 | }, |
| 8762 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8763 | { |
| 8764 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8765 | .name = "MX25L12805D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8766 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8767 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8768 | .model_id = MACRONIX_MX25L12805D, |
| 8769 | .total_size = 16384, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8770 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8771 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8772 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8773 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8774 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8775 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8776 | .block_erasers = |
| 8777 | { |
| 8778 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8779 | .eraseblocks = { {4 * 1024, 4096} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8780 | .block_erase = spi_block_erase_20, |
| 8781 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8782 | .eraseblocks = { {64 * 1024, 256} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8783 | .block_erase = spi_block_erase_d8, |
| 8784 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8785 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8786 | .block_erase = spi_block_erase_60, |
| 8787 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8788 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8789 | .block_erase = spi_block_erase_c7, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8790 | } |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8791 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8792 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 8793 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8794 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 8795 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8796 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8797 | }, |
| 8798 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8799 | { |
| 8800 | .vendor = "Macronix", |
Tao Xia | 571f6ad | 2021-07-21 16:41:53 +0800 | [diff] [blame] | 8801 | .name = "MX25L12833F/MX25L12835F/MX25L12845E/MX25L12865E/MX25L12873F", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8802 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8803 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8804 | .model_id = MACRONIX_MX25L12805D, |
| 8805 | .total_size = 16384, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8806 | .page_size = 256, |
Tao Xia | 571f6ad | 2021-07-21 16:41:53 +0800 | [diff] [blame] | 8807 | /* 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] | 8808 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 8809 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8810 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8811 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8812 | .block_erasers = |
| 8813 | { |
| 8814 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8815 | .eraseblocks = { {4 * 1024, 4096} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8816 | .block_erase = spi_block_erase_20, |
| 8817 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8818 | .eraseblocks = { {32 * 1024, 512} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8819 | .block_erase = spi_block_erase_52, |
| 8820 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8821 | .eraseblocks = { {64 * 1024, 256} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8822 | .block_erase = spi_block_erase_d8, |
| 8823 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8824 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8825 | .block_erase = spi_block_erase_60, |
| 8826 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8827 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8828 | .block_erase = spi_block_erase_c7, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8829 | } |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8830 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8831 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
| 8832 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 8833 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8834 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 8835 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8836 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8837 | }, |
| 8838 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8839 | { |
| 8840 | .vendor = "Macronix", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8841 | .name = "MX25L1605", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8842 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8843 | .manufacture_id = MACRONIX_ID, |
| 8844 | .model_id = MACRONIX_MX25L1605, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8845 | .total_size = 2048, |
| 8846 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 8847 | .feature_bits = FEATURE_WRSR_WREN, |
Sven Schnelle | 4bd8a40 | 2011-03-07 10:59:06 +0000 | [diff] [blame] | 8848 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8849 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8850 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8851 | .block_erasers = |
| 8852 | { |
| 8853 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8854 | .eraseblocks = { {64 * 1024, 32} }, |
| 8855 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8856 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8857 | .eraseblocks = { {64 * 1024, 32} }, |
| 8858 | .block_erase = spi_block_erase_d8, |
| 8859 | }, { |
| 8860 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8861 | .block_erase = spi_block_erase_60, |
| 8862 | }, { |
| 8863 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8864 | .block_erase = spi_block_erase_c7, |
| 8865 | }, |
| 8866 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8867 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8868 | .unlock = spi_disable_blockprotect, |
| 8869 | .write = spi_chip_write_256, |
| 8870 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8871 | .voltage = {2700, 3600}, |
| 8872 | }, |
| 8873 | |
| 8874 | { |
| 8875 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8876 | .name = "MX25L1605A/MX25L1606E/MX25L1608E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8877 | .bustype = BUS_SPI, |
| 8878 | .manufacture_id = MACRONIX_ID, |
| 8879 | .model_id = MACRONIX_MX25L1605, |
| 8880 | .total_size = 2048, |
| 8881 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8882 | /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8883 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8884 | .tested = TEST_OK_PREW, |
| 8885 | .probe = probe_spi_rdid, |
| 8886 | .probe_timing = TIMING_ZERO, |
| 8887 | .block_erasers = |
| 8888 | { |
| 8889 | { |
| 8890 | .eraseblocks = { {4 * 1024, 512} }, |
| 8891 | .block_erase = spi_block_erase_20, |
| 8892 | }, { |
| 8893 | .eraseblocks = { {64 * 1024, 32} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8894 | .block_erase = spi_block_erase_52, |
| 8895 | }, { |
| 8896 | .eraseblocks = { {64 * 1024, 32} }, |
| 8897 | .block_erase = spi_block_erase_d8, |
| 8898 | }, { |
| 8899 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8900 | .block_erase = spi_block_erase_60, |
| 8901 | }, { |
| 8902 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8903 | .block_erase = spi_block_erase_c7, |
| 8904 | }, |
| 8905 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8906 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8907 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8908 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8909 | .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] | 8910 | .voltage = {2700, 3600}, |
| 8911 | }, |
| 8912 | |
| 8913 | { |
| 8914 | .vendor = "Macronix", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8915 | .name = "MX25L1605D/MX25L1608D/MX25L1673E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8916 | .bustype = BUS_SPI, |
| 8917 | .manufacture_id = MACRONIX_ID, |
| 8918 | .model_id = MACRONIX_MX25L1605, |
| 8919 | .total_size = 2048, |
| 8920 | .page_size = 256, |
| 8921 | .feature_bits = FEATURE_WRSR_WREN, |
| 8922 | .tested = TEST_OK_PREW, |
| 8923 | .probe = probe_spi_rdid, |
| 8924 | .probe_timing = TIMING_ZERO, |
| 8925 | .block_erasers = |
| 8926 | { |
| 8927 | { |
| 8928 | .eraseblocks = { {4 * 1024, 512} }, |
| 8929 | .block_erase = spi_block_erase_20, |
| 8930 | }, { |
| 8931 | .eraseblocks = { {64 * 1024, 32} }, |
| 8932 | .block_erase = spi_block_erase_d8, |
| 8933 | }, { |
| 8934 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8935 | .block_erase = spi_block_erase_60, |
| 8936 | }, { |
| 8937 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8938 | .block_erase = spi_block_erase_c7, |
| 8939 | }, |
| 8940 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 8941 | .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] | 8942 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8943 | .write = spi_chip_write_256, |
| 8944 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8945 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8946 | }, |
| 8947 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8948 | { |
| 8949 | .vendor = "Macronix", |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8950 | .name = "MX25L1635D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8951 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8952 | .manufacture_id = MACRONIX_ID, |
| 8953 | .model_id = MACRONIX_MX25L1635D, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8954 | .total_size = 2048, |
| 8955 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8956 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8957 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Angel Pons | c205487 | 2021-01-15 18:57:32 +0100 | [diff] [blame] | 8958 | .tested = TEST_OK_PREW, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8959 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8960 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8961 | .block_erasers = |
| 8962 | { |
| 8963 | { |
| 8964 | .eraseblocks = { {4 * 1024, 512} }, |
| 8965 | .block_erase = spi_block_erase_20, |
| 8966 | }, { |
| 8967 | .eraseblocks = { {64 * 1024, 32} }, |
| 8968 | .block_erase = spi_block_erase_d8, |
| 8969 | }, { |
| 8970 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8971 | .block_erase = spi_block_erase_60, |
| 8972 | }, { |
| 8973 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8974 | .block_erase = spi_block_erase_c7, |
| 8975 | } |
| 8976 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8977 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 8978 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8979 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8980 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8981 | .voltage = {2700, 3600}, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8982 | }, |
Stephan Guilloux | fd31550 | 2009-04-20 22:54:13 +0000 | [diff] [blame] | 8983 | |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 8984 | { |
| 8985 | .vendor = "Macronix", |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8986 | .name = "MX25L1635E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8987 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8988 | .manufacture_id = MACRONIX_ID, |
| 8989 | .model_id = MACRONIX_MX25L1635E, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8990 | .total_size = 2048, |
| 8991 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 8992 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 8993 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 8994 | .tested = TEST_UNTESTED, |
| 8995 | .probe = probe_spi_rdid, |
| 8996 | .probe_timing = TIMING_ZERO, |
| 8997 | .block_erasers = |
| 8998 | { |
| 8999 | { |
| 9000 | .eraseblocks = { {4 * 1024, 512} }, |
| 9001 | .block_erase = spi_block_erase_20, |
| 9002 | }, { |
| 9003 | .eraseblocks = { {64 * 1024, 32} }, |
| 9004 | .block_erase = spi_block_erase_d8, |
| 9005 | }, { |
| 9006 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9007 | .block_erase = spi_block_erase_60, |
| 9008 | }, { |
| 9009 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9010 | .block_erase = spi_block_erase_c7, |
| 9011 | } |
| 9012 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9013 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9014 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 9015 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9016 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 9017 | .voltage = {2700, 3600}, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 9018 | }, |
| 9019 | |
| 9020 | { |
| 9021 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9022 | .name = "MX25L2005(C)/MX25L2006E", |
| 9023 | .bustype = BUS_SPI, |
| 9024 | .manufacture_id = MACRONIX_ID, |
| 9025 | .model_id = MACRONIX_MX25L2005, |
| 9026 | .total_size = 256, |
| 9027 | .page_size = 256, |
| 9028 | .feature_bits = FEATURE_WRSR_WREN, |
| 9029 | .tested = TEST_OK_PREW, |
| 9030 | .probe = probe_spi_rdid, |
| 9031 | .probe_timing = TIMING_ZERO, |
| 9032 | .block_erasers = |
| 9033 | { |
| 9034 | { |
| 9035 | .eraseblocks = { {4 * 1024, 64} }, |
| 9036 | .block_erase = spi_block_erase_20, |
| 9037 | }, { |
| 9038 | .eraseblocks = { {64 * 1024, 4} }, |
| 9039 | .block_erase = spi_block_erase_52, |
| 9040 | }, { |
| 9041 | .eraseblocks = { {64 * 1024, 4} }, |
| 9042 | .block_erase = spi_block_erase_d8, |
| 9043 | }, { |
| 9044 | .eraseblocks = { {256 * 1024, 1} }, |
| 9045 | .block_erase = spi_block_erase_60, |
| 9046 | }, { |
| 9047 | .eraseblocks = { {256 * 1024, 1} }, |
| 9048 | .block_erase = spi_block_erase_c7, |
| 9049 | }, |
| 9050 | }, |
| 9051 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 9052 | .unlock = spi_disable_blockprotect, |
| 9053 | .write = spi_chip_write_256, |
| 9054 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9055 | .voltage = {2700, 3600}, |
| 9056 | }, |
| 9057 | |
| 9058 | { |
| 9059 | .vendor = "Macronix", |
Alan Green | 0370730 | 2019-08-26 12:50:43 +1000 | [diff] [blame] | 9060 | .name = "MX25L25635F/MX25L25645G", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9061 | .bustype = BUS_SPI, |
| 9062 | .manufacture_id = MACRONIX_ID, |
| 9063 | .model_id = MACRONIX_MX25L25635F, |
| 9064 | .total_size = 32768, |
| 9065 | .page_size = 256, |
| 9066 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 9067 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
| 9068 | .tested = TEST_OK_PREW, |
| 9069 | .probe = probe_spi_rdid, |
| 9070 | .probe_timing = TIMING_ZERO, |
| 9071 | .block_erasers = |
| 9072 | { |
| 9073 | { |
| 9074 | .eraseblocks = { {4 * 1024, 8192} }, |
| 9075 | .block_erase = spi_block_erase_21, |
| 9076 | }, { |
| 9077 | .eraseblocks = { {4 * 1024, 8192} }, |
| 9078 | .block_erase = spi_block_erase_20, |
| 9079 | }, { |
| 9080 | .eraseblocks = { {32 * 1024, 1024} }, |
| 9081 | .block_erase = spi_block_erase_5c, |
| 9082 | }, { |
| 9083 | .eraseblocks = { {32 * 1024, 1024} }, |
| 9084 | .block_erase = spi_block_erase_52, |
| 9085 | }, { |
| 9086 | .eraseblocks = { {64 * 1024, 512} }, |
| 9087 | .block_erase = spi_block_erase_dc, |
| 9088 | }, { |
| 9089 | .eraseblocks = { {64 * 1024, 512} }, |
| 9090 | .block_erase = spi_block_erase_d8, |
| 9091 | }, { |
| 9092 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 9093 | .block_erase = spi_block_erase_60, |
| 9094 | }, { |
| 9095 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 9096 | .block_erase = spi_block_erase_c7, |
| 9097 | } |
| 9098 | }, |
| 9099 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
| 9100 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9101 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9102 | .write = spi_chip_write_256, |
| 9103 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9104 | .voltage = {2700, 3600}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 9105 | .prepare_access = spi_prepare_4ba, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9106 | }, |
| 9107 | |
| 9108 | { |
| 9109 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9110 | .name = "MX25L3205(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9111 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9112 | .manufacture_id = MACRONIX_ID, |
| 9113 | .model_id = MACRONIX_MX25L3205, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9114 | .total_size = 4096, |
| 9115 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 9116 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 9117 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9118 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9119 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9120 | .block_erasers = |
| 9121 | { |
| 9122 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9123 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9124 | .block_erase = spi_block_erase_20, |
| 9125 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9126 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9127 | .block_erase = spi_block_erase_d8, |
| 9128 | }, { |
| 9129 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9130 | .block_erase = spi_block_erase_60, |
| 9131 | }, { |
| 9132 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9133 | .block_erase = spi_block_erase_c7, |
| 9134 | }, |
| 9135 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9136 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9137 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9138 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9139 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9140 | .voltage = {2700, 3600}, |
| 9141 | }, |
| 9142 | |
| 9143 | { |
| 9144 | .vendor = "Macronix", |
| 9145 | .name = "MX25L3205D/MX25L3208D", |
| 9146 | .bustype = BUS_SPI, |
| 9147 | .manufacture_id = MACRONIX_ID, |
| 9148 | .model_id = MACRONIX_MX25L3205, |
| 9149 | .total_size = 4096, |
| 9150 | .page_size = 256, |
| 9151 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 9152 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9153 | .tested = TEST_OK_PREW, |
| 9154 | .probe = probe_spi_rdid, |
| 9155 | .probe_timing = TIMING_ZERO, |
| 9156 | .block_erasers = |
| 9157 | { |
| 9158 | { |
| 9159 | .eraseblocks = { {4 * 1024, 1024} }, |
| 9160 | .block_erase = spi_block_erase_20, |
| 9161 | }, { |
| 9162 | .eraseblocks = { {64 * 1024, 64} }, |
| 9163 | .block_erase = spi_block_erase_d8, |
| 9164 | }, { |
| 9165 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9166 | .block_erase = spi_block_erase_60, |
| 9167 | }, { |
| 9168 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9169 | .block_erase = spi_block_erase_c7, |
| 9170 | }, |
| 9171 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9172 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9173 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9174 | .write = spi_chip_write_256, |
| 9175 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
| 9176 | .voltage = {2700, 3600}, |
| 9177 | }, |
| 9178 | |
| 9179 | { |
| 9180 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9181 | .name = "MX25L3206E/MX25L3208E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9182 | .bustype = BUS_SPI, |
| 9183 | .manufacture_id = MACRONIX_ID, |
| 9184 | .model_id = MACRONIX_MX25L3205, |
| 9185 | .total_size = 4096, |
| 9186 | .page_size = 256, |
| 9187 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 9188 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9189 | .tested = TEST_OK_PREW, |
| 9190 | .probe = probe_spi_rdid, |
| 9191 | .probe_timing = TIMING_ZERO, |
| 9192 | .block_erasers = |
| 9193 | { |
| 9194 | { |
| 9195 | .eraseblocks = { {4 * 1024, 1024} }, |
| 9196 | .block_erase = spi_block_erase_20, |
| 9197 | }, { |
| 9198 | .eraseblocks = { {64 * 1024, 64} }, |
| 9199 | .block_erase = spi_block_erase_d8, |
| 9200 | }, { |
| 9201 | .eraseblocks = { {64 * 1024, 64} }, |
| 9202 | .block_erase = spi_block_erase_52, |
| 9203 | }, { |
| 9204 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9205 | .block_erase = spi_block_erase_60, |
| 9206 | }, { |
| 9207 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9208 | .block_erase = spi_block_erase_c7, |
| 9209 | }, |
| 9210 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9211 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9212 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9213 | .write = spi_chip_write_256, |
| 9214 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9215 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9216 | }, |
| 9217 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9218 | { |
| 9219 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9220 | .name = "MX25L3235D", |
| 9221 | .bustype = BUS_SPI, |
| 9222 | .manufacture_id = MACRONIX_ID, |
| 9223 | .model_id = MACRONIX_MX25L3235D, |
| 9224 | .total_size = 4096, |
| 9225 | .page_size = 256, |
| 9226 | /* OTP: 256B total; enter 0xB1, exit 0xC1 */ |
| 9227 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9228 | .tested = TEST_UNTESTED, |
| 9229 | .probe = probe_spi_rdid, |
| 9230 | .probe_timing = TIMING_ZERO, |
| 9231 | .block_erasers = |
| 9232 | { |
| 9233 | { |
| 9234 | .eraseblocks = { {4 * 1024, 1024} }, |
| 9235 | .block_erase = spi_block_erase_20, |
| 9236 | }, { |
| 9237 | .eraseblocks = { {64 * 1024, 64} }, |
| 9238 | .block_erase = spi_block_erase_d8, |
| 9239 | }, { |
| 9240 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9241 | .block_erase = spi_block_erase_60, |
| 9242 | }, { |
| 9243 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9244 | .block_erase = spi_block_erase_c7, |
| 9245 | } |
| 9246 | }, |
| 9247 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9248 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9249 | .write = spi_chip_write_256, |
| 9250 | .read = spi_chip_read, |
| 9251 | .voltage = {2700, 3600}, |
| 9252 | }, |
| 9253 | |
| 9254 | { |
| 9255 | .vendor = "Macronix", |
Nico Huber | b6683e0 | 2021-04-21 13:04:29 +0200 | [diff] [blame] | 9256 | .name = "MX25L3233F/MX25L3273E", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 9257 | .bustype = BUS_SPI, |
| 9258 | .manufacture_id = MACRONIX_ID, |
| 9259 | .model_id = MACRONIX_MX25L3205, |
| 9260 | .total_size = 4096, |
| 9261 | .page_size = 256, |
Nico Huber | 6e69e2b | 2021-04-21 13:03:13 +0200 | [diff] [blame] | 9262 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 9263 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 9264 | .tested = TEST_OK_PREW, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 9265 | .probe = probe_spi_rdid, |
| 9266 | .probe_timing = TIMING_ZERO, |
| 9267 | .block_erasers = |
| 9268 | { |
| 9269 | { |
| 9270 | .eraseblocks = { {4 * 1024, 1024} }, |
| 9271 | .block_erase = spi_block_erase_20, |
| 9272 | }, { |
| 9273 | .eraseblocks = { {32 * 1024, 128} }, |
| 9274 | .block_erase = spi_block_erase_52, |
| 9275 | }, { |
| 9276 | .eraseblocks = { {64 * 1024, 64} }, |
| 9277 | .block_erase = spi_block_erase_d8, |
| 9278 | }, { |
| 9279 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9280 | .block_erase = spi_block_erase_60, |
| 9281 | }, { |
| 9282 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9283 | .block_erase = spi_block_erase_c7, |
| 9284 | }, |
| 9285 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9286 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9287 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 9288 | .write = spi_chip_write_256, |
| 9289 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
Nico Huber | b6683e0 | 2021-04-21 13:04:29 +0200 | [diff] [blame] | 9290 | .voltage = {2700, 3600}, /* 33F 2.65V..3.6V */ |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 9291 | }, |
| 9292 | |
| 9293 | { |
| 9294 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9295 | .name = "MX25L4005(A/C)/MX25L4006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9296 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9297 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9298 | .model_id = MACRONIX_MX25L4005, |
| 9299 | .total_size = 512, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 9300 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9301 | .feature_bits = FEATURE_WRSR_WREN, |
| 9302 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 9303 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9304 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9305 | .block_erasers = |
| 9306 | { |
| 9307 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9308 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9309 | .block_erase = spi_block_erase_20, |
| 9310 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9311 | .eraseblocks = { {64 * 1024, 8} }, |
| 9312 | .block_erase = spi_block_erase_52, |
| 9313 | }, { |
| 9314 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9315 | .block_erase = spi_block_erase_d8, |
| 9316 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9317 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9318 | .block_erase = spi_block_erase_60, |
| 9319 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9320 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9321 | .block_erase = spi_block_erase_c7, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9322 | }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9323 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9324 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 9325 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9326 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9327 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9328 | .voltage = {2700, 3600}, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 9329 | }, |
| 9330 | |
| 9331 | { |
| 9332 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9333 | .name = "MX25L512(E)/MX25V512(C)", |
| 9334 | .bustype = BUS_SPI, |
| 9335 | .manufacture_id = MACRONIX_ID, |
| 9336 | .model_id = MACRONIX_MX25L512, |
| 9337 | .total_size = 64, |
| 9338 | .page_size = 256, |
| 9339 | /* MX25L512E supports SFDP */ |
| 9340 | .feature_bits = FEATURE_WRSR_WREN, |
| 9341 | .tested = TEST_OK_PREW, |
| 9342 | .probe = probe_spi_rdid, |
| 9343 | .probe_timing = TIMING_ZERO, |
| 9344 | .block_erasers = |
| 9345 | { |
| 9346 | { |
| 9347 | .eraseblocks = { {4 * 1024, 16} }, |
| 9348 | .block_erase = spi_block_erase_20, |
| 9349 | }, { |
| 9350 | .eraseblocks = { {64 * 1024, 1} }, |
| 9351 | .block_erase = spi_block_erase_52, |
| 9352 | }, { |
| 9353 | .eraseblocks = { {64 * 1024, 1} }, |
| 9354 | .block_erase = spi_block_erase_d8, |
| 9355 | }, { |
| 9356 | .eraseblocks = { {64 * 1024, 1} }, |
| 9357 | .block_erase = spi_block_erase_60, |
| 9358 | }, { |
| 9359 | .eraseblocks = { {64 * 1024, 1} }, |
| 9360 | .block_erase = spi_block_erase_c7, |
| 9361 | }, |
| 9362 | }, |
| 9363 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 9364 | .unlock = spi_disable_blockprotect, |
| 9365 | .write = spi_chip_write_256, |
| 9366 | .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */ |
| 9367 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */ |
| 9368 | }, |
| 9369 | |
| 9370 | { |
| 9371 | .vendor = "Macronix", |
Steve Markgraf | 7e6f3a7 | 2020-07-13 18:22:56 +0200 | [diff] [blame] | 9372 | .name = "MX25L5121E", |
| 9373 | .bustype = BUS_SPI, |
| 9374 | .manufacture_id = MACRONIX_ID, |
| 9375 | .model_id = MACRONIX_MX25L5121E, |
| 9376 | .total_size = 64, |
| 9377 | .page_size = 32, |
| 9378 | .feature_bits = FEATURE_WRSR_WREN, |
| 9379 | .tested = TEST_OK_PREW, |
| 9380 | .probe = probe_spi_rdid, |
| 9381 | .probe_timing = TIMING_ZERO, |
| 9382 | .block_erasers = |
| 9383 | { |
| 9384 | { |
| 9385 | .eraseblocks = { {4 * 1024, 16} }, |
| 9386 | .block_erase = spi_block_erase_20, |
| 9387 | }, { |
| 9388 | .eraseblocks = { {64 * 1024, 1} }, |
| 9389 | .block_erase = spi_block_erase_52, |
| 9390 | }, { |
| 9391 | .eraseblocks = { {64 * 1024, 1} }, |
| 9392 | .block_erase = spi_block_erase_d8, |
| 9393 | }, { |
| 9394 | .eraseblocks = { {64 * 1024, 1} }, |
| 9395 | .block_erase = spi_block_erase_60, |
| 9396 | }, { |
| 9397 | .eraseblocks = { {64 * 1024, 1} }, |
| 9398 | .block_erase = spi_block_erase_c7, |
| 9399 | }, |
| 9400 | }, |
| 9401 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 9402 | .unlock = spi_disable_blockprotect, |
| 9403 | .write = spi_chip_write_256, |
| 9404 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9405 | .voltage = {2700, 3600}, |
| 9406 | }, |
| 9407 | |
| 9408 | { |
| 9409 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9410 | .name = "MX25L6405", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9411 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9412 | .manufacture_id = MACRONIX_ID, |
| 9413 | .model_id = MACRONIX_MX25L6405, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9414 | .total_size = 8192, |
| 9415 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9416 | /* Has an additional 512B EEPROM sector */ |
| 9417 | .feature_bits = FEATURE_WRSR_WREN, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 9418 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9419 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9420 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9421 | .block_erasers = |
| 9422 | { |
| 9423 | { |
| 9424 | .eraseblocks = { {64 * 1024, 128} }, |
| 9425 | .block_erase = spi_block_erase_20, |
| 9426 | }, { |
| 9427 | .eraseblocks = { {64 * 1024, 128} }, |
| 9428 | .block_erase = spi_block_erase_d8, |
| 9429 | }, { |
| 9430 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9431 | .block_erase = spi_block_erase_60, |
| 9432 | }, { |
| 9433 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9434 | .block_erase = spi_block_erase_c7, |
| 9435 | } |
| 9436 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9437 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9438 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9439 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9440 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9441 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9442 | }, |
| 9443 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9444 | { |
| 9445 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9446 | .name = "MX25L6405D", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9447 | .bustype = BUS_SPI, |
| 9448 | .manufacture_id = MACRONIX_ID, |
| 9449 | .model_id = MACRONIX_MX25L6405, |
| 9450 | .total_size = 8192, |
| 9451 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9452 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9453 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9454 | .tested = TEST_OK_PREW, |
| 9455 | .probe = probe_spi_rdid, |
| 9456 | .probe_timing = TIMING_ZERO, |
| 9457 | .block_erasers = |
| 9458 | { |
| 9459 | { |
| 9460 | .eraseblocks = { {4 * 1024, 2048} }, |
| 9461 | .block_erase = spi_block_erase_20, |
| 9462 | }, { |
| 9463 | .eraseblocks = { {64 * 1024, 128} }, |
| 9464 | .block_erase = spi_block_erase_d8, |
| 9465 | }, { |
| 9466 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9467 | .block_erase = spi_block_erase_60, |
| 9468 | }, { |
| 9469 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9470 | .block_erase = spi_block_erase_c7, |
| 9471 | } |
| 9472 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9473 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9474 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9475 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9476 | .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] | 9477 | .voltage = {2700, 3600}, |
| 9478 | }, |
| 9479 | |
| 9480 | { |
| 9481 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9482 | .name = "MX25L6406E/MX25L6408E", |
| 9483 | .bustype = BUS_SPI, |
| 9484 | .manufacture_id = MACRONIX_ID, |
| 9485 | .model_id = MACRONIX_MX25L6405, |
| 9486 | .total_size = 8192, |
| 9487 | .page_size = 256, |
| 9488 | /* MX25L6406E supports SFDP */ |
| 9489 | /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */ |
| 9490 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9491 | .tested = TEST_OK_PREW, |
| 9492 | .probe = probe_spi_rdid, |
| 9493 | .probe_timing = TIMING_ZERO, |
| 9494 | .block_erasers = |
| 9495 | { |
| 9496 | { |
| 9497 | .eraseblocks = { {4 * 1024, 2048} }, |
| 9498 | .block_erase = spi_block_erase_20, |
| 9499 | }, { |
| 9500 | .eraseblocks = { {64 * 1024, 128} }, |
| 9501 | .block_erase = spi_block_erase_52, |
| 9502 | }, { |
| 9503 | .eraseblocks = { {64 * 1024, 128} }, |
| 9504 | .block_erase = spi_block_erase_d8, |
| 9505 | }, { |
| 9506 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9507 | .block_erase = spi_block_erase_60, |
| 9508 | }, { |
| 9509 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9510 | .block_erase = spi_block_erase_c7, |
| 9511 | } |
| 9512 | }, |
| 9513 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 9514 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9515 | .write = spi_chip_write_256, |
| 9516 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read supported */ |
| 9517 | .voltage = {2700, 3600}, |
| 9518 | }, |
| 9519 | |
| 9520 | { |
| 9521 | .vendor = "Macronix", |
Nico Huber | b007278 | 2017-12-06 21:02:57 +0100 | [diff] [blame] | 9522 | .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9523 | .bustype = BUS_SPI, |
| 9524 | .manufacture_id = MACRONIX_ID, |
| 9525 | .model_id = MACRONIX_MX25L6405, |
| 9526 | .total_size = 8192, |
| 9527 | .page_size = 256, |
| 9528 | /* supports SFDP */ |
| 9529 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 9530 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9531 | .tested = TEST_OK_PREW, |
| 9532 | .probe = probe_spi_rdid, |
| 9533 | .probe_timing = TIMING_ZERO, |
| 9534 | .block_erasers = |
| 9535 | { |
| 9536 | { |
| 9537 | .eraseblocks = { {4 * 1024, 2048} }, |
| 9538 | .block_erase = spi_block_erase_20, |
| 9539 | }, { |
| 9540 | .eraseblocks = { {32 * 1024, 256} }, |
| 9541 | .block_erase = spi_block_erase_52, |
| 9542 | }, { |
| 9543 | .eraseblocks = { {64 * 1024, 128} }, |
| 9544 | .block_erase = spi_block_erase_d8, |
| 9545 | }, { |
| 9546 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9547 | .block_erase = spi_block_erase_60, |
| 9548 | }, { |
| 9549 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9550 | .block_erase = spi_block_erase_c7, |
| 9551 | } |
| 9552 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9553 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9554 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9555 | .write = spi_chip_write_256, |
| 9556 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9557 | .voltage = {2700, 3600}, |
| 9558 | }, |
| 9559 | |
| 9560 | { |
| 9561 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9562 | .name = "MX25L6495F", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9563 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9564 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9565 | .model_id = MACRONIX_MX25L6495F, |
| 9566 | .total_size = 8192, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 9567 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9568 | /* OTP: 1024B total; enter 0xB1, exit 0xC1 */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9569 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 9570 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 9571 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9572 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9573 | .block_erasers = |
| 9574 | { |
| 9575 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9576 | .eraseblocks = { {4 * 1024, 2048} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9577 | .block_erase = spi_block_erase_20, |
| 9578 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9579 | .eraseblocks = { {32 * 1024, 256} }, |
| 9580 | .block_erase = spi_block_erase_52, |
| 9581 | }, { |
Aarya Chaumal | 478e179 | 2022-06-04 01:34:44 +0530 | [diff] [blame] | 9582 | .eraseblocks = { {64 * 1024, 128} }, |
| 9583 | .block_erase = spi_block_erase_d8, |
| 9584 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9585 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9586 | .block_erase = spi_block_erase_60, |
| 9587 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9588 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9589 | .block_erase = spi_block_erase_c7, |
| 9590 | } |
| 9591 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9592 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9593 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9594 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9595 | .voltage = {2700, 3600}, |
| 9596 | }, |
| 9597 | |
| 9598 | { |
| 9599 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9600 | .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005", |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9601 | .bustype = BUS_SPI, |
| 9602 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9603 | .model_id = MACRONIX_MX25L8005, |
| 9604 | .total_size = 1024, |
| 9605 | .page_size = 256, |
| 9606 | /* MX25L8006E, MX25L8008E support SFDP */ |
| 9607 | /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */ |
| 9608 | .feature_bits = FEATURE_WRSR_WREN, |
| 9609 | .tested = TEST_OK_PREW, |
| 9610 | .probe = probe_spi_rdid, |
| 9611 | .probe_timing = TIMING_ZERO, |
| 9612 | .block_erasers = |
| 9613 | { |
| 9614 | { |
| 9615 | .eraseblocks = { {4 * 1024, 256} }, |
| 9616 | .block_erase = spi_block_erase_20, |
| 9617 | }, { |
| 9618 | .eraseblocks = { {64 * 1024, 16} }, |
| 9619 | .block_erase = spi_block_erase_52, |
| 9620 | }, { |
| 9621 | .eraseblocks = { {64 * 1024, 16} }, |
| 9622 | .block_erase = spi_block_erase_d8, |
| 9623 | }, { |
| 9624 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9625 | .block_erase = spi_block_erase_60, |
| 9626 | }, { |
| 9627 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9628 | .block_erase = spi_block_erase_c7, |
| 9629 | }, |
| 9630 | }, |
| 9631 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 9632 | .unlock = spi_disable_blockprotect, |
| 9633 | .write = spi_chip_write_256, |
| 9634 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9635 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */ |
| 9636 | }, |
| 9637 | |
| 9638 | { |
| 9639 | .vendor = "Macronix", |
sibradzic | f62623c | 2020-03-14 17:21:34 +0900 | [diff] [blame] | 9640 | .name = "MX25R3235F", |
| 9641 | .bustype = BUS_SPI, |
| 9642 | .manufacture_id = MACRONIX_ID, |
| 9643 | .model_id = MACRONIX_MX25R3235F, |
| 9644 | .total_size = 4096, |
| 9645 | .page_size = 256, |
| 9646 | /* OTP: 1024B total; enter 0xB1, exit 0xC1 */ |
| 9647 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9648 | .tested = TEST_OK_PREW, |
| 9649 | .probe = probe_spi_rdid, |
| 9650 | .probe_timing = TIMING_ZERO, |
| 9651 | .block_erasers = |
| 9652 | { |
| 9653 | { |
| 9654 | .eraseblocks = { {4 * 1024, 1024} }, |
| 9655 | .block_erase = spi_block_erase_20, |
| 9656 | }, { |
sibradzic | f62623c | 2020-03-14 17:21:34 +0900 | [diff] [blame] | 9657 | .eraseblocks = { {32 * 1024, 128} }, |
| 9658 | .block_erase = spi_block_erase_52, |
| 9659 | }, { |
Aarya Chaumal | 478e179 | 2022-06-04 01:34:44 +0530 | [diff] [blame] | 9660 | .eraseblocks = { {64 * 1024, 64} }, |
| 9661 | .block_erase = spi_block_erase_d8, |
| 9662 | }, { |
sibradzic | f62623c | 2020-03-14 17:21:34 +0900 | [diff] [blame] | 9663 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9664 | .block_erase = spi_block_erase_60, |
| 9665 | }, { |
| 9666 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9667 | .block_erase = spi_block_erase_c7, |
| 9668 | } |
| 9669 | }, |
| 9670 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit 6 is quad enable */ |
| 9671 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9672 | .write = spi_chip_write_256, |
| 9673 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9674 | .voltage = {1650, 3600}, |
| 9675 | }, |
| 9676 | |
| 9677 | { |
| 9678 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9679 | .name = "MX25R6435F", |
| 9680 | .bustype = BUS_SPI, |
| 9681 | .manufacture_id = MACRONIX_ID, |
| 9682 | .model_id = MACRONIX_MX25R6435F, |
| 9683 | .total_size = 8192, |
| 9684 | .page_size = 256, |
| 9685 | /* OTP: 1024B total; enter 0xB1, exit 0xC1 */ |
| 9686 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9687 | .tested = TEST_OK_PREW, |
| 9688 | .probe = probe_spi_rdid, |
| 9689 | .probe_timing = TIMING_ZERO, |
| 9690 | .block_erasers = |
| 9691 | { |
| 9692 | { |
| 9693 | .eraseblocks = { {4 * 1024, 2048} }, |
| 9694 | .block_erase = spi_block_erase_20, |
| 9695 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9696 | .eraseblocks = { {32 * 1024, 256} }, |
| 9697 | .block_erase = spi_block_erase_52, |
| 9698 | }, { |
Aarya Chaumal | 478e179 | 2022-06-04 01:34:44 +0530 | [diff] [blame] | 9699 | .eraseblocks = { {64 * 1024, 128} }, |
| 9700 | .block_erase = spi_block_erase_d8, |
| 9701 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9702 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9703 | .block_erase = spi_block_erase_60, |
| 9704 | }, { |
| 9705 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9706 | .block_erase = spi_block_erase_c7, |
| 9707 | } |
| 9708 | }, |
| 9709 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9710 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9711 | .write = spi_chip_write_256, |
| 9712 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9713 | .voltage = {1650, 3600}, |
| 9714 | }, |
| 9715 | |
| 9716 | { |
| 9717 | .vendor = "Macronix", |
| 9718 | .name = "MX25U12835F", |
| 9719 | .bustype = BUS_SPI, |
| 9720 | .manufacture_id = MACRONIX_ID, |
| 9721 | .model_id = MACRONIX_MX25U12835E, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9722 | .total_size = 16384, |
| 9723 | .page_size = 256, |
| 9724 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 9725 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_35, |
| 9726 | .dummy_cycles = |
| 9727 | { |
| 9728 | /* 133MHz version has configuration register |
| 9729 | bit to toggle 8 dummy cycles for QIO, defaults: */ |
| 9730 | .qpi_fast_read = 4, |
| 9731 | .qpi_fast_read_qio = 6, |
| 9732 | }, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9733 | .tested = TEST_OK_PREW, |
| 9734 | .probe = probe_spi_rdid, |
| 9735 | .probe_timing = TIMING_ZERO, |
| 9736 | .block_erasers = |
| 9737 | { |
| 9738 | { |
| 9739 | .eraseblocks = { {4 * 1024, 4096} }, |
| 9740 | .block_erase = spi_block_erase_20, |
| 9741 | }, { |
| 9742 | .eraseblocks = { {32 * 1024, 512} }, |
| 9743 | .block_erase = spi_block_erase_52, |
| 9744 | }, { |
| 9745 | .eraseblocks = { {64 * 1024, 256} }, |
| 9746 | .block_erase = spi_block_erase_d8, |
| 9747 | }, { |
| 9748 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 9749 | .block_erase = spi_block_erase_60, |
| 9750 | }, { |
| 9751 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 9752 | .block_erase = spi_block_erase_c7, |
| 9753 | } |
| 9754 | }, |
Angel Pons | f112e24 | 2018-09-30 20:14:17 +0200 | [diff] [blame] | 9755 | /* TODO: security register */ |
| 9756 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9757 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9758 | .write = spi_chip_write_256, /* Multi I/O supported */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 9759 | .read = spi_chip_read, |
Angel Pons | f112e24 | 2018-09-30 20:14:17 +0200 | [diff] [blame] | 9760 | .voltage = {1650, 2000}, |
| 9761 | }, |
| 9762 | |
| 9763 | { |
| 9764 | .vendor = "Macronix", |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 9765 | .name = "MX25U1635E", |
| 9766 | .bustype = BUS_SPI, |
| 9767 | .manufacture_id = MACRONIX_ID, |
| 9768 | .model_id = MACRONIX_MX25U1635E, |
| 9769 | .total_size = 2048, |
| 9770 | .page_size = 256, |
| 9771 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 9772 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ | |
| 9773 | FEATURE_FAST_READ_DIO | FEATURE_FAST_READ_QIO | FEATURE_QPI_35_F5, |
| 9774 | .dummy_cycles = |
| 9775 | { |
| 9776 | .qpi_fast_read = 4, |
| 9777 | .qpi_fast_read_qio = 6, |
| 9778 | }, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9779 | .tested = TEST_OK_PR, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 9780 | .probe = probe_spi_rdid, |
| 9781 | .probe_timing = TIMING_ZERO, |
| 9782 | .block_erasers = |
| 9783 | { |
| 9784 | { |
| 9785 | .eraseblocks = { {4 * 1024, 512} }, |
| 9786 | .block_erase = spi_block_erase_20, |
| 9787 | }, { |
| 9788 | .eraseblocks = { {32 * 1024, 64} }, |
| 9789 | .block_erase = spi_block_erase_52, |
| 9790 | }, { |
| 9791 | .eraseblocks = { {64 * 1024, 32} }, |
| 9792 | .block_erase = spi_block_erase_d8, |
| 9793 | }, { |
| 9794 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9795 | .block_erase = spi_block_erase_60, |
| 9796 | }, { |
| 9797 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9798 | .block_erase = spi_block_erase_c7, |
| 9799 | } |
| 9800 | }, |
| 9801 | /* TODO: security register */ |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9802 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9803 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 9804 | .write = spi_chip_write_256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 9805 | .read = spi_chip_read, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 9806 | .voltage = {1650, 2000}, |
| 9807 | }, |
| 9808 | |
| 9809 | { |
| 9810 | .vendor = "Macronix", |
David Tomaschik | f75d8c5 | 2019-06-20 09:49:01 -0700 | [diff] [blame] | 9811 | .name = "MX25U25635F", |
| 9812 | .bustype = BUS_SPI, |
| 9813 | .manufacture_id = MACRONIX_ID, |
| 9814 | .model_id = MACRONIX_MX25U25635F, |
| 9815 | .total_size = 32768, |
| 9816 | .page_size = 256, |
| 9817 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 9818 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | |
| 9819 | FEATURE_4BA | FEATURE_QPI_35 | FEATURE_FAST_READ_QPI4B, |
| 9820 | .dummy_cycles = { .qpi_read_params = { 6, 4, 8, 10 } }, |
Nikolai Artemiev | 148254b | 2021-03-23 17:21:10 +1100 | [diff] [blame] | 9821 | .tested = TEST_OK_PREW, |
David Tomaschik | f75d8c5 | 2019-06-20 09:49:01 -0700 | [diff] [blame] | 9822 | .probe = probe_spi_rdid, |
| 9823 | .probe_timing = TIMING_ZERO, |
| 9824 | .block_erasers = |
| 9825 | { |
| 9826 | { |
| 9827 | .eraseblocks = { {4 * 1024, 8192} }, |
| 9828 | .block_erase = spi_block_erase_21, |
| 9829 | }, { |
| 9830 | .eraseblocks = { {4 * 1024, 8192} }, |
| 9831 | .block_erase = spi_block_erase_20, |
| 9832 | }, { |
| 9833 | .eraseblocks = { {32 * 1024, 1024} }, |
| 9834 | .block_erase = spi_block_erase_5c, |
| 9835 | }, { |
| 9836 | .eraseblocks = { {32 * 1024, 1024} }, |
| 9837 | .block_erase = spi_block_erase_52, |
| 9838 | }, { |
| 9839 | .eraseblocks = { {64 * 1024, 512} }, |
| 9840 | .block_erase = spi_block_erase_dc, |
| 9841 | }, { |
| 9842 | .eraseblocks = { {64 * 1024, 512} }, |
| 9843 | .block_erase = spi_block_erase_d8, |
| 9844 | }, { |
| 9845 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 9846 | .block_erase = spi_block_erase_60, |
| 9847 | }, { |
| 9848 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 9849 | .block_erase = spi_block_erase_c7, |
| 9850 | } |
| 9851 | }, |
| 9852 | /* TODO: security register */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 9853 | .reg_bits = |
| 9854 | { |
| 9855 | .dc = {{CONFIG, 6, RW}, {CONFIG, 7, RW}}, |
| 9856 | }, |
David Tomaschik | f75d8c5 | 2019-06-20 09:49:01 -0700 | [diff] [blame] | 9857 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9858 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9859 | .write = spi_chip_write_256, /* Multi I/O supported */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 9860 | .read = spi_chip_read, |
David Tomaschik | f75d8c5 | 2019-06-20 09:49:01 -0700 | [diff] [blame] | 9861 | .voltage = {1650, 2000}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 9862 | .prepare_access = spi_prepare_4ba, |
David Tomaschik | f75d8c5 | 2019-06-20 09:49:01 -0700 | [diff] [blame] | 9863 | }, |
| 9864 | |
| 9865 | { |
| 9866 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9867 | .name = "MX25U3235E/F", |
| 9868 | .bustype = BUS_SPI, |
| 9869 | .manufacture_id = MACRONIX_ID, |
| 9870 | .model_id = MACRONIX_MX25U3235E, |
| 9871 | .total_size = 4096, |
| 9872 | .page_size = 256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 9873 | /* F model supports SFDP, FAST_READ_DOUT/_QOUT */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9874 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 9875 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ | |
| 9876 | FEATURE_FAST_READ_DIO | FEATURE_FAST_READ_QIO | FEATURE_QPI_35_F5, |
| 9877 | .dummy_cycles = |
| 9878 | { |
| 9879 | .qpi_fast_read = 4, |
| 9880 | .qpi_fast_read_qio = 6, |
| 9881 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9882 | .tested = TEST_OK_PREW, |
| 9883 | .probe = probe_spi_rdid, |
| 9884 | .probe_timing = TIMING_ZERO, |
| 9885 | .block_erasers = |
| 9886 | { |
| 9887 | { |
| 9888 | .eraseblocks = { {4 * 1024, 1024} }, |
| 9889 | .block_erase = spi_block_erase_20, |
| 9890 | }, { |
| 9891 | .eraseblocks = { {32 * 1024, 128} }, |
| 9892 | .block_erase = spi_block_erase_52, |
| 9893 | }, { |
| 9894 | .eraseblocks = { {64 * 1024, 64} }, |
| 9895 | .block_erase = spi_block_erase_d8, |
| 9896 | }, { |
| 9897 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9898 | .block_erase = spi_block_erase_60, |
| 9899 | }, { |
| 9900 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9901 | .block_erase = spi_block_erase_c7, |
| 9902 | } |
| 9903 | }, |
| 9904 | /* TODO: security register */ |
| 9905 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9906 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9907 | .write = spi_chip_write_256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 9908 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9909 | .voltage = {1650, 2000}, |
| 9910 | }, |
| 9911 | |
| 9912 | { |
| 9913 | .vendor = "Macronix", |
Daniel Thompson | cadd420 | 2018-06-04 13:52:22 +0100 | [diff] [blame] | 9914 | .name = "MX25U51245G", |
| 9915 | .bustype = BUS_SPI, |
| 9916 | .manufacture_id = MACRONIX_ID, |
| 9917 | .model_id = MACRONIX_MX25U51245G, |
| 9918 | .total_size = 65536, |
| 9919 | .page_size = 256, |
| 9920 | /* OTP: 512B factory programmed and 512B customer programmed; enter 0xB1, exit 0xC1 */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 9921 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | |
| 9922 | FEATURE_4BA | FEATURE_QPI_35 | FEATURE_FAST_READ_QPI4B, |
| 9923 | .dummy_cycles = { .qpi_read_params = { 6, 4, 8, 10 } }, |
Daniel Thompson | cadd420 | 2018-06-04 13:52:22 +0100 | [diff] [blame] | 9924 | .tested = TEST_OK_PREW, |
| 9925 | .probe = probe_spi_rdid, |
| 9926 | .probe_timing = TIMING_ZERO, |
| 9927 | .block_erasers = |
| 9928 | { |
| 9929 | { |
| 9930 | .eraseblocks = { {4 * 1024, 16384} }, |
| 9931 | .block_erase = spi_block_erase_21, |
| 9932 | }, { |
| 9933 | .eraseblocks = { {4 * 1024, 16384} }, |
| 9934 | .block_erase = spi_block_erase_20, |
| 9935 | }, { |
| 9936 | .eraseblocks = { {32 * 1024, 2048} }, |
| 9937 | .block_erase = spi_block_erase_5c, |
| 9938 | }, { |
| 9939 | .eraseblocks = { {32 * 1024, 2048} }, |
| 9940 | .block_erase = spi_block_erase_52, |
| 9941 | }, { |
| 9942 | .eraseblocks = { {64 * 1024, 1024} }, |
| 9943 | .block_erase = spi_block_erase_dc, |
| 9944 | }, { |
| 9945 | .eraseblocks = { {64 * 1024, 1024} }, |
| 9946 | .block_erase = spi_block_erase_d8, |
| 9947 | }, { |
| 9948 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 9949 | .block_erase = spi_block_erase_60, |
| 9950 | }, { |
| 9951 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 9952 | .block_erase = spi_block_erase_c7, |
| 9953 | } |
| 9954 | }, |
| 9955 | /* TODO: security register */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 9956 | .reg_bits = |
| 9957 | { |
| 9958 | .dc = {{CONFIG, 6, RW}, {CONFIG, 7, RW}}, |
| 9959 | }, |
Daniel Thompson | cadd420 | 2018-06-04 13:52:22 +0100 | [diff] [blame] | 9960 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 9961 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9962 | .write = spi_chip_write_256, /* Multi I/O supported */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 9963 | .read = spi_chip_read, |
Daniel Thompson | cadd420 | 2018-06-04 13:52:22 +0100 | [diff] [blame] | 9964 | .voltage = {1650, 2000}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 9965 | .prepare_access = spi_prepare_4ba, |
Daniel Thompson | cadd420 | 2018-06-04 13:52:22 +0100 | [diff] [blame] | 9966 | }, |
| 9967 | |
| 9968 | { |
| 9969 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9970 | .name = "MX25U6435E/F", |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 9971 | .bustype = BUS_SPI, |
| 9972 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9973 | .model_id = MACRONIX_MX25U6435E, |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 9974 | .total_size = 8192, |
| 9975 | .page_size = 256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 9976 | /* F model supports SFDP, FAST_READ_DOUT/_QOUT */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9977 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 9978 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ | |
| 9979 | FEATURE_FAST_READ_DIO | FEATURE_FAST_READ_QIO | FEATURE_QPI_35_F5, |
| 9980 | .dummy_cycles = |
| 9981 | { |
| 9982 | .qpi_fast_read = 4, |
| 9983 | .qpi_fast_read_qio = 6, |
| 9984 | }, |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 9985 | .tested = TEST_OK_PREW, |
| 9986 | .probe = probe_spi_rdid, |
| 9987 | .probe_timing = TIMING_ZERO, |
| 9988 | .block_erasers = |
| 9989 | { |
| 9990 | { |
| 9991 | .eraseblocks = { {4 * 1024, 2048} }, |
| 9992 | .block_erase = spi_block_erase_20, |
| 9993 | }, { |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 9994 | .eraseblocks = { {32 * 1024, 256} }, |
| 9995 | .block_erase = spi_block_erase_52, |
| 9996 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9997 | .eraseblocks = { {64 * 1024, 128} }, |
| 9998 | .block_erase = spi_block_erase_d8, |
| 9999 | }, { |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 10000 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10001 | .block_erase = spi_block_erase_60, |
| 10002 | }, { |
| 10003 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10004 | .block_erase = spi_block_erase_c7, |
| 10005 | } |
| 10006 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10007 | /* TODO: security register */ |
Nathan Rennie-Waldock | 5a7f942 | 2018-08-10 15:35:23 +0100 | [diff] [blame] | 10008 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 10009 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10010 | .write = spi_chip_write_256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 10011 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10012 | .voltage = {1650, 2000}, |
| 10013 | }, |
| 10014 | |
| 10015 | { |
| 10016 | .vendor = "Macronix", |
| 10017 | .name = "MX25U8032E", |
| 10018 | .bustype = BUS_SPI, |
| 10019 | .manufacture_id = MACRONIX_ID, |
| 10020 | .model_id = MACRONIX_MX25U8032E, |
| 10021 | .total_size = 1024, |
| 10022 | .page_size = 256, |
| 10023 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 10024 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10025 | .tested = TEST_OK_PREW, |
| 10026 | .probe = probe_spi_rdid, |
| 10027 | .probe_timing = TIMING_ZERO, |
| 10028 | .block_erasers = |
| 10029 | { |
| 10030 | { |
| 10031 | .eraseblocks = { {4 * 1024, 256} }, |
| 10032 | .block_erase = spi_block_erase_20, |
| 10033 | }, { |
| 10034 | .eraseblocks = { {32 * 1024, 32} }, |
| 10035 | .block_erase = spi_block_erase_52, |
| 10036 | }, { |
| 10037 | .eraseblocks = { {64 * 1024, 16} }, |
| 10038 | .block_erase = spi_block_erase_d8, |
| 10039 | }, { |
| 10040 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10041 | .block_erase = spi_block_erase_60, |
| 10042 | }, { |
| 10043 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10044 | .block_erase = spi_block_erase_c7, |
| 10045 | } |
| 10046 | }, |
| 10047 | /* TODO: security register */ |
| 10048 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 10049 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10050 | .write = spi_chip_write_256, |
| 10051 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10052 | .voltage = {1650, 2000}, |
Nathan Rennie-Waldock | 5a7f942 | 2018-08-10 15:35:23 +0100 | [diff] [blame] | 10053 | }, |
| 10054 | |
| 10055 | { |
| 10056 | .vendor = "Macronix", |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 10057 | .name = "MX29F001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10058 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10059 | .manufacture_id = MACRONIX_ID, |
| 10060 | .model_id = MACRONIX_MX29F001B, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 10061 | .total_size = 128, |
| 10062 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10063 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10064 | .tested = TEST_UNTESTED, |
| 10065 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 10066 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 10067 | .block_erasers = |
| 10068 | { |
| 10069 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 10070 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 10071 | {8 * 1024, 1}, |
| 10072 | {4 * 1024, 2}, |
| 10073 | {8 * 1024, 2}, |
| 10074 | {32 * 1024, 1}, |
| 10075 | {64 * 1024, 1}, |
| 10076 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10077 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 10078 | }, { |
| 10079 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10080 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 10081 | } |
| 10082 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 10083 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 10084 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10085 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10086 | .prepare_access = prepare_memory_access, |
| 10087 | .finish_access = finish_memory_access, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 10088 | }, |
| 10089 | |
| 10090 | { |
| 10091 | .vendor = "Macronix", |
| 10092 | .name = "MX29F001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10093 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10094 | .manufacture_id = MACRONIX_ID, |
| 10095 | .model_id = MACRONIX_MX29F001T, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 10096 | .total_size = 128, |
| 10097 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10098 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stefan Tauner | 74c6ec6 | 2011-05-18 01:31:46 +0000 | [diff] [blame] | 10099 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10100 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 10101 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 10102 | .block_erasers = |
| 10103 | { |
| 10104 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 10105 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 10106 | {64 * 1024, 1}, |
| 10107 | {32 * 1024, 1}, |
| 10108 | {8 * 1024, 2}, |
| 10109 | {4 * 1024, 2}, |
| 10110 | {8 * 1024, 1}, |
| 10111 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10112 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 10113 | }, { |
| 10114 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10115 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 10116 | } |
| 10117 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 10118 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 10119 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10120 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10121 | .prepare_access = prepare_memory_access, |
| 10122 | .finish_access = finish_memory_access, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 10123 | }, |
| 10124 | |
| 10125 | { |
| 10126 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 10127 | .name = "MX29F002(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10128 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10129 | .manufacture_id = MACRONIX_ID, |
| 10130 | .model_id = MACRONIX_MX29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10131 | .total_size = 256, |
| 10132 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10133 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10134 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10135 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 10136 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 10137 | .block_erasers = |
| 10138 | { |
| 10139 | { |
| 10140 | .eraseblocks = { |
| 10141 | {16 * 1024, 1}, |
| 10142 | {8 * 1024, 2}, |
| 10143 | {32 * 1024, 1}, |
| 10144 | {64 * 1024, 3}, |
| 10145 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10146 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 10147 | }, { |
| 10148 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10149 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 10150 | }, |
| 10151 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 10152 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10153 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10154 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10155 | .prepare_access = prepare_memory_access, |
| 10156 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10157 | }, |
| 10158 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10159 | { |
| 10160 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 10161 | .name = "MX29F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10162 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10163 | .manufacture_id = MACRONIX_ID, |
| 10164 | .model_id = MACRONIX_MX29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10165 | .total_size = 256, |
| 10166 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10167 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 10168 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10169 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 10170 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 10171 | .block_erasers = |
| 10172 | { |
| 10173 | { |
| 10174 | .eraseblocks = { |
| 10175 | {64 * 1024, 3}, |
| 10176 | {32 * 1024, 1}, |
| 10177 | {8 * 1024, 2}, |
| 10178 | {16 * 1024, 1}, |
| 10179 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10180 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 10181 | }, { |
| 10182 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10183 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 10184 | }, |
| 10185 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 10186 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10187 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10188 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10189 | .prepare_access = prepare_memory_access, |
| 10190 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10191 | }, |
| 10192 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10193 | { |
| 10194 | .vendor = "Macronix", |
Daniele Forsi | 6a18a93 | 2014-07-13 14:53:45 +0000 | [diff] [blame] | 10195 | .name = "MX29F022(N)B", |
| 10196 | .bustype = BUS_PARALLEL, |
| 10197 | .manufacture_id = MACRONIX_ID, |
| 10198 | .model_id = MACRONIX_MX29F022B, |
| 10199 | .total_size = 256, |
| 10200 | .page_size = 0, /* unused */ |
| 10201 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10202 | .tested = TEST_UNTESTED, |
| 10203 | .probe = probe_jedec, |
| 10204 | .probe_timing = TIMING_ZERO, |
| 10205 | .block_erasers = |
| 10206 | { |
| 10207 | { |
| 10208 | .eraseblocks = { |
| 10209 | {16 * 1024, 1}, |
| 10210 | {8 * 1024, 2}, |
| 10211 | {32 * 1024, 1}, |
| 10212 | {64 * 1024, 3}, |
| 10213 | }, |
| 10214 | .block_erase = erase_sector_jedec, |
| 10215 | }, { |
| 10216 | .eraseblocks = { {256 * 1024, 1} }, |
| 10217 | .block_erase = erase_chip_block_jedec, |
| 10218 | } |
| 10219 | }, |
| 10220 | .write = write_jedec_1, |
| 10221 | .read = read_memmapped, |
| 10222 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10223 | .prepare_access = prepare_memory_access, |
| 10224 | .finish_access = finish_memory_access, |
Daniele Forsi | 6a18a93 | 2014-07-13 14:53:45 +0000 | [diff] [blame] | 10225 | }, |
| 10226 | |
| 10227 | { |
| 10228 | .vendor = "Macronix", |
| 10229 | .name = "MX29F022(N)T", |
| 10230 | .bustype = BUS_PARALLEL, |
| 10231 | .manufacture_id = MACRONIX_ID, |
| 10232 | .model_id = MACRONIX_MX29F022T, |
| 10233 | .total_size = 256, |
| 10234 | .page_size = 0, /* unused */ |
| 10235 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10236 | .tested = TEST_OK_PREW, |
| 10237 | .probe = probe_jedec, |
| 10238 | .probe_timing = TIMING_ZERO, |
| 10239 | .block_erasers = |
| 10240 | { |
| 10241 | { |
| 10242 | .eraseblocks = { |
| 10243 | {64 * 1024, 3}, |
| 10244 | {32 * 1024, 1}, |
| 10245 | {8 * 1024, 2}, |
| 10246 | {16 * 1024, 1}, |
| 10247 | }, |
| 10248 | .block_erase = erase_sector_jedec, |
| 10249 | }, { |
| 10250 | .eraseblocks = { {256 * 1024, 1} }, |
| 10251 | .block_erase = erase_chip_block_jedec, |
| 10252 | } |
| 10253 | }, |
| 10254 | .write = write_jedec_1, |
| 10255 | .read = read_memmapped, |
| 10256 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10257 | .prepare_access = prepare_memory_access, |
| 10258 | .finish_access = finish_memory_access, |
Daniele Forsi | 6a18a93 | 2014-07-13 14:53:45 +0000 | [diff] [blame] | 10259 | }, |
| 10260 | |
| 10261 | { |
| 10262 | .vendor = "Macronix", |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 10263 | .name = "MX29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10264 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 10265 | .manufacture_id = MACRONIX_ID, |
| 10266 | .model_id = MACRONIX_MX29F040, |
| 10267 | .total_size = 512, |
| 10268 | .page_size = 64 * 1024, |
| 10269 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10270 | .tested = TEST_UNTESTED, |
| 10271 | .probe = probe_jedec, |
| 10272 | .probe_timing = TIMING_ZERO, |
| 10273 | .block_erasers = |
| 10274 | { |
| 10275 | { |
| 10276 | .eraseblocks = { {64 * 1024, 8} }, |
| 10277 | .block_erase = erase_sector_jedec, |
| 10278 | }, { |
| 10279 | .eraseblocks = { {512 * 1024, 1} }, |
| 10280 | .block_erase = erase_chip_block_jedec, |
| 10281 | }, |
| 10282 | }, |
| 10283 | .write = write_jedec_1, |
| 10284 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 10285 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10286 | .prepare_access = prepare_memory_access, |
| 10287 | .finish_access = finish_memory_access, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 10288 | }, |
| 10289 | |
| 10290 | { |
| 10291 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10292 | .name = "MX29GL128F", |
| 10293 | .bustype = BUS_PARALLEL, |
| 10294 | .manufacture_id = MACRONIX_ID, |
| 10295 | .model_id = MACRONIX_MX29GL128F, |
| 10296 | .total_size = 16384, |
| 10297 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 10298 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10299 | .tested = TEST_UNTESTED, |
| 10300 | .probe = probe_jedec_29gl, |
| 10301 | .probe_timing = TIMING_ZERO, |
| 10302 | .block_erasers = |
| 10303 | { |
| 10304 | { |
| 10305 | .eraseblocks = { {128 * 1024, 128} }, |
| 10306 | .block_erase = erase_sector_jedec, |
| 10307 | }, { |
| 10308 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 10309 | .block_erase = erase_chip_block_jedec, |
| 10310 | }, |
| 10311 | }, |
| 10312 | .write = write_jedec_1, |
| 10313 | .read = read_memmapped, |
| 10314 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10315 | .prepare_access = prepare_memory_access, |
| 10316 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10317 | }, |
| 10318 | |
| 10319 | { |
| 10320 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 10321 | .name = "MX29GL320EB", |
| 10322 | .bustype = BUS_PARALLEL, |
| 10323 | .manufacture_id = MACRONIX_ID, |
| 10324 | .model_id = MACRONIX_MX29GL320EB, |
| 10325 | .total_size = 4096, |
| 10326 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 10327 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10328 | .tested = TEST_UNTESTED, |
| 10329 | .probe = probe_jedec_29gl, |
| 10330 | .probe_timing = TIMING_ZERO, |
| 10331 | .block_erasers = |
| 10332 | { |
| 10333 | { |
| 10334 | .eraseblocks = { |
| 10335 | {8 * 1024, 8}, |
| 10336 | {64 * 1024, 63}, |
| 10337 | }, |
| 10338 | .block_erase = erase_sector_jedec, |
| 10339 | }, { |
| 10340 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10341 | .block_erase = erase_chip_block_jedec, |
| 10342 | }, |
| 10343 | }, |
| 10344 | .write = write_jedec_1, |
| 10345 | .read = read_memmapped, |
| 10346 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10347 | .prepare_access = prepare_memory_access, |
| 10348 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 10349 | }, |
| 10350 | |
| 10351 | { |
| 10352 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10353 | .name = "MX29GL320EH/L", |
| 10354 | .bustype = BUS_PARALLEL, |
| 10355 | .manufacture_id = MACRONIX_ID, |
| 10356 | .model_id = MACRONIX_MX29GL320EHL, |
| 10357 | .total_size = 4096, |
| 10358 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 10359 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10360 | .tested = TEST_UNTESTED, |
| 10361 | .probe = probe_jedec_29gl, |
| 10362 | .probe_timing = TIMING_ZERO, |
| 10363 | .block_erasers = |
| 10364 | { |
| 10365 | { |
| 10366 | .eraseblocks = { {64 * 1024, 64} }, |
| 10367 | .block_erase = erase_sector_jedec, |
| 10368 | }, { |
| 10369 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10370 | .block_erase = erase_chip_block_jedec, |
| 10371 | }, |
| 10372 | }, |
| 10373 | .write = write_jedec_1, |
| 10374 | .read = read_memmapped, |
| 10375 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10376 | .prepare_access = prepare_memory_access, |
| 10377 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10378 | }, |
| 10379 | |
| 10380 | { |
| 10381 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 10382 | .name = "MX29GL320ET", |
| 10383 | .bustype = BUS_PARALLEL, |
| 10384 | .manufacture_id = MACRONIX_ID, |
| 10385 | .model_id = MACRONIX_MX29GL320ET, |
| 10386 | .total_size = 4096, |
| 10387 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 10388 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10389 | .tested = TEST_UNTESTED, |
| 10390 | .probe = probe_jedec_29gl, |
| 10391 | .probe_timing = TIMING_ZERO, |
| 10392 | .block_erasers = |
| 10393 | { |
| 10394 | { |
| 10395 | .eraseblocks = { |
| 10396 | {64 * 1024, 63}, |
| 10397 | {8 * 1024, 8}, |
| 10398 | }, |
| 10399 | .block_erase = erase_sector_jedec, |
| 10400 | }, { |
| 10401 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10402 | .block_erase = erase_chip_block_jedec, |
| 10403 | }, |
| 10404 | }, |
| 10405 | .write = write_jedec_1, |
| 10406 | .read = read_memmapped, |
| 10407 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10408 | .prepare_access = prepare_memory_access, |
| 10409 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 10410 | }, |
| 10411 | |
| 10412 | { |
| 10413 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 10414 | .name = "MX29GL640EB", |
| 10415 | .bustype = BUS_PARALLEL, |
| 10416 | .manufacture_id = MACRONIX_ID, |
| 10417 | .model_id = MACRONIX_MX29GL640EB, |
| 10418 | .total_size = 8192, |
| 10419 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 10420 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10421 | .tested = TEST_UNTESTED, |
| 10422 | .probe = probe_jedec_29gl, |
| 10423 | .probe_timing = TIMING_ZERO, |
| 10424 | .block_erasers = |
| 10425 | { |
| 10426 | { |
| 10427 | .eraseblocks = { |
| 10428 | {8 * 1024, 8}, |
| 10429 | {64 * 1024, 127}, |
| 10430 | }, |
| 10431 | .block_erase = erase_sector_jedec, |
| 10432 | }, { |
| 10433 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10434 | .block_erase = erase_chip_block_jedec, |
| 10435 | }, |
| 10436 | }, |
| 10437 | .write = write_jedec_1, |
| 10438 | .read = read_memmapped, |
| 10439 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10440 | .prepare_access = prepare_memory_access, |
| 10441 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 10442 | }, |
| 10443 | |
| 10444 | { |
| 10445 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10446 | .name = "MX29GL640EH/L", |
| 10447 | .bustype = BUS_PARALLEL, |
| 10448 | .manufacture_id = MACRONIX_ID, |
| 10449 | .model_id = MACRONIX_MX29GL640EHL, |
| 10450 | .total_size = 8192, |
| 10451 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 10452 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10453 | .tested = TEST_UNTESTED, |
| 10454 | .probe = probe_jedec_29gl, |
| 10455 | .probe_timing = TIMING_ZERO, |
| 10456 | .block_erasers = |
| 10457 | { |
| 10458 | { |
| 10459 | .eraseblocks = { {64 * 1024, 128} }, |
| 10460 | .block_erase = erase_sector_jedec, |
| 10461 | }, { |
| 10462 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10463 | .block_erase = erase_chip_block_jedec, |
| 10464 | }, |
| 10465 | }, |
| 10466 | .write = write_jedec_1, |
| 10467 | .read = read_memmapped, |
| 10468 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10469 | .prepare_access = prepare_memory_access, |
| 10470 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10471 | }, |
| 10472 | |
| 10473 | { |
| 10474 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 10475 | .name = "MX29GL640ET", |
| 10476 | .bustype = BUS_PARALLEL, |
| 10477 | .manufacture_id = MACRONIX_ID, |
| 10478 | .model_id = MACRONIX_MX29GL640ET, |
| 10479 | .total_size = 8192, |
| 10480 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 10481 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10482 | .tested = TEST_UNTESTED, |
| 10483 | .probe = probe_jedec_29gl, |
| 10484 | .probe_timing = TIMING_ZERO, |
| 10485 | .block_erasers = |
| 10486 | { |
| 10487 | { |
| 10488 | .eraseblocks = { |
| 10489 | {64 * 1024, 127}, |
| 10490 | {8 * 1024, 8}, |
| 10491 | }, |
| 10492 | .block_erase = erase_sector_jedec, |
| 10493 | }, { |
| 10494 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10495 | .block_erase = erase_chip_block_jedec, |
| 10496 | }, |
| 10497 | }, |
| 10498 | .write = write_jedec_1, |
| 10499 | .read = read_memmapped, |
| 10500 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10501 | .prepare_access = prepare_memory_access, |
| 10502 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 10503 | }, |
| 10504 | |
| 10505 | { |
| 10506 | .vendor = "Macronix", |
Carl-Daniel Hailfinger | 350a0c3 | 2009-07-24 13:59:27 +0000 | [diff] [blame] | 10507 | .name = "MX29LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10508 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10509 | .manufacture_id = MACRONIX_ID, |
| 10510 | .model_id = MACRONIX_MX29LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10511 | .total_size = 512, |
| 10512 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10513 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10514 | .tested = TEST_UNTESTED, |
| 10515 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 10516 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 10517 | .block_erasers = |
| 10518 | { |
| 10519 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 10520 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10521 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 10522 | }, { |
| 10523 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10524 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 10525 | }, |
| 10526 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 10527 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10528 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10529 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10530 | .prepare_access = prepare_memory_access, |
| 10531 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | 7de8639 | 2008-12-10 10:32:05 +0000 | [diff] [blame] | 10532 | }, |
| 10533 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10534 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10535 | .vendor = "Macronix", |
Hemanth Guruva Reddy | a136d42 | 2019-07-11 11:08:27 +0200 | [diff] [blame] | 10536 | .name = "MX66L51235F/MX25L51245G", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10537 | .bustype = BUS_SPI, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10538 | .manufacture_id = MACRONIX_ID, |
| 10539 | .model_id = MACRONIX_MX66L51235F, |
| 10540 | .total_size = 65536, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10541 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10542 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 10543 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10544 | .tested = TEST_OK_PREW, |
| 10545 | .probe = probe_spi_rdid, |
| 10546 | .probe_timing = TIMING_ZERO, |
| 10547 | .block_erasers = |
| 10548 | { |
| 10549 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10550 | .eraseblocks = { {4 * 1024, 16384} }, |
| 10551 | .block_erase = spi_block_erase_21, |
| 10552 | }, { |
| 10553 | .eraseblocks = { {4 * 1024, 16384} }, |
| 10554 | .block_erase = spi_block_erase_20, |
| 10555 | }, { |
| 10556 | .eraseblocks = { {32 * 1024, 2048} }, |
| 10557 | .block_erase = spi_block_erase_5c, |
| 10558 | }, { |
| 10559 | .eraseblocks = { {32 * 1024, 2048} }, |
| 10560 | .block_erase = spi_block_erase_52, |
| 10561 | }, { |
| 10562 | .eraseblocks = { {64 * 1024, 1024} }, |
| 10563 | .block_erase = spi_block_erase_dc, |
| 10564 | }, { |
| 10565 | .eraseblocks = { {64 * 1024, 1024} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10566 | .block_erase = spi_block_erase_d8, |
| 10567 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10568 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 10569 | .block_erase = spi_block_erase_60, |
| 10570 | }, { |
| 10571 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10572 | .block_erase = spi_block_erase_c7, |
| 10573 | } |
| 10574 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10575 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
| 10576 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10577 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10578 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10579 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10580 | .voltage = {2700, 3600}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 10581 | .prepare_access = spi_prepare_4ba, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10582 | }, |
| 10583 | |
Patrick Rudolph | 3ba8315 | 2021-06-08 10:52:19 +0200 | [diff] [blame] | 10584 | { |
| 10585 | .vendor = "Macronix", |
| 10586 | .name = "MX66L1G45G", |
| 10587 | .bustype = BUS_SPI, |
| 10588 | .manufacture_id = MACRONIX_ID, |
| 10589 | .model_id = MACRONIX_MX66L1G45G, |
| 10590 | .total_size = 131072, |
| 10591 | .page_size = 256, |
| 10592 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 10593 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
| 10594 | .tested = TEST_OK_PREW, |
| 10595 | .probe = probe_spi_rdid, |
| 10596 | .probe_timing = TIMING_ZERO, |
| 10597 | .block_erasers = |
| 10598 | { |
| 10599 | { |
| 10600 | .eraseblocks = { {4 * 1024, 32768} }, |
| 10601 | .block_erase = spi_block_erase_21, |
| 10602 | }, { |
| 10603 | .eraseblocks = { {4 * 1024, 32768} }, |
| 10604 | .block_erase = spi_block_erase_20, |
| 10605 | }, { |
| 10606 | .eraseblocks = { {32 * 1024, 4096} }, |
| 10607 | .block_erase = spi_block_erase_5c, |
| 10608 | }, { |
| 10609 | .eraseblocks = { {32 * 1024, 4096} }, |
| 10610 | .block_erase = spi_block_erase_52, |
| 10611 | }, { |
| 10612 | .eraseblocks = { {64 * 1024, 2048} }, |
| 10613 | .block_erase = spi_block_erase_dc, |
| 10614 | }, { |
| 10615 | .eraseblocks = { {64 * 1024, 2048} }, |
| 10616 | .block_erase = spi_block_erase_d8, |
| 10617 | }, { |
| 10618 | .eraseblocks = { {128 * 1024 * 1024, 1} }, |
| 10619 | .block_erase = spi_block_erase_60, |
| 10620 | }, { |
| 10621 | .eraseblocks = { {128 * 1024 * 1024, 1} }, |
| 10622 | .block_erase = spi_block_erase_c7, |
| 10623 | } |
| 10624 | }, |
| 10625 | /* TODO: security register and SBLK/SBULK, configuration register */ |
| 10626 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 10627 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10628 | .write = spi_chip_write_256, |
| 10629 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10630 | .voltage = {2700, 3600}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 10631 | .prepare_access = spi_prepare_4ba, |
Patrick Rudolph | 3ba8315 | 2021-06-08 10:52:19 +0200 | [diff] [blame] | 10632 | }, |
| 10633 | |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10634 | /* The ST M25P05 is a bit of a problem. It has the same ID as the |
| 10635 | * ST M25P05-A in RES mode, but supports only 128 byte writes instead |
| 10636 | * of 256 byte writes. We rely heavily on the fact that probe_spi_res1 |
| 10637 | * only is successful if RDID does not work. |
| 10638 | */ |
| 10639 | { |
| 10640 | .vendor = "Micron/Numonyx/ST", |
| 10641 | .name = "M25P05", |
| 10642 | .bustype = BUS_SPI, |
| 10643 | .manufacture_id = 0, /* Not used. */ |
| 10644 | .model_id = ST_M25P05_RES, |
| 10645 | .total_size = 64, |
| 10646 | .page_size = 256, |
| 10647 | .feature_bits = FEATURE_WRSR_WREN, |
| 10648 | .tested = TEST_UNTESTED, |
| 10649 | .probe = probe_spi_res1, |
| 10650 | .probe_timing = TIMING_ZERO, |
| 10651 | .block_erasers = |
| 10652 | { |
| 10653 | { |
| 10654 | .eraseblocks = { {32 * 1024, 2} }, |
| 10655 | .block_erase = spi_block_erase_d8, |
| 10656 | }, { |
| 10657 | .eraseblocks = { {64 * 1024, 1} }, |
| 10658 | .block_erase = spi_block_erase_c7, |
| 10659 | } |
| 10660 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10661 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10662 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10663 | .write = spi_chip_write_1, /* 128 */ |
| 10664 | .read = spi_chip_read, |
| 10665 | .voltage = {2700, 3600}, |
| 10666 | }, |
| 10667 | |
| 10668 | { |
| 10669 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10670 | .name = "M25P05-A", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10671 | .bustype = BUS_SPI, |
| 10672 | .manufacture_id = ST_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10673 | .model_id = ST_M25P05A, |
| 10674 | .total_size = 64, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10675 | .page_size = 256, |
| 10676 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 10677 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10678 | .probe = probe_spi_rdid, |
| 10679 | .probe_timing = TIMING_ZERO, |
| 10680 | .block_erasers = |
| 10681 | { |
| 10682 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10683 | .eraseblocks = { {32 * 1024, 2} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10684 | .block_erase = spi_block_erase_d8, |
| 10685 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10686 | .eraseblocks = { {64 * 1024, 1} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10687 | .block_erase = spi_block_erase_c7, |
| 10688 | } |
| 10689 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10690 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10691 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10692 | .write = spi_chip_write_256, |
| 10693 | .read = spi_chip_read, |
| 10694 | .voltage = {2700, 3600}, |
| 10695 | }, |
| 10696 | |
| 10697 | /* The ST M25P10 has the same problem as the M25P05. */ |
| 10698 | { |
| 10699 | .vendor = "Micron/Numonyx/ST", |
| 10700 | .name = "M25P10", |
| 10701 | .bustype = BUS_SPI, |
| 10702 | .manufacture_id = 0, /* Not used. */ |
| 10703 | .model_id = ST_M25P10_RES, |
| 10704 | .total_size = 128, |
| 10705 | .page_size = 256, |
| 10706 | .feature_bits = FEATURE_WRSR_WREN, |
| 10707 | .tested = TEST_UNTESTED, |
| 10708 | .probe = probe_spi_res1, |
| 10709 | .probe_timing = TIMING_ZERO, |
| 10710 | .block_erasers = |
| 10711 | { |
| 10712 | { |
| 10713 | .eraseblocks = { {32 * 1024, 4} }, |
| 10714 | .block_erase = spi_block_erase_d8, |
| 10715 | }, { |
| 10716 | .eraseblocks = { {128 * 1024, 1} }, |
| 10717 | .block_erase = spi_block_erase_c7, |
| 10718 | } |
| 10719 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10720 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10721 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10722 | .write = spi_chip_write_1, /* 128 */ |
| 10723 | .read = spi_chip_read, |
| 10724 | .voltage = {2700, 3600}, |
| 10725 | }, |
| 10726 | |
| 10727 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10728 | .vendor = "Micron/Numonyx/ST", |
| 10729 | .name = "M25P10-A", |
| 10730 | .bustype = BUS_SPI, |
| 10731 | .manufacture_id = ST_ID, |
| 10732 | .model_id = ST_M25P10A, |
| 10733 | .total_size = 128, |
| 10734 | .page_size = 256, |
| 10735 | .feature_bits = FEATURE_WRSR_WREN, |
| 10736 | .tested = TEST_OK_PREW, |
| 10737 | .probe = probe_spi_rdid, |
| 10738 | .probe_timing = TIMING_ZERO, |
| 10739 | .block_erasers = |
| 10740 | { |
| 10741 | { |
| 10742 | .eraseblocks = { {32 * 1024, 4} }, |
| 10743 | .block_erase = spi_block_erase_d8, |
| 10744 | }, { |
| 10745 | .eraseblocks = { {128 * 1024, 1} }, |
| 10746 | .block_erase = spi_block_erase_c7, |
| 10747 | } |
| 10748 | }, |
| 10749 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
| 10750 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10751 | .write = spi_chip_write_256, |
| 10752 | .read = spi_chip_read, |
| 10753 | .voltage = {2700, 3600}, |
| 10754 | }, |
| 10755 | |
| 10756 | { |
| 10757 | .vendor = "Micron/Numonyx/ST", |
| 10758 | .name = "M25P128", |
| 10759 | .bustype = BUS_SPI, |
| 10760 | .manufacture_id = ST_ID, |
| 10761 | .model_id = ST_M25P128, |
| 10762 | .total_size = 16384, |
| 10763 | .page_size = 256, |
| 10764 | .feature_bits = FEATURE_WRSR_WREN, |
| 10765 | .tested = TEST_OK_PREW, |
| 10766 | .probe = probe_spi_rdid, |
| 10767 | .probe_timing = TIMING_ZERO, |
| 10768 | .block_erasers = |
| 10769 | { |
| 10770 | { |
| 10771 | .eraseblocks = { {256 * 1024, 64} }, |
| 10772 | .block_erase = spi_block_erase_d8, |
| 10773 | }, { |
| 10774 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 10775 | .block_erase = spi_block_erase_c7, |
| 10776 | } |
| 10777 | }, |
| 10778 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
| 10779 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10780 | .write = spi_chip_write_256, |
| 10781 | .read = spi_chip_read, |
| 10782 | .voltage = {2700, 3600}, |
| 10783 | }, |
| 10784 | |
| 10785 | { |
| 10786 | .vendor = "Micron/Numonyx/ST", |
| 10787 | .name = "M25P16", |
| 10788 | .bustype = BUS_SPI, |
| 10789 | .manufacture_id = ST_ID, |
| 10790 | .model_id = ST_M25P16, |
| 10791 | .total_size = 2048, |
| 10792 | .page_size = 256, |
| 10793 | .feature_bits = FEATURE_WRSR_WREN, |
| 10794 | .tested = TEST_OK_PREW, |
| 10795 | .probe = probe_spi_rdid, |
| 10796 | .probe_timing = TIMING_ZERO, |
| 10797 | .block_erasers = |
| 10798 | { |
| 10799 | { |
| 10800 | .eraseblocks = { {64 * 1024, 32} }, |
| 10801 | .block_erase = spi_block_erase_d8, |
| 10802 | }, { |
| 10803 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10804 | .block_erase = spi_block_erase_c7, |
| 10805 | } |
| 10806 | }, |
| 10807 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
| 10808 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10809 | .write = spi_chip_write_256, |
| 10810 | .read = spi_chip_read, |
| 10811 | .voltage = {2700, 3600}, |
| 10812 | }, |
| 10813 | |
| 10814 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10815 | .vendor = "Micron/Numonyx/ST", /* Numonyx */ |
| 10816 | .name = "M25P20", |
| 10817 | .bustype = BUS_SPI, |
| 10818 | .manufacture_id = ST_ID, |
| 10819 | .model_id = ST_M25P20, |
| 10820 | .total_size = 256, |
| 10821 | .page_size = 256, |
| 10822 | .feature_bits = FEATURE_WRSR_WREN, |
| 10823 | .tested = TEST_UNTESTED, |
| 10824 | .probe = probe_spi_rdid, |
| 10825 | .probe_timing = TIMING_ZERO, |
| 10826 | .block_erasers = |
| 10827 | { |
| 10828 | { |
| 10829 | .eraseblocks = { {64 * 1024, 4} }, |
| 10830 | .block_erase = spi_block_erase_d8, |
| 10831 | }, { |
| 10832 | .eraseblocks = { {256 * 1024, 1} }, |
| 10833 | .block_erase = spi_block_erase_c7, |
| 10834 | } |
| 10835 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10836 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10837 | .unlock = spi_disable_blockprotect, |
| 10838 | .write = spi_chip_write_256, |
| 10839 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10840 | .voltage = {2700, 3600}, |
| 10841 | }, |
| 10842 | |
| 10843 | { |
| 10844 | .vendor = "Micron/Numonyx/ST", |
| 10845 | .name = "M25P20-old", |
| 10846 | .bustype = BUS_SPI, |
| 10847 | .manufacture_id = 0, /* Not used. */ |
| 10848 | .model_id = ST_M25P20_RES, |
| 10849 | .total_size = 256, |
| 10850 | .page_size = 256, |
| 10851 | .feature_bits = FEATURE_WRSR_WREN, |
| 10852 | .tested = TEST_OK_PREW, |
| 10853 | .probe = probe_spi_res1, |
| 10854 | .probe_timing = TIMING_ZERO, |
| 10855 | .block_erasers = |
| 10856 | { |
| 10857 | { |
| 10858 | .eraseblocks = { {64 * 1024, 4} }, |
| 10859 | .block_erase = spi_block_erase_d8, |
| 10860 | }, { |
| 10861 | .eraseblocks = { {256 * 1024, 1} }, |
| 10862 | .block_erase = spi_block_erase_c7, |
| 10863 | } |
| 10864 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10865 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10866 | .unlock = spi_disable_blockprotect, |
| 10867 | .write = spi_chip_write_256, |
| 10868 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10869 | .voltage = {2700, 3600}, |
| 10870 | }, |
| 10871 | |
| 10872 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10873 | .vendor = "Micron/Numonyx/ST", |
| 10874 | .name = "M25P32", |
| 10875 | .bustype = BUS_SPI, |
| 10876 | .manufacture_id = ST_ID, |
| 10877 | .model_id = ST_M25P32, |
| 10878 | .total_size = 4096, |
| 10879 | .page_size = 256, |
| 10880 | .feature_bits = FEATURE_WRSR_WREN, |
| 10881 | .tested = TEST_OK_PREW, |
| 10882 | .probe = probe_spi_rdid, |
| 10883 | .probe_timing = TIMING_ZERO, |
| 10884 | .block_erasers = |
| 10885 | { |
| 10886 | { |
| 10887 | .eraseblocks = { {64 * 1024, 64} }, |
| 10888 | .block_erase = spi_block_erase_d8, |
| 10889 | }, { |
| 10890 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10891 | .block_erase = spi_block_erase_c7, |
| 10892 | } |
| 10893 | }, |
| 10894 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
| 10895 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10896 | .write = spi_chip_write_256, |
| 10897 | .read = spi_chip_read, |
| 10898 | .voltage = {2700, 3600}, |
| 10899 | }, |
| 10900 | |
| 10901 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10902 | .vendor = "Micron/Numonyx/ST", /* Numonyx */ |
| 10903 | .name = "M25P40", |
| 10904 | .bustype = BUS_SPI, |
| 10905 | .manufacture_id = ST_ID, |
| 10906 | .model_id = ST_M25P40, |
| 10907 | .total_size = 512, |
| 10908 | .page_size = 256, |
| 10909 | .feature_bits = FEATURE_WRSR_WREN, |
| 10910 | .tested = TEST_OK_PREW, |
| 10911 | .probe = probe_spi_rdid, |
| 10912 | .probe_timing = TIMING_ZERO, |
| 10913 | .block_erasers = |
| 10914 | { |
| 10915 | { |
| 10916 | .eraseblocks = { {64 * 1024, 8} }, |
| 10917 | .block_erase = spi_block_erase_d8, |
| 10918 | }, { |
| 10919 | .eraseblocks = { {512 * 1024, 1} }, |
| 10920 | .block_erase = spi_block_erase_c7, |
| 10921 | } |
| 10922 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10923 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10924 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10925 | .write = spi_chip_write_256, |
| 10926 | .read = spi_chip_read, |
| 10927 | .voltage = {2700, 3600}, |
| 10928 | }, |
| 10929 | |
| 10930 | { |
| 10931 | .vendor = "Micron/Numonyx/ST", |
| 10932 | .name = "M25P40-old", |
| 10933 | .bustype = BUS_SPI, |
| 10934 | .manufacture_id = 0, /* Not used. */ |
| 10935 | .model_id = ST_M25P40_RES, |
| 10936 | .total_size = 512, |
| 10937 | .page_size = 256, |
| 10938 | .feature_bits = FEATURE_WRSR_WREN, |
| 10939 | .tested = TEST_UNTESTED, |
| 10940 | .probe = probe_spi_res1, |
| 10941 | .probe_timing = TIMING_ZERO, |
| 10942 | .block_erasers = |
| 10943 | { |
| 10944 | { |
| 10945 | .eraseblocks = { {64 * 1024, 8} }, |
| 10946 | .block_erase = spi_block_erase_d8, |
| 10947 | }, { |
| 10948 | .eraseblocks = { {512 * 1024, 1} }, |
| 10949 | .block_erase = spi_block_erase_c7, |
| 10950 | } |
| 10951 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10952 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10953 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10954 | .write = spi_chip_write_256, |
| 10955 | .read = spi_chip_read, |
| 10956 | }, |
| 10957 | |
| 10958 | { |
| 10959 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10960 | .name = "M25P64", |
| 10961 | .bustype = BUS_SPI, |
| 10962 | .manufacture_id = ST_ID, |
| 10963 | .model_id = ST_M25P64, |
| 10964 | .total_size = 8192, |
| 10965 | .page_size = 256, |
| 10966 | .feature_bits = FEATURE_WRSR_WREN, |
| 10967 | .tested = TEST_OK_PREW, |
| 10968 | .probe = probe_spi_rdid, |
| 10969 | .probe_timing = TIMING_ZERO, |
| 10970 | .block_erasers = |
| 10971 | { |
| 10972 | { |
| 10973 | .eraseblocks = { {64 * 1024, 128} }, |
| 10974 | .block_erase = spi_block_erase_d8, |
| 10975 | }, { |
| 10976 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10977 | .block_erase = spi_block_erase_c7, |
| 10978 | } |
| 10979 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10980 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10981 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10982 | .write = spi_chip_write_256, |
| 10983 | .read = spi_chip_read, |
| 10984 | .voltage = {2700, 3600}, |
| 10985 | }, |
| 10986 | |
| 10987 | { |
| 10988 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10989 | .name = "M25P80", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10990 | .bustype = BUS_SPI, |
| 10991 | .manufacture_id = ST_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10992 | .model_id = ST_M25P80, |
| 10993 | .total_size = 1024, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10994 | .page_size = 256, |
| 10995 | .feature_bits = FEATURE_WRSR_WREN, |
| 10996 | .tested = TEST_OK_PREW, |
| 10997 | .probe = probe_spi_rdid, |
| 10998 | .probe_timing = TIMING_ZERO, |
| 10999 | .block_erasers = |
| 11000 | { |
| 11001 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11002 | .eraseblocks = { {64 * 1024, 16} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11003 | .block_erase = spi_block_erase_d8, |
| 11004 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11005 | .eraseblocks = { {1024 * 1024, 1} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11006 | .block_erase = spi_block_erase_c7, |
| 11007 | } |
| 11008 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11009 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 11010 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11011 | .write = spi_chip_write_256, |
| 11012 | .read = spi_chip_read, |
| 11013 | .voltage = {2700, 3600}, |
| 11014 | }, |
| 11015 | |
| 11016 | { |
| 11017 | .vendor = "Micron/Numonyx/ST", |
| 11018 | .name = "M25PE10", |
| 11019 | .bustype = BUS_SPI, |
| 11020 | .manufacture_id = ST_ID, |
| 11021 | .model_id = ST_M25PE10, |
| 11022 | .total_size = 128, |
| 11023 | .page_size = 256, |
| 11024 | .feature_bits = FEATURE_WRSR_WREN, |
| 11025 | .tested = TEST_UNTESTED, |
| 11026 | .probe = probe_spi_rdid, |
| 11027 | .probe_timing = TIMING_ZERO, |
| 11028 | .block_erasers = |
| 11029 | { |
| 11030 | { |
| 11031 | .eraseblocks = { {4 * 1024, 32} }, |
| 11032 | .block_erase = spi_block_erase_20, |
| 11033 | }, { |
| 11034 | .eraseblocks = { {64 * 1024, 2} }, |
| 11035 | .block_erase = spi_block_erase_d8, |
| 11036 | }, { |
| 11037 | .eraseblocks = { {128 * 1024, 1} }, |
| 11038 | .block_erase = spi_block_erase_c7, |
| 11039 | } |
| 11040 | }, |
| 11041 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 11042 | .unlock = spi_disable_blockprotect, |
| 11043 | .write = spi_chip_write_256, |
| 11044 | .read = spi_chip_read, |
| 11045 | .voltage = {2700, 3600}, |
| 11046 | }, |
| 11047 | |
| 11048 | { |
| 11049 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11050 | .name = "M25PE16", |
| 11051 | .bustype = BUS_SPI, |
| 11052 | .manufacture_id = ST_ID, |
| 11053 | .model_id = ST_M25PE16, |
| 11054 | .total_size = 2048, |
| 11055 | .page_size = 256, |
| 11056 | .feature_bits = FEATURE_WRSR_WREN, |
| 11057 | .tested = TEST_UNTESTED, |
| 11058 | .probe = probe_spi_rdid, |
| 11059 | .probe_timing = TIMING_ZERO, |
| 11060 | .block_erasers = |
| 11061 | { |
| 11062 | { |
| 11063 | .eraseblocks = { {4 * 1024, 512} }, |
| 11064 | .block_erase = spi_block_erase_20, |
| 11065 | }, { |
| 11066 | .eraseblocks = { {64 * 1024, 32} }, |
| 11067 | .block_erase = spi_block_erase_d8, |
| 11068 | }, { |
| 11069 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 11070 | .block_erase = spi_block_erase_c7, |
| 11071 | } |
| 11072 | }, |
| 11073 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 11074 | .unlock = spi_disable_blockprotect, |
| 11075 | .write = spi_chip_write_256, |
| 11076 | .read = spi_chip_read, |
| 11077 | .voltage = {2700, 3600}, |
| 11078 | }, |
| 11079 | |
| 11080 | { |
| 11081 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11082 | .name = "M25PE20", |
| 11083 | .bustype = BUS_SPI, |
| 11084 | .manufacture_id = ST_ID, |
| 11085 | .model_id = ST_M25PE20, |
| 11086 | .total_size = 256, |
| 11087 | .page_size = 256, |
| 11088 | .feature_bits = FEATURE_WRSR_WREN, |
| 11089 | .tested = TEST_UNTESTED, |
| 11090 | .probe = probe_spi_rdid, |
| 11091 | .probe_timing = TIMING_ZERO, |
| 11092 | .block_erasers = |
| 11093 | { |
| 11094 | { |
| 11095 | .eraseblocks = { {4 * 1024, 64} }, |
| 11096 | .block_erase = spi_block_erase_20, |
| 11097 | }, { |
| 11098 | .eraseblocks = { {64 * 1024, 4} }, |
| 11099 | .block_erase = spi_block_erase_d8, |
| 11100 | }, { |
| 11101 | .eraseblocks = { {256 * 1024, 1} }, |
| 11102 | .block_erase = spi_block_erase_c7, |
| 11103 | } |
| 11104 | }, |
| 11105 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 11106 | .unlock = spi_disable_blockprotect, |
| 11107 | .write = spi_chip_write_256, |
| 11108 | .read = spi_chip_read, |
| 11109 | .voltage = {2700, 3600}, |
| 11110 | }, |
| 11111 | |
| 11112 | { |
| 11113 | .vendor = "Micron/Numonyx/ST", |
| 11114 | .name = "M25PE40", |
| 11115 | .bustype = BUS_SPI, |
| 11116 | .manufacture_id = ST_ID, |
| 11117 | .model_id = ST_M25PE40, |
| 11118 | .total_size = 512, |
| 11119 | .page_size = 256, |
| 11120 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11121 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11122 | .probe = probe_spi_rdid, |
| 11123 | .probe_timing = TIMING_ZERO, |
| 11124 | .block_erasers = |
| 11125 | { |
| 11126 | { |
| 11127 | .eraseblocks = { {4 * 1024, 128} }, |
| 11128 | .block_erase = spi_block_erase_20, |
| 11129 | }, { |
| 11130 | .eraseblocks = { {64 * 1024, 8} }, |
| 11131 | .block_erase = spi_block_erase_d8, |
| 11132 | }, { |
| 11133 | .eraseblocks = { {512 * 1024, 1} }, |
| 11134 | .block_erase = spi_block_erase_c7, |
| 11135 | } |
| 11136 | }, |
| 11137 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 11138 | .unlock = spi_disable_blockprotect, |
| 11139 | .write = spi_chip_write_256, |
| 11140 | .read = spi_chip_read, |
| 11141 | .voltage = {2700, 3600}, |
| 11142 | }, |
| 11143 | |
| 11144 | { |
| 11145 | .vendor = "Micron/Numonyx/ST", |
| 11146 | .name = "M25PE80", |
| 11147 | .bustype = BUS_SPI, |
| 11148 | .manufacture_id = ST_ID, |
| 11149 | .model_id = ST_M25PE80, |
| 11150 | .total_size = 1024, |
| 11151 | .page_size = 256, |
| 11152 | .feature_bits = FEATURE_WRSR_WREN, |
| 11153 | .tested = TEST_OK_PREW, |
| 11154 | .probe = probe_spi_rdid, |
| 11155 | .probe_timing = TIMING_ZERO, |
| 11156 | .block_erasers = |
| 11157 | { |
| 11158 | { |
| 11159 | .eraseblocks = { {4 * 1024, 256} }, |
| 11160 | .block_erase = spi_block_erase_20, |
| 11161 | }, { |
| 11162 | .eraseblocks = { {64 * 1024, 16} }, |
| 11163 | .block_erase = spi_block_erase_d8, |
| 11164 | }, { |
| 11165 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11166 | .block_erase = spi_block_erase_c7, |
| 11167 | } |
| 11168 | }, |
| 11169 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 11170 | .unlock = spi_disable_blockprotect, |
| 11171 | .write = spi_chip_write_256, |
| 11172 | .read = spi_chip_read, |
| 11173 | .voltage = {2700, 3600}, |
| 11174 | }, |
| 11175 | |
| 11176 | { |
| 11177 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11178 | .name = "M25PX16", |
| 11179 | .bustype = BUS_SPI, |
| 11180 | .manufacture_id = ST_ID, |
| 11181 | .model_id = ST_M25PX16, |
| 11182 | .total_size = 2048, |
| 11183 | .page_size = 256, |
| 11184 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 11185 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11186 | .tested = TEST_OK_PREW, |
| 11187 | .probe = probe_spi_rdid, |
| 11188 | .probe_timing = TIMING_ZERO, |
| 11189 | .block_erasers = |
| 11190 | { |
| 11191 | { |
| 11192 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 11193 | .block_erase = spi_block_erase_20, |
| 11194 | }, { |
| 11195 | .eraseblocks = { {64 * 1024, 32} }, |
| 11196 | .block_erase = spi_block_erase_d8, |
| 11197 | }, { |
| 11198 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 11199 | .block_erase = spi_block_erase_c7, |
| 11200 | } |
| 11201 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11202 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11203 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 11204 | .write = spi_chip_write_256, |
| 11205 | .read = spi_chip_read, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 11206 | .voltage = {2300, 3600}, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11207 | }, |
| 11208 | |
| 11209 | { |
| 11210 | .vendor = "Micron/Numonyx/ST", |
| 11211 | .name = "M25PX32", |
| 11212 | .bustype = BUS_SPI, |
| 11213 | .manufacture_id = ST_ID, |
| 11214 | .model_id = ST_M25PX32, |
| 11215 | .total_size = 4096, |
| 11216 | .page_size = 256, |
| 11217 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 11218 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11219 | .tested = TEST_OK_PRE, |
| 11220 | .probe = probe_spi_rdid, |
| 11221 | .probe_timing = TIMING_ZERO, |
| 11222 | .block_erasers = |
| 11223 | { |
| 11224 | { |
| 11225 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 11226 | .block_erase = spi_block_erase_20, |
| 11227 | }, { |
| 11228 | .eraseblocks = { {64 * 1024, 64} }, |
| 11229 | .block_erase = spi_block_erase_d8, |
| 11230 | }, { |
| 11231 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 11232 | .block_erase = spi_block_erase_c7, |
| 11233 | } |
| 11234 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11235 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11236 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 11237 | .write = spi_chip_write_256, |
| 11238 | .read = spi_chip_read, |
| 11239 | .voltage = {2700, 3600}, |
| 11240 | }, |
| 11241 | |
| 11242 | { |
| 11243 | .vendor = "Micron/Numonyx/ST", |
| 11244 | .name = "M25PX64", |
| 11245 | .bustype = BUS_SPI, |
| 11246 | .manufacture_id = ST_ID, |
| 11247 | .model_id = ST_M25PX64, |
| 11248 | .total_size = 8192, |
| 11249 | .page_size = 256, |
| 11250 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 11251 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 11252 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11253 | .probe = probe_spi_rdid, |
| 11254 | .probe_timing = TIMING_ZERO, |
| 11255 | .block_erasers = |
| 11256 | { |
| 11257 | { |
| 11258 | .eraseblocks = { { 4 * 1024, 2048 } }, |
| 11259 | .block_erase = spi_block_erase_20, |
| 11260 | }, { |
| 11261 | .eraseblocks = { {64 * 1024, 128} }, |
| 11262 | .block_erase = spi_block_erase_d8, |
| 11263 | }, { |
| 11264 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 11265 | .block_erase = spi_block_erase_c7, |
| 11266 | } |
| 11267 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11268 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11269 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 11270 | .write = spi_chip_write_256, |
| 11271 | .read = spi_chip_read, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 11272 | .voltage = {2700, 3600}, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11273 | }, |
| 11274 | |
| 11275 | { |
| 11276 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11277 | .name = "M25PX80", |
| 11278 | .bustype = BUS_SPI, |
| 11279 | .manufacture_id = ST_ID, |
| 11280 | .model_id = ST_M25PX80, |
| 11281 | .total_size = 1024, |
| 11282 | .page_size = 256, |
| 11283 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11284 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11285 | .tested = TEST_OK_PREW, |
| 11286 | .probe = probe_spi_rdid, |
| 11287 | .probe_timing = TIMING_ZERO, |
| 11288 | .block_erasers = |
| 11289 | { |
| 11290 | { |
| 11291 | .eraseblocks = { { 4 * 1024, 256 } }, |
| 11292 | .block_erase = spi_block_erase_20, |
| 11293 | }, { |
| 11294 | .eraseblocks = { {64 * 1024, 16} }, |
| 11295 | .block_erase = spi_block_erase_d8, |
| 11296 | }, { |
| 11297 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11298 | .block_erase = spi_block_erase_c7, |
| 11299 | } |
| 11300 | }, |
| 11301 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
| 11302 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 11303 | .write = spi_chip_write_256, |
| 11304 | .read = spi_chip_read, |
| 11305 | .voltage = {2700, 3600}, |
| 11306 | }, |
| 11307 | |
| 11308 | { |
| 11309 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11310 | .name = "M45PE10", |
| 11311 | .bustype = BUS_SPI, |
| 11312 | .manufacture_id = ST_ID, |
| 11313 | .model_id = ST_M45PE10, |
| 11314 | .total_size = 128, |
| 11315 | .page_size = 256, |
| 11316 | .tested = TEST_UNTESTED, |
| 11317 | .probe = probe_spi_rdid, |
| 11318 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 11319 | .block_erasers = |
| 11320 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11321 | { |
| 11322 | .eraseblocks = { {256, 512} }, |
| 11323 | .block_erase = spi_block_erase_db, |
| 11324 | }, { |
| 11325 | .eraseblocks = { {64 * 1024, 2} }, |
| 11326 | .block_erase = spi_block_erase_d8, |
| 11327 | } |
| 11328 | }, |
| 11329 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 11330 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 11331 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 11332 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11333 | .voltage = {2700, 3600}, |
| 11334 | }, |
| 11335 | |
| 11336 | { |
| 11337 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11338 | .name = "M45PE16", |
| 11339 | .bustype = BUS_SPI, |
| 11340 | .manufacture_id = ST_ID, |
| 11341 | .model_id = ST_M45PE16, |
| 11342 | .total_size = 2048, |
| 11343 | .page_size = 256, |
| 11344 | .tested = TEST_UNTESTED, |
| 11345 | .probe = probe_spi_rdid, |
| 11346 | .probe_timing = TIMING_ZERO, |
| 11347 | .block_erasers = |
| 11348 | { |
| 11349 | { |
| 11350 | .eraseblocks = { {256, 8192} }, |
| 11351 | .block_erase = spi_block_erase_db, |
| 11352 | }, { |
| 11353 | .eraseblocks = { {64 * 1024, 32} }, |
| 11354 | .block_erase = spi_block_erase_d8, |
| 11355 | } |
| 11356 | }, |
| 11357 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 11358 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 11359 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 11360 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11361 | .voltage = {2700, 3600}, |
| 11362 | }, |
| 11363 | |
| 11364 | { |
| 11365 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11366 | .name = "M45PE20", |
| 11367 | .bustype = BUS_SPI, |
| 11368 | .manufacture_id = ST_ID, |
| 11369 | .model_id = ST_M45PE20, |
| 11370 | .total_size = 256, |
| 11371 | .page_size = 256, |
| 11372 | .tested = TEST_UNTESTED, |
| 11373 | .probe = probe_spi_rdid, |
| 11374 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 11375 | .block_erasers = |
| 11376 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11377 | { |
| 11378 | .eraseblocks = { {256, 1024} }, |
| 11379 | .block_erase = spi_block_erase_db, |
| 11380 | }, { |
| 11381 | .eraseblocks = { {64 * 1024, 4} }, |
| 11382 | .block_erase = spi_block_erase_d8, |
| 11383 | } |
| 11384 | }, |
| 11385 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 11386 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 11387 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 11388 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11389 | .voltage = {2700, 3600}, |
| 11390 | }, |
| 11391 | |
| 11392 | { |
| 11393 | .vendor = "Micron/Numonyx/ST", |
| 11394 | .name = "M45PE40", |
| 11395 | .bustype = BUS_SPI, |
| 11396 | .manufacture_id = ST_ID, |
| 11397 | .model_id = ST_M45PE40, |
| 11398 | .total_size = 512, |
| 11399 | .page_size = 256, |
| 11400 | .tested = TEST_UNTESTED, |
| 11401 | .probe = probe_spi_rdid, |
| 11402 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 11403 | .block_erasers = |
| 11404 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11405 | { |
| 11406 | .eraseblocks = { {256, 2048} }, |
| 11407 | .block_erase = spi_block_erase_db, |
| 11408 | }, { |
| 11409 | .eraseblocks = { {64 * 1024, 8} }, |
| 11410 | .block_erase = spi_block_erase_d8, |
| 11411 | } |
| 11412 | }, |
| 11413 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 11414 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11415 | .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] | 11416 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11417 | .voltage = {2700, 3600}, |
| 11418 | }, |
| 11419 | |
| 11420 | { |
| 11421 | .vendor = "Micron/Numonyx/ST", |
| 11422 | .name = "M45PE80", |
| 11423 | .bustype = BUS_SPI, |
| 11424 | .manufacture_id = ST_ID, |
| 11425 | .model_id = ST_M45PE80, |
| 11426 | .total_size = 1024, |
| 11427 | .page_size = 256, |
| 11428 | .tested = TEST_UNTESTED, |
| 11429 | .probe = probe_spi_rdid, |
| 11430 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 11431 | .block_erasers = |
| 11432 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11433 | { |
| 11434 | .eraseblocks = { {256, 4096} }, |
| 11435 | .block_erase = spi_block_erase_db, |
| 11436 | }, { |
| 11437 | .eraseblocks = { {64 * 1024, 16} }, |
| 11438 | .block_erase = spi_block_erase_d8, |
| 11439 | } |
| 11440 | }, |
| 11441 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 11442 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 11443 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 11444 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11445 | .voltage = {2700, 3600}, |
| 11446 | }, |
| 11447 | |
| 11448 | { |
| 11449 | .vendor = "Micron/Numonyx/ST", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11450 | .name = "N25Q00A..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11451 | .bustype = BUS_SPI, |
| 11452 | .manufacture_id = ST_ID, |
| 11453 | .model_id = ST_N25Q00A__1G, |
| 11454 | .total_size = 131072, |
| 11455 | .page_size = 256, |
| 11456 | /* supports SFDP */ |
| 11457 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11458 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11459 | .tested = TEST_UNTESTED, |
| 11460 | .probe = probe_spi_rdid, |
| 11461 | .probe_timing = TIMING_ZERO, |
| 11462 | .block_erasers = |
| 11463 | { |
| 11464 | { |
| 11465 | .eraseblocks = { {4 * 1024, 32768} }, |
| 11466 | .block_erase = spi_block_erase_21, |
| 11467 | }, { |
| 11468 | .eraseblocks = { {4 * 1024, 32768} }, |
| 11469 | .block_erase = spi_block_erase_20, |
| 11470 | }, { |
| 11471 | .eraseblocks = { {64 * 1024, 2048} }, |
| 11472 | .block_erase = spi_block_erase_dc, |
| 11473 | }, { |
| 11474 | .eraseblocks = { {64 * 1024, 2048} }, |
| 11475 | .block_erase = spi_block_erase_d8, |
| 11476 | }, { |
| 11477 | .eraseblocks = { {32768 * 1024, 4} }, |
| 11478 | .block_erase = spi_block_erase_c4, |
| 11479 | } |
| 11480 | }, |
| 11481 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11482 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11483 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11484 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11485 | .voltage = {1700, 2000}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 11486 | .prepare_access = spi_prepare_4ba, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11487 | }, |
| 11488 | |
| 11489 | { |
| 11490 | .vendor = "Micron/Numonyx/ST", |
| 11491 | .name = "N25Q00A..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */ |
| 11492 | .bustype = BUS_SPI, |
| 11493 | .manufacture_id = ST_ID, |
| 11494 | .model_id = ST_N25Q00A__3G, |
| 11495 | .total_size = 131072, |
| 11496 | .page_size = 256, |
| 11497 | /* supports SFDP */ |
| 11498 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11499 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11500 | .tested = TEST_UNTESTED, |
| 11501 | .probe = probe_spi_rdid, |
| 11502 | .probe_timing = TIMING_ZERO, |
| 11503 | .block_erasers = |
| 11504 | { |
| 11505 | { |
| 11506 | .eraseblocks = { {4 * 1024, 32768} }, |
| 11507 | .block_erase = spi_block_erase_21, |
| 11508 | }, { |
| 11509 | .eraseblocks = { {4 * 1024, 32768} }, |
| 11510 | .block_erase = spi_block_erase_20, |
| 11511 | }, { |
| 11512 | .eraseblocks = { {64 * 1024, 2048} }, |
| 11513 | .block_erase = spi_block_erase_dc, |
| 11514 | }, { |
| 11515 | .eraseblocks = { {64 * 1024, 2048} }, |
| 11516 | .block_erase = spi_block_erase_d8, |
| 11517 | }, { |
| 11518 | .eraseblocks = { {32768 * 1024, 4} }, |
| 11519 | .block_erase = spi_block_erase_c4, |
| 11520 | } |
| 11521 | }, |
| 11522 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11523 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11524 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11525 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11526 | .voltage = {2700, 3600}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 11527 | .prepare_access = spi_prepare_4ba, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11528 | }, |
| 11529 | |
| 11530 | { |
| 11531 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11532 | .name = "N25Q016", |
| 11533 | .bustype = BUS_SPI, |
| 11534 | .manufacture_id = ST_ID, |
| 11535 | .model_id = ST_N25Q016__1E, |
| 11536 | .total_size = 2048, |
| 11537 | .page_size = 256, |
| 11538 | /* supports SFDP */ |
| 11539 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11540 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11541 | .tested = TEST_UNTESTED, |
| 11542 | .probe = probe_spi_rdid, |
| 11543 | .probe_timing = TIMING_ZERO, |
| 11544 | .block_erasers = |
| 11545 | { |
| 11546 | { |
| 11547 | .eraseblocks = { {4 * 1024, 512} }, |
| 11548 | .block_erase = spi_block_erase_20, |
| 11549 | }, { |
| 11550 | .eraseblocks = { {32 * 1024, 64} }, |
| 11551 | .block_erase = spi_block_erase_52, |
| 11552 | }, { |
| 11553 | .eraseblocks = { {64 * 1024, 32} }, |
| 11554 | .block_erase = spi_block_erase_d8, |
| 11555 | }, { |
| 11556 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 11557 | .block_erase = spi_block_erase_c7, |
| 11558 | } |
| 11559 | }, |
| 11560 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11561 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11562 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11563 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11564 | .voltage = {1700, 2000}, |
| 11565 | }, |
| 11566 | |
| 11567 | { |
| 11568 | .vendor = "Micron/Numonyx/ST", |
| 11569 | .name = "N25Q032..1E", |
| 11570 | .bustype = BUS_SPI, |
| 11571 | .manufacture_id = ST_ID, |
| 11572 | .model_id = ST_N25Q032__1E, |
| 11573 | .total_size = 4096, |
| 11574 | .page_size = 256, |
| 11575 | /* supports SFDP */ |
| 11576 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11577 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11578 | .tested = TEST_UNTESTED, |
| 11579 | .probe = probe_spi_rdid, |
| 11580 | .probe_timing = TIMING_ZERO, |
| 11581 | .block_erasers = |
| 11582 | { |
| 11583 | { |
| 11584 | .eraseblocks = { {4 * 1024, 1024} }, |
| 11585 | .block_erase = spi_block_erase_20, |
| 11586 | }, { |
| 11587 | .eraseblocks = { {64 * 1024, 64} }, |
| 11588 | .block_erase = spi_block_erase_d8, |
| 11589 | }, { |
| 11590 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 11591 | .block_erase = spi_block_erase_c7, |
| 11592 | } |
| 11593 | }, |
| 11594 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11595 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11596 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11597 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11598 | .voltage = {1700, 2000}, |
Sergii Dmytruk | d5ba24c | 2022-07-25 00:28:35 +0300 | [diff] [blame] | 11599 | .reg_bits = |
| 11600 | { |
| 11601 | /* |
| 11602 | * There is also a volatile lock register per 64KiB sector, which is not |
| 11603 | * mutually exclusive with BP-based protection. |
| 11604 | */ |
| 11605 | .srp = {STATUS1, 7, RW}, |
| 11606 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 11607 | .tb = {STATUS1, 5, RW}, |
| 11608 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 11609 | .wp_write_cfg = spi_wp_write_cfg, |
| 11610 | .wp_read_cfg = spi_wp_read_cfg, |
| 11611 | .wp_get_ranges = spi_wp_get_available_ranges, |
Sergii Dmytruk | d5ba24c | 2022-07-25 00:28:35 +0300 | [diff] [blame] | 11612 | .decode_range = decode_range_spi25, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11613 | }, |
| 11614 | |
| 11615 | { |
| 11616 | .vendor = "Micron/Numonyx/ST", |
| 11617 | .name = "N25Q032..3E", |
| 11618 | .bustype = BUS_SPI, |
| 11619 | .manufacture_id = ST_ID, |
| 11620 | .model_id = ST_N25Q032__3E, |
| 11621 | .total_size = 4096, |
| 11622 | .page_size = 256, |
| 11623 | /* supports SFDP */ |
| 11624 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11625 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11626 | .tested = TEST_OK_PREW, |
| 11627 | .probe = probe_spi_rdid, |
| 11628 | .probe_timing = TIMING_ZERO, |
| 11629 | .block_erasers = |
| 11630 | { |
| 11631 | { |
| 11632 | .eraseblocks = { {4 * 1024, 1024} }, |
| 11633 | .block_erase = spi_block_erase_20, |
| 11634 | }, { |
| 11635 | .eraseblocks = { {64 * 1024, 64} }, |
| 11636 | .block_erase = spi_block_erase_d8, |
| 11637 | }, { |
| 11638 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 11639 | .block_erase = spi_block_erase_c7, |
| 11640 | } |
| 11641 | }, |
| 11642 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11643 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11644 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11645 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11646 | .voltage = {2700, 3600}, |
Sergii Dmytruk | d5ba24c | 2022-07-25 00:28:35 +0300 | [diff] [blame] | 11647 | .reg_bits = |
| 11648 | { |
| 11649 | /* |
| 11650 | * There is also a volatile lock register per 64KiB sector, which is not |
| 11651 | * mutually exclusive with BP-based protection. |
| 11652 | */ |
| 11653 | .srp = {STATUS1, 7, RW}, |
| 11654 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 11655 | .tb = {STATUS1, 5, RW}, |
| 11656 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 11657 | .wp_write_cfg = spi_wp_write_cfg, |
| 11658 | .wp_read_cfg = spi_wp_read_cfg, |
| 11659 | .wp_get_ranges = spi_wp_get_available_ranges, |
Sergii Dmytruk | d5ba24c | 2022-07-25 00:28:35 +0300 | [diff] [blame] | 11660 | .decode_range = decode_range_spi25, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11661 | }, |
| 11662 | |
| 11663 | { |
| 11664 | .vendor = "Micron/Numonyx/ST", |
| 11665 | .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11666 | .bustype = BUS_SPI, |
| 11667 | .manufacture_id = ST_ID, |
| 11668 | .model_id = ST_N25Q064__1E, |
| 11669 | .total_size = 8192, |
| 11670 | .page_size = 256, |
| 11671 | /* supports SFDP */ |
| 11672 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11673 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 11674 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11675 | .probe = probe_spi_rdid, |
| 11676 | .probe_timing = TIMING_ZERO, |
| 11677 | .block_erasers = |
| 11678 | { |
| 11679 | { |
| 11680 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 11681 | .block_erase = spi_block_erase_20, |
| 11682 | }, { |
| 11683 | .eraseblocks = { {64 * 1024, 128} }, |
| 11684 | .block_erase = spi_block_erase_d8, |
| 11685 | }, { |
| 11686 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 11687 | .block_erase = spi_block_erase_c7, |
| 11688 | } |
| 11689 | }, |
| 11690 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11691 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11692 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11693 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11694 | .voltage = {1700, 2000}, |
Sergii Dmytruk | d5ba24c | 2022-07-25 00:28:35 +0300 | [diff] [blame] | 11695 | .reg_bits = |
| 11696 | { |
| 11697 | /* |
| 11698 | * There is also a volatile lock register per 64KiB sector, which is not |
| 11699 | * mutually exclusive with BP-based protection. |
| 11700 | */ |
| 11701 | .srp = {STATUS1, 7, RW}, |
| 11702 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}}, |
| 11703 | .tb = {STATUS1, 5, RW}, |
| 11704 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 11705 | .wp_write_cfg = spi_wp_write_cfg, |
| 11706 | .wp_read_cfg = spi_wp_read_cfg, |
| 11707 | .wp_get_ranges = spi_wp_get_available_ranges, |
Sergii Dmytruk | d5ba24c | 2022-07-25 00:28:35 +0300 | [diff] [blame] | 11708 | .decode_range = decode_range_spi25, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11709 | }, |
| 11710 | |
| 11711 | { |
| 11712 | .vendor = "Micron/Numonyx/ST", |
| 11713 | .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 11714 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 11715 | .manufacture_id = ST_ID, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11716 | .model_id = ST_N25Q064__3E, |
| 11717 | .total_size = 8192, |
| 11718 | .page_size = 256, |
| 11719 | /* supports SFDP */ |
| 11720 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11721 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11722 | .tested = TEST_OK_PREW, |
| 11723 | .probe = probe_spi_rdid, |
| 11724 | .probe_timing = TIMING_ZERO, |
| 11725 | .block_erasers = |
| 11726 | { |
| 11727 | { |
| 11728 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 11729 | .block_erase = spi_block_erase_20, |
| 11730 | }, { |
| 11731 | .eraseblocks = { {64 * 1024, 128} }, |
| 11732 | .block_erase = spi_block_erase_d8, |
| 11733 | }, { |
| 11734 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 11735 | .block_erase = spi_block_erase_c7, |
| 11736 | } |
| 11737 | }, |
| 11738 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11739 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11740 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11741 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11742 | .voltage = {2700, 3600}, |
Sergii Dmytruk | d5ba24c | 2022-07-25 00:28:35 +0300 | [diff] [blame] | 11743 | .reg_bits = |
| 11744 | { |
| 11745 | /* |
| 11746 | * There is also a volatile lock register per 64KiB sector, which is not |
| 11747 | * mutually exclusive with BP-based protection. |
| 11748 | */ |
| 11749 | .srp = {STATUS1, 7, RW}, |
| 11750 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}}, |
| 11751 | .tb = {STATUS1, 5, RW}, |
| 11752 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 11753 | .wp_write_cfg = spi_wp_write_cfg, |
| 11754 | .wp_read_cfg = spi_wp_read_cfg, |
| 11755 | .wp_get_ranges = spi_wp_get_available_ranges, |
Sergii Dmytruk | d5ba24c | 2022-07-25 00:28:35 +0300 | [diff] [blame] | 11756 | .decode_range = decode_range_spi25, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11757 | }, |
| 11758 | |
| 11759 | { |
| 11760 | .vendor = "Micron/Numonyx/ST", |
| 11761 | .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11762 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 11763 | .manufacture_id = ST_ID, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11764 | .model_id = ST_N25Q128__1E, |
| 11765 | .total_size = 16384, |
| 11766 | .page_size = 256, |
| 11767 | /* supports SFDP */ |
| 11768 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11769 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11770 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11771 | .probe = probe_spi_rdid, |
| 11772 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 11773 | .block_erasers = |
| 11774 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11775 | { |
| 11776 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 11777 | .block_erase = spi_block_erase_20, |
| 11778 | }, { |
| 11779 | .eraseblocks = { {64 * 1024, 256} }, |
| 11780 | .block_erase = spi_block_erase_d8, |
| 11781 | }, { |
| 11782 | .eraseblocks = { {16384 * 1024, 1} }, |
| 11783 | .block_erase = spi_block_erase_c7, |
| 11784 | } |
| 11785 | }, |
| 11786 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11787 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11788 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11789 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11790 | .voltage = {1700, 2000}, |
| 11791 | }, |
| 11792 | |
| 11793 | { |
| 11794 | .vendor = "Micron/Numonyx/ST", |
| 11795 | .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 11796 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 11797 | .manufacture_id = ST_ID, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11798 | .model_id = ST_N25Q128__3E, |
| 11799 | .total_size = 16384, |
| 11800 | .page_size = 256, |
| 11801 | /* supports SFDP */ |
| 11802 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11803 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11804 | .tested = TEST_OK_PREW, |
| 11805 | .probe = probe_spi_rdid, |
| 11806 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 11807 | .block_erasers = |
| 11808 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11809 | { |
| 11810 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 11811 | .block_erase = spi_block_erase_20, |
| 11812 | }, { |
| 11813 | .eraseblocks = { {64 * 1024, 256} }, |
| 11814 | .block_erase = spi_block_erase_d8, |
| 11815 | }, { |
| 11816 | .eraseblocks = { {16384 * 1024, 1} }, |
| 11817 | .block_erase = spi_block_erase_c7, |
| 11818 | } |
| 11819 | }, |
| 11820 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11821 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11822 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11823 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11824 | .voltage = {2700, 3600}, |
| 11825 | }, |
| 11826 | |
| 11827 | { |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 11828 | .vendor = "Micron/Numonyx/ST", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11829 | .name = "N25Q256..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11830 | .bustype = BUS_SPI, |
| 11831 | .manufacture_id = ST_ID, |
| 11832 | .model_id = ST_N25Q256__1E, |
| 11833 | .total_size = 32768, |
| 11834 | .page_size = 256, |
| 11835 | /* supports SFDP */ |
| 11836 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11837 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11838 | .tested = TEST_UNTESTED, |
| 11839 | .probe = probe_spi_rdid, |
| 11840 | .probe_timing = TIMING_ZERO, |
| 11841 | .block_erasers = |
| 11842 | { |
| 11843 | { |
| 11844 | .eraseblocks = { {4 * 1024, 8192} }, |
| 11845 | .block_erase = spi_block_erase_21, |
| 11846 | }, { |
| 11847 | .eraseblocks = { {4 * 1024, 8192} }, |
| 11848 | .block_erase = spi_block_erase_20, |
| 11849 | }, { |
| 11850 | .eraseblocks = { {64 * 1024, 512} }, |
| 11851 | .block_erase = spi_block_erase_dc, |
| 11852 | }, { |
| 11853 | .eraseblocks = { {64 * 1024, 512} }, |
| 11854 | .block_erase = spi_block_erase_d8, |
| 11855 | }, { |
| 11856 | .eraseblocks = { {32768 * 1024, 1} }, |
| 11857 | .block_erase = spi_block_erase_c7, |
| 11858 | } |
| 11859 | }, |
| 11860 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11861 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11862 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11863 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11864 | .voltage = {1700, 2000}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 11865 | .prepare_access = spi_prepare_4ba, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11866 | }, |
| 11867 | |
| 11868 | { |
| 11869 | .vendor = "Micron/Numonyx/ST", |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 11870 | .name = "N25Q256..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 11871 | .bustype = BUS_SPI, |
| 11872 | .manufacture_id = ST_ID, |
| 11873 | .model_id = ST_N25Q256__3E, |
| 11874 | .total_size = 32768, |
| 11875 | .page_size = 256, |
| 11876 | /* supports SFDP */ |
| 11877 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11878 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11879 | .tested = TEST_UNTESTED, |
| 11880 | .probe = probe_spi_rdid, |
| 11881 | .probe_timing = TIMING_ZERO, |
| 11882 | .block_erasers = |
| 11883 | { |
| 11884 | { |
| 11885 | .eraseblocks = { {4 * 1024, 8192} }, |
| 11886 | .block_erase = spi_block_erase_21, |
| 11887 | }, { |
| 11888 | .eraseblocks = { {4 * 1024, 8192} }, |
| 11889 | .block_erase = spi_block_erase_20, |
| 11890 | }, { |
| 11891 | .eraseblocks = { {64 * 1024, 512} }, |
| 11892 | .block_erase = spi_block_erase_dc, |
| 11893 | }, { |
| 11894 | .eraseblocks = { {64 * 1024, 512} }, |
| 11895 | .block_erase = spi_block_erase_d8, |
| 11896 | }, { |
| 11897 | .eraseblocks = { {32768 * 1024, 1} }, |
| 11898 | .block_erase = spi_block_erase_c7, |
| 11899 | } |
| 11900 | }, |
| 11901 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11902 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11903 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11904 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11905 | .voltage = {2700, 3600}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 11906 | .prepare_access = spi_prepare_4ba, |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 11907 | }, |
| 11908 | |
| 11909 | { |
| 11910 | .vendor = "Micron/Numonyx/ST", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11911 | .name = "N25Q512..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */ |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 11912 | .bustype = BUS_SPI, |
| 11913 | .manufacture_id = ST_ID, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11914 | .model_id = ST_N25Q512__1G, |
| 11915 | .total_size = 65536, |
| 11916 | .page_size = 256, |
| 11917 | /* supports SFDP */ |
| 11918 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11919 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11920 | .tested = TEST_UNTESTED, |
| 11921 | .probe = probe_spi_rdid, |
| 11922 | .probe_timing = TIMING_ZERO, |
| 11923 | .block_erasers = |
| 11924 | { |
| 11925 | { |
| 11926 | .eraseblocks = { {4 * 1024, 16384} }, |
| 11927 | .block_erase = spi_block_erase_21, |
| 11928 | }, { |
| 11929 | .eraseblocks = { {4 * 1024, 16384} }, |
| 11930 | .block_erase = spi_block_erase_20, |
| 11931 | }, { |
| 11932 | .eraseblocks = { {64 * 1024, 1024} }, |
| 11933 | .block_erase = spi_block_erase_dc, |
| 11934 | }, { |
| 11935 | .eraseblocks = { {64 * 1024, 1024} }, |
| 11936 | .block_erase = spi_block_erase_d8, |
| 11937 | }, { |
| 11938 | .eraseblocks = { {32768 * 1024, 2} }, |
| 11939 | .block_erase = spi_block_erase_c4, |
| 11940 | } |
| 11941 | }, |
| 11942 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11943 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11944 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11945 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11946 | .voltage = {1700, 2000}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 11947 | .prepare_access = spi_prepare_4ba, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11948 | }, |
| 11949 | |
| 11950 | { |
| 11951 | .vendor = "Micron/Numonyx/ST", |
| 11952 | .name = "N25Q512..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */ |
| 11953 | .bustype = BUS_SPI, |
| 11954 | .manufacture_id = ST_ID, |
| 11955 | .model_id = ST_N25Q512__3G, |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 11956 | .total_size = 65536, |
| 11957 | .page_size = 256, |
| 11958 | /* supports SFDP */ |
| 11959 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11960 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11961 | .tested = TEST_OK_PREW, |
| 11962 | .probe = probe_spi_rdid, |
| 11963 | .probe_timing = TIMING_ZERO, |
| 11964 | .block_erasers = |
| 11965 | { |
| 11966 | { |
| 11967 | .eraseblocks = { {4 * 1024, 16384} }, |
| 11968 | .block_erase = spi_block_erase_21, |
| 11969 | }, { |
| 11970 | .eraseblocks = { {4 * 1024, 16384} }, |
| 11971 | .block_erase = spi_block_erase_20, |
| 11972 | }, { |
| 11973 | .eraseblocks = { {64 * 1024, 1024} }, |
| 11974 | .block_erase = spi_block_erase_dc, |
| 11975 | }, { |
| 11976 | .eraseblocks = { {64 * 1024, 1024} }, |
| 11977 | .block_erase = spi_block_erase_d8, |
| 11978 | }, { |
Jacob Creedon | e8e7b0e | 2019-07-22 12:21:22 -0700 | [diff] [blame] | 11979 | .eraseblocks = { {32768 * 1024, 2} }, |
| 11980 | .block_erase = spi_block_erase_c4, |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 11981 | } |
| 11982 | }, |
| 11983 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11984 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11985 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11986 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11987 | .voltage = {2700, 3600}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 11988 | .prepare_access = spi_prepare_4ba, |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 11989 | }, |
| 11990 | |
| 11991 | { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 11992 | .vendor = "Micron", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11993 | .name = "MT25QL01G", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
| 11994 | .bustype = BUS_SPI, |
| 11995 | .manufacture_id = ST_ID, |
| 11996 | .model_id = ST_N25Q00A__3G, |
| 11997 | .total_size = 131072, |
| 11998 | .page_size = 256, |
| 11999 | /* supports SFDP */ |
| 12000 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 12001 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 12002 | .tested = TEST_OK_PREW, |
| 12003 | .probe = probe_spi_rdid, |
| 12004 | .probe_timing = TIMING_ZERO, |
| 12005 | .block_erasers = |
| 12006 | { |
| 12007 | { |
| 12008 | .eraseblocks = { {4 * 1024, 32768} }, |
| 12009 | .block_erase = spi_block_erase_21, |
| 12010 | }, { |
| 12011 | .eraseblocks = { {4 * 1024, 32768} }, |
| 12012 | .block_erase = spi_block_erase_20, |
| 12013 | }, { |
| 12014 | .eraseblocks = { {32 * 1024, 4096} }, |
| 12015 | .block_erase = spi_block_erase_5c, |
| 12016 | }, { |
| 12017 | .eraseblocks = { {32 * 1024, 4096} }, |
| 12018 | .block_erase = spi_block_erase_52, |
| 12019 | }, { |
| 12020 | .eraseblocks = { {64 * 1024, 2048} }, |
| 12021 | .block_erase = spi_block_erase_dc, |
| 12022 | }, { |
| 12023 | .eraseblocks = { {64 * 1024, 2048} }, |
| 12024 | .block_erase = spi_block_erase_d8, |
| 12025 | }, { |
| 12026 | .eraseblocks = { {65536 * 1024, 2} }, |
| 12027 | .block_erase = spi_block_erase_c4, |
| 12028 | } |
| 12029 | }, |
| 12030 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 12031 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 12032 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12033 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12034 | .voltage = {2700, 3600}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 12035 | .prepare_access = spi_prepare_4ba, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12036 | }, |
| 12037 | |
| 12038 | { |
| 12039 | .vendor = "Micron", |
| 12040 | .name = "MT25QU01G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 12041 | .bustype = BUS_SPI, |
| 12042 | .manufacture_id = ST_ID, |
| 12043 | .model_id = ST_N25Q00A__1G, |
| 12044 | .total_size = 131072, |
| 12045 | .page_size = 256, |
| 12046 | /* supports SFDP */ |
| 12047 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 12048 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 12049 | .tested = TEST_UNTESTED, |
| 12050 | .probe = probe_spi_rdid, |
| 12051 | .probe_timing = TIMING_ZERO, |
| 12052 | .block_erasers = |
| 12053 | { |
| 12054 | { |
| 12055 | .eraseblocks = { {4 * 1024, 32768} }, |
| 12056 | .block_erase = spi_block_erase_21, |
| 12057 | }, { |
| 12058 | .eraseblocks = { {4 * 1024, 32768} }, |
| 12059 | .block_erase = spi_block_erase_20, |
| 12060 | }, { |
| 12061 | .eraseblocks = { {32 * 1024, 4096} }, |
| 12062 | .block_erase = spi_block_erase_5c, |
| 12063 | }, { |
| 12064 | .eraseblocks = { {32 * 1024, 4096} }, |
| 12065 | .block_erase = spi_block_erase_52, |
| 12066 | }, { |
| 12067 | .eraseblocks = { {64 * 1024, 2048} }, |
| 12068 | .block_erase = spi_block_erase_dc, |
| 12069 | }, { |
| 12070 | .eraseblocks = { {64 * 1024, 2048} }, |
| 12071 | .block_erase = spi_block_erase_d8, |
| 12072 | }, { |
| 12073 | .eraseblocks = { {65536 * 1024, 2} }, |
| 12074 | .block_erase = spi_block_erase_c4, |
| 12075 | } |
| 12076 | }, |
| 12077 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 12078 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 12079 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12080 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12081 | .voltage = {1700, 2000}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 12082 | .prepare_access = spi_prepare_4ba, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12083 | }, |
| 12084 | |
| 12085 | { |
| 12086 | .vendor = "Micron", |
| 12087 | .name = "MT25QL02G", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
| 12088 | .bustype = BUS_SPI, |
| 12089 | .manufacture_id = ST_ID, |
| 12090 | .model_id = ST_MT25QL02G, |
| 12091 | .total_size = 262144, |
| 12092 | .page_size = 256, |
| 12093 | /* supports SFDP */ |
| 12094 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 12095 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 12096 | .tested = TEST_UNTESTED, |
| 12097 | .probe = probe_spi_rdid, |
| 12098 | .probe_timing = TIMING_ZERO, |
| 12099 | .block_erasers = |
| 12100 | { |
| 12101 | { |
| 12102 | .eraseblocks = { {4 * 1024, 65536} }, |
| 12103 | .block_erase = spi_block_erase_21, |
| 12104 | }, { |
| 12105 | .eraseblocks = { {4 * 1024, 65536} }, |
| 12106 | .block_erase = spi_block_erase_20, |
| 12107 | }, { |
| 12108 | .eraseblocks = { {32 * 1024, 8192} }, |
| 12109 | .block_erase = spi_block_erase_5c, |
| 12110 | }, { |
| 12111 | .eraseblocks = { {32 * 1024, 8192} }, |
| 12112 | .block_erase = spi_block_erase_52, |
| 12113 | }, { |
| 12114 | .eraseblocks = { {64 * 1024, 4096} }, |
| 12115 | .block_erase = spi_block_erase_dc, |
| 12116 | }, { |
| 12117 | .eraseblocks = { {64 * 1024, 4096} }, |
| 12118 | .block_erase = spi_block_erase_d8, |
| 12119 | }, { |
| 12120 | .eraseblocks = { {65536 * 1024, 4} }, |
| 12121 | .block_erase = spi_block_erase_c4, |
| 12122 | } |
| 12123 | }, |
| 12124 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 12125 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 12126 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12127 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12128 | .voltage = {2700, 3600}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 12129 | .prepare_access = spi_prepare_4ba, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12130 | }, |
| 12131 | |
| 12132 | { |
| 12133 | .vendor = "Micron", |
| 12134 | .name = "MT25QU02G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 12135 | .bustype = BUS_SPI, |
| 12136 | .manufacture_id = ST_ID, |
| 12137 | .model_id = ST_MT25QU02G, |
| 12138 | .total_size = 262144, |
| 12139 | .page_size = 256, |
| 12140 | /* supports SFDP */ |
| 12141 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 12142 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 12143 | .tested = TEST_UNTESTED, |
| 12144 | .probe = probe_spi_rdid, |
| 12145 | .probe_timing = TIMING_ZERO, |
| 12146 | .block_erasers = |
| 12147 | { |
| 12148 | { |
| 12149 | .eraseblocks = { {4 * 1024, 65536} }, |
| 12150 | .block_erase = spi_block_erase_21, |
| 12151 | }, { |
| 12152 | .eraseblocks = { {4 * 1024, 65536} }, |
| 12153 | .block_erase = spi_block_erase_20, |
| 12154 | }, { |
| 12155 | .eraseblocks = { {32 * 1024, 8192} }, |
| 12156 | .block_erase = spi_block_erase_5c, |
| 12157 | }, { |
| 12158 | .eraseblocks = { {32 * 1024, 8192} }, |
| 12159 | .block_erase = spi_block_erase_52, |
| 12160 | }, { |
| 12161 | .eraseblocks = { {64 * 1024, 4096} }, |
| 12162 | .block_erase = spi_block_erase_dc, |
| 12163 | }, { |
| 12164 | .eraseblocks = { {64 * 1024, 4096} }, |
| 12165 | .block_erase = spi_block_erase_d8, |
| 12166 | }, { |
| 12167 | .eraseblocks = { {65536 * 1024, 4} }, |
| 12168 | .block_erase = spi_block_erase_c4, |
| 12169 | } |
| 12170 | }, |
| 12171 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 12172 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 12173 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12174 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12175 | .voltage = {1700, 2000}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 12176 | .prepare_access = spi_prepare_4ba, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12177 | }, |
| 12178 | |
| 12179 | { |
| 12180 | .vendor = "Micron", |
| 12181 | .name = "MT25QU128", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 12182 | .bustype = BUS_SPI, |
| 12183 | .manufacture_id = ST_ID, |
| 12184 | .model_id = ST_N25Q128__1E, |
| 12185 | .total_size = 16384, |
| 12186 | .page_size = 256, |
| 12187 | /* supports SFDP */ |
| 12188 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
Nico Huber | 48dc090 | 2023-03-05 17:20:55 +0100 | [diff] [blame] | 12189 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12190 | .tested = TEST_UNTESTED, |
| 12191 | .probe = probe_spi_rdid, |
| 12192 | .probe_timing = TIMING_ZERO, |
| 12193 | .block_erasers = |
| 12194 | { |
| 12195 | { |
| 12196 | .eraseblocks = { {4 * 1024, 4096} }, |
| 12197 | .block_erase = spi_block_erase_20, |
| 12198 | }, { |
| 12199 | .eraseblocks = { {32 * 1024, 512} }, |
| 12200 | .block_erase = spi_block_erase_52, |
| 12201 | }, { |
| 12202 | .eraseblocks = { {64 * 1024, 256} }, |
| 12203 | .block_erase = spi_block_erase_d8, |
| 12204 | }, { |
| 12205 | .eraseblocks = { {16384 * 1024, 1} }, |
| 12206 | .block_erase = spi_block_erase_c7, |
| 12207 | }, { |
| 12208 | .eraseblocks = { {16384 * 1024, 1} }, |
| 12209 | .block_erase = spi_block_erase_60, |
| 12210 | } |
| 12211 | }, |
| 12212 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 12213 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 12214 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12215 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12216 | .voltage = {1700, 2000}, |
| 12217 | }, |
| 12218 | |
| 12219 | { |
| 12220 | .vendor = "Micron", |
| 12221 | .name = "MT25QL128", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
| 12222 | .bustype = BUS_SPI, |
| 12223 | .manufacture_id = ST_ID, |
| 12224 | .model_id = ST_N25Q128__3E, |
| 12225 | .total_size = 16384, |
| 12226 | .page_size = 256, |
| 12227 | /* supports SFDP */ |
| 12228 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
Rick Altherr | 1e56360 | 2022-12-22 10:25:34 -0800 | [diff] [blame] | 12229 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12230 | .tested = TEST_OK_PREW, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12231 | .probe = probe_spi_rdid, |
| 12232 | .probe_timing = TIMING_ZERO, |
| 12233 | .block_erasers = |
| 12234 | { |
| 12235 | { |
| 12236 | .eraseblocks = { {4 * 1024, 4096} }, |
| 12237 | .block_erase = spi_block_erase_20, |
| 12238 | }, { |
| 12239 | .eraseblocks = { {32 * 1024, 512} }, |
| 12240 | .block_erase = spi_block_erase_52, |
| 12241 | }, { |
| 12242 | .eraseblocks = { {64 * 1024, 256} }, |
| 12243 | .block_erase = spi_block_erase_d8, |
| 12244 | }, { |
| 12245 | .eraseblocks = { {16384 * 1024, 1} }, |
| 12246 | .block_erase = spi_block_erase_c7, |
| 12247 | }, { |
| 12248 | .eraseblocks = { {16384 * 1024, 1} }, |
| 12249 | .block_erase = spi_block_erase_60, |
| 12250 | } |
| 12251 | }, |
| 12252 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 12253 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 12254 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12255 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12256 | .voltage = {2700, 3600}, |
| 12257 | }, |
| 12258 | |
| 12259 | { |
| 12260 | .vendor = "Micron", |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 12261 | .name = "MT25QL256", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12262 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 12263 | .manufacture_id = ST_ID, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12264 | .model_id = ST_N25Q256__3E, |
| 12265 | .total_size = 32768, |
| 12266 | .page_size = 256, |
| 12267 | /* supports SFDP */ |
| 12268 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 12269 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
Simon Buhrow | b7014f9 | 2021-02-15 13:16:57 +0100 | [diff] [blame] | 12270 | .tested = TEST_OK_PREW, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12271 | .probe = probe_spi_rdid, |
| 12272 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 12273 | .block_erasers = |
| 12274 | { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12275 | { |
| 12276 | .eraseblocks = { {4 * 1024, 8192} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 12277 | .block_erase = spi_block_erase_21, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12278 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 12279 | .eraseblocks = { {4 * 1024, 8192} }, |
| 12280 | .block_erase = spi_block_erase_20, |
| 12281 | }, { |
Jacob Creedon | 045b97e | 2019-07-22 12:26:56 -0700 | [diff] [blame] | 12282 | .eraseblocks = { {32 * 1024, 1024} }, |
| 12283 | .block_erase = spi_block_erase_5c, |
| 12284 | }, { |
| 12285 | .eraseblocks = { {32 * 1024, 1024} }, |
| 12286 | .block_erase = spi_block_erase_52, |
| 12287 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12288 | .eraseblocks = { {64 * 1024, 512} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 12289 | .block_erase = spi_block_erase_dc, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12290 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 12291 | .eraseblocks = { {64 * 1024, 512} }, |
| 12292 | .block_erase = spi_block_erase_d8, |
| 12293 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12294 | .eraseblocks = { {32768 * 1024, 1} }, |
| 12295 | .block_erase = spi_block_erase_c7, |
Jacob Creedon | 045b97e | 2019-07-22 12:26:56 -0700 | [diff] [blame] | 12296 | }, { |
| 12297 | .eraseblocks = { {32768 * 1024, 1} }, |
| 12298 | .block_erase = spi_block_erase_60, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12299 | } |
| 12300 | }, |
| 12301 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 12302 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 12303 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12304 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12305 | .voltage = {2700, 3600}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 12306 | .prepare_access = spi_prepare_4ba, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12307 | }, |
| 12308 | |
| 12309 | { |
| 12310 | .vendor = "Micron", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12311 | .name = "MT25QU256", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 12312 | .bustype = BUS_SPI, |
| 12313 | .manufacture_id = ST_ID, |
| 12314 | .model_id = ST_N25Q256__1E, |
| 12315 | .total_size = 32768, |
| 12316 | .page_size = 256, |
| 12317 | /* supports SFDP */ |
| 12318 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 12319 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
Angel Pons | 5905258 | 2022-03-08 15:23:58 +0100 | [diff] [blame] | 12320 | .tested = TEST_OK_PREW, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12321 | .probe = probe_spi_rdid, |
| 12322 | .probe_timing = TIMING_ZERO, |
| 12323 | .block_erasers = |
| 12324 | { |
| 12325 | { |
| 12326 | .eraseblocks = { {4 * 1024, 8192} }, |
| 12327 | .block_erase = spi_block_erase_21, |
| 12328 | }, { |
| 12329 | .eraseblocks = { {4 * 1024, 8192} }, |
| 12330 | .block_erase = spi_block_erase_20, |
| 12331 | }, { |
| 12332 | .eraseblocks = { {32 * 1024, 1024} }, |
| 12333 | .block_erase = spi_block_erase_5c, |
| 12334 | }, { |
| 12335 | .eraseblocks = { {32 * 1024, 1024} }, |
| 12336 | .block_erase = spi_block_erase_52, |
| 12337 | }, { |
| 12338 | .eraseblocks = { {64 * 1024, 512} }, |
| 12339 | .block_erase = spi_block_erase_dc, |
| 12340 | }, { |
| 12341 | .eraseblocks = { {64 * 1024, 512} }, |
| 12342 | .block_erase = spi_block_erase_d8, |
| 12343 | }, { |
| 12344 | .eraseblocks = { {32768 * 1024, 1} }, |
| 12345 | .block_erase = spi_block_erase_c7, |
| 12346 | }, { |
| 12347 | .eraseblocks = { {32768 * 1024, 1} }, |
| 12348 | .block_erase = spi_block_erase_60, |
| 12349 | } |
| 12350 | }, |
| 12351 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 12352 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 12353 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12354 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12355 | .voltage = {1700, 2000}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 12356 | .prepare_access = spi_prepare_4ba, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12357 | }, |
| 12358 | |
| 12359 | { |
| 12360 | .vendor = "Micron", |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 12361 | .name = "MT25QL512", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12362 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 12363 | .manufacture_id = ST_ID, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12364 | .model_id = ST_N25Q512__3G, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12365 | .total_size = 65536, |
| 12366 | .page_size = 256, |
| 12367 | /* supports SFDP */ |
| 12368 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 12369 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
Angel Pons | 3ed5a35 | 2018-09-30 16:31:09 +0200 | [diff] [blame] | 12370 | .tested = TEST_OK_PREW, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12371 | .probe = probe_spi_rdid, |
| 12372 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 12373 | .block_erasers = |
| 12374 | { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12375 | { |
| 12376 | .eraseblocks = { {4 * 1024, 16384} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 12377 | .block_erase = spi_block_erase_21, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12378 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 12379 | .eraseblocks = { {4 * 1024, 16384} }, |
| 12380 | .block_erase = spi_block_erase_20, |
| 12381 | }, { |
Jacob Creedon | 045b97e | 2019-07-22 12:26:56 -0700 | [diff] [blame] | 12382 | .eraseblocks = { {32 * 1024, 2048} }, |
| 12383 | .block_erase = spi_block_erase_5c, |
| 12384 | }, { |
| 12385 | .eraseblocks = { {32 * 1024, 2048} }, |
| 12386 | .block_erase = spi_block_erase_52, |
| 12387 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12388 | .eraseblocks = { {64 * 1024, 1024} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 12389 | .block_erase = spi_block_erase_dc, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12390 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 12391 | .eraseblocks = { {64 * 1024, 1024} }, |
| 12392 | .block_erase = spi_block_erase_d8, |
| 12393 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12394 | .eraseblocks = { {65536 * 1024, 1} }, |
| 12395 | .block_erase = spi_block_erase_c7, |
Jacob Creedon | 045b97e | 2019-07-22 12:26:56 -0700 | [diff] [blame] | 12396 | }, { |
| 12397 | .eraseblocks = { {65536 * 1024, 1} }, |
| 12398 | .block_erase = spi_block_erase_60, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12399 | } |
| 12400 | }, |
| 12401 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 12402 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 12403 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12404 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12405 | .voltage = {2700, 3600}, |
Sergii Dmytruk | d5ba24c | 2022-07-25 00:28:35 +0300 | [diff] [blame] | 12406 | .reg_bits = |
| 12407 | { |
| 12408 | .srp = {STATUS1, 7, RW}, |
| 12409 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}}, |
| 12410 | .tb = {STATUS1, 5, RW}, |
| 12411 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 12412 | .wp_write_cfg = spi_wp_write_cfg, |
| 12413 | .wp_read_cfg = spi_wp_read_cfg, |
| 12414 | .wp_get_ranges = spi_wp_get_available_ranges, |
Sergii Dmytruk | d5ba24c | 2022-07-25 00:28:35 +0300 | [diff] [blame] | 12415 | .decode_range = decode_range_spi25, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 12416 | .prepare_access = spi_prepare_4ba, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12417 | }, |
| 12418 | |
| 12419 | { |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12420 | .vendor = "Micron", |
| 12421 | .name = "MT25QU512", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 12422 | .bustype = BUS_SPI, |
| 12423 | .manufacture_id = ST_ID, |
| 12424 | .model_id = ST_N25Q512__1G, |
| 12425 | .total_size = 65536, |
| 12426 | .page_size = 256, |
| 12427 | /* supports SFDP */ |
| 12428 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 12429 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 12430 | .tested = TEST_OK_PREW, |
| 12431 | .probe = probe_spi_rdid, |
| 12432 | .probe_timing = TIMING_ZERO, |
| 12433 | .block_erasers = |
| 12434 | { |
| 12435 | { |
| 12436 | .eraseblocks = { {4 * 1024, 16384} }, |
| 12437 | .block_erase = spi_block_erase_21, |
| 12438 | }, { |
| 12439 | .eraseblocks = { {4 * 1024, 16384} }, |
| 12440 | .block_erase = spi_block_erase_20, |
| 12441 | }, { |
| 12442 | .eraseblocks = { {32 * 1024, 2048} }, |
| 12443 | .block_erase = spi_block_erase_5c, |
| 12444 | }, { |
| 12445 | .eraseblocks = { {32 * 1024, 2048} }, |
| 12446 | .block_erase = spi_block_erase_52, |
| 12447 | }, { |
| 12448 | .eraseblocks = { {64 * 1024, 1024} }, |
| 12449 | .block_erase = spi_block_erase_dc, |
| 12450 | }, { |
| 12451 | .eraseblocks = { {64 * 1024, 1024} }, |
| 12452 | .block_erase = spi_block_erase_d8, |
| 12453 | }, { |
| 12454 | .eraseblocks = { {65536 * 1024, 1} }, |
| 12455 | .block_erase = spi_block_erase_c7, |
| 12456 | }, { |
| 12457 | .eraseblocks = { {65536 * 1024, 1} }, |
| 12458 | .block_erase = spi_block_erase_60, |
| 12459 | } |
| 12460 | }, |
| 12461 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 12462 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 12463 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12464 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12465 | .voltage = {1700, 2000}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 12466 | .prepare_access = spi_prepare_4ba, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12467 | }, |
| 12468 | |
| 12469 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12470 | .vendor = "MoselVitelic", |
| 12471 | .name = "V29C51000B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12472 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12473 | .manufacture_id = SYNCMOS_MVC_ID, |
| 12474 | .model_id = MVC_V29C51000B, |
| 12475 | .total_size = 64, |
| 12476 | .page_size = 512, |
| 12477 | .feature_bits = FEATURE_EITHER_RESET, |
| 12478 | .tested = TEST_UNTESTED, |
| 12479 | .probe = probe_jedec, |
| 12480 | .probe_timing = TIMING_ZERO, |
| 12481 | .block_erasers = |
| 12482 | { |
| 12483 | { |
| 12484 | .eraseblocks = { {512, 128} }, |
| 12485 | .block_erase = erase_sector_jedec, |
| 12486 | }, { |
| 12487 | .eraseblocks = { {64 * 1024, 1} }, |
| 12488 | .block_erase = erase_chip_block_jedec, |
| 12489 | }, |
| 12490 | }, |
| 12491 | .write = write_jedec_1, |
| 12492 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12493 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 12494 | .prepare_access = prepare_memory_access, |
| 12495 | .finish_access = finish_memory_access, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12496 | }, |
| 12497 | |
| 12498 | { |
| 12499 | .vendor = "MoselVitelic", |
| 12500 | .name = "V29C51000T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12501 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12502 | .manufacture_id = SYNCMOS_MVC_ID, |
| 12503 | .model_id = MVC_V29C51000T, |
| 12504 | .total_size = 64, |
| 12505 | .page_size = 512, |
| 12506 | .feature_bits = FEATURE_EITHER_RESET, |
| 12507 | .tested = TEST_UNTESTED, |
| 12508 | .probe = probe_jedec, |
| 12509 | .probe_timing = TIMING_ZERO, |
| 12510 | .block_erasers = |
| 12511 | { |
| 12512 | { |
| 12513 | .eraseblocks = { {512, 128} }, |
| 12514 | .block_erase = erase_sector_jedec, |
| 12515 | }, { |
| 12516 | .eraseblocks = { {64 * 1024, 1} }, |
| 12517 | .block_erase = erase_chip_block_jedec, |
| 12518 | }, |
| 12519 | }, |
| 12520 | .write = write_jedec_1, |
| 12521 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12522 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 12523 | .prepare_access = prepare_memory_access, |
| 12524 | .finish_access = finish_memory_access, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12525 | }, |
| 12526 | |
| 12527 | { |
| 12528 | .vendor = "MoselVitelic", |
| 12529 | .name = "V29C51400B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12530 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12531 | .manufacture_id = SYNCMOS_MVC_ID, |
| 12532 | .model_id = MVC_V29C51400B, |
| 12533 | .total_size = 512, |
| 12534 | .page_size = 1024, |
| 12535 | .feature_bits = FEATURE_EITHER_RESET, |
| 12536 | .tested = TEST_UNTESTED, |
| 12537 | .probe = probe_jedec, |
| 12538 | .probe_timing = TIMING_ZERO, |
| 12539 | .block_erasers = |
| 12540 | { |
| 12541 | { |
| 12542 | .eraseblocks = { {1024, 512} }, |
| 12543 | .block_erase = erase_sector_jedec, |
| 12544 | }, { |
| 12545 | .eraseblocks = { {512 * 1024, 1} }, |
| 12546 | .block_erase = erase_chip_block_jedec, |
| 12547 | }, |
| 12548 | }, |
| 12549 | .write = write_jedec_1, |
| 12550 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12551 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 12552 | .prepare_access = prepare_memory_access, |
| 12553 | .finish_access = finish_memory_access, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12554 | }, |
| 12555 | |
| 12556 | { |
| 12557 | .vendor = "MoselVitelic", |
| 12558 | .name = "V29C51400T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12559 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12560 | .manufacture_id = SYNCMOS_MVC_ID, |
| 12561 | .model_id = MVC_V29C51400T, |
| 12562 | .total_size = 512, |
| 12563 | .page_size = 1024, |
| 12564 | .feature_bits = FEATURE_EITHER_RESET, |
| 12565 | .tested = TEST_UNTESTED, |
| 12566 | .probe = probe_jedec, |
| 12567 | .probe_timing = TIMING_ZERO, |
| 12568 | .block_erasers = |
| 12569 | { |
| 12570 | { |
| 12571 | .eraseblocks = { {1024, 512} }, |
| 12572 | .block_erase = erase_sector_jedec, |
| 12573 | }, { |
| 12574 | .eraseblocks = { {512 * 1024, 1} }, |
| 12575 | .block_erase = erase_chip_block_jedec, |
| 12576 | }, |
| 12577 | }, |
| 12578 | .write = write_jedec_1, |
| 12579 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12580 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 12581 | .prepare_access = prepare_memory_access, |
| 12582 | .finish_access = finish_memory_access, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12583 | }, |
| 12584 | |
| 12585 | { |
| 12586 | .vendor = "MoselVitelic", |
| 12587 | .name = "V29LC51000", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12588 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12589 | .manufacture_id = SYNCMOS_MVC_ID, |
| 12590 | .model_id = MVC_V29LC51000, |
| 12591 | .total_size = 64, |
| 12592 | .page_size = 512, |
| 12593 | .feature_bits = FEATURE_EITHER_RESET, |
| 12594 | .tested = TEST_UNTESTED, |
| 12595 | .probe = probe_jedec, |
| 12596 | .probe_timing = TIMING_ZERO, |
| 12597 | .block_erasers = |
| 12598 | { |
| 12599 | { |
| 12600 | .eraseblocks = { {512, 128} }, |
| 12601 | .block_erase = erase_sector_jedec, |
| 12602 | }, { |
| 12603 | .eraseblocks = { {64 * 1024, 1} }, |
| 12604 | .block_erase = erase_chip_block_jedec, |
| 12605 | }, |
| 12606 | }, |
| 12607 | .write = write_jedec_1, |
| 12608 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12609 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 12610 | .prepare_access = prepare_memory_access, |
| 12611 | .finish_access = finish_memory_access, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12612 | }, |
| 12613 | |
| 12614 | { |
| 12615 | .vendor = "MoselVitelic", |
| 12616 | .name = "V29LC51001", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12617 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12618 | .manufacture_id = SYNCMOS_MVC_ID, |
| 12619 | .model_id = MVC_V29LC51001, |
| 12620 | .total_size = 128, |
| 12621 | .page_size = 512, |
| 12622 | .feature_bits = FEATURE_EITHER_RESET, |
| 12623 | .tested = TEST_UNTESTED, |
| 12624 | .probe = probe_jedec, |
| 12625 | .probe_timing = TIMING_ZERO, |
| 12626 | .block_erasers = |
| 12627 | { |
| 12628 | { |
| 12629 | .eraseblocks = { {512, 256} }, |
| 12630 | .block_erase = erase_sector_jedec, |
| 12631 | }, { |
| 12632 | .eraseblocks = { {128 * 1024, 1} }, |
| 12633 | .block_erase = erase_chip_block_jedec, |
| 12634 | }, |
| 12635 | }, |
| 12636 | .write = write_jedec_1, |
| 12637 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12638 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 12639 | .prepare_access = prepare_memory_access, |
| 12640 | .finish_access = finish_memory_access, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12641 | }, |
| 12642 | |
| 12643 | { |
| 12644 | .vendor = "MoselVitelic", |
| 12645 | .name = "V29LC51002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12646 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12647 | .manufacture_id = SYNCMOS_MVC_ID, |
| 12648 | .model_id = MVC_V29LC51002, |
| 12649 | .total_size = 256, |
| 12650 | .page_size = 512, |
| 12651 | .feature_bits = FEATURE_EITHER_RESET, |
| 12652 | .tested = TEST_UNTESTED, |
| 12653 | .probe = probe_jedec, |
| 12654 | .probe_timing = TIMING_ZERO, |
| 12655 | .block_erasers = |
| 12656 | { |
| 12657 | { |
| 12658 | .eraseblocks = { {512, 512} }, |
| 12659 | .block_erase = erase_sector_jedec, |
| 12660 | }, { |
| 12661 | .eraseblocks = { {256 * 1024, 1} }, |
| 12662 | .block_erase = erase_chip_block_jedec, |
| 12663 | }, |
| 12664 | }, |
| 12665 | .write = write_jedec_1, |
| 12666 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12667 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 12668 | .prepare_access = prepare_memory_access, |
| 12669 | .finish_access = finish_memory_access, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12670 | }, |
| 12671 | |
| 12672 | { |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 12673 | .vendor = "Nantronics", |
| 12674 | .name = "N25S10", |
| 12675 | .bustype = BUS_SPI, |
| 12676 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 12677 | .model_id = NANTRONICS_N25S10, |
| 12678 | .total_size = 128, |
| 12679 | .page_size = 256, |
| 12680 | .feature_bits = FEATURE_WRSR_WREN, |
| 12681 | .tested = TEST_UNTESTED, |
| 12682 | .probe = probe_spi_rdid, |
| 12683 | .probe_timing = TIMING_ZERO, |
| 12684 | .block_erasers = |
| 12685 | { |
| 12686 | { |
| 12687 | .eraseblocks = { {4 * 1024, 32} }, |
| 12688 | .block_erase = spi_block_erase_20, |
| 12689 | }, { |
| 12690 | .eraseblocks = { {4 * 1024, 32} }, |
| 12691 | .block_erase = spi_block_erase_d7, |
| 12692 | }, { |
| 12693 | .eraseblocks = { {32 * 1024, 4} }, |
| 12694 | .block_erase = spi_block_erase_52, |
| 12695 | }, { |
| 12696 | .eraseblocks = { {64 * 1024, 2} }, |
| 12697 | .block_erase = spi_block_erase_d8, |
| 12698 | }, { |
| 12699 | .eraseblocks = { {128 * 1024, 1} }, |
| 12700 | .block_erase = spi_block_erase_60, |
| 12701 | }, { |
| 12702 | .eraseblocks = { {128 * 1024, 1} }, |
| 12703 | .block_erase = spi_block_erase_c7, |
| 12704 | } |
| 12705 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12706 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 12707 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12708 | .write = spi_chip_write_256, |
| 12709 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 12710 | .voltage = {2700, 3600}, |
| 12711 | }, |
| 12712 | |
| 12713 | { |
| 12714 | .vendor = "Nantronics", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12715 | .name = "N25S16", |
| 12716 | .bustype = BUS_SPI, |
| 12717 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 12718 | .model_id = NANTRONICS_N25S16, |
| 12719 | .total_size = 2048, |
| 12720 | .page_size = 256, |
| 12721 | .feature_bits = FEATURE_WRSR_WREN, |
| 12722 | .tested = TEST_UNTESTED, |
| 12723 | .probe = probe_spi_rdid, |
| 12724 | .probe_timing = TIMING_ZERO, |
| 12725 | .block_erasers = |
| 12726 | { |
| 12727 | { |
| 12728 | .eraseblocks = { {4 * 1024, 512} }, |
| 12729 | .block_erase = spi_block_erase_20, |
| 12730 | }, { |
| 12731 | .eraseblocks = { {64 * 1024, 32} }, |
| 12732 | .block_erase = spi_block_erase_d8, |
| 12733 | }, { |
| 12734 | .eraseblocks = { {2048 * 1024, 1} }, |
| 12735 | .block_erase = spi_block_erase_60, |
| 12736 | }, { |
| 12737 | .eraseblocks = { {2048 * 1024, 1} }, |
| 12738 | .block_erase = spi_block_erase_c7, |
| 12739 | } |
| 12740 | }, |
| 12741 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 12742 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12743 | .write = spi_chip_write_256, |
| 12744 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 12745 | .voltage = {2700, 3600}, |
| 12746 | }, |
| 12747 | |
| 12748 | { |
| 12749 | .vendor = "Nantronics", |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 12750 | .name = "N25S20", |
| 12751 | .bustype = BUS_SPI, |
| 12752 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 12753 | .model_id = NANTRONICS_N25S20, |
| 12754 | .total_size = 256, |
| 12755 | .page_size = 256, |
| 12756 | .feature_bits = FEATURE_WRSR_WREN, |
| 12757 | .tested = TEST_UNTESTED, |
| 12758 | .probe = probe_spi_rdid, |
| 12759 | .probe_timing = TIMING_ZERO, |
| 12760 | .block_erasers = |
| 12761 | { |
| 12762 | { |
| 12763 | .eraseblocks = { {4 * 1024, 64} }, |
| 12764 | .block_erase = spi_block_erase_20, |
| 12765 | }, { |
| 12766 | .eraseblocks = { {4 * 1024, 64} }, |
| 12767 | .block_erase = spi_block_erase_d7, |
| 12768 | }, { |
| 12769 | .eraseblocks = { {32 * 1024, 8} }, |
| 12770 | .block_erase = spi_block_erase_52, |
| 12771 | }, { |
| 12772 | .eraseblocks = { {64 * 1024, 4} }, |
| 12773 | .block_erase = spi_block_erase_d8, |
| 12774 | }, { |
| 12775 | .eraseblocks = { {256 * 1024, 1} }, |
| 12776 | .block_erase = spi_block_erase_60, |
| 12777 | }, { |
| 12778 | .eraseblocks = { {256 * 1024, 1} }, |
| 12779 | .block_erase = spi_block_erase_c7, |
| 12780 | } |
| 12781 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12782 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 12783 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12784 | .write = spi_chip_write_256, |
| 12785 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 12786 | .voltage = {2700, 3600}, |
| 12787 | }, |
| 12788 | |
| 12789 | { |
| 12790 | .vendor = "Nantronics", |
| 12791 | .name = "N25S40", |
| 12792 | .bustype = BUS_SPI, |
| 12793 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 12794 | .model_id = NANTRONICS_N25S40, |
| 12795 | .total_size = 512, |
| 12796 | .page_size = 256, |
| 12797 | .feature_bits = FEATURE_WRSR_WREN, |
| 12798 | .tested = TEST_UNTESTED, |
| 12799 | .probe = probe_spi_rdid, |
| 12800 | .probe_timing = TIMING_ZERO, |
| 12801 | .block_erasers = |
| 12802 | { |
| 12803 | { |
| 12804 | .eraseblocks = { {4 * 1024, 128} }, |
| 12805 | .block_erase = spi_block_erase_20, |
| 12806 | }, { |
| 12807 | .eraseblocks = { {4 * 1024, 128} }, |
| 12808 | .block_erase = spi_block_erase_d7, |
| 12809 | }, { |
| 12810 | .eraseblocks = { {32 * 1024, 16} }, |
| 12811 | .block_erase = spi_block_erase_52, |
| 12812 | }, { |
| 12813 | .eraseblocks = { {64 * 1024, 8} }, |
| 12814 | .block_erase = spi_block_erase_d8, |
| 12815 | }, { |
| 12816 | .eraseblocks = { {512 * 1024, 1} }, |
| 12817 | .block_erase = spi_block_erase_60, |
| 12818 | }, { |
| 12819 | .eraseblocks = { {512 * 1024, 1} }, |
| 12820 | .block_erase = spi_block_erase_c7, |
| 12821 | } |
| 12822 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12823 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 12824 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12825 | .write = spi_chip_write_256, |
| 12826 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 12827 | .voltage = {2700, 3600}, |
| 12828 | }, |
| 12829 | |
| 12830 | { |
| 12831 | .vendor = "Nantronics", |
| 12832 | .name = "N25S80", |
| 12833 | .bustype = BUS_SPI, |
| 12834 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 12835 | .model_id = NANTRONICS_N25S80, |
| 12836 | .total_size = 1024, |
| 12837 | .page_size = 256, |
| 12838 | .feature_bits = FEATURE_WRSR_WREN, |
| 12839 | .tested = TEST_UNTESTED, |
| 12840 | .probe = probe_spi_rdid, |
| 12841 | .probe_timing = TIMING_ZERO, |
| 12842 | .block_erasers = |
| 12843 | { |
| 12844 | { |
| 12845 | .eraseblocks = { {4 * 1024, 256} }, |
| 12846 | .block_erase = spi_block_erase_20, |
| 12847 | }, { |
| 12848 | .eraseblocks = { {32 * 1024, 32} }, |
| 12849 | .block_erase = spi_block_erase_52, |
| 12850 | }, { |
| 12851 | .eraseblocks = { {64 * 1024, 16} }, |
| 12852 | .block_erase = spi_block_erase_d8, |
| 12853 | }, { |
| 12854 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12855 | .block_erase = spi_block_erase_60, |
| 12856 | }, { |
| 12857 | .eraseblocks = { {1024 * 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_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 12862 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 12863 | .write = spi_chip_write_256, |
| 12864 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 12865 | .voltage = {2700, 3600}, |
| 12866 | }, |
| 12867 | |
| 12868 | { |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 12869 | .vendor = "PMC", |
| 12870 | .name = "Pm25LD010(C)", |
| 12871 | .bustype = BUS_SPI, |
| 12872 | .manufacture_id = PMC_ID, |
| 12873 | .model_id = PMC_PM25LD010, |
| 12874 | .total_size = 128, |
| 12875 | .page_size = 256, |
| 12876 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 12877 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 12878 | .probe = probe_spi_rdid, |
| 12879 | .probe_timing = TIMING_ZERO, |
| 12880 | .block_erasers = |
| 12881 | { |
| 12882 | { |
| 12883 | .eraseblocks = { {4 * 1024, 32} }, |
| 12884 | .block_erase = spi_block_erase_20, |
| 12885 | }, { |
| 12886 | .eraseblocks = { {4 * 1024, 32} }, |
| 12887 | .block_erase = spi_block_erase_d7, |
| 12888 | }, { |
| 12889 | .eraseblocks = { {32 * 1024, 4} }, |
| 12890 | .block_erase = spi_block_erase_d8, |
| 12891 | }, { |
| 12892 | .eraseblocks = { {128 * 1024, 1} }, |
| 12893 | .block_erase = spi_block_erase_60, |
| 12894 | }, { |
| 12895 | .eraseblocks = { {128 * 1024, 1} }, |
| 12896 | .block_erase = spi_block_erase_c7, |
| 12897 | } |
| 12898 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12899 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 12900 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 12901 | .write = spi_chip_write_256, |
| 12902 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 12903 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */ |
| 12904 | }, |
| 12905 | |
| 12906 | { |
| 12907 | .vendor = "PMC", |
| 12908 | .name = "Pm25LD020(C)", |
| 12909 | .bustype = BUS_SPI, |
| 12910 | .manufacture_id = PMC_ID, |
| 12911 | .model_id = PMC_PM25LD020, |
| 12912 | .total_size = 256, |
| 12913 | .page_size = 256, |
| 12914 | .feature_bits = FEATURE_WRSR_WREN, |
Angel Pons | f5822a8 | 2018-09-30 20:09:58 +0200 | [diff] [blame] | 12915 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 12916 | .probe = probe_spi_rdid, |
| 12917 | .probe_timing = TIMING_ZERO, |
| 12918 | .block_erasers = |
| 12919 | { |
| 12920 | { |
| 12921 | .eraseblocks = { {4 * 1024, 64} }, |
| 12922 | .block_erase = spi_block_erase_20, |
| 12923 | }, { |
| 12924 | .eraseblocks = { {4 * 1024, 64} }, |
| 12925 | .block_erase = spi_block_erase_d7, |
| 12926 | }, { |
| 12927 | .eraseblocks = { {64 * 1024, 4} }, |
| 12928 | .block_erase = spi_block_erase_d8, |
| 12929 | }, { |
| 12930 | .eraseblocks = { {256 * 1024, 1} }, |
| 12931 | .block_erase = spi_block_erase_60, |
| 12932 | }, { |
| 12933 | .eraseblocks = { {256 * 1024, 1} }, |
| 12934 | .block_erase = spi_block_erase_c7, |
| 12935 | } |
| 12936 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12937 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 12938 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 12939 | .write = spi_chip_write_256, |
| 12940 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 12941 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */ |
| 12942 | }, |
| 12943 | |
| 12944 | { |
| 12945 | .vendor = "PMC", |
| 12946 | .name = "Pm25LD040(C)", |
| 12947 | .bustype = BUS_SPI, |
| 12948 | .manufacture_id = PMC_ID, |
| 12949 | .model_id = PMC_PM25LV040, |
| 12950 | .total_size = 512, |
| 12951 | .page_size = 256, |
| 12952 | .feature_bits = FEATURE_WRSR_WREN, |
Angel Pons | 05127bf | 2018-09-30 20:23:24 +0200 | [diff] [blame] | 12953 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 12954 | .probe = probe_spi_rdid, |
| 12955 | .probe_timing = TIMING_ZERO, |
| 12956 | .block_erasers = |
| 12957 | { |
| 12958 | { |
| 12959 | .eraseblocks = { {4 * 1024, 128} }, |
| 12960 | .block_erase = spi_block_erase_20, |
| 12961 | }, { |
| 12962 | .eraseblocks = { {4 * 1024, 128} }, |
| 12963 | .block_erase = spi_block_erase_d7, |
| 12964 | }, { |
| 12965 | .eraseblocks = { {64 * 1024, 8} }, |
| 12966 | .block_erase = spi_block_erase_d8, |
| 12967 | }, { |
| 12968 | .eraseblocks = { {512 * 1024, 1} }, |
| 12969 | .block_erase = spi_block_erase_60, |
| 12970 | }, { |
| 12971 | .eraseblocks = { {512 * 1024, 1} }, |
| 12972 | .block_erase = spi_block_erase_c7, |
| 12973 | } |
| 12974 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 12975 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 12976 | .unlock = spi_disable_blockprotect, |
| 12977 | .write = spi_chip_write_256, |
| 12978 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 12979 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */ |
| 12980 | }, |
| 12981 | |
Steven Honeyman | 81a8fb7 | 2015-06-02 22:32:24 +0000 | [diff] [blame] | 12982 | { |
| 12983 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 12984 | .name = "Pm25LD256C", |
| 12985 | .bustype = BUS_SPI, |
| 12986 | .manufacture_id = PMC_ID, |
| 12987 | .model_id = PMC_PM25LD256C, |
| 12988 | .total_size = 32, |
| 12989 | .page_size = 256, |
| 12990 | .feature_bits = FEATURE_WRSR_WREN, |
| 12991 | .tested = TEST_UNTESTED, |
| 12992 | .probe = probe_spi_rdid, |
| 12993 | .probe_timing = TIMING_ZERO, |
| 12994 | .block_erasers = |
| 12995 | { |
| 12996 | { |
| 12997 | .eraseblocks = { {4 * 1024, 8} }, |
| 12998 | .block_erase = spi_block_erase_20, |
| 12999 | }, { |
| 13000 | .eraseblocks = { {4 * 1024, 8} }, |
| 13001 | .block_erase = spi_block_erase_d7, |
| 13002 | }, { |
| 13003 | .eraseblocks = { {32 * 1024, 1} }, |
| 13004 | .block_erase = spi_block_erase_d8, |
| 13005 | }, { |
| 13006 | .eraseblocks = { {32 * 1024, 1} }, |
| 13007 | .block_erase = spi_block_erase_60, |
| 13008 | }, { |
| 13009 | .eraseblocks = { {32 * 1024, 1} }, |
| 13010 | .block_erase = spi_block_erase_c7, |
| 13011 | } |
| 13012 | }, |
| 13013 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 13014 | .unlock = spi_disable_blockprotect, |
| 13015 | .write = spi_chip_write_256, |
| 13016 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 13017 | .voltage = {2700, 3600}, |
| 13018 | }, |
| 13019 | |
| 13020 | { |
| 13021 | .vendor = "PMC", |
| 13022 | .name = "Pm25LD512(C)", |
| 13023 | .bustype = BUS_SPI, |
| 13024 | .manufacture_id = PMC_ID, |
| 13025 | .model_id = PMC_PM25LD512, |
| 13026 | .total_size = 64, |
| 13027 | .page_size = 256, |
| 13028 | .feature_bits = FEATURE_WRSR_WREN, |
| 13029 | .tested = TEST_OK_PREW, |
| 13030 | .probe = probe_spi_rdid, |
| 13031 | .probe_timing = TIMING_ZERO, |
| 13032 | .block_erasers = |
| 13033 | { |
| 13034 | { |
| 13035 | .eraseblocks = { {4 * 1024, 16} }, |
| 13036 | .block_erase = spi_block_erase_20, |
| 13037 | }, { |
| 13038 | .eraseblocks = { {4 * 1024, 16} }, |
| 13039 | .block_erase = spi_block_erase_d7, |
| 13040 | }, { |
| 13041 | .eraseblocks = { {32 * 1024, 2} }, |
| 13042 | .block_erase = spi_block_erase_d8, |
| 13043 | }, { |
| 13044 | .eraseblocks = { {64 * 1024, 1} }, |
| 13045 | .block_erase = spi_block_erase_60, |
| 13046 | }, { |
| 13047 | .eraseblocks = { {64 * 1024, 1} }, |
| 13048 | .block_erase = spi_block_erase_c7, |
| 13049 | } |
| 13050 | }, |
| 13051 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 13052 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 13053 | .write = spi_chip_write_256, |
| 13054 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 13055 | .voltage = {2300, 3600}, |
| 13056 | }, |
| 13057 | |
| 13058 | { |
| 13059 | .vendor = "PMC", |
| 13060 | .name = "Pm25LQ016", |
| 13061 | .bustype = BUS_SPI, |
| 13062 | .manufacture_id = PMC_ID, |
| 13063 | .model_id = PMC_PM25LQ016, |
| 13064 | .total_size = 2048, |
| 13065 | .page_size = 256, |
| 13066 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 13067 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 13068 | .tested = TEST_UNTESTED, |
| 13069 | .probe = probe_spi_rdid, |
| 13070 | .probe_timing = TIMING_ZERO, |
| 13071 | .block_erasers = |
| 13072 | { |
| 13073 | { |
| 13074 | .eraseblocks = { {4 * 1024, 512} }, |
| 13075 | .block_erase = spi_block_erase_20, |
| 13076 | }, { |
| 13077 | .eraseblocks = { {4 * 1024, 512} }, |
| 13078 | .block_erase = spi_block_erase_d7, |
| 13079 | }, { |
| 13080 | .eraseblocks = { {64 * 1024, 32} }, |
| 13081 | .block_erase = spi_block_erase_d8, |
| 13082 | }, { |
| 13083 | .eraseblocks = { {2048 * 1024, 1} }, |
| 13084 | .block_erase = spi_block_erase_60, |
| 13085 | }, { |
| 13086 | .eraseblocks = { {2048 * 1024, 1} }, |
| 13087 | .block_erase = spi_block_erase_c7, |
| 13088 | } |
| 13089 | }, |
| 13090 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 13091 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 13092 | .write = spi_chip_write_256, |
| 13093 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 13094 | .voltage = {2300, 3600}, |
| 13095 | }, |
| 13096 | |
| 13097 | { |
| 13098 | .vendor = "PMC", |
Steven Honeyman | 81a8fb7 | 2015-06-02 22:32:24 +0000 | [diff] [blame] | 13099 | .name = "Pm25LQ020", |
| 13100 | .bustype = BUS_SPI, |
| 13101 | .manufacture_id = PMC_ID, |
| 13102 | .model_id = PMC_PM25LQ020, |
| 13103 | .total_size = 256, |
| 13104 | .page_size = 256, |
| 13105 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 13106 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 13107 | .tested = TEST_UNTESTED, |
| 13108 | .probe = probe_spi_rdid, |
| 13109 | .probe_timing = TIMING_ZERO, |
| 13110 | .block_erasers = |
| 13111 | { |
| 13112 | { |
| 13113 | .eraseblocks = { {4 * 1024, 64} }, |
| 13114 | .block_erase = spi_block_erase_20, |
| 13115 | }, { |
| 13116 | .eraseblocks = { {4 * 1024, 64} }, |
| 13117 | .block_erase = spi_block_erase_d7, |
| 13118 | }, { |
| 13119 | .eraseblocks = { {64 * 1024, 4} }, |
| 13120 | .block_erase = spi_block_erase_d8, |
| 13121 | }, { |
| 13122 | .eraseblocks = { {256 * 1024, 1} }, |
| 13123 | .block_erase = spi_block_erase_60, |
| 13124 | }, { |
| 13125 | .eraseblocks = { {256 * 1024, 1} }, |
| 13126 | .block_erase = spi_block_erase_c7, |
| 13127 | } |
| 13128 | }, |
| 13129 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 13130 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 13131 | .write = spi_chip_write_256, |
| 13132 | .read = spi_chip_read, |
| 13133 | .voltage = {2300, 3600}, |
| 13134 | }, |
| 13135 | |
| 13136 | { |
| 13137 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13138 | .name = "Pm25LQ032C", |
| 13139 | .bustype = BUS_SPI, |
| 13140 | .manufacture_id = PMC_ID, |
| 13141 | .model_id = PMC_PM25LQ032C, |
| 13142 | .total_size = 4096, |
| 13143 | .page_size = 256, |
| 13144 | /* OTP: 64B total; read 0x4B, write 0xB1 */ |
| 13145 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 13146 | .tested = TEST_OK_PREW, |
| 13147 | .probe = probe_spi_rdid, |
| 13148 | .probe_timing = TIMING_ZERO, |
| 13149 | .block_erasers = |
| 13150 | { |
| 13151 | { |
| 13152 | .eraseblocks = { {4 * 1024, 1024} }, |
| 13153 | .block_erase = spi_block_erase_20, |
| 13154 | }, { |
| 13155 | .eraseblocks = { {4 * 1024, 1024} }, |
| 13156 | .block_erase = spi_block_erase_d7, |
| 13157 | }, { |
| 13158 | .eraseblocks = { {64 * 1024, 64} }, |
| 13159 | .block_erase = spi_block_erase_d8, |
| 13160 | }, { |
| 13161 | .eraseblocks = { {4096 * 1024, 1} }, |
| 13162 | .block_erase = spi_block_erase_60, |
| 13163 | }, { |
| 13164 | .eraseblocks = { {4096 * 1024, 1} }, |
| 13165 | .block_erase = spi_block_erase_c7, |
| 13166 | } |
| 13167 | }, |
| 13168 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 13169 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 13170 | .write = spi_chip_write_256, |
| 13171 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 13172 | .voltage = {2700, 3600}, |
| 13173 | }, |
| 13174 | |
| 13175 | { |
| 13176 | .vendor = "PMC", |
Steven Honeyman | 81a8fb7 | 2015-06-02 22:32:24 +0000 | [diff] [blame] | 13177 | .name = "Pm25LQ040", |
| 13178 | .bustype = BUS_SPI, |
| 13179 | .manufacture_id = PMC_ID, |
| 13180 | .model_id = PMC_PM25LQ040, |
| 13181 | .total_size = 512, |
| 13182 | .page_size = 256, |
| 13183 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 13184 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 13185 | .tested = TEST_UNTESTED, |
| 13186 | .probe = probe_spi_rdid, |
| 13187 | .probe_timing = TIMING_ZERO, |
| 13188 | .block_erasers = |
| 13189 | { |
| 13190 | { |
| 13191 | .eraseblocks = { {4 * 1024, 128} }, |
| 13192 | .block_erase = spi_block_erase_20, |
| 13193 | }, { |
| 13194 | .eraseblocks = { {4 * 1024, 128} }, |
| 13195 | .block_erase = spi_block_erase_d7, |
| 13196 | }, { |
| 13197 | .eraseblocks = { {64 * 1024, 8} }, |
| 13198 | .block_erase = spi_block_erase_d8, |
| 13199 | }, { |
| 13200 | .eraseblocks = { {512 * 1024, 1} }, |
| 13201 | .block_erase = spi_block_erase_60, |
| 13202 | }, { |
| 13203 | .eraseblocks = { {512 * 1024, 1} }, |
| 13204 | .block_erase = spi_block_erase_c7, |
| 13205 | } |
| 13206 | }, |
| 13207 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 13208 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 13209 | .write = spi_chip_write_256, |
| 13210 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 13211 | .voltage = {2300, 3600}, |
| 13212 | }, |
| 13213 | |
| 13214 | { |
| 13215 | .vendor = "PMC", |
| 13216 | .name = "Pm25LQ080", |
| 13217 | .bustype = BUS_SPI, |
| 13218 | .manufacture_id = PMC_ID, |
| 13219 | .model_id = PMC_PM25LQ080, |
| 13220 | .total_size = 1024, |
| 13221 | .page_size = 256, |
| 13222 | /* OTP: 64B total; read 0x4B, write 0xB1 */ |
| 13223 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 13224 | .tested = TEST_UNTESTED, |
| 13225 | .probe = probe_spi_rdid, |
| 13226 | .probe_timing = TIMING_ZERO, |
| 13227 | .block_erasers = |
| 13228 | { |
| 13229 | { |
| 13230 | .eraseblocks = { {4 * 1024, 256} }, |
| 13231 | .block_erase = spi_block_erase_20, |
| 13232 | }, { |
| 13233 | .eraseblocks = { {4 * 1024, 256} }, |
| 13234 | .block_erase = spi_block_erase_d7, |
| 13235 | }, { |
| 13236 | .eraseblocks = { {64 * 1024, 16} }, |
| 13237 | .block_erase = spi_block_erase_d8, |
| 13238 | }, { |
| 13239 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13240 | .block_erase = spi_block_erase_60, |
| 13241 | }, { |
| 13242 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13243 | .block_erase = spi_block_erase_c7, |
| 13244 | } |
| 13245 | }, |
| 13246 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 13247 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 13248 | .write = spi_chip_write_256, |
| 13249 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 13250 | .voltage = {2300, 3600}, |
| 13251 | }, |
| 13252 | |
| 13253 | { |
| 13254 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13255 | .name = "Pm25LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13256 | .bustype = BUS_SPI, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 13257 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13258 | .model_id = PMC_PM25LV010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13259 | .total_size = 128, |
| 13260 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 13261 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 13262 | .tested = TEST_OK_PREW, |
| 13263 | .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] | 13264 | .probe_timing = TIMING_ZERO, |
| 13265 | .block_erasers = |
| 13266 | { |
| 13267 | { |
| 13268 | .eraseblocks = { {4 * 1024, 32} }, |
| 13269 | .block_erase = spi_block_erase_d7, |
| 13270 | }, { |
| 13271 | .eraseblocks = { {32 * 1024, 4} }, |
| 13272 | .block_erase = spi_block_erase_d8, |
| 13273 | }, { |
| 13274 | .eraseblocks = { {128 * 1024, 1} }, |
| 13275 | .block_erase = spi_block_erase_c7, |
| 13276 | } |
| 13277 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 13278 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 13279 | .unlock = spi_disable_blockprotect, |
| 13280 | .write = spi_chip_write_256, |
| 13281 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13282 | .voltage = {2700, 3600}, |
| 13283 | }, |
| 13284 | |
| 13285 | { |
| 13286 | .vendor = "PMC", |
| 13287 | .name = "Pm25LV010A", |
| 13288 | .bustype = BUS_SPI, |
| 13289 | .manufacture_id = PMC_ID, |
| 13290 | .model_id = PMC_PM25LV010, |
| 13291 | .total_size = 128, |
| 13292 | .page_size = 256, |
| 13293 | .feature_bits = FEATURE_WRSR_WREN, |
| 13294 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13295 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13296 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13297 | .block_erasers = |
| 13298 | { |
| 13299 | { |
| 13300 | .eraseblocks = { {4 * 1024, 32} }, |
| 13301 | .block_erase = spi_block_erase_d7, |
| 13302 | }, { |
| 13303 | .eraseblocks = { {32 * 1024, 4} }, |
| 13304 | .block_erase = spi_block_erase_d8, |
| 13305 | }, { |
| 13306 | .eraseblocks = { {128 * 1024, 1} }, |
| 13307 | .block_erase = spi_block_erase_c7, |
| 13308 | } |
| 13309 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 13310 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 13311 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 13312 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 13313 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 13314 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13315 | }, |
| 13316 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13317 | { |
| 13318 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13319 | .name = "Pm25LV016B", |
| 13320 | .bustype = BUS_SPI, |
| 13321 | .manufacture_id = PMC_ID, |
| 13322 | .model_id = PMC_PM25LV016B, |
| 13323 | .total_size = 2048, |
| 13324 | .page_size = 256, |
| 13325 | .feature_bits = FEATURE_WRSR_WREN, |
| 13326 | .tested = TEST_UNTESTED, |
| 13327 | .probe = probe_spi_rdid, |
| 13328 | .probe_timing = TIMING_ZERO, |
| 13329 | .block_erasers = |
| 13330 | { |
| 13331 | { |
| 13332 | .eraseblocks = { {4 * 1024, 512} }, |
| 13333 | .block_erase = spi_block_erase_d7, |
| 13334 | }, { |
| 13335 | .eraseblocks = { {4 * 1024, 512} }, |
| 13336 | .block_erase = spi_block_erase_20, |
| 13337 | }, { |
| 13338 | .eraseblocks = { {64 * 1024, 32} }, |
| 13339 | .block_erase = spi_block_erase_d8, |
| 13340 | }, { |
| 13341 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 13342 | .block_erase = spi_block_erase_60, |
| 13343 | }, { |
| 13344 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 13345 | .block_erase = spi_block_erase_c7, |
| 13346 | } |
| 13347 | }, |
| 13348 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 13349 | .unlock = spi_disable_blockprotect, |
| 13350 | .write = spi_chip_write_256, |
| 13351 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13352 | .voltage = {2700, 3600}, |
| 13353 | }, |
| 13354 | |
| 13355 | { |
| 13356 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13357 | .name = "Pm25LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13358 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13359 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13360 | .model_id = PMC_PM25LV020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13361 | .total_size = 256, |
| 13362 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 13363 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13364 | .tested = TEST_UNTESTED, |
| 13365 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13366 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13367 | .block_erasers = |
| 13368 | { |
| 13369 | { |
| 13370 | .eraseblocks = { {4 * 1024, 64} }, |
| 13371 | .block_erase = spi_block_erase_d7, |
| 13372 | }, { |
| 13373 | .eraseblocks = { {64 * 1024, 4} }, |
| 13374 | .block_erase = spi_block_erase_d8, |
| 13375 | }, { |
| 13376 | .eraseblocks = { {256 * 1024, 1} }, |
| 13377 | .block_erase = spi_block_erase_c7, |
| 13378 | } |
| 13379 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 13380 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 13381 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 13382 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13383 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13384 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13385 | }, |
| 13386 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13387 | { |
| 13388 | .vendor = "PMC", |
| 13389 | .name = "Pm25LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13390 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13391 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13392 | .model_id = PMC_PM25LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13393 | .total_size = 512, |
| 13394 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 13395 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 13396 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13397 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13398 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13399 | .block_erasers = |
| 13400 | { |
| 13401 | { |
| 13402 | .eraseblocks = { {4 * 1024, 128} }, |
| 13403 | .block_erase = spi_block_erase_d7, |
| 13404 | }, { |
| 13405 | .eraseblocks = { {64 * 1024, 8} }, |
| 13406 | .block_erase = spi_block_erase_d8, |
| 13407 | }, { |
| 13408 | .eraseblocks = { {512 * 1024, 1} }, |
| 13409 | .block_erase = spi_block_erase_c7, |
| 13410 | } |
| 13411 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 13412 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 13413 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 13414 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 13415 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13416 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13417 | }, |
| 13418 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13419 | { |
| 13420 | .vendor = "PMC", |
| 13421 | .name = "Pm25LV080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13422 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13423 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13424 | .model_id = PMC_PM25LV080B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13425 | .total_size = 1024, |
| 13426 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 13427 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13428 | .tested = TEST_UNTESTED, |
| 13429 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13430 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13431 | .block_erasers = |
| 13432 | { |
| 13433 | { |
| 13434 | .eraseblocks = { {4 * 1024, 256} }, |
| 13435 | .block_erase = spi_block_erase_d7, |
| 13436 | }, { |
| 13437 | .eraseblocks = { {4 * 1024, 256} }, |
| 13438 | .block_erase = spi_block_erase_20, |
| 13439 | }, { |
| 13440 | .eraseblocks = { {64 * 1024, 16} }, |
| 13441 | .block_erase = spi_block_erase_d8, |
| 13442 | }, { |
| 13443 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13444 | .block_erase = spi_block_erase_60, |
| 13445 | }, { |
| 13446 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13447 | .block_erase = spi_block_erase_c7, |
| 13448 | } |
| 13449 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 13450 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 13451 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 13452 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 13453 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13454 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13455 | }, |
| 13456 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13457 | { |
| 13458 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13459 | .name = "Pm25LV512(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13460 | .bustype = BUS_SPI, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13461 | .manufacture_id = PMC_ID_NOPREFIX, |
| 13462 | .model_id = PMC_PM25LV512, |
| 13463 | .total_size = 64, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13464 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 13465 | .feature_bits = FEATURE_WRSR_WREN, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13466 | .tested = TEST_OK_PREW, |
| 13467 | .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] | 13468 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13469 | .block_erasers = |
| 13470 | { |
| 13471 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13472 | .eraseblocks = { {4 * 1024, 16} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13473 | .block_erase = spi_block_erase_d7, |
| 13474 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13475 | .eraseblocks = { {32 * 1024, 2} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13476 | .block_erase = spi_block_erase_d8, |
| 13477 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13478 | .eraseblocks = { {64 * 1024, 1} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13479 | .block_erase = spi_block_erase_c7, |
| 13480 | } |
| 13481 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13482 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 13483 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 13484 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 13485 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 13486 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13487 | }, |
| 13488 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13489 | { |
| 13490 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 13491 | .name = "Pm29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13492 | .bustype = BUS_PARALLEL, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 13493 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13494 | .model_id = PMC_PM29F002B, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 13495 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 13496 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13497 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 13498 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13499 | .probe = probe_jedec, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 13500 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 13501 | .block_erasers = |
| 13502 | { |
| 13503 | { |
| 13504 | .eraseblocks = { |
| 13505 | {16 * 1024, 1}, |
| 13506 | {8 * 1024, 2}, |
| 13507 | {96 * 1024, 1}, |
| 13508 | {128 * 1024, 1}, |
| 13509 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13510 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 13511 | }, { |
| 13512 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13513 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 13514 | }, |
| 13515 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13516 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 13517 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13518 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 13519 | .prepare_access = prepare_memory_access, |
| 13520 | .finish_access = finish_memory_access, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 13521 | }, |
| 13522 | |
| 13523 | { |
| 13524 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13525 | .name = "Pm29F002T", |
| 13526 | .bustype = BUS_PARALLEL, |
| 13527 | .manufacture_id = PMC_ID_NOPREFIX, |
| 13528 | .model_id = PMC_PM29F002T, |
| 13529 | .total_size = 256, |
| 13530 | .page_size = 8 * 1024, |
| 13531 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 13532 | .tested = TEST_OK_PREW, |
| 13533 | .probe = probe_jedec, |
| 13534 | .probe_timing = TIMING_FIXME, |
| 13535 | .block_erasers = |
| 13536 | { |
| 13537 | { |
| 13538 | .eraseblocks = { |
| 13539 | {128 * 1024, 1}, |
| 13540 | {96 * 1024, 1}, |
| 13541 | {8 * 1024, 2}, |
| 13542 | {16 * 1024, 1}, |
| 13543 | }, |
| 13544 | .block_erase = erase_sector_jedec, |
| 13545 | }, { |
| 13546 | .eraseblocks = { {256 * 1024, 1} }, |
| 13547 | .block_erase = erase_chip_block_jedec, |
| 13548 | }, |
| 13549 | }, |
| 13550 | .write = write_jedec_1, |
| 13551 | .read = read_memmapped, |
| 13552 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 13553 | .prepare_access = prepare_memory_access, |
| 13554 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13555 | }, |
| 13556 | |
| 13557 | { |
| 13558 | .vendor = "PMC", |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 13559 | .name = "Pm39LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13560 | .bustype = BUS_PARALLEL, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 13561 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13562 | .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] | 13563 | .total_size = 128, |
| 13564 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13565 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 13566 | .tested = TEST_OK_PREW, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 13567 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13568 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13569 | .block_erasers = |
| 13570 | { |
| 13571 | { |
| 13572 | .eraseblocks = { {4 * 1024, 32} }, |
| 13573 | .block_erase = erase_sector_jedec, |
| 13574 | }, { |
| 13575 | .eraseblocks = { {64 * 1024, 2} }, |
| 13576 | .block_erase = erase_block_jedec, |
| 13577 | }, { |
| 13578 | .eraseblocks = { {128 * 1024, 1} }, |
| 13579 | .block_erase = erase_chip_block_jedec, |
| 13580 | } |
| 13581 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13582 | .write = write_jedec_1, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 13583 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13584 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 13585 | .prepare_access = prepare_memory_access, |
| 13586 | .finish_access = finish_memory_access, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 13587 | }, |
| 13588 | |
| 13589 | { |
| 13590 | .vendor = "PMC", |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13591 | .name = "Pm39LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13592 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13593 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13594 | .model_id = PMC_PM39LV020, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13595 | .total_size = 256, |
| 13596 | .page_size = 4096, |
| 13597 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 13598 | .tested = TEST_UNTESTED, |
| 13599 | .probe = probe_jedec, |
| 13600 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 13601 | .block_erasers = |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13602 | { |
| 13603 | { |
| 13604 | .eraseblocks = { {4 * 1024, 64} }, |
| 13605 | .block_erase = erase_sector_jedec, |
| 13606 | }, { |
| 13607 | .eraseblocks = { {64 * 1024, 4} }, |
| 13608 | .block_erase = erase_block_jedec, |
| 13609 | }, { |
| 13610 | .eraseblocks = { {256 * 1024, 1} }, |
| 13611 | .block_erase = erase_chip_block_jedec, |
| 13612 | } |
| 13613 | }, |
| 13614 | .write = write_jedec_1, |
| 13615 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13616 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 13617 | .prepare_access = prepare_memory_access, |
| 13618 | .finish_access = finish_memory_access, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13619 | }, |
| 13620 | |
| 13621 | { |
| 13622 | .vendor = "PMC", |
| 13623 | .name = "Pm39LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13624 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13625 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13626 | .model_id = PMC_PM39LV040, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13627 | .total_size = 512, |
| 13628 | .page_size = 4096, |
| 13629 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 13630 | .tested = TEST_OK_PR, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13631 | .probe = probe_jedec, |
| 13632 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 13633 | .block_erasers = |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13634 | { |
| 13635 | { |
| 13636 | .eraseblocks = { {4 * 1024, 128} }, |
| 13637 | .block_erase = erase_sector_jedec, |
| 13638 | }, { |
| 13639 | .eraseblocks = { {64 * 1024, 8} }, |
| 13640 | .block_erase = erase_block_jedec, |
| 13641 | }, { |
| 13642 | .eraseblocks = { {512 * 1024, 1} }, |
| 13643 | .block_erase = erase_chip_block_jedec, |
| 13644 | } |
| 13645 | }, |
| 13646 | .write = write_jedec_1, |
| 13647 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13648 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 13649 | .prepare_access = prepare_memory_access, |
| 13650 | .finish_access = finish_memory_access, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13651 | }, |
Kyösti Mälkki | edab1d2 | 2012-05-20 23:32:33 +0000 | [diff] [blame] | 13652 | |
| 13653 | { |
| 13654 | .vendor = "PMC", |
| 13655 | .name = "Pm39LV512", |
| 13656 | .bustype = BUS_PARALLEL, |
| 13657 | .manufacture_id = PMC_ID_NOPREFIX, |
| 13658 | .model_id = PMC_PM39LV512, |
| 13659 | .total_size = 64, |
| 13660 | .page_size = 4096, |
| 13661 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 13662 | .tested = TEST_OK_PREW, |
| 13663 | .probe = probe_jedec, |
| 13664 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 13665 | .block_erasers = |
| 13666 | { |
| 13667 | { |
| 13668 | .eraseblocks = { {4 * 1024, 16} }, |
| 13669 | .block_erase = erase_sector_jedec, |
| 13670 | }, { |
| 13671 | .eraseblocks = { {64 * 1024, 1} }, |
| 13672 | .block_erase = erase_block_jedec, |
| 13673 | }, { |
| 13674 | .eraseblocks = { {64 * 1024, 1} }, |
| 13675 | .block_erase = erase_chip_block_jedec, |
| 13676 | } |
| 13677 | }, |
| 13678 | .write = write_jedec_1, |
| 13679 | .read = read_memmapped, |
| 13680 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 13681 | .prepare_access = prepare_memory_access, |
| 13682 | .finish_access = finish_memory_access, |
Kyösti Mälkki | edab1d2 | 2012-05-20 23:32:33 +0000 | [diff] [blame] | 13683 | }, |
| 13684 | |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13685 | { |
| 13686 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13687 | .name = "Pm49FL002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13688 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13689 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13690 | .model_id = PMC_PM49FL002, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13691 | .total_size = 256, |
| 13692 | .page_size = 16 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 13693 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13694 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 13695 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13696 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13697 | .block_erasers = |
| 13698 | { |
| 13699 | { |
| 13700 | .eraseblocks = { {4 * 1024, 64} }, |
| 13701 | .block_erase = erase_sector_jedec, |
| 13702 | }, { |
| 13703 | .eraseblocks = { {16 * 1024, 16} }, |
| 13704 | .block_erase = erase_block_jedec, |
| 13705 | }, { |
| 13706 | .eraseblocks = { {256 * 1024, 1} }, |
| 13707 | .block_erase = erase_chip_block_jedec, |
| 13708 | } |
| 13709 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13710 | .unlock = unlock_regspace2_uniform_32k, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 13711 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13712 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13713 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 13714 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 13715 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13716 | }, |
| 13717 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13718 | { |
| 13719 | .vendor = "PMC", |
| 13720 | .name = "Pm49FL004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13721 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13722 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13723 | .model_id = PMC_PM49FL004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13724 | .total_size = 512, |
| 13725 | .page_size = 64 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 13726 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 13727 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 13728 | .probe = probe_jedec, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 13729 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13730 | .block_erasers = |
| 13731 | { |
| 13732 | { |
| 13733 | .eraseblocks = { {4 * 1024, 128} }, |
| 13734 | .block_erase = erase_sector_jedec, |
| 13735 | }, { |
| 13736 | .eraseblocks = { {64 * 1024, 8} }, |
| 13737 | .block_erase = erase_block_jedec, |
| 13738 | }, { |
| 13739 | .eraseblocks = { {512 * 1024, 1} }, |
| 13740 | .block_erase = erase_chip_block_jedec, |
| 13741 | } |
| 13742 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13743 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 13744 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13745 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13746 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 13747 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 13748 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13749 | }, |
| 13750 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13751 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13752 | .vendor = "SST", |
Idwer Vollering | f3607d1 | 2014-05-07 15:25:04 +0000 | [diff] [blame] | 13753 | .name = "SST25LF020A", |
| 13754 | .bustype = BUS_SPI, |
| 13755 | .manufacture_id = SST_ID, |
| 13756 | .model_id = SST_SST25VF020_REMS, |
| 13757 | .total_size = 256, |
| 13758 | .page_size = 256, |
| 13759 | .feature_bits = FEATURE_WRSR_EWSR, |
| 13760 | .tested = TEST_OK_PREW, |
| 13761 | .probe = probe_spi_rems, |
| 13762 | .probe_timing = TIMING_ZERO, |
| 13763 | .block_erasers = |
| 13764 | { |
| 13765 | { |
| 13766 | .eraseblocks = { {4 * 1024, 64} }, |
| 13767 | .block_erase = spi_block_erase_20, |
| 13768 | }, { |
| 13769 | .eraseblocks = { {32 * 1024, 8} }, |
| 13770 | .block_erase = spi_block_erase_52, |
| 13771 | }, { |
| 13772 | .eraseblocks = { {256 * 1024, 1} }, |
| 13773 | .block_erase = spi_block_erase_60, |
| 13774 | }, |
| 13775 | }, |
| 13776 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 13777 | .unlock = spi_disable_blockprotect, |
| 13778 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 13779 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13780 | .voltage = {2700, 3600}, |
| 13781 | }, |
| 13782 | |
| 13783 | { |
| 13784 | .vendor = "SST", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 13785 | .name = "SST25LF040A", |
| 13786 | .bustype = BUS_SPI, |
| 13787 | .manufacture_id = SST_ID, |
| 13788 | .model_id = SST_SST25VF040_REMS, |
| 13789 | .total_size = 512, |
| 13790 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 13791 | .feature_bits = FEATURE_WRSR_EWSR, |
Uwe Hermann | 4335ec8 | 2011-09-07 20:20:25 +0000 | [diff] [blame] | 13792 | .tested = TEST_OK_PREW, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 13793 | .probe = probe_spi_res2, |
| 13794 | .probe_timing = TIMING_ZERO, |
| 13795 | .block_erasers = |
| 13796 | { |
| 13797 | { |
| 13798 | .eraseblocks = { {4 * 1024, 128} }, |
| 13799 | .block_erase = spi_block_erase_20, |
| 13800 | }, { |
| 13801 | .eraseblocks = { {32 * 1024, 16} }, |
| 13802 | .block_erase = spi_block_erase_52, |
| 13803 | }, { |
| 13804 | .eraseblocks = { {512 * 1024, 1} }, |
| 13805 | .block_erase = spi_block_erase_60, |
| 13806 | }, |
| 13807 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 13808 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 13809 | .unlock = spi_disable_blockprotect, |
| 13810 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 13811 | .read = spi_chip_read, |
| 13812 | .voltage = {3000, 3600}, |
| 13813 | }, |
| 13814 | |
| 13815 | { |
| 13816 | .vendor = "SST", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 13817 | .name = "SST25LF080(A)", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 13818 | .bustype = BUS_SPI, |
| 13819 | .manufacture_id = SST_ID, |
| 13820 | .model_id = SST_SST25VF080_REMS, |
| 13821 | .total_size = 1024, |
| 13822 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 13823 | .feature_bits = FEATURE_WRSR_EITHER, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 13824 | .tested = TEST_UNTESTED, |
| 13825 | .probe = probe_spi_res2, |
| 13826 | .probe_timing = TIMING_ZERO, |
| 13827 | .block_erasers = |
| 13828 | { |
| 13829 | { |
| 13830 | .eraseblocks = { {4 * 1024, 256} }, |
| 13831 | .block_erase = spi_block_erase_20, |
| 13832 | }, { |
| 13833 | .eraseblocks = { {32 * 1024, 32} }, |
| 13834 | .block_erase = spi_block_erase_52, |
| 13835 | }, { |
| 13836 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13837 | .block_erase = spi_block_erase_60, |
| 13838 | }, |
| 13839 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 13840 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 13841 | .unlock = spi_disable_blockprotect, |
| 13842 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 13843 | .read = spi_chip_read, |
| 13844 | .voltage = {3000, 3600}, |
| 13845 | }, |
| 13846 | |
| 13847 | { |
| 13848 | .vendor = "SST", |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13849 | .name = "SST25VF010(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13850 | .bustype = BUS_SPI, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 13851 | .manufacture_id = SST_ID, |
| 13852 | .model_id = SST_SST25VF010_REMS, |
| 13853 | .total_size = 128, |
| 13854 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 13855 | .feature_bits = FEATURE_WRSR_EWSR, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 13856 | .tested = TEST_OK_PREW, |
| 13857 | .probe = probe_spi_rems, |
| 13858 | .probe_timing = TIMING_ZERO, |
| 13859 | .block_erasers = |
| 13860 | { |
| 13861 | { |
| 13862 | .eraseblocks = { {4 * 1024, 32} }, |
| 13863 | .block_erase = spi_block_erase_20, |
| 13864 | }, { |
| 13865 | .eraseblocks = { {32 * 1024, 4} }, |
| 13866 | .block_erase = spi_block_erase_52, |
| 13867 | }, { |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13868 | .eraseblocks = { {32 * 1024, 4} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13869 | .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13870 | }, { |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 13871 | .eraseblocks = { {128 * 1024, 1} }, |
| 13872 | .block_erase = spi_block_erase_60, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13873 | }, { |
| 13874 | .eraseblocks = { {128 * 1024, 1} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13875 | .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13876 | }, |
| 13877 | }, |
| 13878 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 13879 | .unlock = spi_disable_blockprotect, |
| 13880 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13881 | .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13882 | .voltage = {2700, 3600}, |
| 13883 | }, |
| 13884 | |
| 13885 | { |
| 13886 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13887 | .name = "SST25VF016B", |
| 13888 | .bustype = BUS_SPI, |
| 13889 | .manufacture_id = SST_ID, |
| 13890 | .model_id = SST_SST25VF016B, |
| 13891 | .total_size = 2048, |
| 13892 | .page_size = 256, |
| 13893 | .feature_bits = FEATURE_WRSR_EITHER, |
| 13894 | .tested = TEST_OK_PREW, |
| 13895 | .probe = probe_spi_rdid, |
| 13896 | .probe_timing = TIMING_ZERO, |
| 13897 | .block_erasers = |
| 13898 | { |
| 13899 | { |
| 13900 | .eraseblocks = { {4 * 1024, 512} }, |
| 13901 | .block_erase = spi_block_erase_20, |
| 13902 | }, { |
| 13903 | .eraseblocks = { {32 * 1024, 64} }, |
| 13904 | .block_erase = spi_block_erase_52, |
| 13905 | }, { |
| 13906 | .eraseblocks = { {64 * 1024, 32} }, |
| 13907 | .block_erase = spi_block_erase_d8, |
| 13908 | }, { |
| 13909 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 13910 | .block_erase = spi_block_erase_60, |
| 13911 | }, { |
| 13912 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 13913 | .block_erase = spi_block_erase_c7, |
| 13914 | }, |
| 13915 | }, |
| 13916 | .printlock = spi_prettyprint_status_register_sst25vf016, |
| 13917 | .unlock = spi_disable_blockprotect, |
| 13918 | .write = spi_aai_write, |
| 13919 | .read = spi_chip_read, |
| 13920 | .voltage = {2700, 3600}, |
| 13921 | }, |
| 13922 | |
| 13923 | { |
| 13924 | .vendor = "SST", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13925 | .name = "SST25VF020", |
| 13926 | .bustype = BUS_SPI, |
| 13927 | .manufacture_id = SST_ID, |
| 13928 | .model_id = SST_SST25VF020_REMS, |
| 13929 | .total_size = 256, |
| 13930 | .page_size = 256, |
| 13931 | .feature_bits = FEATURE_WRSR_EWSR, |
| 13932 | .tested = TEST_UNTESTED, |
| 13933 | .probe = probe_spi_rems, |
| 13934 | .probe_timing = TIMING_ZERO, |
| 13935 | .block_erasers = |
| 13936 | { |
| 13937 | { |
| 13938 | .eraseblocks = { {4 * 1024, 64} }, |
| 13939 | .block_erase = spi_block_erase_20, |
| 13940 | }, { |
| 13941 | .eraseblocks = { {32 * 1024, 8} }, |
| 13942 | .block_erase = spi_block_erase_52, |
| 13943 | }, { |
| 13944 | .eraseblocks = { {256 * 1024, 1} }, |
| 13945 | .block_erase = spi_block_erase_60, |
| 13946 | }, |
| 13947 | }, |
| 13948 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 13949 | .unlock = spi_disable_blockprotect, |
| 13950 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 13951 | .read = spi_chip_read, /* only */ |
| 13952 | .voltage = {2700, 3600}, |
| 13953 | }, |
| 13954 | |
| 13955 | { |
| 13956 | .vendor = "SST", |
| 13957 | .name = "SST25VF020B", |
| 13958 | .bustype = BUS_SPI, |
| 13959 | .manufacture_id = SST_ID, |
| 13960 | .model_id = SST_SST25VF020B, |
| 13961 | .total_size = 256, |
| 13962 | .page_size = 256, |
| 13963 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 13964 | .tested = TEST_OK_PREW, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 13965 | .probe = probe_spi_rdid, |
| 13966 | .probe_timing = TIMING_ZERO, |
| 13967 | .block_erasers = |
| 13968 | { |
| 13969 | { |
| 13970 | .eraseblocks = { {4 * 1024, 64} }, |
| 13971 | .block_erase = spi_block_erase_20, |
| 13972 | }, { |
| 13973 | .eraseblocks = { {32 * 1024, 8} }, |
| 13974 | .block_erase = spi_block_erase_52, |
| 13975 | }, { |
| 13976 | .eraseblocks = { {64 * 1024, 4} }, |
| 13977 | .block_erase = spi_block_erase_d8, |
| 13978 | }, { |
| 13979 | .eraseblocks = { {256 * 1024, 1} }, |
| 13980 | .block_erase = spi_block_erase_60, |
| 13981 | }, { |
| 13982 | .eraseblocks = { {256 * 1024, 1} }, |
| 13983 | .block_erase = spi_block_erase_c7, |
| 13984 | }, |
| 13985 | }, |
| 13986 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */ |
| 13987 | .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */ |
| 13988 | .write = spi_aai_write, /* AAI supported (0xAD) */ |
| 13989 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13990 | .voltage = {2700, 3600}, |
| 13991 | }, |
| 13992 | |
| 13993 | { |
| 13994 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13995 | .name = "SST25VF032B", |
| 13996 | .bustype = BUS_SPI, |
| 13997 | .manufacture_id = SST_ID, |
| 13998 | .model_id = SST_SST25VF032B, |
| 13999 | .total_size = 4096, |
| 14000 | .page_size = 256, |
| 14001 | .feature_bits = FEATURE_WRSR_EWSR, |
| 14002 | .tested = TEST_OK_PREW, |
| 14003 | .probe = probe_spi_rdid, |
| 14004 | .probe_timing = TIMING_ZERO, |
| 14005 | .block_erasers = |
| 14006 | { |
| 14007 | { |
| 14008 | .eraseblocks = { {4 * 1024, 1024} }, |
| 14009 | .block_erase = spi_block_erase_20, |
| 14010 | }, { |
| 14011 | .eraseblocks = { {32 * 1024, 128} }, |
| 14012 | .block_erase = spi_block_erase_52, |
| 14013 | }, { |
| 14014 | .eraseblocks = { {64 * 1024, 64} }, |
| 14015 | .block_erase = spi_block_erase_d8, |
| 14016 | }, { |
| 14017 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 14018 | .block_erase = spi_block_erase_60, |
| 14019 | }, { |
| 14020 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 14021 | .block_erase = spi_block_erase_c7, |
| 14022 | }, |
| 14023 | }, |
| 14024 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
| 14025 | .unlock = spi_disable_blockprotect, |
| 14026 | .write = spi_aai_write, |
| 14027 | .read = spi_chip_read, |
| 14028 | .voltage = {2700, 3600}, |
| 14029 | }, |
| 14030 | |
| 14031 | { |
| 14032 | .vendor = "SST", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 14033 | .name = "SST25VF040", |
| 14034 | .bustype = BUS_SPI, |
| 14035 | .manufacture_id = SST_ID, |
| 14036 | .model_id = SST_SST25VF040_REMS, |
| 14037 | .total_size = 512, |
| 14038 | .page_size = 256, |
| 14039 | .feature_bits = FEATURE_WRSR_EWSR, |
| 14040 | .tested = TEST_OK_PR, |
| 14041 | .probe = probe_spi_rems, |
| 14042 | .probe_timing = TIMING_ZERO, |
| 14043 | .block_erasers = |
| 14044 | { |
| 14045 | { |
| 14046 | .eraseblocks = { {4 * 1024, 128} }, |
| 14047 | .block_erase = spi_block_erase_20, |
| 14048 | }, { |
| 14049 | .eraseblocks = { {32 * 1024, 16} }, |
| 14050 | .block_erase = spi_block_erase_52, |
| 14051 | }, { |
| 14052 | .eraseblocks = { {512 * 1024, 1} }, |
| 14053 | .block_erase = spi_block_erase_60, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 14054 | }, |
| 14055 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 14056 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 14057 | .unlock = spi_disable_blockprotect, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 14058 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 14059 | .read = spi_chip_read, |
| 14060 | .voltage = {2700, 3600}, |
| 14061 | }, |
| 14062 | |
| 14063 | { |
| 14064 | .vendor = "SST", |
| 14065 | .name = "SST25VF040B", |
| 14066 | .bustype = BUS_SPI, |
| 14067 | .manufacture_id = SST_ID, |
| 14068 | .model_id = SST_SST25VF040B, |
| 14069 | .total_size = 512, |
| 14070 | .page_size = 256, |
| 14071 | .feature_bits = FEATURE_WRSR_EWSR, |
| 14072 | .tested = TEST_OK_PREW, |
| 14073 | .probe = probe_spi_rdid, |
| 14074 | .probe_timing = TIMING_ZERO, |
| 14075 | .block_erasers = |
| 14076 | { |
| 14077 | { |
| 14078 | .eraseblocks = { {4 * 1024, 128} }, |
| 14079 | .block_erase = spi_block_erase_20, |
| 14080 | }, { |
| 14081 | .eraseblocks = { {32 * 1024, 16} }, |
| 14082 | .block_erase = spi_block_erase_52, |
| 14083 | }, { |
| 14084 | .eraseblocks = { {64 * 1024, 8} }, |
| 14085 | .block_erase = spi_block_erase_d8, |
| 14086 | }, { |
| 14087 | .eraseblocks = { {512 * 1024, 1} }, |
| 14088 | .block_erase = spi_block_erase_60, |
| 14089 | }, { |
| 14090 | .eraseblocks = { {512 * 1024, 1} }, |
| 14091 | .block_erase = spi_block_erase_c7, |
| 14092 | }, |
| 14093 | }, |
| 14094 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
| 14095 | .unlock = spi_disable_blockprotect, |
| 14096 | .write = spi_aai_write, /* AAI supported (0xAD) */ |
| 14097 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 14098 | .voltage = {2700, 3600}, |
| 14099 | }, |
| 14100 | |
| 14101 | { |
| 14102 | .vendor = "SST", |
| 14103 | .name = "SST25VF040B.REMS", |
| 14104 | .bustype = BUS_SPI, |
| 14105 | .manufacture_id = SST_ID, |
| 14106 | .model_id = SST_SST25VF040B_REMS, |
| 14107 | .total_size = 512, |
| 14108 | .page_size = 256, |
| 14109 | .feature_bits = FEATURE_WRSR_EWSR, |
| 14110 | .tested = TEST_OK_PREW, |
| 14111 | .probe = probe_spi_rems, |
| 14112 | .probe_timing = TIMING_ZERO, |
| 14113 | .block_erasers = |
| 14114 | { |
| 14115 | { |
| 14116 | .eraseblocks = { {4 * 1024, 128} }, |
| 14117 | .block_erase = spi_block_erase_20, |
| 14118 | }, { |
| 14119 | .eraseblocks = { {32 * 1024, 16} }, |
| 14120 | .block_erase = spi_block_erase_52, |
| 14121 | }, { |
| 14122 | .eraseblocks = { {64 * 1024, 8} }, |
| 14123 | .block_erase = spi_block_erase_d8, |
| 14124 | }, { |
| 14125 | .eraseblocks = { {512 * 1024, 1} }, |
| 14126 | .block_erase = spi_block_erase_60, |
| 14127 | }, { |
| 14128 | .eraseblocks = { {512 * 1024, 1} }, |
| 14129 | .block_erase = spi_block_erase_c7, |
| 14130 | }, |
| 14131 | }, |
| 14132 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
| 14133 | .unlock = spi_disable_blockprotect, |
| 14134 | .write = spi_aai_write, |
| 14135 | .read = spi_chip_read, |
| 14136 | .voltage = {2700, 3600}, |
| 14137 | }, |
| 14138 | |
| 14139 | { |
| 14140 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14141 | .name = "SST25VF064C", |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 14142 | .bustype = BUS_SPI, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14143 | .manufacture_id = SST_ID, |
| 14144 | .model_id = SST_SST25VF064C, |
| 14145 | .total_size = 8192, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 14146 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14147 | .feature_bits = FEATURE_WRSR_EWSR, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 14148 | .tested = TEST_OK_PREW, |
| 14149 | .probe = probe_spi_rdid, |
| 14150 | .probe_timing = TIMING_ZERO, |
| 14151 | .block_erasers = |
| 14152 | { |
| 14153 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14154 | .eraseblocks = { {4 * 1024, 2048} }, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 14155 | .block_erase = spi_block_erase_20, |
| 14156 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14157 | .eraseblocks = { {32 * 1024, 256} }, |
| 14158 | .block_erase = spi_block_erase_52, |
| 14159 | }, { |
| 14160 | .eraseblocks = { {64 * 1024, 128} }, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 14161 | .block_erase = spi_block_erase_d8, |
| 14162 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14163 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 14164 | .block_erase = spi_block_erase_60, |
| 14165 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14166 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 14167 | .block_erase = spi_block_erase_c7, |
| 14168 | }, |
| 14169 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14170 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
| 14171 | .unlock = spi_disable_blockprotect, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 14172 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14173 | .read = spi_chip_read, |
| 14174 | .voltage = {2700, 3600}, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 14175 | }, |
| 14176 | |
| 14177 | { |
| 14178 | .vendor = "SST", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 14179 | .name = "SST25VF080B", |
| 14180 | .bustype = BUS_SPI, |
| 14181 | .manufacture_id = SST_ID, |
| 14182 | .model_id = SST_SST25VF080B, |
| 14183 | .total_size = 1024, |
| 14184 | .page_size = 256, |
| 14185 | .feature_bits = FEATURE_WRSR_EWSR, |
| 14186 | .tested = TEST_OK_PREW, |
| 14187 | .probe = probe_spi_rdid, |
| 14188 | .probe_timing = TIMING_ZERO, |
| 14189 | .block_erasers = |
| 14190 | { |
| 14191 | { |
| 14192 | .eraseblocks = { {4 * 1024, 256} }, |
| 14193 | .block_erase = spi_block_erase_20, |
| 14194 | }, { |
| 14195 | .eraseblocks = { {32 * 1024, 32} }, |
| 14196 | .block_erase = spi_block_erase_52, |
| 14197 | }, { |
| 14198 | .eraseblocks = { {64 * 1024, 16} }, |
| 14199 | .block_erase = spi_block_erase_d8, |
| 14200 | }, { |
| 14201 | .eraseblocks = { {1024 * 1024, 1} }, |
| 14202 | .block_erase = spi_block_erase_60, |
| 14203 | }, { |
| 14204 | .eraseblocks = { {1024 * 1024, 1} }, |
| 14205 | .block_erase = spi_block_erase_c7, |
| 14206 | }, |
| 14207 | }, |
| 14208 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
| 14209 | .unlock = spi_disable_blockprotect, |
| 14210 | .write = spi_aai_write, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 14211 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 14212 | .voltage = {2700, 3600}, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 14213 | }, |
| 14214 | |
| 14215 | { |
| 14216 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14217 | .name = "SST25VF512(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14218 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14219 | .manufacture_id = SST_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14220 | .model_id = SST_SST25VF512_REMS, |
| 14221 | .total_size = 64, |
| 14222 | .page_size = 256, |
| 14223 | .feature_bits = FEATURE_WRSR_EWSR, |
| 14224 | .tested = TEST_OK_PREW, |
| 14225 | .probe = probe_spi_rems, |
| 14226 | .probe_timing = TIMING_ZERO, |
| 14227 | .block_erasers = |
| 14228 | { |
| 14229 | { |
| 14230 | .eraseblocks = { {4 * 1024, 16} }, |
| 14231 | .block_erase = spi_block_erase_20, |
| 14232 | }, { |
| 14233 | .eraseblocks = { {32 * 1024, 2} }, |
| 14234 | .block_erase = spi_block_erase_52, |
| 14235 | }, { |
| 14236 | .eraseblocks = { {32 * 1024, 2} }, |
| 14237 | .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */ |
| 14238 | }, { |
| 14239 | .eraseblocks = { {64 * 1024, 1} }, |
| 14240 | .block_erase = spi_block_erase_60, |
| 14241 | }, { |
| 14242 | .eraseblocks = { {64 * 1024, 1} }, |
| 14243 | .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */ |
| 14244 | }, |
| 14245 | }, |
| 14246 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 14247 | .unlock = spi_disable_blockprotect, |
| 14248 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 14249 | .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */ |
| 14250 | .voltage = {2700, 3600}, |
| 14251 | }, |
| 14252 | |
| 14253 | { |
| 14254 | .vendor = "SST", |
| 14255 | .name = "SST25WF010", |
| 14256 | .bustype = BUS_SPI, |
| 14257 | .manufacture_id = SST_ID, |
| 14258 | .model_id = SST_SST25WF010, |
| 14259 | .total_size = 128, |
| 14260 | .page_size = 256, |
| 14261 | .feature_bits = FEATURE_WRSR_EITHER, |
| 14262 | .tested = TEST_UNTESTED, |
| 14263 | .probe = probe_spi_rdid, |
| 14264 | .probe_timing = TIMING_ZERO, |
| 14265 | .block_erasers = |
| 14266 | { |
| 14267 | { |
| 14268 | .eraseblocks = { {4 * 1024, 32} }, |
| 14269 | .block_erase = spi_block_erase_20, |
| 14270 | }, { |
| 14271 | .eraseblocks = { {32 * 1024, 4} }, |
| 14272 | .block_erase = spi_block_erase_52, |
| 14273 | }, { |
| 14274 | .eraseblocks = { {1024 * 128, 1} }, |
| 14275 | .block_erase = spi_block_erase_60, |
| 14276 | }, { |
| 14277 | .eraseblocks = { {1024 * 128, 1} }, |
| 14278 | .block_erase = spi_block_erase_c7, |
| 14279 | }, |
| 14280 | }, |
| 14281 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 14282 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 14283 | .write = spi_aai_write, |
| 14284 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 14285 | .voltage = {1650, 1950}, |
| 14286 | }, |
| 14287 | |
| 14288 | { |
| 14289 | .vendor = "SST", |
| 14290 | .name = "SST25WF020", |
| 14291 | .bustype = BUS_SPI, |
| 14292 | .manufacture_id = SST_ID, |
| 14293 | .model_id = SST_SST25WF020, |
| 14294 | .total_size = 256, |
| 14295 | .page_size = 256, |
| 14296 | .feature_bits = FEATURE_WRSR_EITHER, |
| 14297 | .tested = TEST_UNTESTED, |
| 14298 | .probe = probe_spi_rdid, |
| 14299 | .probe_timing = TIMING_ZERO, |
| 14300 | .block_erasers = |
| 14301 | { |
| 14302 | { |
| 14303 | .eraseblocks = { {4 * 1024, 64} }, |
| 14304 | .block_erase = spi_block_erase_20, |
| 14305 | }, { |
| 14306 | .eraseblocks = { {32 * 1024, 8} }, |
| 14307 | .block_erase = spi_block_erase_52, |
| 14308 | }, { |
| 14309 | .eraseblocks = { {64 * 1024, 4} }, |
| 14310 | .block_erase = spi_block_erase_d8, |
| 14311 | }, { |
| 14312 | .eraseblocks = { {1024 * 256, 1} }, |
| 14313 | .block_erase = spi_block_erase_60, |
| 14314 | }, { |
| 14315 | .eraseblocks = { {1024 * 256, 1} }, |
| 14316 | .block_erase = spi_block_erase_c7, |
| 14317 | }, |
| 14318 | }, |
| 14319 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 14320 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 14321 | .write = spi_aai_write, |
| 14322 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 14323 | .voltage = {1650, 1950}, |
| 14324 | }, |
| 14325 | |
| 14326 | { |
| 14327 | .vendor = "SST", |
| 14328 | .name = "SST25WF020A", |
| 14329 | .bustype = BUS_SPI, |
| 14330 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 14331 | .model_id = SST_SST25WF020A, |
| 14332 | .total_size = 256, |
| 14333 | .page_size = 256, |
| 14334 | .feature_bits = FEATURE_WRSR_WREN, |
| 14335 | .tested = TEST_UNTESTED, |
| 14336 | .probe = probe_spi_rdid, |
| 14337 | .probe_timing = TIMING_ZERO, |
| 14338 | .block_erasers = |
| 14339 | { |
| 14340 | { |
| 14341 | .eraseblocks = { {4 * 1024, 64} }, |
| 14342 | .block_erase = spi_block_erase_20, |
| 14343 | }, { |
| 14344 | .eraseblocks = { {64 * 1024, 4} }, |
| 14345 | .block_erase = spi_block_erase_d8, |
| 14346 | }, { |
| 14347 | .eraseblocks = { {256 * 1024, 1} }, |
| 14348 | .block_erase = spi_block_erase_60, |
| 14349 | }, { |
| 14350 | .eraseblocks = { {256 * 1024, 1} }, |
| 14351 | .block_erase = spi_block_erase_c7, |
| 14352 | }, |
| 14353 | }, |
| 14354 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 14355 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 14356 | .write = spi_chip_write_256, |
| 14357 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 14358 | .voltage = {1650, 1950}, |
| 14359 | }, |
| 14360 | |
| 14361 | { |
| 14362 | .vendor = "SST", |
| 14363 | .name = "SST25WF040", |
| 14364 | .bustype = BUS_SPI, |
| 14365 | .manufacture_id = SST_ID, |
| 14366 | .model_id = SST_SST25WF040, |
| 14367 | .total_size = 512, |
| 14368 | .page_size = 256, |
| 14369 | .feature_bits = FEATURE_WRSR_EITHER, |
| 14370 | .tested = TEST_UNTESTED, |
| 14371 | .probe = probe_spi_rdid, |
| 14372 | .probe_timing = TIMING_ZERO, |
| 14373 | .block_erasers = |
| 14374 | { |
| 14375 | { |
| 14376 | .eraseblocks = { {4 * 1024, 128} }, |
| 14377 | .block_erase = spi_block_erase_20, |
| 14378 | }, { |
| 14379 | .eraseblocks = { {32 * 1024, 16} }, |
| 14380 | .block_erase = spi_block_erase_52, |
| 14381 | }, { |
| 14382 | .eraseblocks = { {64 * 1024, 8} }, |
| 14383 | .block_erase = spi_block_erase_d8, |
| 14384 | }, { |
| 14385 | .eraseblocks = { {1024 * 512, 1} }, |
| 14386 | .block_erase = spi_block_erase_60, |
| 14387 | }, { |
| 14388 | .eraseblocks = { {1024 * 512, 1} }, |
| 14389 | .block_erase = spi_block_erase_c7, |
| 14390 | }, |
| 14391 | }, |
| 14392 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 14393 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 14394 | .write = spi_aai_write, |
| 14395 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 14396 | .voltage = {1650, 1950}, |
| 14397 | }, |
| 14398 | |
| 14399 | { |
| 14400 | .vendor = "SST", |
| 14401 | .name = "SST25WF040B", |
| 14402 | .bustype = BUS_SPI, |
| 14403 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 14404 | .model_id = SST_SST25WF040B, |
| 14405 | .total_size = 512, |
| 14406 | .page_size = 256, |
| 14407 | .feature_bits = FEATURE_WRSR_WREN, |
| 14408 | .tested = TEST_UNTESTED, |
| 14409 | .probe = probe_spi_rdid, |
| 14410 | .probe_timing = TIMING_ZERO, |
| 14411 | .block_erasers = |
| 14412 | { |
| 14413 | { |
| 14414 | .eraseblocks = { {4 * 1024, 128} }, |
| 14415 | .block_erase = spi_block_erase_20, |
| 14416 | }, { |
| 14417 | .eraseblocks = { {64 * 1024, 8} }, |
| 14418 | .block_erase = spi_block_erase_d8, |
| 14419 | }, { |
| 14420 | .eraseblocks = { {512 * 1024, 1} }, |
| 14421 | .block_erase = spi_block_erase_60, |
| 14422 | }, { |
| 14423 | .eraseblocks = { {512 * 1024, 1} }, |
| 14424 | .block_erase = spi_block_erase_c7, |
| 14425 | }, |
| 14426 | }, |
| 14427 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 14428 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 14429 | .write = spi_chip_write_256, |
| 14430 | .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */ |
| 14431 | .voltage = {1650, 1950}, |
| 14432 | }, |
| 14433 | |
| 14434 | { |
| 14435 | .vendor = "SST", |
| 14436 | .name = "SST25WF080", |
| 14437 | .bustype = BUS_SPI, |
| 14438 | .manufacture_id = SST_ID, |
| 14439 | .model_id = SST_SST25WF080, |
| 14440 | .total_size = 1024, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14441 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 14442 | .feature_bits = FEATURE_WRSR_EITHER, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 14443 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14444 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 14445 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14446 | .block_erasers = |
| 14447 | { |
| 14448 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14449 | .eraseblocks = { {4 * 1024, 256} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14450 | .block_erase = spi_block_erase_20, |
| 14451 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14452 | .eraseblocks = { {32 * 1024, 32} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14453 | .block_erase = spi_block_erase_52, |
| 14454 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14455 | .eraseblocks = { {64 * 1024, 16} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14456 | .block_erase = spi_block_erase_d8, |
| 14457 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14458 | .eraseblocks = { {1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14459 | .block_erase = spi_block_erase_60, |
| 14460 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14461 | .eraseblocks = { {1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14462 | .block_erase = spi_block_erase_c7, |
| 14463 | }, |
| 14464 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14465 | .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */ |
| 14466 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 14467 | .write = spi_aai_write, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14468 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 14469 | .voltage = {1650, 1950}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14470 | }, |
| 14471 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14472 | { |
| 14473 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14474 | .name = "SST25WF080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14475 | .bustype = BUS_SPI, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14476 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 14477 | .model_id = SST_SST25WF080B, |
| 14478 | .total_size = 1024, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14479 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14480 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | fcf6a8c | 2011-05-18 01:32:00 +0000 | [diff] [blame] | 14481 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14482 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 14483 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14484 | .block_erasers = |
| 14485 | { |
| 14486 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14487 | .eraseblocks = { {4 * 1024, 256} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14488 | .block_erase = spi_block_erase_20, |
| 14489 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14490 | .eraseblocks = { {64 * 1024, 16} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14491 | .block_erase = spi_block_erase_d8, |
| 14492 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14493 | .eraseblocks = { {1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14494 | .block_erase = spi_block_erase_60, |
| 14495 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14496 | .eraseblocks = { {1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14497 | .block_erase = spi_block_erase_c7, |
| 14498 | }, |
| 14499 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14500 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 14501 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 14502 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14503 | .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */ |
| 14504 | .voltage = {1650, 1950}, |
| 14505 | }, |
| 14506 | |
| 14507 | { |
| 14508 | .vendor = "SST", |
| 14509 | .name = "SST25WF512", |
| 14510 | .bustype = BUS_SPI, |
| 14511 | .manufacture_id = SST_ID, |
| 14512 | .model_id = SST_SST25WF512, |
| 14513 | .total_size = 64, |
| 14514 | .page_size = 256, |
| 14515 | .feature_bits = FEATURE_WRSR_EITHER, |
| 14516 | .tested = TEST_UNTESTED, |
| 14517 | .probe = probe_spi_rdid, |
| 14518 | .probe_timing = TIMING_ZERO, |
| 14519 | .block_erasers = |
| 14520 | { |
| 14521 | { |
| 14522 | .eraseblocks = { {4 * 1024, 16} }, |
| 14523 | .block_erase = spi_block_erase_20, |
| 14524 | }, { |
| 14525 | .eraseblocks = { {32 * 1024, 2} }, |
| 14526 | .block_erase = spi_block_erase_52, |
| 14527 | }, { |
| 14528 | .eraseblocks = { {1024 * 64, 1} }, |
| 14529 | .block_erase = spi_block_erase_60, |
| 14530 | }, { |
| 14531 | .eraseblocks = { {1024 * 64, 1} }, |
| 14532 | .block_erase = spi_block_erase_c7, |
| 14533 | }, |
| 14534 | }, |
| 14535 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 14536 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 14537 | .write = spi_aai_write, |
| 14538 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 14539 | .voltage = {1650, 1950}, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 14540 | }, |
| 14541 | |
| 14542 | { |
| 14543 | .vendor = "SST", |
Nico Huber | a2eaf4a | 2023-02-15 22:56:53 +0100 | [diff] [blame] | 14544 | .name = "SST26VF016", |
| 14545 | .bustype = BUS_SPI, |
| 14546 | .manufacture_id = SST_ID, |
| 14547 | .model_id = SST_SST26VF016, |
| 14548 | .total_size = 2048, |
| 14549 | .page_size = 256, |
| 14550 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 14551 | .tested = TEST_UNTESTED, |
| 14552 | .probe = probe_spi_rdid, |
| 14553 | .probe_timing = TIMING_ZERO, |
| 14554 | .block_erasers = |
| 14555 | { |
| 14556 | { |
| 14557 | .eraseblocks = { {4 * 1024, 512} }, |
| 14558 | .block_erase = spi_block_erase_20, |
| 14559 | }, { |
| 14560 | .eraseblocks = { |
| 14561 | {8 * 1024, 4}, |
| 14562 | {32 * 1024, 1}, |
| 14563 | {64 * 1024, 30}, |
| 14564 | {32 * 1024, 1}, |
| 14565 | {8 * 1024, 4}, |
| 14566 | }, |
| 14567 | .block_erase = spi_block_erase_d8, |
| 14568 | }, { |
| 14569 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 14570 | .block_erase = spi_block_erase_c7, |
| 14571 | }, |
| 14572 | }, |
| 14573 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 14574 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 14575 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 14576 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 14577 | .voltage = {2700, 3600}, |
| 14578 | }, |
| 14579 | |
| 14580 | { |
| 14581 | .vendor = "SST", |
Wei Hu | 25584de | 2018-04-30 14:02:08 -0700 | [diff] [blame] | 14582 | .name = "SST26VF016B(A)", |
| 14583 | .bustype = BUS_SPI, |
| 14584 | .manufacture_id = SST_ID, |
| 14585 | .model_id = SST_SST26VF016B, |
| 14586 | .total_size = 2048, |
| 14587 | .page_size = 256, |
| 14588 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 14589 | .tested = TEST_OK_PREW, |
| 14590 | .probe = probe_spi_rdid, |
| 14591 | .probe_timing = TIMING_ZERO, |
| 14592 | .block_erasers = |
| 14593 | { |
| 14594 | { |
| 14595 | .eraseblocks = { {4 * 1024, 512} }, |
| 14596 | .block_erase = spi_block_erase_20, |
| 14597 | }, { |
| 14598 | .eraseblocks = { |
| 14599 | {8 * 1024, 4}, |
| 14600 | {32 * 1024, 1}, |
| 14601 | {64 * 1024, 30}, |
| 14602 | {32 * 1024, 1}, |
| 14603 | {8 * 1024, 4}, |
| 14604 | }, |
| 14605 | .block_erase = spi_block_erase_d8, |
| 14606 | }, { |
| 14607 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 14608 | .block_erase = spi_block_erase_c7, |
| 14609 | }, |
| 14610 | }, |
| 14611 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 14612 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 14613 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 14614 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 14615 | .voltage = {2700, 3600}, |
| 14616 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 14617 | |
Wei Hu | 25584de | 2018-04-30 14:02:08 -0700 | [diff] [blame] | 14618 | { |
| 14619 | .vendor = "SST", |
Nico Huber | a2eaf4a | 2023-02-15 22:56:53 +0100 | [diff] [blame] | 14620 | .name = "SST26VF032", |
| 14621 | .bustype = BUS_SPI, |
| 14622 | .manufacture_id = SST_ID, |
| 14623 | .model_id = SST_SST26VF032, |
| 14624 | .total_size = 4096, |
| 14625 | .page_size = 256, |
| 14626 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 14627 | .tested = TEST_UNTESTED, |
| 14628 | .probe = probe_spi_rdid, |
| 14629 | .probe_timing = TIMING_ZERO, |
| 14630 | .block_erasers = |
| 14631 | { |
| 14632 | { |
| 14633 | .eraseblocks = { {4 * 1024, 1024} }, |
| 14634 | .block_erase = spi_block_erase_20, |
| 14635 | }, { |
| 14636 | .eraseblocks = { |
| 14637 | {8 * 1024, 4}, |
| 14638 | {32 * 1024, 1}, |
| 14639 | {64 * 1024, 62}, |
| 14640 | {32 * 1024, 1}, |
| 14641 | {8 * 1024, 4}, |
| 14642 | }, |
| 14643 | .block_erase = spi_block_erase_d8, |
| 14644 | }, { |
| 14645 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 14646 | .block_erase = spi_block_erase_c7, |
| 14647 | }, |
| 14648 | }, |
| 14649 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 14650 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 14651 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 14652 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 14653 | .voltage = {2700, 3600}, |
| 14654 | }, |
| 14655 | |
| 14656 | { |
| 14657 | .vendor = "SST", |
Wei Hu | 25584de | 2018-04-30 14:02:08 -0700 | [diff] [blame] | 14658 | .name = "SST26VF032B(A)", |
| 14659 | .bustype = BUS_SPI, |
| 14660 | .manufacture_id = SST_ID, |
| 14661 | .model_id = SST_SST26VF032B, |
| 14662 | .total_size = 4096, |
| 14663 | .page_size = 256, |
| 14664 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 14665 | .tested = TEST_UNTESTED, |
| 14666 | .probe = probe_spi_rdid, |
| 14667 | .probe_timing = TIMING_ZERO, |
| 14668 | .block_erasers = |
| 14669 | { |
| 14670 | { |
| 14671 | .eraseblocks = { {4 * 1024, 1024} }, |
| 14672 | .block_erase = spi_block_erase_20, |
| 14673 | }, { |
| 14674 | .eraseblocks = { |
| 14675 | {8 * 1024, 4}, |
| 14676 | {32 * 1024, 1}, |
| 14677 | {64 * 1024, 62}, |
| 14678 | {32 * 1024, 1}, |
| 14679 | {8 * 1024, 4}, |
| 14680 | }, |
| 14681 | .block_erase = spi_block_erase_d8, |
| 14682 | }, { |
| 14683 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 14684 | .block_erase = spi_block_erase_c7, |
| 14685 | }, |
| 14686 | }, |
| 14687 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 14688 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 14689 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 14690 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 14691 | .voltage = {2700, 3600}, |
| 14692 | }, |
| 14693 | |
Wei Hu | 25584de | 2018-04-30 14:02:08 -0700 | [diff] [blame] | 14694 | { |
| 14695 | .vendor = "SST", |
| 14696 | .name = "SST26VF064B(A)", |
| 14697 | .bustype = BUS_SPI, |
| 14698 | .manufacture_id = SST_ID, |
| 14699 | .model_id = SST_SST26VF064B, |
| 14700 | .total_size = 8192, |
| 14701 | .page_size = 256, |
| 14702 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 14703 | .tested = TEST_OK_PREW, |
| 14704 | .probe = probe_spi_rdid, |
| 14705 | .probe_timing = TIMING_ZERO, |
| 14706 | .block_erasers = |
| 14707 | { |
| 14708 | { |
| 14709 | .eraseblocks = { {4 * 1024, 2048} }, |
| 14710 | .block_erase = spi_block_erase_20, |
| 14711 | }, { |
| 14712 | .eraseblocks = { |
| 14713 | {8 * 1024, 4}, |
| 14714 | {32 * 1024, 1}, |
| 14715 | {64 * 1024, 126}, |
| 14716 | {32 * 1024, 1}, |
| 14717 | {8 * 1024, 4}, |
| 14718 | }, |
| 14719 | .block_erase = spi_block_erase_d8, |
| 14720 | }, { |
| 14721 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 14722 | .block_erase = spi_block_erase_c7, |
| 14723 | }, |
| 14724 | }, |
| 14725 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 14726 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 14727 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 14728 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 14729 | .voltage = {2700, 3600}, |
| 14730 | }, |
| 14731 | |
| 14732 | { |
| 14733 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14734 | .name = "SST28SF040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14735 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14736 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14737 | .model_id = SST_SST28SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14738 | .total_size = 512, |
| 14739 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14740 | .feature_bits = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14741 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 14742 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 14743 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14744 | .block_erasers = |
| 14745 | { |
| 14746 | { |
| 14747 | .eraseblocks = { {128, 4096} }, |
| 14748 | .block_erase = erase_sector_28sf040, |
| 14749 | }, { |
| 14750 | .eraseblocks = { {512 * 1024, 1} }, |
| 14751 | .block_erase = erase_chip_28sf040, |
| 14752 | } |
| 14753 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 14754 | .unlock = unprotect_28sf040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14755 | .write = write_28sf040, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14756 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14757 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 14758 | .prepare_access = prepare_memory_access, |
| 14759 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14760 | }, |
| 14761 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14762 | { |
| 14763 | .vendor = "SST", |
| 14764 | .name = "SST29EE010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14765 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14766 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14767 | .model_id = SST_SST29EE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14768 | .total_size = 128, |
| 14769 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14770 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 14771 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14772 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14773 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14774 | .block_erasers = |
| 14775 | { |
| 14776 | { |
| 14777 | .eraseblocks = { {128 * 1024, 1} }, |
| 14778 | .block_erase = erase_chip_block_jedec, |
| 14779 | } |
| 14780 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14781 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14782 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14783 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 14784 | .prepare_access = prepare_memory_access, |
| 14785 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14786 | }, |
| 14787 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14788 | { |
| 14789 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14790 | .name = "SST29EE020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14791 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14792 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14793 | .model_id = SST_SST29EE020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14794 | .total_size = 256, |
| 14795 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14796 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 14797 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14798 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14799 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14800 | .block_erasers = |
| 14801 | { |
| 14802 | { |
| 14803 | .eraseblocks = { {256 * 1024, 1} }, |
| 14804 | .block_erase = erase_chip_block_jedec, |
| 14805 | } |
| 14806 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14807 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14808 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14809 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 14810 | .prepare_access = prepare_memory_access, |
| 14811 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14812 | }, |
| 14813 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14814 | { |
| 14815 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14816 | .name = "SST29LE010", |
| 14817 | .bustype = BUS_PARALLEL, |
| 14818 | .manufacture_id = SST_ID, |
| 14819 | .model_id = SST_SST29LE010, |
| 14820 | .total_size = 128, |
| 14821 | .page_size = 128, |
| 14822 | .feature_bits = FEATURE_LONG_RESET, |
| 14823 | .tested = TEST_UNTESTED, |
| 14824 | .probe = probe_jedec, |
| 14825 | .probe_timing = 10, |
| 14826 | .block_erasers = |
| 14827 | { |
| 14828 | { |
| 14829 | .eraseblocks = { {128 * 1024, 1} }, |
| 14830 | .block_erase = erase_chip_block_jedec, |
| 14831 | } |
| 14832 | }, |
| 14833 | .write = write_jedec, |
| 14834 | .read = read_memmapped, |
| 14835 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 14836 | .prepare_access = prepare_memory_access, |
| 14837 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14838 | }, |
| 14839 | |
| 14840 | { |
| 14841 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14842 | .name = "SST29LE020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14843 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14844 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14845 | .model_id = SST_SST29LE020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14846 | .total_size = 256, |
| 14847 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14848 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 14849 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14850 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14851 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14852 | .block_erasers = |
| 14853 | { |
| 14854 | { |
| 14855 | .eraseblocks = { {256 * 1024, 1} }, |
| 14856 | .block_erase = erase_chip_block_jedec, |
| 14857 | } |
| 14858 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14859 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14860 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14861 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 14862 | .prepare_access = prepare_memory_access, |
| 14863 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14864 | }, |
| 14865 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14866 | { |
| 14867 | .vendor = "SST", |
| 14868 | .name = "SST39SF010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14869 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14870 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14871 | .model_id = SST_SST39SF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14872 | .total_size = 128, |
| 14873 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14874 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 14875 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14876 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 14877 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14878 | .block_erasers = |
| 14879 | { |
| 14880 | { |
| 14881 | .eraseblocks = { {4 * 1024, 32} }, |
| 14882 | .block_erase = erase_sector_jedec, |
| 14883 | }, { |
| 14884 | .eraseblocks = { {128 * 1024, 1} }, |
| 14885 | .block_erase = erase_chip_block_jedec, |
| 14886 | } |
| 14887 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14888 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14889 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14890 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 14891 | .prepare_access = prepare_memory_access, |
| 14892 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14893 | }, |
| 14894 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14895 | { |
| 14896 | .vendor = "SST", |
| 14897 | .name = "SST39SF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14898 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14899 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14900 | .model_id = SST_SST39SF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14901 | .total_size = 256, |
| 14902 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14903 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 19f46f2 | 2011-06-18 22:56:14 +0000 | [diff] [blame] | 14904 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14905 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14906 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14907 | .block_erasers = |
| 14908 | { |
| 14909 | { |
| 14910 | .eraseblocks = { {4 * 1024, 64} }, |
| 14911 | .block_erase = erase_sector_jedec, |
| 14912 | }, { |
| 14913 | .eraseblocks = { {256 * 1024, 1} }, |
| 14914 | .block_erase = erase_chip_block_jedec, |
| 14915 | } |
| 14916 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14917 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14918 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14919 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 14920 | .prepare_access = prepare_memory_access, |
| 14921 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14922 | }, |
| 14923 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14924 | { |
| 14925 | .vendor = "SST", |
| 14926 | .name = "SST39SF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14927 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14928 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14929 | .model_id = SST_SST39SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14930 | .total_size = 512, |
| 14931 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14932 | .feature_bits = FEATURE_EITHER_RESET, |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 14933 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14934 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14935 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14936 | .block_erasers = |
| 14937 | { |
| 14938 | { |
| 14939 | .eraseblocks = { {4 * 1024, 128} }, |
| 14940 | .block_erase = erase_sector_jedec, |
| 14941 | }, { |
| 14942 | .eraseblocks = { {512 * 1024, 1} }, |
| 14943 | .block_erase = erase_chip_block_jedec, |
| 14944 | } |
| 14945 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14946 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14947 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14948 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 14949 | .prepare_access = prepare_memory_access, |
| 14950 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14951 | }, |
| 14952 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14953 | { |
| 14954 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14955 | .name = "SST39SF512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14956 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14957 | .manufacture_id = SST_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14958 | .model_id = SST_SST39SF512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14959 | .total_size = 64, |
| 14960 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14961 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 14962 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14963 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14964 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14965 | .block_erasers = |
| 14966 | { |
| 14967 | { |
| 14968 | .eraseblocks = { {4 * 1024, 16} }, |
| 14969 | .block_erase = erase_sector_jedec, |
| 14970 | }, { |
| 14971 | .eraseblocks = { {64 * 1024, 1} }, |
| 14972 | .block_erase = erase_chip_block_jedec, |
| 14973 | } |
| 14974 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14975 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14976 | .read = read_memmapped, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14977 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 14978 | .prepare_access = prepare_memory_access, |
| 14979 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14980 | }, |
| 14981 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14982 | { |
| 14983 | .vendor = "SST", |
| 14984 | .name = "SST39VF010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14985 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14986 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14987 | .model_id = SST_SST39VF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14988 | .total_size = 128, |
| 14989 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14990 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 14991 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14992 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 14993 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 14994 | .block_erasers = |
| 14995 | { |
| 14996 | { |
| 14997 | .eraseblocks = { {4 * 1024, 32} }, |
| 14998 | .block_erase = erase_sector_jedec, |
| 14999 | }, { |
| 15000 | .eraseblocks = { {128 * 1024, 1} }, |
| 15001 | .block_erase = erase_chip_block_jedec, |
| 15002 | } |
| 15003 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15004 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15005 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15006 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15007 | .prepare_access = prepare_memory_access, |
| 15008 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15009 | }, |
| 15010 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15011 | { |
| 15012 | .vendor = "SST", |
| 15013 | .name = "SST39VF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15014 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15015 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15016 | .model_id = SST_SST39VF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15017 | .total_size = 256, |
| 15018 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15019 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 15020 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15021 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 15022 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15023 | .block_erasers = |
| 15024 | { |
| 15025 | { |
| 15026 | .eraseblocks = { {4 * 1024, 64} }, |
| 15027 | .block_erase = erase_sector_jedec, |
| 15028 | }, { |
| 15029 | .eraseblocks = { {256 * 1024, 1} }, |
| 15030 | .block_erase = erase_chip_block_jedec, |
| 15031 | } |
| 15032 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15033 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15034 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15035 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15036 | .prepare_access = prepare_memory_access, |
| 15037 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15038 | }, |
| 15039 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15040 | { |
| 15041 | .vendor = "SST", |
| 15042 | .name = "SST39VF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15043 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15044 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15045 | .model_id = SST_SST39VF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15046 | .total_size = 512, |
| 15047 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15048 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 15049 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15050 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 15051 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15052 | .block_erasers = |
| 15053 | { |
| 15054 | { |
| 15055 | .eraseblocks = { {4 * 1024, 128} }, |
| 15056 | .block_erase = erase_sector_jedec, |
| 15057 | }, { |
| 15058 | .eraseblocks = { {512 * 1024, 1} }, |
| 15059 | .block_erase = erase_chip_block_jedec, |
| 15060 | } |
| 15061 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15062 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15063 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15064 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15065 | .prepare_access = prepare_memory_access, |
| 15066 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | 90eff15 | 2008-12-08 23:51:45 +0000 | [diff] [blame] | 15067 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15068 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15069 | { |
| 15070 | .vendor = "SST", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 15071 | .name = "SST39VF080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15072 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 15073 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15074 | .model_id = SST_SST39VF080, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 15075 | .total_size = 1024, |
| 15076 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15077 | .feature_bits = FEATURE_EITHER_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 15078 | .tested = TEST_UNTESTED, |
| 15079 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 15080 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15081 | .block_erasers = |
| 15082 | { |
| 15083 | { |
| 15084 | .eraseblocks = { {4 * 1024, 256} }, |
| 15085 | .block_erase = erase_sector_jedec, |
| 15086 | }, { |
| 15087 | .eraseblocks = { {64 * 1024, 16} }, |
| 15088 | .block_erase = erase_block_jedec, |
| 15089 | }, { |
| 15090 | .eraseblocks = { {1024 * 1024, 1} }, |
| 15091 | .block_erase = erase_chip_block_jedec, |
| 15092 | } |
| 15093 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15094 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15095 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15096 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15097 | .prepare_access = prepare_memory_access, |
| 15098 | .finish_access = finish_memory_access, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 15099 | }, |
| 15100 | |
| 15101 | { |
| 15102 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 15103 | .name = "SST39VF512", |
| 15104 | .bustype = BUS_PARALLEL, |
| 15105 | .manufacture_id = SST_ID, |
| 15106 | .model_id = SST_SST39VF512, |
| 15107 | .total_size = 64, |
| 15108 | .page_size = 4096, |
| 15109 | .feature_bits = FEATURE_EITHER_RESET, |
| 15110 | .tested = TEST_OK_PREW, |
| 15111 | .probe = probe_jedec, |
| 15112 | .probe_timing = 1, /* 150 ns */ |
| 15113 | .block_erasers = |
| 15114 | { |
| 15115 | { |
| 15116 | .eraseblocks = { {4 * 1024, 16} }, |
| 15117 | .block_erase = erase_sector_jedec, |
| 15118 | }, { |
| 15119 | .eraseblocks = { {64 * 1024, 1} }, |
| 15120 | .block_erase = erase_chip_block_jedec, |
| 15121 | } |
| 15122 | }, |
| 15123 | .write = write_jedec_1, |
| 15124 | .read = read_memmapped, |
| 15125 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15126 | .prepare_access = prepare_memory_access, |
| 15127 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 15128 | }, |
| 15129 | |
| 15130 | { |
| 15131 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15132 | .name = "SST49LF002A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15133 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15134 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15135 | .model_id = SST_SST49LF002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15136 | .total_size = 256, |
| 15137 | .page_size = 16 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 15138 | .feature_bits = FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 15139 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15140 | .probe = probe_jedec, |
| 15141 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15142 | .block_erasers = |
| 15143 | { |
| 15144 | { |
| 15145 | .eraseblocks = { {4 * 1024, 64} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 15146 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15147 | }, { |
| 15148 | .eraseblocks = { {16 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 15149 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15150 | }, { |
| 15151 | .eraseblocks = { {256 * 1024, 1} }, |
| 15152 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 15153 | } |
| 15154 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15155 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 15156 | .unlock = unlock_sst_fwhub, |
| 15157 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15158 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15159 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 15160 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15161 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15162 | }, |
| 15163 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15164 | { |
| 15165 | .vendor = "SST", |
| 15166 | .name = "SST49LF003A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15167 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15168 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15169 | .model_id = SST_SST49LF003A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15170 | .total_size = 384, |
| 15171 | .page_size = 64 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 15172 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 15173 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15174 | .probe = probe_jedec, |
| 15175 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15176 | .block_erasers = |
| 15177 | { |
| 15178 | { |
| 15179 | .eraseblocks = { {4 * 1024, 96} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 15180 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15181 | }, { |
| 15182 | .eraseblocks = { {64 * 1024, 6} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 15183 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15184 | }, { |
| 15185 | .eraseblocks = { {384 * 1024, 1} }, |
| 15186 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 15187 | } |
| 15188 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15189 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 15190 | .unlock = unlock_sst_fwhub, |
| 15191 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15192 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15193 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 15194 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15195 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15196 | }, |
| 15197 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15198 | { |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 15199 | /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB) |
| 15200 | * and is only honored for 64k block erase, but not 4k sector erase. |
| 15201 | */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15202 | .vendor = "SST", |
| 15203 | .name = "SST49LF004A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15204 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15205 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15206 | .model_id = SST_SST49LF004A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15207 | .total_size = 512, |
| 15208 | .page_size = 64 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 15209 | .feature_bits = FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 15210 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15211 | .probe = probe_jedec, |
| 15212 | .probe_timing = 1, /* 150 ns */ |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 15213 | .block_erasers = |
| 15214 | { |
| 15215 | { |
| 15216 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 15217 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 15218 | }, { |
| 15219 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 15220 | .block_erase = erase_block_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 15221 | }, { |
| 15222 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15223 | .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] | 15224 | }, |
| 15225 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15226 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 15227 | .unlock = unlock_sst_fwhub, |
| 15228 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15229 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15230 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 15231 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15232 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15233 | }, |
| 15234 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15235 | { |
| 15236 | .vendor = "SST", |
| 15237 | .name = "SST49LF004C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15238 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15239 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15240 | .model_id = SST_SST49LF004C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15241 | .total_size = 512, |
| 15242 | .page_size = 4 * 1024, |
| 15243 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15244 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 15245 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15246 | .block_erasers = |
| 15247 | { |
| 15248 | { |
| 15249 | .eraseblocks = { {4 * 1024, 128} }, |
| 15250 | .block_erase = erase_sector_49lfxxxc, |
| 15251 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 15252 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15253 | {64 * 1024, 7}, |
| 15254 | {32 * 1024, 1}, |
| 15255 | {8 * 1024, 2}, |
| 15256 | {16 * 1024, 1}, |
| 15257 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 15258 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15259 | } |
| 15260 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15261 | .printlock = printlock_regspace2_block_eraser_1, |
| 15262 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 15263 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15264 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15265 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 15266 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15267 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15268 | }, |
| 15269 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15270 | { |
| 15271 | .vendor = "SST", |
| 15272 | .name = "SST49LF008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15273 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15274 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15275 | .model_id = SST_SST49LF008A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15276 | .total_size = 1024, |
| 15277 | .page_size = 64 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 15278 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 15279 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15280 | .probe = probe_jedec, |
| 15281 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15282 | .block_erasers = |
| 15283 | { |
| 15284 | { |
| 15285 | .eraseblocks = { {4 * 1024, 256} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 15286 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15287 | }, { |
| 15288 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 15289 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15290 | }, { |
| 15291 | .eraseblocks = { {1024 * 1024, 1} }, |
| 15292 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 15293 | } |
| 15294 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15295 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 15296 | .unlock = unlock_sst_fwhub, |
| 15297 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15298 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15299 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 15300 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15301 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15302 | }, |
| 15303 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15304 | { |
| 15305 | .vendor = "SST", |
| 15306 | .name = "SST49LF008C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15307 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15308 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15309 | .model_id = SST_SST49LF008C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15310 | .total_size = 1024, |
| 15311 | .page_size = 4 * 1024, |
| 15312 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15313 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 15314 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15315 | .block_erasers = |
| 15316 | { |
| 15317 | { |
| 15318 | .eraseblocks = { {4 * 1024, 256} }, |
| 15319 | .block_erase = erase_sector_49lfxxxc, |
| 15320 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 15321 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15322 | {64 * 1024, 15}, |
| 15323 | {32 * 1024, 1}, |
| 15324 | {8 * 1024, 2}, |
| 15325 | {16 * 1024, 1}, |
| 15326 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 15327 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15328 | } |
| 15329 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15330 | .printlock = printlock_regspace2_block_eraser_1, |
| 15331 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 15332 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15333 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15334 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 15335 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15336 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15337 | }, |
| 15338 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15339 | { |
| 15340 | .vendor = "SST", |
| 15341 | .name = "SST49LF016C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15342 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15343 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15344 | .model_id = SST_SST49LF016C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15345 | .total_size = 2048, |
| 15346 | .page_size = 4 * 1024, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 15347 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15348 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 15349 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15350 | .block_erasers = |
| 15351 | { |
| 15352 | { |
| 15353 | .eraseblocks = { {4 * 1024, 512} }, |
| 15354 | .block_erase = erase_sector_49lfxxxc, |
| 15355 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 15356 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15357 | {64 * 1024, 31}, |
| 15358 | {32 * 1024, 1}, |
| 15359 | {8 * 1024, 2}, |
| 15360 | {16 * 1024, 1}, |
| 15361 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 15362 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15363 | } |
| 15364 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15365 | .printlock = printlock_regspace2_block_eraser_1, |
| 15366 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 15367 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15368 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15369 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 15370 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15371 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15372 | }, |
| 15373 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15374 | { |
| 15375 | .vendor = "SST", |
| 15376 | .name = "SST49LF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15377 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15378 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15379 | .model_id = SST_SST49LF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15380 | .total_size = 256, |
| 15381 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15382 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 15383 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15384 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 15385 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15386 | .block_erasers = |
| 15387 | { |
| 15388 | { |
| 15389 | .eraseblocks = { {4 * 1024, 64} }, |
| 15390 | .block_erase = erase_sector_jedec, |
| 15391 | }, { |
| 15392 | .eraseblocks = { {16 * 1024, 16} }, |
| 15393 | .block_erase = erase_block_jedec, |
| 15394 | }, { |
| 15395 | .eraseblocks = { {256 * 1024, 1} }, |
| 15396 | .block_erase = NULL, |
| 15397 | } |
| 15398 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15399 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15400 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15401 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15402 | .prepare_access = prepare_memory_access, |
| 15403 | .finish_access = finish_memory_access, |
Sven Schnelle | c208dfb | 2009-01-07 12:35:09 +0000 | [diff] [blame] | 15404 | }, |
| 15405 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15406 | { |
| 15407 | .vendor = "SST", |
| 15408 | .name = "SST49LF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15409 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15410 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15411 | .model_id = SST_SST49LF020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15412 | .total_size = 256, |
Carl-Daniel Hailfinger | da65432 | 2009-07-23 01:44:38 +0000 | [diff] [blame] | 15413 | .page_size = 4 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15414 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 15415 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15416 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 15417 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15418 | .block_erasers = |
| 15419 | { |
| 15420 | { |
| 15421 | .eraseblocks = { {4 * 1024, 64} }, |
| 15422 | .block_erase = erase_sector_jedec, |
| 15423 | }, { |
| 15424 | .eraseblocks = { {16 * 1024, 16} }, |
| 15425 | .block_erase = erase_block_jedec, |
| 15426 | }, { |
| 15427 | .eraseblocks = { {256 * 1024, 1} }, |
| 15428 | .block_erase = NULL, |
| 15429 | } |
| 15430 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15431 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15432 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15433 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15434 | .prepare_access = prepare_memory_access, |
| 15435 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15436 | }, |
| 15437 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15438 | { |
| 15439 | .vendor = "SST", |
| 15440 | .name = "SST49LF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15441 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15442 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15443 | .model_id = SST_SST49LF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15444 | .total_size = 512, |
| 15445 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15446 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 15447 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15448 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 15449 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15450 | .block_erasers = |
| 15451 | { |
| 15452 | { |
| 15453 | .eraseblocks = { {4 * 1024, 128} }, |
| 15454 | .block_erase = erase_sector_jedec, |
| 15455 | }, { |
| 15456 | .eraseblocks = { {64 * 1024, 8} }, |
| 15457 | .block_erase = erase_block_jedec, |
| 15458 | }, { |
| 15459 | .eraseblocks = { {512 * 1024, 1} }, |
| 15460 | .block_erase = NULL, |
| 15461 | } |
| 15462 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15463 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15464 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15465 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15466 | .prepare_access = prepare_memory_access, |
| 15467 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15468 | }, |
| 15469 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15470 | { |
| 15471 | .vendor = "SST", |
| 15472 | .name = "SST49LF040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15473 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15474 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15475 | .model_id = SST_SST49LF040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15476 | .total_size = 512, |
| 15477 | .page_size = 64 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 15478 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 15479 | .tested = TEST_OK_PREW, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15480 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15481 | .probe_timing = 1, /* 150ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15482 | .block_erasers = |
| 15483 | { |
| 15484 | { |
| 15485 | .eraseblocks = { {4 * 1024, 128} }, |
| 15486 | .block_erase = erase_sector_jedec, |
| 15487 | }, { |
| 15488 | .eraseblocks = { {64 * 1024, 8} }, |
| 15489 | .block_erase = erase_block_jedec, |
| 15490 | }, { |
| 15491 | .eraseblocks = { {512 * 1024, 1} }, |
| 15492 | .block_erase = NULL, |
| 15493 | } |
| 15494 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15495 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15496 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15497 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15498 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 15499 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15500 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15501 | }, |
| 15502 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15503 | { |
| 15504 | .vendor = "SST", |
| 15505 | .name = "SST49LF080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15506 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15507 | .manufacture_id = SST_ID, |
Elyes HAOUAS | 124ef38 | 2018-03-27 12:15:09 +0200 | [diff] [blame] | 15508 | .model_id = SST_SST49LF080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15509 | .total_size = 1024, |
| 15510 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15511 | .feature_bits = FEATURE_EITHER_RESET, |
Brandon Dowdy | f07bf32 | 2011-03-06 18:31:11 +0000 | [diff] [blame] | 15512 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15513 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 15514 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15515 | .block_erasers = |
| 15516 | { |
| 15517 | { |
| 15518 | .eraseblocks = { {4 * 1024, 256} }, |
| 15519 | .block_erase = erase_sector_jedec, |
| 15520 | }, { |
| 15521 | .eraseblocks = { {64 * 1024, 16} }, |
| 15522 | .block_erase = erase_block_jedec, |
| 15523 | }, { |
| 15524 | .eraseblocks = { {1024 * 1024, 1} }, |
| 15525 | .block_erase = NULL, |
| 15526 | } |
| 15527 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15528 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15529 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15530 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15531 | .prepare_access = prepare_memory_access, |
| 15532 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15533 | }, |
| 15534 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15535 | { |
| 15536 | .vendor = "SST", |
| 15537 | .name = "SST49LF160C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15538 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15539 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15540 | .model_id = SST_SST49LF160C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15541 | .total_size = 2048, |
| 15542 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15543 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15544 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 15545 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15546 | .block_erasers = |
| 15547 | { |
| 15548 | { |
| 15549 | .eraseblocks = { {4 * 1024, 512} }, |
| 15550 | .block_erase = erase_sector_49lfxxxc, |
| 15551 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 15552 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15553 | {64 * 1024, 31}, |
| 15554 | {32 * 1024, 1}, |
| 15555 | {8 * 1024, 2}, |
| 15556 | {16 * 1024, 1}, |
| 15557 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 15558 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15559 | } |
| 15560 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15561 | .printlock = printlock_regspace2_block_eraser_1, |
| 15562 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 15563 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15564 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15565 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 15566 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15567 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15568 | }, |
| 15569 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15570 | { |
| 15571 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15572 | .name = "M29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15573 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15574 | .manufacture_id = ST_ID, |
| 15575 | .model_id = ST_M29F002B, |
| 15576 | .total_size = 256, |
| 15577 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15578 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15579 | .tested = TEST_UNTESTED, |
| 15580 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 15581 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15582 | .block_erasers = |
| 15583 | { |
| 15584 | { |
| 15585 | .eraseblocks = { |
| 15586 | {16 * 1024, 1}, |
| 15587 | {8 * 1024, 2}, |
| 15588 | {32 * 1024, 1}, |
| 15589 | {64 * 1024, 3}, |
| 15590 | }, |
| 15591 | .block_erase = erase_sector_jedec, |
| 15592 | }, { |
| 15593 | .eraseblocks = { {256 * 1024, 1} }, |
| 15594 | .block_erase = erase_chip_block_jedec, |
| 15595 | } |
| 15596 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15597 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15598 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 15599 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15600 | .prepare_access = prepare_memory_access, |
| 15601 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15602 | }, |
| 15603 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15604 | { |
| 15605 | .vendor = "ST", |
| 15606 | .name = "M29F002T/NT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15607 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15608 | .manufacture_id = ST_ID, |
| 15609 | .model_id = ST_M29F002T, |
| 15610 | .total_size = 256, |
| 15611 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15612 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 15613 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15614 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 15615 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15616 | .block_erasers = |
| 15617 | { |
| 15618 | { |
| 15619 | .eraseblocks = { |
| 15620 | {64 * 1024, 3}, |
| 15621 | {32 * 1024, 1}, |
| 15622 | {8 * 1024, 2}, |
| 15623 | {16 * 1024, 1}, |
| 15624 | }, |
| 15625 | .block_erase = erase_sector_jedec, |
| 15626 | }, { |
| 15627 | .eraseblocks = { {256 * 1024, 1} }, |
| 15628 | .block_erase = erase_chip_block_jedec, |
| 15629 | } |
| 15630 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15631 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15632 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 15633 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */ |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15634 | .prepare_access = prepare_memory_access, |
| 15635 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15636 | }, |
| 15637 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15638 | { |
| 15639 | .vendor = "ST", |
| 15640 | .name = "M29F040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15641 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15642 | .manufacture_id = ST_ID, |
| 15643 | .model_id = ST_M29F040B, |
| 15644 | .total_size = 512, |
| 15645 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15646 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 15647 | .tested = TEST_UNTESTED, |
| 15648 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 15649 | .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15650 | .block_erasers = |
| 15651 | { |
| 15652 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15653 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15654 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15655 | }, { |
| 15656 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15657 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15658 | } |
| 15659 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15660 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15661 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15662 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15663 | .prepare_access = prepare_memory_access, |
| 15664 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15665 | }, |
| 15666 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15667 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15668 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15669 | .vendor = "ST", |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 15670 | .name = "M29F400BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15671 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 15672 | .manufacture_id = ST_ID, |
| 15673 | .model_id = ST_M29F400BB, |
| 15674 | .total_size = 512, |
| 15675 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 15676 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 15677 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 15678 | .probe = probe_jedec, |
| 15679 | .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] | 15680 | .block_erasers = |
| 15681 | { |
| 15682 | { |
| 15683 | .eraseblocks = { |
| 15684 | {16 * 1024, 1}, |
| 15685 | {8 * 1024, 2}, |
| 15686 | {32 * 1024, 1}, |
| 15687 | {64 * 1024, 7}, |
| 15688 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 15689 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 15690 | }, { |
| 15691 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 15692 | .block_erase = erase_chip_block_jedec, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 15693 | } |
| 15694 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 15695 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 15696 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15697 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15698 | .prepare_access = prepare_memory_access, |
| 15699 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 15700 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 15701 | |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 15702 | { |
| 15703 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
| 15704 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15705 | .name = "M29F400BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15706 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15707 | .manufacture_id = ST_ID, |
| 15708 | .model_id = ST_M29F400BT, |
| 15709 | .total_size = 512, |
| 15710 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 15711 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15712 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 15713 | .probe = probe_jedec, |
| 15714 | .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] | 15715 | .block_erasers = |
| 15716 | { |
| 15717 | { |
| 15718 | .eraseblocks = { |
| 15719 | {64 * 1024, 7}, |
| 15720 | {32 * 1024, 1}, |
| 15721 | {8 * 1024, 2}, |
| 15722 | {16 * 1024, 1}, |
| 15723 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 15724 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15725 | }, { |
| 15726 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 15727 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15728 | } |
| 15729 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 15730 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15731 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15732 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15733 | .prepare_access = prepare_memory_access, |
| 15734 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15735 | }, |
| 15736 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15737 | { |
| 15738 | .vendor = "ST", |
| 15739 | .name = "M29W010B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15740 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15741 | .manufacture_id = ST_ID, |
| 15742 | .model_id = ST_M29W010B, |
| 15743 | .total_size = 128, |
| 15744 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15745 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15746 | .tested = TEST_UNTESTED, |
| 15747 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 15748 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15749 | .block_erasers = |
| 15750 | { |
| 15751 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15752 | .eraseblocks = { {16 * 1024, 8} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15753 | .block_erase = erase_sector_jedec, |
| 15754 | }, { |
| 15755 | .eraseblocks = { {128 * 1024, 1} }, |
| 15756 | .block_erase = erase_chip_block_jedec, |
| 15757 | } |
| 15758 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15759 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15760 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15761 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15762 | .prepare_access = prepare_memory_access, |
| 15763 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15764 | }, |
| 15765 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15766 | { |
| 15767 | .vendor = "ST", |
| 15768 | .name = "M29W040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15769 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15770 | .manufacture_id = ST_ID, |
| 15771 | .model_id = ST_M29W040B, |
| 15772 | .total_size = 512, |
| 15773 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15774 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15775 | .tested = TEST_UNTESTED, |
| 15776 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 15777 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15778 | .block_erasers = |
| 15779 | { |
| 15780 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15781 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15782 | .block_erase = erase_sector_jedec, |
| 15783 | }, { |
| 15784 | .eraseblocks = { {512 * 1024, 1} }, |
| 15785 | .block_erase = erase_chip_block_jedec, |
| 15786 | } |
| 15787 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15788 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15789 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15790 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15791 | .prepare_access = prepare_memory_access, |
| 15792 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15793 | }, |
| 15794 | |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 15795 | { |
| 15796 | .vendor = "ST", |
| 15797 | .name = "M29W512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15798 | .bustype = BUS_PARALLEL, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 15799 | .manufacture_id = ST_ID, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 15800 | .model_id = ST_M29W512B, |
| 15801 | .total_size = 64, |
| 15802 | .page_size = 64 * 1024, |
| 15803 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 15804 | .tested = TEST_OK_PREW, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 15805 | .probe = probe_jedec, |
| 15806 | .probe_timing = TIMING_ZERO, |
| 15807 | .block_erasers = |
| 15808 | { |
| 15809 | { |
| 15810 | .eraseblocks = { {64 * 1024, 1} }, |
| 15811 | .block_erase = erase_chip_block_jedec, |
| 15812 | } |
| 15813 | }, |
| 15814 | .write = write_jedec_1, |
| 15815 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15816 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15817 | .prepare_access = prepare_memory_access, |
| 15818 | .finish_access = finish_memory_access, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 15819 | }, |
Jeffrey A. Kent | ba7c922 | 2010-02-01 05:49:46 +0000 | [diff] [blame] | 15820 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15821 | { |
| 15822 | .vendor = "ST", |
| 15823 | .name = "M50FLW040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15824 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15825 | .manufacture_id = ST_ID, |
| 15826 | .model_id = ST_M50FLW040A, |
| 15827 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 15828 | .page_size = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15829 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15830 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 15831 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15832 | .block_erasers = |
| 15833 | { |
| 15834 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15835 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 15836 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15837 | {64 * 1024, 5}, /* block */ |
| 15838 | {4 * 1024, 16}, /* sector */ |
| 15839 | {4 * 1024, 16}, /* sector */ |
| 15840 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 15841 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15842 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15843 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15844 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15845 | } |
| 15846 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15847 | .unlock = unlock_regspace2_uniform_64k, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 15848 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15849 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15850 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 15851 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15852 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15853 | }, |
| 15854 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15855 | { |
| 15856 | .vendor = "ST", |
| 15857 | .name = "M50FLW040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15858 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15859 | .manufacture_id = ST_ID, |
| 15860 | .model_id = ST_M50FLW040B, |
| 15861 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 15862 | .page_size = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15863 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15864 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 15865 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15866 | .block_erasers = |
| 15867 | { |
| 15868 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15869 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 15870 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15871 | {4 * 1024, 16}, /* sector */ |
| 15872 | {64 * 1024, 5}, /* block */ |
| 15873 | {4 * 1024, 16}, /* sector */ |
| 15874 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 15875 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15876 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15877 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15878 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15879 | } |
| 15880 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15881 | .unlock = unlock_regspace2_uniform_64k, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 15882 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15883 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15884 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 15885 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15886 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15887 | }, |
| 15888 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15889 | { |
| 15890 | .vendor = "ST", |
| 15891 | .name = "M50FLW080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15892 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15893 | .manufacture_id = ST_ID, |
| 15894 | .model_id = ST_M50FLW080A, |
| 15895 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 15896 | .page_size = 0, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15897 | .tested = TEST_OK_PR, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15898 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 15899 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15900 | .block_erasers = |
| 15901 | { |
| 15902 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15903 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 15904 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15905 | {64 * 1024, 13}, /* block */ |
| 15906 | {4 * 1024, 16}, /* sector */ |
| 15907 | {4 * 1024, 16}, /* sector */ |
| 15908 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 15909 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15910 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15911 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15912 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15913 | } |
| 15914 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15915 | .printlock = printlock_regspace2_block_eraser_0, |
| 15916 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15917 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15918 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15919 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 15920 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15921 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15922 | }, |
| 15923 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15924 | { |
| 15925 | .vendor = "ST", |
| 15926 | .name = "M50FLW080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15927 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15928 | .manufacture_id = ST_ID, |
| 15929 | .model_id = ST_M50FLW080B, |
| 15930 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 15931 | .page_size = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15932 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15933 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 15934 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15935 | .block_erasers = |
| 15936 | { |
| 15937 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15938 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 15939 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15940 | {4 * 1024, 16}, /* sector */ |
| 15941 | {64 * 1024, 13}, /* block */ |
| 15942 | {4 * 1024, 16}, /* sector */ |
| 15943 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 15944 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 15945 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15946 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15947 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15948 | } |
| 15949 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15950 | .printlock = printlock_regspace2_block_eraser_0, |
| 15951 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15952 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15953 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15954 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 15955 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15956 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15957 | }, |
| 15958 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15959 | { |
| 15960 | .vendor = "ST", |
| 15961 | .name = "M50FW002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15962 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15963 | .manufacture_id = ST_ID, |
| 15964 | .model_id = ST_M50FW002, |
| 15965 | .total_size = 256, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 15966 | .page_size = 0, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15967 | .tested = TEST_OK_PR, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15968 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15969 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15970 | .block_erasers = |
| 15971 | { |
| 15972 | { |
| 15973 | .eraseblocks = { |
| 15974 | {64 * 1024, 3}, |
| 15975 | {32 * 1024, 1}, |
| 15976 | {8 * 1024, 2}, |
| 15977 | {16 * 1024, 1}, |
| 15978 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15979 | .block_erase = erase_block_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15980 | }, { |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 15981 | .eraseblocks = { {256 * 1024, 1} }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15982 | .block_erase = NULL, /* Only in A/A mux mode */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15983 | } |
| 15984 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15985 | .printlock = printlock_regspace2_block_eraser_0, |
| 15986 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 15987 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15988 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15989 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 15990 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15991 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15992 | }, |
| 15993 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15994 | { |
| 15995 | .vendor = "ST", |
| 15996 | .name = "M50FW016", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15997 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15998 | .manufacture_id = ST_ID, |
| 15999 | .model_id = ST_M50FW016, |
| 16000 | .total_size = 2048, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 16001 | .page_size = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16002 | .tested = TEST_UNTESTED, |
| 16003 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 16004 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16005 | .block_erasers = |
| 16006 | { |
| 16007 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 16008 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 16009 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16010 | } |
| 16011 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 16012 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 16013 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16014 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16015 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 16016 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 16017 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16018 | }, |
| 16019 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16020 | { |
| 16021 | .vendor = "ST", |
| 16022 | .name = "M50FW040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16023 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16024 | .manufacture_id = ST_ID, |
| 16025 | .model_id = ST_M50FW040, |
| 16026 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 16027 | .page_size = 0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 16028 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16029 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 16030 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16031 | .block_erasers = |
| 16032 | { |
| 16033 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 16034 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 16035 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16036 | } |
| 16037 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 16038 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 16039 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16040 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16041 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 16042 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 16043 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16044 | }, |
| 16045 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16046 | { |
| 16047 | .vendor = "ST", |
| 16048 | .name = "M50FW080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16049 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16050 | .manufacture_id = ST_ID, |
| 16051 | .model_id = ST_M50FW080, |
| 16052 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 16053 | .page_size = 0, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 16054 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16055 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 16056 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16057 | .block_erasers = |
| 16058 | { |
| 16059 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 16060 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 16061 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16062 | } |
| 16063 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 16064 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 16065 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16066 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16067 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 16068 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 16069 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16070 | }, |
| 16071 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16072 | { |
| 16073 | .vendor = "ST", |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 16074 | .name = "M50LPW080", |
| 16075 | .bustype = BUS_LPC, /* A/A Mux */ |
| 16076 | .manufacture_id = ST_ID, |
| 16077 | .model_id = ST_M50LPW080, |
| 16078 | .total_size = 1024, |
| 16079 | .page_size = 0, |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 16080 | .tested = TEST_UNTESTED, |
| 16081 | .probe = probe_82802ab, |
| 16082 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 16083 | .block_erasers = |
| 16084 | { |
| 16085 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 16086 | .eraseblocks = { {64 * 1024, 16} }, |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 16087 | .block_erase = erase_block_82802ab, |
| 16088 | } |
| 16089 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 16090 | .unlock = unlock_regspace2_uniform_64k, |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 16091 | .write = write_82802ab, |
| 16092 | .read = read_memmapped, |
| 16093 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 16094 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 16095 | .finish_access = finish_memory_access, |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 16096 | }, |
| 16097 | |
| 16098 | { |
| 16099 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16100 | .name = "M50LPW116", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16101 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16102 | .manufacture_id = ST_ID, |
| 16103 | .model_id = ST_M50LPW116, |
| 16104 | .total_size = 2048, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 16105 | .page_size = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16106 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16107 | .probe = probe_82802ab, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 16108 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16109 | .block_erasers = |
| 16110 | { |
| 16111 | { |
| 16112 | .eraseblocks = { |
| 16113 | {4 * 1024, 16}, |
| 16114 | {64 * 1024, 30}, |
| 16115 | {32 * 1024, 1}, |
| 16116 | {8 * 1024, 2}, |
| 16117 | {16 * 1024, 1}, |
| 16118 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 16119 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16120 | } |
| 16121 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 16122 | .printlock = printlock_regspace2_block_eraser_0, |
| 16123 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 16124 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16125 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16126 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 16127 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 16128 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16129 | }, |
| 16130 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16131 | { |
Konstantin Grudnev | 3d8868c | 2019-07-23 00:48:54 +0300 | [diff] [blame] | 16132 | .vendor = "ST", |
| 16133 | .name = "M95M02", |
| 16134 | .bustype = BUS_SPI, |
| 16135 | .manufacture_id = ST_ID, |
| 16136 | .model_id = ST_M95M02, |
| 16137 | .total_size = 256, |
| 16138 | .page_size = 256, |
| 16139 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_NO_ERASE | FEATURE_ERASED_ZERO, |
| 16140 | .tested = TEST_OK_PREW, |
Nico Huber | 5455786 | 2023-05-15 12:01:04 +0200 | [diff] [blame] | 16141 | .spi_cmd_set = SPI95, |
Konstantin Grudnev | 3d8868c | 2019-07-23 00:48:54 +0300 | [diff] [blame] | 16142 | .probe = probe_spi_st95, |
| 16143 | .probe_timing = TIMING_ZERO, |
| 16144 | .block_erasers = |
| 16145 | { |
| 16146 | { |
| 16147 | .eraseblocks = { {256 * 1024, 1} }, |
| 16148 | .block_erase = spi_block_erase_emulation, |
| 16149 | } |
| 16150 | }, |
| 16151 | |
| 16152 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 16153 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 16154 | .write = spi_chip_write_256, |
| 16155 | .read = spi_chip_read, |
| 16156 | .voltage = {2500, 5500}, |
| 16157 | }, |
| 16158 | |
| 16159 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16160 | .vendor = "Sanyo", |
| 16161 | .name = "LE25FU106B", |
| 16162 | .bustype = BUS_SPI, |
| 16163 | .manufacture_id = SANYO_ID, |
| 16164 | .model_id = SANYO_LE25FU106B, |
| 16165 | .total_size = 128, |
| 16166 | .page_size = 256, |
| 16167 | .feature_bits = FEATURE_WRSR_WREN, |
| 16168 | .tested = TEST_UNTESTED, |
| 16169 | .probe = probe_spi_res2, |
| 16170 | .probe_timing = TIMING_ZERO, |
| 16171 | .block_erasers = |
| 16172 | { |
| 16173 | /* FIXME: Is this correct? |
| 16174 | { |
| 16175 | .eraseblocks = { {2 * 1024, 64} }, |
| 16176 | .block_erase = spi_block_erase_d7, |
| 16177 | },*/ |
| 16178 | { |
| 16179 | .eraseblocks = { {32 * 1024, 4} }, |
| 16180 | .block_erase = spi_block_erase_d8, |
| 16181 | }, { |
| 16182 | .eraseblocks = { {128 * 1024, 1} }, |
| 16183 | .block_erase = spi_block_erase_c7, |
| 16184 | } |
| 16185 | }, |
| 16186 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 16187 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 16188 | .write = spi_chip_write_256, |
| 16189 | .read = spi_chip_read, |
| 16190 | .voltage = {2300, 3600}, |
| 16191 | }, |
| 16192 | |
| 16193 | { |
| 16194 | .vendor = "Sanyo", |
| 16195 | .name = "LE25FU206", |
| 16196 | .bustype = BUS_SPI, |
| 16197 | .manufacture_id = SANYO_ID, |
| 16198 | .model_id = SANYO_LE25FU206, |
| 16199 | .total_size = 256, |
| 16200 | .page_size = 256, |
| 16201 | .feature_bits = FEATURE_WRSR_WREN, |
| 16202 | .tested = TEST_UNTESTED, |
| 16203 | .probe = probe_spi_res2, |
| 16204 | .probe_timing = TIMING_ZERO, |
| 16205 | .block_erasers = |
| 16206 | { |
| 16207 | { |
| 16208 | .eraseblocks = { {4 * 1024, 64} }, |
| 16209 | .block_erase = spi_block_erase_d7, |
| 16210 | }, { |
| 16211 | .eraseblocks = { {64 * 1024, 4} }, |
| 16212 | .block_erase = spi_block_erase_d8, |
| 16213 | }, { |
| 16214 | .eraseblocks = { {256 * 1024, 1} }, |
| 16215 | .block_erase = spi_block_erase_c7, |
| 16216 | } |
| 16217 | }, |
| 16218 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 16219 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 16220 | .write = spi_chip_write_256, |
| 16221 | .read = spi_chip_read, |
| 16222 | .voltage = {2300, 3600}, |
| 16223 | }, |
| 16224 | |
| 16225 | { |
| 16226 | .vendor = "Sanyo", |
| 16227 | .name = "LE25FU206A", |
| 16228 | .bustype = BUS_SPI, |
| 16229 | .manufacture_id = SANYO_ID, |
| 16230 | .model_id = SANYO_LE25FU206A, |
| 16231 | .total_size = 256, |
| 16232 | .page_size = 256, |
| 16233 | .tested = TEST_UNTESTED, |
| 16234 | .probe = probe_spi_rdid, |
| 16235 | .probe_timing = TIMING_ZERO, |
| 16236 | .block_erasers = |
| 16237 | { |
| 16238 | { |
| 16239 | .eraseblocks = { {4 * 1024, 64} }, |
| 16240 | .block_erase = spi_block_erase_20, |
| 16241 | }, { |
| 16242 | .eraseblocks = { {4 * 1024, 64} }, |
| 16243 | .block_erase = spi_block_erase_d7, |
| 16244 | }, { |
| 16245 | .eraseblocks = { {64 * 1024, 4} }, |
| 16246 | .block_erase = spi_block_erase_d8, |
| 16247 | }, { |
| 16248 | .eraseblocks = { {256 * 1024, 1} }, |
| 16249 | .block_erase = spi_block_erase_60, |
| 16250 | }, { |
| 16251 | .eraseblocks = { {256 * 1024, 1} }, |
| 16252 | .block_erase = spi_block_erase_c7, |
| 16253 | } |
| 16254 | }, |
| 16255 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 16256 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 16257 | .write = spi_chip_write_256, |
| 16258 | .read = spi_chip_read, |
| 16259 | .voltage = {2300, 3600}, |
| 16260 | }, |
| 16261 | |
| 16262 | { |
| 16263 | .vendor = "Sanyo", |
| 16264 | .name = "LE25FU406B", |
| 16265 | .bustype = BUS_SPI, |
| 16266 | .manufacture_id = SANYO_ID, |
| 16267 | .model_id = SANYO_LE25FU406B, |
| 16268 | .total_size = 512, |
| 16269 | .page_size = 256, |
| 16270 | .feature_bits = FEATURE_WRSR_WREN, |
| 16271 | .tested = TEST_OK_PREW, |
| 16272 | .probe = probe_spi_res2, |
| 16273 | .probe_timing = TIMING_ZERO, |
| 16274 | .block_erasers = |
| 16275 | { |
| 16276 | { |
| 16277 | .eraseblocks = { {4 * 1024, 128} }, |
| 16278 | .block_erase = spi_block_erase_d7, |
| 16279 | }, { |
| 16280 | .eraseblocks = { {64 * 1024, 8} }, |
| 16281 | .block_erase = spi_block_erase_d8, |
| 16282 | }, { |
| 16283 | .eraseblocks = { {512 * 1024, 1} }, |
| 16284 | .block_erase = spi_block_erase_c7, |
| 16285 | } |
| 16286 | }, |
| 16287 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 16288 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 16289 | .write = spi_chip_write_256, |
| 16290 | .read = spi_chip_read, |
| 16291 | .voltage = {2300, 3600}, |
| 16292 | }, |
| 16293 | |
| 16294 | { |
| 16295 | .vendor = "Sanyo", |
| 16296 | .name = "LE25FU406C/LE25U40CMC", |
| 16297 | .bustype = BUS_SPI, |
| 16298 | .manufacture_id = SANYO_ID, |
| 16299 | .model_id = SANYO_LE25FU406C, |
| 16300 | .total_size = 512, |
| 16301 | .page_size = 256, |
| 16302 | .feature_bits = FEATURE_WRSR_WREN, |
| 16303 | .tested = TEST_OK_PREW, |
| 16304 | .probe = probe_spi_rdid, |
| 16305 | .probe_timing = TIMING_ZERO, |
| 16306 | .block_erasers = |
| 16307 | { |
| 16308 | { |
| 16309 | .eraseblocks = { {4 * 1024, 128} }, |
| 16310 | .block_erase = spi_block_erase_20, |
| 16311 | }, { |
| 16312 | .eraseblocks = { {4 * 1024, 128} }, |
| 16313 | .block_erase = spi_block_erase_d7, |
| 16314 | }, { |
| 16315 | .eraseblocks = { {64 * 1024, 8} }, |
| 16316 | .block_erase = spi_block_erase_d8, |
| 16317 | }, { |
| 16318 | .eraseblocks = { {512 * 1024, 1} }, |
| 16319 | .block_erase = spi_block_erase_60, |
| 16320 | }, { |
| 16321 | .eraseblocks = { {512 * 1024, 1} }, |
| 16322 | .block_erase = spi_block_erase_c7, |
| 16323 | } |
| 16324 | }, |
| 16325 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 16326 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 16327 | .write = spi_chip_write_256, |
| 16328 | .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */ |
| 16329 | .voltage = {2300, 3600}, |
| 16330 | }, |
| 16331 | |
| 16332 | { |
| 16333 | .vendor = "Sanyo", |
| 16334 | .name = "LE25FW106", |
| 16335 | .bustype = BUS_SPI, |
| 16336 | .manufacture_id = SANYO_ID, |
| 16337 | .model_id = SANYO_LE25FW106, |
| 16338 | .total_size = 128, |
| 16339 | .page_size = 256, |
| 16340 | .feature_bits = FEATURE_WRSR_WREN, |
| 16341 | .tested = TEST_OK_PREW, |
| 16342 | .probe = probe_spi_res2, |
| 16343 | .probe_timing = TIMING_ZERO, |
| 16344 | .block_erasers = |
| 16345 | { |
| 16346 | { |
| 16347 | .eraseblocks = { {2 * 1024, 64} }, |
| 16348 | .block_erase = spi_block_erase_d7, |
| 16349 | }, { |
| 16350 | .eraseblocks = { {32 * 1024, 4} }, |
| 16351 | .block_erase = spi_block_erase_d8, |
| 16352 | }, { |
| 16353 | .eraseblocks = { {128 * 1024, 1} }, |
| 16354 | .block_erase = spi_block_erase_c7, |
| 16355 | } |
| 16356 | }, |
| 16357 | .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */ |
| 16358 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 16359 | .write = spi_chip_write_256, |
| 16360 | .read = spi_chip_read, |
| 16361 | .voltage = {2700, 3600}, |
| 16362 | }, |
| 16363 | |
| 16364 | { |
| 16365 | .vendor = "Sanyo", |
| 16366 | .name = "LE25FW203A", |
| 16367 | .bustype = BUS_SPI, |
| 16368 | .manufacture_id = SANYO_ID, |
| 16369 | .model_id = SANYO_LE25FW203A, |
| 16370 | .total_size = 256, |
| 16371 | .page_size = 256, |
| 16372 | .tested = TEST_UNTESTED, |
| 16373 | .probe = probe_spi_rdid, |
| 16374 | .probe_timing = TIMING_ZERO, |
| 16375 | .block_erasers = |
| 16376 | { |
| 16377 | { |
| 16378 | .eraseblocks = { {256, 1024} }, |
| 16379 | .block_erase = spi_block_erase_db, |
| 16380 | }, { |
| 16381 | .eraseblocks = { {64 * 1024, 4} }, |
| 16382 | .block_erase = spi_block_erase_d8, |
| 16383 | }, { |
| 16384 | .eraseblocks = { {256 * 1024, 1} }, |
| 16385 | .block_erase = spi_block_erase_c7, |
| 16386 | } |
| 16387 | }, |
| 16388 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 16389 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 16390 | .write = spi_chip_write_256, |
| 16391 | .read = spi_chip_read, |
| 16392 | .voltage = {2700, 3600}, |
| 16393 | }, |
| 16394 | |
| 16395 | { |
| 16396 | .vendor = "Sanyo", |
| 16397 | .name = "LE25FW403A", |
| 16398 | .bustype = BUS_SPI, |
| 16399 | .manufacture_id = SANYO_ID, |
| 16400 | .model_id = SANYO_LE25FW403A, |
| 16401 | .total_size = 512, |
| 16402 | .page_size = 256, |
| 16403 | .tested = TEST_UNTESTED, |
| 16404 | .probe = probe_spi_rdid, |
| 16405 | .probe_timing = TIMING_ZERO, |
| 16406 | .block_erasers = |
| 16407 | { |
| 16408 | { |
| 16409 | .eraseblocks = { {256, 2 * 1024} }, |
| 16410 | .block_erase = spi_block_erase_db, |
| 16411 | }, { |
| 16412 | .eraseblocks = { {64 * 1024, 8} }, |
| 16413 | .block_erase = spi_block_erase_d8, |
| 16414 | }, { |
| 16415 | .eraseblocks = { {512 * 1024, 1} }, |
| 16416 | .block_erase = spi_block_erase_c7, |
| 16417 | } |
| 16418 | }, |
| 16419 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 16420 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 16421 | .write = spi_chip_write_256, |
| 16422 | .read = spi_chip_read, |
| 16423 | .voltage = {2700, 3600}, |
| 16424 | }, |
| 16425 | |
| 16426 | { |
| 16427 | .vendor = "Sanyo", |
| 16428 | .name = "LE25FW406A", |
| 16429 | .bustype = BUS_SPI, |
| 16430 | .manufacture_id = SANYO_ID, |
| 16431 | .model_id = SANYO_LE25FW406A, |
| 16432 | .total_size = 512, |
| 16433 | .page_size = 256, |
| 16434 | .feature_bits = FEATURE_WRSR_WREN, |
| 16435 | .tested = TEST_OK_PREW, |
| 16436 | .probe = probe_spi_res2, |
| 16437 | .probe_timing = TIMING_ZERO, |
| 16438 | .block_erasers = |
| 16439 | { |
| 16440 | { |
| 16441 | .eraseblocks = { {4 * 1024, 128} }, |
| 16442 | .block_erase = spi_block_erase_d7, |
| 16443 | }, { |
| 16444 | .eraseblocks = { {64 * 1024, 8} }, |
| 16445 | .block_erase = spi_block_erase_d8, |
| 16446 | }, { |
| 16447 | .eraseblocks = { {512 * 1024, 1} }, |
| 16448 | .block_erase = spi_block_erase_c7, |
| 16449 | } |
| 16450 | }, |
| 16451 | .printlock = spi_prettyprint_status_register_plain, |
| 16452 | .unlock = spi_disable_blockprotect, |
| 16453 | .write = spi_chip_write_256, |
| 16454 | .read = spi_chip_read, |
| 16455 | .voltage = {2700, 3600}, |
| 16456 | }, |
| 16457 | |
| 16458 | { |
| 16459 | .vendor = "Sanyo", |
| 16460 | .name = "LE25FW418A", |
| 16461 | .bustype = BUS_SPI, |
| 16462 | .manufacture_id = SANYO_ID, |
| 16463 | .model_id = SANYO_LE25FW418A, |
| 16464 | .total_size = 512, |
| 16465 | .page_size = 256, |
| 16466 | .feature_bits = FEATURE_WRSR_WREN, |
| 16467 | .tested = TEST_UNTESTED, |
| 16468 | .probe = probe_spi_res2, |
| 16469 | .probe_timing = TIMING_ZERO, |
| 16470 | .block_erasers = |
| 16471 | { |
| 16472 | { |
| 16473 | .eraseblocks = { {4 * 1024, 128} }, |
| 16474 | .block_erase = spi_block_erase_d7, |
| 16475 | }, { |
| 16476 | .eraseblocks = { {64 * 1024, 8} }, |
| 16477 | .block_erase = spi_block_erase_d8, |
| 16478 | }, { |
| 16479 | .eraseblocks = { {512 * 1024, 1} }, |
| 16480 | .block_erase = spi_block_erase_c7, |
| 16481 | } |
| 16482 | }, |
| 16483 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 16484 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 16485 | .write = spi_chip_write_256, |
| 16486 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 16487 | .voltage = {2700, 3600}, |
| 16488 | }, |
| 16489 | |
| 16490 | { |
| 16491 | .vendor = "Sanyo", |
| 16492 | .name = "LE25FW806", |
| 16493 | .bustype = BUS_SPI, |
| 16494 | .manufacture_id = SANYO_ID, |
| 16495 | .model_id = SANYO_LE25FW806, |
| 16496 | .total_size = 1024, |
| 16497 | .page_size = 256, |
| 16498 | .feature_bits = FEATURE_WRSR_WREN, |
| 16499 | .tested = TEST_UNTESTED, |
| 16500 | .probe = probe_spi_res2, |
| 16501 | .probe_timing = TIMING_ZERO, |
| 16502 | .block_erasers = |
| 16503 | { |
| 16504 | { |
| 16505 | .eraseblocks = { {4 * 1024, 256} }, |
| 16506 | .block_erase = spi_block_erase_20, |
| 16507 | }, { |
| 16508 | .eraseblocks = { {4 * 1024, 256} }, |
| 16509 | .block_erase = spi_block_erase_d7, |
| 16510 | }, { |
| 16511 | .eraseblocks = { {64 * 1024, 16} }, |
| 16512 | .block_erase = spi_block_erase_d8, |
| 16513 | }, { |
| 16514 | .eraseblocks = { {1024 * 1024, 1} }, |
| 16515 | .block_erase = spi_block_erase_c7, |
| 16516 | } |
| 16517 | }, |
| 16518 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 16519 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 16520 | .write = spi_chip_write_256, |
| 16521 | .read = spi_chip_read, |
| 16522 | .voltage = {2700, 3600}, |
| 16523 | }, |
| 16524 | |
| 16525 | { |
| 16526 | .vendor = "Sanyo", |
| 16527 | .name = "LE25FW808", |
| 16528 | .bustype = BUS_SPI, |
| 16529 | .manufacture_id = SANYO_ID, |
| 16530 | .model_id = SANYO_LE25FW808, |
| 16531 | .total_size = 1024, |
| 16532 | .page_size = 256, |
| 16533 | .feature_bits = FEATURE_WRSR_WREN, |
| 16534 | .tested = TEST_UNTESTED, |
| 16535 | .probe = probe_spi_res2, |
| 16536 | .probe_timing = TIMING_ZERO, |
| 16537 | .block_erasers = |
| 16538 | { |
| 16539 | { |
| 16540 | .eraseblocks = { {8 * 1024, 128} }, |
| 16541 | .block_erase = spi_block_erase_d7, |
| 16542 | }, { |
| 16543 | .eraseblocks = { {64 * 1024, 16} }, |
| 16544 | .block_erase = spi_block_erase_d8, |
| 16545 | }, { |
| 16546 | .eraseblocks = { {1024 * 1024, 1} }, |
| 16547 | .block_erase = spi_block_erase_c7, |
| 16548 | } |
| 16549 | }, |
| 16550 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 16551 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 16552 | .write = spi_chip_write_256, |
| 16553 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 16554 | .voltage = {2700, 3600}, |
| 16555 | }, |
| 16556 | |
| 16557 | { |
| 16558 | .vendor = "Sharp", |
| 16559 | .name = "LH28F008BJT-BTLZ1", |
| 16560 | .bustype = BUS_PARALLEL, |
| 16561 | .manufacture_id = SHARP_ID, |
| 16562 | .model_id = SHARP_LH28F008BJ__PB, |
| 16563 | .total_size = 1024, |
| 16564 | .page_size = 64 * 1024, |
| 16565 | .tested = TEST_OK_PREW, |
| 16566 | .probe = probe_82802ab, |
| 16567 | .probe_timing = TIMING_ZERO, |
| 16568 | .block_erasers = |
| 16569 | { |
| 16570 | { |
| 16571 | .eraseblocks = { |
| 16572 | {8 * 1024, 8}, |
| 16573 | {64 * 1024, 15} |
| 16574 | }, |
| 16575 | .block_erase = erase_block_82802ab, |
| 16576 | }, { |
| 16577 | .eraseblocks = { {1024 * 1024, 1} }, |
| 16578 | .block_erase = erase_sector_49lfxxxc, |
| 16579 | } |
| 16580 | }, |
| 16581 | .unlock = unlock_lh28f008bjt, |
| 16582 | .write = write_82802ab, |
| 16583 | .read = read_memmapped, |
| 16584 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 16585 | .prepare_access = prepare_memory_access, |
| 16586 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16587 | }, |
| 16588 | |
| 16589 | { |
| 16590 | .vendor = "Sharp", |
| 16591 | .name = "LHF00L04", |
| 16592 | .bustype = BUS_FWH, /* A/A Mux */ |
| 16593 | .manufacture_id = SHARP_ID, |
| 16594 | .model_id = SHARP_LHF00L04, |
| 16595 | .total_size = 1024, |
| 16596 | .page_size = 64 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 16597 | .feature_bits = FEATURE_EITHER_RESET, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16598 | .tested = TEST_UNTESTED, |
| 16599 | .probe = probe_82802ab, |
| 16600 | .probe_timing = TIMING_ZERO, |
| 16601 | .block_erasers = |
| 16602 | { |
| 16603 | { |
| 16604 | .eraseblocks = { |
| 16605 | {64 * 1024, 15}, |
| 16606 | {8 * 1024, 8} |
| 16607 | }, |
| 16608 | .block_erase = erase_block_82802ab, |
| 16609 | }, { |
| 16610 | .eraseblocks = { |
| 16611 | {1024 * 1024, 1} |
| 16612 | }, |
| 16613 | .block_erase = NULL, /* 30 D0, only in A/A mux mode */ |
| 16614 | }, |
| 16615 | }, |
| 16616 | .unlock = unlock_regspace2_uniform_64k, |
| 16617 | .write = write_82802ab, |
| 16618 | .read = read_memmapped, |
| 16619 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 16620 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 16621 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16622 | }, |
| 16623 | |
| 16624 | { |
| 16625 | .vendor = "Spansion", |
| 16626 | .name = "S25FL004A", |
| 16627 | .bustype = BUS_SPI, |
| 16628 | .manufacture_id = SPANSION_ID, |
| 16629 | .model_id = SPANSION_S25FL004A, |
| 16630 | .total_size = 512, |
| 16631 | .page_size = 256, |
| 16632 | .feature_bits = FEATURE_WRSR_WREN, |
| 16633 | .tested = TEST_UNTESTED, |
| 16634 | .probe = probe_spi_rdid, |
| 16635 | .probe_timing = TIMING_ZERO, |
| 16636 | .block_erasers = |
| 16637 | { |
| 16638 | { |
| 16639 | .eraseblocks = { {64 * 1024, 8} }, |
| 16640 | .block_erase = spi_block_erase_d8, |
| 16641 | }, { |
| 16642 | .eraseblocks = { {512 * 1024, 1} }, |
| 16643 | .block_erase = spi_block_erase_c7, |
| 16644 | } |
| 16645 | }, |
| 16646 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16647 | .unlock = spi_disable_blockprotect, |
| 16648 | .write = spi_chip_write_256, |
| 16649 | .read = spi_chip_read, |
| 16650 | .voltage = {2700, 3600}, |
| 16651 | }, |
| 16652 | |
| 16653 | { |
| 16654 | .vendor = "Spansion", |
| 16655 | .name = "S25FL008A", |
| 16656 | .bustype = BUS_SPI, |
| 16657 | .manufacture_id = SPANSION_ID, |
| 16658 | .model_id = SPANSION_S25FL008A, |
| 16659 | .total_size = 1024, |
| 16660 | .page_size = 256, |
| 16661 | .feature_bits = FEATURE_WRSR_WREN, |
| 16662 | .tested = TEST_OK_PRE, |
| 16663 | .probe = probe_spi_rdid, |
| 16664 | .probe_timing = TIMING_ZERO, |
| 16665 | .block_erasers = |
| 16666 | { |
| 16667 | { |
| 16668 | .eraseblocks = { {64 * 1024, 16} }, |
| 16669 | .block_erase = spi_block_erase_d8, |
| 16670 | }, { |
| 16671 | .eraseblocks = { {1024 * 1024, 1} }, |
| 16672 | .block_erase = spi_block_erase_c7, |
| 16673 | } |
| 16674 | }, |
| 16675 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16676 | .unlock = spi_disable_blockprotect, |
| 16677 | .write = spi_chip_write_256, |
| 16678 | .read = spi_chip_read, |
| 16679 | .voltage = {2700, 3600}, |
| 16680 | }, |
| 16681 | |
| 16682 | { |
| 16683 | .vendor = "Spansion", |
| 16684 | .name = "S25FL016A", |
| 16685 | .bustype = BUS_SPI, |
| 16686 | .manufacture_id = SPANSION_ID, |
| 16687 | .model_id = SPANSION_S25FL016A, |
| 16688 | .total_size = 2048, |
| 16689 | .page_size = 256, |
| 16690 | .feature_bits = FEATURE_WRSR_WREN, |
| 16691 | .tested = TEST_OK_PREW, |
| 16692 | .probe = probe_spi_rdid, |
| 16693 | .probe_timing = TIMING_ZERO, |
| 16694 | .block_erasers = |
| 16695 | { |
| 16696 | { |
| 16697 | .eraseblocks = { {64 * 1024, 32} }, |
| 16698 | .block_erase = spi_block_erase_d8, |
| 16699 | }, { |
| 16700 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 16701 | .block_erase = spi_block_erase_c7, |
| 16702 | } |
| 16703 | }, |
| 16704 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16705 | .unlock = spi_disable_blockprotect, |
| 16706 | .write = spi_chip_write_256, |
| 16707 | .read = spi_chip_read, |
| 16708 | .voltage = {2700, 3600}, |
| 16709 | }, |
| 16710 | |
| 16711 | { |
| 16712 | .vendor = "Spansion", |
| 16713 | .name = "S25FL032A/P", |
| 16714 | .bustype = BUS_SPI, |
| 16715 | .manufacture_id = SPANSION_ID, |
| 16716 | .model_id = SPANSION_S25FL032A, |
| 16717 | .total_size = 4096, |
| 16718 | .page_size = 256, |
| 16719 | .feature_bits = FEATURE_WRSR_WREN, |
| 16720 | .tested = TEST_OK_PREW, |
| 16721 | .probe = probe_spi_rdid, |
| 16722 | .probe_timing = TIMING_ZERO, |
| 16723 | .block_erasers = |
| 16724 | { |
| 16725 | { |
| 16726 | .eraseblocks = { {64 * 1024, 64} }, |
| 16727 | .block_erase = spi_block_erase_d8, |
| 16728 | }, { |
| 16729 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 16730 | .block_erase = spi_block_erase_c7, |
| 16731 | } |
| 16732 | }, |
| 16733 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16734 | .unlock = spi_disable_blockprotect, |
| 16735 | .write = spi_chip_write_256, |
| 16736 | .read = spi_chip_read, |
| 16737 | .voltage = {2700, 3600}, |
| 16738 | }, |
| 16739 | |
| 16740 | { |
| 16741 | .vendor = "Spansion", |
| 16742 | .name = "S25FL064A/P", |
| 16743 | .bustype = BUS_SPI, |
| 16744 | .manufacture_id = SPANSION_ID, |
| 16745 | .model_id = SPANSION_S25FL064A, |
| 16746 | .total_size = 8192, |
| 16747 | .page_size = 256, |
| 16748 | .feature_bits = FEATURE_WRSR_WREN, |
| 16749 | .tested = TEST_OK_PREW, |
| 16750 | .probe = probe_spi_rdid, |
| 16751 | .probe_timing = TIMING_ZERO, |
| 16752 | .block_erasers = |
| 16753 | { |
| 16754 | { |
| 16755 | .eraseblocks = { {64 * 1024, 128} }, |
| 16756 | .block_erase = spi_block_erase_d8, |
| 16757 | }, { |
| 16758 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 16759 | .block_erase = spi_block_erase_c7, |
| 16760 | } |
| 16761 | }, |
| 16762 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16763 | .unlock = spi_disable_blockprotect, |
| 16764 | .write = spi_chip_write_256, |
| 16765 | .read = spi_chip_read, |
| 16766 | .voltage = {2700, 3600}, |
| 16767 | }, |
| 16768 | |
| 16769 | { |
| 16770 | .vendor = "Spansion", |
| 16771 | .name = "S25FL116K/S25FL216K", /* FIXME: separate them */ |
| 16772 | .bustype = BUS_SPI, |
| 16773 | .manufacture_id = SPANSION_ID, |
| 16774 | .model_id = SPANSION_S25FL216, |
| 16775 | .total_size = 2048, |
| 16776 | .page_size = 256, |
| 16777 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */ |
| 16778 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16779 | .tested = TEST_UNTESTED, |
| 16780 | .probe = probe_spi_rdid, |
| 16781 | .probe_timing = TIMING_ZERO, |
| 16782 | .block_erasers = |
| 16783 | { |
| 16784 | { |
| 16785 | .eraseblocks = { {4 * 1024, 512} }, |
| 16786 | .block_erase = spi_block_erase_20, |
| 16787 | }, { |
| 16788 | .eraseblocks = { {64 * 1024, 32} }, |
| 16789 | .block_erase = spi_block_erase_d8, |
| 16790 | }, { |
| 16791 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 16792 | .block_erase = spi_block_erase_60, |
| 16793 | }, { |
| 16794 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 16795 | .block_erase = spi_block_erase_c7, |
| 16796 | } |
| 16797 | }, |
| 16798 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 16799 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 16800 | .write = spi_chip_write_256, |
| 16801 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
| 16802 | .voltage = {2700, 3600}, |
| 16803 | }, |
| 16804 | |
| 16805 | { |
| 16806 | .vendor = "Spansion", |
| 16807 | .name = "S25FL127S-256kB", /* uniform 256kB sectors */ |
| 16808 | .bustype = BUS_SPI, |
| 16809 | .manufacture_id = SPANSION_ID, |
| 16810 | .model_id = SPANSION_S25FL128, |
| 16811 | .total_size = 16384, |
| 16812 | .page_size = 512, |
| 16813 | /* supports 4B addressing */ |
| 16814 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 16815 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16816 | .tested = TEST_UNTESTED, |
| 16817 | .probe = probe_spi_rdid, |
| 16818 | .probe_timing = TIMING_ZERO, |
| 16819 | .block_erasers = |
| 16820 | { |
| 16821 | { |
| 16822 | .eraseblocks = { {256 * 1024, 64} }, |
| 16823 | .block_erase = spi_block_erase_d8, |
| 16824 | }, { |
| 16825 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16826 | .block_erase = spi_block_erase_60, |
| 16827 | }, { |
| 16828 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16829 | .block_erase = spi_block_erase_c7, |
| 16830 | } |
| 16831 | }, |
| 16832 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 16833 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 16834 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 16835 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 16836 | .voltage = {2700, 3600}, |
| 16837 | }, |
| 16838 | |
| 16839 | { |
| 16840 | .vendor = "Spansion", |
| 16841 | .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 16842 | .bustype = BUS_SPI, |
| 16843 | .manufacture_id = SPANSION_ID, |
| 16844 | .model_id = SPANSION_S25FL128, |
| 16845 | .total_size = 16384, |
| 16846 | .page_size = 256, |
| 16847 | /* supports 4B addressing */ |
| 16848 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 16849 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 16850 | .tested = TEST_OK_PREW, |
| 16851 | /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */ |
| 16852 | .probe = probe_spi_rdid, |
| 16853 | .probe_timing = TIMING_ZERO, |
| 16854 | .block_erasers = |
| 16855 | { |
| 16856 | { |
| 16857 | /* This chip supports erasing of 32 so-called "parameter sectors" with |
| 16858 | * opcode 0x20 which may be configured to be on top or bottom of the address |
| 16859 | * space. Trying to access an address outside these 4kB blocks does have no |
| 16860 | * effect on the memory contents, e.g. |
| 16861 | .eraseblocks = { |
| 16862 | {4 * 1024, 32}, |
| 16863 | {64 * 1024, 254} // inaccessible |
| 16864 | }, |
| 16865 | .block_erase = spi_block_erase_20, |
| 16866 | }, { */ |
| 16867 | .eraseblocks = { { 64 * 1024, 256} }, |
| 16868 | .block_erase = spi_block_erase_d8, |
| 16869 | }, { |
| 16870 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16871 | .block_erase = spi_block_erase_60, |
| 16872 | }, { |
| 16873 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16874 | .block_erase = spi_block_erase_c7, |
| 16875 | } |
| 16876 | }, |
| 16877 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 16878 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 16879 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 16880 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 16881 | .voltage = {2700, 3600}, |
| 16882 | }, |
| 16883 | |
| 16884 | { |
| 16885 | .vendor = "Spansion", |
Nico Huber | fffc48d | 2022-05-28 14:26:06 +0200 | [diff] [blame] | 16886 | .name = "S25FL128L", |
| 16887 | .bustype = BUS_SPI, |
| 16888 | .manufacture_id = SPANSION_ID, |
| 16889 | .model_id = SPANSION_S25FL128L, |
| 16890 | .total_size = 16384, |
| 16891 | .page_size = 256, |
| 16892 | /* 4 x 256B Security Region (OTP) */ |
| 16893 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT3 | FEATURE_OTP, |
| 16894 | .tested = TEST_UNTESTED, |
| 16895 | .probe = probe_spi_rdid, |
| 16896 | .probe_timing = TIMING_ZERO, |
| 16897 | .block_erasers = |
| 16898 | { |
| 16899 | { |
| 16900 | .eraseblocks = { {4 * 1024, 4096} }, |
| 16901 | .block_erase = spi_block_erase_20, |
| 16902 | }, { |
| 16903 | .eraseblocks = { {32 * 1024, 512} }, |
| 16904 | .block_erase = spi_block_erase_52, |
| 16905 | }, { |
| 16906 | .eraseblocks = { {64 * 1024, 256} }, |
| 16907 | .block_erase = spi_block_erase_d8, |
| 16908 | }, { |
| 16909 | .eraseblocks = { {16384 * 1024, 1} }, |
| 16910 | .block_erase = spi_block_erase_60, |
| 16911 | }, { |
| 16912 | .eraseblocks = { {16384 * 1024, 1} }, |
| 16913 | .block_erase = spi_block_erase_c7, |
| 16914 | } |
| 16915 | }, |
| 16916 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 16917 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 16918 | .write = spi_chip_write_256, |
| 16919 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 16920 | .voltage = {2700, 3600}, |
| 16921 | .reg_bits = |
| 16922 | { |
| 16923 | /* |
| 16924 | * Note: This chip has a read-only Status Register 2 that is not |
| 16925 | * counted here. Registers are mapped as follows: |
| 16926 | * STATUS1 ... Status Register 1 |
| 16927 | * STATUS2 ... Configuration Register 1 |
| 16928 | * STATUS3 ... Configuration Register 2 |
| 16929 | */ |
| 16930 | .srp = {STATUS1, 7, RW}, |
| 16931 | .srl = {STATUS2, 0, RW}, |
| 16932 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 16933 | .tb = {STATUS1, 5, RW}, |
| 16934 | .sec = {STATUS1, 6, RW}, |
| 16935 | .cmp = {STATUS2, 6, RW}, |
| 16936 | .wps = {STATUS3, 2, RW}, |
| 16937 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 16938 | .wp_write_cfg = spi_wp_write_cfg, |
| 16939 | .wp_read_cfg = spi_wp_read_cfg, |
| 16940 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nico Huber | fffc48d | 2022-05-28 14:26:06 +0200 | [diff] [blame] | 16941 | .decode_range = decode_range_spi25, |
| 16942 | }, |
| 16943 | |
| 16944 | { |
| 16945 | .vendor = "Spansion", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16946 | .name = "S25FL128P......0", /* uniform 64 kB sectors */ |
| 16947 | .bustype = BUS_SPI, |
| 16948 | .manufacture_id = SPANSION_ID, |
| 16949 | .model_id = SPANSION_S25FL128, |
| 16950 | .total_size = 16384, |
| 16951 | .page_size = 256, |
| 16952 | .feature_bits = FEATURE_WRSR_WREN, |
| 16953 | .tested = TEST_OK_PREW, |
| 16954 | .probe = probe_spi_rdid, |
| 16955 | .probe_timing = TIMING_ZERO, |
| 16956 | .block_erasers = |
| 16957 | { |
| 16958 | { |
| 16959 | .eraseblocks = { {64 * 1024, 256} }, |
| 16960 | .block_erase = spi_block_erase_20, |
| 16961 | }, { |
| 16962 | .eraseblocks = { {64 * 1024, 256} }, |
| 16963 | .block_erase = spi_block_erase_d8, |
| 16964 | }, { |
| 16965 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16966 | .block_erase = spi_block_erase_60, |
| 16967 | }, { |
| 16968 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16969 | .block_erase = spi_block_erase_c7, |
| 16970 | } |
| 16971 | }, |
| 16972 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 16973 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 16974 | .write = spi_chip_write_256, |
| 16975 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 16976 | .voltage = {2700, 3600}, |
| 16977 | }, |
| 16978 | |
| 16979 | { |
| 16980 | .vendor = "Spansion", |
| 16981 | .name = "S25FL128P......1", /* uniform 256kB sectors */ |
| 16982 | .bustype = BUS_SPI, |
| 16983 | .manufacture_id = SPANSION_ID, |
| 16984 | .model_id = SPANSION_S25FL128, |
| 16985 | .total_size = 16384, |
| 16986 | .page_size = 256, |
| 16987 | .feature_bits = FEATURE_WRSR_WREN, |
| 16988 | .tested = TEST_UNTESTED, |
| 16989 | .probe = probe_spi_rdid, |
| 16990 | .probe_timing = TIMING_ZERO, |
| 16991 | .block_erasers = |
| 16992 | { |
| 16993 | { |
| 16994 | .eraseblocks = { {256 * 1024, 64} }, |
| 16995 | .block_erase = spi_block_erase_d8, |
| 16996 | }, { |
| 16997 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 16998 | .block_erase = spi_block_erase_c7, |
| 16999 | } |
| 17000 | }, |
| 17001 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 17002 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 17003 | .write = spi_chip_write_256, |
| 17004 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 17005 | .voltage = {2700, 3600}, |
| 17006 | }, |
| 17007 | |
| 17008 | { |
| 17009 | .vendor = "Spansion", |
| 17010 | .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 17011 | .bustype = BUS_SPI, |
| 17012 | .manufacture_id = SPANSION_ID, |
| 17013 | .model_id = SPANSION_S25FL128, |
| 17014 | .total_size = 16384, |
| 17015 | .page_size = 256, |
| 17016 | /* supports 4B addressing */ |
| 17017 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 17018 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 17019 | .tested = TEST_OK_PREW, |
| 17020 | .probe = probe_spi_rdid, |
| 17021 | .probe_timing = TIMING_ZERO, |
| 17022 | .block_erasers = |
| 17023 | { |
| 17024 | { |
| 17025 | /* This chip supports erasing of the 32 so-called "parameter sectors" with |
| 17026 | * opcode 0x20. Trying to access an address outside these 4kB blocks does |
| 17027 | * have no effect on the memory contents, but sets a flag in the SR. |
| 17028 | .eraseblocks = { |
| 17029 | {4 * 1024, 32}, |
| 17030 | {64 * 1024, 254} // inaccessible |
| 17031 | }, |
| 17032 | .block_erase = spi_block_erase_20, |
| 17033 | }, { */ |
| 17034 | .eraseblocks = { { 64 * 1024, 256} }, |
| 17035 | .block_erase = spi_block_erase_d8, |
| 17036 | }, { |
| 17037 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 17038 | .block_erase = spi_block_erase_60, |
| 17039 | }, { |
| 17040 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 17041 | .block_erase = spi_block_erase_c7, |
| 17042 | } |
| 17043 | }, |
| 17044 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 17045 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 17046 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 17047 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 17048 | .voltage = {2700, 3600}, |
| 17049 | }, |
| 17050 | |
| 17051 | { |
| 17052 | .vendor = "Spansion", |
| 17053 | .name = "S25FL128S......1", /* uniform 256 kB sectors */ |
| 17054 | .bustype = BUS_SPI, |
| 17055 | .manufacture_id = SPANSION_ID, |
| 17056 | .model_id = SPANSION_S25FL128, |
| 17057 | .total_size = 16384, |
| 17058 | .page_size = 512, |
| 17059 | /* supports 4B addressing */ |
| 17060 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 17061 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 17062 | .tested = TEST_UNTESTED, |
| 17063 | .probe = probe_spi_rdid, |
| 17064 | .probe_timing = TIMING_ZERO, |
| 17065 | .block_erasers = |
| 17066 | { |
| 17067 | { |
| 17068 | .eraseblocks = { {256 * 1024, 64} }, |
| 17069 | .block_erase = spi_block_erase_d8, |
| 17070 | }, { |
| 17071 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 17072 | .block_erase = spi_block_erase_60, |
| 17073 | }, { |
| 17074 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 17075 | .block_erase = spi_block_erase_c7, |
| 17076 | } |
| 17077 | }, |
| 17078 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 17079 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 17080 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 17081 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 17082 | .voltage = {2700, 3600}, |
| 17083 | }, |
| 17084 | |
| 17085 | { |
| 17086 | .vendor = "Spansion", |
| 17087 | .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 17088 | .bustype = BUS_SPI, |
| 17089 | .manufacture_id = SPANSION_ID, |
| 17090 | .model_id = SPANSION_S25FL128, |
| 17091 | .total_size = 16384, |
| 17092 | .page_size = 256, |
| 17093 | /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */ |
| 17094 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 17095 | .tested = TEST_OK_PREW, |
| 17096 | .probe = probe_spi_rdid, |
| 17097 | .probe_timing = TIMING_ZERO, |
| 17098 | .block_erasers = |
| 17099 | { |
| 17100 | { |
| 17101 | /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with |
| 17102 | * opcode 0x20. Trying to access an address outside these 4kB blocks does have no |
| 17103 | * effect on the memory contents, but sets a flag in the SR. |
| 17104 | .eraseblocks = { |
| 17105 | {4 * 1024, 32}, |
| 17106 | {64 * 1024, 254} // inaccessible |
| 17107 | }, |
| 17108 | .block_erase = spi_block_erase_20, |
| 17109 | }, { */ |
| 17110 | /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs |
| 17111 | .eraseblocks = { |
| 17112 | {8 * 1024, 16}, |
| 17113 | {64 * 1024, 254} // inaccessible |
| 17114 | }, |
| 17115 | .block_erase = spi_block_erase_40, |
| 17116 | }, { */ |
| 17117 | .eraseblocks = { { 64 * 1024, 256} }, |
| 17118 | .block_erase = spi_block_erase_d8, |
| 17119 | }, { |
| 17120 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 17121 | .block_erase = spi_block_erase_60, |
| 17122 | }, { |
| 17123 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 17124 | .block_erase = spi_block_erase_c7, |
| 17125 | } |
| 17126 | }, |
| 17127 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */ |
| 17128 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 17129 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 17130 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 17131 | .voltage = {2700, 3600}, |
| 17132 | }, |
| 17133 | |
| 17134 | { |
| 17135 | .vendor = "Spansion", |
| 17136 | .name = "S25FL129P......1", /* uniform 256 kB sectors */ |
| 17137 | .bustype = BUS_SPI, |
| 17138 | .manufacture_id = SPANSION_ID, |
| 17139 | .model_id = SPANSION_S25FL128, |
| 17140 | .total_size = 16384, |
| 17141 | .page_size = 256, |
| 17142 | /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */ |
| 17143 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 17144 | .tested = TEST_UNTESTED, |
| 17145 | .probe = probe_spi_rdid, |
| 17146 | .probe_timing = TIMING_ZERO, |
| 17147 | .block_erasers = |
| 17148 | { |
| 17149 | { |
| 17150 | .eraseblocks = { {256 * 1024, 64} }, |
| 17151 | .block_erase = spi_block_erase_d8, |
| 17152 | }, { |
| 17153 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 17154 | .block_erase = spi_block_erase_60, |
| 17155 | }, { |
| 17156 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 17157 | .block_erase = spi_block_erase_c7, |
| 17158 | } |
| 17159 | }, |
| 17160 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */ |
| 17161 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 17162 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 17163 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 17164 | .voltage = {2700, 3600}, |
| 17165 | }, |
| 17166 | |
| 17167 | { |
| 17168 | .vendor = "Spansion", |
| 17169 | .name = "S25FL132K", |
| 17170 | .bustype = BUS_SPI, |
| 17171 | .manufacture_id = SPANSION_ID, |
| 17172 | .model_id = SPANSION_S25FL132K, |
| 17173 | .total_size = 4096, |
| 17174 | .page_size = 256, |
| 17175 | /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 17176 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 17177 | .tested = TEST_UNTESTED, |
| 17178 | .probe = probe_spi_rdid, |
| 17179 | .probe_timing = TIMING_ZERO, |
| 17180 | .block_erasers = |
| 17181 | { |
| 17182 | { |
| 17183 | .eraseblocks = { {4 * 1024, 1024} }, |
| 17184 | .block_erase = spi_block_erase_20, |
| 17185 | }, { |
| 17186 | .eraseblocks = { {64 * 1024, 64} }, |
| 17187 | .block_erase = spi_block_erase_d8, |
| 17188 | }, { |
| 17189 | .eraseblocks = { { 4096 * 1024, 1} }, |
| 17190 | .block_erase = spi_block_erase_60, |
| 17191 | }, { |
| 17192 | .eraseblocks = { { 4096 * 1024, 1} }, |
| 17193 | .block_erase = spi_block_erase_c7, |
| 17194 | } |
| 17195 | }, |
| 17196 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */ |
| 17197 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 17198 | .write = spi_chip_write_256, |
| 17199 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 17200 | .voltage = {2700, 3600}, |
| 17201 | }, |
| 17202 | |
| 17203 | { |
| 17204 | .vendor = "Spansion", |
| 17205 | .name = "S25FL164K", |
| 17206 | .bustype = BUS_SPI, |
| 17207 | .manufacture_id = SPANSION_ID, |
| 17208 | .model_id = SPANSION_S25FL164K, |
| 17209 | .total_size = 8192, |
| 17210 | .page_size = 256, |
| 17211 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 17212 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 17213 | .tested = TEST_OK_PREW, |
| 17214 | .probe = probe_spi_rdid, |
| 17215 | .probe_timing = TIMING_ZERO, |
| 17216 | .block_erasers = |
| 17217 | { |
| 17218 | { |
| 17219 | .eraseblocks = { {4 * 1024, 2048} }, |
| 17220 | .block_erase = spi_block_erase_20, |
| 17221 | }, { |
| 17222 | .eraseblocks = { {64 * 1024, 128} }, |
| 17223 | .block_erase = spi_block_erase_d8, |
| 17224 | }, { |
| 17225 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 17226 | .block_erase = spi_block_erase_60, |
| 17227 | }, { |
| 17228 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 17229 | .block_erase = spi_block_erase_c7, |
| 17230 | } |
| 17231 | }, |
| 17232 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */ |
| 17233 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 17234 | .write = spi_chip_write_256, |
| 17235 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 17236 | .voltage = {2700, 3600}, |
| 17237 | }, |
| 17238 | |
| 17239 | { |
| 17240 | .vendor = "Spansion", |
| 17241 | .name = "S25FL204K", |
| 17242 | .bustype = BUS_SPI, |
| 17243 | .manufacture_id = SPANSION_ID, |
| 17244 | .model_id = SPANSION_S25FL204, |
| 17245 | .total_size = 512, |
| 17246 | .page_size = 256, |
| 17247 | .feature_bits = FEATURE_WRSR_WREN, |
| 17248 | .tested = TEST_OK_PR, |
| 17249 | .probe = probe_spi_rdid, |
| 17250 | .probe_timing = TIMING_ZERO, |
| 17251 | .block_erasers = |
| 17252 | { |
| 17253 | { |
| 17254 | .eraseblocks = { {4 * 1024, 128} }, |
| 17255 | .block_erase = spi_block_erase_20, |
| 17256 | }, { |
| 17257 | .eraseblocks = { {64 * 1024, 8} }, |
| 17258 | .block_erase = spi_block_erase_d8, |
| 17259 | }, { |
| 17260 | .eraseblocks = { { 512 * 1024, 1} }, |
| 17261 | .block_erase = spi_block_erase_60, |
| 17262 | }, { |
| 17263 | .eraseblocks = { { 512 * 1024, 1} }, |
| 17264 | .block_erase = spi_block_erase_c7, |
| 17265 | } |
| 17266 | }, |
| 17267 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 17268 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 17269 | .write = spi_chip_write_256, |
| 17270 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
| 17271 | .voltage = {2700, 3600}, |
| 17272 | }, |
| 17273 | |
| 17274 | { |
| 17275 | .vendor = "Spansion", |
| 17276 | .name = "S25FL208K", |
| 17277 | .bustype = BUS_SPI, |
| 17278 | .manufacture_id = SPANSION_ID, |
| 17279 | .model_id = SPANSION_S25FL208, |
| 17280 | .total_size = 1024, |
| 17281 | .page_size = 256, |
| 17282 | .feature_bits = FEATURE_WRSR_WREN, |
| 17283 | .tested = TEST_OK_PREW, |
| 17284 | .probe = probe_spi_rdid, |
| 17285 | .probe_timing = TIMING_ZERO, |
| 17286 | .block_erasers = |
| 17287 | { |
| 17288 | { |
| 17289 | .eraseblocks = { {4 * 1024, 256} }, |
| 17290 | .block_erase = spi_block_erase_20, |
| 17291 | }, { |
| 17292 | .eraseblocks = { {64 * 1024, 16} }, |
| 17293 | .block_erase = spi_block_erase_d8, |
| 17294 | }, { |
| 17295 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 17296 | .block_erase = spi_block_erase_60, |
| 17297 | }, { |
| 17298 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 17299 | .block_erase = spi_block_erase_c7, |
| 17300 | } |
| 17301 | }, |
| 17302 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 17303 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 17304 | .write = spi_chip_write_256, |
| 17305 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
| 17306 | .voltage = {2700, 3600}, |
| 17307 | }, |
| 17308 | |
| 17309 | { |
| 17310 | .vendor = "Spansion", |
Nico Huber | fffc48d | 2022-05-28 14:26:06 +0200 | [diff] [blame] | 17311 | .name = "S25FL256L", |
| 17312 | .bustype = BUS_SPI, |
| 17313 | .manufacture_id = SPANSION_ID, |
| 17314 | .model_id = SPANSION_S25FL256L, |
| 17315 | .total_size = 32768, |
| 17316 | .page_size = 256, |
| 17317 | /* 4 x 256B Security Region (OTP) */ |
| 17318 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT3 | FEATURE_OTP | |
| 17319 | FEATURE_4BA_ENTER | FEATURE_4BA_NATIVE, |
| 17320 | .tested = TEST_UNTESTED, |
| 17321 | .probe = probe_spi_rdid, |
| 17322 | .probe_timing = TIMING_ZERO, |
| 17323 | .block_erasers = |
| 17324 | { |
| 17325 | { |
| 17326 | .eraseblocks = { {4 * 1024, 8192} }, |
| 17327 | .block_erase = spi_block_erase_21, |
| 17328 | }, { |
| 17329 | .eraseblocks = { {4 * 1024, 8192} }, |
| 17330 | .block_erase = spi_block_erase_20, |
| 17331 | }, { |
| 17332 | .eraseblocks = { {32 * 1024, 1024} }, |
| 17333 | .block_erase = spi_block_erase_53, |
| 17334 | }, { |
| 17335 | .eraseblocks = { {32 * 1024, 1024} }, |
| 17336 | .block_erase = spi_block_erase_52, |
| 17337 | }, { |
| 17338 | .eraseblocks = { {64 * 1024, 512} }, |
| 17339 | .block_erase = spi_block_erase_dc, |
| 17340 | }, { |
| 17341 | .eraseblocks = { {64 * 1024, 512} }, |
| 17342 | .block_erase = spi_block_erase_d8, |
| 17343 | }, { |
| 17344 | .eraseblocks = { {32768 * 1024, 1} }, |
| 17345 | .block_erase = spi_block_erase_60, |
| 17346 | }, { |
| 17347 | .eraseblocks = { {32768 * 1024, 1} }, |
| 17348 | .block_erase = spi_block_erase_c7, |
| 17349 | } |
| 17350 | }, |
| 17351 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 17352 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 17353 | .write = spi_chip_write_256, |
| 17354 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 17355 | .voltage = {2700, 3600}, |
| 17356 | .reg_bits = |
| 17357 | { |
| 17358 | /* |
| 17359 | * Note: This chip has a read-only Status Register 2 that is not |
| 17360 | * counted here. Registers are mapped as follows: |
| 17361 | * STATUS1 ... Status Register 1 |
| 17362 | * STATUS2 ... Configuration Register 1 |
| 17363 | * STATUS3 ... Configuration Register 2 |
| 17364 | */ |
| 17365 | .srp = {STATUS1, 7, RW}, |
| 17366 | .srl = {STATUS2, 0, RW}, |
| 17367 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}}, |
| 17368 | .tb = {STATUS1, 6, RW}, |
| 17369 | .cmp = {STATUS2, 6, RW}, |
| 17370 | .wps = {STATUS3, 2, RW}, |
| 17371 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 17372 | .wp_write_cfg = spi_wp_write_cfg, |
| 17373 | .wp_read_cfg = spi_wp_read_cfg, |
| 17374 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nico Huber | fffc48d | 2022-05-28 14:26:06 +0200 | [diff] [blame] | 17375 | .decode_range = decode_range_spi25, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 17376 | .prepare_access = spi_prepare_4ba, |
Nico Huber | fffc48d | 2022-05-28 14:26:06 +0200 | [diff] [blame] | 17377 | }, |
| 17378 | |
| 17379 | { |
| 17380 | .vendor = "Spansion", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17381 | .name = "S25FL256S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 17382 | .bustype = BUS_SPI, |
| 17383 | .manufacture_id = SPANSION_ID, |
| 17384 | .model_id = SPANSION_S25FL256, |
| 17385 | .total_size = 32768, |
| 17386 | .page_size = 256, |
| 17387 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
Nico Huber | 9bb8a32 | 2022-05-24 15:07:34 +0200 | [diff] [blame] | 17388 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 17389 | FEATURE_4BA_NATIVE | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17390 | .tested = TEST_OK_PREW, |
| 17391 | .probe = probe_spi_rdid, |
| 17392 | .probe_timing = TIMING_ZERO, |
| 17393 | .block_erasers = |
| 17394 | { |
| 17395 | { |
| 17396 | /* This chip supports erasing of the 32 so-called "parameter sectors" with |
| 17397 | * opcode 0x20. Trying to access an address outside these 4kB blocks does |
| 17398 | * have no effect on the memory contents, but sets a flag in the SR. |
| 17399 | .eraseblocks = { |
| 17400 | {4 * 1024, 32}, |
| 17401 | {64 * 1024, 254} // inaccessible |
| 17402 | }, |
| 17403 | .block_erase = spi_block_erase_20, |
| 17404 | }, { */ |
| 17405 | .eraseblocks = { { 64 * 1024, 512} }, |
| 17406 | .block_erase = spi_block_erase_dc, |
| 17407 | }, { |
| 17408 | .eraseblocks = { { 64 * 1024, 512} }, |
| 17409 | .block_erase = spi_block_erase_d8, |
| 17410 | }, { |
| 17411 | .eraseblocks = { { 32768 * 1024, 1} }, |
| 17412 | .block_erase = spi_block_erase_60, |
| 17413 | }, { |
| 17414 | .eraseblocks = { { 32768 * 1024, 1} }, |
| 17415 | .block_erase = spi_block_erase_c7, |
| 17416 | } |
| 17417 | }, |
| 17418 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 17419 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 17420 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 17421 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 17422 | .voltage = {2700, 3600}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 17423 | .prepare_access = spi_prepare_4ba, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17424 | }, |
| 17425 | |
| 17426 | { |
Bernhard Urban-Forster | 05c629b | 2020-02-02 21:29:48 +0100 | [diff] [blame] | 17427 | .vendor = "Spansion", |
| 17428 | .name = "S25FL512S", |
| 17429 | .bustype = BUS_SPI, |
| 17430 | .manufacture_id = SPANSION_ID, |
| 17431 | .model_id = SPANSION_S25FL512, |
| 17432 | .total_size = 65536, /* 512 Mb (=> 64 MB)) */ |
| 17433 | .page_size = 256, |
| 17434 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
Nico Huber | 2623792 | 2022-06-20 19:37:37 +0200 | [diff] [blame] | 17435 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 17436 | FEATURE_4BA_NATIVE | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716, |
| 17437 | .tested = TEST_UNTESTED, |
Bernhard Urban-Forster | 05c629b | 2020-02-02 21:29:48 +0100 | [diff] [blame] | 17438 | .probe = probe_spi_rdid, |
| 17439 | .probe_timing = TIMING_ZERO, |
| 17440 | .block_erasers = |
| 17441 | { |
| 17442 | { |
| 17443 | .eraseblocks = { { 256 * 1024, 256} }, |
| 17444 | .block_erase = spi_block_erase_dc, |
| 17445 | }, { |
Nico Huber | bb608ff | 2022-05-24 15:33:26 +0200 | [diff] [blame] | 17446 | .eraseblocks = { { 256 * 1024, 256} }, |
| 17447 | .block_erase = spi_block_erase_d8, |
| 17448 | }, { |
Bernhard Urban-Forster | 05c629b | 2020-02-02 21:29:48 +0100 | [diff] [blame] | 17449 | .eraseblocks = { { 65536 * 1024, 1} }, |
| 17450 | .block_erase = spi_block_erase_60, |
| 17451 | }, { |
| 17452 | .eraseblocks = { { 65536 * 1024, 1} }, |
| 17453 | .block_erase = spi_block_erase_c7, |
| 17454 | } |
| 17455 | }, |
| 17456 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 17457 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 17458 | .write = spi_chip_write_256, /* Multi I/O supported, IGNORE for now */ |
| 17459 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 17460 | .voltage = {2700, 3600}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 17461 | .prepare_access = spi_prepare_4ba, |
Bernhard Urban-Forster | 05c629b | 2020-02-02 21:29:48 +0100 | [diff] [blame] | 17462 | }, |
| 17463 | |
| 17464 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17465 | .vendor = "SyncMOS/MoselVitelic", |
| 17466 | .name = "{F,S,V}29C51001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17467 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17468 | .manufacture_id = SYNCMOS_MVC_ID, |
| 17469 | .model_id = SM_MVC_29C51001B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17470 | .total_size = 128, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17471 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17472 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17473 | .tested = TEST_UNTESTED, |
| 17474 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 17475 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 17476 | .block_erasers = |
| 17477 | { |
| 17478 | { |
| 17479 | .eraseblocks = { {512, 256} }, |
| 17480 | .block_erase = erase_sector_jedec, |
| 17481 | }, { |
| 17482 | .eraseblocks = { {128 * 1024, 1} }, |
| 17483 | .block_erase = erase_chip_block_jedec, |
| 17484 | }, |
| 17485 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17486 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17487 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17488 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 17489 | .prepare_access = prepare_memory_access, |
| 17490 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17491 | }, |
| 17492 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17493 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17494 | .vendor = "SyncMOS/MoselVitelic", |
| 17495 | .name = "{F,S,V}29C51001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17496 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17497 | .manufacture_id = SYNCMOS_MVC_ID, |
| 17498 | .model_id = SM_MVC_29C51001T, |
| 17499 | .total_size = 128, |
| 17500 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17501 | .feature_bits = FEATURE_EITHER_RESET, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17502 | .tested = TEST_UNTESTED, |
| 17503 | .probe = probe_jedec, |
| 17504 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 17505 | .block_erasers = |
| 17506 | { |
| 17507 | { |
| 17508 | .eraseblocks = { {512, 256} }, |
| 17509 | .block_erase = erase_sector_jedec, |
| 17510 | }, { |
| 17511 | .eraseblocks = { {128 * 1024, 1} }, |
| 17512 | .block_erase = erase_chip_block_jedec, |
| 17513 | }, |
| 17514 | }, |
| 17515 | .write = write_jedec_1, |
| 17516 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17517 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 17518 | .prepare_access = prepare_memory_access, |
| 17519 | .finish_access = finish_memory_access, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17520 | }, |
| 17521 | |
| 17522 | { |
| 17523 | .vendor = "SyncMOS/MoselVitelic", |
| 17524 | .name = "{F,S,V}29C51002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17525 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17526 | .manufacture_id = SYNCMOS_MVC_ID, |
| 17527 | .model_id = SM_MVC_29C51002B, |
| 17528 | .total_size = 256, |
| 17529 | .page_size = 512, |
| 17530 | .feature_bits = FEATURE_EITHER_RESET, |
| 17531 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17532 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 17533 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 17534 | .block_erasers = |
| 17535 | { |
| 17536 | { |
| 17537 | .eraseblocks = { {512, 512} }, |
| 17538 | .block_erase = erase_sector_jedec, |
| 17539 | }, { |
| 17540 | .eraseblocks = { {256 * 1024, 1} }, |
| 17541 | .block_erase = erase_chip_block_jedec, |
| 17542 | }, |
| 17543 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17544 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17545 | .read = read_memmapped, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 17546 | .prepare_access = prepare_memory_access, |
| 17547 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17548 | }, |
| 17549 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17550 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17551 | .vendor = "SyncMOS/MoselVitelic", |
| 17552 | .name = "{F,S,V}29C51002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17553 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17554 | .manufacture_id = SYNCMOS_MVC_ID, |
| 17555 | .model_id = SM_MVC_29C51002T, |
| 17556 | .total_size = 256, |
| 17557 | .page_size = 512, |
| 17558 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 17559 | .tested = TEST_OK_PREW, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17560 | .probe = probe_jedec, |
| 17561 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 17562 | .block_erasers = |
| 17563 | { |
| 17564 | { |
| 17565 | .eraseblocks = { {512, 512} }, |
| 17566 | .block_erase = erase_sector_jedec, |
| 17567 | }, { |
| 17568 | .eraseblocks = { {256 * 1024, 1} }, |
| 17569 | .block_erase = erase_chip_block_jedec, |
| 17570 | }, |
| 17571 | }, |
| 17572 | .write = write_jedec_1, |
| 17573 | .read = read_memmapped, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 17574 | .prepare_access = prepare_memory_access, |
| 17575 | .finish_access = finish_memory_access, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17576 | }, |
| 17577 | |
| 17578 | { |
| 17579 | .vendor = "SyncMOS/MoselVitelic", |
| 17580 | .name = "{F,S,V}29C51004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17581 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17582 | .manufacture_id = SYNCMOS_MVC_ID, |
| 17583 | .model_id = SM_MVC_29C51004B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17584 | .total_size = 512, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17585 | .page_size = 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17586 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17587 | .tested = TEST_UNTESTED, |
| 17588 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 17589 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 17590 | .block_erasers = |
| 17591 | { |
| 17592 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17593 | .eraseblocks = { {1024, 512} }, |
| 17594 | .block_erase = erase_sector_jedec, |
| 17595 | }, { |
| 17596 | .eraseblocks = { {512 * 1024, 1} }, |
| 17597 | .block_erase = erase_chip_block_jedec, |
| 17598 | }, |
| 17599 | }, |
| 17600 | .write = write_jedec_1, |
| 17601 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17602 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 17603 | .prepare_access = prepare_memory_access, |
| 17604 | .finish_access = finish_memory_access, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17605 | }, |
| 17606 | |
| 17607 | { |
| 17608 | .vendor = "SyncMOS/MoselVitelic", |
| 17609 | .name = "{F,S,V}29C51004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17610 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17611 | .manufacture_id = SYNCMOS_MVC_ID, |
| 17612 | .model_id = SM_MVC_29C51004T, |
| 17613 | .total_size = 512, |
| 17614 | .page_size = 1024, |
| 17615 | .feature_bits = FEATURE_EITHER_RESET, |
| 17616 | .tested = TEST_UNTESTED, |
| 17617 | .probe = probe_jedec, |
| 17618 | .probe_timing = TIMING_ZERO, |
| 17619 | .block_erasers = |
| 17620 | { |
| 17621 | { |
| 17622 | .eraseblocks = { {1024, 512} }, |
| 17623 | .block_erase = erase_sector_jedec, |
| 17624 | }, { |
| 17625 | .eraseblocks = { {512 * 1024, 1} }, |
| 17626 | .block_erase = erase_chip_block_jedec, |
| 17627 | }, |
| 17628 | }, |
| 17629 | .write = write_jedec_1, |
| 17630 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17631 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 17632 | .prepare_access = prepare_memory_access, |
| 17633 | .finish_access = finish_memory_access, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17634 | }, |
| 17635 | |
| 17636 | { |
| 17637 | .vendor = "SyncMOS/MoselVitelic", |
| 17638 | .name = "{S,V}29C31004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17639 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17640 | .manufacture_id = SYNCMOS_MVC_ID, |
| 17641 | .model_id = SM_MVC_29C31004B, |
| 17642 | .total_size = 512, |
| 17643 | .page_size = 1024, |
| 17644 | .feature_bits = FEATURE_EITHER_RESET, |
| 17645 | .tested = TEST_UNTESTED, |
| 17646 | .probe = probe_jedec, |
| 17647 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 17648 | .block_erasers = |
| 17649 | { |
| 17650 | { |
| 17651 | .eraseblocks = { {1024, 512} }, |
| 17652 | .block_erase = erase_sector_jedec, |
| 17653 | }, { |
| 17654 | .eraseblocks = { {512 * 1024, 1} }, |
| 17655 | .block_erase = erase_chip_block_jedec, |
| 17656 | }, |
| 17657 | }, |
| 17658 | .write = write_jedec_1, |
| 17659 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17660 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 17661 | .prepare_access = prepare_memory_access, |
| 17662 | .finish_access = finish_memory_access, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17663 | }, |
| 17664 | |
| 17665 | { |
| 17666 | .vendor = "SyncMOS/MoselVitelic", |
| 17667 | .name = "{S,V}29C31004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17668 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17669 | .manufacture_id = SYNCMOS_MVC_ID, |
| 17670 | .model_id = SM_MVC_29C31004T, |
| 17671 | .total_size = 512, |
| 17672 | .page_size = 1024, |
| 17673 | .feature_bits = FEATURE_EITHER_RESET, |
| 17674 | .tested = TEST_UNTESTED, |
| 17675 | .probe = probe_jedec, |
| 17676 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 17677 | .block_erasers = |
| 17678 | { |
| 17679 | { |
| 17680 | .eraseblocks = { {1024, 512} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 17681 | .block_erase = erase_sector_jedec, |
| 17682 | }, { |
| 17683 | .eraseblocks = { {512 * 1024, 1} }, |
| 17684 | .block_erase = erase_chip_block_jedec, |
| 17685 | }, |
| 17686 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17687 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17688 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17689 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 17690 | .prepare_access = prepare_memory_access, |
| 17691 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17692 | }, |
| 17693 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17694 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 17695 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 17696 | .name = "TMS29F002RB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17697 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 17698 | .manufacture_id = TI_OLD_ID, |
| 17699 | .model_id = TI_TMS29F002RB, |
| 17700 | .total_size = 256, |
| 17701 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17702 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 17703 | .tested = TEST_UNTESTED, |
| 17704 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 17705 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 17706 | .block_erasers = |
| 17707 | { |
| 17708 | { |
| 17709 | .eraseblocks = { |
| 17710 | {16 * 1024, 1}, |
| 17711 | {8 * 1024, 2}, |
| 17712 | {32 * 1024, 1}, |
| 17713 | {64 * 1024, 3}, |
| 17714 | }, |
| 17715 | .block_erase = erase_sector_jedec, |
| 17716 | }, { |
| 17717 | .eraseblocks = { {256 * 1024, 1} }, |
| 17718 | .block_erase = erase_chip_block_jedec, |
| 17719 | }, |
| 17720 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17721 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 17722 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17723 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 17724 | .prepare_access = prepare_memory_access, |
| 17725 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 17726 | }, |
| 17727 | |
| 17728 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 17729 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 17730 | .name = "TMS29F002RT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17731 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 17732 | .manufacture_id = TI_OLD_ID, |
| 17733 | .model_id = TI_TMS29F002RT, |
| 17734 | .total_size = 256, |
| 17735 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17736 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 17737 | .tested = TEST_UNTESTED, |
| 17738 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 17739 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 17740 | .block_erasers = |
| 17741 | { |
| 17742 | { |
| 17743 | .eraseblocks = { |
| 17744 | {64 * 1024, 3}, |
| 17745 | {32 * 1024, 1}, |
| 17746 | {8 * 1024, 2}, |
| 17747 | {16 * 1024, 1}, |
| 17748 | }, |
| 17749 | .block_erase = erase_sector_jedec, |
| 17750 | }, { |
| 17751 | .eraseblocks = { {256 * 1024, 1} }, |
| 17752 | .block_erase = erase_chip_block_jedec, |
| 17753 | }, |
| 17754 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17755 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 17756 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17757 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 17758 | .prepare_access = prepare_memory_access, |
| 17759 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 17760 | }, |
| 17761 | |
| 17762 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17763 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17764 | .name = "W25P16", |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 17765 | .bustype = BUS_SPI, |
| 17766 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17767 | .model_id = WINBOND_NEX_W25P16, |
| 17768 | .total_size = 2048, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 17769 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17770 | .feature_bits = FEATURE_WRSR_WREN, |
| 17771 | .tested = TEST_UNTESTED, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 17772 | .probe = probe_spi_rdid, |
| 17773 | .probe_timing = TIMING_ZERO, |
| 17774 | .block_erasers = |
| 17775 | { |
| 17776 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17777 | .eraseblocks = { {64 * 1024, 32} }, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 17778 | .block_erase = spi_block_erase_d8, |
| 17779 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17780 | .eraseblocks = { {2048 * 1024, 1} }, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 17781 | .block_erase = spi_block_erase_c7, |
| 17782 | } |
| 17783 | }, |
| 17784 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17785 | .unlock = spi_disable_blockprotect, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17786 | .write = spi_chip_write_256, |
| 17787 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 17788 | .voltage = {2700, 3600}, |
| 17789 | }, |
| 17790 | |
| 17791 | { |
| 17792 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17793 | .name = "W25P32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17794 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 17795 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17796 | .model_id = WINBOND_NEX_W25P32, |
| 17797 | .total_size = 4096, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 17798 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17799 | .feature_bits = FEATURE_WRSR_WREN, |
| 17800 | .tested = TEST_UNTESTED, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 17801 | .probe = probe_spi_rdid, |
| 17802 | .probe_timing = TIMING_ZERO, |
| 17803 | .block_erasers = |
| 17804 | { |
| 17805 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17806 | .eraseblocks = { {64 * 1024, 64} }, |
| 17807 | .block_erase = spi_block_erase_d8, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 17808 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17809 | .eraseblocks = { {4096 * 1024, 1} }, |
| 17810 | .block_erase = spi_block_erase_c7, |
| 17811 | } |
| 17812 | }, |
| 17813 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17814 | .unlock = spi_disable_blockprotect, |
| 17815 | .write = spi_chip_write_256, |
| 17816 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 17817 | .voltage = {2700, 3600}, |
| 17818 | }, |
| 17819 | |
| 17820 | { |
| 17821 | .vendor = "Winbond", |
| 17822 | .name = "W25P80", |
| 17823 | .bustype = BUS_SPI, |
| 17824 | .manufacture_id = WINBOND_NEX_ID, |
| 17825 | .model_id = WINBOND_NEX_W25P80, |
| 17826 | .total_size = 1024, |
| 17827 | .page_size = 256, |
| 17828 | .feature_bits = FEATURE_WRSR_WREN, |
| 17829 | .tested = TEST_UNTESTED, |
| 17830 | .probe = probe_spi_rdid, |
| 17831 | .probe_timing = TIMING_ZERO, |
| 17832 | .block_erasers = |
| 17833 | { |
| 17834 | { |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 17835 | .eraseblocks = { {64 * 1024, 16} }, |
| 17836 | .block_erase = spi_block_erase_d8, |
| 17837 | }, { |
| 17838 | .eraseblocks = { {1024 * 1024, 1} }, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 17839 | .block_erase = spi_block_erase_c7, |
| 17840 | } |
| 17841 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 17842 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 17843 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 17844 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17845 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17846 | .voltage = {2700, 3600}, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 17847 | }, |
| 17848 | |
| 17849 | { |
| 17850 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17851 | .name = "W25Q128.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17852 | .bustype = BUS_SPI, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 17853 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17854 | .model_id = WINBOND_NEX_W25Q128_V, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 17855 | .total_size = 16384, |
| 17856 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17857 | /* supports SFDP */ |
| 17858 | /* 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] | 17859 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 17860 | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3, |
Edward O'Callaghan | a97e353 | 2022-12-16 15:41:05 +1100 | [diff] [blame] | 17861 | .tested = TEST_OK_PREWB, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 17862 | .probe = probe_spi_rdid, |
| 17863 | .probe_timing = TIMING_ZERO, |
| 17864 | .block_erasers = |
| 17865 | { |
| 17866 | { |
| 17867 | .eraseblocks = { {4 * 1024, 4096} }, |
| 17868 | .block_erase = spi_block_erase_20, |
| 17869 | }, { |
| 17870 | .eraseblocks = { {32 * 1024, 512} }, |
| 17871 | .block_erase = spi_block_erase_52, |
| 17872 | }, { |
| 17873 | .eraseblocks = { {64 * 1024, 256} }, |
| 17874 | .block_erase = spi_block_erase_d8, |
| 17875 | }, { |
| 17876 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 17877 | .block_erase = spi_block_erase_60, |
| 17878 | }, { |
| 17879 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 17880 | .block_erase = spi_block_erase_c7, |
| 17881 | } |
| 17882 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 17883 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 17884 | .unlock = spi_disable_blockprotect, |
| 17885 | .write = spi_chip_write_256, |
| 17886 | .read = spi_chip_read, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17887 | .voltage = {2700, 3600}, |
Sergii Dmytruk | d1af307 | 2021-11-08 00:00:43 +0200 | [diff] [blame] | 17888 | /* FIXME: Older versions (e.g. 25Q128BV) use WRSR_EXT and have no WPS. */ |
| 17889 | .reg_bits = |
| 17890 | { |
| 17891 | .srp = {STATUS1, 7, RW}, |
| 17892 | .srl = {STATUS2, 0, RW}, |
| 17893 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 17894 | .tb = {STATUS1, 5, RW}, |
| 17895 | .sec = {STATUS1, 6, RW}, |
| 17896 | .cmp = {STATUS2, 6, RW}, |
| 17897 | .wps = {STATUS3, 2, RW}, |
| 17898 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 17899 | .wp_write_cfg = spi_wp_write_cfg, |
| 17900 | .wp_read_cfg = spi_wp_read_cfg, |
| 17901 | .wp_get_ranges = spi_wp_get_available_ranges, |
Sergii Dmytruk | d1af307 | 2021-11-08 00:00:43 +0200 | [diff] [blame] | 17902 | .decode_range = decode_range_spi25, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 17903 | }, |
| 17904 | |
| 17905 | { |
| 17906 | .vendor = "Winbond", |
Patrick Rudolph | 3432349 | 2018-10-04 14:59:40 +0200 | [diff] [blame] | 17907 | .name = "W25Q128.V..M", |
| 17908 | .bustype = BUS_SPI, |
| 17909 | .manufacture_id = WINBOND_NEX_ID, |
| 17910 | .model_id = WINBOND_NEX_W25Q128_V_M, |
| 17911 | .total_size = 16384, |
| 17912 | .page_size = 256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 17913 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QPI_SRP, |
| 17914 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
Sergii Dmytruk | c74eac2 | 2022-10-06 18:17:58 +0300 | [diff] [blame] | 17915 | .tested = TEST_OK_PREWB, |
Patrick Rudolph | 3432349 | 2018-10-04 14:59:40 +0200 | [diff] [blame] | 17916 | .probe = probe_spi_rdid, |
| 17917 | .probe_timing = TIMING_ZERO, |
| 17918 | .block_erasers = |
| 17919 | { |
| 17920 | { |
| 17921 | .eraseblocks = { {4 * 1024, 4096} }, |
| 17922 | .block_erase = spi_block_erase_20, |
| 17923 | }, { |
| 17924 | .eraseblocks = { {32 * 1024, 512} }, |
| 17925 | .block_erase = spi_block_erase_52, |
| 17926 | }, { |
| 17927 | .eraseblocks = { {64 * 1024, 256} }, |
| 17928 | .block_erase = spi_block_erase_d8, |
| 17929 | }, { |
| 17930 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 17931 | .block_erase = spi_block_erase_60, |
| 17932 | }, { |
| 17933 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 17934 | .block_erase = spi_block_erase_c7, |
| 17935 | } |
| 17936 | }, |
Alan Green | a1fc01d | 2019-09-23 17:12:44 +1000 | [diff] [blame] | 17937 | .printlock = spi_prettyprint_status_register_plain, |
Patrick Rudolph | 3432349 | 2018-10-04 14:59:40 +0200 | [diff] [blame] | 17938 | .unlock = spi_disable_blockprotect, |
| 17939 | .write = spi_chip_write_256, |
| 17940 | .read = spi_chip_read, |
| 17941 | .voltage = {2700, 3600}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 17942 | .reg_bits = |
| 17943 | { |
| 17944 | .srp = {STATUS1, 7, RW}, |
| 17945 | .srl = {STATUS2, 0, RW}, |
| 17946 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 17947 | .tb = {STATUS1, 5, RW}, |
| 17948 | .sec = {STATUS1, 6, RW}, |
| 17949 | .cmp = {STATUS2, 6, RW}, |
| 17950 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 17951 | .wp_write_cfg = spi_wp_write_cfg, |
| 17952 | .wp_read_cfg = spi_wp_read_cfg, |
| 17953 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 17954 | .decode_range = decode_range_spi25, |
Patrick Rudolph | 3432349 | 2018-10-04 14:59:40 +0200 | [diff] [blame] | 17955 | }, |
| 17956 | |
| 17957 | { |
| 17958 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17959 | .name = "W25Q128.W", |
| 17960 | .bustype = BUS_SPI, |
| 17961 | .manufacture_id = WINBOND_NEX_ID, |
| 17962 | .model_id = WINBOND_NEX_W25Q128_W, |
| 17963 | .total_size = 16384, |
| 17964 | .page_size = 256, |
| 17965 | /* supports SFDP */ |
| 17966 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 17967 | /* QPI: only FW & JW..M versions */ |
| 17968 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QIO, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17969 | .tested = TEST_OK_PREW, |
| 17970 | .probe = probe_spi_rdid, |
| 17971 | .probe_timing = TIMING_ZERO, |
| 17972 | .block_erasers = |
| 17973 | { |
| 17974 | { |
| 17975 | .eraseblocks = { {4 * 1024, 4096} }, |
| 17976 | .block_erase = spi_block_erase_20, |
| 17977 | }, { |
| 17978 | .eraseblocks = { {32 * 1024, 512} }, |
| 17979 | .block_erase = spi_block_erase_52, |
| 17980 | }, { |
| 17981 | .eraseblocks = { {64 * 1024, 256} }, |
| 17982 | .block_erase = spi_block_erase_d8, |
| 17983 | }, { |
| 17984 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 17985 | .block_erase = spi_block_erase_60, |
| 17986 | }, { |
| 17987 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 17988 | .block_erase = spi_block_erase_c7, |
| 17989 | } |
| 17990 | }, |
| 17991 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17992 | .unlock = spi_disable_blockprotect, |
| 17993 | .write = spi_chip_write_256, |
| 17994 | .read = spi_chip_read, |
| 17995 | .voltage = {1650, 1950}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 17996 | .reg_bits = |
| 17997 | { |
| 17998 | .srp = {STATUS1, 7, RW}, |
| 17999 | .srl = {STATUS2, 0, RW}, |
| 18000 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 18001 | .tb = {STATUS1, 5, RW}, |
| 18002 | .sec = {STATUS1, 6, RW}, |
| 18003 | .cmp = {STATUS2, 6, RW}, |
| 18004 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 18005 | .wp_write_cfg = spi_wp_write_cfg, |
| 18006 | .wp_read_cfg = spi_wp_read_cfg, |
| 18007 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 18008 | .decode_range = decode_range_spi25, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18009 | }, |
| 18010 | |
| 18011 | { |
| 18012 | .vendor = "Winbond", |
Peichao Wang | 1a11949 | 2019-11-11 15:26:41 +0800 | [diff] [blame] | 18013 | .name = "W25Q128.JW.DTR", |
| 18014 | .bustype = BUS_SPI, |
| 18015 | .manufacture_id = WINBOND_NEX_ID, |
| 18016 | .model_id = WINBOND_NEX_W25Q128_DTR, |
| 18017 | .total_size = 16384, |
| 18018 | .page_size = 256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 18019 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QPI_SRP, |
| 18020 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
Peichao Wang | 1a11949 | 2019-11-11 15:26:41 +0800 | [diff] [blame] | 18021 | .tested = TEST_OK_PREW, |
| 18022 | .probe = probe_spi_rdid, |
| 18023 | .probe_timing = TIMING_ZERO, |
| 18024 | .block_erasers = |
| 18025 | { |
| 18026 | { |
| 18027 | .eraseblocks = { {4 * 1024, 4096} }, |
| 18028 | .block_erase = spi_block_erase_20, |
| 18029 | }, { |
| 18030 | .eraseblocks = { {32 * 1024, 512} }, |
| 18031 | .block_erase = spi_block_erase_52, |
| 18032 | }, { |
| 18033 | .eraseblocks = { {64 * 1024, 256} }, |
| 18034 | .block_erase = spi_block_erase_d8, |
| 18035 | }, { |
| 18036 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 18037 | .block_erase = spi_block_erase_60, |
| 18038 | }, { |
| 18039 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 18040 | .block_erase = spi_block_erase_c7, |
| 18041 | } |
| 18042 | }, |
| 18043 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18044 | .unlock = spi_disable_blockprotect, |
| 18045 | .write = spi_chip_write_256, |
| 18046 | .read = spi_chip_read, |
| 18047 | .voltage = {1650, 1950}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 18048 | .reg_bits = |
| 18049 | { |
| 18050 | .srp = {STATUS1, 7, RW}, |
| 18051 | .srl = {STATUS2, 0, RW}, |
| 18052 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 18053 | .tb = {STATUS1, 5, RW}, |
| 18054 | .sec = {STATUS1, 6, RW}, |
| 18055 | .cmp = {STATUS2, 6, RW}, |
| 18056 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 18057 | .wp_write_cfg = spi_wp_write_cfg, |
| 18058 | .wp_read_cfg = spi_wp_read_cfg, |
| 18059 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 18060 | .decode_range = decode_range_spi25, |
Peichao Wang | 1a11949 | 2019-11-11 15:26:41 +0800 | [diff] [blame] | 18061 | }, |
| 18062 | |
| 18063 | { |
| 18064 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18065 | .name = "W25Q16.V", |
| 18066 | .bustype = BUS_SPI, |
| 18067 | .manufacture_id = WINBOND_NEX_ID, |
| 18068 | .model_id = WINBOND_NEX_W25Q16_V, |
| 18069 | .total_size = 2048, |
| 18070 | .page_size = 256, |
| 18071 | /* supports SFDP */ |
| 18072 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 18073 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 18074 | .tested = TEST_OK_PREW, |
| 18075 | .probe = probe_spi_rdid, |
| 18076 | .probe_timing = TIMING_ZERO, |
| 18077 | .block_erasers = |
| 18078 | { |
| 18079 | { |
| 18080 | .eraseblocks = { {4 * 1024, 512} }, |
| 18081 | .block_erase = spi_block_erase_20, |
| 18082 | }, { |
| 18083 | .eraseblocks = { {32 * 1024, 64} }, |
| 18084 | .block_erase = spi_block_erase_52, |
| 18085 | }, { |
| 18086 | .eraseblocks = { {64 * 1024, 32} }, |
| 18087 | .block_erase = spi_block_erase_d8, |
| 18088 | }, { |
| 18089 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 18090 | .block_erase = spi_block_erase_60, |
| 18091 | }, { |
| 18092 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 18093 | .block_erase = spi_block_erase_c7, |
| 18094 | } |
| 18095 | }, |
| 18096 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18097 | .unlock = spi_disable_blockprotect, |
| 18098 | .write = spi_chip_write_256, |
| 18099 | .read = spi_chip_read, |
| 18100 | .voltage = {2700, 3600}, |
| 18101 | }, |
| 18102 | |
| 18103 | { |
| 18104 | .vendor = "Winbond", |
| 18105 | .name = "W25Q16.W", |
| 18106 | .bustype = BUS_SPI, |
| 18107 | .manufacture_id = WINBOND_NEX_ID, |
| 18108 | .model_id = WINBOND_NEX_W25Q16_W, |
| 18109 | .total_size = 2048, |
| 18110 | .page_size = 256, |
| 18111 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 18112 | /* QPI: only FW & JW..M versions .qpi_read_params = { 2, 4, 6, 8 } */ |
| 18113 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QIO, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18114 | .tested = TEST_UNTESTED, |
| 18115 | .probe = probe_spi_rdid, |
| 18116 | .probe_timing = TIMING_ZERO, |
| 18117 | .block_erasers = |
| 18118 | { |
| 18119 | { |
| 18120 | .eraseblocks = { {4 * 1024, 512} }, |
| 18121 | .block_erase = spi_block_erase_20, |
| 18122 | }, { |
| 18123 | .eraseblocks = { {32 * 1024, 64} }, |
| 18124 | .block_erase = spi_block_erase_52, |
| 18125 | }, { |
| 18126 | .eraseblocks = { {64 * 1024, 32} }, |
| 18127 | .block_erase = spi_block_erase_d8, |
| 18128 | }, { |
| 18129 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 18130 | .block_erase = spi_block_erase_60, |
| 18131 | }, { |
| 18132 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 18133 | .block_erase = spi_block_erase_c7, |
| 18134 | } |
| 18135 | }, |
| 18136 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18137 | .unlock = spi_disable_blockprotect, |
| 18138 | .write = spi_chip_write_256, |
| 18139 | .read = spi_chip_read, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 18140 | .voltage = {1700, 1950}, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18141 | }, |
| 18142 | |
| 18143 | { |
| 18144 | .vendor = "Winbond", |
| 18145 | .name = "W25Q20.W", |
| 18146 | .bustype = BUS_SPI, |
| 18147 | .manufacture_id = WINBOND_NEX_ID, |
| 18148 | .model_id = WINBOND_NEX_W25Q20_W, |
| 18149 | .total_size = 256, |
| 18150 | .page_size = 256, |
| 18151 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 18152 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 18153 | .tested = TEST_UNTESTED, |
| 18154 | .probe = probe_spi_rdid, |
| 18155 | .probe_timing = TIMING_ZERO, |
| 18156 | .block_erasers = |
| 18157 | { |
| 18158 | { |
| 18159 | .eraseblocks = { {4 * 1024, 64} }, |
| 18160 | .block_erase = spi_block_erase_20, |
| 18161 | }, { |
| 18162 | .eraseblocks = { {32 * 1024, 8} }, |
| 18163 | .block_erase = spi_block_erase_52, |
| 18164 | }, { |
| 18165 | .eraseblocks = { {64 * 1024, 4} }, |
| 18166 | .block_erase = spi_block_erase_d8, |
| 18167 | }, { |
| 18168 | .eraseblocks = { {256 * 1024, 1} }, |
| 18169 | .block_erase = spi_block_erase_60, |
| 18170 | }, { |
| 18171 | .eraseblocks = { {256 * 1024, 1} }, |
| 18172 | .block_erase = spi_block_erase_c7, |
| 18173 | } |
| 18174 | }, |
| 18175 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18176 | .unlock = spi_disable_blockprotect, |
| 18177 | .write = spi_chip_write_256, |
| 18178 | .read = spi_chip_read, |
| 18179 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 18180 | }, |
| 18181 | |
| 18182 | { |
| 18183 | .vendor = "Winbond", |
Nico Huber | 5215eab | 2022-05-23 15:13:07 +0200 | [diff] [blame] | 18184 | .name = "W25Q256FV", |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 18185 | .bustype = BUS_SPI, |
| 18186 | .manufacture_id = WINBOND_NEX_ID, |
| 18187 | .model_id = WINBOND_NEX_W25Q256_V, |
| 18188 | .total_size = 32768, |
| 18189 | .page_size = 256, |
| 18190 | /* supports SFDP */ |
| 18191 | /* 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] | 18192 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_ENTER_WREN | |
Nico Huber | 542b1f0 | 2022-05-24 14:30:12 +0200 | [diff] [blame] | 18193 | FEATURE_4BA_EAR_C5C8 | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ | |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 18194 | FEATURE_WRSR2, |
Angel Pons | 3130cbd | 2018-09-30 19:32:30 +0200 | [diff] [blame] | 18195 | .tested = TEST_OK_PREW, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 18196 | .probe = probe_spi_rdid, |
| 18197 | .probe_timing = TIMING_ZERO, |
| 18198 | .block_erasers = |
| 18199 | { |
| 18200 | { |
| 18201 | .eraseblocks = { {4 * 1024, 8192} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 18202 | .block_erase = spi_block_erase_20, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 18203 | }, { |
| 18204 | .eraseblocks = { {32 * 1024, 1024} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 18205 | .block_erase = spi_block_erase_52, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 18206 | }, { |
| 18207 | .eraseblocks = { {64 * 1024, 512} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 18208 | .block_erase = spi_block_erase_d8, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 18209 | }, { |
| 18210 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 18211 | .block_erase = spi_block_erase_60, |
| 18212 | }, { |
| 18213 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 18214 | .block_erase = spi_block_erase_c7, |
| 18215 | } |
| 18216 | }, |
| 18217 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18218 | .unlock = spi_disable_blockprotect, |
| 18219 | .write = spi_chip_write_256, |
| 18220 | .read = spi_chip_read, |
| 18221 | .voltage = {2700, 3600}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 18222 | .reg_bits = |
| 18223 | { |
| 18224 | .srp = {STATUS1, 7, RW}, |
| 18225 | .srl = {STATUS2, 0, RW}, |
| 18226 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}}, |
| 18227 | .tb = {STATUS1, 6, RW}, |
| 18228 | .cmp = {STATUS2, 6, RW}, |
| 18229 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 18230 | .wp_write_cfg = spi_wp_write_cfg, |
| 18231 | .wp_read_cfg = spi_wp_read_cfg, |
| 18232 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 18233 | .decode_range = decode_range_spi25, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 18234 | .prepare_access = spi_prepare_4ba, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 18235 | }, |
| 18236 | |
| 18237 | { |
| 18238 | .vendor = "Winbond", |
Nico Huber | 5215eab | 2022-05-23 15:13:07 +0200 | [diff] [blame] | 18239 | .name = "W25Q256JV_Q", |
| 18240 | .bustype = BUS_SPI, |
| 18241 | .manufacture_id = WINBOND_NEX_ID, |
| 18242 | .model_id = WINBOND_NEX_W25Q256_V, |
| 18243 | .total_size = 32768, |
| 18244 | .page_size = 256, |
| 18245 | /* supports SFDP */ |
| 18246 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 18247 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2, |
Nico Huber | ddfbbe8 | 2023-12-21 16:31:27 +0100 | [diff] [blame] | 18248 | .tested = TEST_OK_PREW, |
Nico Huber | 5215eab | 2022-05-23 15:13:07 +0200 | [diff] [blame] | 18249 | .probe = probe_spi_rdid, |
| 18250 | .probe_timing = TIMING_ZERO, |
| 18251 | .block_erasers = |
| 18252 | { |
| 18253 | { |
| 18254 | .eraseblocks = { {4 * 1024, 8192} }, |
| 18255 | .block_erase = spi_block_erase_21, |
| 18256 | }, { |
| 18257 | .eraseblocks = { {4 * 1024, 8192} }, |
| 18258 | .block_erase = spi_block_erase_20, |
| 18259 | }, { |
| 18260 | .eraseblocks = { {32 * 1024, 1024} }, |
| 18261 | .block_erase = spi_block_erase_52, |
| 18262 | }, { |
| 18263 | .eraseblocks = { {64 * 1024, 512} }, |
| 18264 | .block_erase = spi_block_erase_dc, |
| 18265 | }, { |
| 18266 | .eraseblocks = { {64 * 1024, 512} }, |
| 18267 | .block_erase = spi_block_erase_d8, |
| 18268 | }, { |
| 18269 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 18270 | .block_erase = spi_block_erase_60, |
| 18271 | }, { |
| 18272 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 18273 | .block_erase = spi_block_erase_c7, |
| 18274 | } |
| 18275 | }, |
| 18276 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18277 | .unlock = spi_disable_blockprotect, |
| 18278 | .write = spi_chip_write_256, |
| 18279 | .read = spi_chip_read, |
| 18280 | .voltage = {2700, 3600}, |
| 18281 | .reg_bits = |
| 18282 | { |
| 18283 | .srp = {STATUS1, 7, RW}, |
| 18284 | .srl = {STATUS2, 0, RW}, |
| 18285 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}}, |
| 18286 | .tb = {STATUS1, 6, RW}, |
| 18287 | .cmp = {STATUS2, 6, RW}, |
| 18288 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 18289 | .wp_write_cfg = spi_wp_write_cfg, |
| 18290 | .wp_read_cfg = spi_wp_read_cfg, |
| 18291 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nico Huber | 5215eab | 2022-05-23 15:13:07 +0200 | [diff] [blame] | 18292 | .decode_range = decode_range_spi25, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 18293 | .prepare_access = spi_prepare_4ba, |
Nico Huber | 5215eab | 2022-05-23 15:13:07 +0200 | [diff] [blame] | 18294 | }, |
| 18295 | |
| 18296 | { |
| 18297 | .vendor = "Winbond", |
David Hendricks | 4987679 | 2018-10-27 20:19:42 +0000 | [diff] [blame] | 18298 | .name = "W25Q256JV_M", |
| 18299 | .bustype = BUS_SPI, |
| 18300 | .manufacture_id = WINBOND_NEX_ID, |
| 18301 | .model_id = WINBOND_NEX_W25Q256JV_M, |
| 18302 | .total_size = 32768, |
| 18303 | .page_size = 256, |
| 18304 | /* supports SFDP */ |
| 18305 | /* 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] | 18306 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2, |
David Hendricks | 4987679 | 2018-10-27 20:19:42 +0000 | [diff] [blame] | 18307 | .tested = TEST_OK_PREW, |
| 18308 | .probe = probe_spi_rdid, |
| 18309 | .probe_timing = TIMING_ZERO, |
| 18310 | .block_erasers = |
| 18311 | { |
| 18312 | { |
| 18313 | .eraseblocks = { {4 * 1024, 8192} }, |
| 18314 | .block_erase = spi_block_erase_21, |
| 18315 | }, { |
| 18316 | .eraseblocks = { {4 * 1024, 8192} }, |
| 18317 | .block_erase = spi_block_erase_20, |
| 18318 | }, { |
| 18319 | .eraseblocks = { {32 * 1024, 1024} }, |
| 18320 | .block_erase = spi_block_erase_52, |
| 18321 | }, { |
| 18322 | .eraseblocks = { {64 * 1024, 512} }, |
| 18323 | .block_erase = spi_block_erase_dc, |
| 18324 | }, { |
| 18325 | .eraseblocks = { {64 * 1024, 512} }, |
| 18326 | .block_erase = spi_block_erase_d8, |
| 18327 | }, { |
| 18328 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 18329 | .block_erase = spi_block_erase_60, |
| 18330 | }, { |
| 18331 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 18332 | .block_erase = spi_block_erase_c7, |
| 18333 | } |
| 18334 | }, |
| 18335 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18336 | .unlock = spi_disable_blockprotect, |
| 18337 | .write = spi_chip_write_256, |
| 18338 | .read = spi_chip_read, |
| 18339 | .voltage = {2700, 3600}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 18340 | .reg_bits = |
| 18341 | { |
| 18342 | .srp = {STATUS1, 7, RW}, |
| 18343 | .srl = {STATUS2, 0, RW}, |
| 18344 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}}, |
| 18345 | .tb = {STATUS1, 6, RW}, |
| 18346 | .cmp = {STATUS2, 6, RW}, |
| 18347 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 18348 | .wp_write_cfg = spi_wp_write_cfg, |
| 18349 | .wp_read_cfg = spi_wp_read_cfg, |
| 18350 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 18351 | .decode_range = decode_range_spi25, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 18352 | .prepare_access = spi_prepare_4ba, |
David Hendricks | 4987679 | 2018-10-27 20:19:42 +0000 | [diff] [blame] | 18353 | }, |
| 18354 | |
| 18355 | { |
| 18356 | .vendor = "Winbond", |
Patrick Rudolph | 8f5bd98 | 2020-08-26 09:15:53 +0200 | [diff] [blame] | 18357 | .name = "W25Q256JW", |
el-coderon | 0120985 | 2020-04-29 12:12:53 +0200 | [diff] [blame] | 18358 | .bustype = BUS_SPI, |
| 18359 | .manufacture_id = WINBOND_NEX_ID, |
| 18360 | .model_id = WINBOND_NEX_W25Q256_W, |
| 18361 | .total_size = 32768, |
| 18362 | .page_size = 256, |
| 18363 | /* supports SFDP */ |
| 18364 | /* 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] | 18365 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
el-coderon | 0120985 | 2020-04-29 12:12:53 +0200 | [diff] [blame] | 18366 | .tested = TEST_OK_PREW, |
| 18367 | .probe = probe_spi_rdid, |
| 18368 | .probe_timing = TIMING_ZERO, |
| 18369 | .block_erasers = |
| 18370 | { |
| 18371 | { |
| 18372 | .eraseblocks = { {4 * 1024, 8192} }, |
Patrick Rudolph | 8f5bd98 | 2020-08-26 09:15:53 +0200 | [diff] [blame] | 18373 | .block_erase = spi_block_erase_21, |
| 18374 | }, { |
| 18375 | .eraseblocks = { {4 * 1024, 8192} }, |
el-coderon | 0120985 | 2020-04-29 12:12:53 +0200 | [diff] [blame] | 18376 | .block_erase = spi_block_erase_20, |
| 18377 | }, { |
| 18378 | .eraseblocks = { {32 * 1024, 1024} }, |
| 18379 | .block_erase = spi_block_erase_52, |
| 18380 | }, { |
| 18381 | .eraseblocks = { {64 * 1024, 512} }, |
Patrick Rudolph | 8f5bd98 | 2020-08-26 09:15:53 +0200 | [diff] [blame] | 18382 | .block_erase = spi_block_erase_dc, |
| 18383 | }, { |
| 18384 | .eraseblocks = { {64 * 1024, 512} }, |
el-coderon | 0120985 | 2020-04-29 12:12:53 +0200 | [diff] [blame] | 18385 | .block_erase = spi_block_erase_d8, |
| 18386 | }, { |
| 18387 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 18388 | .block_erase = spi_block_erase_60, |
| 18389 | }, { |
| 18390 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 18391 | .block_erase = spi_block_erase_c7, |
| 18392 | } |
| 18393 | }, |
| 18394 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18395 | .unlock = spi_disable_blockprotect, |
| 18396 | .write = spi_chip_write_256, |
| 18397 | .read = spi_chip_read, |
| 18398 | .voltage = {1650, 1950}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 18399 | .prepare_access = spi_prepare_4ba, |
el-coderon | 0120985 | 2020-04-29 12:12:53 +0200 | [diff] [blame] | 18400 | }, |
| 18401 | |
| 18402 | { |
| 18403 | .vendor = "Winbond", |
David Hendricks | 3153260 | 2020-08-16 17:14:56 -0700 | [diff] [blame] | 18404 | .name = "W25Q256JW_DTR", |
| 18405 | .bustype = BUS_SPI, |
| 18406 | .manufacture_id = WINBOND_NEX_ID, |
| 18407 | .model_id = WINBOND_NEX_W25Q256_DTR, |
| 18408 | .total_size = 32768, |
| 18409 | .page_size = 256, |
| 18410 | /* supports SFDP */ |
| 18411 | /* 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] | 18412 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2 |
| 18413 | | FEATURE_WRSR3, |
| 18414 | .tested = TEST_OK_PREWB, |
David Hendricks | 3153260 | 2020-08-16 17:14:56 -0700 | [diff] [blame] | 18415 | .probe = probe_spi_rdid, |
| 18416 | .probe_timing = TIMING_ZERO, |
| 18417 | .block_erasers = |
| 18418 | { |
| 18419 | { |
| 18420 | .eraseblocks = { {4 * 1024, 8192} }, |
| 18421 | .block_erase = spi_block_erase_21, |
| 18422 | }, { |
| 18423 | .eraseblocks = { {4 * 1024, 8192} }, |
| 18424 | .block_erase = spi_block_erase_20, |
| 18425 | }, { |
| 18426 | .eraseblocks = { {32 * 1024, 1024} }, |
| 18427 | .block_erase = spi_block_erase_52, |
| 18428 | }, { |
| 18429 | .eraseblocks = { {64 * 1024, 512} }, |
| 18430 | .block_erase = spi_block_erase_dc, |
| 18431 | }, { |
| 18432 | .eraseblocks = { {64 * 1024, 512} }, |
| 18433 | .block_erase = spi_block_erase_d8, |
| 18434 | }, { |
| 18435 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 18436 | .block_erase = spi_block_erase_60, |
| 18437 | }, { |
| 18438 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 18439 | .block_erase = spi_block_erase_c7, |
| 18440 | } |
| 18441 | }, |
| 18442 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18443 | .unlock = spi_disable_blockprotect, |
| 18444 | .write = spi_chip_write_256, |
| 18445 | .read = spi_chip_read, |
| 18446 | .voltage = {1700, 1950}, |
Kapil Porwal | 111c380 | 2022-12-09 19:41:27 +0530 | [diff] [blame] | 18447 | .reg_bits = |
| 18448 | { |
| 18449 | .srp = {STATUS1, 7, RW}, |
| 18450 | .srl = {STATUS2, 0, RW}, |
| 18451 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}}, |
| 18452 | .tb = {STATUS1, 6, RW}, |
| 18453 | .cmp = {STATUS2, 6, RW}, |
| 18454 | .wps = {STATUS3, 2, RW}, |
| 18455 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 18456 | .wp_write_cfg = spi_wp_write_cfg, |
| 18457 | .wp_read_cfg = spi_wp_read_cfg, |
| 18458 | .wp_get_ranges = spi_wp_get_available_ranges, |
Kapil Porwal | 111c380 | 2022-12-09 19:41:27 +0530 | [diff] [blame] | 18459 | .decode_range = decode_range_spi25, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 18460 | .prepare_access = spi_prepare_4ba, |
David Hendricks | 3153260 | 2020-08-16 17:14:56 -0700 | [diff] [blame] | 18461 | }, |
| 18462 | |
| 18463 | { |
| 18464 | .vendor = "Winbond", |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18465 | .name = "W25Q32BV/W25Q32CV/W25Q32DV", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18466 | .bustype = BUS_SPI, |
| 18467 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18468 | .model_id = WINBOND_NEX_W25Q32_V, |
| 18469 | .total_size = 4096, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18470 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18471 | /* supports SFDP */ |
| 18472 | /* 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] | 18473 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR_EXT2, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18474 | .tested = TEST_OK_PREW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18475 | .probe = probe_spi_rdid, |
| 18476 | .probe_timing = TIMING_ZERO, |
| 18477 | .block_erasers = |
| 18478 | { |
| 18479 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18480 | .eraseblocks = { {4 * 1024, 1024} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18481 | .block_erase = spi_block_erase_20, |
| 18482 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18483 | .eraseblocks = { {32 * 1024, 128} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18484 | .block_erase = spi_block_erase_52, |
| 18485 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18486 | .eraseblocks = { {64 * 1024, 64} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18487 | .block_erase = spi_block_erase_d8, |
| 18488 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18489 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18490 | .block_erase = spi_block_erase_60, |
| 18491 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18492 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18493 | .block_erase = spi_block_erase_c7, |
| 18494 | } |
| 18495 | }, |
| 18496 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18497 | .unlock = spi_disable_blockprotect, |
| 18498 | .write = spi_chip_write_256, |
| 18499 | .read = spi_chip_read, |
| 18500 | .voltage = {2700, 3600}, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18501 | .reg_bits = |
| 18502 | { |
| 18503 | .srp = {STATUS1, 7, RW}, |
| 18504 | .srl = {STATUS2, 0, RW}, |
| 18505 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 18506 | .tb = {STATUS1, 5, RW}, |
| 18507 | .sec = {STATUS1, 6, RW}, |
| 18508 | .cmp = {STATUS2, 6, RW}, |
| 18509 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 18510 | .wp_write_cfg = spi_wp_write_cfg, |
| 18511 | .wp_read_cfg = spi_wp_read_cfg, |
| 18512 | .wp_get_ranges = spi_wp_get_available_ranges, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18513 | .decode_range = decode_range_spi25, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18514 | }, |
| 18515 | |
| 18516 | { |
| 18517 | .vendor = "Winbond", |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18518 | .name = "W25Q32FV", |
| 18519 | .bustype = BUS_SPI, |
| 18520 | .manufacture_id = WINBOND_NEX_ID, |
| 18521 | .model_id = WINBOND_NEX_W25Q32_V, |
| 18522 | .total_size = 4096, |
| 18523 | .page_size = 256, |
| 18524 | /* supports SFDP */ |
| 18525 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 18526 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP | |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18527 | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 18528 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18529 | .tested = TEST_OK_PREW, |
| 18530 | .probe = probe_spi_rdid, |
| 18531 | .probe_timing = TIMING_ZERO, |
| 18532 | .block_erasers = |
| 18533 | { |
| 18534 | { |
| 18535 | .eraseblocks = { {4 * 1024, 1024} }, |
| 18536 | .block_erase = spi_block_erase_20, |
| 18537 | }, { |
| 18538 | .eraseblocks = { {32 * 1024, 128} }, |
| 18539 | .block_erase = spi_block_erase_52, |
| 18540 | }, { |
| 18541 | .eraseblocks = { {64 * 1024, 64} }, |
| 18542 | .block_erase = spi_block_erase_d8, |
| 18543 | }, { |
| 18544 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18545 | .block_erase = spi_block_erase_60, |
| 18546 | }, { |
| 18547 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18548 | .block_erase = spi_block_erase_c7, |
| 18549 | } |
| 18550 | }, |
| 18551 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18552 | .unlock = spi_disable_blockprotect, |
| 18553 | .write = spi_chip_write_256, |
| 18554 | .read = spi_chip_read, |
| 18555 | .voltage = {2700, 3600}, |
| 18556 | .reg_bits = |
| 18557 | { |
| 18558 | .srp = {STATUS1, 7, RW}, |
| 18559 | .srl = {STATUS2, 0, RW}, |
| 18560 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 18561 | .tb = {STATUS1, 5, RW}, |
| 18562 | .sec = {STATUS1, 6, RW}, |
| 18563 | .cmp = {STATUS2, 6, RW}, |
| 18564 | .wps = {STATUS3, 2, RW}, |
| 18565 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 18566 | .wp_write_cfg = spi_wp_write_cfg, |
| 18567 | .wp_read_cfg = spi_wp_read_cfg, |
| 18568 | .wp_get_ranges = spi_wp_get_available_ranges, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18569 | .decode_range = decode_range_spi25, |
| 18570 | }, |
| 18571 | |
| 18572 | { |
| 18573 | .vendor = "Winbond", |
| 18574 | .name = "W25Q32JV", |
| 18575 | .bustype = BUS_SPI, |
| 18576 | .manufacture_id = WINBOND_NEX_ID, |
| 18577 | .model_id = WINBOND_NEX_W25Q32_V, |
| 18578 | .total_size = 4096, |
| 18579 | .page_size = 256, |
| 18580 | /* supports SFDP */ |
| 18581 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 18582 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 18583 | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3, |
| 18584 | .tested = TEST_OK_PREW, |
| 18585 | .probe = probe_spi_rdid, |
| 18586 | .probe_timing = TIMING_ZERO, |
| 18587 | .block_erasers = |
| 18588 | { |
| 18589 | { |
| 18590 | .eraseblocks = { {4 * 1024, 1024} }, |
| 18591 | .block_erase = spi_block_erase_20, |
| 18592 | }, { |
| 18593 | .eraseblocks = { {32 * 1024, 128} }, |
| 18594 | .block_erase = spi_block_erase_52, |
| 18595 | }, { |
| 18596 | .eraseblocks = { {64 * 1024, 64} }, |
| 18597 | .block_erase = spi_block_erase_d8, |
| 18598 | }, { |
| 18599 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18600 | .block_erase = spi_block_erase_60, |
| 18601 | }, { |
| 18602 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18603 | .block_erase = spi_block_erase_c7, |
| 18604 | } |
| 18605 | }, |
| 18606 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18607 | .unlock = spi_disable_blockprotect, |
| 18608 | .write = spi_chip_write_256, |
| 18609 | .read = spi_chip_read, |
| 18610 | .voltage = {2700, 3600}, |
| 18611 | .reg_bits = |
| 18612 | { |
| 18613 | .srp = {STATUS1, 7, RW}, |
| 18614 | .srl = {STATUS2, 0, RW}, |
| 18615 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 18616 | .tb = {STATUS1, 5, RW}, |
| 18617 | .sec = {STATUS1, 6, RW}, |
| 18618 | .cmp = {STATUS2, 6, RW}, |
| 18619 | .wps = {STATUS3, 2, RW}, |
| 18620 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 18621 | .wp_write_cfg = spi_wp_write_cfg, |
| 18622 | .wp_read_cfg = spi_wp_read_cfg, |
| 18623 | .wp_get_ranges = spi_wp_get_available_ranges, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18624 | .decode_range = decode_range_spi25, |
| 18625 | }, |
| 18626 | |
| 18627 | { |
| 18628 | .vendor = "Winbond", |
Angel Pons | 0d4354e | 2024-05-26 16:33:51 +0200 | [diff] [blame] | 18629 | .name = "W25Q32JV-.M", |
| 18630 | .bustype = BUS_SPI, |
| 18631 | .manufacture_id = WINBOND_NEX_ID, |
| 18632 | .model_id = WINBOND_NEX_W25Q32JV, |
| 18633 | .total_size = 4096, |
| 18634 | .page_size = 256, |
| 18635 | /* supports SFDP */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 18636 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP | |
Angel Pons | 0d4354e | 2024-05-26 16:33:51 +0200 | [diff] [blame] | 18637 | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 18638 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
Angel Pons | 0d4354e | 2024-05-26 16:33:51 +0200 | [diff] [blame] | 18639 | .tested = TEST_OK_PREW, |
| 18640 | .probe = probe_spi_rdid, |
| 18641 | .probe_timing = TIMING_ZERO, |
| 18642 | .block_erasers = |
| 18643 | { |
| 18644 | { |
| 18645 | .eraseblocks = { {4 * 1024, 1024} }, |
| 18646 | .block_erase = spi_block_erase_20, |
| 18647 | }, { |
| 18648 | .eraseblocks = { {32 * 1024, 128} }, |
| 18649 | .block_erase = spi_block_erase_52, |
| 18650 | }, { |
| 18651 | .eraseblocks = { {64 * 1024, 64} }, |
| 18652 | .block_erase = spi_block_erase_d8, |
| 18653 | }, { |
| 18654 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18655 | .block_erase = spi_block_erase_60, |
| 18656 | }, { |
| 18657 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18658 | .block_erase = spi_block_erase_c7, |
| 18659 | } |
| 18660 | }, |
| 18661 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 18662 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 18663 | .write = spi_chip_write_256, |
| 18664 | .read = spi_chip_read, |
| 18665 | .voltage = {2700, 3600}, |
| 18666 | .reg_bits = |
| 18667 | { |
| 18668 | .srp = {STATUS1, 7, RW}, |
| 18669 | .srl = {STATUS2, 0, RW}, |
| 18670 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 18671 | .tb = {STATUS1, 5, RW}, |
| 18672 | .sec = {STATUS1, 6, RW}, |
| 18673 | .cmp = {STATUS2, 6, RW}, |
| 18674 | .wps = {STATUS3, 2, RW}, |
| 18675 | }, |
| 18676 | .wp_write_cfg = spi_wp_write_cfg, |
| 18677 | .wp_read_cfg = spi_wp_read_cfg, |
| 18678 | .wp_get_ranges = spi_wp_get_available_ranges, |
| 18679 | .decode_range = decode_range_spi25, |
| 18680 | }, |
| 18681 | |
| 18682 | { |
| 18683 | .vendor = "Winbond", |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18684 | .name = "W25Q32BW/W25Q32CW/W25Q32DW", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18685 | .bustype = BUS_SPI, |
| 18686 | .manufacture_id = WINBOND_NEX_ID, |
| 18687 | .model_id = WINBOND_NEX_W25Q32_W, |
| 18688 | .total_size = 4096, |
| 18689 | .page_size = 256, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18690 | /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 18691 | /* QPI: only DW version */ |
| 18692 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18693 | .tested = TEST_OK_PREW, |
| 18694 | .probe = probe_spi_rdid, |
| 18695 | .probe_timing = TIMING_ZERO, |
| 18696 | .block_erasers = |
| 18697 | { |
| 18698 | { |
| 18699 | .eraseblocks = { {4 * 1024, 1024} }, |
| 18700 | .block_erase = spi_block_erase_20, |
| 18701 | }, { |
| 18702 | .eraseblocks = { {32 * 1024, 128} }, |
| 18703 | .block_erase = spi_block_erase_52, |
| 18704 | }, { |
| 18705 | .eraseblocks = { {64 * 1024, 64} }, |
| 18706 | .block_erase = spi_block_erase_d8, |
| 18707 | }, { |
| 18708 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18709 | .block_erase = spi_block_erase_60, |
| 18710 | }, { |
| 18711 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18712 | .block_erase = spi_block_erase_c7, |
| 18713 | } |
| 18714 | }, |
| 18715 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18716 | .unlock = spi_disable_blockprotect, |
| 18717 | .write = spi_chip_write_256, |
| 18718 | .read = spi_chip_read, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 18719 | .voltage = {1700, 1950}, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18720 | .reg_bits = |
| 18721 | { |
| 18722 | .srp = {STATUS1, 7, RW}, |
| 18723 | .srl = {STATUS2, 0, RW}, |
| 18724 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 18725 | .tb = {STATUS1, 5, RW}, |
| 18726 | .sec = {STATUS1, 6, RW}, |
| 18727 | .cmp = {STATUS2, 6, RW}, |
| 18728 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 18729 | .wp_write_cfg = spi_wp_write_cfg, |
| 18730 | .wp_read_cfg = spi_wp_read_cfg, |
| 18731 | .wp_get_ranges = spi_wp_get_available_ranges, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18732 | .decode_range = decode_range_spi25, |
| 18733 | }, |
| 18734 | |
| 18735 | { |
| 18736 | .vendor = "Winbond", |
| 18737 | .name = "W25Q32FW", |
| 18738 | .bustype = BUS_SPI, |
| 18739 | .manufacture_id = WINBOND_NEX_ID, |
| 18740 | .model_id = WINBOND_NEX_W25Q32_W, |
| 18741 | .total_size = 4096, |
| 18742 | .page_size = 256, |
| 18743 | /* OTP: 768B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 18744 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP | |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18745 | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 18746 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18747 | .tested = TEST_OK_PREW, |
| 18748 | .probe = probe_spi_rdid, |
| 18749 | .probe_timing = TIMING_ZERO, |
| 18750 | .block_erasers = |
| 18751 | { |
| 18752 | { |
| 18753 | .eraseblocks = { {4 * 1024, 1024} }, |
| 18754 | .block_erase = spi_block_erase_20, |
| 18755 | }, { |
| 18756 | .eraseblocks = { {32 * 1024, 128} }, |
| 18757 | .block_erase = spi_block_erase_52, |
| 18758 | }, { |
| 18759 | .eraseblocks = { {64 * 1024, 64} }, |
| 18760 | .block_erase = spi_block_erase_d8, |
| 18761 | }, { |
| 18762 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18763 | .block_erase = spi_block_erase_60, |
| 18764 | }, { |
| 18765 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18766 | .block_erase = spi_block_erase_c7, |
| 18767 | } |
| 18768 | }, |
| 18769 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18770 | .unlock = spi_disable_blockprotect, |
| 18771 | .write = spi_chip_write_256, |
| 18772 | .read = spi_chip_read, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 18773 | .voltage = {1700, 1950}, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18774 | .reg_bits = |
| 18775 | { |
| 18776 | .srp = {STATUS1, 7, RW}, |
| 18777 | .srl = {STATUS2, 0, RW}, |
| 18778 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 18779 | .tb = {STATUS1, 5, RW}, |
| 18780 | .sec = {STATUS1, 6, RW}, |
| 18781 | .cmp = {STATUS2, 6, RW}, |
| 18782 | .wps = {STATUS3, 2, RW}, |
| 18783 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 18784 | .wp_write_cfg = spi_wp_write_cfg, |
| 18785 | .wp_read_cfg = spi_wp_read_cfg, |
| 18786 | .wp_get_ranges = spi_wp_get_available_ranges, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18787 | .decode_range = decode_range_spi25, |
| 18788 | }, |
| 18789 | |
| 18790 | { |
| 18791 | .vendor = "Winbond", |
| 18792 | .name = "W25Q32JW...Q", |
| 18793 | .bustype = BUS_SPI, |
| 18794 | .manufacture_id = WINBOND_NEX_ID, |
| 18795 | .model_id = WINBOND_NEX_W25Q32_W, |
| 18796 | .total_size = 4096, |
| 18797 | .page_size = 256, |
| 18798 | /* OTP: 768B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 18799 | /* QPI enable 0x38, disable 0xFF */ |
| 18800 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 18801 | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3, |
| 18802 | .tested = TEST_OK_PREW, |
| 18803 | .probe = probe_spi_rdid, |
| 18804 | .probe_timing = TIMING_ZERO, |
| 18805 | .block_erasers = |
| 18806 | { |
| 18807 | { |
| 18808 | .eraseblocks = { {4 * 1024, 1024} }, |
| 18809 | .block_erase = spi_block_erase_20, |
| 18810 | }, { |
| 18811 | .eraseblocks = { {32 * 1024, 128} }, |
| 18812 | .block_erase = spi_block_erase_52, |
| 18813 | }, { |
| 18814 | .eraseblocks = { {64 * 1024, 64} }, |
| 18815 | .block_erase = spi_block_erase_d8, |
| 18816 | }, { |
| 18817 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18818 | .block_erase = spi_block_erase_60, |
| 18819 | }, { |
| 18820 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18821 | .block_erase = spi_block_erase_c7, |
| 18822 | } |
| 18823 | }, |
| 18824 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18825 | .unlock = spi_disable_blockprotect, |
| 18826 | .write = spi_chip_write_256, |
| 18827 | .read = spi_chip_read, |
| 18828 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 18829 | .reg_bits = |
| 18830 | { |
| 18831 | .srp = {STATUS1, 7, RW}, |
| 18832 | .srl = {STATUS2, 0, RW}, |
| 18833 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 18834 | .tb = {STATUS1, 5, RW}, |
| 18835 | .sec = {STATUS1, 6, RW}, |
| 18836 | .cmp = {STATUS2, 6, RW}, |
| 18837 | .wps = {STATUS3, 2, RW}, |
| 18838 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 18839 | .wp_write_cfg = spi_wp_write_cfg, |
| 18840 | .wp_read_cfg = spi_wp_read_cfg, |
| 18841 | .wp_get_ranges = spi_wp_get_available_ranges, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18842 | .decode_range = decode_range_spi25, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18843 | }, |
| 18844 | |
| 18845 | { |
| 18846 | .vendor = "Winbond", |
Nikolai Artemiev | 6ae79b1 | 2021-05-08 17:31:23 +1000 | [diff] [blame] | 18847 | .name = "W25Q32JW...M", |
| 18848 | .bustype = BUS_SPI, |
| 18849 | .manufacture_id = WINBOND_NEX_ID, |
| 18850 | .model_id = WINBOND_NEX_W25Q32JW_M, |
| 18851 | .total_size = 4096, |
| 18852 | .page_size = 256, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18853 | /* OTP: 768B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 18854 | /* QPI enable 0x38, disable 0xFF */ |
| 18855 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 18856 | FEATURE_WRSR2 | FEATURE_WRSR3 | FEATURE_WRSR_EXT2, |
Nikolai Artemiev | 6ae79b1 | 2021-05-08 17:31:23 +1000 | [diff] [blame] | 18857 | .tested = TEST_OK_PREW, |
| 18858 | .probe = probe_spi_rdid, |
| 18859 | .probe_timing = TIMING_ZERO, |
| 18860 | .block_erasers = |
| 18861 | { |
| 18862 | { |
| 18863 | .eraseblocks = { {4 * 1024, 1024} }, |
| 18864 | .block_erase = spi_block_erase_20, |
| 18865 | }, { |
| 18866 | .eraseblocks = { {32 * 1024, 128} }, |
| 18867 | .block_erase = spi_block_erase_52, |
| 18868 | }, { |
| 18869 | .eraseblocks = { {64 * 1024, 64} }, |
| 18870 | .block_erase = spi_block_erase_d8, |
| 18871 | }, { |
| 18872 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18873 | .block_erase = spi_block_erase_60, |
| 18874 | }, { |
| 18875 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18876 | .block_erase = spi_block_erase_c7, |
| 18877 | } |
| 18878 | }, |
| 18879 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 18880 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 18881 | .write = spi_chip_write_256, |
| 18882 | .read = spi_chip_read, |
| 18883 | .voltage = {1700, 1950}, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18884 | .reg_bits = |
| 18885 | { |
| 18886 | .srp = {STATUS1, 7, RW}, |
| 18887 | .srl = {STATUS2, 0, RW}, |
| 18888 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 18889 | .tb = {STATUS1, 5, RW}, |
| 18890 | .sec = {STATUS1, 6, RW}, |
| 18891 | .cmp = {STATUS2, 6, RW}, |
| 18892 | .wps = {STATUS3, 2, RW}, |
| 18893 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 18894 | .wp_write_cfg = spi_wp_write_cfg, |
| 18895 | .wp_read_cfg = spi_wp_read_cfg, |
| 18896 | .wp_get_ranges = spi_wp_get_available_ranges, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18897 | .decode_range = decode_range_spi25, |
Nikolai Artemiev | 6ae79b1 | 2021-05-08 17:31:23 +1000 | [diff] [blame] | 18898 | }, |
| 18899 | |
| 18900 | { |
| 18901 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18902 | .name = "W25Q40.V", |
| 18903 | .bustype = BUS_SPI, |
| 18904 | .manufacture_id = WINBOND_NEX_ID, |
| 18905 | .model_id = WINBOND_NEX_W25Q40_V, |
| 18906 | .total_size = 512, |
| 18907 | .page_size = 256, |
| 18908 | /* supports SFDP */ |
| 18909 | /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 18910 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 18911 | .tested = TEST_OK_PREW, |
| 18912 | .probe = probe_spi_rdid, |
| 18913 | .probe_timing = TIMING_ZERO, |
| 18914 | .block_erasers = |
| 18915 | { |
| 18916 | { |
| 18917 | .eraseblocks = { {4 * 1024, 128} }, |
| 18918 | .block_erase = spi_block_erase_20, |
| 18919 | }, { |
| 18920 | .eraseblocks = { {32 * 1024, 16} }, |
| 18921 | .block_erase = spi_block_erase_52, |
| 18922 | }, { |
| 18923 | .eraseblocks = { {64 * 1024, 8} }, |
| 18924 | .block_erase = spi_block_erase_d8, |
| 18925 | }, { |
| 18926 | .eraseblocks = { {512 * 1024, 1} }, |
| 18927 | .block_erase = spi_block_erase_60, |
| 18928 | }, { |
| 18929 | .eraseblocks = { {512 * 1024, 1} }, |
| 18930 | .block_erase = spi_block_erase_c7, |
| 18931 | } |
| 18932 | }, |
| 18933 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18934 | .unlock = spi_disable_blockprotect, |
| 18935 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 18936 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 18937 | .voltage = {2700, 3600}, |
| 18938 | }, |
| 18939 | |
| 18940 | { |
| 18941 | .vendor = "Winbond", |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 18942 | .name = "W25Q40BW", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18943 | .bustype = BUS_SPI, |
| 18944 | .manufacture_id = WINBOND_NEX_ID, |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 18945 | .model_id = WINBOND_NEX_W25Q40BW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18946 | .total_size = 512, |
| 18947 | .page_size = 256, |
| 18948 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 18949 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Angel Pons | 3164a0c | 2018-09-30 20:26:06 +0200 | [diff] [blame] | 18950 | .tested = TEST_OK_PREW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18951 | .probe = probe_spi_rdid, |
| 18952 | .probe_timing = TIMING_ZERO, |
| 18953 | .block_erasers = |
| 18954 | { |
| 18955 | { |
| 18956 | .eraseblocks = { {4 * 1024, 128} }, |
| 18957 | .block_erase = spi_block_erase_20, |
| 18958 | }, { |
| 18959 | .eraseblocks = { {32 * 1024, 16} }, |
| 18960 | .block_erase = spi_block_erase_52, |
| 18961 | }, { |
| 18962 | .eraseblocks = { {64 * 1024, 8} }, |
| 18963 | .block_erase = spi_block_erase_d8, |
| 18964 | }, { |
| 18965 | .eraseblocks = { {512 * 1024, 1} }, |
| 18966 | .block_erase = spi_block_erase_60, |
| 18967 | }, { |
| 18968 | .eraseblocks = { {512 * 1024, 1} }, |
| 18969 | .block_erase = spi_block_erase_c7, |
| 18970 | } |
| 18971 | }, |
| 18972 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18973 | .unlock = spi_disable_blockprotect, |
| 18974 | .write = spi_chip_write_256, |
| 18975 | .read = spi_chip_read, |
| 18976 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 18977 | }, |
| 18978 | |
| 18979 | { |
| 18980 | .vendor = "Winbond", |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 18981 | .name = "W25Q40EW", |
| 18982 | .bustype = BUS_SPI, |
| 18983 | .manufacture_id = WINBOND_NEX_ID, |
| 18984 | .model_id = WINBOND_NEX_W25Q40EW, |
| 18985 | .total_size = 512, |
| 18986 | .page_size = 256, |
| 18987 | /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 18988 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Alan Green | 07b8a17 | 2019-09-23 16:47:05 +1000 | [diff] [blame] | 18989 | .tested = TEST_OK_PREW, |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 18990 | .probe = probe_spi_rdid, |
| 18991 | .probe_timing = TIMING_ZERO, |
| 18992 | .block_erasers = |
| 18993 | { |
| 18994 | { |
| 18995 | .eraseblocks = { {4 * 1024, 128} }, |
| 18996 | .block_erase = spi_block_erase_20, |
| 18997 | }, { |
| 18998 | .eraseblocks = { {32 * 1024, 16} }, |
| 18999 | .block_erase = spi_block_erase_52, |
| 19000 | }, { |
| 19001 | .eraseblocks = { {64 * 1024, 8} }, |
| 19002 | .block_erase = spi_block_erase_d8, |
| 19003 | }, { |
| 19004 | .eraseblocks = { {512 * 1024, 1} }, |
| 19005 | .block_erase = spi_block_erase_60, |
| 19006 | }, { |
| 19007 | .eraseblocks = { {512 * 1024, 1} }, |
| 19008 | .block_erase = spi_block_erase_c7, |
| 19009 | } |
| 19010 | }, |
| 19011 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19012 | .unlock = spi_disable_blockprotect, |
| 19013 | .write = spi_chip_write_256, |
| 19014 | .read = spi_chip_read, |
| 19015 | .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 19016 | }, |
| 19017 | |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 19018 | { |
| 19019 | .vendor = "Winbond", |
Joel Stanley | 5543961 | 2019-07-27 19:25:35 +0930 | [diff] [blame] | 19020 | .name = "W25Q512JV", |
| 19021 | .bustype = BUS_SPI, |
| 19022 | .manufacture_id = WINBOND_NEX_ID, |
| 19023 | .model_id = WINBOND_NEX_W25Q512JV, |
| 19024 | .total_size = 64 * 1024, |
| 19025 | .page_size = 256, |
| 19026 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
| 19027 | .tested = TEST_OK_PREW, |
| 19028 | .probe = probe_spi_rdid, |
| 19029 | .probe_timing = TIMING_ZERO, |
| 19030 | .block_erasers = |
| 19031 | { |
| 19032 | { |
| 19033 | .eraseblocks = { {4 * 1024, 16384} }, |
| 19034 | .block_erase = spi_block_erase_21, |
| 19035 | }, { |
| 19036 | .eraseblocks = { {4 * 1024, 16384} }, |
| 19037 | .block_erase = spi_block_erase_20, |
| 19038 | }, { |
| 19039 | .eraseblocks = { {32 * 1024, 2048} }, |
| 19040 | .block_erase = spi_block_erase_52, |
| 19041 | }, { |
| 19042 | .eraseblocks = { {64 * 1024, 1024} }, |
| 19043 | .block_erase = spi_block_erase_dc, |
| 19044 | }, { |
| 19045 | .eraseblocks = { {64 * 1024, 1024} }, |
| 19046 | .block_erase = spi_block_erase_d8, |
| 19047 | }, { |
| 19048 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 19049 | .block_erase = spi_block_erase_60, |
| 19050 | }, { |
| 19051 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 19052 | .block_erase = spi_block_erase_c7, |
| 19053 | } |
| 19054 | }, |
| 19055 | .printlock = spi_prettyprint_status_register_plain, |
| 19056 | .unlock = spi_disable_blockprotect, |
| 19057 | .write = spi_chip_write_256, |
| 19058 | .read = spi_chip_read, |
| 19059 | .voltage = {2700, 3600}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 19060 | .prepare_access = spi_prepare_4ba, |
Joel Stanley | 5543961 | 2019-07-27 19:25:35 +0930 | [diff] [blame] | 19061 | }, |
| 19062 | |
| 19063 | { |
Felix Singer | 3c9bdb9 | 2022-12-15 23:30:16 +0100 | [diff] [blame] | 19064 | .vendor = "Winbond", |
| 19065 | .name = "W25Q512NW-IM", |
| 19066 | .bustype = BUS_SPI, |
| 19067 | .manufacture_id = WINBOND_NEX_ID, |
| 19068 | .model_id = WINBOND_NEX_W25Q512NW_IM, |
| 19069 | .total_size = 64 * 1024, |
| 19070 | .page_size = 256, |
Subrata Banik | f5bffd9 | 2022-12-14 12:30:43 +0530 | [diff] [blame] | 19071 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | FEATURE_WRSR2 |
| 19072 | | FEATURE_WRSR3, |
| 19073 | .tested = TEST_OK_PREWB, |
Felix Singer | 3c9bdb9 | 2022-12-15 23:30:16 +0100 | [diff] [blame] | 19074 | .probe = probe_spi_rdid, |
| 19075 | .probe_timing = TIMING_ZERO, |
| 19076 | .block_erasers = |
Atul Dhudase | 2502dbd | 2021-09-21 10:02:20 +0530 | [diff] [blame] | 19077 | { |
Felix Singer | 3c9bdb9 | 2022-12-15 23:30:16 +0100 | [diff] [blame] | 19078 | { |
| 19079 | .eraseblocks = { {4 * 1024, 16384} }, |
| 19080 | .block_erase = spi_block_erase_21, |
| 19081 | }, { |
| 19082 | .eraseblocks = { {4 * 1024, 16384} }, |
| 19083 | .block_erase = spi_block_erase_20, |
| 19084 | }, { |
| 19085 | .eraseblocks = { {32 * 1024, 2048} }, |
| 19086 | .block_erase = spi_block_erase_52, |
| 19087 | }, { |
| 19088 | .eraseblocks = { {64 * 1024, 1024} }, |
| 19089 | .block_erase = spi_block_erase_dc, |
| 19090 | }, { |
| 19091 | .eraseblocks = { {64 * 1024, 1024} }, |
| 19092 | .block_erase = spi_block_erase_d8, |
| 19093 | }, { |
| 19094 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 19095 | .block_erase = spi_block_erase_60, |
| 19096 | }, { |
| 19097 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 19098 | .block_erase = spi_block_erase_c7, |
| 19099 | } |
| 19100 | }, |
| 19101 | .unlock = spi_disable_blockprotect, |
| 19102 | .write = spi_chip_write_256, |
| 19103 | .read = spi_chip_read, |
| 19104 | .voltage = {1650, 1950}, |
Subrata Banik | f5bffd9 | 2022-12-14 12:30:43 +0530 | [diff] [blame] | 19105 | .reg_bits = |
| 19106 | { |
| 19107 | .srp = {STATUS1, 7, RW}, |
| 19108 | .srl = {STATUS2, 0, RW}, |
| 19109 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}}, |
| 19110 | .tb = {STATUS1, 6, RW}, |
| 19111 | .cmp = {STATUS2, 6, RW}, |
| 19112 | .wps = {STATUS3, 2, RW}, |
| 19113 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 19114 | .wp_write_cfg = spi_wp_write_cfg, |
| 19115 | .wp_read_cfg = spi_wp_read_cfg, |
| 19116 | .wp_get_ranges = spi_wp_get_available_ranges, |
Subrata Banik | f5bffd9 | 2022-12-14 12:30:43 +0530 | [diff] [blame] | 19117 | .decode_range = decode_range_spi25, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 19118 | .prepare_access = spi_prepare_4ba, |
Atul Dhudase | 2502dbd | 2021-09-21 10:02:20 +0530 | [diff] [blame] | 19119 | }, |
| 19120 | |
| 19121 | { |
Joel Stanley | 5543961 | 2019-07-27 19:25:35 +0930 | [diff] [blame] | 19122 | .vendor = "Winbond", |
Sergii Dmytruk | d1af307 | 2021-11-08 00:00:43 +0200 | [diff] [blame] | 19123 | .name = "W25Q64BV/W25Q64CV/W25Q64FV", |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 19124 | .bustype = BUS_SPI, |
| 19125 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19126 | .model_id = WINBOND_NEX_W25Q64_V, |
| 19127 | .total_size = 8192, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 19128 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19129 | /* supports SFDP */ |
| 19130 | /* 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] | 19131 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_WRSR2, |
Sergii Dmytruk | c74eac2 | 2022-10-06 18:17:58 +0300 | [diff] [blame] | 19132 | .tested = TEST_OK_PREWB, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 19133 | .probe = probe_spi_rdid, |
| 19134 | .probe_timing = TIMING_ZERO, |
| 19135 | .block_erasers = |
| 19136 | { |
| 19137 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19138 | .eraseblocks = { {4 * 1024, 2048} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 19139 | .block_erase = spi_block_erase_20, |
| 19140 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19141 | .eraseblocks = { {32 * 1024, 256} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 19142 | .block_erase = spi_block_erase_52, |
| 19143 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19144 | .eraseblocks = { {64 * 1024, 128} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 19145 | .block_erase = spi_block_erase_d8, |
| 19146 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19147 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 19148 | .block_erase = spi_block_erase_60, |
| 19149 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19150 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 19151 | .block_erase = spi_block_erase_c7, |
| 19152 | } |
| 19153 | }, |
| 19154 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19155 | .unlock = spi_disable_blockprotect, |
| 19156 | .write = spi_chip_write_256, |
| 19157 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19158 | .voltage = {2700, 3600}, |
Sergii Dmytruk | d1af307 | 2021-11-08 00:00:43 +0200 | [diff] [blame] | 19159 | .reg_bits = |
| 19160 | { |
| 19161 | .srp = {STATUS1, 7, RW}, |
| 19162 | .srl = {STATUS2, 0, RW}, |
| 19163 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 19164 | .tb = {STATUS1, 5, RW}, |
| 19165 | .sec = {STATUS1, 6, RW}, |
| 19166 | .cmp = {STATUS2, 6, RW}, |
| 19167 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 19168 | .wp_write_cfg = spi_wp_write_cfg, |
| 19169 | .wp_read_cfg = spi_wp_read_cfg, |
| 19170 | .wp_get_ranges = spi_wp_get_available_ranges, |
Sergii Dmytruk | d1af307 | 2021-11-08 00:00:43 +0200 | [diff] [blame] | 19171 | .decode_range = decode_range_spi25, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 19172 | }, |
| 19173 | |
| 19174 | { |
| 19175 | .vendor = "Winbond", |
Sergii Dmytruk | d1af307 | 2021-11-08 00:00:43 +0200 | [diff] [blame] | 19176 | .name = "W25Q64JV-.Q", |
| 19177 | .bustype = BUS_SPI, |
| 19178 | .manufacture_id = WINBOND_NEX_ID, |
| 19179 | .model_id = WINBOND_NEX_W25Q64_V, |
| 19180 | .total_size = 8192, |
| 19181 | .page_size = 256, |
| 19182 | /* supports SFDP */ |
| 19183 | /* 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] | 19184 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 19185 | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3, |
Sergii Dmytruk | d1af307 | 2021-11-08 00:00:43 +0200 | [diff] [blame] | 19186 | .tested = TEST_OK_PREW, |
| 19187 | .probe = probe_spi_rdid, |
| 19188 | .probe_timing = TIMING_ZERO, |
| 19189 | .block_erasers = |
| 19190 | { |
| 19191 | { |
| 19192 | .eraseblocks = { {4 * 1024, 2048} }, |
| 19193 | .block_erase = spi_block_erase_20, |
| 19194 | }, { |
| 19195 | .eraseblocks = { {32 * 1024, 256} }, |
| 19196 | .block_erase = spi_block_erase_52, |
| 19197 | }, { |
| 19198 | .eraseblocks = { {64 * 1024, 128} }, |
| 19199 | .block_erase = spi_block_erase_d8, |
| 19200 | }, { |
| 19201 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 19202 | .block_erase = spi_block_erase_60, |
| 19203 | }, { |
| 19204 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 19205 | .block_erase = spi_block_erase_c7, |
| 19206 | } |
| 19207 | }, |
| 19208 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19209 | .unlock = spi_disable_blockprotect, |
| 19210 | .write = spi_chip_write_256, |
| 19211 | .read = spi_chip_read, |
| 19212 | .voltage = {2700, 3600}, |
| 19213 | .reg_bits = |
| 19214 | { |
| 19215 | .srp = {STATUS1, 7, RW}, |
| 19216 | .srl = {STATUS2, 0, RW}, |
| 19217 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 19218 | .tb = {STATUS1, 5, RW}, |
| 19219 | .sec = {STATUS1, 6, RW}, |
| 19220 | .cmp = {STATUS2, 6, RW}, |
| 19221 | .wps = {STATUS3, 2, RW}, |
| 19222 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 19223 | .wp_write_cfg = spi_wp_write_cfg, |
| 19224 | .wp_read_cfg = spi_wp_read_cfg, |
| 19225 | .wp_get_ranges = spi_wp_get_available_ranges, |
Sergii Dmytruk | d1af307 | 2021-11-08 00:00:43 +0200 | [diff] [blame] | 19226 | .decode_range = decode_range_spi25, |
| 19227 | }, |
| 19228 | |
| 19229 | { |
| 19230 | .vendor = "Winbond", |
| 19231 | .name = "W25Q64JV-.M", |
Simon Buhrow | 236a38c | 2021-11-05 11:48:30 +0100 | [diff] [blame] | 19232 | .bustype = BUS_SPI, |
| 19233 | .manufacture_id = WINBOND_NEX_ID, |
| 19234 | .model_id = WINBOND_NEX_W25Q64JV, |
| 19235 | .total_size = 8192, |
| 19236 | .page_size = 256, |
| 19237 | /* supports SFDP */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 19238 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP, |
| 19239 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
Simon Buhrow | 236a38c | 2021-11-05 11:48:30 +0100 | [diff] [blame] | 19240 | .tested = TEST_OK_PREW, |
| 19241 | .probe = probe_spi_rdid, |
| 19242 | .probe_timing = TIMING_ZERO, |
| 19243 | .block_erasers = |
| 19244 | { |
| 19245 | { |
| 19246 | .eraseblocks = { {4 * 1024, 2048} }, |
| 19247 | .block_erase = spi_block_erase_20, |
| 19248 | }, { |
| 19249 | .eraseblocks = { {32 * 1024, 256} }, |
| 19250 | .block_erase = spi_block_erase_52, |
| 19251 | }, { |
| 19252 | .eraseblocks = { {64 * 1024, 128} }, |
| 19253 | .block_erase = spi_block_erase_d8, |
| 19254 | }, { |
| 19255 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 19256 | .block_erase = spi_block_erase_60, |
| 19257 | }, { |
| 19258 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 19259 | .block_erase = spi_block_erase_c7, |
| 19260 | } |
| 19261 | }, |
| 19262 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 19263 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 19264 | .write = spi_chip_write_256, |
| 19265 | .read = spi_chip_read, |
| 19266 | .voltage = {2700, 3600}, |
| 19267 | }, |
| 19268 | |
| 19269 | { |
| 19270 | .vendor = "Winbond", |
Nico Huber | a358b14 | 2024-04-14 18:29:06 +0200 | [diff] [blame] | 19271 | .name = "W25Q64DW", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 19272 | .bustype = BUS_SPI, |
| 19273 | .manufacture_id = WINBOND_NEX_ID, |
| 19274 | .model_id = WINBOND_NEX_W25Q64_W, |
| 19275 | .total_size = 8192, |
| 19276 | .page_size = 256, |
| 19277 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 19278 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QPI_SRP, |
| 19279 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
Nico Huber | a358b14 | 2024-04-14 18:29:06 +0200 | [diff] [blame] | 19280 | .tested = TEST_OK_PREW, |
| 19281 | .probe = probe_spi_rdid, |
| 19282 | .probe_timing = TIMING_ZERO, |
| 19283 | .block_erasers = |
| 19284 | { |
| 19285 | { |
| 19286 | .eraseblocks = { {4 * 1024, 2048} }, |
| 19287 | .block_erase = spi_block_erase_20, |
| 19288 | }, { |
| 19289 | .eraseblocks = { {32 * 1024, 256} }, |
| 19290 | .block_erase = spi_block_erase_52, |
| 19291 | }, { |
| 19292 | .eraseblocks = { {64 * 1024, 128} }, |
| 19293 | .block_erase = spi_block_erase_d8, |
| 19294 | }, { |
| 19295 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 19296 | .block_erase = spi_block_erase_60, |
| 19297 | }, { |
| 19298 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 19299 | .block_erase = spi_block_erase_c7, |
| 19300 | } |
| 19301 | }, |
| 19302 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19303 | .unlock = spi_disable_blockprotect, |
| 19304 | .write = spi_chip_write_256, |
| 19305 | .read = spi_chip_read, |
| 19306 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 19307 | .reg_bits = |
| 19308 | { |
| 19309 | .srp = {STATUS1, 7, RW}, |
| 19310 | .srl = {STATUS2, 0, RW}, |
| 19311 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 19312 | .tb = {STATUS1, 5, RW}, |
| 19313 | .sec = {STATUS1, 6, RW}, |
| 19314 | .cmp = {STATUS2, 6, RW}, |
| 19315 | }, |
| 19316 | .wp_write_cfg = spi_wp_write_cfg, |
| 19317 | .wp_read_cfg = spi_wp_read_cfg, |
| 19318 | .wp_get_ranges = spi_wp_get_available_ranges, |
| 19319 | .decode_range = decode_range_spi25, |
| 19320 | }, |
| 19321 | |
| 19322 | { |
| 19323 | .vendor = "Winbond", |
| 19324 | .name = "W25Q64FW/W25Q64JW...Q", |
| 19325 | .bustype = BUS_SPI, |
| 19326 | .manufacture_id = WINBOND_NEX_ID, |
| 19327 | .model_id = WINBOND_NEX_W25Q64_W, |
| 19328 | .total_size = 8192, |
| 19329 | .page_size = 256, |
| 19330 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 19331 | /* FEATURE_QPI_SRP (2, 4, 6, 8): only FW version */ |
Nico Huber | a358b14 | 2024-04-14 18:29:06 +0200 | [diff] [blame] | 19332 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_WRSR3 | |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 19333 | FEATURE_OTP | FEATURE_QIO, |
Sergii Dmytruk | c74eac2 | 2022-10-06 18:17:58 +0300 | [diff] [blame] | 19334 | .tested = TEST_OK_PREWB, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 19335 | .probe = probe_spi_rdid, |
| 19336 | .probe_timing = TIMING_ZERO, |
| 19337 | .block_erasers = |
| 19338 | { |
| 19339 | { |
| 19340 | .eraseblocks = { {4 * 1024, 2048} }, |
| 19341 | .block_erase = spi_block_erase_20, |
| 19342 | }, { |
| 19343 | .eraseblocks = { {32 * 1024, 256} }, |
| 19344 | .block_erase = spi_block_erase_52, |
| 19345 | }, { |
| 19346 | .eraseblocks = { {64 * 1024, 128} }, |
| 19347 | .block_erase = spi_block_erase_d8, |
| 19348 | }, { |
| 19349 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 19350 | .block_erase = spi_block_erase_60, |
| 19351 | }, { |
| 19352 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 19353 | .block_erase = spi_block_erase_c7, |
| 19354 | } |
| 19355 | }, |
| 19356 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19357 | .unlock = spi_disable_blockprotect, |
| 19358 | .write = spi_chip_write_256, |
| 19359 | .read = spi_chip_read, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 19360 | .voltage = {1700, 1950}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 19361 | .reg_bits = |
| 19362 | { |
| 19363 | .srp = {STATUS1, 7, RW}, |
| 19364 | .srl = {STATUS2, 0, RW}, |
| 19365 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 19366 | .tb = {STATUS1, 5, RW}, |
| 19367 | .sec = {STATUS1, 6, RW}, |
| 19368 | .cmp = {STATUS2, 6, RW}, |
| 19369 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 19370 | .wp_write_cfg = spi_wp_write_cfg, |
| 19371 | .wp_read_cfg = spi_wp_read_cfg, |
| 19372 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 19373 | .decode_range = decode_range_spi25, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 19374 | }, |
| 19375 | |
| 19376 | { |
| 19377 | .vendor = "Winbond", |
Nikolai Artemiev | 5fa0505 | 2021-05-14 15:26:47 +1000 | [diff] [blame] | 19378 | .name = "W25Q64JW...M", |
Scott Chao | 1bbc501 | 2020-04-08 22:10:50 +0800 | [diff] [blame] | 19379 | .bustype = BUS_SPI, |
| 19380 | .manufacture_id = WINBOND_NEX_ID, |
Nikolai Artemiev | 5fa0505 | 2021-05-14 15:26:47 +1000 | [diff] [blame] | 19381 | .model_id = WINBOND_NEX_W25Q64JW_M, |
Scott Chao | 1bbc501 | 2020-04-08 22:10:50 +0800 | [diff] [blame] | 19382 | .total_size = 8192, |
| 19383 | .page_size = 256, |
| 19384 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 19385 | /* QPI enable 0x38, disable 0xFF */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 19386 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_WRSR3 | |
| 19387 | FEATURE_OTP | FEATURE_QPI_SRP, |
| 19388 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
Scott Chao | 1bbc501 | 2020-04-08 22:10:50 +0800 | [diff] [blame] | 19389 | .tested = TEST_OK_PREW, |
| 19390 | .probe = probe_spi_rdid, |
| 19391 | .probe_timing = TIMING_ZERO, |
| 19392 | .block_erasers = |
| 19393 | { |
| 19394 | { |
| 19395 | .eraseblocks = { {4 * 1024, 2048} }, |
| 19396 | .block_erase = spi_block_erase_20, |
| 19397 | }, { |
| 19398 | .eraseblocks = { {32 * 1024, 256} }, |
| 19399 | .block_erase = spi_block_erase_52, |
| 19400 | }, { |
| 19401 | .eraseblocks = { {64 * 1024, 128} }, |
| 19402 | .block_erase = spi_block_erase_d8, |
| 19403 | }, { |
| 19404 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 19405 | .block_erase = spi_block_erase_60, |
| 19406 | }, { |
| 19407 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 19408 | .block_erase = spi_block_erase_c7, |
| 19409 | } |
| 19410 | }, |
| 19411 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19412 | .unlock = spi_disable_blockprotect, |
| 19413 | .write = spi_chip_write_256, |
| 19414 | .read = spi_chip_read, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 19415 | .voltage = {1700, 1950}, |
Evan Benn | 29c8b5d | 2022-09-13 16:01:10 +1000 | [diff] [blame] | 19416 | .reg_bits = |
| 19417 | { |
| 19418 | .srp = {STATUS1, 7, RW}, |
| 19419 | .srl = {STATUS2, 0, RW}, |
| 19420 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 19421 | .tb = {STATUS1, 5, RW}, |
| 19422 | .sec = {STATUS1, 6, RW}, |
| 19423 | .cmp = {STATUS2, 6, RW}, |
| 19424 | .wps = {STATUS3, 2, RW}, |
| 19425 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 19426 | .wp_write_cfg = spi_wp_write_cfg, |
| 19427 | .wp_read_cfg = spi_wp_read_cfg, |
| 19428 | .wp_get_ranges = spi_wp_get_available_ranges, |
Evan Benn | 29c8b5d | 2022-09-13 16:01:10 +1000 | [diff] [blame] | 19429 | .decode_range = decode_range_spi25, |
Scott Chao | 1bbc501 | 2020-04-08 22:10:50 +0800 | [diff] [blame] | 19430 | }, |
| 19431 | |
| 19432 | { |
| 19433 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19434 | .name = "W25Q80.V", |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 19435 | .bustype = BUS_SPI, |
| 19436 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19437 | .model_id = WINBOND_NEX_W25Q80_V, |
| 19438 | .total_size = 1024, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 19439 | .page_size = 256, |
| 19440 | /* supports SFDP */ |
| 19441 | /* 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] | 19442 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 48729d3 | 2017-12-08 14:44:07 -0800 | [diff] [blame] | 19443 | .tested = TEST_OK_PREW, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 19444 | .probe = probe_spi_rdid, |
| 19445 | .probe_timing = TIMING_ZERO, |
| 19446 | .block_erasers = |
| 19447 | { |
| 19448 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19449 | .eraseblocks = { {4 * 1024, 256} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 19450 | .block_erase = spi_block_erase_20, |
| 19451 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19452 | .eraseblocks = { {32 * 1024, 32} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 19453 | .block_erase = spi_block_erase_52, |
| 19454 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19455 | .eraseblocks = { {64 * 1024, 16} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 19456 | .block_erase = spi_block_erase_d8, |
| 19457 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19458 | .eraseblocks = { {1024 * 1024, 1} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 19459 | .block_erase = spi_block_erase_60, |
| 19460 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19461 | .eraseblocks = { {1024 * 1024, 1} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 19462 | .block_erase = spi_block_erase_c7, |
| 19463 | } |
| 19464 | }, |
| 19465 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19466 | .unlock = spi_disable_blockprotect, |
| 19467 | .write = spi_chip_write_256, |
| 19468 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19469 | .voltage = {2700, 3600}, |
| 19470 | }, |
| 19471 | |
| 19472 | { |
| 19473 | .vendor = "Winbond", |
| 19474 | .name = "W25Q80BW", |
| 19475 | .bustype = BUS_SPI, |
| 19476 | .manufacture_id = WINBOND_NEX_ID, |
| 19477 | .model_id = WINBOND_NEX_W25Q80BW, |
| 19478 | .total_size = 1024, |
| 19479 | .page_size = 256, |
| 19480 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 19481 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 19482 | .tested = TEST_OK_PREW, |
| 19483 | .probe = probe_spi_rdid, |
| 19484 | .probe_timing = TIMING_ZERO, |
| 19485 | .block_erasers = |
| 19486 | { |
| 19487 | { |
| 19488 | .eraseblocks = { {4 * 1024, 256} }, |
| 19489 | .block_erase = spi_block_erase_20, |
| 19490 | }, { |
| 19491 | .eraseblocks = { {32 * 1024, 32} }, |
| 19492 | .block_erase = spi_block_erase_52, |
| 19493 | }, { |
| 19494 | .eraseblocks = { {64 * 1024, 16} }, |
| 19495 | .block_erase = spi_block_erase_d8, |
| 19496 | }, { |
| 19497 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 19498 | .block_erase = spi_block_erase_60, |
| 19499 | }, { |
| 19500 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 19501 | .block_erase = spi_block_erase_c7, |
| 19502 | } |
| 19503 | }, |
| 19504 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19505 | .unlock = spi_disable_blockprotect, |
| 19506 | .write = spi_chip_write_256, |
| 19507 | .read = spi_chip_read, |
| 19508 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 19509 | }, |
| 19510 | |
| 19511 | { |
| 19512 | .vendor = "Winbond", |
| 19513 | .name = "W25Q80EW", |
| 19514 | .bustype = BUS_SPI, |
| 19515 | .manufacture_id = WINBOND_NEX_ID, |
| 19516 | .model_id = WINBOND_NEX_W25Q80EW, |
| 19517 | .total_size = 1024, |
| 19518 | .page_size = 256, |
| 19519 | /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 19520 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 19521 | .tested = TEST_OK_PREW, |
| 19522 | .probe = probe_spi_rdid, |
| 19523 | .probe_timing = TIMING_ZERO, |
| 19524 | .block_erasers = |
| 19525 | { |
| 19526 | { |
| 19527 | .eraseblocks = { {4 * 1024, 256} }, |
| 19528 | .block_erase = spi_block_erase_20, |
| 19529 | }, { |
| 19530 | .eraseblocks = { {32 * 1024, 32} }, |
| 19531 | .block_erase = spi_block_erase_52, |
| 19532 | }, { |
| 19533 | .eraseblocks = { {64 * 1024, 16} }, |
| 19534 | .block_erase = spi_block_erase_d8, |
| 19535 | }, { |
| 19536 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 19537 | .block_erase = spi_block_erase_60, |
| 19538 | }, { |
| 19539 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 19540 | .block_erase = spi_block_erase_c7, |
| 19541 | } |
| 19542 | }, |
| 19543 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19544 | .unlock = spi_disable_blockprotect, |
| 19545 | .write = spi_chip_write_256, |
| 19546 | .read = spi_chip_read, |
| 19547 | .voltage = {1650, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 19548 | }, |
| 19549 | |
| 19550 | { |
| 19551 | .vendor = "Winbond", |
Jacob Appelbaum | ebbdc02 | 2019-09-02 09:10:43 -0400 | [diff] [blame] | 19552 | .name = "W25X05", |
| 19553 | .bustype = BUS_SPI, |
| 19554 | .manufacture_id = WINBOND_NEX_ID, |
| 19555 | .model_id = WINBOND_NEX_W25X05, |
| 19556 | .total_size = 64, |
| 19557 | .page_size = 256, |
| 19558 | .feature_bits = FEATURE_WRSR_WREN, |
| 19559 | .tested = TEST_OK_PREW, |
| 19560 | .probe = probe_spi_rdid, |
| 19561 | .probe_timing = TIMING_ZERO, |
| 19562 | .block_erasers = |
| 19563 | { |
| 19564 | { |
| 19565 | .eraseblocks = { {4 * 1024, 16} }, |
| 19566 | .block_erase = spi_block_erase_20, |
| 19567 | }, { |
| 19568 | .eraseblocks = { {32 * 1024, 2} }, |
| 19569 | .block_erase = spi_block_erase_52, |
| 19570 | }, { |
| 19571 | .eraseblocks = { {64 * 1024, 1} }, |
| 19572 | .block_erase = spi_block_erase_d8, |
| 19573 | } |
| 19574 | }, |
| 19575 | .printlock = spi_prettyprint_status_register_plain, |
| 19576 | .unlock = spi_disable_blockprotect, |
| 19577 | .write = spi_chip_write_256, |
| 19578 | .read = spi_chip_read, |
| 19579 | .voltage = {2300, 3600}, |
| 19580 | }, |
| 19581 | |
| 19582 | { |
| 19583 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 19584 | .name = "W25X10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19585 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19586 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19587 | .model_id = WINBOND_NEX_W25X10, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19588 | .total_size = 128, |
| 19589 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 19590 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 19591 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19592 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 19593 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 19594 | .block_erasers = |
| 19595 | { |
| 19596 | { |
| 19597 | .eraseblocks = { {4 * 1024, 32} }, |
| 19598 | .block_erase = spi_block_erase_20, |
| 19599 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 19600 | .eraseblocks = { {64 * 1024, 2} }, |
| 19601 | .block_erase = spi_block_erase_d8, |
| 19602 | }, { |
| 19603 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 19604 | .block_erase = spi_block_erase_c7, |
| 19605 | } |
| 19606 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 19607 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 19608 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 19609 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19610 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 19611 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 19612 | }, |
| 19613 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19614 | { |
| 19615 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 19616 | .name = "W25X16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19617 | .bustype = BUS_SPI, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 19618 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19619 | .model_id = WINBOND_NEX_W25X16, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 19620 | .total_size = 2048, |
| 19621 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 19622 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 19623 | .tested = TEST_OK_PREW, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 19624 | .probe = probe_spi_rdid, |
| 19625 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 19626 | .block_erasers = |
| 19627 | { |
| 19628 | { |
| 19629 | .eraseblocks = { {4 * 1024, 512} }, |
| 19630 | .block_erase = spi_block_erase_20, |
| 19631 | }, { |
| 19632 | .eraseblocks = { {32 * 1024, 64} }, |
| 19633 | .block_erase = spi_block_erase_52, |
| 19634 | }, { |
| 19635 | .eraseblocks = { {64 * 1024, 32} }, |
| 19636 | .block_erase = spi_block_erase_d8, |
| 19637 | }, { |
| 19638 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 19639 | .block_erase = spi_block_erase_60, |
| 19640 | }, { |
| 19641 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 19642 | .block_erase = spi_block_erase_c7, |
| 19643 | } |
| 19644 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 19645 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 19646 | .unlock = spi_disable_blockprotect, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 19647 | .write = spi_chip_write_256, |
| 19648 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 19649 | .voltage = {2700, 3600}, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 19650 | }, |
| 19651 | |
| 19652 | { |
| 19653 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19654 | .name = "W25X20", |
| 19655 | .bustype = BUS_SPI, |
| 19656 | .manufacture_id = WINBOND_NEX_ID, |
| 19657 | .model_id = WINBOND_NEX_W25X20, |
| 19658 | .total_size = 256, |
| 19659 | .page_size = 256, |
| 19660 | .feature_bits = FEATURE_WRSR_WREN, |
| 19661 | .tested = TEST_OK_PREW, |
| 19662 | .probe = probe_spi_rdid, |
| 19663 | .probe_timing = TIMING_ZERO, |
| 19664 | .block_erasers = |
| 19665 | { |
| 19666 | { |
| 19667 | .eraseblocks = { {4 * 1024, 64} }, |
| 19668 | .block_erase = spi_block_erase_20, |
| 19669 | }, { |
| 19670 | .eraseblocks = { {64 * 1024, 4} }, |
| 19671 | .block_erase = spi_block_erase_d8, |
| 19672 | }, { |
| 19673 | .eraseblocks = { {256 * 1024, 1} }, |
| 19674 | .block_erase = spi_block_erase_c7, |
| 19675 | } |
| 19676 | }, |
| 19677 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19678 | .unlock = spi_disable_blockprotect, |
| 19679 | .write = spi_chip_write_256, |
| 19680 | .read = spi_chip_read, |
| 19681 | .voltage = {2700, 3600}, |
| 19682 | }, |
| 19683 | |
| 19684 | { |
| 19685 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 19686 | .name = "W25X32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19687 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 19688 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19689 | .model_id = WINBOND_NEX_W25X32, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 19690 | .total_size = 4096, |
| 19691 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 19692 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 19693 | .tested = TEST_OK_PREW, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 19694 | .probe = probe_spi_rdid, |
| 19695 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 19696 | .block_erasers = |
| 19697 | { |
| 19698 | { |
| 19699 | .eraseblocks = { {4 * 1024, 1024} }, |
| 19700 | .block_erase = spi_block_erase_20, |
| 19701 | }, { |
| 19702 | .eraseblocks = { {32 * 1024, 128} }, |
| 19703 | .block_erase = spi_block_erase_52, |
| 19704 | }, { |
| 19705 | .eraseblocks = { {64 * 1024, 64} }, |
| 19706 | .block_erase = spi_block_erase_d8, |
| 19707 | }, { |
| 19708 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 19709 | .block_erase = spi_block_erase_60, |
| 19710 | }, { |
| 19711 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 19712 | .block_erase = spi_block_erase_c7, |
| 19713 | } |
| 19714 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 19715 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 19716 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 19717 | .write = spi_chip_write_256, |
| 19718 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 19719 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 19720 | }, |
| 19721 | |
| 19722 | { |
| 19723 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19724 | .name = "W25X40", |
| 19725 | .bustype = BUS_SPI, |
| 19726 | .manufacture_id = WINBOND_NEX_ID, |
| 19727 | .model_id = WINBOND_NEX_W25X40, |
| 19728 | .total_size = 512, |
| 19729 | .page_size = 256, |
| 19730 | .feature_bits = FEATURE_WRSR_WREN, |
| 19731 | .tested = TEST_OK_PREW, |
| 19732 | .probe = probe_spi_rdid, |
| 19733 | .probe_timing = TIMING_ZERO, |
| 19734 | .block_erasers = |
| 19735 | { |
| 19736 | { |
| 19737 | .eraseblocks = { {4 * 1024, 128} }, |
| 19738 | .block_erase = spi_block_erase_20, |
| 19739 | }, { |
| 19740 | .eraseblocks = { {64 * 1024, 8} }, |
| 19741 | .block_erase = spi_block_erase_d8, |
| 19742 | }, { |
| 19743 | .eraseblocks = { {512 * 1024, 1} }, |
| 19744 | .block_erase = spi_block_erase_c7, |
| 19745 | } |
| 19746 | }, |
| 19747 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19748 | .unlock = spi_disable_blockprotect, |
| 19749 | .write = spi_chip_write_256, |
| 19750 | .read = spi_chip_read, |
| 19751 | .voltage = {2700, 3600}, |
| 19752 | }, |
| 19753 | |
| 19754 | { |
| 19755 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 19756 | .name = "W25X64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19757 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 19758 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19759 | .model_id = WINBOND_NEX_W25X64, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 19760 | .total_size = 8192, |
| 19761 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 19762 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 19763 | .tested = TEST_OK_PREW, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 19764 | .probe = probe_spi_rdid, |
| 19765 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 19766 | .block_erasers = |
| 19767 | { |
| 19768 | { |
| 19769 | .eraseblocks = { {4 * 1024, 2048} }, |
| 19770 | .block_erase = spi_block_erase_20, |
| 19771 | }, { |
| 19772 | .eraseblocks = { {32 * 1024, 256} }, |
| 19773 | .block_erase = spi_block_erase_52, |
| 19774 | }, { |
| 19775 | .eraseblocks = { {64 * 1024, 128} }, |
| 19776 | .block_erase = spi_block_erase_d8, |
| 19777 | }, { |
| 19778 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 19779 | .block_erase = spi_block_erase_60, |
| 19780 | }, { |
| 19781 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 19782 | .block_erase = spi_block_erase_c7, |
| 19783 | } |
| 19784 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 19785 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 19786 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 19787 | .write = spi_chip_write_256, |
| 19788 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 19789 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 19790 | }, |
| 19791 | |
| 19792 | { |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 19793 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19794 | .name = "W25X80", |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 19795 | .bustype = BUS_SPI, |
| 19796 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19797 | .model_id = WINBOND_NEX_W25X80, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 19798 | .total_size = 1024, |
| 19799 | .page_size = 256, |
| 19800 | .feature_bits = FEATURE_WRSR_WREN, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19801 | .tested = TEST_OK_PREW, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 19802 | .probe = probe_spi_rdid, |
| 19803 | .probe_timing = TIMING_ZERO, |
| 19804 | .block_erasers = |
David Hendricks | c9ee0ed | 2018-02-11 17:40:53 -0800 | [diff] [blame] | 19805 | { |
| 19806 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19807 | .eraseblocks = { {4 * 1024, 256} }, |
| 19808 | .block_erase = spi_block_erase_20, |
| 19809 | }, { |
David Hendricks | c9ee0ed | 2018-02-11 17:40:53 -0800 | [diff] [blame] | 19810 | .eraseblocks = { {64 * 1024, 16} }, |
| 19811 | .block_erase = spi_block_erase_d8, |
| 19812 | }, { |
| 19813 | .eraseblocks = { {1024 * 1024, 1} }, |
| 19814 | .block_erase = spi_block_erase_c7, |
| 19815 | } |
| 19816 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 19817 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19818 | .unlock = spi_disable_blockprotect, |
| 19819 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19820 | .read = spi_chip_read, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 19821 | .voltage = {2700, 3600}, |
David Hendricks | c9ee0ed | 2018-02-11 17:40:53 -0800 | [diff] [blame] | 19822 | }, |
| 19823 | |
Alan Green | f29ea36 | 2019-06-27 17:14:02 +1000 | [diff] [blame] | 19824 | /* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */ |
| 19825 | { |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 19826 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19827 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19828 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19829 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19830 | .model_id = WINBOND_W29C010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19831 | .total_size = 128, |
| 19832 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 19833 | .feature_bits = FEATURE_LONG_RESET, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 19834 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19835 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 19836 | .probe_timing = 10, /* used datasheet for the W29C011A */ |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 19837 | .block_erasers = |
| 19838 | { |
| 19839 | { |
| 19840 | .eraseblocks = { {128 * 1024, 1} }, |
| 19841 | .block_erase = erase_chip_block_jedec, |
| 19842 | } |
| 19843 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19844 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 19845 | .read = read_memmapped, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 19846 | .prepare_access = prepare_memory_access, |
| 19847 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 19848 | }, |
| 19849 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19850 | { |
| 19851 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19852 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old", |
| 19853 | .bustype = BUS_PARALLEL, |
| 19854 | .manufacture_id = WINBOND_ID, |
| 19855 | .model_id = WINBOND_W29C010, |
| 19856 | .total_size = 128, |
| 19857 | .page_size = 128, |
| 19858 | .feature_bits = FEATURE_LONG_RESET, |
| 19859 | .tested = TEST_OK_PREW, |
| 19860 | .probe = probe_w29ee011, |
| 19861 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */ |
| 19862 | .block_erasers = |
| 19863 | { |
| 19864 | { |
| 19865 | .eraseblocks = { {128 * 1024, 1} }, |
| 19866 | .block_erase = erase_chip_block_jedec, |
| 19867 | } |
| 19868 | }, |
| 19869 | .write = write_jedec, |
| 19870 | .read = read_memmapped, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 19871 | .prepare_access = prepare_memory_access, |
| 19872 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19873 | }, |
| 19874 | |
| 19875 | { |
| 19876 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19877 | .name = "W29C020(C)/W29C022", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19878 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19879 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19880 | .model_id = WINBOND_W29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19881 | .total_size = 256, |
| 19882 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 19883 | .feature_bits = FEATURE_LONG_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 19884 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19885 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 19886 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 19887 | .block_erasers = |
| 19888 | { |
| 19889 | { |
| 19890 | .eraseblocks = { {256 * 1024, 1} }, |
| 19891 | .block_erase = erase_chip_block_jedec, |
| 19892 | } |
| 19893 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19894 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 19895 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 19896 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 19897 | .prepare_access = prepare_memory_access, |
| 19898 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 19899 | }, |
| 19900 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19901 | { |
| 19902 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19903 | .name = "W29C040/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 19904 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19905 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 19906 | .model_id = WINBOND_W29C040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19907 | .total_size = 512, |
| 19908 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 19909 | .feature_bits = FEATURE_LONG_RESET, |
| 19910 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19911 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 19912 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 19913 | .block_erasers = |
| 19914 | { |
| 19915 | { |
| 19916 | .eraseblocks = { {512 * 1024, 1} }, |
| 19917 | .block_erase = erase_chip_block_jedec, |
| 19918 | } |
| 19919 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19920 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 19921 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 19922 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 19923 | .prepare_access = prepare_memory_access, |
| 19924 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 19925 | }, |
| 19926 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 19927 | { |
| 19928 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19929 | .name = "W29C512A/W29EE512", |
| 19930 | .bustype = BUS_PARALLEL, |
| 19931 | .manufacture_id = WINBOND_ID, |
| 19932 | .model_id = WINBOND_W29C512A, |
| 19933 | .total_size = 64, |
| 19934 | .page_size = 128, |
| 19935 | .feature_bits = FEATURE_LONG_RESET, |
| 19936 | .tested = TEST_OK_PREW, |
| 19937 | .probe = probe_jedec, |
| 19938 | .probe_timing = 10, |
| 19939 | .block_erasers = |
| 19940 | { |
| 19941 | { |
| 19942 | .eraseblocks = { {64 * 1024, 1} }, |
| 19943 | .block_erase = erase_chip_block_jedec, |
| 19944 | } |
| 19945 | }, |
| 19946 | .write = write_jedec, |
| 19947 | .read = read_memmapped, |
| 19948 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 19949 | .prepare_access = prepare_memory_access, |
| 19950 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19951 | }, |
| 19952 | |
| 19953 | { |
| 19954 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 19955 | .name = "W29GL032CB", |
| 19956 | .bustype = BUS_PARALLEL, |
| 19957 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 19958 | .model_id = WINBOND_W29GL032CB, |
| 19959 | .total_size = 4096, |
| 19960 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 19961 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 19962 | .tested = TEST_UNTESTED, |
| 19963 | .probe = probe_jedec_29gl, |
| 19964 | .probe_timing = TIMING_ZERO, |
| 19965 | .block_erasers = |
| 19966 | { |
| 19967 | { |
| 19968 | .eraseblocks = { |
| 19969 | {8 * 1024, 8}, |
| 19970 | {64 * 1024, 63}, |
| 19971 | }, |
| 19972 | .block_erase = erase_sector_jedec, |
| 19973 | }, { |
| 19974 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 19975 | .block_erase = erase_chip_block_jedec, |
| 19976 | }, |
| 19977 | }, |
| 19978 | .write = write_jedec_1, |
| 19979 | .read = read_memmapped, |
| 19980 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 19981 | .prepare_access = prepare_memory_access, |
| 19982 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 19983 | }, |
| 19984 | |
| 19985 | { |
| 19986 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19987 | .name = "W29GL032CH/L", |
| 19988 | .bustype = BUS_PARALLEL, |
| 19989 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 19990 | .model_id = WINBOND_W29GL032CHL, |
| 19991 | .total_size = 4096, |
| 19992 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 19993 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 19994 | .tested = TEST_UNTESTED, |
| 19995 | .probe = probe_jedec_29gl, |
| 19996 | .probe_timing = TIMING_ZERO, |
| 19997 | .block_erasers = |
| 19998 | { |
| 19999 | { |
| 20000 | .eraseblocks = { {64 * 1024, 64} }, |
| 20001 | .block_erase = erase_sector_jedec, |
| 20002 | }, { |
| 20003 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 20004 | .block_erase = erase_chip_block_jedec, |
| 20005 | }, |
| 20006 | }, |
| 20007 | .write = write_jedec_1, |
| 20008 | .read = read_memmapped, |
| 20009 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20010 | .prepare_access = prepare_memory_access, |
| 20011 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 20012 | }, |
| 20013 | |
| 20014 | { |
| 20015 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 20016 | .name = "W29GL032CT", |
| 20017 | .bustype = BUS_PARALLEL, |
| 20018 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 20019 | .model_id = WINBOND_W29GL032CT, |
| 20020 | .total_size = 4096, |
| 20021 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 20022 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 20023 | .tested = TEST_UNTESTED, |
| 20024 | .probe = probe_jedec_29gl, |
| 20025 | .probe_timing = TIMING_ZERO, |
| 20026 | .block_erasers = |
| 20027 | { |
| 20028 | { |
| 20029 | .eraseblocks = { |
| 20030 | {64 * 1024, 63}, |
| 20031 | {8 * 1024, 8}, |
| 20032 | }, |
| 20033 | .block_erase = erase_sector_jedec, |
| 20034 | }, { |
| 20035 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 20036 | .block_erase = erase_chip_block_jedec, |
| 20037 | }, |
| 20038 | }, |
| 20039 | .write = write_jedec_1, |
| 20040 | .read = read_memmapped, |
| 20041 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20042 | .prepare_access = prepare_memory_access, |
| 20043 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 20044 | }, |
| 20045 | |
| 20046 | { |
| 20047 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 20048 | .name = "W29GL064CB", |
| 20049 | .bustype = BUS_PARALLEL, |
| 20050 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 20051 | .model_id = WINBOND_W29GL064CB, |
| 20052 | .total_size = 8192, |
| 20053 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 20054 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 20055 | .tested = TEST_UNTESTED, |
| 20056 | .probe = probe_jedec_29gl, |
| 20057 | .probe_timing = TIMING_ZERO, |
| 20058 | .block_erasers = |
| 20059 | { |
| 20060 | { |
| 20061 | .eraseblocks = { |
| 20062 | {8 * 1024, 8}, |
| 20063 | {64 * 1024, 127}, |
| 20064 | }, |
| 20065 | .block_erase = erase_sector_jedec, |
| 20066 | }, { |
| 20067 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 20068 | .block_erase = erase_chip_block_jedec, |
| 20069 | }, |
| 20070 | }, |
| 20071 | .write = write_jedec_1, |
| 20072 | .read = read_memmapped, |
| 20073 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20074 | .prepare_access = prepare_memory_access, |
| 20075 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 20076 | }, |
| 20077 | |
| 20078 | { |
| 20079 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 20080 | .name = "W29GL064CH/L", |
| 20081 | .bustype = BUS_PARALLEL, |
| 20082 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 20083 | .model_id = WINBOND_W29GL064CHL, |
| 20084 | .total_size = 8192, |
| 20085 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 20086 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 20087 | .tested = TEST_UNTESTED, |
| 20088 | .probe = probe_jedec_29gl, |
| 20089 | .probe_timing = TIMING_ZERO, |
| 20090 | .block_erasers = |
| 20091 | { |
| 20092 | { |
| 20093 | .eraseblocks = { {64 * 1024, 128} }, |
| 20094 | .block_erase = erase_sector_jedec, |
| 20095 | }, { |
| 20096 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 20097 | .block_erase = erase_chip_block_jedec, |
| 20098 | }, |
| 20099 | }, |
| 20100 | .write = write_jedec_1, |
| 20101 | .read = read_memmapped, |
| 20102 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20103 | .prepare_access = prepare_memory_access, |
| 20104 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 20105 | }, |
| 20106 | |
| 20107 | { |
| 20108 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 20109 | .name = "W29GL064CT", |
| 20110 | .bustype = BUS_PARALLEL, |
| 20111 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 20112 | .model_id = WINBOND_W29GL064CT, |
| 20113 | .total_size = 8192, |
| 20114 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 20115 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 20116 | .tested = TEST_UNTESTED, |
| 20117 | .probe = probe_jedec_29gl, |
| 20118 | .probe_timing = TIMING_ZERO, |
| 20119 | .block_erasers = |
| 20120 | { |
| 20121 | { |
| 20122 | .eraseblocks = { |
| 20123 | {64 * 1024, 127}, |
| 20124 | {8 * 1024, 8}, |
| 20125 | }, |
| 20126 | .block_erase = erase_sector_jedec, |
| 20127 | }, { |
| 20128 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 20129 | .block_erase = erase_chip_block_jedec, |
| 20130 | }, |
| 20131 | }, |
| 20132 | .write = write_jedec_1, |
| 20133 | .read = read_memmapped, |
| 20134 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20135 | .prepare_access = prepare_memory_access, |
| 20136 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 20137 | }, |
| 20138 | |
| 20139 | { |
| 20140 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 20141 | .name = "W29GL128C", |
| 20142 | .bustype = BUS_PARALLEL, |
| 20143 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 20144 | .model_id = WINBOND_W29GL128CHL, |
| 20145 | .total_size = 16384, |
| 20146 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 20147 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 20148 | .tested = TEST_UNTESTED, |
| 20149 | .probe = probe_jedec_29gl, |
| 20150 | .probe_timing = TIMING_ZERO, |
| 20151 | .block_erasers = |
| 20152 | { |
| 20153 | { |
| 20154 | .eraseblocks = { {128 * 1024, 128} }, |
| 20155 | .block_erase = erase_sector_jedec, |
| 20156 | }, { |
| 20157 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 20158 | .block_erase = erase_chip_block_jedec, |
| 20159 | }, |
| 20160 | }, |
| 20161 | .write = write_jedec_1, |
| 20162 | .read = read_memmapped, |
| 20163 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20164 | .prepare_access = prepare_memory_access, |
| 20165 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 20166 | }, |
| 20167 | |
| 20168 | { |
| 20169 | .vendor = "Winbond", |
Kyösti Mälkki | c31243e | 2012-10-28 01:50:08 +0000 | [diff] [blame] | 20170 | .name = "W39F010", |
| 20171 | .bustype = BUS_PARALLEL, |
| 20172 | .manufacture_id = WINBOND_ID, |
| 20173 | .model_id = WINBOND_W39F010, |
| 20174 | .total_size = 128, |
| 20175 | .page_size = 4 * 1024, |
| 20176 | .feature_bits = FEATURE_EITHER_RESET, |
| 20177 | .tested = TEST_OK_PREW, |
| 20178 | .probe = probe_jedec, |
| 20179 | .probe_timing = 10, |
| 20180 | .block_erasers = |
| 20181 | { |
| 20182 | { |
| 20183 | .eraseblocks = { {4 * 1024, 32} }, |
| 20184 | .block_erase = erase_block_jedec, |
| 20185 | }, { |
| 20186 | .eraseblocks = { {128 * 1024, 1} }, |
| 20187 | .block_erase = erase_chip_block_jedec, |
| 20188 | } |
| 20189 | }, |
| 20190 | .printlock = printlock_w39f010, |
| 20191 | .write = write_jedec_1, |
| 20192 | .read = read_memmapped, |
| 20193 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20194 | .prepare_access = prepare_memory_access, |
| 20195 | .finish_access = finish_memory_access, |
Kyösti Mälkki | c31243e | 2012-10-28 01:50:08 +0000 | [diff] [blame] | 20196 | }, |
| 20197 | |
| 20198 | { |
| 20199 | .vendor = "Winbond", |
| 20200 | .name = "W39L010", |
| 20201 | .bustype = BUS_PARALLEL, |
| 20202 | .manufacture_id = WINBOND_ID, |
| 20203 | .model_id = WINBOND_W39L010, |
| 20204 | .total_size = 128, |
| 20205 | .page_size = 4 * 1024, |
| 20206 | .feature_bits = FEATURE_EITHER_RESET, |
| 20207 | .tested = TEST_UNTESTED, |
| 20208 | .probe = probe_jedec, |
| 20209 | .probe_timing = 10, |
| 20210 | .block_erasers = |
| 20211 | { |
| 20212 | { |
| 20213 | .eraseblocks = { {4 * 1024, 32} }, |
| 20214 | .block_erase = erase_block_jedec, |
| 20215 | }, { |
| 20216 | .eraseblocks = { {128 * 1024, 1} }, |
| 20217 | .block_erase = erase_chip_block_jedec, |
| 20218 | } |
| 20219 | }, |
| 20220 | .printlock = printlock_w39l010, |
| 20221 | .write = write_jedec_1, |
| 20222 | .read = read_memmapped, |
| 20223 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20224 | .prepare_access = prepare_memory_access, |
| 20225 | .finish_access = finish_memory_access, |
Kyösti Mälkki | c31243e | 2012-10-28 01:50:08 +0000 | [diff] [blame] | 20226 | }, |
| 20227 | |
| 20228 | { |
| 20229 | .vendor = "Winbond", |
| 20230 | .name = "W39L020", |
| 20231 | .bustype = BUS_PARALLEL, |
| 20232 | .manufacture_id = WINBOND_ID, |
| 20233 | .model_id = WINBOND_W39L020, |
| 20234 | .total_size = 256, |
| 20235 | .page_size = 4 * 1024, |
| 20236 | .feature_bits = FEATURE_EITHER_RESET, |
| 20237 | .tested = TEST_UNTESTED, |
| 20238 | .probe = probe_jedec, |
| 20239 | .probe_timing = 10, |
| 20240 | .block_erasers = |
| 20241 | { |
| 20242 | { |
| 20243 | .eraseblocks = { {4 * 1024, 64} }, |
| 20244 | .block_erase = erase_block_jedec, |
| 20245 | }, { |
| 20246 | .eraseblocks = { {64 * 1024, 4} }, |
| 20247 | .block_erase = erase_sector_jedec, |
| 20248 | }, { |
| 20249 | .eraseblocks = { {256 * 1024, 1} }, |
| 20250 | .block_erase = erase_chip_block_jedec, |
| 20251 | } |
| 20252 | }, |
| 20253 | .printlock = printlock_w39l020, |
| 20254 | .write = write_jedec_1, |
| 20255 | .read = read_memmapped, |
| 20256 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20257 | .prepare_access = prepare_memory_access, |
| 20258 | .finish_access = finish_memory_access, |
Kyösti Mälkki | c31243e | 2012-10-28 01:50:08 +0000 | [diff] [blame] | 20259 | }, |
| 20260 | |
| 20261 | { |
| 20262 | .vendor = "Winbond", |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 20263 | .name = "W39L040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20264 | .bustype = BUS_PARALLEL, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 20265 | .manufacture_id = WINBOND_ID, |
| 20266 | .model_id = WINBOND_W39L040, |
| 20267 | .total_size = 512, |
| 20268 | .page_size = 64 * 1024, |
| 20269 | .feature_bits = FEATURE_EITHER_RESET, |
| 20270 | .tested = TEST_OK_PR, |
| 20271 | .probe = probe_jedec, |
| 20272 | .probe_timing = 10, |
| 20273 | .block_erasers = |
| 20274 | { |
| 20275 | { |
| 20276 | .eraseblocks = { {4 * 1024, 128} }, |
| 20277 | .block_erase = erase_block_jedec, |
| 20278 | }, { |
| 20279 | .eraseblocks = { {64 * 1024, 8} }, |
| 20280 | .block_erase = erase_sector_jedec, |
| 20281 | }, { |
| 20282 | .eraseblocks = { {512 * 1024, 1} }, |
| 20283 | .block_erase = erase_chip_block_jedec, |
| 20284 | } |
| 20285 | }, |
| 20286 | .printlock = printlock_w39l040, |
| 20287 | .write = write_jedec_1, |
| 20288 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 20289 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20290 | .prepare_access = prepare_memory_access, |
| 20291 | .finish_access = finish_memory_access, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 20292 | }, |
| 20293 | |
| 20294 | { |
| 20295 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20296 | .name = "W39V040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20297 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20298 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 20299 | .model_id = WINBOND_W39V040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20300 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 20301 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20302 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 20303 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20304 | .probe = probe_jedec, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 20305 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 20306 | .block_erasers = |
| 20307 | { |
| 20308 | { |
| 20309 | .eraseblocks = { {64 * 1024, 8} }, |
| 20310 | .block_erase = erase_sector_jedec, |
| 20311 | }, { |
| 20312 | .eraseblocks = { {512 * 1024, 1} }, |
| 20313 | .block_erase = erase_chip_block_jedec, |
| 20314 | } |
| 20315 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20316 | .printlock = printlock_w39v040a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20317 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 20318 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 20319 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20320 | .prepare_access = prepare_memory_access, |
| 20321 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 20322 | }, |
| 20323 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20324 | { |
| 20325 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20326 | .name = "W39V040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20327 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20328 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 20329 | .model_id = WINBOND_W39V040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20330 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 20331 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20332 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 20333 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20334 | .probe = probe_jedec, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 20335 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 20336 | .block_erasers = |
| 20337 | { |
| 20338 | { |
| 20339 | .eraseblocks = { {64 * 1024, 8} }, |
| 20340 | .block_erase = erase_sector_jedec, |
| 20341 | }, { |
| 20342 | .eraseblocks = { {512 * 1024, 1} }, |
| 20343 | .block_erase = erase_chip_block_jedec, |
| 20344 | } |
| 20345 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20346 | .printlock = printlock_w39v040b, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20347 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 20348 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 20349 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20350 | .prepare_access = prepare_memory_access, |
| 20351 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 20352 | }, |
| 20353 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20354 | { |
| 20355 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20356 | .name = "W39V040C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20357 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20358 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 20359 | .model_id = WINBOND_W39V040C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20360 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 20361 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20362 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 20363 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20364 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20365 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 20366 | .block_erasers = |
| 20367 | { |
| 20368 | { |
| 20369 | .eraseblocks = { {64 * 1024, 8} }, |
| 20370 | .block_erase = erase_sector_jedec, |
| 20371 | }, { |
| 20372 | .eraseblocks = { {512 * 1024, 1} }, |
| 20373 | .block_erase = erase_chip_block_jedec, |
| 20374 | } |
| 20375 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 20376 | .printlock = printlock_w39v040c, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20377 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 20378 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 20379 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20380 | .prepare_access = prepare_memory_access, |
| 20381 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 20382 | }, |
| 20383 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20384 | { |
| 20385 | .vendor = "Winbond", |
| 20386 | .name = "W39V040FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20387 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20388 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 20389 | .model_id = WINBOND_W39V040FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20390 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 20391 | .page_size = 64 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 20392 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 20393 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20394 | .probe = probe_jedec, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 20395 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 20396 | .block_erasers = |
| 20397 | { |
| 20398 | { |
| 20399 | .eraseblocks = { {4 * 1024, 128} }, |
| 20400 | .block_erase = erase_block_jedec, |
| 20401 | }, { |
| 20402 | .eraseblocks = { {64 * 1024, 8} }, |
| 20403 | .block_erase = erase_sector_jedec, |
| 20404 | }, { |
| 20405 | .eraseblocks = { {512 * 1024, 1} }, |
| 20406 | .block_erase = erase_chip_block_jedec, |
| 20407 | } |
| 20408 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20409 | .printlock = printlock_w39v040fa, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 20410 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20411 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 20412 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 20413 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 20414 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20415 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 20416 | }, |
| 20417 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20418 | { |
| 20419 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20420 | .name = "W39V040FB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20421 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20422 | .manufacture_id = WINBOND_ID, |
| 20423 | .model_id = WINBOND_W39V040B, |
| 20424 | .total_size = 512, |
| 20425 | .page_size = 64 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 20426 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 20427 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20428 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 20429 | .probe_timing = 10, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20430 | .block_erasers = |
| 20431 | { |
| 20432 | { |
| 20433 | .eraseblocks = { {64 * 1024, 8} }, |
| 20434 | .block_erase = erase_sector_jedec, |
| 20435 | }, { |
| 20436 | .eraseblocks = { {512 * 1024, 1} }, |
| 20437 | .block_erase = erase_chip_block_jedec, |
| 20438 | } |
| 20439 | }, |
| 20440 | .printlock = printlock_w39v040fb, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 20441 | .unlock = unlock_regspace2_uniform_64k, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20442 | .write = write_jedec_1, |
| 20443 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 20444 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 20445 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20446 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20447 | }, |
| 20448 | |
| 20449 | { |
| 20450 | .vendor = "Winbond", |
| 20451 | .name = "W39V040FC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20452 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20453 | .manufacture_id = WINBOND_ID, |
| 20454 | .model_id = WINBOND_W39V040C, |
| 20455 | .total_size = 512, |
| 20456 | .page_size = 64 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 20457 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 20458 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20459 | .probe = probe_jedec, |
| 20460 | .probe_timing = 10, |
| 20461 | .block_erasers = |
| 20462 | { |
| 20463 | { |
| 20464 | .eraseblocks = { {64 * 1024, 8} }, |
| 20465 | .block_erase = erase_sector_jedec, |
| 20466 | }, { |
| 20467 | .eraseblocks = { {512 * 1024, 1} }, |
| 20468 | .block_erase = erase_chip_block_jedec, |
| 20469 | } |
| 20470 | }, |
| 20471 | .printlock = printlock_w39v040fc, |
| 20472 | .write = write_jedec_1, |
| 20473 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 20474 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 20475 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20476 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20477 | }, |
| 20478 | |
| 20479 | { |
| 20480 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20481 | .name = "W39V080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20482 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20483 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 20484 | .model_id = WINBOND_W39V080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20485 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 20486 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20487 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 20488 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20489 | .probe = probe_jedec, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 20490 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 20491 | .block_erasers = |
| 20492 | { |
| 20493 | { |
| 20494 | .eraseblocks = { {64 * 1024, 16} }, |
| 20495 | .block_erase = erase_sector_jedec, |
| 20496 | }, { |
| 20497 | .eraseblocks = { {1024 * 1024, 1} }, |
| 20498 | .block_erase = erase_chip_block_jedec, |
| 20499 | } |
| 20500 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20501 | .printlock = printlock_w39v080a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20502 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 20503 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 20504 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20505 | .prepare_access = prepare_memory_access, |
| 20506 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 20507 | }, |
| 20508 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20509 | { |
| 20510 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 20511 | .name = "W39V080FA", |
| 20512 | .bustype = BUS_FWH, |
| 20513 | .manufacture_id = WINBOND_ID, |
| 20514 | .model_id = WINBOND_W39V080FA, |
| 20515 | .total_size = 1024, |
| 20516 | .page_size = 64 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 20517 | .feature_bits = FEATURE_EITHER_RESET, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 20518 | .tested = TEST_OK_PREW, |
| 20519 | .probe = probe_jedec, |
| 20520 | .probe_timing = 10, |
| 20521 | .block_erasers = |
| 20522 | { |
| 20523 | { |
| 20524 | .eraseblocks = { {64 * 1024, 16} }, |
| 20525 | .block_erase = erase_sector_jedec, |
| 20526 | }, { |
| 20527 | .eraseblocks = { {1024 * 1024, 1} }, |
| 20528 | .block_erase = erase_chip_block_jedec, |
| 20529 | } |
| 20530 | }, |
| 20531 | .printlock = printlock_w39v080fa, |
| 20532 | .unlock = unlock_regspace2_uniform_64k, |
| 20533 | .write = write_jedec_1, |
| 20534 | .read = read_memmapped, |
| 20535 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 20536 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20537 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 20538 | }, |
| 20539 | |
| 20540 | { |
| 20541 | .vendor = "Winbond", |
| 20542 | .name = "W39V080FA (dual mode)", |
| 20543 | .bustype = BUS_FWH, |
| 20544 | .manufacture_id = WINBOND_ID, |
| 20545 | .model_id = WINBOND_W39V080FA_DM, |
| 20546 | .total_size = 512, |
| 20547 | .page_size = 64 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 20548 | .feature_bits = FEATURE_EITHER_RESET, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 20549 | .tested = TEST_UNTESTED, |
| 20550 | .probe = probe_jedec, |
| 20551 | .probe_timing = 10, |
| 20552 | .block_erasers = |
| 20553 | { |
| 20554 | { |
| 20555 | .eraseblocks = { {64 * 1024, 8} }, |
| 20556 | .block_erase = erase_sector_jedec, |
| 20557 | }, { |
| 20558 | .eraseblocks = { {512 * 1024, 1} }, |
| 20559 | .block_erase = erase_chip_block_jedec, |
| 20560 | } |
| 20561 | }, |
| 20562 | .printlock = printlock_w39v080fa_dual, |
| 20563 | .write = write_jedec_1, |
| 20564 | .read = read_memmapped, |
| 20565 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 20566 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20567 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 20568 | }, |
| 20569 | |
| 20570 | { |
| 20571 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 20572 | .name = "W49F002U/N", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20573 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20574 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 20575 | .model_id = WINBOND_W49F002U, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20576 | .total_size = 256, |
| 20577 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20578 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 20579 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20580 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 20581 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 20582 | .block_erasers = |
| 20583 | { |
| 20584 | { |
| 20585 | .eraseblocks = { |
| 20586 | {128 * 1024, 1}, |
| 20587 | {96 * 1024, 1}, |
| 20588 | {8 * 1024, 2}, |
| 20589 | {16 * 1024, 1}, |
| 20590 | }, |
| 20591 | .block_erase = erase_sector_jedec, |
| 20592 | }, { |
| 20593 | .eraseblocks = { {256 * 1024, 1} }, |
| 20594 | .block_erase = erase_chip_block_jedec, |
| 20595 | } |
| 20596 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20597 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 20598 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 20599 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20600 | .prepare_access = prepare_memory_access, |
| 20601 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 20602 | }, |
| 20603 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20604 | { |
| 20605 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 20606 | .name = "W49F020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20607 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 20608 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 20609 | .model_id = WINBOND_W49F020, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 20610 | .total_size = 256, |
| 20611 | .page_size = 128, |
| 20612 | .feature_bits = FEATURE_EITHER_RESET, |
| 20613 | .tested = TEST_OK_PROBE, |
| 20614 | .probe = probe_jedec, |
| 20615 | .probe_timing = 10, |
| 20616 | .block_erasers = |
| 20617 | { |
| 20618 | { |
| 20619 | .eraseblocks = { {256 * 1024, 1} }, |
| 20620 | .block_erase = erase_chip_block_jedec, |
| 20621 | } |
| 20622 | }, |
| 20623 | .write = write_jedec_1, |
| 20624 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 20625 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20626 | .prepare_access = prepare_memory_access, |
| 20627 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 20628 | }, |
| 20629 | |
| 20630 | { |
| 20631 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20632 | .name = "W49V002A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20633 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20634 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 20635 | .model_id = WINBOND_W49V002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20636 | .total_size = 256, |
| 20637 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20638 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 20639 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20640 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 20641 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 20642 | .block_erasers = |
| 20643 | { |
| 20644 | { |
| 20645 | .eraseblocks = { |
| 20646 | {64 * 1024, 3}, |
| 20647 | {32 * 1024, 1}, |
| 20648 | {8 * 1024, 2}, |
| 20649 | {16 * 1024, 1}, |
| 20650 | }, |
| 20651 | .block_erase = erase_sector_jedec, |
| 20652 | }, { |
| 20653 | .eraseblocks = { {256 * 1024, 1} }, |
| 20654 | .block_erase = erase_chip_block_jedec, |
| 20655 | } |
| 20656 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20657 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 20658 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 20659 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20660 | .prepare_access = prepare_memory_access, |
| 20661 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 20662 | }, |
| 20663 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20664 | { |
| 20665 | .vendor = "Winbond", |
| 20666 | .name = "W49V002FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20667 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20668 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 20669 | .model_id = WINBOND_W49V002FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20670 | .total_size = 256, |
| 20671 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20672 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 20673 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20674 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 20675 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 20676 | .block_erasers = |
| 20677 | { |
| 20678 | { |
| 20679 | .eraseblocks = { |
| 20680 | {64 * 1024, 3}, |
| 20681 | {32 * 1024, 1}, |
| 20682 | {8 * 1024, 2}, |
| 20683 | {16 * 1024, 1}, |
| 20684 | }, |
| 20685 | .block_erase = erase_sector_jedec, |
| 20686 | }, { |
| 20687 | .eraseblocks = { {256 * 1024, 1} }, |
| 20688 | .block_erase = erase_chip_block_jedec, |
| 20689 | } |
| 20690 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20691 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 20692 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 20693 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20694 | .prepare_access = prepare_memory_access, |
| 20695 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 20696 | }, |
| 20697 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20698 | { |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 20699 | .vendor = "XMC", |
| 20700 | .name = "XM25QH128C", |
| 20701 | .bustype = BUS_SPI, |
| 20702 | .manufacture_id = ST_ID, |
| 20703 | .model_id = XMC_XM25QH128C, |
| 20704 | .total_size = 16384, |
| 20705 | .page_size = 256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 20706 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QPI_SRP, |
| 20707 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 20708 | .tested = TEST_UNTESTED, |
| 20709 | .probe = probe_spi_rdid, |
| 20710 | .probe_timing = TIMING_ZERO, |
| 20711 | .block_erasers = |
| 20712 | { |
| 20713 | { |
| 20714 | .eraseblocks = { {4 * 1024, 4096} }, |
| 20715 | .block_erase = spi_block_erase_20, |
| 20716 | }, { |
| 20717 | .eraseblocks = { {32 * 1024, 512} }, |
| 20718 | .block_erase = spi_block_erase_52, |
| 20719 | }, { |
| 20720 | .eraseblocks = { {64 * 1024, 256} }, |
| 20721 | .block_erase = spi_block_erase_d8, |
| 20722 | }, { |
| 20723 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 20724 | .block_erase = spi_block_erase_60, |
| 20725 | }, { |
| 20726 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 20727 | .block_erase = spi_block_erase_c7, |
| 20728 | } |
| 20729 | }, |
| 20730 | .printlock = spi_prettyprint_status_register_plain, |
| 20731 | .unlock = spi_disable_blockprotect, |
| 20732 | .write = spi_chip_write_256, |
| 20733 | .read = spi_chip_read, |
| 20734 | .voltage = {2700, 3600}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 20735 | .reg_bits = |
| 20736 | { |
| 20737 | .srp = {STATUS1, 7, RW}, |
| 20738 | .srl = {STATUS2, 0, RW}, |
| 20739 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 20740 | .tb = {STATUS1, 5, RW}, |
| 20741 | .sec = {STATUS1, 6, RW}, |
| 20742 | .cmp = {STATUS2, 6, RW}, |
| 20743 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 20744 | .wp_write_cfg = spi_wp_write_cfg, |
| 20745 | .wp_read_cfg = spi_wp_read_cfg, |
| 20746 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 20747 | .decode_range = decode_range_spi25, |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 20748 | }, |
| 20749 | |
| 20750 | { |
| 20751 | .vendor = "XMC", |
| 20752 | .name = "XM25QH256C", |
| 20753 | .bustype = BUS_SPI, |
| 20754 | .manufacture_id = ST_ID, |
| 20755 | .model_id = XMC_XM25QH256C, |
| 20756 | .total_size = 32768, |
| 20757 | .page_size = 256, |
| 20758 | /* supports SFDP */ |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 20759 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN | FEATURE_WRSR2, |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 20760 | .tested = TEST_UNTESTED, |
| 20761 | .probe = probe_spi_rdid, |
| 20762 | .probe_timing = TIMING_ZERO, |
| 20763 | .block_erasers = |
| 20764 | { |
| 20765 | { |
| 20766 | .eraseblocks = { {4 * 1024, 8192} }, |
| 20767 | .block_erase = spi_block_erase_21, |
| 20768 | }, { |
| 20769 | .eraseblocks = { {4 * 1024, 8192} }, |
| 20770 | .block_erase = spi_block_erase_20, |
| 20771 | }, { |
| 20772 | .eraseblocks = { {32 * 1024, 1024} }, |
| 20773 | .block_erase = spi_block_erase_52, |
| 20774 | }, { |
| 20775 | .eraseblocks = { {64 * 1024, 512} }, |
| 20776 | .block_erase = spi_block_erase_dc, |
| 20777 | }, { |
| 20778 | .eraseblocks = { {64 * 1024, 512} }, |
| 20779 | .block_erase = spi_block_erase_d8, |
| 20780 | }, { |
| 20781 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 20782 | .block_erase = spi_block_erase_60, |
| 20783 | }, { |
| 20784 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 20785 | .block_erase = spi_block_erase_c7, |
| 20786 | } |
| 20787 | }, |
| 20788 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 20789 | .unlock = spi_disable_blockprotect, |
| 20790 | .write = spi_chip_write_256, |
| 20791 | .read = spi_chip_read, |
| 20792 | .voltage = {2700, 3600}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 20793 | .reg_bits = |
| 20794 | { |
| 20795 | .srp = {STATUS1, 7, RW}, |
| 20796 | .srl = {STATUS2, 0, RW}, |
| 20797 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}}, |
| 20798 | .tb = {STATUS1, 6, RW}, |
| 20799 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 20800 | .wp_write_cfg = spi_wp_write_cfg, |
| 20801 | .wp_read_cfg = spi_wp_read_cfg, |
| 20802 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 20803 | .decode_range = decode_range_spi25, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 20804 | .prepare_access = spi_prepare_4ba, |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 20805 | }, |
| 20806 | |
| 20807 | { |
| 20808 | .vendor = "XMC", |
| 20809 | .name = "XM25QH64C", |
| 20810 | .bustype = BUS_SPI, |
| 20811 | .manufacture_id = ST_ID, |
| 20812 | .model_id = XMC_XM25QH64C, |
| 20813 | .total_size = 8192, |
| 20814 | .page_size = 256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 20815 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP, |
| 20816 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 20817 | .tested = TEST_UNTESTED, |
| 20818 | .probe = probe_spi_rdid, |
| 20819 | .probe_timing = TIMING_ZERO, |
| 20820 | .block_erasers = |
| 20821 | { |
| 20822 | { |
| 20823 | .eraseblocks = { {4 * 1024, 2048} }, |
| 20824 | .block_erase = spi_block_erase_20, |
| 20825 | }, { |
| 20826 | .eraseblocks = { {32 * 1024, 256} }, |
| 20827 | .block_erase = spi_block_erase_52, |
| 20828 | }, { |
| 20829 | .eraseblocks = { {64 * 1024, 128} }, |
| 20830 | .block_erase = spi_block_erase_d8, |
| 20831 | }, { |
| 20832 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 20833 | .block_erase = spi_block_erase_60, |
| 20834 | }, { |
| 20835 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 20836 | .block_erase = spi_block_erase_c7, |
| 20837 | } |
| 20838 | }, |
| 20839 | .printlock = spi_prettyprint_status_register_plain, |
| 20840 | .unlock = spi_disable_blockprotect, |
| 20841 | .write = spi_chip_write_256, |
| 20842 | .read = spi_chip_read, |
| 20843 | .voltage = {2700, 3600}, |
| 20844 | }, |
| 20845 | |
| 20846 | { |
| 20847 | .vendor = "XMC", |
| 20848 | .name = "XM25QU128C", |
| 20849 | .bustype = BUS_SPI, |
| 20850 | .manufacture_id = ST_ID, |
| 20851 | .model_id = XMC_XM25QU128C, |
| 20852 | .total_size = 16384, |
| 20853 | .page_size = 256, |
| 20854 | /* supports SFDP */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 20855 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP, |
| 20856 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 20857 | .tested = TEST_UNTESTED, |
| 20858 | .probe = probe_spi_rdid, |
| 20859 | .probe_timing = TIMING_ZERO, |
| 20860 | .block_erasers = |
| 20861 | { |
| 20862 | { |
| 20863 | .eraseblocks = { {4 * 1024, 4096} }, |
| 20864 | .block_erase = spi_block_erase_20, |
| 20865 | }, { |
| 20866 | .eraseblocks = { {32 * 1024, 512} }, |
| 20867 | .block_erase = spi_block_erase_52, |
| 20868 | }, { |
| 20869 | .eraseblocks = { {64 * 1024, 256} }, |
| 20870 | .block_erase = spi_block_erase_d8, |
| 20871 | }, { |
| 20872 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 20873 | .block_erase = spi_block_erase_60, |
| 20874 | }, { |
| 20875 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 20876 | .block_erase = spi_block_erase_c7, |
| 20877 | } |
| 20878 | }, |
| 20879 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 20880 | .unlock = spi_disable_blockprotect, |
| 20881 | .write = spi_chip_write_256, |
| 20882 | .read = spi_chip_read, |
| 20883 | .voltage = {1650, 1950}, |
| 20884 | }, |
| 20885 | |
| 20886 | { |
| 20887 | .vendor = "XMC", |
| 20888 | .name = "XM25QU256C", |
| 20889 | .bustype = BUS_SPI, |
| 20890 | .manufacture_id = ST_ID, |
| 20891 | .model_id = XMC_XM25QU256C, |
| 20892 | .total_size = 32768, |
| 20893 | .page_size = 256, |
| 20894 | /* supports SFDP */ |
| 20895 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 20896 | .tested = TEST_UNTESTED, |
| 20897 | .probe = probe_spi_rdid, |
| 20898 | .probe_timing = TIMING_ZERO, |
| 20899 | .block_erasers = |
| 20900 | { |
| 20901 | { |
| 20902 | .eraseblocks = { {4 * 1024, 8192} }, |
| 20903 | .block_erase = spi_block_erase_21, |
| 20904 | }, { |
| 20905 | .eraseblocks = { {4 * 1024, 8192} }, |
| 20906 | .block_erase = spi_block_erase_20, |
| 20907 | }, { |
| 20908 | .eraseblocks = { {32 * 1024, 1024} }, |
| 20909 | .block_erase = spi_block_erase_52, |
| 20910 | }, { |
| 20911 | .eraseblocks = { {64 * 1024, 512} }, |
| 20912 | .block_erase = spi_block_erase_dc, |
| 20913 | }, { |
| 20914 | .eraseblocks = { {64 * 1024, 512} }, |
| 20915 | .block_erase = spi_block_erase_d8, |
| 20916 | }, { |
| 20917 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 20918 | .block_erase = spi_block_erase_60, |
| 20919 | }, { |
| 20920 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 20921 | .block_erase = spi_block_erase_c7, |
| 20922 | } |
| 20923 | }, |
| 20924 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 20925 | .unlock = spi_disable_blockprotect, |
| 20926 | .write = spi_chip_write_256, |
| 20927 | .read = spi_chip_read, |
| 20928 | .voltage = {1650, 1950}, |
Nico Huber | ab6b18f | 2023-01-11 23:38:20 +0100 | [diff] [blame] | 20929 | .prepare_access = spi_prepare_4ba, |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 20930 | }, |
| 20931 | |
| 20932 | { |
| 20933 | .vendor = "XMC", |
| 20934 | .name = "XM25QU64C", |
| 20935 | .bustype = BUS_SPI, |
| 20936 | .manufacture_id = ST_ID, |
| 20937 | .model_id = XMC_XM25QU64C, |
| 20938 | .total_size = 8192, |
| 20939 | .page_size = 256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 20940 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP, |
| 20941 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 20942 | .tested = TEST_UNTESTED, |
| 20943 | .probe = probe_spi_rdid, |
| 20944 | .probe_timing = TIMING_ZERO, |
| 20945 | .block_erasers = |
| 20946 | { |
| 20947 | { |
| 20948 | .eraseblocks = { {4 * 1024, 2048} }, |
| 20949 | .block_erase = spi_block_erase_20, |
| 20950 | }, { |
| 20951 | .eraseblocks = { {32 * 1024, 256} }, |
| 20952 | .block_erase = spi_block_erase_52, |
| 20953 | }, { |
| 20954 | .eraseblocks = { {64 * 1024, 128} }, |
| 20955 | .block_erase = spi_block_erase_d8, |
| 20956 | }, { |
| 20957 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 20958 | .block_erase = spi_block_erase_60, |
| 20959 | }, { |
| 20960 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 20961 | .block_erase = spi_block_erase_c7, |
| 20962 | } |
| 20963 | }, |
| 20964 | .printlock = spi_prettyprint_status_register_plain, |
| 20965 | .unlock = spi_disable_blockprotect, |
| 20966 | .write = spi_chip_write_256, |
| 20967 | .read = spi_chip_read, |
| 20968 | .voltage = {1650, 1950}, |
| 20969 | }, |
| 20970 | |
| 20971 | { |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 20972 | .vendor = "Zetta Device", |
| 20973 | .name = "ZD25D20", |
| 20974 | .bustype = BUS_SPI, |
| 20975 | .manufacture_id = ZETTADEVICE_ID, |
| 20976 | .model_id = ZETTADEVICE_ZD25D20, |
| 20977 | .total_size = 256, |
| 20978 | .page_size = 256, |
| 20979 | .feature_bits = FEATURE_WRSR_WREN, |
| 20980 | .tested = TEST_UNTESTED, |
| 20981 | .probe = probe_spi_rdid, |
| 20982 | .probe_timing = TIMING_ZERO, |
| 20983 | .block_erasers = |
David Hendricks | a72d5a9 | 2018-02-11 17:58:44 -0800 | [diff] [blame] | 20984 | { |
| 20985 | { |
| 20986 | .eraseblocks = { {4 * 1024, 64} }, |
| 20987 | .block_erase = spi_block_erase_20, |
| 20988 | }, { |
| 20989 | .eraseblocks = { {32 * 1024, 8} }, |
| 20990 | .block_erase = spi_block_erase_52, |
| 20991 | }, { |
| 20992 | .eraseblocks = { {64 * 1024, 4} }, |
| 20993 | .block_erase = spi_block_erase_d8, |
| 20994 | }, { |
| 20995 | .eraseblocks = { {256 * 1024, 1} }, |
| 20996 | .block_erase = spi_block_erase_60, |
| 20997 | }, { |
| 20998 | .eraseblocks = { {256 * 1024, 1} }, |
| 20999 | .block_erase = spi_block_erase_c7, |
| 21000 | } |
| 21001 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 21002 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 21003 | .unlock = spi_disable_blockprotect, |
| 21004 | .write = spi_chip_write_256, |
| 21005 | .read = spi_chip_read, |
| 21006 | .voltage = {2700, 3600}, |
David Hendricks | a72d5a9 | 2018-02-11 17:58:44 -0800 | [diff] [blame] | 21007 | }, |
| 21008 | |
| 21009 | { |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 21010 | .vendor = "Zetta Device", |
| 21011 | .name = "ZD25D40", |
| 21012 | .bustype = BUS_SPI, |
| 21013 | .manufacture_id = ZETTADEVICE_ID, |
| 21014 | .model_id = ZETTADEVICE_ZD25D40, |
| 21015 | .total_size = 512, |
| 21016 | .page_size = 256, |
| 21017 | .feature_bits = FEATURE_WRSR_WREN, |
| 21018 | .tested = TEST_UNTESTED, |
| 21019 | .probe = probe_spi_rdid, |
| 21020 | .probe_timing = TIMING_ZERO, |
| 21021 | .block_erasers = |
nybash | cbb46e2 | 2018-02-11 17:53:49 -0800 | [diff] [blame] | 21022 | { |
| 21023 | { |
| 21024 | .eraseblocks = { {4 * 1024, 128} }, |
| 21025 | .block_erase = spi_block_erase_20, |
| 21026 | }, { |
| 21027 | .eraseblocks = { {32 * 1024, 16} }, |
| 21028 | .block_erase = spi_block_erase_52, |
| 21029 | }, { |
| 21030 | .eraseblocks = { {64 * 1024, 8} }, |
| 21031 | .block_erase = spi_block_erase_d8, |
| 21032 | }, { |
| 21033 | .eraseblocks = { {512 * 1024, 1} }, |
| 21034 | .block_erase = spi_block_erase_60, |
| 21035 | }, { |
| 21036 | .eraseblocks = { {512 * 1024, 1} }, |
| 21037 | .block_erase = spi_block_erase_c7, |
| 21038 | } |
| 21039 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 21040 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 21041 | .unlock = spi_disable_blockprotect, |
| 21042 | .write = spi_chip_write_256, |
| 21043 | .read = spi_chip_read, |
| 21044 | .voltage = {2700, 3600}, |
nybash | cbb46e2 | 2018-02-11 17:53:49 -0800 | [diff] [blame] | 21045 | }, |
| 21046 | |
Stefan Tauner | ac1b4c8 | 2012-02-17 14:51:04 +0000 | [diff] [blame] | 21047 | { |
Alan Green | dd59220 | 2019-08-23 10:11:37 +1000 | [diff] [blame] | 21048 | .vendor = "Unknown", |
| 21049 | .name = "SFDP-capable chip", |
| 21050 | .bustype = BUS_SPI, |
| 21051 | .manufacture_id = GENERIC_MANUF_ID, |
| 21052 | .model_id = SFDP_DEVICE_ID, |
| 21053 | .total_size = 0, /* set by probing function */ |
| 21054 | .page_size = 0, /* set by probing function */ |
| 21055 | .feature_bits = 0, /* set by probing function */ |
| 21056 | /* We present our own "report this" text hence we do not */ |
| 21057 | /* want the default "This flash part has status UNTESTED..." */ |
| 21058 | /* text to be printed. */ |
| 21059 | .tested = TEST_OK_PREW, |
| 21060 | .probe = probe_spi_sfdp, |
| 21061 | .block_erasers = {}, /* set by probing function */ |
| 21062 | .unlock = spi_disable_blockprotect, /* is this safe? */ |
| 21063 | .write = NULL, /* set by probing function */ |
| 21064 | .read = spi_chip_read, |
| 21065 | /* FIXME: some vendor extensions define this */ |
| 21066 | .voltage = {0}, |
| 21067 | }, |
| 21068 | |
| 21069 | { |
Carl-Daniel Hailfinger | 532c717 | 2011-11-04 21:35:26 +0000 | [diff] [blame] | 21070 | .vendor = "Programmer", |
| 21071 | .name = "Opaque flash chip", |
| 21072 | .bustype = BUS_PROG, |
| 21073 | .manufacture_id = PROGMANUF_ID, |
| 21074 | .model_id = PROGDEV_ID, |
| 21075 | .total_size = 0, |
| 21076 | .page_size = 256, |
| 21077 | /* probe is assumed to work, rest will be filled in by probe */ |
| 21078 | .tested = TEST_OK_PROBE, |
| 21079 | .probe = probe_opaque, |
| 21080 | /* eraseblock sizes will be set by the probing function */ |
| 21081 | .block_erasers = |
| 21082 | { |
| 21083 | { |
| 21084 | .block_erase = erase_opaque, |
| 21085 | } |
| 21086 | }, |
| 21087 | .write = write_opaque, |
| 21088 | .read = read_opaque, |
| 21089 | }, |
| 21090 | |
| 21091 | { |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 21092 | .vendor = "AMIC", |
| 21093 | .name = "unknown AMIC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 21094 | .bustype = BUS_SPI, |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 21095 | .manufacture_id = AMIC_ID, |
| 21096 | .model_id = GENERIC_DEVICE_ID, |
| 21097 | .total_size = 0, |
| 21098 | .page_size = 256, |
| 21099 | .tested = TEST_BAD_PREW, |
| 21100 | .probe = probe_spi_rdid4, |
| 21101 | .probe_timing = TIMING_ZERO, |
| 21102 | .write = NULL, |
| 21103 | .read = NULL, |
| 21104 | }, |
| 21105 | |
| 21106 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21107 | .vendor = "Atmel", |
| 21108 | .name = "unknown Atmel SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 21109 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21110 | .manufacture_id = ATMEL_ID, |
| 21111 | .model_id = GENERIC_DEVICE_ID, |
| 21112 | .total_size = 0, |
| 21113 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 21114 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21115 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 21116 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21117 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 21118 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 21119 | }, |
| 21120 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21121 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 21122 | .vendor = "Eon", |
| 21123 | .name = "unknown Eon SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 21124 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21125 | .manufacture_id = EON_ID_NOPREFIX, |
| 21126 | .model_id = GENERIC_DEVICE_ID, |
| 21127 | .total_size = 0, |
| 21128 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 21129 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21130 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 21131 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21132 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 21133 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 21134 | }, |
| 21135 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21136 | { |
| 21137 | .vendor = "Macronix", |
| 21138 | .name = "unknown Macronix SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 21139 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 21140 | .manufacture_id = MACRONIX_ID, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21141 | .model_id = GENERIC_DEVICE_ID, |
| 21142 | .total_size = 0, |
| 21143 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 21144 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21145 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 21146 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21147 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 21148 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 21149 | }, |
| 21150 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21151 | { |
| 21152 | .vendor = "PMC", |
| 21153 | .name = "unknown PMC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 21154 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21155 | .manufacture_id = PMC_ID, |
| 21156 | .model_id = GENERIC_DEVICE_ID, |
| 21157 | .total_size = 0, |
| 21158 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 21159 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21160 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 21161 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21162 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 21163 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 21164 | }, |
| 21165 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21166 | { |
| 21167 | .vendor = "SST", |
| 21168 | .name = "unknown SST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 21169 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21170 | .manufacture_id = SST_ID, |
| 21171 | .model_id = GENERIC_DEVICE_ID, |
| 21172 | .total_size = 0, |
| 21173 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 21174 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21175 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 21176 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21177 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 21178 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 21179 | }, |
| 21180 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21181 | { |
| 21182 | .vendor = "ST", |
| 21183 | .name = "unknown ST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 21184 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21185 | .manufacture_id = ST_ID, |
| 21186 | .model_id = GENERIC_DEVICE_ID, |
| 21187 | .total_size = 0, |
| 21188 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 21189 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21190 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 21191 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21192 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 21193 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 21194 | }, |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 21195 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 21196 | { |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 21197 | .vendor = "Sanyo", |
| 21198 | .name = "unknown Sanyo SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 21199 | .bustype = BUS_SPI, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 21200 | .manufacture_id = SANYO_ID, |
| 21201 | .model_id = GENERIC_DEVICE_ID, |
| 21202 | .total_size = 0, |
| 21203 | .page_size = 256, |
| 21204 | .tested = TEST_BAD_PREW, |
| 21205 | .probe = probe_spi_rdid, |
| 21206 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 21207 | .write = NULL, |
| 21208 | .read = NULL, |
| 21209 | }, |
| 21210 | |
| 21211 | { |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 21212 | .vendor = "Winbond", |
| 21213 | .name = "unknown Winbond (ex Nexcom) SPI chip", |
| 21214 | .bustype = BUS_SPI, |
| 21215 | .manufacture_id = WINBOND_NEX_ID, |
| 21216 | .model_id = GENERIC_DEVICE_ID, |
| 21217 | .total_size = 0, |
| 21218 | .page_size = 256, |
| 21219 | .tested = TEST_BAD_PREW, |
| 21220 | .probe = probe_spi_rdid, |
| 21221 | .probe_timing = TIMING_ZERO, |
| 21222 | .write = NULL, |
| 21223 | .read = NULL, |
| 21224 | }, |
| 21225 | |
| 21226 | { |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 21227 | .vendor = "Generic", |
| 21228 | .name = "unknown SPI chip (RDID)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 21229 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 21230 | .manufacture_id = GENERIC_MANUF_ID, |
| 21231 | .model_id = GENERIC_DEVICE_ID, |
| 21232 | .total_size = 0, |
| 21233 | .page_size = 256, |
| 21234 | .tested = TEST_BAD_PREW, |
| 21235 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 21236 | .write = NULL, |
| 21237 | }, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 21238 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 21239 | { |
| 21240 | .vendor = "Generic", |
| 21241 | .name = "unknown SPI chip (REMS)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 21242 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 21243 | .manufacture_id = GENERIC_MANUF_ID, |
| 21244 | .model_id = GENERIC_DEVICE_ID, |
| 21245 | .total_size = 0, |
| 21246 | .page_size = 256, |
| 21247 | .tested = TEST_BAD_PREW, |
| 21248 | .probe = probe_spi_rems, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 21249 | .write = NULL, |
| 21250 | }, |
| 21251 | |
Stefan Tauner | 96658be | 2014-05-26 22:05:31 +0000 | [diff] [blame] | 21252 | {0} |
Stephan Guilloux | 72cf565 | 2009-04-21 01:46:07 +0000 | [diff] [blame] | 21253 | }; |
Stefan Tauner | 96658be | 2014-05-26 22:05:31 +0000 | [diff] [blame] | 21254 | |
| 21255 | const unsigned int flashchips_size = ARRAY_SIZE(flashchips); |