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}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 1410 | .prepare_access = spi_prepare_io, |
| 1411 | .finish_access = spi_finish_io, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1412 | }, |
| 1413 | |
| 1414 | { |
| 1415 | .vendor = "AMIC", |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1416 | .name = "A29002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1417 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1418 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1419 | .model_id = AMIC_A29002B, |
| 1420 | .total_size = 256, |
| 1421 | .page_size = 64 * 1024, |
| 1422 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 1423 | .tested = TEST_UNTESTED, |
| 1424 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1425 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1426 | .block_erasers = |
| 1427 | { |
| 1428 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1429 | .eraseblocks = { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1430 | {16 * 1024, 1}, |
| 1431 | {8 * 1024, 2}, |
| 1432 | {32 * 1024, 1}, |
| 1433 | {64 * 1024, 3}, |
| 1434 | }, |
| 1435 | .block_erase = erase_sector_jedec, |
| 1436 | }, { |
| 1437 | .eraseblocks = { {256 * 1024, 1} }, |
| 1438 | .block_erase = erase_chip_block_jedec, |
| 1439 | }, |
| 1440 | }, |
| 1441 | .write = write_jedec_1, |
| 1442 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1443 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 1444 | .prepare_access = prepare_memory_access, |
| 1445 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1446 | }, |
| 1447 | |
| 1448 | { |
| 1449 | .vendor = "AMIC", |
| 1450 | .name = "A29002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1451 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1452 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1453 | .model_id = AMIC_A29002T, |
| 1454 | .total_size = 256, |
| 1455 | .page_size = 64 * 1024, |
| 1456 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 1457 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1458 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1459 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1460 | .block_erasers = |
| 1461 | { |
| 1462 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1463 | .eraseblocks = { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1464 | {64 * 1024, 3}, |
| 1465 | {32 * 1024, 1}, |
| 1466 | {8 * 1024, 2}, |
| 1467 | {16 * 1024, 1}, |
| 1468 | }, |
| 1469 | .block_erase = erase_sector_jedec, |
| 1470 | }, { |
| 1471 | .eraseblocks = { {256 * 1024, 1} }, |
| 1472 | .block_erase = erase_chip_block_jedec, |
| 1473 | }, |
| 1474 | }, |
| 1475 | .write = write_jedec_1, |
| 1476 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1477 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 1478 | .prepare_access = prepare_memory_access, |
| 1479 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1480 | }, |
| 1481 | |
| 1482 | { |
| 1483 | .vendor = "AMIC", |
| 1484 | .name = "A29040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1485 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1486 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1487 | .model_id = AMIC_A29040B, |
| 1488 | .total_size = 512, |
| 1489 | .page_size = 64 * 1024, |
| 1490 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Corey Osgood | cbd5665 | 2013-09-10 10:42:48 +0000 | [diff] [blame] | 1491 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1492 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1493 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1494 | .block_erasers = |
| 1495 | { |
| 1496 | { |
| 1497 | .eraseblocks = { {64 * 1024, 8} }, |
| 1498 | .block_erase = erase_sector_jedec, |
| 1499 | }, { |
| 1500 | .eraseblocks = { {512 * 1024, 1} }, |
| 1501 | .block_erase = erase_chip_block_jedec, |
| 1502 | }, |
| 1503 | }, |
| 1504 | .write = write_jedec_1, |
| 1505 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1506 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 1507 | .prepare_access = prepare_memory_access, |
| 1508 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1509 | }, |
| 1510 | |
| 1511 | { |
| 1512 | .vendor = "AMIC", |
| 1513 | .name = "A49LF040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1514 | .bustype = BUS_LPC, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1515 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1516 | .model_id = AMIC_A49LF040A, |
| 1517 | .total_size = 512, |
| 1518 | .page_size = 64 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 1519 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 1520 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1521 | .probe = probe_jedec, |
| 1522 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
| 1523 | .block_erasers = |
| 1524 | { |
| 1525 | { |
| 1526 | .eraseblocks = { {64 * 1024, 8} }, |
| 1527 | .block_erase = erase_block_jedec, |
| 1528 | }, { |
| 1529 | .eraseblocks = { {512 * 1024, 1} }, |
| 1530 | .block_erase = erase_chip_block_jedec, |
| 1531 | } |
| 1532 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 1533 | .unlock = unlock_regspace2_uniform_64k, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1534 | .write = write_jedec_1, |
| 1535 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1536 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 1537 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 1538 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1539 | }, |
| 1540 | |
| 1541 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1542 | .vendor = "Atmel", |
| 1543 | .name = "AT25DF021", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1544 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1545 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1546 | .model_id = ATMEL_AT25DF021, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1547 | .total_size = 256, |
| 1548 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1549 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1550 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1551 | .tested = TEST_UNTESTED, |
| 1552 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1553 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1554 | .block_erasers = |
| 1555 | { |
| 1556 | { |
| 1557 | .eraseblocks = { {4 * 1024, 64} }, |
| 1558 | .block_erase = spi_block_erase_20, |
| 1559 | }, { |
| 1560 | .eraseblocks = { {32 * 1024, 8} }, |
| 1561 | .block_erase = spi_block_erase_52, |
| 1562 | }, { |
| 1563 | .eraseblocks = { {64 * 1024, 4} }, |
| 1564 | .block_erase = spi_block_erase_d8, |
| 1565 | }, { |
| 1566 | .eraseblocks = { {256 * 1024, 1} }, |
| 1567 | .block_erase = spi_block_erase_60, |
| 1568 | }, { |
| 1569 | .eraseblocks = { {256 * 1024, 1} }, |
| 1570 | .block_erase = spi_block_erase_c7, |
| 1571 | } |
| 1572 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1573 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1574 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1575 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1576 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1577 | .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] | 1578 | }, |
| 1579 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1580 | { |
| 1581 | .vendor = "Atmel", |
Steffen Mauch | 0b59b0d | 2018-06-02 23:46:03 +0200 | [diff] [blame] | 1582 | .name = "AT25DF021A", |
| 1583 | .bustype = BUS_SPI, |
| 1584 | .manufacture_id = ATMEL_ID, |
| 1585 | .model_id = ATMEL_AT25DF021A, |
| 1586 | .total_size = 256, |
| 1587 | .page_size = 256, |
| 1588 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1589 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1590 | .tested = TEST_OK_PREW, |
| 1591 | .probe = probe_spi_rdid, |
| 1592 | .probe_timing = TIMING_ZERO, |
| 1593 | .block_erasers = |
| 1594 | { |
| 1595 | { |
| 1596 | .eraseblocks = { {4 * 1024, 64} }, |
| 1597 | .block_erase = spi_block_erase_20, |
| 1598 | }, { |
| 1599 | .eraseblocks = { {32 * 1024, 8} }, |
| 1600 | .block_erase = spi_block_erase_52, |
| 1601 | }, { |
| 1602 | .eraseblocks = { {64 * 1024, 4} }, |
| 1603 | .block_erase = spi_block_erase_d8, |
| 1604 | }, { |
| 1605 | .eraseblocks = { {256 * 1024, 1} }, |
| 1606 | .block_erase = spi_block_erase_60, |
| 1607 | }, { |
| 1608 | .eraseblocks = { {256 * 1024, 1} }, |
| 1609 | .block_erase = spi_block_erase_c7, |
| 1610 | } |
| 1611 | }, |
| 1612 | .printlock = spi_prettyprint_status_register_at25df, |
| 1613 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
| 1614 | .write = spi_chip_write_256, |
| 1615 | .read = spi_chip_read, |
| 1616 | .voltage = {1650, 3600}, |
| 1617 | }, |
| 1618 | |
| 1619 | { |
| 1620 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1621 | .name = "AT25DF041A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1622 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1623 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1624 | .model_id = ATMEL_AT25DF041A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1625 | .total_size = 512, |
| 1626 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1627 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 1628 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1629 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1630 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1631 | .block_erasers = |
| 1632 | { |
| 1633 | { |
| 1634 | .eraseblocks = { {4 * 1024, 128} }, |
| 1635 | .block_erase = spi_block_erase_20, |
| 1636 | }, { |
| 1637 | .eraseblocks = { {32 * 1024, 16} }, |
| 1638 | .block_erase = spi_block_erase_52, |
| 1639 | }, { |
| 1640 | .eraseblocks = { {64 * 1024, 8} }, |
| 1641 | .block_erase = spi_block_erase_d8, |
| 1642 | }, { |
| 1643 | .eraseblocks = { {512 * 1024, 1} }, |
| 1644 | .block_erase = spi_block_erase_60, |
| 1645 | }, { |
| 1646 | .eraseblocks = { {512 * 1024, 1} }, |
| 1647 | .block_erase = spi_block_erase_c7, |
| 1648 | } |
| 1649 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1650 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1651 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1652 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1653 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1654 | .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] | 1655 | }, |
| 1656 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1657 | { |
| 1658 | .vendor = "Atmel", |
| 1659 | .name = "AT25DF081", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1660 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1661 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1662 | .model_id = ATMEL_AT25DF081, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1663 | .total_size = 1024, |
| 1664 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1665 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1666 | .tested = TEST_UNTESTED, |
| 1667 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1668 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1669 | .block_erasers = |
| 1670 | { |
| 1671 | { |
| 1672 | .eraseblocks = { {4 * 1024, 256} }, |
| 1673 | .block_erase = spi_block_erase_20, |
| 1674 | }, { |
| 1675 | .eraseblocks = { {32 * 1024, 32} }, |
| 1676 | .block_erase = spi_block_erase_52, |
| 1677 | }, { |
| 1678 | .eraseblocks = { {64 * 1024, 16} }, |
| 1679 | .block_erase = spi_block_erase_d8, |
| 1680 | }, { |
| 1681 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1682 | .block_erase = spi_block_erase_60, |
| 1683 | }, { |
| 1684 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1685 | .block_erase = spi_block_erase_c7, |
| 1686 | } |
| 1687 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1688 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1689 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1690 | .write = spi_chip_write_256, |
| 1691 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1692 | .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] | 1693 | }, |
| 1694 | |
| 1695 | { |
| 1696 | .vendor = "Atmel", |
| 1697 | .name = "AT25DF081A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1698 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1699 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1700 | .model_id = ATMEL_AT25DF081A, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1701 | .total_size = 1024, |
| 1702 | .page_size = 256, |
| 1703 | .feature_bits = FEATURE_WRSR_WREN, |
| 1704 | .tested = TEST_UNTESTED, |
| 1705 | .probe = probe_spi_rdid, |
| 1706 | .probe_timing = TIMING_ZERO, |
| 1707 | .block_erasers = |
| 1708 | { |
| 1709 | { |
| 1710 | .eraseblocks = { {4 * 1024, 256} }, |
| 1711 | .block_erase = spi_block_erase_20, |
| 1712 | }, { |
| 1713 | .eraseblocks = { {32 * 1024, 32} }, |
| 1714 | .block_erase = spi_block_erase_52, |
| 1715 | }, { |
| 1716 | .eraseblocks = { {64 * 1024, 16} }, |
| 1717 | .block_erase = spi_block_erase_d8, |
| 1718 | }, { |
| 1719 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1720 | .block_erase = spi_block_erase_60, |
| 1721 | }, { |
| 1722 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1723 | .block_erase = spi_block_erase_c7, |
| 1724 | } |
| 1725 | }, |
| 1726 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1727 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1728 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1729 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1730 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1731 | }, |
| 1732 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1733 | { |
| 1734 | .vendor = "Atmel", |
| 1735 | .name = "AT25DF161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1736 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1737 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1738 | .model_id = ATMEL_AT25DF161, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1739 | .total_size = 2048, |
| 1740 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1741 | .feature_bits = FEATURE_WRSR_WREN, |
Angel Pons | 8b5b962 | 2018-09-30 19:13:15 +0200 | [diff] [blame] | 1742 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1743 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1744 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1745 | .block_erasers = |
| 1746 | { |
| 1747 | { |
| 1748 | .eraseblocks = { {4 * 1024, 512} }, |
| 1749 | .block_erase = spi_block_erase_20, |
| 1750 | }, { |
| 1751 | .eraseblocks = { {32 * 1024, 64} }, |
| 1752 | .block_erase = spi_block_erase_52, |
| 1753 | }, { |
| 1754 | .eraseblocks = { {64 * 1024, 32} }, |
| 1755 | .block_erase = spi_block_erase_d8, |
| 1756 | }, { |
| 1757 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1758 | .block_erase = spi_block_erase_60, |
| 1759 | }, { |
| 1760 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1761 | .block_erase = spi_block_erase_c7, |
| 1762 | } |
| 1763 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1764 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1765 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1766 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1767 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1768 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1769 | }, |
| 1770 | |
Alan Green | 86bf6ab | 2019-06-27 16:58:20 +1000 | [diff] [blame] | 1771 | /*The AT26DF321 has the same ID as the AT25DF321. */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1772 | { |
| 1773 | .vendor = "Atmel", |
| 1774 | .name = "AT25DF321", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1775 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1776 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1777 | .model_id = ATMEL_AT25DF321, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1778 | .total_size = 4096, |
| 1779 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1780 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d06d941 | 2011-06-12 19:47:55 +0000 | [diff] [blame] | 1781 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1782 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1783 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1784 | .block_erasers = |
| 1785 | { |
| 1786 | { |
| 1787 | .eraseblocks = { {4 * 1024, 1024} }, |
| 1788 | .block_erase = spi_block_erase_20, |
| 1789 | }, { |
| 1790 | .eraseblocks = { {32 * 1024, 128} }, |
| 1791 | .block_erase = spi_block_erase_52, |
| 1792 | }, { |
| 1793 | .eraseblocks = { {64 * 1024, 64} }, |
| 1794 | .block_erase = spi_block_erase_d8, |
| 1795 | }, { |
| 1796 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1797 | .block_erase = spi_block_erase_60, |
| 1798 | }, { |
| 1799 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1800 | .block_erase = spi_block_erase_c7, |
| 1801 | } |
| 1802 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1803 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1804 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1805 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1806 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1807 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1808 | }, |
| 1809 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1810 | { |
| 1811 | .vendor = "Atmel", |
| 1812 | .name = "AT25DF321A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1813 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1814 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1815 | .model_id = ATMEL_AT25DF321A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1816 | .total_size = 4096, |
| 1817 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1818 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1819 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 1820 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1821 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1822 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1823 | .block_erasers = |
| 1824 | { |
| 1825 | { |
| 1826 | .eraseblocks = { {4 * 1024, 1024} }, |
| 1827 | .block_erase = spi_block_erase_20, |
| 1828 | }, { |
| 1829 | .eraseblocks = { {32 * 1024, 128} }, |
| 1830 | .block_erase = spi_block_erase_52, |
| 1831 | }, { |
| 1832 | .eraseblocks = { {64 * 1024, 64} }, |
| 1833 | .block_erase = spi_block_erase_d8, |
| 1834 | }, { |
| 1835 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1836 | .block_erase = spi_block_erase_60, |
| 1837 | }, { |
| 1838 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1839 | .block_erase = spi_block_erase_c7, |
| 1840 | } |
| 1841 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1842 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1843 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1844 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1845 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1846 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1847 | }, |
| 1848 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1849 | { |
| 1850 | .vendor = "Atmel", |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 1851 | .name = "AT25DF641(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1852 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1853 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1854 | .model_id = ATMEL_AT25DF641, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1855 | .total_size = 8192, |
| 1856 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1857 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1858 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1859 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1860 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1861 | .block_erasers = |
| 1862 | { |
| 1863 | { |
| 1864 | .eraseblocks = { {4 * 1024, 2048} }, |
| 1865 | .block_erase = spi_block_erase_20, |
| 1866 | }, { |
| 1867 | .eraseblocks = { {32 * 1024, 256} }, |
| 1868 | .block_erase = spi_block_erase_52, |
| 1869 | }, { |
| 1870 | .eraseblocks = { {64 * 1024, 128} }, |
| 1871 | .block_erase = spi_block_erase_d8, |
| 1872 | }, { |
| 1873 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 1874 | .block_erase = spi_block_erase_60, |
| 1875 | }, { |
| 1876 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 1877 | .block_erase = spi_block_erase_c7, |
| 1878 | } |
| 1879 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1880 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1881 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1882 | .write = spi_chip_write_256, |
| 1883 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1884 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1885 | }, |
| 1886 | |
| 1887 | { |
| 1888 | .vendor = "Atmel", |
Stefan Tauner | c9d8b27 | 2014-06-01 13:22:35 +0000 | [diff] [blame] | 1889 | .name = "AT25DL081", |
| 1890 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 1891 | .manufacture_id = ATMEL_ID, |
Stefan Tauner | c9d8b27 | 2014-06-01 13:22:35 +0000 | [diff] [blame] | 1892 | .model_id = ATMEL_AT25DF081, |
| 1893 | .total_size = 1024, |
| 1894 | .page_size = 256, |
| 1895 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1896 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1897 | .tested = TEST_UNTESTED, |
| 1898 | .probe = probe_spi_rdid, |
| 1899 | .probe_timing = TIMING_ZERO, |
| 1900 | .block_erasers = |
| 1901 | { |
| 1902 | { |
| 1903 | .eraseblocks = { {4 * 1024, 256} }, |
| 1904 | .block_erase = spi_block_erase_20, |
| 1905 | }, { |
| 1906 | .eraseblocks = { {32 * 1024, 32} }, |
| 1907 | .block_erase = spi_block_erase_52, |
| 1908 | }, { |
| 1909 | .eraseblocks = { {64 * 1024, 16} }, |
| 1910 | .block_erase = spi_block_erase_d8, |
| 1911 | }, { |
| 1912 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 1913 | .block_erase = spi_block_erase_60, |
| 1914 | }, { |
| 1915 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 1916 | .block_erase = spi_block_erase_c7, |
| 1917 | } |
| 1918 | }, |
| 1919 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1920 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
| 1921 | .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */ |
| 1922 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 1923 | .voltage = {1650, 1950}, |
| 1924 | }, |
| 1925 | |
| 1926 | { |
| 1927 | .vendor = "Atmel", |
| 1928 | .name = "AT25DL161", |
| 1929 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 1930 | .manufacture_id = ATMEL_ID, |
Stefan Tauner | c9d8b27 | 2014-06-01 13:22:35 +0000 | [diff] [blame] | 1931 | .model_id = ATMEL_AT25DL161, |
| 1932 | .total_size = 2048, |
| 1933 | .page_size = 256, |
| 1934 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1935 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1936 | .tested = TEST_UNTESTED, |
| 1937 | .probe = probe_spi_rdid, |
| 1938 | .probe_timing = TIMING_ZERO, |
| 1939 | .block_erasers = |
| 1940 | { |
| 1941 | { |
| 1942 | .eraseblocks = { {4 * 1024, 512} }, |
| 1943 | .block_erase = spi_block_erase_20, |
| 1944 | }, { |
| 1945 | .eraseblocks = { {32 * 1024, 64} }, |
| 1946 | .block_erase = spi_block_erase_52, |
| 1947 | }, { |
| 1948 | .eraseblocks = { {64 * 1024, 32} }, |
| 1949 | .block_erase = spi_block_erase_d8, |
| 1950 | }, { |
| 1951 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1952 | .block_erase = spi_block_erase_60, |
| 1953 | }, { |
| 1954 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1955 | .block_erase = spi_block_erase_c7, |
| 1956 | } |
| 1957 | }, |
| 1958 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1959 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
| 1960 | .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */ |
| 1961 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 1962 | .voltage = {1650, 1950}, |
| 1963 | }, |
| 1964 | |
| 1965 | { |
| 1966 | .vendor = "Atmel", |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1967 | .name = "AT25DQ161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1968 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1969 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1970 | .model_id = ATMEL_AT25DQ161, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1971 | .total_size = 2048, |
| 1972 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1973 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1974 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1975 | .tested = TEST_UNTESTED, |
| 1976 | .probe = probe_spi_rdid, |
| 1977 | .probe_timing = TIMING_ZERO, |
| 1978 | .block_erasers = |
| 1979 | { |
| 1980 | { |
| 1981 | .eraseblocks = { {4 * 1024, 512} }, |
| 1982 | .block_erase = spi_block_erase_20, |
| 1983 | }, { |
| 1984 | .eraseblocks = { {32 * 1024, 64} }, |
| 1985 | .block_erase = spi_block_erase_52, |
| 1986 | }, { |
| 1987 | .eraseblocks = { {64 * 1024, 32} }, |
| 1988 | .block_erase = spi_block_erase_d8, |
| 1989 | }, { |
| 1990 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1991 | .block_erase = spi_block_erase_60, |
| 1992 | }, { |
| 1993 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1994 | .block_erase = spi_block_erase_c7, |
| 1995 | } |
| 1996 | }, |
| 1997 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1998 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1999 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2000 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2001 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2002 | }, |
| 2003 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2004 | { |
| 2005 | .vendor = "Atmel", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 2006 | /* The A suffix indicates 33MHz instead of 20MHz clock rate. |
| 2007 | * All other properties seem to be the same.*/ |
| 2008 | .name = "AT25F1024(A)", |
| 2009 | .bustype = BUS_SPI, |
| 2010 | .manufacture_id = ATMEL_ID, |
| 2011 | .model_id = ATMEL_AT25F1024, |
| 2012 | .total_size = 128, |
| 2013 | .page_size = 256, |
| 2014 | .feature_bits = FEATURE_WRSR_WREN, |
| 2015 | .tested = TEST_OK_PREW, |
| 2016 | .probe = probe_spi_at25f, |
| 2017 | .probe_timing = TIMING_ZERO, |
| 2018 | .block_erasers = |
| 2019 | { |
| 2020 | { |
| 2021 | .eraseblocks = { {32 * 1024, 4} }, |
| 2022 | .block_erase = spi_block_erase_52, |
| 2023 | }, { |
| 2024 | .eraseblocks = { {128 * 1024, 1} }, |
| 2025 | .block_erase = spi_block_erase_62, |
| 2026 | } |
| 2027 | }, |
| 2028 | .printlock = spi_prettyprint_status_register_at25f, |
| 2029 | .unlock = spi_disable_blockprotect_at25f, |
| 2030 | .write = spi_chip_write_256, |
| 2031 | .read = spi_chip_read, |
| 2032 | .voltage = {2700, 3600}, |
| 2033 | }, |
| 2034 | |
| 2035 | { |
| 2036 | .vendor = "Atmel", |
| 2037 | .name = "AT25F2048", |
| 2038 | .bustype = BUS_SPI, |
| 2039 | .manufacture_id = ATMEL_ID, |
| 2040 | .model_id = ATMEL_AT25F2048, |
| 2041 | .total_size = 256, |
| 2042 | .page_size = 256, |
| 2043 | .feature_bits = FEATURE_WRSR_WREN, |
| 2044 | .tested = TEST_UNTESTED, |
| 2045 | .probe = probe_spi_at25f, |
| 2046 | .probe_timing = TIMING_ZERO, |
| 2047 | .block_erasers = |
| 2048 | { |
| 2049 | { |
| 2050 | .eraseblocks = { {64 * 1024, 4} }, |
| 2051 | .block_erase = spi_block_erase_52, |
| 2052 | }, { |
| 2053 | .eraseblocks = { {256 * 1024, 1} }, |
| 2054 | .block_erase = spi_block_erase_62, |
| 2055 | } |
| 2056 | }, |
| 2057 | .printlock = spi_prettyprint_status_register_at25f, |
| 2058 | .unlock = spi_disable_blockprotect_at25f, |
| 2059 | .write = spi_chip_write_256, |
| 2060 | .read = spi_chip_read, |
| 2061 | .voltage = {2700, 3600}, |
| 2062 | }, |
| 2063 | |
| 2064 | { |
| 2065 | .vendor = "Atmel", |
| 2066 | .name = "AT25F4096", |
| 2067 | .bustype = BUS_SPI, |
| 2068 | .manufacture_id = ATMEL_ID, |
| 2069 | .model_id = ATMEL_AT25F4096, |
| 2070 | .total_size = 512, |
| 2071 | .page_size = 256, |
| 2072 | .feature_bits = FEATURE_WRSR_WREN, |
| 2073 | .tested = TEST_OK_PREW, |
| 2074 | .probe = probe_spi_at25f, |
| 2075 | .probe_timing = TIMING_ZERO, |
| 2076 | .block_erasers = |
| 2077 | { |
| 2078 | { |
| 2079 | .eraseblocks = { {64 * 1024, 8} }, |
| 2080 | .block_erase = spi_block_erase_52, |
| 2081 | }, { |
| 2082 | .eraseblocks = { {512 * 1024, 1} }, |
| 2083 | .block_erase = spi_block_erase_62, |
| 2084 | } |
| 2085 | }, |
| 2086 | .printlock = spi_prettyprint_status_register_at25f4096, |
| 2087 | /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */ |
| 2088 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 2089 | .write = spi_chip_write_256, |
| 2090 | .read = spi_chip_read, |
| 2091 | .voltage = {2700, 3600}, |
| 2092 | }, |
| 2093 | |
| 2094 | { |
| 2095 | .vendor = "Atmel", |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 2096 | .name = "AT25F512", |
| 2097 | .bustype = BUS_SPI, |
| 2098 | .manufacture_id = ATMEL_ID, |
| 2099 | .model_id = ATMEL_AT25F512, |
| 2100 | .total_size = 64, |
| 2101 | .page_size = 256, |
| 2102 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 2103 | .tested = TEST_OK_PREW, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 2104 | .probe = probe_spi_at25f, |
| 2105 | .probe_timing = TIMING_ZERO, |
| 2106 | .block_erasers = |
| 2107 | { |
| 2108 | { |
| 2109 | .eraseblocks = { {32 * 1024, 2} }, |
| 2110 | .block_erase = spi_block_erase_52, |
| 2111 | }, { |
| 2112 | .eraseblocks = { {64 * 1024, 1} }, |
| 2113 | .block_erase = spi_block_erase_62, |
| 2114 | } |
| 2115 | }, |
| 2116 | .printlock = spi_prettyprint_status_register_at25f, |
| 2117 | .unlock = spi_disable_blockprotect_at25f, |
| 2118 | .write = spi_chip_write_256, |
| 2119 | .read = spi_chip_read, |
| 2120 | .voltage = {2700, 3600}, |
| 2121 | }, |
| 2122 | |
| 2123 | { |
| 2124 | .vendor = "Atmel", |
| 2125 | .name = "AT25F512A", |
| 2126 | .bustype = BUS_SPI, |
| 2127 | .manufacture_id = ATMEL_ID, |
| 2128 | .model_id = ATMEL_AT25F512A, |
| 2129 | .total_size = 64, |
| 2130 | .page_size = 128, |
| 2131 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 2132 | .tested = TEST_OK_PREW, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 2133 | .probe = probe_spi_at25f, |
| 2134 | .probe_timing = TIMING_ZERO, |
| 2135 | .block_erasers = |
| 2136 | { |
| 2137 | { |
| 2138 | .eraseblocks = { {32 * 1024, 2} }, |
| 2139 | .block_erase = spi_block_erase_52, |
| 2140 | }, { |
| 2141 | .eraseblocks = { {64 * 1024, 1} }, |
| 2142 | .block_erase = spi_block_erase_62, |
| 2143 | } |
| 2144 | }, |
| 2145 | .printlock = spi_prettyprint_status_register_at25f512a, |
| 2146 | /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */ |
| 2147 | .unlock = spi_disable_blockprotect_at25f512a, |
| 2148 | .write = spi_chip_write_256, |
| 2149 | .read = spi_chip_read, |
| 2150 | .voltage = {2700, 3600}, |
| 2151 | }, |
| 2152 | |
| 2153 | { |
| 2154 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2155 | .name = "AT25F512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2156 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2157 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2158 | .model_id = ATMEL_AT25F512B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2159 | .total_size = 64, |
| 2160 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 2161 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2162 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2163 | .tested = TEST_UNTESTED, |
| 2164 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2165 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2166 | .block_erasers = |
| 2167 | { |
| 2168 | { |
| 2169 | .eraseblocks = { {4 * 1024, 16} }, |
| 2170 | .block_erase = spi_block_erase_20, |
| 2171 | }, { |
| 2172 | .eraseblocks = { {32 * 1024, 2} }, |
| 2173 | .block_erase = spi_block_erase_52, |
| 2174 | }, { |
| 2175 | .eraseblocks = { {32 * 1024, 2} }, |
| 2176 | .block_erase = spi_block_erase_d8, |
| 2177 | }, { |
| 2178 | .eraseblocks = { {64 * 1024, 1} }, |
| 2179 | .block_erase = spi_block_erase_60, |
| 2180 | }, { |
| 2181 | .eraseblocks = { {64 * 1024, 1} }, |
| 2182 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | 3c0fcd0 | 2012-09-21 12:46:56 +0000 | [diff] [blame] | 2183 | }, { |
| 2184 | .eraseblocks = { {64 * 1024, 1} }, |
| 2185 | .block_erase = spi_block_erase_62, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2186 | } |
| 2187 | }, |
Stefan Tauner | 7bf4ed9 | 2012-08-26 21:04:27 +0000 | [diff] [blame] | 2188 | .printlock = spi_prettyprint_status_register_at25f512b, |
| 2189 | .unlock = spi_disable_blockprotect_at25f512b, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2190 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2191 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2192 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2193 | }, |
| 2194 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2195 | { |
| 2196 | .vendor = "Atmel", |
| 2197 | .name = "AT25FS010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2198 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2199 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2200 | .model_id = ATMEL_AT25FS010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2201 | .total_size = 128, |
| 2202 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2203 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 2204 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2205 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2206 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2207 | .block_erasers = |
| 2208 | { |
| 2209 | { |
| 2210 | .eraseblocks = { {4 * 1024, 32} }, |
| 2211 | .block_erase = spi_block_erase_20, |
| 2212 | }, { |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 2213 | .eraseblocks = { {4 * 1024, 32} }, |
| 2214 | .block_erase = spi_block_erase_d7, |
| 2215 | }, { |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2216 | .eraseblocks = { {32 * 1024, 4} }, |
| 2217 | .block_erase = spi_block_erase_52, |
| 2218 | }, { |
| 2219 | .eraseblocks = { {32 * 1024, 4} }, |
| 2220 | .block_erase = spi_block_erase_d8, |
| 2221 | }, { |
| 2222 | .eraseblocks = { {128 * 1024, 1} }, |
| 2223 | .block_erase = spi_block_erase_60, |
| 2224 | }, { |
| 2225 | .eraseblocks = { {128 * 1024, 1} }, |
| 2226 | .block_erase = spi_block_erase_c7, |
| 2227 | } |
| 2228 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 2229 | .printlock = spi_prettyprint_status_register_at25fs010, |
| 2230 | .unlock = spi_disable_blockprotect_at25fs010, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2231 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2232 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2233 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2234 | }, |
| 2235 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2236 | { |
| 2237 | .vendor = "Atmel", |
| 2238 | .name = "AT25FS040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2239 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2240 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2241 | .model_id = ATMEL_AT25FS040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2242 | .total_size = 512, |
| 2243 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2244 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2245 | .tested = TEST_UNTESTED, |
| 2246 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2247 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2248 | .block_erasers = |
| 2249 | { |
| 2250 | { |
| 2251 | .eraseblocks = { {4 * 1024, 128} }, |
| 2252 | .block_erase = spi_block_erase_20, |
| 2253 | }, { |
| 2254 | .eraseblocks = { {64 * 1024, 8} }, |
| 2255 | .block_erase = spi_block_erase_52, |
| 2256 | }, { |
| 2257 | .eraseblocks = { {64 * 1024, 8} }, |
| 2258 | .block_erase = spi_block_erase_d8, |
| 2259 | }, { |
| 2260 | .eraseblocks = { {512 * 1024, 1} }, |
| 2261 | .block_erase = spi_block_erase_60, |
| 2262 | }, { |
| 2263 | .eraseblocks = { {512 * 1024, 1} }, |
| 2264 | .block_erase = spi_block_erase_c7, |
| 2265 | } |
| 2266 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 2267 | .printlock = spi_prettyprint_status_register_at25fs040, |
| 2268 | .unlock = spi_disable_blockprotect_at25fs040, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2269 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2270 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2271 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2272 | }, |
| 2273 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2274 | { |
| 2275 | .vendor = "Atmel", |
jvm | a3ab6c6 | 2018-03-08 15:43:20 +0100 | [diff] [blame] | 2276 | .name = "AT25SF041", |
| 2277 | .bustype = BUS_SPI, |
| 2278 | .manufacture_id = ATMEL_ID, |
| 2279 | .model_id = ATMEL_AT25SF041, |
| 2280 | .total_size = 512, |
| 2281 | .page_size = 256, |
| 2282 | .feature_bits = FEATURE_WRSR_WREN, |
| 2283 | .tested = TEST_OK_PREW, |
| 2284 | .probe = probe_spi_rdid, |
| 2285 | .probe_timing = TIMING_ZERO, |
| 2286 | .block_erasers = |
| 2287 | { |
| 2288 | { |
| 2289 | .eraseblocks = { {4 * 1024, 128} }, |
| 2290 | .block_erase = spi_block_erase_20, |
| 2291 | }, { |
| 2292 | .eraseblocks = { {32 * 1024, 16} }, |
| 2293 | .block_erase = spi_block_erase_52, |
| 2294 | }, { |
| 2295 | .eraseblocks = { {64 * 1024, 8} }, |
| 2296 | .block_erase = spi_block_erase_d8, |
| 2297 | }, { |
| 2298 | .eraseblocks = { {512 * 1024, 1} }, |
| 2299 | .block_erase = spi_block_erase_60, |
| 2300 | }, { |
| 2301 | .eraseblocks = { {512 * 1024, 1} }, |
| 2302 | .block_erase = spi_block_erase_c7, |
| 2303 | } |
| 2304 | }, |
| 2305 | .printlock = spi_prettyprint_status_register_plain, |
| 2306 | .unlock = spi_disable_blockprotect, |
| 2307 | .write = spi_chip_write_256, |
| 2308 | .read = spi_chip_read, |
| 2309 | .voltage = {2500, 3600}, |
| 2310 | }, |
| 2311 | |
| 2312 | { |
| 2313 | .vendor = "Atmel", |
Evan Jensen | 291c101 | 2018-05-17 14:30:19 -0700 | [diff] [blame] | 2314 | .name = "AT25SF081", |
| 2315 | .bustype = BUS_SPI, |
| 2316 | .manufacture_id = ATMEL_ID, |
| 2317 | .model_id = ATMEL_AT25SF081, |
| 2318 | .total_size = 1024, |
| 2319 | .page_size = 256, |
| 2320 | .feature_bits = FEATURE_WRSR_WREN, |
| 2321 | .tested = TEST_OK_PREW, |
| 2322 | .probe = probe_spi_rdid, |
| 2323 | .probe_timing = TIMING_ZERO, |
| 2324 | .block_erasers = |
| 2325 | { |
| 2326 | { |
| 2327 | .eraseblocks = { {4 * 1024, 256} }, |
| 2328 | .block_erase = spi_block_erase_20, |
| 2329 | }, { |
| 2330 | .eraseblocks = { {32 * 1024, 32} }, |
| 2331 | .block_erase = spi_block_erase_52, |
| 2332 | }, { |
| 2333 | .eraseblocks = { {64 * 1024, 16} }, |
| 2334 | .block_erase = spi_block_erase_d8, |
| 2335 | }, { |
| 2336 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2337 | .block_erase = spi_block_erase_60, |
| 2338 | }, { |
| 2339 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2340 | .block_erase = spi_block_erase_c7, |
| 2341 | } |
| 2342 | }, |
| 2343 | .printlock = spi_prettyprint_status_register_plain, |
| 2344 | .unlock = spi_disable_blockprotect, |
| 2345 | .write = spi_chip_write_256, |
| 2346 | .read = spi_chip_read, |
| 2347 | .voltage = {2300, 3600}, |
| 2348 | }, |
| 2349 | |
| 2350 | { |
| 2351 | .vendor = "Atmel", |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 2352 | .name = "AT25SF161", |
| 2353 | .bustype = BUS_SPI, |
| 2354 | .manufacture_id = ATMEL_ID, |
| 2355 | .model_id = ATMEL_AT25SF161, |
| 2356 | .total_size = 2048, |
| 2357 | .page_size = 256, |
| 2358 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 2359 | .tested = TEST_OK_PREW, |
| 2360 | .probe = probe_spi_rdid, |
| 2361 | .probe_timing = TIMING_ZERO, |
| 2362 | .block_erasers = |
| 2363 | { |
| 2364 | { |
| 2365 | .eraseblocks = { {4 * 1024, 512} }, |
| 2366 | .block_erase = spi_block_erase_20, |
| 2367 | }, { |
| 2368 | .eraseblocks = { {32 * 1024, 64} }, |
| 2369 | .block_erase = spi_block_erase_52, |
| 2370 | }, { |
| 2371 | .eraseblocks = { {64 * 1024, 32} }, |
| 2372 | .block_erase = spi_block_erase_d8, |
| 2373 | }, { |
| 2374 | .eraseblocks = { {2048 * 1024, 1} }, |
| 2375 | .block_erase = spi_block_erase_60, |
| 2376 | }, { |
| 2377 | .eraseblocks = { {2048 * 1024, 1} }, |
| 2378 | .block_erase = spi_block_erase_c7, |
| 2379 | } |
| 2380 | }, |
| 2381 | .printlock = spi_prettyprint_status_register_plain, |
| 2382 | .unlock = spi_disable_blockprotect, |
| 2383 | .write = spi_chip_write_256, |
| 2384 | .read = spi_chip_read, |
| 2385 | .voltage = {2500, 3600}, |
| 2386 | }, |
| 2387 | |
| 2388 | { |
Alan Green | 57938f8 | 2019-06-27 15:06:43 +1000 | [diff] [blame] | 2389 | .vendor = "Atmel", |
darkarnium | 4139438 | 2019-11-04 20:06:48 +0000 | [diff] [blame] | 2390 | .name = "AT25SF321", |
| 2391 | .bustype = BUS_SPI, |
| 2392 | .manufacture_id = ATMEL_ID, |
| 2393 | .model_id = ATMEL_AT25SF321, |
| 2394 | .total_size = 4096, |
| 2395 | .page_size = 256, |
| 2396 | .feature_bits = FEATURE_WRSR_WREN, |
| 2397 | .tested = TEST_OK_PR, |
| 2398 | .probe = probe_spi_rdid, |
| 2399 | .probe_timing = TIMING_ZERO, |
| 2400 | .block_erasers = |
| 2401 | { |
| 2402 | { |
| 2403 | .eraseblocks = { {4 * 1024, 1024} }, |
| 2404 | .block_erase = spi_block_erase_20, |
| 2405 | }, { |
| 2406 | .eraseblocks = { {32 * 1024, 128} }, |
| 2407 | .block_erase = spi_block_erase_52, |
| 2408 | }, { |
| 2409 | .eraseblocks = { {64 * 1024, 64} }, |
| 2410 | .block_erase = spi_block_erase_d8, |
| 2411 | }, { |
| 2412 | .eraseblocks = { {4096 * 1024, 1} }, |
| 2413 | .block_erase = spi_block_erase_60, |
| 2414 | }, { |
| 2415 | .eraseblocks = { {4096 * 1024, 1} }, |
| 2416 | .block_erase = spi_block_erase_c7, |
| 2417 | } |
| 2418 | }, |
| 2419 | .printlock = spi_prettyprint_status_register_plain, |
| 2420 | .unlock = spi_disable_blockprotect, |
| 2421 | .write = spi_chip_write_256, |
| 2422 | .read = spi_chip_read, |
| 2423 | .voltage = {2500, 3600}, |
| 2424 | }, |
| 2425 | |
| 2426 | { |
| 2427 | .vendor = "Atmel", |
Hal Martin | 49e23d2 | 2018-05-27 14:18:43 +0200 | [diff] [blame] | 2428 | .name = "AT25SL128A", |
| 2429 | .bustype = BUS_SPI, |
| 2430 | .manufacture_id = ATMEL_ID, |
| 2431 | .model_id = ATMEL_AT25SL128A, |
| 2432 | .total_size = 16384, |
| 2433 | .page_size = 256, |
| 2434 | /* supports SFDP */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 2435 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QPI_SRP, |
| 2436 | .dummy_cycles = { .qpi_read_params = { 4, 4, 6, 8 } }, |
Hal Martin | 49e23d2 | 2018-05-27 14:18:43 +0200 | [diff] [blame] | 2437 | .tested = TEST_OK_PREW, |
| 2438 | .probe = probe_spi_rdid, |
| 2439 | .probe_timing = TIMING_ZERO, |
| 2440 | .block_erasers = |
| 2441 | { |
| 2442 | { |
| 2443 | .eraseblocks = { {4 * 1024, 4096} }, |
| 2444 | .block_erase = spi_block_erase_20, |
| 2445 | }, { |
| 2446 | .eraseblocks = { {32 * 1024, 512} }, |
| 2447 | .block_erase = spi_block_erase_52, |
| 2448 | }, { |
| 2449 | .eraseblocks = { {64 * 1024, 256} }, |
| 2450 | .block_erase = spi_block_erase_d8, |
| 2451 | }, { |
| 2452 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 2453 | .block_erase = spi_block_erase_60, |
| 2454 | }, { |
| 2455 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 2456 | .block_erase = spi_block_erase_c7, |
| 2457 | } |
| 2458 | }, |
| 2459 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 2460 | .unlock = spi_disable_blockprotect, |
| 2461 | .write = spi_chip_write_256, |
| 2462 | .read = spi_chip_read, |
| 2463 | .voltage = {1700, 2000}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 2464 | .reg_bits = |
| 2465 | { |
Nico Huber | 226bb87 | 2024-04-09 23:30:34 +0200 | [diff] [blame] | 2466 | .qe = {STATUS2, 1, RW}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 2467 | .srp = {STATUS1, 7, RW}, |
| 2468 | .srl = {STATUS2, 0, RW}, |
| 2469 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 2470 | .tb = {STATUS1, 5, RW}, |
| 2471 | .sec = {STATUS1, 6, RW}, |
| 2472 | .cmp = {STATUS2, 6, RW}, |
| 2473 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 2474 | .wp_write_cfg = spi_wp_write_cfg, |
| 2475 | .wp_read_cfg = spi_wp_read_cfg, |
| 2476 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 2477 | .decode_range = decode_range_spi25, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 2478 | .prepare_access = spi_prepare_io, |
| 2479 | .finish_access = spi_finish_io, |
Hal Martin | 49e23d2 | 2018-05-27 14:18:43 +0200 | [diff] [blame] | 2480 | }, |
| 2481 | |
| 2482 | { |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 2483 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2484 | .name = "AT26DF041", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2485 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2486 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2487 | .model_id = ATMEL_AT26DF041, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2488 | .total_size = 512, |
| 2489 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2490 | /* 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] | 2491 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2492 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2493 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2494 | .block_erasers = |
| 2495 | { |
| 2496 | { |
Stefan Tauner | 94b39b4 | 2012-10-27 00:06:02 +0000 | [diff] [blame] | 2497 | .eraseblocks = { {256, 2048} }, |
| 2498 | .block_erase = spi_block_erase_81, |
| 2499 | }, { |
| 2500 | .eraseblocks = { {2 * 1024, 256} }, |
| 2501 | .block_erase = spi_block_erase_50, |
| 2502 | }, { |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2503 | .eraseblocks = { {4 * 1024, 128} }, |
| 2504 | .block_erase = spi_block_erase_20, |
| 2505 | } |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2506 | }, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2507 | .printlock = spi_prettyprint_status_register_plain, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2508 | /* 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] | 2509 | .write = spi_chip_write_1, |
| 2510 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2511 | .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] | 2512 | }, |
| 2513 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2514 | { |
| 2515 | .vendor = "Atmel", |
| 2516 | .name = "AT26DF081A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2517 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2518 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2519 | .model_id = ATMEL_AT26DF081A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2520 | .total_size = 1024, |
| 2521 | .page_size = 256, |
Mathias Krause | 2c3afa3 | 2011-01-17 07:45:54 +0000 | [diff] [blame] | 2522 | .feature_bits = FEATURE_WRSR_WREN, |
| 2523 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2524 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2525 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2526 | .block_erasers = |
| 2527 | { |
| 2528 | { |
| 2529 | .eraseblocks = { {4 * 1024, 256} }, |
| 2530 | .block_erase = spi_block_erase_20, |
| 2531 | }, { |
| 2532 | .eraseblocks = { {32 * 1024, 32} }, |
| 2533 | .block_erase = spi_block_erase_52, |
| 2534 | }, { |
| 2535 | .eraseblocks = { {64 * 1024, 16} }, |
| 2536 | .block_erase = spi_block_erase_d8, |
| 2537 | }, { |
| 2538 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2539 | .block_erase = spi_block_erase_60, |
| 2540 | }, { |
| 2541 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2542 | .block_erase = spi_block_erase_c7, |
| 2543 | } |
| 2544 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2545 | .printlock = spi_prettyprint_status_register_at26df081a, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2546 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2547 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2548 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2549 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2550 | }, |
| 2551 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2552 | { |
| 2553 | .vendor = "Atmel", |
| 2554 | .name = "AT26DF161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2555 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2556 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2557 | .model_id = ATMEL_AT26DF161, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2558 | .total_size = 2048, |
| 2559 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2560 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 2561 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2562 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2563 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2564 | .block_erasers = |
| 2565 | { |
| 2566 | { |
| 2567 | .eraseblocks = { {4 * 1024, 512} }, |
| 2568 | .block_erase = spi_block_erase_20, |
| 2569 | }, { |
| 2570 | .eraseblocks = { {32 * 1024, 64} }, |
| 2571 | .block_erase = spi_block_erase_52, |
| 2572 | }, { |
| 2573 | .eraseblocks = { {64 * 1024, 32} }, |
| 2574 | .block_erase = spi_block_erase_d8, |
| 2575 | }, { |
| 2576 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2577 | .block_erase = spi_block_erase_60, |
| 2578 | }, { |
| 2579 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2580 | .block_erase = spi_block_erase_c7, |
| 2581 | } |
| 2582 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 2583 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2584 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2585 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2586 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2587 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2588 | }, |
| 2589 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2590 | { |
| 2591 | .vendor = "Atmel", |
| 2592 | .name = "AT26DF161A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2593 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2594 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2595 | .model_id = ATMEL_AT26DF161A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2596 | .total_size = 2048, |
| 2597 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2598 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2599 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2600 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2601 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2602 | .block_erasers = |
| 2603 | { |
| 2604 | { |
| 2605 | .eraseblocks = { {4 * 1024, 512} }, |
| 2606 | .block_erase = spi_block_erase_20, |
| 2607 | }, { |
| 2608 | .eraseblocks = { {32 * 1024, 64} }, |
| 2609 | .block_erase = spi_block_erase_52, |
| 2610 | }, { |
| 2611 | .eraseblocks = { {64 * 1024, 32} }, |
| 2612 | .block_erase = spi_block_erase_d8, |
| 2613 | }, { |
| 2614 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2615 | .block_erase = spi_block_erase_60, |
| 2616 | }, { |
| 2617 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2618 | .block_erase = spi_block_erase_c7, |
| 2619 | } |
| 2620 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2621 | .printlock = spi_prettyprint_status_register_at26df081a, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2622 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2623 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2624 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2625 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2626 | }, |
| 2627 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2628 | { |
| 2629 | .vendor = "Atmel", |
| 2630 | .name = "AT26F004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2631 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2632 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2633 | .model_id = ATMEL_AT26F004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2634 | .total_size = 512, |
| 2635 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2636 | .feature_bits = FEATURE_WRSR_WREN, |
Alan Green | 908adf4 | 2019-07-03 15:34:06 +1000 | [diff] [blame] | 2637 | .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD}, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2638 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2639 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2640 | .block_erasers = |
| 2641 | { |
| 2642 | { |
| 2643 | .eraseblocks = { {4 * 1024, 128} }, |
| 2644 | .block_erase = spi_block_erase_20, |
| 2645 | }, { |
| 2646 | .eraseblocks = { {32 * 1024, 16} }, |
| 2647 | .block_erase = spi_block_erase_52, |
| 2648 | }, { |
| 2649 | .eraseblocks = { {64 * 1024, 8} }, |
| 2650 | .block_erase = spi_block_erase_d8, |
| 2651 | }, { |
| 2652 | .eraseblocks = { {512 * 1024, 1} }, |
| 2653 | .block_erase = spi_block_erase_60, |
| 2654 | }, { |
| 2655 | .eraseblocks = { {512 * 1024, 1} }, |
| 2656 | .block_erase = spi_block_erase_c7, |
| 2657 | } |
| 2658 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2659 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2660 | .write = NULL, /* Incompatible Page write */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2661 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2662 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2663 | }, |
| 2664 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2665 | { |
| 2666 | .vendor = "Atmel", |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2667 | .name = "AT29C010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2668 | .bustype = BUS_PARALLEL, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2669 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2670 | .model_id = ATMEL_AT29C010A, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2671 | .total_size = 128, |
| 2672 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2673 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 2674 | .tested = TEST_OK_PRE, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2675 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 2676 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2677 | .block_erasers = |
| 2678 | { |
| 2679 | { |
| 2680 | .eraseblocks = { {128 * 1024, 1} }, |
| 2681 | .block_erase = erase_chip_block_jedec, |
| 2682 | } |
| 2683 | }, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2684 | .write = write_jedec, /* FIXME */ |
| 2685 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2686 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 2687 | .prepare_access = prepare_memory_access, |
| 2688 | .finish_access = finish_memory_access, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2689 | }, |
| 2690 | |
| 2691 | { |
| 2692 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2693 | .name = "AT29C020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2694 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2695 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2696 | .model_id = ATMEL_AT29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2697 | .total_size = 256, |
| 2698 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2699 | .feature_bits = FEATURE_LONG_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 2700 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2701 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 2702 | .probe_timing = 10000, /* 10ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2703 | .block_erasers = |
| 2704 | { |
| 2705 | { |
| 2706 | .eraseblocks = { {256 * 1024, 1} }, |
| 2707 | .block_erase = erase_chip_block_jedec, |
| 2708 | } |
| 2709 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2710 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2711 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2712 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 2713 | .prepare_access = prepare_memory_access, |
| 2714 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2715 | }, |
| 2716 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2717 | { |
| 2718 | .vendor = "Atmel", |
| 2719 | .name = "AT29C040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2720 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2721 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2722 | .model_id = ATMEL_AT29C040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2723 | .total_size = 512, |
| 2724 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2725 | .feature_bits = FEATURE_LONG_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2726 | .tested = TEST_UNTESTED, |
| 2727 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 2728 | .probe_timing = 10000, /* 10 ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2729 | .block_erasers = |
| 2730 | { |
| 2731 | { |
| 2732 | .eraseblocks = { {512 * 1024, 1} }, |
| 2733 | .block_erase = erase_chip_block_jedec, |
| 2734 | } |
| 2735 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2736 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2737 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2738 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 2739 | .prepare_access = prepare_memory_access, |
| 2740 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2741 | }, |
| 2742 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2743 | { |
| 2744 | .vendor = "Atmel", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 2745 | .name = "AT29C512", |
| 2746 | .bustype = BUS_PARALLEL, |
| 2747 | .manufacture_id = ATMEL_ID, |
| 2748 | .model_id = ATMEL_AT29C512, |
| 2749 | .total_size = 64, |
| 2750 | .page_size = 128, |
| 2751 | .feature_bits = FEATURE_LONG_RESET, |
| 2752 | .tested = TEST_OK_PREW, |
| 2753 | .probe = probe_jedec, |
| 2754 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
| 2755 | .block_erasers = |
| 2756 | { |
| 2757 | { |
| 2758 | .eraseblocks = { {64 * 1024, 1} }, |
| 2759 | .block_erase = erase_chip_block_jedec, |
| 2760 | } |
| 2761 | }, |
| 2762 | .write = write_jedec, |
| 2763 | .read = read_memmapped, |
| 2764 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 2765 | .prepare_access = prepare_memory_access, |
| 2766 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 2767 | }, |
| 2768 | |
| 2769 | { |
| 2770 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2771 | .name = "AT45CS1282", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2772 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2773 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2774 | .model_id = ATMEL_AT45CS1282, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2775 | .total_size = 16896, /* No power of two sizes */ |
| 2776 | .page_size = 1056, /* No power of two sizes */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2777 | /* 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] | 2778 | /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */ |
| 2779 | .feature_bits = FEATURE_OTP, |
| 2780 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2781 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2782 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | 1dd5d3a | 2013-08-27 18:02:19 +0000 | [diff] [blame] | 2783 | .block_erasers = |
| 2784 | { |
| 2785 | { |
| 2786 | .eraseblocks = { |
| 2787 | {8 * 1056, 1}, /* sector 0a: opcode 50h */ |
| 2788 | {248 * 1056, 1}, /* sector 0b: opcode 7Ch */ |
| 2789 | {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */ |
| 2790 | }, |
| 2791 | .block_erase = spi_erase_at45cs_sector, |
| 2792 | } |
| 2793 | }, |
| 2794 | .printlock = spi_prettyprint_status_register_plain, |
Stefan Tauner | 1dd5d3a | 2013-08-27 18:02:19 +0000 | [diff] [blame] | 2795 | .write = spi_write_at45db, |
| 2796 | .read = spi_read_at45db, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2797 | .voltage = {2700, 3600}, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2798 | .gran = write_gran_1056bytes, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2799 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2800 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2801 | { |
| 2802 | .vendor = "Atmel", |
| 2803 | .name = "AT45DB011D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2804 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2805 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2806 | .model_id = ATMEL_AT45DB011D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2807 | .total_size = 128, /* or 132, determined from status register */ |
| 2808 | .page_size = 256, /* or 264, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2809 | /* 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] | 2810 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2811 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 2812 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2813 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2814 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2815 | .block_erasers = |
| 2816 | { |
| 2817 | { |
| 2818 | .eraseblocks = { {256, 512} }, |
| 2819 | .block_erase = spi_erase_at45db_page, |
| 2820 | }, { |
| 2821 | .eraseblocks = { {8 * 256, 512/8} }, |
| 2822 | .block_erase = spi_erase_at45db_block, |
| 2823 | }, { |
| 2824 | .eraseblocks = { |
| 2825 | {8 * 256, 1}, |
| 2826 | {120 * 256, 1}, |
| 2827 | {128 * 256, 3}, |
| 2828 | }, |
| 2829 | .block_erase = spi_erase_at45db_sector |
| 2830 | }, { |
| 2831 | .eraseblocks = { {128 * 1024, 1} }, |
| 2832 | .block_erase = spi_erase_at45db_chip, |
| 2833 | } |
| 2834 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2835 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2836 | .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] | 2837 | /* granularity will be set by the probing function. */ |
| 2838 | .write = spi_write_at45db, |
| 2839 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2840 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2841 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2842 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2843 | { |
| 2844 | .vendor = "Atmel", |
| 2845 | .name = "AT45DB021D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2846 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2847 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2848 | .model_id = ATMEL_AT45DB021D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2849 | .total_size = 256, /* or 264, determined from status register */ |
| 2850 | .page_size = 256, /* or 264, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2851 | /* 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] | 2852 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2853 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 2854 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2855 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2856 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2857 | .block_erasers = |
| 2858 | { |
| 2859 | { |
| 2860 | .eraseblocks = { {256, 1024} }, |
| 2861 | .block_erase = spi_erase_at45db_page, |
| 2862 | }, { |
| 2863 | .eraseblocks = { {8 * 256, 1024/8} }, |
| 2864 | .block_erase = spi_erase_at45db_block, |
| 2865 | }, { |
| 2866 | .eraseblocks = { |
| 2867 | {8 * 256, 1}, |
| 2868 | {120 * 256, 1}, |
| 2869 | {128 * 256, 7}, |
| 2870 | }, |
| 2871 | .block_erase = spi_erase_at45db_sector |
| 2872 | }, { |
| 2873 | .eraseblocks = { {256 * 1024, 1} }, |
| 2874 | .block_erase = spi_erase_at45db_chip, |
| 2875 | } |
| 2876 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2877 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2878 | .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] | 2879 | /* granularity will be set by the probing function. */ |
| 2880 | .write = spi_write_at45db, |
| 2881 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2882 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2883 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2884 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2885 | { |
| 2886 | .vendor = "Atmel", |
| 2887 | .name = "AT45DB041D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2888 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2889 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2890 | .model_id = ATMEL_AT45DB041D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2891 | .total_size = 512, /* or 528, determined from status register */ |
| 2892 | .page_size = 256, /* or 264, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2893 | /* 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] | 2894 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2895 | .feature_bits = FEATURE_OTP, |
| 2896 | .tested = TEST_OK_PREW, |
| 2897 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2898 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2899 | .block_erasers = |
| 2900 | { |
| 2901 | { |
| 2902 | .eraseblocks = { {256, 2048} }, |
| 2903 | .block_erase = spi_erase_at45db_page, |
| 2904 | }, { |
| 2905 | .eraseblocks = { {8 * 256, 2048/8} }, |
| 2906 | .block_erase = spi_erase_at45db_block, |
| 2907 | }, { |
| 2908 | .eraseblocks = { |
| 2909 | {8 * 256, 1}, |
| 2910 | {248 * 256, 1}, |
| 2911 | {256 * 256, 7}, |
| 2912 | }, |
| 2913 | .block_erase = spi_erase_at45db_sector |
| 2914 | }, { |
| 2915 | .eraseblocks = { {512 * 1024, 1} }, |
| 2916 | .block_erase = spi_erase_at45db_chip, |
| 2917 | } |
| 2918 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2919 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2920 | .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] | 2921 | /* granularity will be set by the probing function. */ |
| 2922 | .write = spi_write_at45db, |
| 2923 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 2924 | .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] | 2925 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2926 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2927 | { |
| 2928 | .vendor = "Atmel", |
| 2929 | .name = "AT45DB081D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2930 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2931 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2932 | .model_id = ATMEL_AT45DB081D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2933 | .total_size = 1024, /* or 1056, determined from status register */ |
| 2934 | .page_size = 256, /* or 264, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2935 | /* 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] | 2936 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2937 | .feature_bits = FEATURE_OTP, |
Angel Pons | 250aeba | 2018-09-30 20:28:22 +0200 | [diff] [blame] | 2938 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2939 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2940 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2941 | .block_erasers = |
| 2942 | { |
| 2943 | { |
| 2944 | .eraseblocks = { {256, 4096} }, |
| 2945 | .block_erase = spi_erase_at45db_page, |
| 2946 | }, { |
| 2947 | .eraseblocks = { {8 * 256, 4096/8} }, |
| 2948 | .block_erase = spi_erase_at45db_block, |
| 2949 | }, { |
| 2950 | .eraseblocks = { |
| 2951 | {8 * 256, 1}, |
| 2952 | {248 * 256, 1}, |
| 2953 | {256 * 256, 15}, |
| 2954 | }, |
| 2955 | .block_erase = spi_erase_at45db_sector |
| 2956 | }, { |
| 2957 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2958 | .block_erase = spi_erase_at45db_chip, |
| 2959 | } |
| 2960 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2961 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 2962 | .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] | 2963 | /* granularity will be set by the probing function. */ |
| 2964 | .write = spi_write_at45db, |
| 2965 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2966 | .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] | 2967 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2968 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2969 | { |
| 2970 | .vendor = "Atmel", |
| 2971 | .name = "AT45DB161D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2972 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2973 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2974 | .model_id = ATMEL_AT45DB161D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 2975 | .total_size = 2048, /* or 2112, determined from status register */ |
| 2976 | .page_size = 512, /* or 528, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2977 | /* 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] | 2978 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2979 | .feature_bits = FEATURE_OTP, |
| 2980 | .tested = TEST_OK_PREW, |
| 2981 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2982 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2983 | .block_erasers = |
| 2984 | { |
| 2985 | { |
| 2986 | .eraseblocks = { {512, 4096} }, |
| 2987 | .block_erase = spi_erase_at45db_page, |
| 2988 | }, { |
| 2989 | .eraseblocks = { {8 * 512, 4096/8} }, |
| 2990 | .block_erase = spi_erase_at45db_block, |
| 2991 | }, { |
| 2992 | .eraseblocks = { |
| 2993 | {8 * 512, 1}, |
| 2994 | {248 * 512, 1}, |
| 2995 | {256 * 512, 15}, |
| 2996 | }, |
| 2997 | .block_erase = spi_erase_at45db_sector |
| 2998 | }, { |
| 2999 | .eraseblocks = { {2048 * 1024, 1} }, |
| 3000 | .block_erase = spi_erase_at45db_chip, |
| 3001 | } |
| 3002 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3003 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3004 | .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] | 3005 | /* granularity will be set by the probing function. */ |
| 3006 | .write = spi_write_at45db, |
| 3007 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 3008 | .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] | 3009 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3010 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3011 | { |
| 3012 | .vendor = "Atmel", |
| 3013 | .name = "AT45DB321C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3014 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3015 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3016 | .model_id = ATMEL_AT45DB321C, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 3017 | .total_size = 4224, /* No power of two sizes */ |
| 3018 | .page_size = 528, /* No power of two sizes */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3019 | /* 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] | 3020 | /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */ |
| 3021 | .feature_bits = FEATURE_OTP, |
| 3022 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3023 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3024 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | fdc4f7e | 2013-08-27 18:02:12 +0000 | [diff] [blame] | 3025 | .block_erasers = |
| 3026 | { |
| 3027 | { |
| 3028 | .eraseblocks = { {528, 8192} }, |
| 3029 | .block_erase = spi_erase_at45db_page, |
| 3030 | }, { |
| 3031 | .eraseblocks = { {8 * 528, 8192/8} }, |
| 3032 | .block_erase = spi_erase_at45db_block, |
| 3033 | }, /* Although the datasheets describes sectors (which can be write protected) |
| 3034 | * there seems to be no erase functions for them. |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 3035 | { |
Stefan Tauner | fdc4f7e | 2013-08-27 18:02:12 +0000 | [diff] [blame] | 3036 | .eraseblocks = { |
| 3037 | {8 * 528, 1}, |
| 3038 | {120 * 528, 1}, |
| 3039 | {128 * 528, 63}, |
| 3040 | }, |
| 3041 | .block_erase = spi_erase_at45db_sector |
| 3042 | }, */ { |
| 3043 | .eraseblocks = { {4224 * 1024, 1} }, |
| 3044 | .block_erase = spi_erase_at45db_chip, |
| 3045 | } |
| 3046 | }, |
| 3047 | .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */ |
Stefan Tauner | fdc4f7e | 2013-08-27 18:02:12 +0000 | [diff] [blame] | 3048 | .write = spi_write_at45db, |
| 3049 | .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3050 | .voltage = {2700, 3600}, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3051 | .gran = write_gran_528bytes, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 3052 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3053 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3054 | { |
| 3055 | .vendor = "Atmel", |
| 3056 | .name = "AT45DB321D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3057 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3058 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3059 | .model_id = ATMEL_AT45DB321D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 3060 | .total_size = 4096, /* or 4224, determined from status register */ |
| 3061 | .page_size = 512, /* or 528, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3062 | /* 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] | 3063 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 3064 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 3065 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3066 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3067 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3068 | .block_erasers = |
| 3069 | { |
| 3070 | { |
| 3071 | .eraseblocks = { {512, 8192} }, |
| 3072 | .block_erase = spi_erase_at45db_page, |
| 3073 | }, { |
| 3074 | .eraseblocks = { {8 * 512, 8192/8} }, |
| 3075 | .block_erase = spi_erase_at45db_block, |
| 3076 | }, { |
| 3077 | .eraseblocks = { |
| 3078 | {8 * 512, 1}, |
| 3079 | {120 * 512, 1}, |
| 3080 | {128 * 512, 63}, |
| 3081 | }, |
| 3082 | .block_erase = spi_erase_at45db_sector |
| 3083 | }, { |
| 3084 | .eraseblocks = { {4096 * 1024, 1} }, |
| 3085 | .block_erase = spi_erase_at45db_chip, |
| 3086 | } |
| 3087 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3088 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3089 | .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] | 3090 | /* granularity will be set by the probing function. */ |
| 3091 | .write = spi_write_at45db, |
| 3092 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 3093 | .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */ |
| 3094 | }, |
| 3095 | |
| 3096 | { |
| 3097 | .vendor = "Atmel", |
| 3098 | .name = "AT45DB321E", |
| 3099 | .bustype = BUS_SPI, |
| 3100 | .manufacture_id = ATMEL_ID, |
| 3101 | .model_id = ATMEL_AT45DB321C, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 3102 | .total_size = 4096, /* or 4224, determined from status register */ |
| 3103 | .page_size = 512, /* or 528, determined from status register */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3104 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
| 3105 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 3106 | .feature_bits = FEATURE_OTP, |
| 3107 | .tested = TEST_UNTESTED, |
| 3108 | .probe = probe_spi_at45db, |
| 3109 | .probe_timing = TIMING_ZERO, |
| 3110 | .block_erasers = |
| 3111 | { |
| 3112 | { |
| 3113 | .eraseblocks = { {512, 8192} }, |
| 3114 | .block_erase = spi_erase_at45db_page, |
| 3115 | }, { |
| 3116 | .eraseblocks = { {8 * 512, 8192/8} }, |
| 3117 | .block_erase = spi_erase_at45db_block, |
| 3118 | }, { |
| 3119 | .eraseblocks = { |
| 3120 | {8 * 512, 1}, |
| 3121 | {120 * 512, 1}, |
| 3122 | {128 * 512, 63}, |
| 3123 | }, |
| 3124 | .block_erase = spi_erase_at45db_sector |
| 3125 | }, { |
| 3126 | .eraseblocks = { {4096 * 1024, 1} }, |
| 3127 | .block_erase = spi_erase_at45db_chip, |
| 3128 | } |
| 3129 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3130 | .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */ |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3131 | .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] | 3132 | /* granularity will be set by the probing function. */ |
| 3133 | .write = spi_write_at45db, |
| 3134 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 3135 | .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] | 3136 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3137 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3138 | { |
| 3139 | .vendor = "Atmel", |
| 3140 | .name = "AT45DB642D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3141 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3142 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3143 | .model_id = ATMEL_AT45DB642D, |
Alan Green | cbb85c0 | 2019-06-25 13:42:34 +1000 | [diff] [blame] | 3144 | .total_size = 8192, /* or 8448, determined from status register */ |
| 3145 | .page_size = 1024, /* or 1056, determined from status register */ |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3146 | /* 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] | 3147 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 3148 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 3149 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3150 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 3151 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3152 | .block_erasers = |
| 3153 | { |
| 3154 | { |
| 3155 | .eraseblocks = { {1024, 8192} }, |
| 3156 | .block_erase = spi_erase_at45db_page, |
| 3157 | }, { |
| 3158 | .eraseblocks = { {8 * 1024, 8192/8} }, |
| 3159 | .block_erase = spi_erase_at45db_block, |
| 3160 | }, { |
| 3161 | .eraseblocks = { |
| 3162 | {8 * 1024, 1}, |
| 3163 | {248 * 1024, 1}, |
| 3164 | {256 * 1024, 31}, |
| 3165 | }, |
| 3166 | .block_erase = spi_erase_at45db_sector |
| 3167 | }, { |
| 3168 | .eraseblocks = { {8192 * 1024, 1} }, |
| 3169 | .block_erase = spi_erase_at45db_chip, |
| 3170 | } |
| 3171 | }, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 3172 | .printlock = spi_prettyprint_status_register_at45db, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3173 | .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] | 3174 | /* granularity will be set by the probing function. */ |
| 3175 | .write = spi_write_at45db, |
| 3176 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3177 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 3178 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3179 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3180 | { |
| 3181 | .vendor = "Atmel", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3182 | .name = "AT49(H)F010", |
| 3183 | .bustype = BUS_PARALLEL, |
| 3184 | .manufacture_id = ATMEL_ID, |
| 3185 | .model_id = ATMEL_AT49F010, |
| 3186 | .total_size = 128, |
| 3187 | .page_size = 0, /* unused */ |
| 3188 | .feature_bits = FEATURE_EITHER_RESET, |
| 3189 | .tested = TEST_OK_PREW, |
| 3190 | .probe = probe_jedec, |
| 3191 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3192 | .block_erasers = |
| 3193 | { |
| 3194 | { |
| 3195 | .eraseblocks = { {128 * 1024, 1} }, |
| 3196 | .block_erase = erase_chip_block_jedec, |
| 3197 | } |
| 3198 | }, |
| 3199 | .printlock = printlock_at49f, |
| 3200 | .write = write_jedec_1, |
| 3201 | .read = read_memmapped, |
| 3202 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3203 | .prepare_access = prepare_memory_access, |
| 3204 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3205 | }, |
| 3206 | |
| 3207 | { |
| 3208 | .vendor = "Atmel", |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3209 | .name = "AT49BV512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3210 | .bustype = BUS_PARALLEL, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3211 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3212 | .model_id = ATMEL_AT49BV512, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3213 | .total_size = 64, |
| 3214 | .page_size = 64, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3215 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 3216 | .tested = TEST_OK_PREW, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3217 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3218 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 3219 | .block_erasers = |
| 3220 | { |
| 3221 | { |
| 3222 | .eraseblocks = { {64 * 1024, 1} }, |
| 3223 | .block_erase = erase_chip_block_jedec, |
| 3224 | } |
| 3225 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3226 | .write = write_jedec_1, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3227 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3228 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3229 | .prepare_access = prepare_memory_access, |
| 3230 | .finish_access = finish_memory_access, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 3231 | }, |
| 3232 | |
| 3233 | { |
| 3234 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3235 | .name = "AT49F002(N)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3236 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3237 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3238 | .model_id = ATMEL_AT49F002N, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3239 | .total_size = 256, |
| 3240 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3241 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3242 | .tested = TEST_UNTESTED, |
| 3243 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3244 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 3245 | .block_erasers = |
| 3246 | { |
| 3247 | { |
| 3248 | .eraseblocks = { |
| 3249 | {16 * 1024, 1}, |
| 3250 | {8 * 1024, 2}, |
| 3251 | {96 * 1024, 1}, |
| 3252 | {128 * 1024, 1}, |
| 3253 | }, |
| 3254 | .block_erase = erase_sector_jedec, |
| 3255 | }, { |
| 3256 | .eraseblocks = { {256 * 1024, 1} }, |
| 3257 | .block_erase = erase_chip_block_jedec, |
| 3258 | } |
| 3259 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3260 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3261 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3262 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3263 | .prepare_access = prepare_memory_access, |
| 3264 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3265 | }, |
| 3266 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3267 | { |
| 3268 | .vendor = "Atmel", |
| 3269 | .name = "AT49F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3270 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3271 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3272 | .model_id = ATMEL_AT49F002NT, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3273 | .total_size = 256, |
| 3274 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3275 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 3276 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3277 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3278 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 3279 | .block_erasers = |
| 3280 | { |
| 3281 | { |
| 3282 | .eraseblocks = { |
| 3283 | {128 * 1024, 1}, |
| 3284 | {96 * 1024, 1}, |
| 3285 | {8 * 1024, 2}, |
| 3286 | {16 * 1024, 1}, |
| 3287 | }, |
| 3288 | .block_erase = erase_sector_jedec, |
| 3289 | }, { |
| 3290 | .eraseblocks = { {256 * 1024, 1} }, |
| 3291 | .block_erase = erase_chip_block_jedec, |
| 3292 | } |
| 3293 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3294 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3295 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3296 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3297 | .prepare_access = prepare_memory_access, |
| 3298 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3299 | }, |
| 3300 | |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 3301 | { |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3302 | .vendor = "Atmel", |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 3303 | .name = "AT49F020", |
| 3304 | .bustype = BUS_PARALLEL, |
| 3305 | .manufacture_id = ATMEL_ID, |
| 3306 | .model_id = ATMEL_AT49F020, |
| 3307 | .total_size = 256, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3308 | .page_size = 0, /* unused */ |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 3309 | .feature_bits = FEATURE_EITHER_RESET, |
| 3310 | .tested = TEST_OK_PRE, |
| 3311 | .probe = probe_jedec, |
| 3312 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3313 | .block_erasers = |
| 3314 | { |
| 3315 | { |
| 3316 | .eraseblocks = { {256 * 1024, 1} }, |
| 3317 | .block_erase = erase_chip_block_jedec, |
| 3318 | } |
| 3319 | /* Chip features an optional permanent write protection |
| 3320 | * of the first 8 kB. The erase function is the same as |
| 3321 | * above, but 00000H to 01FFFH will not be erased. |
| 3322 | * FIXME: add another eraser when partial erasers are |
| 3323 | * supported. |
| 3324 | */ |
| 3325 | }, |
| 3326 | .printlock = printlock_at49f, |
| 3327 | .write = write_jedec_1, |
| 3328 | .read = read_memmapped, |
| 3329 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3330 | .prepare_access = prepare_memory_access, |
| 3331 | .finish_access = finish_memory_access, |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 3332 | }, |
| 3333 | |
| 3334 | { |
| 3335 | .vendor = "Atmel", |
| 3336 | .name = "AT49F040", |
| 3337 | .bustype = BUS_PARALLEL, |
| 3338 | .manufacture_id = ATMEL_ID, |
| 3339 | .model_id = ATMEL_AT49F040, |
| 3340 | .total_size = 512, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3341 | .page_size = 0, /* unused */ |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 3342 | .feature_bits = FEATURE_EITHER_RESET, |
| 3343 | .tested = TEST_UNTESTED, |
| 3344 | .probe = probe_jedec, |
| 3345 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3346 | .block_erasers = |
| 3347 | { |
| 3348 | { |
| 3349 | .eraseblocks = { {512 * 1024, 1} }, |
| 3350 | .block_erase = erase_chip_block_jedec, |
| 3351 | } |
| 3352 | /* Chip features an optional permanent write protection |
| 3353 | * of the first 16 kB. The erase function is the same as |
| 3354 | * above, but 00000H to 03FFFH will not be erased. |
| 3355 | * FIXME: add another eraser when partial erasers are |
| 3356 | * supported. |
| 3357 | */ |
| 3358 | }, |
| 3359 | .printlock = printlock_at49f, |
| 3360 | .write = write_jedec_1, |
| 3361 | .read = read_memmapped, |
| 3362 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3363 | .prepare_access = prepare_memory_access, |
| 3364 | .finish_access = finish_memory_access, |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 3365 | }, |
| 3366 | |
| 3367 | { |
| 3368 | .vendor = "Atmel", |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3369 | .name = "AT49F080", |
| 3370 | .bustype = BUS_PARALLEL, |
| 3371 | .manufacture_id = ATMEL_ID, |
| 3372 | .model_id = ATMEL_AT49F080, |
| 3373 | .total_size = 1024, |
| 3374 | .page_size = 0, /* unused */ |
| 3375 | .feature_bits = FEATURE_EITHER_RESET, |
| 3376 | .tested = TEST_UNTESTED, |
| 3377 | .probe = probe_jedec, |
| 3378 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3379 | .block_erasers = |
| 3380 | { |
| 3381 | { |
| 3382 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3383 | .block_erase = erase_chip_block_jedec, |
| 3384 | } |
| 3385 | /* Chip features an optional permanent write protection |
| 3386 | * of the first 16 kB. The erase function is the same as |
| 3387 | * above, but 00000H to 03FFFH will not be erased. |
| 3388 | * FIXME: add another eraser when partial erasers are |
| 3389 | * supported. |
| 3390 | */ |
| 3391 | }, |
| 3392 | .printlock = printlock_at49f, |
| 3393 | .write = write_jedec_1, |
| 3394 | .read = read_memmapped, |
| 3395 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3396 | .prepare_access = prepare_memory_access, |
| 3397 | .finish_access = finish_memory_access, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3398 | }, |
| 3399 | |
| 3400 | { |
| 3401 | /* 'top' version of AT49F080. equal in all aspects but the boot block address */ |
| 3402 | .vendor = "Atmel", |
| 3403 | .name = "AT49F080T", |
| 3404 | .bustype = BUS_PARALLEL, |
| 3405 | .manufacture_id = ATMEL_ID, |
| 3406 | .model_id = ATMEL_AT49F080T, |
| 3407 | .total_size = 1024, |
| 3408 | .page_size = 0, /* unused */ |
| 3409 | .feature_bits = FEATURE_EITHER_RESET, |
| 3410 | .tested = TEST_UNTESTED, |
| 3411 | .probe = probe_jedec, |
| 3412 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3413 | .block_erasers = |
| 3414 | { |
| 3415 | { |
| 3416 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3417 | .block_erase = erase_chip_block_jedec, |
| 3418 | } |
| 3419 | /* Chip features an optional permanent write protection |
| 3420 | * of the first 16 kB. The erase function is the same as |
| 3421 | * above, but FC000H to FFFFFH will not be erased. |
| 3422 | * FIXME: add another eraser when partial erasers are |
| 3423 | * supported. |
| 3424 | */ |
| 3425 | }, |
| 3426 | .printlock = printlock_at49f, |
| 3427 | .write = write_jedec_1, |
| 3428 | .read = read_memmapped, |
| 3429 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3430 | .prepare_access = prepare_memory_access, |
| 3431 | .finish_access = finish_memory_access, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 3432 | }, |
| 3433 | |
| 3434 | { |
| 3435 | .vendor = "Atmel", |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3436 | .name = "AT49LH002", |
| 3437 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 3438 | .manufacture_id = ATMEL_ID, |
| 3439 | .model_id = ATMEL_AT49LH002, |
| 3440 | .total_size = 256, |
| 3441 | .page_size = 0, /* unused */ |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3442 | .tested = TEST_UNTESTED, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3443 | .probe = probe_82802ab, |
| 3444 | .probe_timing = TIMING_ZERO, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3445 | .block_erasers = |
| 3446 | { |
| 3447 | { |
| 3448 | .eraseblocks = { |
| 3449 | {64 * 1024, 3}, |
| 3450 | {32 * 1024, 1}, |
| 3451 | {8 * 1024, 2}, |
| 3452 | {16 * 1024, 1}, |
| 3453 | }, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3454 | .block_erase = NULL, /* TODO: Implement. */ |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3455 | }, { |
| 3456 | .eraseblocks = { |
| 3457 | {64 * 1024, 4}, |
| 3458 | }, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3459 | .block_erase = erase_block_82802ab, |
| 3460 | }, |
| 3461 | }, |
| 3462 | .printlock = printlock_regspace2_block_eraser_0, |
| 3463 | .unlock = unlock_regspace2_block_eraser_0, |
| 3464 | .write = write_82802ab, |
| 3465 | .read = read_memmapped, |
| 3466 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 3467 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3468 | .finish_access = finish_memory_access, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3469 | }, |
| 3470 | |
| 3471 | { |
| 3472 | .vendor = "Atmel", |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3473 | .name = "AT49LH004", |
| 3474 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 3475 | .manufacture_id = ATMEL_ID, |
| 3476 | .model_id = ATMEL_AT49LH004, |
| 3477 | .total_size = 512, |
| 3478 | .page_size = 0, /* unused */ |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3479 | .tested = TEST_UNTESTED, |
| 3480 | .probe = probe_82802ab, |
| 3481 | .probe_timing = TIMING_ZERO, |
| 3482 | .block_erasers = |
| 3483 | { |
| 3484 | { |
| 3485 | .eraseblocks = { |
| 3486 | {64 * 1024, 7}, |
| 3487 | {32 * 1024, 1}, |
| 3488 | {8 * 1024, 2}, |
| 3489 | {16 * 1024, 1}, |
| 3490 | }, |
| 3491 | .block_erase = erase_block_82802ab, |
| 3492 | }, { |
| 3493 | .eraseblocks = { |
| 3494 | {64 * 1024, 8}, |
| 3495 | }, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3496 | .block_erase = NULL, /* TODO: Implement. */ |
| 3497 | }, |
| 3498 | }, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3499 | .printlock = printlock_regspace2_block_eraser_0, |
| 3500 | .unlock = unlock_regspace2_block_eraser_0, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3501 | .write = write_82802ab, |
| 3502 | .read = read_memmapped, |
| 3503 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 3504 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3505 | .finish_access = finish_memory_access, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3506 | }, |
| 3507 | |
| 3508 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3509 | .vendor = "Atmel", |
| 3510 | .name = "AT49LH00B4", |
| 3511 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 3512 | .manufacture_id = ATMEL_ID, |
| 3513 | .model_id = ATMEL_AT49LH00B4, |
| 3514 | .total_size = 512, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3515 | .page_size = 0, /* unused */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3516 | .tested = TEST_UNTESTED, |
| 3517 | .probe = probe_82802ab, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3518 | .probe_timing = TIMING_ZERO, |
| 3519 | .block_erasers = |
| 3520 | { |
| 3521 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3522 | .eraseblocks = { |
| 3523 | {8 * 1024, 2}, |
| 3524 | {16 * 1024, 1}, |
| 3525 | {32 * 1024, 1}, |
| 3526 | {64 * 1024, 7}, |
| 3527 | }, |
| 3528 | .block_erase = NULL, /* TODO: Implement. */ |
| 3529 | }, { |
| 3530 | .eraseblocks = { |
| 3531 | {64 * 1024, 8}, |
| 3532 | }, |
| 3533 | .block_erase = erase_block_82802ab, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3534 | }, |
| 3535 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3536 | .printlock = printlock_regspace2_block_eraser_0, |
| 3537 | .unlock = unlock_regspace2_block_eraser_0, |
| 3538 | .write = write_82802ab, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3539 | .read = read_memmapped, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3540 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 3541 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3542 | .finish_access = finish_memory_access, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3543 | }, |
| 3544 | |
| 3545 | { |
Angel Pons | 1ebda78 | 2021-04-20 21:39:11 +0200 | [diff] [blame] | 3546 | .vendor = "Boya/BoHong Microelectronics", |
Christian Kudera | 475a7ee | 2021-04-20 22:50:01 +0200 | [diff] [blame] | 3547 | .name = "B.25D16A", |
| 3548 | .bustype = BUS_SPI, |
| 3549 | .manufacture_id = BOYA_BOHONG_ID, |
| 3550 | .model_id = BOYA_BOHONG_B_25D16A, |
| 3551 | .total_size = 2048, |
| 3552 | .page_size = 256, |
| 3553 | .feature_bits = FEATURE_WRSR_WREN, |
| 3554 | .tested = TEST_OK_PR, |
| 3555 | .probe = probe_spi_rdid, |
| 3556 | .probe_timing = TIMING_ZERO, |
| 3557 | .block_erasers = |
| 3558 | { |
| 3559 | { |
| 3560 | .eraseblocks = { {4 * 1024, 512} }, |
| 3561 | .block_erase = spi_block_erase_20, |
| 3562 | }, { |
| 3563 | .eraseblocks = { {32 * 1024, 64} }, |
| 3564 | .block_erase = spi_block_erase_52, |
| 3565 | }, { |
| 3566 | .eraseblocks = { {64 * 1024, 32} }, |
| 3567 | .block_erase = spi_block_erase_d8, |
| 3568 | }, { |
| 3569 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3570 | .block_erase = spi_block_erase_60, |
| 3571 | }, { |
| 3572 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3573 | .block_erase = spi_block_erase_c7, |
| 3574 | } |
| 3575 | }, |
| 3576 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 3577 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 3578 | .write = spi_chip_write_256, |
| 3579 | .read = spi_chip_read, |
| 3580 | .voltage = {2700, 3600}, |
| 3581 | }, |
| 3582 | |
| 3583 | { |
| 3584 | .vendor = "Boya/BoHong Microelectronics", |
Angel Pons | 1ebda78 | 2021-04-20 21:39:11 +0200 | [diff] [blame] | 3585 | .name = "B.25Q128AS", |
Jack Olsen | 73ae5ef | 2020-08-08 21:12:13 -0500 | [diff] [blame] | 3586 | .bustype = BUS_SPI, |
Angel Pons | 1ebda78 | 2021-04-20 21:39:11 +0200 | [diff] [blame] | 3587 | .manufacture_id = BOYA_BOHONG_ID, |
| 3588 | .model_id = BOYA_BOHONG_B_25Q128AS, |
Jack Olsen | 73ae5ef | 2020-08-08 21:12:13 -0500 | [diff] [blame] | 3589 | .total_size = 16384, |
| 3590 | .page_size = 256, |
Nico Huber | 226bb87 | 2024-04-09 23:30:34 +0200 | [diff] [blame] | 3591 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_WRSR3 | |
| 3592 | FEATURE_OTP | FEATURE_QIO, |
Jack Olsen | 73ae5ef | 2020-08-08 21:12:13 -0500 | [diff] [blame] | 3593 | .tested = TEST_OK_PREW, |
| 3594 | .probe = probe_spi_rdid, |
| 3595 | .probe_timing = TIMING_ZERO, |
| 3596 | .block_erasers = |
| 3597 | { |
| 3598 | { |
| 3599 | .eraseblocks = { {4 * 1024, 4096} }, |
| 3600 | .block_erase = spi_block_erase_20, |
| 3601 | }, { |
| 3602 | .eraseblocks = { {32 * 1024, 512} }, |
| 3603 | .block_erase = spi_block_erase_52, |
| 3604 | }, { |
| 3605 | .eraseblocks = { {64 * 1024, 256} }, |
| 3606 | .block_erase = spi_block_erase_d8, |
| 3607 | }, { |
| 3608 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 3609 | .block_erase = spi_block_erase_60, |
| 3610 | }, { |
| 3611 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 3612 | .block_erase = spi_block_erase_c7, |
| 3613 | } |
| 3614 | }, |
Nico Huber | 226bb87 | 2024-04-09 23:30:34 +0200 | [diff] [blame] | 3615 | .reg_bits = |
| 3616 | { |
| 3617 | .qe = {STATUS2, 1, RW}, |
| 3618 | }, |
Jack Olsen | 73ae5ef | 2020-08-08 21:12:13 -0500 | [diff] [blame] | 3619 | .printlock = spi_prettyprint_status_register_plain, |
| 3620 | .unlock = spi_disable_blockprotect_at25fs040, |
| 3621 | .write = spi_chip_write_256, |
| 3622 | .read = spi_chip_read, |
| 3623 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 3624 | .prepare_access = spi_prepare_io, |
| 3625 | .finish_access = spi_finish_io, |
Jack Olsen | 73ae5ef | 2020-08-08 21:12:13 -0500 | [diff] [blame] | 3626 | }, |
| 3627 | |
| 3628 | { |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3629 | .vendor = "Bright", |
| 3630 | .name = "BM29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3631 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3632 | .manufacture_id = BRIGHT_ID, |
| 3633 | .model_id = BRIGHT_BM29F040, |
| 3634 | .total_size = 512, |
| 3635 | .page_size = 64 * 1024, |
| 3636 | .feature_bits = FEATURE_EITHER_RESET, |
| 3637 | .tested = TEST_OK_PR, |
| 3638 | .probe = probe_jedec, |
| 3639 | .probe_timing = TIMING_ZERO, |
| 3640 | .block_erasers = |
| 3641 | { |
| 3642 | { |
| 3643 | .eraseblocks = { {64 * 1024, 8} }, |
| 3644 | .block_erase = erase_sector_jedec, |
| 3645 | }, { |
| 3646 | .eraseblocks = { {512 * 1024, 1} }, |
| 3647 | .block_erase = erase_chip_block_jedec, |
| 3648 | }, |
| 3649 | }, |
| 3650 | .write = write_jedec_1, |
| 3651 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 3652 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3653 | .prepare_access = prepare_memory_access, |
| 3654 | .finish_access = finish_memory_access, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3655 | }, |
| 3656 | |
| 3657 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3658 | .vendor = "Catalyst", |
| 3659 | .name = "CAT28F512", |
| 3660 | .bustype = BUS_PARALLEL, |
| 3661 | .manufacture_id = CATALYST_ID, |
| 3662 | .model_id = CATALYST_CAT28F512, |
| 3663 | .total_size = 64, |
| 3664 | .page_size = 0, /* unused */ |
| 3665 | .feature_bits = 0, |
Alan Green | 908adf4 | 2019-07-03 15:34:06 +1000 | [diff] [blame] | 3666 | .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD}, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3667 | .probe = probe_jedec, /* FIXME! */ |
| 3668 | .probe_timing = TIMING_ZERO, |
| 3669 | .block_erasers = |
| 3670 | { |
| 3671 | { |
| 3672 | .eraseblocks = { {64 * 1024, 1} }, |
| 3673 | .block_erase = NULL, /* TODO */ |
| 3674 | }, |
| 3675 | }, |
| 3676 | .write = NULL, /* TODO */ |
| 3677 | .read = read_memmapped, |
| 3678 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3679 | .prepare_access = prepare_memory_access, |
| 3680 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3681 | }, |
| 3682 | |
| 3683 | { |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3684 | .vendor = "ENE", |
| 3685 | .name = "KB9012 (EDI)", |
| 3686 | .bustype = BUS_SPI, |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3687 | .total_size = 128, |
| 3688 | .page_size = 128, |
| 3689 | .feature_bits = FEATURE_ERASED_ZERO, |
| 3690 | .tested = TEST_OK_PREW, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3691 | .spi_cmd_set = SPI_EDI, |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3692 | .probe = edi_probe_kb9012, |
| 3693 | .probe_timing = TIMING_ZERO, |
| 3694 | .block_erasers = |
| 3695 | { |
| 3696 | { |
| 3697 | .eraseblocks = { {128, 1024} }, |
| 3698 | .block_erase = edi_chip_block_erase, |
| 3699 | }, |
| 3700 | }, |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3701 | .write = edi_chip_write, |
| 3702 | .read = edi_chip_read, |
| 3703 | .voltage = {2700, 3600}, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 3704 | .gran = write_gran_128bytes, |
Paul Kocialkowski | 80ae14e | 2018-01-15 01:07:46 +0300 | [diff] [blame] | 3705 | }, |
| 3706 | |
| 3707 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3708 | .vendor = "ESI", |
| 3709 | .name = "ES25P16", |
| 3710 | .bustype = BUS_SPI, |
| 3711 | .manufacture_id = EXCEL_ID_NOPREFIX, |
| 3712 | .model_id = EXCEL_ES25P16, |
| 3713 | .total_size = 2 * 1024, |
| 3714 | .page_size = 256, |
| 3715 | /* 256-byte parameter page separate from memory array: |
| 3716 | * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */ |
| 3717 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3718 | .tested = TEST_UNTESTED, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3719 | .probe = probe_spi_rdid, |
| 3720 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3721 | .block_erasers = |
| 3722 | { |
| 3723 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3724 | .eraseblocks = { {64 * 1024, 32} }, |
| 3725 | .block_erase = spi_block_erase_d8, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3726 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3727 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3728 | .block_erase = spi_block_erase_c7, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3729 | } |
| 3730 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3731 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 3732 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 3733 | .write = spi_chip_write_256, |
| 3734 | .read = spi_chip_read, /* Fast Read (0x0B) supported */ |
| 3735 | .voltage = {2700, 3600}, |
| 3736 | }, |
| 3737 | |
| 3738 | { |
| 3739 | .vendor = "ESI", |
| 3740 | .name = "ES25P40", |
| 3741 | .bustype = BUS_SPI, |
| 3742 | .manufacture_id = EXCEL_ID_NOPREFIX, |
| 3743 | .model_id = EXCEL_ES25P40, |
| 3744 | .total_size = 512, |
| 3745 | .page_size = 256, |
| 3746 | /* 256-byte parameter page separate from memory array: |
| 3747 | * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */ |
| 3748 | .feature_bits = FEATURE_WRSR_WREN, |
| 3749 | .tested = TEST_UNTESTED, |
| 3750 | .probe = probe_spi_rdid, |
| 3751 | .probe_timing = TIMING_ZERO, |
| 3752 | .block_erasers = |
| 3753 | { |
| 3754 | { |
| 3755 | .eraseblocks = { {64 * 1024, 8} }, |
| 3756 | .block_erase = spi_block_erase_d8, |
| 3757 | }, { |
| 3758 | .eraseblocks = { {512 * 1024, 1} }, |
| 3759 | .block_erase = spi_block_erase_c7, |
| 3760 | } |
| 3761 | }, |
| 3762 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 3763 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 3764 | .write = spi_chip_write_256, |
| 3765 | .read = spi_chip_read, /* Fast Read (0x0B) supported */ |
| 3766 | .voltage = {2700, 3600}, |
| 3767 | }, |
| 3768 | |
| 3769 | { |
| 3770 | .vendor = "ESI", |
| 3771 | .name = "ES25P80", |
| 3772 | .bustype = BUS_SPI, |
| 3773 | .manufacture_id = EXCEL_ID_NOPREFIX, |
| 3774 | .model_id = EXCEL_ES25P80, |
| 3775 | .total_size = 1024, |
| 3776 | .page_size = 256, |
| 3777 | /* 256-byte parameter page separate from memory array: |
| 3778 | * supports read (0x53), fast read (0x5B), erase (0xD5) and program (0x52) instructions. */ |
| 3779 | .feature_bits = FEATURE_WRSR_WREN, |
| 3780 | .tested = TEST_UNTESTED, |
| 3781 | .probe = probe_spi_rdid, |
| 3782 | .probe_timing = TIMING_ZERO, |
| 3783 | .block_erasers = |
| 3784 | { |
| 3785 | { |
| 3786 | .eraseblocks = { {64 * 1024, 16} }, |
| 3787 | .block_erase = spi_block_erase_d8, |
| 3788 | }, { |
| 3789 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3790 | .block_erase = spi_block_erase_c7, |
| 3791 | } |
| 3792 | }, |
| 3793 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 3794 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 3795 | .write = spi_chip_write_256, |
| 3796 | .read = spi_chip_read, /* Fast Read (0x0B) supported */ |
| 3797 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3798 | }, |
| 3799 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3800 | { |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3801 | .vendor = "ESMT", |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3802 | .name = "F25L008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3803 | .bustype = BUS_SPI, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3804 | .manufacture_id = ESMT_ID, |
| 3805 | .model_id = ESMT_F25L008A, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3806 | .total_size = 1024, |
| 3807 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3808 | .feature_bits = FEATURE_WRSR_EITHER, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 3809 | .tested = TEST_OK_PREW, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3810 | .probe = probe_spi_rdid, |
| 3811 | .probe_timing = TIMING_ZERO, |
| 3812 | .block_erasers = |
| 3813 | { |
| 3814 | { |
| 3815 | .eraseblocks = { {4 * 1024, 256} }, |
| 3816 | .block_erase = spi_block_erase_20, |
| 3817 | }, { |
| 3818 | .eraseblocks = { {64 * 1024, 16} }, |
| 3819 | .block_erase = spi_block_erase_d8, |
| 3820 | }, { |
| 3821 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3822 | .block_erase = spi_block_erase_60, |
| 3823 | }, { |
| 3824 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3825 | .block_erase = spi_block_erase_c7, |
| 3826 | } |
| 3827 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3828 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3829 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 9a795d8 | 2010-07-14 16:19:05 +0000 | [diff] [blame] | 3830 | .write = spi_chip_write_1, |
Michael Karcher | 4497e86 | 2010-07-10 19:34:15 +0000 | [diff] [blame] | 3831 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3832 | .voltage = {2700, 3600}, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3833 | }, |
| 3834 | |
| 3835 | { |
Stefan Tauner | 85f09f7 | 2014-05-27 21:27:14 +0000 | [diff] [blame] | 3836 | .vendor = "ESMT", |
| 3837 | .name = "F25L32PA", |
| 3838 | .bustype = BUS_SPI, |
| 3839 | .manufacture_id = ESMT_ID, |
| 3840 | .model_id = ESMT_F25L32PA, |
| 3841 | .total_size = 4096, |
| 3842 | .page_size = 256, |
| 3843 | .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP, |
| 3844 | .tested = TEST_UNTESTED, |
| 3845 | .probe = probe_spi_rdid, |
| 3846 | .probe_timing = TIMING_ZERO, |
| 3847 | .block_erasers = |
| 3848 | { |
| 3849 | { |
| 3850 | .eraseblocks = { {4 * 1024, 1024} }, |
| 3851 | .block_erase = spi_block_erase_20, |
| 3852 | }, { |
| 3853 | .eraseblocks = { {64 * 1024, 64} }, |
| 3854 | .block_erase = spi_block_erase_d8, |
| 3855 | }, { |
| 3856 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3857 | .block_erase = spi_block_erase_60, |
| 3858 | }, { |
| 3859 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3860 | .block_erase = spi_block_erase_c7, |
| 3861 | } |
| 3862 | }, |
| 3863 | .printlock = spi_prettyprint_status_register_bp2_bpl, |
| 3864 | .unlock = spi_disable_blockprotect, |
| 3865 | .write = spi_chip_write_256, |
| 3866 | .read = spi_chip_read, |
| 3867 | .voltage = {2700, 3600}, |
| 3868 | }, |
| 3869 | |
| 3870 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3871 | .vendor = "ESMT", |
| 3872 | .name = "F49B002UA", |
| 3873 | .bustype = BUS_PARALLEL, |
| 3874 | .manufacture_id = ESMT_ID, |
| 3875 | .model_id = ESMT_F49B002UA, |
| 3876 | .total_size = 256, |
| 3877 | .page_size = 4096, |
| 3878 | .feature_bits = FEATURE_EITHER_RESET, |
| 3879 | .tested = TEST_UNTESTED, |
| 3880 | .probe = probe_jedec, |
| 3881 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3882 | .block_erasers = |
| 3883 | { |
| 3884 | { |
| 3885 | .eraseblocks = { |
| 3886 | {128 * 1024, 1}, |
| 3887 | {96 * 1024, 1}, |
| 3888 | {8 * 1024, 2}, |
| 3889 | {16 * 1024, 1}, |
| 3890 | }, |
| 3891 | .block_erase = erase_sector_jedec, |
| 3892 | }, { |
| 3893 | .eraseblocks = { {256 * 1024, 1} }, |
| 3894 | .block_erase = erase_chip_block_jedec, |
| 3895 | } |
| 3896 | }, |
| 3897 | .write = write_jedec_1, |
| 3898 | .read = read_memmapped, |
| 3899 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 3900 | .prepare_access = prepare_memory_access, |
| 3901 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 3902 | }, |
| 3903 | |
| 3904 | { |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3905 | .vendor = "Eon", |
| 3906 | .name = "EN25B05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3907 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3908 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3909 | .model_id = EON_EN25B05, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3910 | .total_size = 64, |
| 3911 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3912 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3913 | .tested = TEST_UNTESTED, |
| 3914 | .probe = probe_spi_rdid, |
| 3915 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3916 | .block_erasers = |
| 3917 | { |
| 3918 | { |
| 3919 | .eraseblocks = { |
| 3920 | {4 * 1024, 2}, |
| 3921 | {8 * 1024, 1}, |
| 3922 | {16 * 1024, 1}, |
| 3923 | {32 * 1024, 1}, |
| 3924 | }, |
| 3925 | .block_erase = spi_block_erase_d8, |
| 3926 | }, { |
| 3927 | .eraseblocks = { {64 * 1024, 1} }, |
| 3928 | .block_erase = spi_block_erase_c7, |
| 3929 | } |
| 3930 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3931 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3932 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3933 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3934 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3935 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3936 | }, |
| 3937 | |
| 3938 | { |
| 3939 | .vendor = "Eon", |
| 3940 | .name = "EN25B05T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3941 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3942 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3943 | .model_id = EON_EN25B05, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3944 | .total_size = 64, |
| 3945 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3946 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3947 | .tested = TEST_UNTESTED, |
| 3948 | .probe = probe_spi_rdid, |
| 3949 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3950 | .block_erasers = |
| 3951 | { |
| 3952 | { |
| 3953 | .eraseblocks = { |
| 3954 | {32 * 1024, 1}, |
| 3955 | {16 * 1024, 1}, |
| 3956 | {8 * 1024, 1}, |
| 3957 | {4 * 1024, 2}, |
| 3958 | }, |
| 3959 | .block_erase = spi_block_erase_d8, |
| 3960 | }, { |
| 3961 | .eraseblocks = { {64 * 1024, 1} }, |
| 3962 | .block_erase = spi_block_erase_c7, |
| 3963 | } |
| 3964 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3965 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3966 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3967 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 3968 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3969 | .voltage = {2700, 3600}, |
| 3970 | }, |
| 3971 | |
| 3972 | { |
| 3973 | .vendor = "Eon", |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3974 | .name = "EN25B10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3975 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3976 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3977 | .model_id = EON_EN25B10, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3978 | .total_size = 128, |
| 3979 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3980 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3981 | .tested = TEST_UNTESTED, |
| 3982 | .probe = probe_spi_rdid, |
| 3983 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3984 | .block_erasers = |
| 3985 | { |
| 3986 | { |
| 3987 | .eraseblocks = { |
| 3988 | {4 * 1024, 2}, |
| 3989 | {8 * 1024, 1}, |
| 3990 | {16 * 1024, 1}, |
| 3991 | {32 * 1024, 3}, |
| 3992 | }, |
| 3993 | .block_erase = spi_block_erase_d8, |
| 3994 | }, { |
| 3995 | .eraseblocks = { {128 * 1024, 1} }, |
| 3996 | .block_erase = spi_block_erase_c7, |
| 3997 | } |
| 3998 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3999 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4000 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4001 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4002 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4003 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4004 | }, |
| 4005 | |
| 4006 | { |
| 4007 | .vendor = "Eon", |
| 4008 | .name = "EN25B10T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4009 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4010 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4011 | .model_id = EON_EN25B10, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4012 | .total_size = 128, |
| 4013 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 4014 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 4015 | .tested = TEST_OK_PREW, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4016 | .probe = probe_spi_rdid, |
| 4017 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4018 | .block_erasers = |
| 4019 | { |
| 4020 | { |
| 4021 | .eraseblocks = { |
| 4022 | {32 * 1024, 3}, |
| 4023 | {16 * 1024, 1}, |
| 4024 | {8 * 1024, 1}, |
| 4025 | {4 * 1024, 2}, |
| 4026 | }, |
| 4027 | .block_erase = spi_block_erase_d8, |
| 4028 | }, { |
| 4029 | .eraseblocks = { {128 * 1024, 1} }, |
| 4030 | .block_erase = spi_block_erase_c7, |
| 4031 | } |
| 4032 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4033 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4034 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4035 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4036 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4037 | .voltage = {2700, 3600}, |
| 4038 | }, |
| 4039 | |
| 4040 | { |
| 4041 | .vendor = "Eon", |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4042 | .name = "EN25B16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4043 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4044 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4045 | .model_id = EON_EN25B16, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4046 | .total_size = 2048, |
| 4047 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 4048 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4049 | .tested = TEST_UNTESTED, |
| 4050 | .probe = probe_spi_rdid, |
| 4051 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4052 | .block_erasers = |
| 4053 | { |
| 4054 | { |
| 4055 | .eraseblocks = { |
| 4056 | {4 * 1024, 2}, |
| 4057 | {8 * 1024, 1}, |
| 4058 | {16 * 1024, 1}, |
| 4059 | {32 * 1024, 1}, |
| 4060 | {64 * 1024, 31}, |
| 4061 | }, |
| 4062 | .block_erase = spi_block_erase_d8, |
| 4063 | }, { |
| 4064 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4065 | .block_erase = spi_block_erase_c7, |
| 4066 | } |
| 4067 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4068 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4069 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4070 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4071 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4072 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4073 | }, |
| 4074 | |
| 4075 | { |
| 4076 | .vendor = "Eon", |
| 4077 | .name = "EN25B16T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4078 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4079 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4080 | .model_id = EON_EN25B16, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4081 | .total_size = 2048, |
| 4082 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 4083 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4084 | .tested = TEST_UNTESTED, |
| 4085 | .probe = probe_spi_rdid, |
| 4086 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4087 | .block_erasers = |
| 4088 | { |
| 4089 | { |
| 4090 | .eraseblocks = { |
| 4091 | {64 * 1024, 31}, |
| 4092 | {32 * 1024, 1}, |
| 4093 | {16 * 1024, 1}, |
| 4094 | {8 * 1024, 1}, |
| 4095 | {4 * 1024, 2}, |
| 4096 | }, |
| 4097 | .block_erase = spi_block_erase_d8, |
| 4098 | }, { |
| 4099 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4100 | .block_erase = spi_block_erase_c7, |
| 4101 | } |
| 4102 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4103 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4104 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4105 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4106 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4107 | .voltage = {2700, 3600}, |
| 4108 | }, |
| 4109 | |
| 4110 | { |
| 4111 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4112 | .name = "EN25B20", |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4113 | .bustype = BUS_SPI, |
| 4114 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4115 | .model_id = EON_EN25B20, |
| 4116 | .total_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4117 | .page_size = 256, |
| 4118 | .feature_bits = FEATURE_WRSR_WREN, |
| 4119 | .tested = TEST_UNTESTED, |
| 4120 | .probe = probe_spi_rdid, |
| 4121 | .probe_timing = TIMING_ZERO, |
| 4122 | .block_erasers = |
| 4123 | { |
| 4124 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4125 | .eraseblocks = { |
| 4126 | {4 * 1024, 2}, |
| 4127 | {8 * 1024, 1}, |
| 4128 | {16 * 1024, 1}, |
| 4129 | {32 * 1024, 1}, |
| 4130 | {64 * 1024, 3} |
| 4131 | }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4132 | .block_erase = spi_block_erase_d8, |
| 4133 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4134 | .eraseblocks = { {256 * 1024, 1} }, |
| 4135 | .block_erase = spi_block_erase_c7, |
| 4136 | } |
| 4137 | }, |
| 4138 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4139 | .unlock = spi_disable_blockprotect, |
| 4140 | .write = spi_chip_write_256, |
| 4141 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4142 | .voltage = {2700, 3600}, |
| 4143 | }, |
| 4144 | |
| 4145 | { |
| 4146 | .vendor = "Eon", |
| 4147 | .name = "EN25B20T", |
| 4148 | .bustype = BUS_SPI, |
| 4149 | .manufacture_id = EON_ID_NOPREFIX, |
| 4150 | .model_id = EON_EN25B20, |
| 4151 | .total_size = 256, |
| 4152 | .page_size = 256, |
| 4153 | .feature_bits = FEATURE_WRSR_WREN, |
| 4154 | .tested = TEST_UNTESTED, |
| 4155 | .probe = probe_spi_rdid, |
| 4156 | .probe_timing = TIMING_ZERO, |
| 4157 | .block_erasers = |
| 4158 | { |
| 4159 | { |
| 4160 | .eraseblocks = { |
| 4161 | {64 * 1024, 3}, |
| 4162 | {32 * 1024, 1}, |
| 4163 | {16 * 1024, 1}, |
| 4164 | {8 * 1024, 1}, |
| 4165 | {4 * 1024, 2}, |
| 4166 | }, |
| 4167 | .block_erase = spi_block_erase_d8, |
| 4168 | }, { |
| 4169 | .eraseblocks = { {256 * 1024, 1} }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4170 | .block_erase = spi_block_erase_c7, |
| 4171 | } |
| 4172 | }, |
| 4173 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4174 | .unlock = spi_disable_blockprotect, |
| 4175 | .write = spi_chip_write_256, |
| 4176 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4177 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4178 | }, |
| 4179 | |
| 4180 | { |
| 4181 | .vendor = "Eon", |
| 4182 | .name = "EN25B32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4183 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4184 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4185 | .model_id = EON_EN25B32, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4186 | .total_size = 4096, |
| 4187 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4188 | /* OTP: 512B total; enter 0x3A */ |
| 4189 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4190 | .tested = TEST_UNTESTED, |
| 4191 | .probe = probe_spi_rdid, |
| 4192 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4193 | .block_erasers = |
| 4194 | { |
| 4195 | { |
| 4196 | .eraseblocks = { |
| 4197 | {4 * 1024, 2}, |
| 4198 | {8 * 1024, 1}, |
| 4199 | {16 * 1024, 1}, |
| 4200 | {32 * 1024, 1}, |
| 4201 | {64 * 1024, 63}, |
| 4202 | }, |
| 4203 | .block_erase = spi_block_erase_d8, |
| 4204 | }, { |
| 4205 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4206 | .block_erase = spi_block_erase_c7, |
| 4207 | } |
| 4208 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4209 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4210 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4211 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4212 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4213 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4214 | }, |
| 4215 | |
| 4216 | { |
| 4217 | .vendor = "Eon", |
| 4218 | .name = "EN25B32T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4219 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4220 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4221 | .model_id = EON_EN25B32, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4222 | .total_size = 4096, |
| 4223 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4224 | /* OTP: 512B total; enter 0x3A */ |
| 4225 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4226 | .tested = TEST_UNTESTED, |
| 4227 | .probe = probe_spi_rdid, |
| 4228 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4229 | .block_erasers = |
| 4230 | { |
| 4231 | { |
| 4232 | .eraseblocks = { |
| 4233 | {64 * 1024, 63}, |
| 4234 | {32 * 1024, 1}, |
| 4235 | {16 * 1024, 1}, |
| 4236 | {8 * 1024, 1}, |
| 4237 | {4 * 1024, 2}, |
| 4238 | }, |
| 4239 | .block_erase = spi_block_erase_d8, |
| 4240 | }, { |
| 4241 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4242 | .block_erase = spi_block_erase_c7, |
| 4243 | } |
| 4244 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4245 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4246 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4247 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4248 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4249 | .voltage = {2700, 3600}, |
| 4250 | }, |
| 4251 | |
| 4252 | { |
| 4253 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4254 | .name = "EN25B40", |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4255 | .bustype = BUS_SPI, |
| 4256 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4257 | .model_id = EON_EN25B40, |
| 4258 | .total_size = 512, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4259 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4260 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4261 | .tested = TEST_UNTESTED, |
| 4262 | .probe = probe_spi_rdid, |
| 4263 | .probe_timing = TIMING_ZERO, |
| 4264 | .block_erasers = |
| 4265 | { |
| 4266 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4267 | .eraseblocks = { |
| 4268 | {4 * 1024, 2}, |
| 4269 | {8 * 1024, 1}, |
| 4270 | {16 * 1024, 1}, |
| 4271 | {32 * 1024, 1}, |
| 4272 | {64 * 1024, 7} |
| 4273 | }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4274 | .block_erase = spi_block_erase_d8, |
| 4275 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4276 | .eraseblocks = { {512 * 1024, 1} }, |
| 4277 | .block_erase = spi_block_erase_c7, |
| 4278 | } |
| 4279 | }, |
| 4280 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4281 | .unlock = spi_disable_blockprotect, |
| 4282 | .write = spi_chip_write_256, |
| 4283 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4284 | .voltage = {2700, 3600}, |
| 4285 | }, |
| 4286 | |
| 4287 | { |
| 4288 | .vendor = "Eon", |
| 4289 | .name = "EN25B40T", |
| 4290 | .bustype = BUS_SPI, |
| 4291 | .manufacture_id = EON_ID_NOPREFIX, |
| 4292 | .model_id = EON_EN25B40, |
| 4293 | .total_size = 512, |
| 4294 | .page_size = 256, |
| 4295 | .feature_bits = FEATURE_WRSR_WREN, |
| 4296 | .tested = TEST_UNTESTED, |
| 4297 | .probe = probe_spi_rdid, |
| 4298 | .probe_timing = TIMING_ZERO, |
| 4299 | .block_erasers = |
| 4300 | { |
| 4301 | { |
| 4302 | .eraseblocks = { |
| 4303 | {64 * 1024, 7}, |
| 4304 | {32 * 1024, 1}, |
| 4305 | {16 * 1024, 1}, |
| 4306 | {8 * 1024, 1}, |
| 4307 | {4 * 1024, 2}, |
| 4308 | }, |
| 4309 | .block_erase = spi_block_erase_d8, |
| 4310 | }, { |
| 4311 | .eraseblocks = { {512 * 1024, 1} }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4312 | .block_erase = spi_block_erase_c7, |
| 4313 | } |
| 4314 | }, |
| 4315 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4316 | .unlock = spi_disable_blockprotect, |
| 4317 | .write = spi_chip_write_256, |
| 4318 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4319 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4320 | }, |
| 4321 | |
| 4322 | { |
| 4323 | .vendor = "Eon", |
| 4324 | .name = "EN25B64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4325 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4326 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4327 | .model_id = EON_EN25B64, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4328 | .total_size = 8192, |
| 4329 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4330 | /* OTP: 512B total; enter 0x3A */ |
| 4331 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4332 | .tested = TEST_UNTESTED, |
| 4333 | .probe = probe_spi_rdid, |
| 4334 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4335 | .block_erasers = |
| 4336 | { |
| 4337 | { |
| 4338 | .eraseblocks = { |
| 4339 | {4 * 1024, 2}, |
| 4340 | {8 * 1024, 1}, |
| 4341 | {16 * 1024, 1}, |
| 4342 | {32 * 1024, 1}, |
| 4343 | {64 * 1024, 127}, |
| 4344 | }, |
| 4345 | .block_erase = spi_block_erase_d8, |
| 4346 | }, { |
| 4347 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4348 | .block_erase = spi_block_erase_c7, |
| 4349 | } |
| 4350 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4351 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4352 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4353 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4354 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4355 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4356 | }, |
| 4357 | |
| 4358 | { |
| 4359 | .vendor = "Eon", |
| 4360 | .name = "EN25B64T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4361 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4362 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4363 | .model_id = EON_EN25B64, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4364 | .total_size = 8192, |
| 4365 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4366 | /* OTP: 512B total; enter 0x3A */ |
| 4367 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4368 | .tested = TEST_UNTESTED, |
| 4369 | .probe = probe_spi_rdid, |
| 4370 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4371 | .block_erasers = |
| 4372 | { |
| 4373 | { |
| 4374 | .eraseblocks = { |
| 4375 | {64 * 1024, 127}, |
| 4376 | {32 * 1024, 1}, |
| 4377 | {16 * 1024, 1}, |
| 4378 | {8 * 1024, 1}, |
| 4379 | {4 * 1024, 2}, |
| 4380 | }, |
| 4381 | .block_erase = spi_block_erase_d8, |
| 4382 | }, { |
| 4383 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4384 | .block_erase = spi_block_erase_c7, |
| 4385 | } |
| 4386 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4387 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4388 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4389 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4390 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4391 | .voltage = {2700, 3600}, |
| 4392 | }, |
| 4393 | |
| 4394 | { |
| 4395 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4396 | .name = "EN25B80", |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4397 | .bustype = BUS_SPI, |
| 4398 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4399 | .model_id = EON_EN25B80, |
| 4400 | .total_size = 1024, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4401 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4402 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4403 | .tested = TEST_UNTESTED, |
| 4404 | .probe = probe_spi_rdid, |
| 4405 | .probe_timing = TIMING_ZERO, |
| 4406 | .block_erasers = |
| 4407 | { |
| 4408 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4409 | .eraseblocks = { |
| 4410 | {4 * 1024, 2}, |
| 4411 | {8 * 1024, 1}, |
| 4412 | {16 * 1024, 1}, |
| 4413 | {32 * 1024, 1}, |
| 4414 | {64 * 1024, 15} |
| 4415 | }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4416 | .block_erase = spi_block_erase_d8, |
| 4417 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4418 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4419 | .block_erase = spi_block_erase_c7, |
| 4420 | } |
| 4421 | }, |
| 4422 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4423 | .unlock = spi_disable_blockprotect, |
| 4424 | .write = spi_chip_write_256, |
| 4425 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4426 | .voltage = {2700, 3600}, |
| 4427 | }, |
| 4428 | |
| 4429 | { |
| 4430 | .vendor = "Eon", |
| 4431 | .name = "EN25B80T", |
| 4432 | .bustype = BUS_SPI, |
| 4433 | .manufacture_id = EON_ID_NOPREFIX, |
| 4434 | .model_id = EON_EN25B80, |
| 4435 | .total_size = 1024, |
| 4436 | .page_size = 256, |
| 4437 | .feature_bits = FEATURE_WRSR_WREN, |
| 4438 | .tested = TEST_UNTESTED, |
| 4439 | .probe = probe_spi_rdid, |
| 4440 | .probe_timing = TIMING_ZERO, |
| 4441 | .block_erasers = |
| 4442 | { |
| 4443 | { |
| 4444 | .eraseblocks = { |
| 4445 | {64 * 1024, 15}, |
| 4446 | {32 * 1024, 1}, |
| 4447 | {16 * 1024, 1}, |
| 4448 | {8 * 1024, 1}, |
| 4449 | {4 * 1024, 2}, |
| 4450 | }, |
| 4451 | .block_erase = spi_block_erase_d8, |
| 4452 | }, { |
| 4453 | .eraseblocks = { {1024 * 1024, 1} }, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame] | 4454 | .block_erase = spi_block_erase_c7, |
| 4455 | } |
| 4456 | }, |
| 4457 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4458 | .unlock = spi_disable_blockprotect, |
| 4459 | .write = spi_chip_write_256, |
| 4460 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4461 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4462 | }, |
| 4463 | |
| 4464 | { |
| 4465 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4466 | .name = "EN25F05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4467 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4468 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4469 | .model_id = EON_EN25F05, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4470 | .total_size = 64, |
| 4471 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4472 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 4473 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4474 | .probe = probe_spi_rdid, |
| 4475 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4476 | .block_erasers = |
| 4477 | { |
| 4478 | { |
| 4479 | .eraseblocks = { {4 * 1024, 16} }, |
| 4480 | .block_erase = spi_block_erase_20, |
| 4481 | }, { |
| 4482 | .eraseblocks = { {32 * 1024, 2} }, |
| 4483 | .block_erase = spi_block_erase_d8, |
| 4484 | }, { |
| 4485 | .eraseblocks = { {32 * 1024, 2} }, |
| 4486 | .block_erase = spi_block_erase_52, |
| 4487 | }, { |
| 4488 | .eraseblocks = { {64 * 1024, 1} }, |
| 4489 | .block_erase = spi_block_erase_60, |
| 4490 | }, { |
| 4491 | .eraseblocks = { {64 * 1024, 1} }, |
| 4492 | .block_erase = spi_block_erase_c7, |
| 4493 | } |
| 4494 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4495 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4496 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4497 | .write = spi_chip_write_256, |
| 4498 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4499 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4500 | }, |
| 4501 | |
| 4502 | { |
| 4503 | .vendor = "Eon", |
| 4504 | .name = "EN25F10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4505 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4506 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4507 | .model_id = EON_EN25F10, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4508 | .total_size = 128, |
| 4509 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4510 | .feature_bits = FEATURE_WRSR_WREN, |
Simon Buhrow | d173ed4 | 2021-09-29 09:28:07 +0200 | [diff] [blame] | 4511 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4512 | .probe = probe_spi_rdid, |
| 4513 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4514 | .block_erasers = |
| 4515 | { |
| 4516 | { |
| 4517 | .eraseblocks = { {4 * 1024, 32} }, |
| 4518 | .block_erase = spi_block_erase_20, |
| 4519 | }, { |
| 4520 | .eraseblocks = { {32 * 1024, 4} }, |
| 4521 | .block_erase = spi_block_erase_d8, |
| 4522 | }, { |
| 4523 | .eraseblocks = { {32 * 1024, 4} }, |
| 4524 | .block_erase = spi_block_erase_52, |
| 4525 | }, { |
| 4526 | .eraseblocks = { {128 * 1024, 1} }, |
| 4527 | .block_erase = spi_block_erase_60, |
| 4528 | }, { |
| 4529 | .eraseblocks = { {128 * 1024, 1} }, |
| 4530 | .block_erase = spi_block_erase_c7, |
| 4531 | } |
| 4532 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4533 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4534 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4535 | .write = spi_chip_write_256, |
| 4536 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4537 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4538 | }, |
| 4539 | |
| 4540 | { |
| 4541 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4542 | .name = "EN25F16", |
| 4543 | .bustype = BUS_SPI, |
| 4544 | .manufacture_id = EON_ID_NOPREFIX, |
| 4545 | .model_id = EON_EN25F16, |
| 4546 | .total_size = 2048, |
| 4547 | .page_size = 256, |
| 4548 | .feature_bits = FEATURE_WRSR_WREN, |
| 4549 | .tested = TEST_OK_PREW, |
| 4550 | .probe = probe_spi_rdid, |
| 4551 | .probe_timing = TIMING_ZERO, |
| 4552 | .block_erasers = |
| 4553 | { |
| 4554 | { |
| 4555 | .eraseblocks = { {4 * 1024, 512} }, |
| 4556 | .block_erase = spi_block_erase_20, |
| 4557 | }, { |
| 4558 | .eraseblocks = { {64 * 1024, 32} }, |
| 4559 | .block_erase = spi_block_erase_d8, |
| 4560 | }, { |
| 4561 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4562 | .block_erase = spi_block_erase_60, |
| 4563 | }, { |
| 4564 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4565 | .block_erase = spi_block_erase_c7, |
| 4566 | } |
| 4567 | }, |
| 4568 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4569 | .unlock = spi_disable_blockprotect, |
| 4570 | .write = spi_chip_write_256, |
| 4571 | .read = spi_chip_read, |
| 4572 | .voltage = {2700, 3600}, |
| 4573 | }, |
| 4574 | |
| 4575 | { |
| 4576 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4577 | .name = "EN25F20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4578 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4579 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4580 | .model_id = EON_EN25F20, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4581 | .total_size = 256, |
| 4582 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4583 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4584 | .tested = TEST_UNTESTED, |
| 4585 | .probe = probe_spi_rdid, |
| 4586 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4587 | .block_erasers = |
| 4588 | { |
| 4589 | { |
| 4590 | .eraseblocks = { {4 * 1024, 64} }, |
| 4591 | .block_erase = spi_block_erase_20, |
| 4592 | }, { |
| 4593 | .eraseblocks = { {64 * 1024, 4} }, |
| 4594 | .block_erase = spi_block_erase_d8, |
| 4595 | }, { |
| 4596 | .eraseblocks = { {64 * 1024, 4} }, |
| 4597 | .block_erase = spi_block_erase_52, |
| 4598 | }, { |
| 4599 | .eraseblocks = { {256 * 1024, 1} }, |
| 4600 | .block_erase = spi_block_erase_60, |
| 4601 | }, { |
| 4602 | .eraseblocks = { {256 * 1024, 1} }, |
| 4603 | .block_erase = spi_block_erase_c7, |
| 4604 | } |
| 4605 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4606 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4607 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4608 | .write = spi_chip_write_256, |
| 4609 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4610 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4611 | }, |
| 4612 | |
| 4613 | { |
| 4614 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4615 | .name = "EN25F32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4616 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4617 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4618 | .model_id = EON_EN25F32, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4619 | .total_size = 4096, |
| 4620 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4621 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 4622 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4623 | .probe = probe_spi_rdid, |
| 4624 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4625 | .block_erasers = |
| 4626 | { |
| 4627 | { |
| 4628 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4629 | .block_erase = spi_block_erase_20, |
| 4630 | }, { |
| 4631 | .eraseblocks = { {64 * 1024, 64} }, |
| 4632 | .block_erase = spi_block_erase_d8, |
| 4633 | }, { |
| 4634 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4635 | .block_erase = spi_block_erase_60, |
| 4636 | }, { |
| 4637 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4638 | .block_erase = spi_block_erase_c7, |
| 4639 | } |
| 4640 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4641 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4642 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4643 | .write = spi_chip_write_256, |
| 4644 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4645 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4646 | }, |
| 4647 | |
| 4648 | { |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4649 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4650 | .name = "EN25F40", |
| 4651 | .bustype = BUS_SPI, |
| 4652 | .manufacture_id = EON_ID_NOPREFIX, |
| 4653 | .model_id = EON_EN25F40, |
| 4654 | .total_size = 512, |
| 4655 | .page_size = 256, |
| 4656 | .feature_bits = FEATURE_WRSR_WREN, |
| 4657 | .tested = TEST_OK_PREW, |
| 4658 | .probe = probe_spi_rdid, |
| 4659 | .probe_timing = TIMING_ZERO, |
| 4660 | .block_erasers = |
| 4661 | { |
| 4662 | { |
| 4663 | .eraseblocks = { {4 * 1024, 128} }, |
| 4664 | .block_erase = spi_block_erase_20, |
| 4665 | }, { |
| 4666 | .eraseblocks = { {64 * 1024, 8} }, |
| 4667 | .block_erase = spi_block_erase_d8, |
| 4668 | }, { |
| 4669 | .eraseblocks = { {512 * 1024, 1} }, |
| 4670 | .block_erase = spi_block_erase_60, |
| 4671 | }, { |
| 4672 | .eraseblocks = { {512 * 1024, 1} }, |
| 4673 | .block_erase = spi_block_erase_c7, |
| 4674 | }, |
| 4675 | }, |
| 4676 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4677 | .unlock = spi_disable_blockprotect, |
| 4678 | .write = spi_chip_write_256, |
| 4679 | .read = spi_chip_read, |
| 4680 | .voltage = {2700, 3600}, |
| 4681 | }, |
| 4682 | |
| 4683 | { |
| 4684 | .vendor = "Eon", |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4685 | .name = "EN25F64", |
| 4686 | .bustype = BUS_SPI, |
| 4687 | .manufacture_id = EON_ID_NOPREFIX, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 4688 | .model_id = EON_EN25F64, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4689 | .total_size = 8192, |
| 4690 | .page_size = 256, |
| 4691 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 4692 | .tested = TEST_OK_PREW, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4693 | .probe = probe_spi_rdid, |
| 4694 | .probe_timing = TIMING_ZERO, |
| 4695 | .block_erasers = |
| 4696 | { |
| 4697 | { |
| 4698 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4699 | .block_erase = spi_block_erase_20, |
| 4700 | }, { |
| 4701 | .eraseblocks = { {64 * 1024, 128} }, |
| 4702 | .block_erase = spi_block_erase_d8, |
| 4703 | }, { |
| 4704 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4705 | .block_erase = spi_block_erase_60, |
| 4706 | }, { |
| 4707 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4708 | .block_erase = spi_block_erase_c7, |
| 4709 | } |
| 4710 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4711 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4712 | .unlock = spi_disable_blockprotect, |
| 4713 | .write = spi_chip_write_256, |
| 4714 | .read = spi_chip_read, |
| 4715 | .voltage = {2700, 3600}, |
| 4716 | }, |
| 4717 | |
| 4718 | { |
| 4719 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4720 | .name = "EN25F80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4721 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4722 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4723 | .model_id = EON_EN25F80, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4724 | .total_size = 1024, |
| 4725 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4726 | .feature_bits = FEATURE_WRSR_WREN, |
| 4727 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4728 | .probe = probe_spi_rdid, |
| 4729 | .probe_timing = TIMING_ZERO, |
| 4730 | .block_erasers = |
| 4731 | { |
| 4732 | { |
| 4733 | .eraseblocks = { {4 * 1024, 256} }, |
| 4734 | .block_erase = spi_block_erase_20, |
| 4735 | }, { |
| 4736 | .eraseblocks = { {64 * 1024, 16} }, |
| 4737 | .block_erase = spi_block_erase_d8, |
| 4738 | }, { |
| 4739 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4740 | .block_erase = spi_block_erase_60, |
| 4741 | }, { |
| 4742 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4743 | .block_erase = spi_block_erase_c7, |
| 4744 | } |
| 4745 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4746 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4747 | .unlock = spi_disable_blockprotect, |
| 4748 | .write = spi_chip_write_256, |
| 4749 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4750 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4751 | }, |
| 4752 | |
| 4753 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 4754 | .vendor = "Eon", |
| 4755 | .name = "EN25P05", |
| 4756 | .bustype = BUS_SPI, |
| 4757 | .manufacture_id = EON_ID_NOPREFIX, |
| 4758 | .model_id = EON_EN25B05, |
| 4759 | .total_size = 64, |
| 4760 | .page_size = 256, |
| 4761 | .feature_bits = FEATURE_WRSR_WREN, |
| 4762 | .tested = TEST_UNTESTED, |
| 4763 | .probe = probe_spi_rdid, |
| 4764 | .probe_timing = TIMING_ZERO, |
| 4765 | .block_erasers = |
| 4766 | { |
| 4767 | { |
| 4768 | .eraseblocks = { |
| 4769 | {32 * 1024, 2} }, |
| 4770 | .block_erase = spi_block_erase_d8, |
| 4771 | }, { |
| 4772 | .eraseblocks = { {64 * 1024, 1} }, |
| 4773 | .block_erase = spi_block_erase_c7, |
| 4774 | } |
| 4775 | }, |
| 4776 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4777 | .unlock = spi_disable_blockprotect, |
| 4778 | .write = spi_chip_write_256, |
| 4779 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4780 | .voltage = {2700, 3600}, |
| 4781 | }, |
| 4782 | |
| 4783 | { |
| 4784 | .vendor = "Eon", |
| 4785 | .name = "EN25P10", |
| 4786 | .bustype = BUS_SPI, |
| 4787 | .manufacture_id = EON_ID_NOPREFIX, |
| 4788 | .model_id = EON_EN25B10, |
| 4789 | .total_size = 128, |
| 4790 | .page_size = 256, |
| 4791 | .feature_bits = FEATURE_WRSR_WREN, |
| 4792 | .tested = TEST_UNTESTED, |
| 4793 | .probe = probe_spi_rdid, |
| 4794 | .probe_timing = TIMING_ZERO, |
| 4795 | .block_erasers = |
| 4796 | { |
| 4797 | { |
| 4798 | .eraseblocks = { {32 * 1024, 4} }, |
| 4799 | .block_erase = spi_block_erase_d8, |
| 4800 | }, { |
| 4801 | .eraseblocks = { {128 * 1024, 1} }, |
| 4802 | .block_erase = spi_block_erase_c7, |
| 4803 | } |
| 4804 | }, |
| 4805 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4806 | .unlock = spi_disable_blockprotect, |
| 4807 | .write = spi_chip_write_256, |
| 4808 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4809 | .voltage = {2700, 3600}, |
| 4810 | }, |
| 4811 | |
| 4812 | { |
| 4813 | .vendor = "Eon", |
| 4814 | .name = "EN25P16", |
| 4815 | .bustype = BUS_SPI, |
| 4816 | .manufacture_id = EON_ID_NOPREFIX, |
| 4817 | .model_id = EON_EN25B16, |
| 4818 | .total_size = 2048, |
| 4819 | .page_size = 256, |
| 4820 | .feature_bits = FEATURE_WRSR_WREN, |
| 4821 | .tested = TEST_UNTESTED, |
| 4822 | .probe = probe_spi_rdid, |
| 4823 | .probe_timing = TIMING_ZERO, |
| 4824 | .block_erasers = |
| 4825 | { |
| 4826 | { |
| 4827 | .eraseblocks = { {64 * 1024, 32} }, |
| 4828 | .block_erase = spi_block_erase_d8, |
| 4829 | }, { |
| 4830 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4831 | .block_erase = spi_block_erase_c7, |
| 4832 | } |
| 4833 | }, |
| 4834 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4835 | .unlock = spi_disable_blockprotect, |
| 4836 | .write = spi_chip_write_256, |
| 4837 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4838 | .voltage = {2700, 3600}, |
| 4839 | }, |
| 4840 | |
| 4841 | { |
| 4842 | .vendor = "Eon", |
| 4843 | .name = "EN25P20", |
| 4844 | .bustype = BUS_SPI, |
| 4845 | .manufacture_id = EON_ID_NOPREFIX, |
| 4846 | .model_id = EON_EN25B20, |
| 4847 | .total_size = 256, |
| 4848 | .page_size = 256, |
| 4849 | .feature_bits = FEATURE_WRSR_WREN, |
| 4850 | .tested = TEST_UNTESTED, |
| 4851 | .probe = probe_spi_rdid, |
| 4852 | .probe_timing = TIMING_ZERO, |
| 4853 | .block_erasers = |
| 4854 | { |
| 4855 | { |
| 4856 | .eraseblocks = { {64 * 1024, 4} }, |
| 4857 | .block_erase = spi_block_erase_d8, |
| 4858 | }, { |
| 4859 | .eraseblocks = { {256 * 1024, 1} }, |
| 4860 | .block_erase = spi_block_erase_c7, |
| 4861 | } |
| 4862 | }, |
| 4863 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4864 | .unlock = spi_disable_blockprotect, |
| 4865 | .write = spi_chip_write_256, |
| 4866 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4867 | .voltage = {2700, 3600}, |
| 4868 | }, |
| 4869 | |
| 4870 | { |
| 4871 | .vendor = "Eon", |
| 4872 | .name = "EN25P32", /* Uniform version of EN25B32 */ |
| 4873 | .bustype = BUS_SPI, |
| 4874 | .manufacture_id = EON_ID_NOPREFIX, |
| 4875 | .model_id = EON_EN25B32, |
| 4876 | .total_size = 4096, |
| 4877 | .page_size = 256, |
| 4878 | /* OTP: 512B total; enter 0x3A */ |
| 4879 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4880 | .tested = TEST_UNTESTED, |
| 4881 | .probe = probe_spi_rdid, |
| 4882 | .probe_timing = TIMING_ZERO, |
| 4883 | .block_erasers = |
| 4884 | { |
| 4885 | { |
| 4886 | .eraseblocks = { {64 * 1024, 64} }, |
| 4887 | .block_erase = spi_block_erase_d8, |
| 4888 | }, { |
| 4889 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4890 | .block_erase = spi_block_erase_c7, |
| 4891 | } |
| 4892 | }, |
| 4893 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4894 | .unlock = spi_disable_blockprotect, |
| 4895 | .write = spi_chip_write_256, |
| 4896 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4897 | .voltage = {2700, 3600}, |
| 4898 | }, |
| 4899 | |
| 4900 | { |
| 4901 | .vendor = "Eon", |
| 4902 | .name = "EN25P40", |
| 4903 | .bustype = BUS_SPI, |
| 4904 | .manufacture_id = EON_ID_NOPREFIX, |
| 4905 | .model_id = EON_EN25B40, |
| 4906 | .total_size = 512, |
| 4907 | .page_size = 256, |
| 4908 | .feature_bits = FEATURE_WRSR_WREN, |
| 4909 | .tested = TEST_UNTESTED, |
| 4910 | .probe = probe_spi_rdid, |
| 4911 | .probe_timing = TIMING_ZERO, |
| 4912 | .block_erasers = |
| 4913 | { |
| 4914 | { |
| 4915 | .eraseblocks = { {64 * 1024, 8} }, |
| 4916 | .block_erase = spi_block_erase_d8, |
| 4917 | }, { |
| 4918 | .eraseblocks = { {512 * 1024, 1} }, |
| 4919 | .block_erase = spi_block_erase_c7, |
| 4920 | } |
| 4921 | }, |
| 4922 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4923 | .unlock = spi_disable_blockprotect, |
| 4924 | .write = spi_chip_write_256, |
| 4925 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4926 | .voltage = {2700, 3600}, |
| 4927 | }, |
| 4928 | |
| 4929 | { |
| 4930 | .vendor = "Eon", |
| 4931 | .name = "EN25P64", |
| 4932 | .bustype = BUS_SPI, |
| 4933 | .manufacture_id = EON_ID_NOPREFIX, |
| 4934 | .model_id = EON_EN25B64, |
| 4935 | .total_size = 8192, |
| 4936 | .page_size = 256, |
| 4937 | /* OTP: 512B total; enter 0x3A */ |
| 4938 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4939 | .tested = TEST_UNTESTED, |
| 4940 | .probe = probe_spi_rdid, |
| 4941 | .probe_timing = TIMING_ZERO, |
| 4942 | .block_erasers = |
| 4943 | { |
| 4944 | { |
| 4945 | .eraseblocks = { {64 * 1024, 128} }, |
| 4946 | .block_erase = spi_block_erase_d8, |
| 4947 | }, { |
| 4948 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4949 | .block_erase = spi_block_erase_c7, |
| 4950 | } |
| 4951 | }, |
| 4952 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4953 | .unlock = spi_disable_blockprotect, |
| 4954 | .write = spi_chip_write_256, |
| 4955 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4956 | .voltage = {2700, 3600}, |
| 4957 | }, |
| 4958 | |
| 4959 | { |
| 4960 | .vendor = "Eon", |
| 4961 | .name = "EN25P80", |
| 4962 | .bustype = BUS_SPI, |
| 4963 | .manufacture_id = EON_ID_NOPREFIX, |
| 4964 | .model_id = EON_EN25B80, |
| 4965 | .total_size = 1024, |
| 4966 | .page_size = 256, |
| 4967 | .feature_bits = FEATURE_WRSR_WREN, |
| 4968 | .tested = TEST_UNTESTED, |
| 4969 | .probe = probe_spi_rdid, |
| 4970 | .probe_timing = TIMING_ZERO, |
| 4971 | .block_erasers = |
| 4972 | { |
| 4973 | { |
| 4974 | .eraseblocks = { {64 * 1024, 16} }, |
| 4975 | .block_erase = spi_block_erase_d8, |
| 4976 | }, { |
| 4977 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4978 | .block_erase = spi_block_erase_c7, |
| 4979 | } |
| 4980 | }, |
| 4981 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4982 | .unlock = spi_disable_blockprotect, |
| 4983 | .write = spi_chip_write_256, |
| 4984 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4985 | .voltage = {2700, 3600}, |
| 4986 | }, |
| 4987 | |
| 4988 | { |
| 4989 | .vendor = "Eon", |
| 4990 | .name = "EN25Q128", |
| 4991 | .bustype = BUS_SPI, |
| 4992 | .manufacture_id = EON_ID_NOPREFIX, |
| 4993 | .model_id = EON_EN25Q128, |
| 4994 | .total_size = 16384, |
| 4995 | .page_size = 256, |
| 4996 | /* OTP: 512B total; enter 0x3A */ |
| 4997 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4998 | .tested = TEST_OK_PREW, |
| 4999 | .probe = probe_spi_rdid, |
| 5000 | .probe_timing = TIMING_ZERO, |
| 5001 | .block_erasers = |
| 5002 | { |
| 5003 | { |
| 5004 | .eraseblocks = { {4 * 1024, 4096} }, |
| 5005 | .block_erase = spi_block_erase_20, |
| 5006 | }, { |
| 5007 | .eraseblocks = { {64 * 1024, 256} }, |
| 5008 | .block_erase = spi_block_erase_d8, |
| 5009 | }, { |
| 5010 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 5011 | .block_erase = spi_block_erase_60, |
| 5012 | }, { |
| 5013 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 5014 | .block_erase = spi_block_erase_c7, |
| 5015 | } |
| 5016 | }, |
| 5017 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 5018 | .unlock = spi_disable_blockprotect, |
| 5019 | .write = spi_chip_write_256, |
| 5020 | .read = spi_chip_read, |
| 5021 | }, |
| 5022 | |
| 5023 | { |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5024 | /* Note: EN25D16 is an evil twin which shares the model ID |
| 5025 | but has different write protection capabilities */ |
| 5026 | .vendor = "Eon", |
| 5027 | .name = "EN25Q16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5028 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5029 | .manufacture_id = EON_ID_NOPREFIX, |
| 5030 | .model_id = EON_EN25Q16, |
| 5031 | .total_size = 2048, |
| 5032 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 5033 | /* OTP: D16 512B/Q16 128B total; enter 0x3A */ |
| 5034 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5035 | .tested = TEST_UNTESTED, |
| 5036 | .probe = probe_spi_rdid, |
| 5037 | .probe_timing = TIMING_ZERO, |
| 5038 | .block_erasers = |
| 5039 | { |
| 5040 | { |
| 5041 | .eraseblocks = { {4 * 1024, 512} }, |
| 5042 | .block_erase = spi_block_erase_20, |
| 5043 | }, { |
| 5044 | .eraseblocks = { {64 * 1024, 32} }, |
| 5045 | .block_erase = spi_block_erase_d8, |
| 5046 | }, { |
| 5047 | /* not supported by Q16 version */ |
| 5048 | .eraseblocks = { {64 * 1024, 32} }, |
| 5049 | .block_erase = spi_block_erase_52, |
| 5050 | }, { |
| 5051 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5052 | .block_erase = spi_block_erase_60, |
| 5053 | }, { |
| 5054 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5055 | .block_erase = spi_block_erase_c7, |
| 5056 | } |
| 5057 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 5058 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5059 | .unlock = spi_disable_blockprotect, |
| 5060 | .write = spi_chip_write_256, |
| 5061 | .read = spi_chip_read, |
| 5062 | .voltage = {2700, 3600}, |
| 5063 | }, |
| 5064 | |
| 5065 | { |
| 5066 | .vendor = "Eon", |
| 5067 | .name = "EN25Q32(A/B)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5068 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5069 | .manufacture_id = EON_ID_NOPREFIX, |
| 5070 | .model_id = EON_EN25Q32, |
| 5071 | .total_size = 4096, |
| 5072 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 5073 | /* OTP: 512B total; enter 0x3A */ |
| 5074 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5075 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5076 | .probe = probe_spi_rdid, |
| 5077 | .probe_timing = TIMING_ZERO, |
| 5078 | .block_erasers = |
| 5079 | { |
| 5080 | { |
| 5081 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5082 | .block_erase = spi_block_erase_20, |
| 5083 | }, { |
| 5084 | .eraseblocks = { {64 * 1024, 64} }, |
| 5085 | .block_erase = spi_block_erase_d8, |
| 5086 | }, { |
| 5087 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5088 | .block_erase = spi_block_erase_60, |
| 5089 | }, { |
| 5090 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5091 | .block_erase = spi_block_erase_c7, |
| 5092 | } |
| 5093 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 5094 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5095 | .unlock = spi_disable_blockprotect, |
| 5096 | .write = spi_chip_write_256, |
| 5097 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 5098 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5099 | }, |
| 5100 | |
| 5101 | { |
| 5102 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5103 | .name = "EN25Q40", |
| 5104 | .bustype = BUS_SPI, |
| 5105 | .manufacture_id = EON_ID_NOPREFIX, |
| 5106 | .model_id = EON_EN25Q40, |
| 5107 | .total_size = 512, |
| 5108 | .page_size = 256, |
| 5109 | /* OTP: 256B total; enter 0x3A */ |
| 5110 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5111 | .tested = TEST_UNTESTED, |
| 5112 | .probe = probe_spi_rdid, |
| 5113 | .probe_timing = TIMING_ZERO, |
| 5114 | .block_erasers = |
| 5115 | { |
| 5116 | { |
| 5117 | .eraseblocks = { {4 * 1024, 128} }, |
| 5118 | .block_erase = spi_block_erase_20, |
| 5119 | }, { |
| 5120 | .eraseblocks = { {64 * 1024, 8} }, |
| 5121 | .block_erase = spi_block_erase_d8, |
| 5122 | }, { |
| 5123 | .eraseblocks = { {512 * 1024, 1} }, |
| 5124 | .block_erase = spi_block_erase_60, |
| 5125 | }, { |
| 5126 | .eraseblocks = { {512 * 1024, 1} }, |
| 5127 | .block_erase = spi_block_erase_c7, |
| 5128 | } |
| 5129 | }, |
| 5130 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 5131 | .unlock = spi_disable_blockprotect, |
| 5132 | .write = spi_chip_write_256, |
| 5133 | .read = spi_chip_read, |
| 5134 | .voltage = {2700, 3600}, |
| 5135 | }, |
| 5136 | |
| 5137 | { |
| 5138 | .vendor = "Eon", |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5139 | .name = "EN25Q64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5140 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5141 | .manufacture_id = EON_ID_NOPREFIX, |
| 5142 | .model_id = EON_EN25Q64, |
| 5143 | .total_size = 8192, |
| 5144 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 5145 | /* OTP: 512B total; enter 0x3A */ |
| 5146 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5147 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5148 | .probe = probe_spi_rdid, |
| 5149 | .probe_timing = TIMING_ZERO, |
| 5150 | .block_erasers = |
| 5151 | { |
| 5152 | { |
| 5153 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5154 | .block_erase = spi_block_erase_20, |
| 5155 | }, { |
| 5156 | .eraseblocks = { {64 * 1024, 128} }, |
| 5157 | .block_erase = spi_block_erase_d8, |
| 5158 | }, { |
| 5159 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5160 | .block_erase = spi_block_erase_60, |
| 5161 | }, { |
| 5162 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5163 | .block_erase = spi_block_erase_c7, |
| 5164 | } |
| 5165 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 5166 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5167 | .unlock = spi_disable_blockprotect, |
| 5168 | .write = spi_chip_write_256, |
| 5169 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 5170 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5171 | }, |
| 5172 | |
| 5173 | { |
| 5174 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5175 | .name = "EN25Q80(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5176 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5177 | .manufacture_id = EON_ID_NOPREFIX, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5178 | .model_id = EON_EN25Q80, |
| 5179 | .total_size = 1024, |
| 5180 | .page_size = 256, |
| 5181 | /* OTP: 256B total; enter 0x3A */ |
| 5182 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5183 | .tested = TEST_UNTESTED, |
| 5184 | .probe = probe_spi_rdid, |
| 5185 | .probe_timing = TIMING_ZERO, |
| 5186 | .block_erasers = |
| 5187 | { |
| 5188 | { |
| 5189 | .eraseblocks = { {4 * 1024, 256} }, |
| 5190 | .block_erase = spi_block_erase_20, |
| 5191 | }, { |
| 5192 | .eraseblocks = { {64 * 1024, 16} }, |
| 5193 | .block_erase = spi_block_erase_d8, |
| 5194 | }, { |
| 5195 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5196 | .block_erase = spi_block_erase_60, |
| 5197 | }, { |
| 5198 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5199 | .block_erase = spi_block_erase_c7, |
| 5200 | } |
| 5201 | }, |
| 5202 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 5203 | .unlock = spi_disable_blockprotect, |
| 5204 | .write = spi_chip_write_256, |
| 5205 | .read = spi_chip_read, |
| 5206 | .voltage = {2700, 3600}, |
| 5207 | }, |
| 5208 | |
| 5209 | { |
| 5210 | .vendor = "Eon", |
| 5211 | .name = "EN25QH128", |
| 5212 | .bustype = BUS_SPI, |
| 5213 | .manufacture_id = EON_ID_NOPREFIX, |
| 5214 | .model_id = EON_EN25QH128, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5215 | .total_size = 16384, |
| 5216 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5217 | /* supports SFDP */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 5218 | /* OTP: 512B total; enter 0x3A */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 5219 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | (FEATURE_QPI_38 & ~FEATURE_FAST_READ_QOUT), |
| 5220 | .dummy_cycles = |
| 5221 | { |
| 5222 | .qpi_fast_read = 6, |
| 5223 | .qpi_fast_read_qio = 6, |
| 5224 | }, |
Tim Chen | bfe149a | 2020-07-06 14:59:21 +0800 | [diff] [blame] | 5225 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5226 | .probe = probe_spi_rdid, |
| 5227 | .probe_timing = TIMING_ZERO, |
| 5228 | .block_erasers = |
| 5229 | { |
| 5230 | { |
| 5231 | .eraseblocks = { {4 * 1024, 4096} }, |
| 5232 | .block_erase = spi_block_erase_20, |
| 5233 | }, { |
| 5234 | .eraseblocks = { {64 * 1024, 256} }, |
| 5235 | .block_erase = spi_block_erase_d8, |
| 5236 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5237 | .eraseblocks = { { 16384 * 1024, 1} }, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5238 | .block_erase = spi_block_erase_60, |
| 5239 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5240 | .eraseblocks = { { 16384 * 1024, 1} }, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5241 | .block_erase = spi_block_erase_c7, |
| 5242 | } |
| 5243 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5244 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 5245 | .unlock = spi_disable_blockprotect_bp3_srwd, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5246 | .write = spi_chip_write_256, |
| 5247 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5248 | .voltage = {2700, 3600}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 5249 | .reg_bits = |
| 5250 | { |
| 5251 | .srp = {STATUS1, 7, RW}, |
| 5252 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 5253 | .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */ |
| 5254 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 5255 | .wp_write_cfg = spi_wp_write_cfg, |
| 5256 | .wp_read_cfg = spi_wp_read_cfg, |
| 5257 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 5258 | .decode_range = decode_range_spi25, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 5259 | .prepare_access = spi_prepare_io, |
| 5260 | .finish_access = spi_finish_io, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5261 | }, |
| 5262 | |
| 5263 | { |
| 5264 | .vendor = "Eon", |
| 5265 | .name = "EN25QH16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5266 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5267 | .manufacture_id = EON_ID_NOPREFIX, |
| 5268 | .model_id = EON_EN25QH16, |
| 5269 | .total_size = 2048, |
| 5270 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 5271 | /* supports SFDP */ |
| 5272 | /* OTP: 512B total; enter 0x3A */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 5273 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | (FEATURE_QPI_38 & ~FEATURE_FAST_READ_QOUT), |
| 5274 | .dummy_cycles = |
| 5275 | { |
| 5276 | .qpi_fast_read = 6, |
| 5277 | .qpi_fast_read_qio = 6, |
| 5278 | }, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 5279 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5280 | .probe = probe_spi_rdid, |
| 5281 | .probe_timing = TIMING_ZERO, |
| 5282 | .block_erasers = |
| 5283 | { |
| 5284 | { |
| 5285 | .eraseblocks = { {4 * 1024, 512} }, |
| 5286 | .block_erase = spi_block_erase_20, |
| 5287 | }, { |
| 5288 | .eraseblocks = { {64 * 1024, 32} }, |
| 5289 | .block_erase = spi_block_erase_d8, |
| 5290 | }, { |
| 5291 | .eraseblocks = { {1024 * 2048, 1} }, |
| 5292 | .block_erase = spi_block_erase_60, |
| 5293 | }, { |
| 5294 | .eraseblocks = { {1024 * 2048, 1} }, |
| 5295 | .block_erase = spi_block_erase_c7, |
| 5296 | } |
| 5297 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5298 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5299 | .unlock = spi_disable_blockprotect_bp3_srwd, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 5300 | .write = spi_chip_write_256, |
| 5301 | .read = spi_chip_read, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 5302 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 5303 | .prepare_access = spi_prepare_io, |
| 5304 | .finish_access = spi_finish_io, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 5305 | }, |
| 5306 | |
| 5307 | { |
| 5308 | .vendor = "Eon", |
| 5309 | .name = "EN25QH32", |
| 5310 | .bustype = BUS_SPI, |
| 5311 | .manufacture_id = EON_ID_NOPREFIX, |
| 5312 | .model_id = EON_EN25QH32, |
| 5313 | .total_size = 4096, |
| 5314 | .page_size = 256, |
| 5315 | /* supports SFDP */ |
| 5316 | /* OTP: 512B total; enter 0x3A */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 5317 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | (FEATURE_QPI_38 & ~FEATURE_FAST_READ_QOUT), |
| 5318 | .dummy_cycles = |
| 5319 | { |
| 5320 | .qpi_fast_read = 6, |
| 5321 | .qpi_fast_read_qio = 6, |
| 5322 | }, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 5323 | .tested = TEST_OK_PREW, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 5324 | .probe = probe_spi_rdid, |
| 5325 | .probe_timing = TIMING_ZERO, |
| 5326 | .block_erasers = |
| 5327 | { |
| 5328 | { |
| 5329 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5330 | .block_erase = spi_block_erase_20, |
| 5331 | }, { |
| 5332 | .eraseblocks = { {64 * 1024, 64} }, |
| 5333 | .block_erase = spi_block_erase_d8, |
| 5334 | }, { |
| 5335 | .eraseblocks = { {1024 * 4096, 1} }, |
| 5336 | .block_erase = spi_block_erase_60, |
| 5337 | }, { |
| 5338 | .eraseblocks = { {1024 * 4096, 1} }, |
| 5339 | .block_erase = spi_block_erase_c7, |
| 5340 | } |
| 5341 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5342 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5343 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5344 | .write = spi_chip_write_256, |
| 5345 | .read = spi_chip_read, |
| 5346 | .voltage = {2700, 3600}, |
Sergii Dmytruk | c6e8b1a | 2022-08-14 20:57:48 +0300 | [diff] [blame] | 5347 | .reg_bits = |
| 5348 | { |
| 5349 | .srp = {STATUS1, 7, RW}, |
| 5350 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 5351 | .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */ |
| 5352 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 5353 | .wp_write_cfg = spi_wp_write_cfg, |
| 5354 | .wp_read_cfg = spi_wp_read_cfg, |
| 5355 | .wp_get_ranges = spi_wp_get_available_ranges, |
Sergii Dmytruk | c6e8b1a | 2022-08-14 20:57:48 +0300 | [diff] [blame] | 5356 | .decode_range = decode_range_spi25, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 5357 | .prepare_access = spi_prepare_io, |
| 5358 | .finish_access = spi_finish_io, |
Sergii Dmytruk | c6e8b1a | 2022-08-14 20:57:48 +0300 | [diff] [blame] | 5359 | }, |
| 5360 | |
| 5361 | { |
| 5362 | .vendor = "Eon", |
| 5363 | .name = "EN25QH32B", |
| 5364 | .bustype = BUS_SPI, |
| 5365 | .manufacture_id = EON_ID_NOPREFIX, |
| 5366 | .model_id = EON_EN25QH32, |
| 5367 | .total_size = 4096, |
| 5368 | .page_size = 256, |
| 5369 | /* supports SFDP */ |
| 5370 | /* OTP: 1536B total; enter 0x3A */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 5371 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_38, |
| 5372 | .dummy_cycles = |
| 5373 | { |
| 5374 | .qpi_fast_read = 6, |
| 5375 | .qpi_fast_read_qio = 6, |
| 5376 | }, |
Sergii Dmytruk | c6e8b1a | 2022-08-14 20:57:48 +0300 | [diff] [blame] | 5377 | .tested = TEST_OK_PREW, |
| 5378 | .probe = probe_spi_rdid, |
| 5379 | .probe_timing = TIMING_ZERO, |
| 5380 | .block_erasers = |
| 5381 | { |
| 5382 | { |
| 5383 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5384 | .block_erase = spi_block_erase_20, |
| 5385 | }, { |
| 5386 | .eraseblocks = { {32 * 1024, 128} }, |
| 5387 | .block_erase = spi_block_erase_52, |
| 5388 | }, { |
| 5389 | .eraseblocks = { {64 * 1024, 64} }, |
| 5390 | .block_erase = spi_block_erase_d8, |
| 5391 | }, { |
| 5392 | .eraseblocks = { {1024 * 4096, 1} }, |
| 5393 | .block_erase = spi_block_erase_60, |
| 5394 | }, { |
| 5395 | .eraseblocks = { {1024 * 4096, 1} }, |
| 5396 | .block_erase = spi_block_erase_c7, |
| 5397 | } |
| 5398 | }, |
| 5399 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 5400 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5401 | .write = spi_chip_write_256, |
| 5402 | .read = spi_chip_read, |
| 5403 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 5404 | .prepare_access = spi_prepare_io, |
| 5405 | .finish_access = spi_finish_io, |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5406 | }, |
| 5407 | |
| 5408 | { |
| 5409 | .vendor = "Eon", |
| 5410 | .name = "EN25QH64", |
| 5411 | .bustype = BUS_SPI, |
| 5412 | .manufacture_id = EON_ID_NOPREFIX, |
| 5413 | .model_id = EON_EN25QH64, |
| 5414 | .total_size = 8192, |
| 5415 | .page_size = 256, |
| 5416 | /* supports SFDP */ |
| 5417 | /* OTP: 512B total; enter 0x3A */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 5418 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | (FEATURE_QPI_38 & ~FEATURE_FAST_READ_QOUT), |
| 5419 | .dummy_cycles = |
| 5420 | { |
| 5421 | .qpi_fast_read = 6, |
| 5422 | .qpi_fast_read_qio = 6, |
| 5423 | }, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 5424 | .tested = TEST_OK_PREW, |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5425 | .probe = probe_spi_rdid, |
| 5426 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5427 | .block_erasers = |
| 5428 | { |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5429 | { |
| 5430 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5431 | .block_erase = spi_block_erase_20, |
| 5432 | }, { |
| 5433 | .eraseblocks = { {64 * 1024, 128} }, |
| 5434 | .block_erase = spi_block_erase_d8, |
| 5435 | }, { |
| 5436 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 5437 | .block_erase = spi_block_erase_60, |
| 5438 | }, { |
| 5439 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 5440 | .block_erase = spi_block_erase_c7, |
| 5441 | } |
| 5442 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5443 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5444 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5445 | .write = spi_chip_write_256, |
| 5446 | .read = spi_chip_read, |
| 5447 | .voltage = {2700, 3600}, |
Sergii Dmytruk | c6e8b1a | 2022-08-14 20:57:48 +0300 | [diff] [blame] | 5448 | .reg_bits = |
| 5449 | { |
| 5450 | .srp = {STATUS1, 7, RW}, |
| 5451 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 5452 | .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */ |
| 5453 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 5454 | .wp_write_cfg = spi_wp_write_cfg, |
| 5455 | .wp_read_cfg = spi_wp_read_cfg, |
| 5456 | .wp_get_ranges = spi_wp_get_available_ranges, |
Sergii Dmytruk | c6e8b1a | 2022-08-14 20:57:48 +0300 | [diff] [blame] | 5457 | .decode_range = decode_range_spi25_64k_block, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 5458 | .prepare_access = spi_prepare_io, |
| 5459 | .finish_access = spi_finish_io, |
Sergii Dmytruk | c6e8b1a | 2022-08-14 20:57:48 +0300 | [diff] [blame] | 5460 | }, |
| 5461 | |
| 5462 | { |
| 5463 | .vendor = "Eon", |
| 5464 | .name = "EN25QH64A", |
| 5465 | .bustype = BUS_SPI, |
| 5466 | .manufacture_id = EON_ID_NOPREFIX, |
| 5467 | .model_id = EON_EN25QH64, |
| 5468 | .total_size = 8192, |
| 5469 | .page_size = 256, |
| 5470 | /* supports SFDP */ |
| 5471 | /* OTP: 512B total; enter 0x3A */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 5472 | /* Has a special, volatile status register 3 that is written with |
| 5473 | 0xc0 like Set Read Parameters. Hence treating as QPI_SRP. */ |
| 5474 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP, |
| 5475 | .dummy_cycles = { .qpi_read_params = { 6, 4, 8, 10 } }, |
Sergii Dmytruk | c6e8b1a | 2022-08-14 20:57:48 +0300 | [diff] [blame] | 5476 | .tested = TEST_OK_PREW, |
| 5477 | .probe = probe_spi_rdid, |
| 5478 | .probe_timing = TIMING_ZERO, |
| 5479 | .block_erasers = |
| 5480 | { |
| 5481 | { |
| 5482 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5483 | .block_erase = spi_block_erase_20, |
| 5484 | }, { |
| 5485 | .eraseblocks = { {32 * 1024, 256} }, |
| 5486 | .block_erase = spi_block_erase_52, |
| 5487 | }, { |
| 5488 | .eraseblocks = { {64 * 1024, 128} }, |
| 5489 | .block_erase = spi_block_erase_d8, |
| 5490 | }, { |
| 5491 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 5492 | .block_erase = spi_block_erase_60, |
| 5493 | }, { |
| 5494 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 5495 | .block_erase = spi_block_erase_c7, |
| 5496 | } |
| 5497 | }, |
| 5498 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 5499 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5500 | .write = spi_chip_write_256, |
| 5501 | .read = spi_chip_read, |
| 5502 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 5503 | .prepare_access = spi_prepare_io, |
| 5504 | .finish_access = spi_finish_io, |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 5505 | }, |
| 5506 | |
| 5507 | { |
| 5508 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5509 | .name = "EN25S10", |
| 5510 | .bustype = BUS_SPI, |
| 5511 | .manufacture_id = EON_ID_NOPREFIX, |
| 5512 | .model_id = EON_EN25S10, |
| 5513 | .total_size = 128, |
| 5514 | .page_size = 256, |
| 5515 | /* OTP: 256B total; enter 0x3A */ |
| 5516 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5517 | .tested = TEST_UNTESTED, |
| 5518 | .probe = probe_spi_rdid, |
| 5519 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5520 | .block_erasers = |
| 5521 | { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5522 | { |
| 5523 | .eraseblocks = { {4 * 1024, 32} }, |
| 5524 | .block_erase = spi_block_erase_20, |
| 5525 | }, { |
| 5526 | .eraseblocks = { {32 * 1024, 4} }, |
| 5527 | .block_erase = spi_block_erase_52, |
| 5528 | }, { |
| 5529 | .eraseblocks = { {128 * 1024, 1} }, |
| 5530 | .block_erase = spi_block_erase_60, |
| 5531 | }, { |
| 5532 | .eraseblocks = { {128 * 1024, 1} }, |
| 5533 | .block_erase = spi_block_erase_c7, |
| 5534 | } |
| 5535 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5536 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5537 | .unlock = spi_disable_blockprotect, |
| 5538 | .write = spi_chip_write_256, |
| 5539 | .read = spi_chip_read, |
| 5540 | .voltage = {1650, 1950}, |
| 5541 | }, |
| 5542 | |
| 5543 | { |
| 5544 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5545 | .name = "EN25S16", |
| 5546 | .bustype = BUS_SPI, |
| 5547 | .manufacture_id = EON_ID_NOPREFIX, |
| 5548 | .model_id = EON_EN25S16, |
| 5549 | .total_size = 2048, |
| 5550 | .page_size = 256, |
| 5551 | /* OTP: 512B total; enter 0x3A */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 5552 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | (FEATURE_QPI_38 & ~FEATURE_FAST_READ_QOUT), |
| 5553 | .dummy_cycles = |
| 5554 | { |
| 5555 | .qpi_fast_read = 6, |
| 5556 | .qpi_fast_read_qio = 6, |
| 5557 | }, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5558 | .tested = TEST_UNTESTED, |
| 5559 | .probe = probe_spi_rdid, |
| 5560 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5561 | .block_erasers = |
| 5562 | { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5563 | { |
| 5564 | .eraseblocks = { {4 * 1024, 512} }, |
| 5565 | .block_erase = spi_block_erase_20, |
| 5566 | }, { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5567 | .eraseblocks = { {32 * 1024, 64} }, |
| 5568 | .block_erase = spi_block_erase_d8, |
| 5569 | }, { |
Aarya Chaumal | 478e179 | 2022-06-04 01:34:44 +0530 | [diff] [blame] | 5570 | .eraseblocks = { {64 * 1024, 32} }, |
| 5571 | .block_erase = spi_block_erase_52, |
| 5572 | }, { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5573 | .eraseblocks = { {2048 * 1024, 1} }, |
| 5574 | .block_erase = spi_block_erase_60, |
| 5575 | }, { |
| 5576 | .eraseblocks = { {2048 * 1024, 1} }, |
| 5577 | .block_erase = spi_block_erase_c7, |
| 5578 | } |
| 5579 | }, |
| 5580 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 5581 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5582 | .write = spi_chip_write_256, |
| 5583 | .read = spi_chip_read, |
| 5584 | .voltage = {1650, 1950}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 5585 | .prepare_access = spi_prepare_io, |
| 5586 | .finish_access = spi_finish_io, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5587 | }, |
| 5588 | |
| 5589 | { |
| 5590 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5591 | .name = "EN25S20", |
| 5592 | .bustype = BUS_SPI, |
| 5593 | .manufacture_id = EON_ID_NOPREFIX, |
| 5594 | .model_id = EON_EN25S20, |
| 5595 | .total_size = 256, |
| 5596 | .page_size = 256, |
| 5597 | /* OTP: 256B total; enter 0x3A */ |
| 5598 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5599 | .tested = TEST_UNTESTED, |
| 5600 | .probe = probe_spi_rdid, |
| 5601 | .probe_timing = TIMING_ZERO, |
| 5602 | .block_erasers = |
| 5603 | { |
| 5604 | { |
| 5605 | .eraseblocks = { {4 * 1024, 64} }, |
| 5606 | .block_erase = spi_block_erase_20, |
| 5607 | }, { |
| 5608 | .eraseblocks = { {64 * 1024, 4} }, |
| 5609 | .block_erase = spi_block_erase_d8, |
| 5610 | }, { |
| 5611 | .eraseblocks = { {256 * 1024, 1} }, |
| 5612 | .block_erase = spi_block_erase_60, |
| 5613 | }, { |
| 5614 | .eraseblocks = { {256 * 1024, 1} }, |
| 5615 | .block_erase = spi_block_erase_c7, |
| 5616 | } |
| 5617 | }, |
| 5618 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 5619 | .unlock = spi_disable_blockprotect, |
| 5620 | .write = spi_chip_write_256, |
| 5621 | .read = spi_chip_read, |
| 5622 | .voltage = {1650, 1950}, |
| 5623 | }, |
| 5624 | |
| 5625 | { |
| 5626 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5627 | .name = "EN25S32", |
| 5628 | .bustype = BUS_SPI, |
| 5629 | .manufacture_id = EON_ID_NOPREFIX, |
| 5630 | .model_id = EON_EN25S32, |
| 5631 | .total_size = 4096, |
| 5632 | .page_size = 256, |
| 5633 | /* OTP: 512B total; enter 0x3A */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 5634 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | (FEATURE_QPI_38 & ~FEATURE_FAST_READ_QOUT), |
| 5635 | .dummy_cycles = |
| 5636 | { |
| 5637 | .qpi_fast_read = 6, |
| 5638 | .qpi_fast_read_qio = 6, |
| 5639 | }, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5640 | .tested = TEST_UNTESTED, |
| 5641 | .probe = probe_spi_rdid, |
| 5642 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5643 | .block_erasers = |
| 5644 | { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5645 | { |
| 5646 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5647 | .block_erase = spi_block_erase_20, |
| 5648 | }, { |
| 5649 | .eraseblocks = { {32 * 1024, 128} }, |
| 5650 | .block_erase = spi_block_erase_52, |
| 5651 | }, { |
| 5652 | .eraseblocks = { {64 * 1024, 64} }, |
| 5653 | .block_erase = spi_block_erase_d8, |
| 5654 | }, { |
| 5655 | .eraseblocks = { {4096 * 1024, 1} }, |
| 5656 | .block_erase = spi_block_erase_60, |
| 5657 | }, { |
| 5658 | .eraseblocks = { {4096 * 1024, 1} }, |
| 5659 | .block_erase = spi_block_erase_c7, |
| 5660 | } |
| 5661 | }, |
| 5662 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 5663 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5664 | .write = spi_chip_write_256, |
| 5665 | .read = spi_chip_read, |
| 5666 | .voltage = {1650, 1950}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 5667 | .prepare_access = spi_prepare_io, |
| 5668 | .finish_access = spi_finish_io, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5669 | }, |
| 5670 | |
| 5671 | { |
| 5672 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5673 | .name = "EN25S40", |
| 5674 | .bustype = BUS_SPI, |
| 5675 | .manufacture_id = EON_ID_NOPREFIX, |
| 5676 | .model_id = EON_EN25S40, |
| 5677 | .total_size = 512, |
| 5678 | .page_size = 256, |
| 5679 | /* OTP: 256B total; enter 0x3A */ |
| 5680 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5681 | .tested = TEST_OK_PREW, |
| 5682 | .probe = probe_spi_rdid, |
| 5683 | .probe_timing = TIMING_ZERO, |
| 5684 | .block_erasers = |
| 5685 | { |
| 5686 | { |
| 5687 | .eraseblocks = { {4 * 1024, 128} }, |
| 5688 | .block_erase = spi_block_erase_20, |
| 5689 | }, { |
| 5690 | .eraseblocks = { {64 * 1024, 8} }, |
| 5691 | .block_erase = spi_block_erase_d8, |
| 5692 | }, { |
| 5693 | .eraseblocks = { {512 * 1024, 1} }, |
| 5694 | .block_erase = spi_block_erase_60, |
| 5695 | }, { |
| 5696 | .eraseblocks = { {512 * 1024, 1} }, |
| 5697 | .block_erase = spi_block_erase_c7, |
| 5698 | } |
| 5699 | }, |
| 5700 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 5701 | .unlock = spi_disable_blockprotect, |
| 5702 | .write = spi_chip_write_256, |
| 5703 | .read = spi_chip_read, |
| 5704 | .voltage = {1650, 1950}, |
| 5705 | }, |
| 5706 | |
| 5707 | { |
| 5708 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5709 | .name = "EN25S64", |
| 5710 | .bustype = BUS_SPI, |
| 5711 | .manufacture_id = EON_ID_NOPREFIX, |
| 5712 | .model_id = EON_EN25S64, |
| 5713 | .total_size = 8192, |
| 5714 | .page_size = 256, |
| 5715 | /* OTP: 512B total; enter 0x3A */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 5716 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | (FEATURE_QPI_38 & ~FEATURE_FAST_READ_QOUT), |
| 5717 | .dummy_cycles = |
| 5718 | { |
| 5719 | .qpi_fast_read = 6, |
| 5720 | .qpi_fast_read_qio = 6, |
| 5721 | }, |
Nikolai Artemiev | df889fa | 2021-03-23 17:10:45 +1100 | [diff] [blame] | 5722 | .tested = TEST_OK_PREW, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5723 | .probe = probe_spi_rdid, |
| 5724 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 5725 | .block_erasers = |
| 5726 | { |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5727 | { |
| 5728 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5729 | .block_erase = spi_block_erase_20, |
| 5730 | }, { |
| 5731 | .eraseblocks = { {64 * 1024, 128} }, |
| 5732 | .block_erase = spi_block_erase_d8, |
| 5733 | }, { |
| 5734 | .eraseblocks = { {8192 * 1024, 1} }, |
| 5735 | .block_erase = spi_block_erase_60, |
| 5736 | }, { |
| 5737 | .eraseblocks = { {8192 * 1024, 1} }, |
| 5738 | .block_erase = spi_block_erase_c7, |
| 5739 | } |
| 5740 | }, |
| 5741 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 5742 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5743 | .write = spi_chip_write_256, |
| 5744 | .read = spi_chip_read, |
| 5745 | .voltage = {1650, 1950}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 5746 | .prepare_access = spi_prepare_io, |
| 5747 | .finish_access = spi_finish_io, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 5748 | }, |
| 5749 | |
| 5750 | { |
| 5751 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5752 | .name = "EN25S80", |
| 5753 | .bustype = BUS_SPI, |
| 5754 | .manufacture_id = EON_ID_NOPREFIX, |
| 5755 | .model_id = EON_EN25S80, |
| 5756 | .total_size = 1024, |
| 5757 | .page_size = 256, |
| 5758 | /* OTP: 256B total; enter 0x3A */ |
| 5759 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5760 | .tested = TEST_UNTESTED, |
| 5761 | .probe = probe_spi_rdid, |
| 5762 | .probe_timing = TIMING_ZERO, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5763 | .block_erasers = |
| 5764 | { |
| 5765 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5766 | .eraseblocks = { {4 * 1024, 256} }, |
| 5767 | .block_erase = spi_block_erase_20, |
| 5768 | }, { |
| 5769 | .eraseblocks = { {64 * 1024, 16} }, |
| 5770 | .block_erase = spi_block_erase_d8, |
| 5771 | }, { |
| 5772 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5773 | .block_erase = spi_block_erase_60, |
| 5774 | }, { |
| 5775 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5776 | .block_erase = spi_block_erase_c7, |
| 5777 | } |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5778 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5779 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 5780 | .unlock = spi_disable_blockprotect, |
| 5781 | .write = spi_chip_write_256, |
| 5782 | .read = spi_chip_read, |
| 5783 | .voltage = {1650, 1950}, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5784 | }, |
| 5785 | |
| 5786 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 5787 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5788 | .name = "EN29F002(A)(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5789 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5790 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5791 | .model_id = EON_EN29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5792 | .total_size = 256, |
| 5793 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5794 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Alan Green | 4362e62 | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 5795 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5796 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5797 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5798 | .block_erasers = |
| 5799 | { |
| 5800 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5801 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5802 | {16 * 1024, 1}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 5803 | {8 * 1024, 2}, |
| 5804 | {32 * 1024, 1}, |
| 5805 | {64 * 1024, 3}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5806 | }, |
| 5807 | .block_erase = erase_sector_jedec, |
| 5808 | }, { |
| 5809 | .eraseblocks = { {256 * 1024, 1} }, |
| 5810 | .block_erase = erase_chip_block_jedec, |
| 5811 | }, |
| 5812 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 5813 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5814 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5815 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 5816 | .prepare_access = prepare_memory_access, |
| 5817 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5818 | }, |
| 5819 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5820 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 5821 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5822 | .name = "EN29F002(A)(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5823 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5824 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5825 | .model_id = EON_EN29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5826 | .total_size = 256, |
| 5827 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5828 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 5829 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5830 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5831 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5832 | .block_erasers = |
| 5833 | { |
| 5834 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5835 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5836 | {64 * 1024, 3}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 5837 | {32 * 1024, 1}, |
| 5838 | {8 * 1024, 2}, |
| 5839 | {16 * 1024, 1}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5840 | }, |
| 5841 | .block_erase = erase_sector_jedec, |
| 5842 | }, { |
| 5843 | .eraseblocks = { {256 * 1024, 1} }, |
| 5844 | .block_erase = erase_chip_block_jedec, |
| 5845 | }, |
| 5846 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 5847 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5848 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [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, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5852 | }, |
| 5853 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5854 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5855 | .vendor = "Eon", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5856 | .name = "EN29F010", |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5857 | .bustype = BUS_PARALLEL, |
| 5858 | .manufacture_id = EON_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5859 | .model_id = EON_EN29F010, |
| 5860 | .total_size = 128, |
| 5861 | .page_size = 128, |
| 5862 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 5863 | .tested = TEST_OK_PRE, |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5864 | .probe = probe_jedec, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5865 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5866 | .block_erasers = |
| 5867 | { |
| 5868 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5869 | .eraseblocks = { {16 * 1024, 8} }, |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5870 | .block_erase = erase_sector_jedec, |
| 5871 | }, |
| 5872 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5873 | .eraseblocks = { {128 * 1024, 1} }, |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5874 | .block_erase = erase_chip_block_jedec, |
| 5875 | }, |
| 5876 | }, |
| 5877 | .write = write_jedec_1, |
| 5878 | .read = read_memmapped, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 5879 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 5880 | .prepare_access = prepare_memory_access, |
| 5881 | .finish_access = finish_memory_access, |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5882 | }, |
| 5883 | |
| 5884 | { |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 5885 | .vendor = "Eon", |
| 5886 | .name = "EN29GL064(A)B", |
| 5887 | .bustype = BUS_PARALLEL, |
| 5888 | .manufacture_id = EON_ID, |
| 5889 | .model_id = EON_EN29GL064B, |
| 5890 | .total_size = 8192, |
| 5891 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5892 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5893 | .tested = TEST_UNTESTED, |
| 5894 | .probe = probe_jedec_29gl, |
| 5895 | .probe_timing = TIMING_ZERO, |
| 5896 | .block_erasers = |
| 5897 | { |
| 5898 | { |
| 5899 | .eraseblocks = { |
| 5900 | {8 * 1024, 8}, |
| 5901 | {64 * 1024, 127}, |
| 5902 | }, |
| 5903 | .block_erase = erase_sector_jedec, |
| 5904 | }, { |
| 5905 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5906 | .block_erase = erase_chip_block_jedec, |
| 5907 | }, |
| 5908 | }, |
| 5909 | .write = write_jedec_1, |
| 5910 | .read = read_memmapped, |
| 5911 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 5912 | .prepare_access = prepare_memory_access, |
| 5913 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 5914 | }, |
| 5915 | |
| 5916 | { |
| 5917 | .vendor = "Eon", |
| 5918 | .name = "EN29GL064(A)T", |
| 5919 | .bustype = BUS_PARALLEL, |
| 5920 | .manufacture_id = EON_ID, |
| 5921 | .model_id = EON_EN29GL064T, |
| 5922 | .total_size = 8192, |
| 5923 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5924 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5925 | .tested = TEST_UNTESTED, |
| 5926 | .probe = probe_jedec_29gl, |
| 5927 | .probe_timing = TIMING_ZERO, |
| 5928 | .block_erasers = |
| 5929 | { |
| 5930 | { |
| 5931 | .eraseblocks = { |
| 5932 | {64 * 1024, 127}, |
| 5933 | {8 * 1024, 8}, |
| 5934 | }, |
| 5935 | .block_erase = erase_sector_jedec, |
| 5936 | }, { |
| 5937 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5938 | .block_erase = erase_chip_block_jedec, |
| 5939 | }, |
| 5940 | }, |
| 5941 | .write = write_jedec_1, |
| 5942 | .read = read_memmapped, |
| 5943 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 5944 | .prepare_access = prepare_memory_access, |
| 5945 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 5946 | }, |
| 5947 | |
| 5948 | { |
| 5949 | .vendor = "Eon", |
| 5950 | .name = "EN29GL064H/L", |
| 5951 | .bustype = BUS_PARALLEL, |
| 5952 | .manufacture_id = EON_ID, |
| 5953 | .model_id = EON_EN29GL064HL, |
| 5954 | .total_size = 8192, |
| 5955 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5956 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5957 | .tested = TEST_UNTESTED, |
| 5958 | .probe = probe_jedec_29gl, |
| 5959 | .probe_timing = TIMING_ZERO, |
| 5960 | .block_erasers = |
| 5961 | { |
| 5962 | { |
| 5963 | .eraseblocks = { {64 * 1024, 128} }, |
| 5964 | .block_erase = erase_sector_jedec, |
| 5965 | }, { |
| 5966 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5967 | .block_erase = erase_chip_block_jedec, |
| 5968 | }, |
| 5969 | }, |
| 5970 | .write = write_jedec_1, |
| 5971 | .read = read_memmapped, |
| 5972 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 5973 | .prepare_access = prepare_memory_access, |
| 5974 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 5975 | }, |
| 5976 | |
| 5977 | { |
| 5978 | .vendor = "Eon", |
| 5979 | .name = "EN29GL128", |
| 5980 | .bustype = BUS_PARALLEL, |
| 5981 | .manufacture_id = EON_ID, |
| 5982 | .model_id = EON_EN29GL128HL, |
| 5983 | .total_size = 16384, |
| 5984 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5985 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5986 | .tested = TEST_UNTESTED, |
| 5987 | .probe = probe_jedec_29gl, |
| 5988 | .probe_timing = TIMING_ZERO, |
| 5989 | .block_erasers = |
| 5990 | { |
| 5991 | { |
| 5992 | .eraseblocks = { {128 * 1024, 128} }, |
| 5993 | .block_erase = erase_sector_jedec, |
| 5994 | }, { |
| 5995 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 5996 | .block_erase = erase_chip_block_jedec, |
| 5997 | }, |
| 5998 | }, |
| 5999 | .write = write_jedec_1, |
| 6000 | .read = read_memmapped, |
| 6001 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 6002 | .prepare_access = prepare_memory_access, |
| 6003 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 6004 | }, |
| 6005 | |
| 6006 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6007 | .vendor = "Eon", |
| 6008 | .name = "EN29LV040(A)", |
| 6009 | .bustype = BUS_PARALLEL, |
| 6010 | .manufacture_id = EON_ID, |
| 6011 | .model_id = EON_EN29LV040, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 6012 | .total_size = 512, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6013 | .page_size = 4 * 1024, |
| 6014 | .tested = TEST_OK_PREW, |
| 6015 | .probe = probe_jedec, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 6016 | .probe_timing = TIMING_ZERO, |
| 6017 | .block_erasers = |
| 6018 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 6019 | { |
| 6020 | .eraseblocks = { {64 * 1024, 8} }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6021 | .block_erase = erase_sector_jedec, |
| 6022 | }, |
| 6023 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 6024 | .eraseblocks = { {512 * 1024, 1} }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6025 | .block_erase = erase_chip_block_jedec, |
| 6026 | }, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 6027 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6028 | .write = write_jedec_1, |
| 6029 | .read = read_memmapped, |
| 6030 | .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] | 6031 | .prepare_access = prepare_memory_access, |
| 6032 | .finish_access = finish_memory_access, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 6033 | }, |
| 6034 | |
| 6035 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6036 | .vendor = "Eon", |
| 6037 | .name = "EN29LV640B", |
| 6038 | .bustype = BUS_PARALLEL, |
| 6039 | .manufacture_id = EON_ID, |
| 6040 | .model_id = EON_EN29LV640B, |
| 6041 | .total_size = 8192, |
| 6042 | .page_size = 8192, |
| 6043 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 6044 | .tested = TEST_OK_PREW, |
| 6045 | .probe = probe_en29lv640b, |
| 6046 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 6047 | .block_erasers = |
| 6048 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 6049 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6050 | .eraseblocks = { |
| 6051 | {8 * 1024, 8}, |
| 6052 | {64 * 1024, 127}, |
| 6053 | }, |
| 6054 | .block_erase = erase_block_jedec, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 6055 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6056 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6057 | .block_erase = erase_chip_block_jedec, |
| 6058 | }, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 6059 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6060 | .write = write_en29lv640b, |
| 6061 | .read = read_memmapped, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 6062 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 6063 | .prepare_access = prepare_memory_access, |
| 6064 | .finish_access = finish_memory_access, |
Hatim Kanchwala | b3d7fba | 2016-02-01 00:27:25 +0000 | [diff] [blame] | 6065 | }, |
| 6066 | |
| 6067 | { |
Jakob Petersson | 0cf3e12 | 2019-02-18 01:55:43 +0100 | [diff] [blame] | 6068 | .vendor = "Fudan", |
| 6069 | .name = "FM25F005", |
| 6070 | .bustype = BUS_SPI, |
| 6071 | .manufacture_id = FUDAN_ID_NOPREFIX, |
| 6072 | .model_id = FUDAN_FM25F005, |
| 6073 | .total_size = 64, |
| 6074 | .page_size = 256, |
| 6075 | /* OTP: 256B total; enter 0x3A */ |
| 6076 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6077 | .tested = TEST_UNTESTED, |
| 6078 | .probe = probe_spi_rdid, |
| 6079 | .probe_timing = TIMING_ZERO, |
| 6080 | .block_erasers = { |
| 6081 | { |
| 6082 | .eraseblocks = { {4 * 1024, 16} }, |
| 6083 | .block_erase = spi_block_erase_20, |
| 6084 | }, { |
| 6085 | .eraseblocks = { {32 * 1024, 2} }, |
| 6086 | .block_erase = spi_block_erase_52, |
| 6087 | }, { |
| 6088 | .eraseblocks = { {64 * 1024, 1} }, |
| 6089 | .block_erase = spi_block_erase_d8, |
| 6090 | }, { |
| 6091 | .eraseblocks = { {64 * 1024, 1} }, |
| 6092 | .block_erase = spi_block_erase_60, |
| 6093 | }, { |
| 6094 | .eraseblocks = { {64 * 1024, 1} }, |
| 6095 | .block_erase = spi_block_erase_c7, |
| 6096 | } |
| 6097 | }, |
| 6098 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 6099 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 6100 | .write = spi_chip_write_256, |
| 6101 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 6102 | .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */ |
| 6103 | }, |
| 6104 | |
| 6105 | { |
| 6106 | .vendor = "Fudan", |
| 6107 | .name = "FM25F01", |
| 6108 | .bustype = BUS_SPI, |
| 6109 | .manufacture_id = FUDAN_ID_NOPREFIX, |
| 6110 | .model_id = FUDAN_FM25F01, |
| 6111 | .total_size = 128, |
| 6112 | .page_size = 256, |
| 6113 | /* OTP: 256B total; enter 0x3A */ |
| 6114 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6115 | .tested = TEST_UNTESTED, |
| 6116 | .probe = probe_spi_rdid, |
| 6117 | .probe_timing = TIMING_ZERO, |
| 6118 | .block_erasers = { |
| 6119 | { |
| 6120 | .eraseblocks = { {4 * 1024, 32} }, |
| 6121 | .block_erase = spi_block_erase_20, |
| 6122 | }, { |
| 6123 | .eraseblocks = { {32 * 1024, 4} }, |
| 6124 | .block_erase = spi_block_erase_52, |
| 6125 | }, { |
| 6126 | .eraseblocks = { {64 * 1024, 2} }, |
| 6127 | .block_erase = spi_block_erase_d8, |
| 6128 | }, { |
| 6129 | .eraseblocks = { {128 * 1024, 1} }, |
| 6130 | .block_erase = spi_block_erase_60, |
| 6131 | }, { |
| 6132 | .eraseblocks = { {128 * 1024, 1} }, |
| 6133 | .block_erase = spi_block_erase_c7, |
| 6134 | } |
| 6135 | }, |
| 6136 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 6137 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 6138 | .write = spi_chip_write_256, |
| 6139 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 6140 | .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */ |
| 6141 | }, |
| 6142 | |
| 6143 | { |
| 6144 | .vendor = "Fudan", |
| 6145 | .name = "FM25F02(A)", |
| 6146 | .bustype = BUS_SPI, |
| 6147 | .manufacture_id = FUDAN_ID_NOPREFIX, |
| 6148 | .model_id = FUDAN_FM25F02, |
| 6149 | .total_size = 256, |
| 6150 | .page_size = 256, |
| 6151 | /* OTP: 256B total; enter 0x3A, (A version only:) read ID 0x4B */ |
| 6152 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6153 | .tested = TEST_UNTESTED, |
| 6154 | .probe = probe_spi_rdid, |
| 6155 | .probe_timing = TIMING_ZERO, |
| 6156 | .block_erasers = { |
| 6157 | { |
| 6158 | .eraseblocks = { {4 * 1024, 64} }, |
| 6159 | .block_erase = spi_block_erase_20, |
| 6160 | }, { |
| 6161 | .eraseblocks = { {32 * 1024, 8} }, |
| 6162 | .block_erase = spi_block_erase_52, |
| 6163 | }, { |
| 6164 | .eraseblocks = { {64 * 1024, 4} }, |
| 6165 | .block_erase = spi_block_erase_d8, |
| 6166 | }, { |
| 6167 | .eraseblocks = { {1024 * 256, 1} }, |
| 6168 | .block_erase = spi_block_erase_60, |
| 6169 | }, { |
| 6170 | .eraseblocks = { {1024 * 256, 1} }, |
| 6171 | .block_erase = spi_block_erase_c7, |
| 6172 | }, |
| 6173 | }, |
| 6174 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 6175 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 6176 | .write = spi_chip_write_256, |
| 6177 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 6178 | .voltage = {2700, 3600}, /* 2.3-2.7V acceptable results in lower performance */ |
| 6179 | }, |
| 6180 | |
| 6181 | { |
| 6182 | .vendor = "Fudan", |
| 6183 | .name = "FM25F04(A)", |
| 6184 | .bustype = BUS_SPI, |
| 6185 | .manufacture_id = FUDAN_ID_NOPREFIX, |
| 6186 | .model_id = FUDAN_FM25F04, |
| 6187 | .total_size = 512, |
| 6188 | .page_size = 256, |
| 6189 | /* OTP: 256B total; enter 0x3A, (A version only:) read ID 0x4B */ |
| 6190 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6191 | .tested = TEST_UNTESTED, |
| 6192 | .probe = probe_spi_rdid, |
| 6193 | .probe_timing = TIMING_ZERO, |
| 6194 | .block_erasers = { |
| 6195 | { |
| 6196 | .eraseblocks = { {4 * 1024, 128} }, |
| 6197 | .block_erase = spi_block_erase_20, |
| 6198 | }, { |
| 6199 | .eraseblocks = { {32 * 1024, 16} }, |
| 6200 | .block_erase = spi_block_erase_52, |
| 6201 | }, { |
| 6202 | .eraseblocks = { {64 * 1024, 8} }, |
| 6203 | .block_erase = spi_block_erase_d8, |
| 6204 | }, { |
| 6205 | .eraseblocks = { {1024 * 512, 1} }, |
| 6206 | .block_erase = spi_block_erase_60, |
| 6207 | }, { |
| 6208 | .eraseblocks = { {1024 * 512, 1} }, |
| 6209 | .block_erase = spi_block_erase_c7, |
| 6210 | }, |
| 6211 | }, |
| 6212 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 6213 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 6214 | .write = spi_chip_write_256, |
| 6215 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 6216 | .voltage = {2700, 3600}, |
| 6217 | }, |
| 6218 | |
| 6219 | { |
| 6220 | .vendor = "Fudan", |
| 6221 | .name = "FM25Q08", |
| 6222 | .bustype = BUS_SPI, |
| 6223 | .manufacture_id = FUDAN_ID_NOPREFIX, |
| 6224 | .model_id = FUDAN_FM25Q08, |
| 6225 | .total_size = 1024, |
| 6226 | .page_size = 256, |
| 6227 | /* supports SFDP */ |
| 6228 | /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 226bb87 | 2024-04-09 23:30:34 +0200 | [diff] [blame] | 6229 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | |
| 6230 | FEATURE_OTP | FEATURE_QPI_SRP, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 6231 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
Jakob Petersson | 0cf3e12 | 2019-02-18 01:55:43 +0100 | [diff] [blame] | 6232 | .tested = TEST_UNTESTED, |
| 6233 | .probe = probe_spi_rdid, |
| 6234 | .probe_timing = TIMING_ZERO, |
| 6235 | .block_erasers = { |
| 6236 | { |
| 6237 | .eraseblocks = { {4 * 1024, 256} }, |
| 6238 | .block_erase = spi_block_erase_20, |
| 6239 | }, { |
| 6240 | .eraseblocks = { {32 * 1024, 32} }, |
| 6241 | .block_erase = spi_block_erase_52, |
| 6242 | }, { |
| 6243 | .eraseblocks = { {64 * 1024, 16} }, |
| 6244 | .block_erase = spi_block_erase_d8, |
| 6245 | }, { |
| 6246 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6247 | .block_erase = spi_block_erase_60, |
| 6248 | }, { |
| 6249 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6250 | .block_erase = spi_block_erase_c7, |
| 6251 | }, |
| 6252 | }, |
Nico Huber | 226bb87 | 2024-04-09 23:30:34 +0200 | [diff] [blame] | 6253 | .reg_bits = |
| 6254 | { |
| 6255 | .qe = {STATUS2, 1, RW}, |
| 6256 | }, |
Jakob Petersson | 0cf3e12 | 2019-02-18 01:55:43 +0100 | [diff] [blame] | 6257 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */ |
| 6258 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 6259 | .write = spi_chip_write_256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 6260 | .read = spi_chip_read, |
Jakob Petersson | 0cf3e12 | 2019-02-18 01:55:43 +0100 | [diff] [blame] | 6261 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 6262 | .prepare_access = spi_prepare_io, |
| 6263 | .finish_access = spi_finish_io, |
Jakob Petersson | 0cf3e12 | 2019-02-18 01:55:43 +0100 | [diff] [blame] | 6264 | }, |
| 6265 | |
| 6266 | { |
| 6267 | .vendor = "Fudan", |
| 6268 | .name = "FM25Q16", |
| 6269 | .bustype = BUS_SPI, |
| 6270 | .manufacture_id = FUDAN_ID_NOPREFIX, |
| 6271 | .model_id = FUDAN_FM25Q16, |
| 6272 | .total_size = 2048, |
| 6273 | .page_size = 256, |
| 6274 | /* supports SFDP */ |
| 6275 | /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 226bb87 | 2024-04-09 23:30:34 +0200 | [diff] [blame] | 6276 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | |
| 6277 | FEATURE_OTP | FEATURE_QPI_SRP, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 6278 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
Jakob Petersson | 0cf3e12 | 2019-02-18 01:55:43 +0100 | [diff] [blame] | 6279 | .tested = TEST_UNTESTED, |
| 6280 | .probe = probe_spi_rdid, |
| 6281 | .probe_timing = TIMING_ZERO, |
| 6282 | .block_erasers = { |
| 6283 | { |
| 6284 | .eraseblocks = { {4 * 1024, 512} }, |
| 6285 | .block_erase = spi_block_erase_20, |
| 6286 | }, { |
| 6287 | .eraseblocks = { {32 * 1024, 64} }, |
| 6288 | .block_erase = spi_block_erase_52, |
| 6289 | }, { |
| 6290 | .eraseblocks = { {64 * 1024, 32} }, |
| 6291 | .block_erase = spi_block_erase_d8, |
| 6292 | }, { |
| 6293 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6294 | .block_erase = spi_block_erase_60, |
| 6295 | }, { |
| 6296 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6297 | .block_erase = spi_block_erase_c7, |
| 6298 | } |
| 6299 | }, |
Nico Huber | 226bb87 | 2024-04-09 23:30:34 +0200 | [diff] [blame] | 6300 | .reg_bits = |
| 6301 | { |
| 6302 | .qe = {STATUS2, 1, RW}, |
| 6303 | }, |
Jakob Petersson | 0cf3e12 | 2019-02-18 01:55:43 +0100 | [diff] [blame] | 6304 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */ |
| 6305 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 6306 | .write = spi_chip_write_256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 6307 | .read = spi_chip_read, |
Jakob Petersson | 0cf3e12 | 2019-02-18 01:55:43 +0100 | [diff] [blame] | 6308 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 6309 | .prepare_access = spi_prepare_io, |
| 6310 | .finish_access = spi_finish_io, |
Jakob Petersson | 0cf3e12 | 2019-02-18 01:55:43 +0100 | [diff] [blame] | 6311 | }, |
| 6312 | |
| 6313 | { |
| 6314 | .vendor = "Fudan", |
| 6315 | .name = "FM25Q32", |
| 6316 | .bustype = BUS_SPI, |
| 6317 | .manufacture_id = FUDAN_ID_NOPREFIX, |
| 6318 | .model_id = FUDAN_FM25Q32, |
| 6319 | .total_size = 4096, |
| 6320 | .page_size = 256, |
| 6321 | /* supports SFDP */ |
| 6322 | /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 226bb87 | 2024-04-09 23:30:34 +0200 | [diff] [blame] | 6323 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | |
| 6324 | FEATURE_OTP | FEATURE_QPI_SRP, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 6325 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
Jakob Petersson | 0cf3e12 | 2019-02-18 01:55:43 +0100 | [diff] [blame] | 6326 | .tested = TEST_UNTESTED, |
| 6327 | .probe = probe_spi_rdid, |
| 6328 | .probe_timing = TIMING_ZERO, |
| 6329 | .block_erasers = { |
| 6330 | { |
| 6331 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6332 | .block_erase = spi_block_erase_20, |
| 6333 | }, { |
| 6334 | .eraseblocks = { {32 * 1024, 128} }, |
| 6335 | .block_erase = spi_block_erase_52, |
| 6336 | }, { |
| 6337 | .eraseblocks = { {64 * 1024, 64} }, |
| 6338 | .block_erase = spi_block_erase_d8, |
| 6339 | }, { |
| 6340 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6341 | .block_erase = spi_block_erase_60, |
| 6342 | }, { |
| 6343 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6344 | .block_erase = spi_block_erase_c7, |
| 6345 | }, |
| 6346 | }, |
Nico Huber | 226bb87 | 2024-04-09 23:30:34 +0200 | [diff] [blame] | 6347 | .reg_bits = |
| 6348 | { |
| 6349 | .qe = {STATUS2, 1, RW}, |
| 6350 | }, |
Jakob Petersson | 0cf3e12 | 2019-02-18 01:55:43 +0100 | [diff] [blame] | 6351 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, /* bit6 selects size of protected blocks; TODO: SR2 */ |
| 6352 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 6353 | .write = spi_chip_write_256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 6354 | .read = spi_chip_read, |
Jakob Petersson | 0cf3e12 | 2019-02-18 01:55:43 +0100 | [diff] [blame] | 6355 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 6356 | .prepare_access = spi_prepare_io, |
| 6357 | .finish_access = spi_finish_io, |
Jakob Petersson | 0cf3e12 | 2019-02-18 01:55:43 +0100 | [diff] [blame] | 6358 | }, |
| 6359 | |
| 6360 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6361 | .vendor = "Fujitsu", |
| 6362 | .name = "MBM29F004BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6363 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6364 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6365 | .model_id = FUJITSU_MBM29F004BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6366 | .total_size = 512, |
| 6367 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6368 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6369 | .tested = TEST_UNTESTED, |
| 6370 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6371 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6372 | .block_erasers = |
| 6373 | { |
| 6374 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6375 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6376 | {16 * 1024, 1}, |
| 6377 | {8 * 1024, 2}, |
| 6378 | {32 * 1024, 1}, |
| 6379 | {64 * 1024, 7}, |
| 6380 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6381 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6382 | }, { |
| 6383 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6384 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6385 | }, |
| 6386 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6387 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6388 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6389 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 6390 | .prepare_access = prepare_memory_access, |
| 6391 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6392 | }, |
| 6393 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6394 | { |
| 6395 | .vendor = "Fujitsu", |
| 6396 | .name = "MBM29F004TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6397 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6398 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6399 | .model_id = FUJITSU_MBM29F004TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6400 | .total_size = 512, |
| 6401 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6402 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6403 | .tested = TEST_UNTESTED, |
| 6404 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6405 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6406 | .block_erasers = |
| 6407 | { |
| 6408 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6409 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6410 | {64 * 1024, 7}, |
| 6411 | {32 * 1024, 1}, |
| 6412 | {8 * 1024, 2}, |
| 6413 | {16 * 1024, 1}, |
| 6414 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6415 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6416 | }, { |
| 6417 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6418 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6419 | }, |
| 6420 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6421 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6422 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6423 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 6424 | .prepare_access = prepare_memory_access, |
| 6425 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6426 | }, |
| 6427 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6428 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6429 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6430 | .vendor = "Fujitsu", |
| 6431 | .name = "MBM29F400BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6432 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6433 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6434 | .model_id = FUJITSU_MBM29F400BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6435 | .total_size = 512, |
| 6436 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6437 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 6438 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6439 | .probe = probe_jedec, |
| 6440 | .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] | 6441 | .block_erasers = |
| 6442 | { |
| 6443 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6444 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6445 | {16 * 1024, 1}, |
| 6446 | {8 * 1024, 2}, |
| 6447 | {32 * 1024, 1}, |
| 6448 | {64 * 1024, 7}, |
| 6449 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6450 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6451 | }, { |
| 6452 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6453 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6454 | }, |
| 6455 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6456 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6457 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6458 | .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] | 6459 | .prepare_access = prepare_memory_access, |
| 6460 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6461 | }, |
| 6462 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6463 | { |
| 6464 | .vendor = "Fujitsu", |
| 6465 | .name = "MBM29F400TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6466 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6467 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6468 | .model_id = FUJITSU_MBM29F400TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6469 | .total_size = 512, |
| 6470 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6471 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6472 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6473 | .probe = probe_jedec, |
| 6474 | .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] | 6475 | .block_erasers = |
| 6476 | { |
| 6477 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6478 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6479 | {64 * 1024, 7}, |
| 6480 | {32 * 1024, 1}, |
| 6481 | {8 * 1024, 2}, |
| 6482 | {16 * 1024, 1}, |
| 6483 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6484 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6485 | }, { |
| 6486 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6487 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6488 | }, |
| 6489 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6490 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6491 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6492 | .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] | 6493 | .prepare_access = prepare_memory_access, |
| 6494 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6495 | }, |
| 6496 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6497 | { |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6498 | .vendor = "Fujitsu", |
| 6499 | .name = "MBM29LV160BE", |
| 6500 | .bustype = BUS_PARALLEL, |
| 6501 | .manufacture_id = FUJITSU_ID, |
| 6502 | .model_id = FUJITSU_MBM29LV160BE, |
| 6503 | .total_size = 2 * 1024, |
| 6504 | .page_size = 0, |
| 6505 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET, |
| 6506 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6507 | .probe = probe_jedec, |
| 6508 | .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] | 6509 | .block_erasers = |
| 6510 | { |
| 6511 | { |
| 6512 | .eraseblocks = { |
| 6513 | {16 * 1024, 1}, |
| 6514 | {8 * 1024, 2}, |
| 6515 | {32 * 1024, 1}, |
| 6516 | {64 * 1024, 31}, |
| 6517 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6518 | .block_erase = erase_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6519 | }, { |
| 6520 | .eraseblocks = { {2048 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6521 | .block_erase = erase_chip_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6522 | }, |
| 6523 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6524 | .write = write_jedec_1, /* Supports a fast mode too */ |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6525 | .read = read_memmapped, |
| 6526 | .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] | 6527 | .prepare_access = prepare_memory_access, |
| 6528 | .finish_access = finish_memory_access, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6529 | }, |
| 6530 | |
| 6531 | { |
| 6532 | .vendor = "Fujitsu", |
| 6533 | .name = "MBM29LV160TE", |
| 6534 | .bustype = BUS_PARALLEL, |
| 6535 | .manufacture_id = FUJITSU_ID, |
| 6536 | .model_id = FUJITSU_MBM29LV160TE, |
| 6537 | .total_size = 2 * 1024, |
| 6538 | .page_size = 0, |
| 6539 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET, |
| 6540 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6541 | .probe = probe_jedec, |
| 6542 | .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] | 6543 | .block_erasers = |
| 6544 | { |
| 6545 | { |
| 6546 | .eraseblocks = { |
| 6547 | {64 * 1024, 31}, |
| 6548 | {32 * 1024, 1}, |
| 6549 | {8 * 1024, 2}, |
| 6550 | {16 * 1024, 1}, |
| 6551 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6552 | .block_erase = erase_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6553 | }, { |
| 6554 | .eraseblocks = { {2048 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6555 | .block_erase = erase_chip_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6556 | }, |
| 6557 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 6558 | .write = write_jedec_1, /* Supports a fast mode too */ |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6559 | .read = read_memmapped, |
| 6560 | .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] | 6561 | .prepare_access = prepare_memory_access, |
| 6562 | .finish_access = finish_memory_access, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 6563 | }, |
| 6564 | |
| 6565 | { |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 6566 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6567 | .name = "GD25B128B/GD25Q128B", |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6568 | .bustype = BUS_SPI, |
| 6569 | .manufacture_id = GIGADEVICE_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6570 | .model_id = GIGADEVICE_GD25Q128, |
| 6571 | .total_size = 16384, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6572 | .page_size = 256, |
| 6573 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 6574 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6575 | .tested = TEST_OK_PREW, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6576 | .probe = probe_spi_rdid, |
| 6577 | .probe_timing = TIMING_ZERO, |
| 6578 | .block_erasers = |
| 6579 | { |
| 6580 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6581 | .eraseblocks = { {4 * 1024, 4096} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6582 | .block_erase = spi_block_erase_20, |
| 6583 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6584 | .eraseblocks = { {32 * 1024, 512} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6585 | .block_erase = spi_block_erase_52, |
| 6586 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6587 | .eraseblocks = { {64 * 1024, 256} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6588 | .block_erase = spi_block_erase_d8, |
| 6589 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6590 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6591 | .block_erase = spi_block_erase_60, |
| 6592 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6593 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6594 | .block_erase = spi_block_erase_c7, |
| 6595 | } |
| 6596 | }, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 6597 | .reg_bits = |
| 6598 | { |
| 6599 | .qe = {STATUS2, 1, RW}, /* RO 1 in GD25B128B case */ |
| 6600 | }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6601 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6602 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6603 | .write = spi_chip_write_256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 6604 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6605 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 6606 | .prepare_access = spi_prepare_io, |
| 6607 | .finish_access = spi_finish_io, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6608 | }, |
| 6609 | |
| 6610 | { |
| 6611 | .vendor = "GigaDevice", |
Edward O'Callaghan | 981a344 | 2021-06-22 11:16:55 +1000 | [diff] [blame] | 6612 | .name = "GD25LQ128C/GD25LQ128D/GD25LQ128E", |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6613 | .bustype = BUS_SPI, |
| 6614 | .manufacture_id = GIGADEVICE_ID, |
Alan Green | 188127e | 2019-08-06 16:10:34 +1000 | [diff] [blame] | 6615 | .model_id = GIGADEVICE_GD25LQ128CD, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6616 | .total_size = 16384, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6617 | .page_size = 256, |
| 6618 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 6619 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QPI_SRP, |
| 6620 | .dummy_cycles = { .qpi_read_params = { 4, 6, 8, 8 } }, |
Sergii Dmytruk | c74eac2 | 2022-10-06 18:17:58 +0300 | [diff] [blame] | 6621 | .tested = TEST_OK_PREWB, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6622 | .probe = probe_spi_rdid, |
| 6623 | .probe_timing = TIMING_ZERO, |
| 6624 | .block_erasers = |
| 6625 | { |
| 6626 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6627 | .eraseblocks = { {4 * 1024, 4096} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6628 | .block_erase = spi_block_erase_20, |
| 6629 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6630 | .eraseblocks = { {32 * 1024, 512} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6631 | .block_erase = spi_block_erase_52, |
| 6632 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6633 | .eraseblocks = { {64 * 1024, 256} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6634 | .block_erase = spi_block_erase_d8, |
| 6635 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6636 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6637 | .block_erase = spi_block_erase_60, |
| 6638 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6639 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6640 | .block_erase = spi_block_erase_c7, |
| 6641 | } |
| 6642 | }, |
| 6643 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6644 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6645 | .write = spi_chip_write_256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 6646 | .read = spi_chip_read, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6647 | .voltage = {1695, 1950}, |
Nikolai Artemiev | c6c3f28 | 2021-10-20 23:34:15 +1100 | [diff] [blame] | 6648 | .reg_bits = |
| 6649 | { |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 6650 | .qe = {STATUS2, 1, RW}, |
Nikolai Artemiev | c6c3f28 | 2021-10-20 23:34:15 +1100 | [diff] [blame] | 6651 | .srp = {STATUS1, 7, RW}, |
| 6652 | .srl = {STATUS2, 0, RW}, |
| 6653 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 6654 | .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */ |
| 6655 | .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */ |
| 6656 | .cmp = {STATUS2, 6, RW}, |
| 6657 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 6658 | .wp_write_cfg = spi_wp_write_cfg, |
| 6659 | .wp_read_cfg = spi_wp_read_cfg, |
| 6660 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nikolai Artemiev | c9feb1b | 2021-10-21 01:35:13 +1100 | [diff] [blame] | 6661 | .decode_range = decode_range_spi25, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 6662 | .prepare_access = spi_prepare_io, |
| 6663 | .finish_access = spi_finish_io, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6664 | }, |
| 6665 | |
| 6666 | { |
| 6667 | .vendor = "GigaDevice", |
| 6668 | .name = "GD25LQ16", |
| 6669 | .bustype = BUS_SPI, |
| 6670 | .manufacture_id = GIGADEVICE_ID, |
| 6671 | .model_id = GIGADEVICE_GD25LQ16, |
| 6672 | .total_size = 2048, |
| 6673 | .page_size = 256, |
| 6674 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 6675 | /* FEATURE_QPI_SRP(4, 4, 6, 8) except for LQ16C */ |
| 6676 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6677 | .tested = TEST_UNTESTED, |
| 6678 | .probe = probe_spi_rdid, |
| 6679 | .probe_timing = TIMING_ZERO, |
| 6680 | .block_erasers = |
| 6681 | { |
| 6682 | { |
| 6683 | .eraseblocks = { {4 * 1024, 512} }, |
| 6684 | .block_erase = spi_block_erase_20, |
| 6685 | }, { |
| 6686 | .eraseblocks = { {32 * 1024, 64} }, |
| 6687 | .block_erase = spi_block_erase_52, |
| 6688 | }, { |
| 6689 | .eraseblocks = { {64 * 1024, 32} }, |
| 6690 | .block_erase = spi_block_erase_d8, |
| 6691 | }, { |
| 6692 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6693 | .block_erase = spi_block_erase_60, |
| 6694 | }, { |
| 6695 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6696 | .block_erase = spi_block_erase_c7, |
| 6697 | } |
| 6698 | }, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 6699 | .reg_bits = |
| 6700 | { |
| 6701 | .qe = {STATUS2, 1, RW}, |
| 6702 | }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6703 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6704 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6705 | .write = spi_chip_write_256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 6706 | .read = spi_chip_read, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6707 | .voltage = {1695, 1950}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 6708 | .prepare_access = spi_prepare_io, |
| 6709 | .finish_access = spi_finish_io, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6710 | }, |
| 6711 | |
| 6712 | { |
| 6713 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6714 | .name = "GD25LQ32", |
| 6715 | .bustype = BUS_SPI, |
| 6716 | .manufacture_id = GIGADEVICE_ID, |
| 6717 | .model_id = GIGADEVICE_GD25LQ32, |
| 6718 | .total_size = 4096, |
| 6719 | .page_size = 256, |
| 6720 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 6721 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QPI_SRP, |
| 6722 | .dummy_cycles = { .qpi_read_params = { 4, 4, 6, 8 } }, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6723 | .tested = TEST_OK_PREW, |
| 6724 | .probe = probe_spi_rdid, |
| 6725 | .probe_timing = TIMING_ZERO, |
| 6726 | .block_erasers = |
| 6727 | { |
| 6728 | { |
| 6729 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6730 | .block_erase = spi_block_erase_20, |
| 6731 | }, { |
| 6732 | .eraseblocks = { {32 * 1024, 128} }, |
| 6733 | .block_erase = spi_block_erase_52, |
| 6734 | }, { |
| 6735 | .eraseblocks = { {64 * 1024, 64} }, |
| 6736 | .block_erase = spi_block_erase_d8, |
| 6737 | }, { |
| 6738 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6739 | .block_erase = spi_block_erase_60, |
| 6740 | }, { |
| 6741 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6742 | .block_erase = spi_block_erase_c7, |
| 6743 | } |
| 6744 | }, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 6745 | .reg_bits = |
| 6746 | { |
| 6747 | .qe = {STATUS2, 1, RW}, |
| 6748 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6749 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6750 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6751 | .write = spi_chip_write_256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 6752 | .read = spi_chip_read, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6753 | .voltage = {1695, 1950}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 6754 | .prepare_access = spi_prepare_io, |
| 6755 | .finish_access = spi_finish_io, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6756 | }, |
| 6757 | |
| 6758 | { |
| 6759 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6760 | .name = "GD25LQ40", |
| 6761 | .bustype = BUS_SPI, |
| 6762 | .manufacture_id = GIGADEVICE_ID, |
| 6763 | .model_id = GIGADEVICE_GD25LQ40, |
| 6764 | .total_size = 512, |
| 6765 | .page_size = 256, |
| 6766 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 6767 | /* FEATURE_QPI_SRP(4, 4, 6, 8) except for LQ40B, LQ40C */ |
| 6768 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6769 | .tested = TEST_UNTESTED, |
| 6770 | .probe = probe_spi_rdid, |
| 6771 | .probe_timing = TIMING_ZERO, |
| 6772 | .block_erasers = |
| 6773 | { |
| 6774 | { |
| 6775 | .eraseblocks = { {4 * 1024, 128} }, |
| 6776 | .block_erase = spi_block_erase_20, |
| 6777 | }, { |
| 6778 | .eraseblocks = { {32 * 1024, 16} }, |
| 6779 | .block_erase = spi_block_erase_52, |
| 6780 | }, { |
| 6781 | .eraseblocks = { {64 * 1024, 8} }, |
| 6782 | .block_erase = spi_block_erase_d8, |
| 6783 | }, { |
| 6784 | .eraseblocks = { {512 * 1024, 1} }, |
| 6785 | .block_erase = spi_block_erase_60, |
| 6786 | }, { |
| 6787 | .eraseblocks = { {512 * 1024, 1} }, |
| 6788 | .block_erase = spi_block_erase_c7, |
| 6789 | } |
| 6790 | }, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 6791 | .reg_bits = |
| 6792 | { |
| 6793 | .qe = {STATUS2, 1, RW}, |
| 6794 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6795 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6796 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6797 | .write = spi_chip_write_256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 6798 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6799 | .voltage = {1695, 1950}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 6800 | .prepare_access = spi_prepare_io, |
| 6801 | .finish_access = spi_finish_io, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6802 | }, |
| 6803 | |
| 6804 | { |
| 6805 | .vendor = "GigaDevice", |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6806 | .name = "GD25LQ64(B)", |
| 6807 | .bustype = BUS_SPI, |
| 6808 | .manufacture_id = GIGADEVICE_ID, |
| 6809 | .model_id = GIGADEVICE_GD25LQ64, |
| 6810 | .total_size = 8192, |
| 6811 | .page_size = 256, |
| 6812 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 6813 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QPI_SRP, |
| 6814 | .dummy_cycles = { .qpi_read_params = { 4, 4, 6, 8 } }, |
Sergii Dmytruk | c74eac2 | 2022-10-06 18:17:58 +0300 | [diff] [blame] | 6815 | .tested = TEST_OK_PREWB, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6816 | .probe = probe_spi_rdid, |
| 6817 | .probe_timing = TIMING_ZERO, |
| 6818 | .block_erasers = |
| 6819 | { |
| 6820 | { |
| 6821 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6822 | .block_erase = spi_block_erase_20, |
| 6823 | }, { |
| 6824 | .eraseblocks = { {32 * 1024, 256} }, |
| 6825 | .block_erase = spi_block_erase_52, |
| 6826 | }, { |
| 6827 | .eraseblocks = { {64 * 1024, 128} }, |
| 6828 | .block_erase = spi_block_erase_d8, |
| 6829 | }, { |
| 6830 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6831 | .block_erase = spi_block_erase_60, |
| 6832 | }, { |
| 6833 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6834 | .block_erase = spi_block_erase_c7, |
| 6835 | } |
| 6836 | }, |
| 6837 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6838 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6839 | .write = spi_chip_write_256, |
| 6840 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6841 | .voltage = {1695, 1950}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 6842 | .reg_bits = |
| 6843 | { |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 6844 | .qe = {STATUS2, 1, RW}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 6845 | .srp = {STATUS1, 7, RW}, |
| 6846 | .srl = {STATUS2, 0, RW}, |
| 6847 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 6848 | .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */ |
| 6849 | .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */ |
| 6850 | .cmp = {STATUS2, 6, RW}, |
| 6851 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 6852 | .wp_write_cfg = spi_wp_write_cfg, |
| 6853 | .wp_read_cfg = spi_wp_read_cfg, |
| 6854 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 6855 | .decode_range = decode_range_spi25, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 6856 | .prepare_access = spi_prepare_io, |
| 6857 | .finish_access = spi_finish_io, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6858 | }, |
| 6859 | |
| 6860 | { |
| 6861 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6862 | .name = "GD25LQ80", |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6863 | .bustype = BUS_SPI, |
| 6864 | .manufacture_id = GIGADEVICE_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6865 | .model_id = GIGADEVICE_GD25LQ80, |
| 6866 | .total_size = 1024, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6867 | .page_size = 256, |
| 6868 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 6869 | /* FEATURE_QPI_SRP(4, 4, 6, 8) except for LQ80B, LQ80C */ |
| 6870 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6871 | .tested = TEST_UNTESTED, |
| 6872 | .probe = probe_spi_rdid, |
| 6873 | .probe_timing = TIMING_ZERO, |
| 6874 | .block_erasers = |
| 6875 | { |
| 6876 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6877 | .eraseblocks = { {4 * 1024, 256} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6878 | .block_erase = spi_block_erase_20, |
| 6879 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6880 | .eraseblocks = { {32 * 1024, 32} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6881 | .block_erase = spi_block_erase_52, |
| 6882 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6883 | .eraseblocks = { {64 * 1024, 16} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6884 | .block_erase = spi_block_erase_d8, |
| 6885 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6886 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6887 | .block_erase = spi_block_erase_60, |
| 6888 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 6889 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6890 | .block_erase = spi_block_erase_c7, |
| 6891 | } |
| 6892 | }, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 6893 | .reg_bits = |
| 6894 | { |
| 6895 | .qe = {STATUS2, 1, RW}, |
| 6896 | }, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6897 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6898 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6899 | .write = spi_chip_write_256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 6900 | .read = spi_chip_read, |
Roman Titov | 95edc89 | 2015-04-03 21:29:04 +0000 | [diff] [blame] | 6901 | .voltage = {1695, 1950}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 6902 | .prepare_access = spi_prepare_io, |
| 6903 | .finish_access = spi_finish_io, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6904 | }, |
| 6905 | |
| 6906 | { |
| 6907 | .vendor = "GigaDevice", |
Naresh Solanki | 768cfc4 | 2024-10-04 20:17:34 +0530 | [diff] [blame] | 6908 | .name = "GD25LR512ME", |
| 6909 | .bustype = BUS_SPI, |
| 6910 | .manufacture_id = GIGADEVICE_ID, |
| 6911 | .model_id = GIGADEVICE_GD25LR512ME, |
| 6912 | .total_size = 65536, |
| 6913 | .page_size = 256, |
| 6914 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
| 6915 | .tested = TEST_OK_PREW, |
| 6916 | .probe = probe_spi_rdid, |
| 6917 | .probe_timing = TIMING_ZERO, |
| 6918 | .block_erasers = |
| 6919 | { |
| 6920 | { |
| 6921 | .eraseblocks = { {4 * 1024, 16384} }, |
| 6922 | .block_erase = spi_block_erase_21, |
| 6923 | }, { |
| 6924 | .eraseblocks = { {4 * 1024, 16384} }, |
| 6925 | .block_erase = spi_block_erase_20, |
| 6926 | }, { |
| 6927 | .eraseblocks = { {32 * 1024, 2048} }, |
| 6928 | .block_erase = spi_block_erase_52, |
| 6929 | }, { |
| 6930 | .eraseblocks = { {32 * 1024, 2048} }, |
| 6931 | .block_erase = spi_block_erase_5c, |
| 6932 | }, { |
| 6933 | .eraseblocks = { {64 * 1024, 1024} }, |
| 6934 | .block_erase = spi_block_erase_dc, |
| 6935 | }, { |
| 6936 | .eraseblocks = { {64 * 1024, 1024} }, |
| 6937 | .block_erase = spi_block_erase_d8, |
| 6938 | }, { |
| 6939 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 6940 | .block_erase = spi_block_erase_60, |
| 6941 | }, { |
| 6942 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 6943 | .block_erase = spi_block_erase_c7, |
| 6944 | } |
| 6945 | }, |
| 6946 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 6947 | .unlock = spi_disable_blockprotect_bp4_srwd, |
| 6948 | .write = spi_chip_write_256, |
| 6949 | .read = spi_chip_read, |
| 6950 | .voltage = {1650, 2000}, |
| 6951 | .prepare_access = spi_prepare_io, |
| 6952 | .finish_access = spi_finish_io, |
| 6953 | }, |
| 6954 | |
| 6955 | { |
| 6956 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6957 | .name = "GD25Q10", |
| 6958 | .bustype = BUS_SPI, |
| 6959 | .manufacture_id = GIGADEVICE_ID, |
| 6960 | .model_id = GIGADEVICE_GD25Q10, |
| 6961 | .total_size = 128, |
| 6962 | .page_size = 256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 6963 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_QIO, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6964 | .tested = TEST_UNTESTED, |
| 6965 | .probe = probe_spi_rdid, |
| 6966 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 6967 | .block_erasers = |
| 6968 | { |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6969 | { |
| 6970 | .eraseblocks = { {4 * 1024, 32} }, |
| 6971 | .block_erase = spi_block_erase_20, |
| 6972 | }, { |
| 6973 | .eraseblocks = { {32 * 1024, 4} }, |
| 6974 | .block_erase = spi_block_erase_52, |
| 6975 | }, { |
| 6976 | .eraseblocks = { {64 * 1024, 2} }, |
| 6977 | .block_erase = spi_block_erase_d8, |
| 6978 | }, { |
| 6979 | .eraseblocks = { {128 * 1024, 1} }, |
| 6980 | .block_erase = spi_block_erase_60, |
| 6981 | }, { |
| 6982 | .eraseblocks = { {128 * 1024, 1} }, |
| 6983 | .block_erase = spi_block_erase_c7, |
| 6984 | } |
| 6985 | }, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 6986 | .reg_bits = |
| 6987 | { |
| 6988 | .qe = {STATUS2, 1, RW}, |
| 6989 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6990 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6991 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 6992 | .write = spi_chip_write_256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 6993 | .read = spi_chip_read, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6994 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 6995 | .prepare_access = spi_prepare_io, |
| 6996 | .finish_access = spi_finish_io, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 6997 | }, |
| 6998 | |
| 6999 | { |
| 7000 | .vendor = "GigaDevice", |
Nico Huber | 68573af | 2024-01-06 18:28:22 +0100 | [diff] [blame] | 7001 | .name = "GD25Q127C", |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 7002 | .bustype = BUS_SPI, |
| 7003 | .manufacture_id = GIGADEVICE_ID, |
| 7004 | .model_id = GIGADEVICE_GD25Q128, |
| 7005 | .total_size = 16384, |
| 7006 | .page_size = 256, |
| 7007 | /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 7008 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QIO, |
Sergii Dmytruk | c74eac2 | 2022-10-06 18:17:58 +0300 | [diff] [blame] | 7009 | .tested = TEST_OK_PREWB, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 7010 | .probe = probe_spi_rdid, |
| 7011 | .probe_timing = TIMING_ZERO, |
| 7012 | .block_erasers = |
| 7013 | { |
| 7014 | { |
| 7015 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7016 | .block_erase = spi_block_erase_20, |
| 7017 | }, { |
| 7018 | .eraseblocks = { {32 * 1024, 512} }, |
| 7019 | .block_erase = spi_block_erase_52, |
| 7020 | }, { |
| 7021 | .eraseblocks = { {64 * 1024, 256} }, |
| 7022 | .block_erase = spi_block_erase_d8, |
| 7023 | }, { |
| 7024 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7025 | .block_erase = spi_block_erase_60, |
| 7026 | }, { |
| 7027 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7028 | .block_erase = spi_block_erase_c7, |
| 7029 | } |
| 7030 | }, |
| 7031 | /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */ |
| 7032 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7033 | .unlock = spi_disable_blockprotect_bp4_srwd, |
| 7034 | .write = spi_chip_write_256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 7035 | .read = spi_chip_read, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 7036 | .voltage = {2700, 3600}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 7037 | .reg_bits = |
| 7038 | { |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 7039 | .qe = {STATUS2, 1, RW}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 7040 | .srp = {STATUS1, 7, RW}, |
| 7041 | .srl = {STATUS2, 0, RW}, |
| 7042 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 7043 | .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */ |
| 7044 | .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */ |
| 7045 | .cmp = {STATUS2, 6, RW}, |
| 7046 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 7047 | .wp_write_cfg = spi_wp_write_cfg, |
| 7048 | .wp_read_cfg = spi_wp_read_cfg, |
| 7049 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 7050 | .decode_range = decode_range_spi25, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 7051 | .prepare_access = spi_prepare_io, |
| 7052 | .finish_access = spi_finish_io, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 7053 | }, |
| 7054 | |
| 7055 | { |
| 7056 | .vendor = "GigaDevice", |
Nico Huber | 68573af | 2024-01-06 18:28:22 +0100 | [diff] [blame] | 7057 | .name = "GD25Q128C", |
| 7058 | .bustype = BUS_SPI, |
| 7059 | .manufacture_id = GIGADEVICE_ID, |
| 7060 | .model_id = GIGADEVICE_GD25Q128, |
| 7061 | .total_size = 16384, |
| 7062 | .page_size = 256, |
| 7063 | /* OTP: 1536B total; read 0x48; write 0x42, erase 0x44 */ |
| 7064 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QPI_SRP, |
| 7065 | .dummy_cycles = { .qpi_read_params = { 4, 6, 8, 8 } }, |
| 7066 | .tested = TEST_OK_PREWB, |
| 7067 | .probe = probe_spi_rdid, |
| 7068 | .probe_timing = TIMING_ZERO, |
| 7069 | .block_erasers = |
| 7070 | { |
| 7071 | { |
| 7072 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7073 | .block_erase = spi_block_erase_20, |
| 7074 | }, { |
| 7075 | .eraseblocks = { {32 * 1024, 512} }, |
| 7076 | .block_erase = spi_block_erase_52, |
| 7077 | }, { |
| 7078 | .eraseblocks = { {64 * 1024, 256} }, |
| 7079 | .block_erase = spi_block_erase_d8, |
| 7080 | }, { |
| 7081 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7082 | .block_erase = spi_block_erase_60, |
| 7083 | }, { |
| 7084 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7085 | .block_erase = spi_block_erase_c7, |
| 7086 | } |
| 7087 | }, |
| 7088 | /* TODO: 2nd status reg (read 0x35, write 0x31) and 3rd status reg (read 0x15, write 0x11) */ |
| 7089 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7090 | .unlock = spi_disable_blockprotect_bp4_srwd, |
| 7091 | .write = spi_chip_write_256, |
| 7092 | .read = spi_chip_read, |
| 7093 | .voltage = {2700, 3600}, |
| 7094 | .reg_bits = |
| 7095 | { |
| 7096 | .qe = {STATUS2, 1, RW}, |
| 7097 | .srp = {STATUS1, 7, RW}, |
| 7098 | .srl = {STATUS2, 0, RW}, |
| 7099 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 7100 | .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */ |
| 7101 | .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */ |
| 7102 | .cmp = {STATUS2, 6, RW}, |
| 7103 | }, |
| 7104 | .decode_range = decode_range_spi25, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 7105 | .prepare_access = spi_prepare_io, |
| 7106 | .finish_access = spi_finish_io, |
Nico Huber | 68573af | 2024-01-06 18:28:22 +0100 | [diff] [blame] | 7107 | }, |
| 7108 | |
| 7109 | { |
| 7110 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7111 | .name = "GD25Q16(B)", |
| 7112 | .bustype = BUS_SPI, |
| 7113 | .manufacture_id = GIGADEVICE_ID, |
| 7114 | .model_id = GIGADEVICE_GD25Q16, |
| 7115 | .total_size = 2048, |
| 7116 | .page_size = 256, |
| 7117 | /* 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] | 7118 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7119 | .tested = TEST_OK_PREW, |
| 7120 | .probe = probe_spi_rdid, |
| 7121 | .probe_timing = TIMING_ZERO, |
| 7122 | .block_erasers = |
| 7123 | { |
| 7124 | { |
| 7125 | .eraseblocks = { {4 * 1024, 512} }, |
| 7126 | .block_erase = spi_block_erase_20, |
| 7127 | }, { |
| 7128 | .eraseblocks = { {32 * 1024, 64} }, |
| 7129 | .block_erase = spi_block_erase_52, |
| 7130 | }, { |
| 7131 | .eraseblocks = { {64 * 1024, 32} }, |
| 7132 | .block_erase = spi_block_erase_d8, |
| 7133 | }, { |
| 7134 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7135 | .block_erase = spi_block_erase_60, |
| 7136 | }, { |
| 7137 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7138 | .block_erase = spi_block_erase_c7, |
| 7139 | } |
| 7140 | }, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 7141 | .reg_bits = |
| 7142 | { |
| 7143 | .qe = {STATUS2, 1, RW}, |
| 7144 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7145 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7146 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7147 | .write = spi_chip_write_256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 7148 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7149 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 7150 | .prepare_access = spi_prepare_io, |
| 7151 | .finish_access = spi_finish_io, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7152 | }, |
| 7153 | |
| 7154 | { |
| 7155 | .vendor = "GigaDevice", |
| 7156 | .name = "GD25Q20(B)", |
| 7157 | .bustype = BUS_SPI, |
| 7158 | .manufacture_id = GIGADEVICE_ID, |
| 7159 | .model_id = GIGADEVICE_GD25Q20, |
| 7160 | .total_size = 256, |
| 7161 | .page_size = 256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 7162 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_QIO, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7163 | .tested = TEST_OK_PREW, |
| 7164 | .probe = probe_spi_rdid, |
| 7165 | .probe_timing = TIMING_ZERO, |
| 7166 | .block_erasers = |
| 7167 | { |
| 7168 | { |
| 7169 | .eraseblocks = { {4 * 1024, 64} }, |
| 7170 | .block_erase = spi_block_erase_20, |
| 7171 | }, { |
| 7172 | .eraseblocks = { {32 * 1024, 8} }, |
| 7173 | .block_erase = spi_block_erase_52, |
| 7174 | }, { |
| 7175 | .eraseblocks = { {64 * 1024, 4} }, |
| 7176 | .block_erase = spi_block_erase_d8, |
| 7177 | }, { |
| 7178 | .eraseblocks = { {256 * 1024, 1} }, |
| 7179 | .block_erase = spi_block_erase_60, |
| 7180 | }, { |
| 7181 | .eraseblocks = { {256 * 1024, 1} }, |
| 7182 | .block_erase = spi_block_erase_c7, |
| 7183 | } |
| 7184 | }, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 7185 | .reg_bits = { |
| 7186 | .qe = {STATUS2, 1, RW}, |
| 7187 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7188 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7189 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7190 | .write = spi_chip_write_256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 7191 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7192 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 7193 | .prepare_access = spi_prepare_io, |
| 7194 | .finish_access = spi_finish_io, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7195 | }, |
| 7196 | |
| 7197 | { |
| 7198 | .vendor = "GigaDevice", |
Nikolai Artemiev | 3ca0af0 | 2022-06-17 15:10:18 +1000 | [diff] [blame] | 7199 | .name = "GD25Q256D/GD25Q256E", |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 7200 | .bustype = BUS_SPI, |
| 7201 | .manufacture_id = GIGADEVICE_ID, |
| 7202 | .model_id = GIGADEVICE_GD25Q256D, |
| 7203 | .total_size = 32768, |
| 7204 | .page_size = 256, |
Nikolai Artemiev | b931e7a | 2022-12-05 13:06:14 +1100 | [diff] [blame] | 7205 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA | |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 7206 | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3 | |
| 7207 | FEATURE_QIO, |
Sergii Dmytruk | c74eac2 | 2022-10-06 18:17:58 +0300 | [diff] [blame] | 7208 | .tested = TEST_OK_PREWB, |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 7209 | .probe = probe_spi_rdid, |
| 7210 | .probe_timing = TIMING_ZERO, |
| 7211 | .block_erasers = |
| 7212 | { |
| 7213 | { |
| 7214 | .eraseblocks = { {4 * 1024, 8192} }, |
Nico Huber | 5374dc3 | 2019-10-04 16:16:15 +0200 | [diff] [blame] | 7215 | .block_erase = spi_block_erase_21, |
| 7216 | }, { |
| 7217 | .eraseblocks = { {4 * 1024, 8192} }, |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 7218 | .block_erase = spi_block_erase_20, |
| 7219 | }, { |
| 7220 | .eraseblocks = { {32 * 1024, 1024} }, |
Nico Huber | 5374dc3 | 2019-10-04 16:16:15 +0200 | [diff] [blame] | 7221 | .block_erase = spi_block_erase_5c, |
| 7222 | }, { |
| 7223 | .eraseblocks = { {32 * 1024, 1024} }, |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 7224 | .block_erase = spi_block_erase_52, |
| 7225 | }, { |
| 7226 | .eraseblocks = { {64 * 1024, 512} }, |
Nico Huber | 5374dc3 | 2019-10-04 16:16:15 +0200 | [diff] [blame] | 7227 | .block_erase = spi_block_erase_dc, |
| 7228 | }, { |
| 7229 | .eraseblocks = { {64 * 1024, 512} }, |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 7230 | .block_erase = spi_block_erase_d8, |
| 7231 | }, { |
| 7232 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 7233 | .block_erase = spi_block_erase_60, |
| 7234 | }, { |
| 7235 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 7236 | .block_erase = spi_block_erase_c7, |
| 7237 | } |
| 7238 | }, |
| 7239 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 7240 | .unlock = spi_disable_blockprotect, |
| 7241 | .write = spi_chip_write_256, |
| 7242 | .read = spi_chip_read, |
| 7243 | .voltage = {2700, 3600}, |
Nikolai Artemiev | c6c3f28 | 2021-10-20 23:34:15 +1100 | [diff] [blame] | 7244 | .reg_bits = |
| 7245 | { |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 7246 | .qe = {STATUS2, 1, RW}, |
Nikolai Artemiev | c6c3f28 | 2021-10-20 23:34:15 +1100 | [diff] [blame] | 7247 | .srp = {STATUS1, 7, RW}, |
| 7248 | .srl = {STATUS2, 6, RW}, |
| 7249 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}}, |
| 7250 | .tb = {STATUS1, 6, RW}, |
| 7251 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 7252 | .wp_write_cfg = spi_wp_write_cfg, |
| 7253 | .wp_read_cfg = spi_wp_read_cfg, |
| 7254 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nikolai Artemiev | c9feb1b | 2021-10-21 01:35:13 +1100 | [diff] [blame] | 7255 | .decode_range = decode_range_spi25, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 7256 | .prepare_access = spi_prepare_io, |
| 7257 | .finish_access = spi_finish_io, |
Alan Green | 86fc9cf | 2019-08-26 15:02:12 +1000 | [diff] [blame] | 7258 | }, |
| 7259 | |
| 7260 | { |
| 7261 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7262 | .name = "GD25Q32(B)", |
| 7263 | .bustype = BUS_SPI, |
| 7264 | .manufacture_id = GIGADEVICE_ID, |
| 7265 | .model_id = GIGADEVICE_GD25Q32, |
| 7266 | .total_size = 4096, |
| 7267 | .page_size = 256, |
| 7268 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 7269 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QIO, |
Sergii Dmytruk | c74eac2 | 2022-10-06 18:17:58 +0300 | [diff] [blame] | 7270 | .tested = TEST_OK_PREWB, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7271 | .probe = probe_spi_rdid, |
| 7272 | .probe_timing = TIMING_ZERO, |
| 7273 | .block_erasers = |
| 7274 | { |
| 7275 | { |
| 7276 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7277 | .block_erase = spi_block_erase_20, |
| 7278 | }, { |
| 7279 | .eraseblocks = { {32 * 1024, 128} }, |
| 7280 | .block_erase = spi_block_erase_52, |
| 7281 | }, { |
| 7282 | .eraseblocks = { {64 * 1024, 64} }, |
| 7283 | .block_erase = spi_block_erase_d8, |
| 7284 | }, { |
| 7285 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7286 | .block_erase = spi_block_erase_60, |
| 7287 | }, { |
| 7288 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7289 | .block_erase = spi_block_erase_c7, |
| 7290 | } |
| 7291 | }, |
| 7292 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7293 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7294 | .write = spi_chip_write_256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 7295 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7296 | .voltage = {2700, 3600}, |
Nikolai Artemiev | c6c3f28 | 2021-10-20 23:34:15 +1100 | [diff] [blame] | 7297 | .reg_bits = |
| 7298 | { |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 7299 | .qe = {STATUS2, 1, RW}, |
Nikolai Artemiev | c6c3f28 | 2021-10-20 23:34:15 +1100 | [diff] [blame] | 7300 | .srp = {STATUS1, 7, RW}, |
| 7301 | .srl = {STATUS2, 0, RW}, |
| 7302 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 7303 | .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */ |
| 7304 | .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */ |
| 7305 | .cmp = {STATUS2, 6, RW}, |
| 7306 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 7307 | .wp_write_cfg = spi_wp_write_cfg, |
| 7308 | .wp_read_cfg = spi_wp_read_cfg, |
| 7309 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nikolai Artemiev | c9feb1b | 2021-10-21 01:35:13 +1100 | [diff] [blame] | 7310 | .decode_range = decode_range_spi25, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 7311 | .prepare_access = spi_prepare_io, |
| 7312 | .finish_access = spi_finish_io, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7313 | }, |
| 7314 | |
| 7315 | { |
| 7316 | .vendor = "GigaDevice", |
| 7317 | .name = "GD25Q40(B)", |
| 7318 | .bustype = BUS_SPI, |
| 7319 | .manufacture_id = GIGADEVICE_ID, |
| 7320 | .model_id = GIGADEVICE_GD25Q40, |
| 7321 | .total_size = 512, |
| 7322 | .page_size = 256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 7323 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_QIO, |
Simon Buhrow | 551664c | 2022-03-09 16:09:08 +0100 | [diff] [blame] | 7324 | .tested = TEST_OK_PREW, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7325 | .probe = probe_spi_rdid, |
| 7326 | .probe_timing = TIMING_ZERO, |
| 7327 | .block_erasers = |
| 7328 | { |
| 7329 | { |
| 7330 | .eraseblocks = { {4 * 1024, 128} }, |
| 7331 | .block_erase = spi_block_erase_20, |
| 7332 | }, { |
| 7333 | .eraseblocks = { {32 * 1024, 16} }, |
| 7334 | .block_erase = spi_block_erase_52, |
| 7335 | }, { |
| 7336 | .eraseblocks = { {64 * 1024, 8} }, |
| 7337 | .block_erase = spi_block_erase_d8, |
| 7338 | }, { |
| 7339 | .eraseblocks = { {512 * 1024, 1} }, |
| 7340 | .block_erase = spi_block_erase_60, |
| 7341 | }, { |
| 7342 | .eraseblocks = { {512 * 1024, 1} }, |
| 7343 | .block_erase = spi_block_erase_c7, |
| 7344 | } |
| 7345 | }, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 7346 | .reg_bits = |
| 7347 | { |
| 7348 | .qe = {STATUS2, 1, RW}, |
| 7349 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7350 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7351 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7352 | .write = spi_chip_write_256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 7353 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7354 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 7355 | .prepare_access = spi_prepare_io, |
| 7356 | .finish_access = spi_finish_io, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7357 | }, |
| 7358 | |
| 7359 | { |
| 7360 | .vendor = "GigaDevice", |
| 7361 | .name = "GD25Q512", |
| 7362 | .bustype = BUS_SPI, |
| 7363 | .manufacture_id = GIGADEVICE_ID, |
| 7364 | .model_id = GIGADEVICE_GD25Q512, |
| 7365 | .total_size = 64, |
| 7366 | .page_size = 256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 7367 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_QIO, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7368 | .tested = TEST_OK_PREW, |
| 7369 | .probe = probe_spi_rdid, |
| 7370 | .probe_timing = TIMING_ZERO, |
| 7371 | .block_erasers = |
| 7372 | { |
| 7373 | { |
| 7374 | .eraseblocks = { {4 * 1024, 16} }, |
| 7375 | .block_erase = spi_block_erase_20, |
| 7376 | }, { |
| 7377 | .eraseblocks = { {32 * 1024, 2} }, |
| 7378 | .block_erase = spi_block_erase_52, |
| 7379 | }, { |
| 7380 | .eraseblocks = { {64 * 1024, 1} }, |
| 7381 | .block_erase = spi_block_erase_60, |
| 7382 | }, { |
| 7383 | .eraseblocks = { {64 * 1024, 1} }, |
| 7384 | .block_erase = spi_block_erase_c7, |
| 7385 | } |
| 7386 | }, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 7387 | .reg_bits = |
| 7388 | { |
| 7389 | .qe = {STATUS2, 1, RW}, |
| 7390 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7391 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7392 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7393 | .write = spi_chip_write_256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 7394 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7395 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 7396 | .prepare_access = spi_prepare_io, |
| 7397 | .finish_access = spi_finish_io, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7398 | }, |
| 7399 | |
| 7400 | { |
| 7401 | .vendor = "GigaDevice", |
| 7402 | .name = "GD25Q64(B)", |
| 7403 | .bustype = BUS_SPI, |
| 7404 | .manufacture_id = GIGADEVICE_ID, |
| 7405 | .model_id = GIGADEVICE_GD25Q64, |
| 7406 | .total_size = 8192, |
| 7407 | .page_size = 256, |
| 7408 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 7409 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QIO, |
Sergii Dmytruk | c74eac2 | 2022-10-06 18:17:58 +0300 | [diff] [blame] | 7410 | .tested = TEST_OK_PREWB, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7411 | .probe = probe_spi_rdid, |
| 7412 | .probe_timing = TIMING_ZERO, |
| 7413 | .block_erasers = |
| 7414 | { |
| 7415 | { |
| 7416 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7417 | .block_erase = spi_block_erase_20, |
| 7418 | }, { |
| 7419 | .eraseblocks = { {32 * 1024, 256} }, |
| 7420 | .block_erase = spi_block_erase_52, |
| 7421 | }, { |
| 7422 | .eraseblocks = { {64 * 1024, 128} }, |
| 7423 | .block_erase = spi_block_erase_d8, |
| 7424 | }, { |
| 7425 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7426 | .block_erase = spi_block_erase_60, |
| 7427 | }, { |
| 7428 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7429 | .block_erase = spi_block_erase_c7, |
| 7430 | } |
| 7431 | }, |
| 7432 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7433 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7434 | .write = spi_chip_write_256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 7435 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7436 | .voltage = {2700, 3600}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 7437 | .reg_bits = |
| 7438 | { |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 7439 | .qe = {STATUS2, 1, RW}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 7440 | .srp = {STATUS1, 7, RW}, |
| 7441 | .srl = {STATUS2, 0, RW}, |
| 7442 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 7443 | .tb = {STATUS1, 5, RW}, /* Called BP3 in datasheet, acts like TB */ |
| 7444 | .sec = {STATUS1, 6, RW}, /* Called BP4 in datasheet, acts like SEC */ |
| 7445 | .cmp = {STATUS2, 6, RW}, |
| 7446 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 7447 | .wp_write_cfg = spi_wp_write_cfg, |
| 7448 | .wp_read_cfg = spi_wp_read_cfg, |
| 7449 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 7450 | .decode_range = decode_range_spi25, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 7451 | .prepare_access = spi_prepare_io, |
| 7452 | .finish_access = spi_finish_io, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7453 | }, |
| 7454 | |
| 7455 | { |
| 7456 | .vendor = "GigaDevice", |
| 7457 | .name = "GD25Q80(B)", |
| 7458 | .bustype = BUS_SPI, |
| 7459 | .manufacture_id = GIGADEVICE_ID, |
| 7460 | .model_id = GIGADEVICE_GD25Q80, |
| 7461 | .total_size = 1024, |
| 7462 | .page_size = 256, |
| 7463 | /* 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] | 7464 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7465 | .tested = TEST_OK_PREW, |
| 7466 | .probe = probe_spi_rdid, |
| 7467 | .probe_timing = TIMING_ZERO, |
| 7468 | .block_erasers = |
| 7469 | { |
| 7470 | { |
| 7471 | .eraseblocks = { {4 * 1024, 256} }, |
| 7472 | .block_erase = spi_block_erase_20, |
| 7473 | }, { |
| 7474 | .eraseblocks = { {32 * 1024, 32} }, |
| 7475 | .block_erase = spi_block_erase_52, |
| 7476 | }, { |
| 7477 | .eraseblocks = { {64 * 1024, 16} }, |
| 7478 | .block_erase = spi_block_erase_d8, |
| 7479 | }, { |
| 7480 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7481 | .block_erase = spi_block_erase_60, |
| 7482 | }, { |
| 7483 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7484 | .block_erase = spi_block_erase_c7, |
| 7485 | } |
| 7486 | }, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 7487 | .reg_bits = |
| 7488 | { |
| 7489 | .qe = {STATUS2, 1, RW}, |
| 7490 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7491 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7492 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7493 | .write = spi_chip_write_256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 7494 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7495 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 7496 | .prepare_access = spi_prepare_io, |
| 7497 | .finish_access = spi_finish_io, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7498 | }, |
| 7499 | |
| 7500 | { |
| 7501 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 7502 | .name = "GD25T80", |
| 7503 | .bustype = BUS_SPI, |
| 7504 | .manufacture_id = GIGADEVICE_ID, |
| 7505 | .model_id = GIGADEVICE_GD25T80, |
| 7506 | .total_size = 1024, |
| 7507 | .page_size = 256, |
| 7508 | /* OTP: 256B total; enter 0x3A */ |
| 7509 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7510 | .tested = TEST_UNTESTED, |
| 7511 | .probe = probe_spi_rdid, |
| 7512 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 7513 | .block_erasers = |
| 7514 | { |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 7515 | { |
| 7516 | .eraseblocks = { {4 * 1024, 256} }, |
| 7517 | .block_erase = spi_block_erase_20, |
| 7518 | }, { |
| 7519 | .eraseblocks = { {64 * 1024, 16} }, |
| 7520 | .block_erase = spi_block_erase_52, |
| 7521 | }, { |
| 7522 | .eraseblocks = { {64 * 1024, 16} }, |
| 7523 | .block_erase = spi_block_erase_d8, |
| 7524 | }, { |
| 7525 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7526 | .block_erase = spi_block_erase_60, |
| 7527 | }, { |
| 7528 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7529 | .block_erase = spi_block_erase_c7, |
| 7530 | } |
| 7531 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 7532 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 7533 | .unlock = spi_disable_blockprotect, |
| 7534 | .write = spi_chip_write_256, |
| 7535 | .read = spi_chip_read, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 7536 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 7537 | }, |
| 7538 | |
| 7539 | { |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 7540 | .vendor = "GigaDevice", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7541 | .name = "GD25VQ16C", |
| 7542 | .bustype = BUS_SPI, |
| 7543 | .manufacture_id = GIGADEVICE_ID, |
| 7544 | .model_id = GIGADEVICE_GD25VQ16C, |
| 7545 | .total_size = 2 * 1024, |
| 7546 | .page_size = 256, |
| 7547 | /* Supports SFDP */ |
| 7548 | /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */ |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 7549 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7550 | .tested = TEST_UNTESTED, |
| 7551 | .probe = probe_spi_rdid, |
| 7552 | .probe_timing = TIMING_ZERO, |
| 7553 | .block_erasers = |
| 7554 | { |
| 7555 | { |
| 7556 | .eraseblocks = { { 4 * 1024, 512} }, |
| 7557 | .block_erase = spi_block_erase_20, |
| 7558 | }, { |
| 7559 | .eraseblocks = { { 32 * 1024, 64} }, |
| 7560 | .block_erase = spi_block_erase_52, |
| 7561 | }, { |
| 7562 | .eraseblocks = { { 64 * 1024, 32} }, |
| 7563 | .block_erase = spi_block_erase_d8, |
| 7564 | }, { |
| 7565 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7566 | .block_erase = spi_block_erase_60, |
| 7567 | }, { |
| 7568 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7569 | .block_erase = spi_block_erase_c7, |
| 7570 | } |
| 7571 | }, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 7572 | .reg_bits = |
| 7573 | { |
| 7574 | .qe = {STATUS2, 1, RW}, |
| 7575 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7576 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7577 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7578 | .write = spi_chip_write_256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 7579 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7580 | .voltage = {2300, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 7581 | .prepare_access = spi_prepare_io, |
| 7582 | .finish_access = spi_finish_io, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7583 | }, |
| 7584 | |
| 7585 | { |
| 7586 | .vendor = "GigaDevice", |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7587 | .name = "GD25VQ21B", |
| 7588 | .bustype = BUS_SPI, |
| 7589 | .manufacture_id = GIGADEVICE_ID, |
| 7590 | .model_id = GIGADEVICE_GD25VQ21B, |
| 7591 | .total_size = 256, |
| 7592 | .page_size = 256, |
| 7593 | /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */ |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 7594 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | |
| 7595 | FEATURE_OTP | FEATURE_QIO, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7596 | .tested = TEST_UNTESTED, |
| 7597 | .probe = probe_spi_rdid, |
| 7598 | .probe_timing = TIMING_ZERO, |
| 7599 | .block_erasers = |
| 7600 | { |
| 7601 | { |
| 7602 | .eraseblocks = { { 4 * 1024, 64} }, |
| 7603 | .block_erase = spi_block_erase_20, |
| 7604 | }, { |
| 7605 | .eraseblocks = { { 32 * 1024, 8} }, |
| 7606 | .block_erase = spi_block_erase_52, |
| 7607 | }, { |
| 7608 | .eraseblocks = { { 64 * 1024, 4} }, |
| 7609 | .block_erase = spi_block_erase_d8, |
| 7610 | }, { |
| 7611 | .eraseblocks = { {256 * 1024, 1} }, |
| 7612 | .block_erase = spi_block_erase_60, |
| 7613 | }, { |
| 7614 | .eraseblocks = { {256 * 1024, 1} }, |
| 7615 | .block_erase = spi_block_erase_c7, |
| 7616 | } |
| 7617 | }, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 7618 | .reg_bits = |
| 7619 | { |
| 7620 | .qe = {STATUS2, 1, RW}, |
| 7621 | }, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7622 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7623 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7624 | .write = spi_chip_write_256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 7625 | .read = spi_chip_read, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7626 | .voltage = {2300, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 7627 | .prepare_access = spi_prepare_io, |
| 7628 | .finish_access = spi_finish_io, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7629 | }, |
| 7630 | |
| 7631 | { |
| 7632 | .vendor = "GigaDevice", |
| 7633 | .name = "GD25VQ40C", |
| 7634 | .bustype = BUS_SPI, |
| 7635 | .manufacture_id = GIGADEVICE_ID, |
| 7636 | .model_id = GIGADEVICE_GD25VQ41B, |
| 7637 | .total_size = 512, |
| 7638 | .page_size = 256, |
| 7639 | /* Supports SFDP */ |
| 7640 | /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */ |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 7641 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7642 | .tested = TEST_UNTESTED, |
| 7643 | .probe = probe_spi_rdid, |
| 7644 | .probe_timing = TIMING_ZERO, |
| 7645 | .block_erasers = |
| 7646 | { |
| 7647 | { |
| 7648 | .eraseblocks = { { 4 * 1024, 128} }, |
| 7649 | .block_erase = spi_block_erase_20, |
| 7650 | }, { |
| 7651 | .eraseblocks = { { 32 * 1024, 16} }, |
| 7652 | .block_erase = spi_block_erase_52, |
| 7653 | }, { |
| 7654 | .eraseblocks = { { 64 * 1024, 8} }, |
| 7655 | .block_erase = spi_block_erase_d8, |
| 7656 | }, { |
| 7657 | .eraseblocks = { {512 * 1024, 1} }, |
| 7658 | .block_erase = spi_block_erase_60, |
| 7659 | }, { |
| 7660 | .eraseblocks = { {512 * 1024, 1} }, |
| 7661 | .block_erase = spi_block_erase_c7, |
| 7662 | } |
| 7663 | }, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 7664 | .reg_bits = |
| 7665 | { |
| 7666 | .qe = {STATUS2, 1, RW}, |
| 7667 | }, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7668 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7669 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7670 | .write = spi_chip_write_256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 7671 | .read = spi_chip_read, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7672 | .voltage = {2300, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 7673 | .prepare_access = spi_prepare_io, |
| 7674 | .finish_access = spi_finish_io, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7675 | }, |
| 7676 | |
| 7677 | { |
| 7678 | .vendor = "GigaDevice", |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 7679 | .name = "GD25VQ41B", |
| 7680 | .bustype = BUS_SPI, |
| 7681 | .manufacture_id = GIGADEVICE_ID, |
| 7682 | .model_id = GIGADEVICE_GD25VQ41B, |
| 7683 | .total_size = 512, |
| 7684 | .page_size = 256, |
| 7685 | /* OTP: 1536B total; read 0x48, write 0x42, erase 0x44 */ |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 7686 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | |
| 7687 | FEATURE_OTP | FEATURE_QIO, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 7688 | .tested = TEST_OK_PREW, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 7689 | .probe = probe_spi_rdid, |
| 7690 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 7691 | .block_erasers = |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 7692 | { |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 7693 | { |
| 7694 | .eraseblocks = { { 4 * 1024, 128} }, |
| 7695 | .block_erase = spi_block_erase_20, |
| 7696 | }, { |
| 7697 | .eraseblocks = { { 32 * 1024, 16} }, |
| 7698 | .block_erase = spi_block_erase_52, |
| 7699 | }, { |
| 7700 | .eraseblocks = { { 64 * 1024, 8} }, |
| 7701 | .block_erase = spi_block_erase_d8, |
| 7702 | }, { |
| 7703 | .eraseblocks = { {512 * 1024, 1} }, |
| 7704 | .block_erase = spi_block_erase_60, |
| 7705 | }, { |
| 7706 | .eraseblocks = { {512 * 1024, 1} }, |
| 7707 | .block_erase = spi_block_erase_c7, |
| 7708 | } |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 7709 | }, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 7710 | .reg_bits = |
| 7711 | { |
| 7712 | .qe = {STATUS2, 1, RW}, |
| 7713 | }, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 7714 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7715 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7716 | .write = spi_chip_write_256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 7717 | .read = spi_chip_read, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7718 | .voltage = {2300, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 7719 | .prepare_access = spi_prepare_io, |
| 7720 | .finish_access = spi_finish_io, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7721 | }, |
| 7722 | |
| 7723 | { |
| 7724 | .vendor = "GigaDevice", |
| 7725 | .name = "GD25VQ80C", |
| 7726 | .bustype = BUS_SPI, |
| 7727 | .manufacture_id = GIGADEVICE_ID, |
| 7728 | .model_id = GIGADEVICE_GD25VQ80C, |
| 7729 | .total_size = 1024, |
| 7730 | .page_size = 256, |
| 7731 | /* Supports SFDP */ |
| 7732 | /* OTP: 1024B total; read 0x48, write 0x42, erase 0x44 */ |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 7733 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7734 | .tested = TEST_UNTESTED, |
| 7735 | .probe = probe_spi_rdid, |
| 7736 | .probe_timing = TIMING_ZERO, |
| 7737 | .block_erasers = |
| 7738 | { |
| 7739 | { |
| 7740 | .eraseblocks = { { 4 * 1024, 256} }, |
| 7741 | .block_erase = spi_block_erase_20, |
| 7742 | }, { |
| 7743 | .eraseblocks = { { 32 * 1024, 32} }, |
| 7744 | .block_erase = spi_block_erase_52, |
| 7745 | }, { |
| 7746 | .eraseblocks = { { 64 * 1024, 16} }, |
| 7747 | .block_erase = spi_block_erase_d8, |
| 7748 | }, { |
| 7749 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7750 | .block_erase = spi_block_erase_60, |
| 7751 | }, { |
| 7752 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7753 | .block_erase = spi_block_erase_c7, |
| 7754 | } |
| 7755 | }, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 7756 | .reg_bits = |
| 7757 | { |
| 7758 | .qe = {STATUS2, 1, RW}, |
| 7759 | }, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7760 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7761 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 7762 | .write = spi_chip_write_256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 7763 | .read = spi_chip_read, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7764 | .voltage = {2300, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 7765 | .prepare_access = spi_prepare_io, |
| 7766 | .finish_access = spi_finish_io, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7767 | }, |
| 7768 | |
| 7769 | { |
Dino Li | 3214f58 | 2020-03-25 17:39:53 +0800 | [diff] [blame] | 7770 | .vendor = "GigaDevice", |
| 7771 | .name = "GD25WQ80E", |
| 7772 | .bustype = BUS_SPI, |
| 7773 | .manufacture_id = GIGADEVICE_ID, |
| 7774 | .model_id = GIGADEVICE_GD25WQ80E, |
| 7775 | .total_size = 1024, |
| 7776 | .page_size = 256, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 7777 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_QIO, |
Dino Li | 3214f58 | 2020-03-25 17:39:53 +0800 | [diff] [blame] | 7778 | .tested = TEST_OK_PREW, |
| 7779 | .probe = probe_spi_rdid, |
| 7780 | .probe_timing = TIMING_ZERO, |
| 7781 | .block_erasers = |
| 7782 | { |
| 7783 | { |
| 7784 | .eraseblocks = { {4 * 1024, 256} }, |
| 7785 | .block_erase = spi_block_erase_20, |
| 7786 | }, { |
| 7787 | .eraseblocks = { {32 * 1024, 32} }, |
| 7788 | .block_erase = spi_block_erase_52, |
| 7789 | }, { |
| 7790 | .eraseblocks = { {64 * 1024, 16} }, |
| 7791 | .block_erase = spi_block_erase_d8, |
| 7792 | }, { |
| 7793 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 7794 | .block_erase = spi_block_erase_60, |
| 7795 | }, { |
| 7796 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 7797 | .block_erase = spi_block_erase_c7, |
| 7798 | } |
| 7799 | }, |
Nico Huber | 4da971f | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 7800 | .reg_bits = |
| 7801 | { |
| 7802 | .qe = {STATUS2, 1, RW}, |
| 7803 | }, |
Dino Li | 3214f58 | 2020-03-25 17:39:53 +0800 | [diff] [blame] | 7804 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
| 7805 | .unlock = spi_disable_blockprotect_bp4_srwd, |
| 7806 | .write = spi_chip_write_256, |
| 7807 | .read = spi_chip_read, |
| 7808 | .voltage = {1650, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 7809 | .prepare_access = spi_prepare_io, |
| 7810 | .finish_access = spi_finish_io, |
Dino Li | 3214f58 | 2020-03-25 17:39:53 +0800 | [diff] [blame] | 7811 | }, |
| 7812 | |
| 7813 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7814 | .vendor = "Hyundai", |
| 7815 | .name = "HY29F002B", |
| 7816 | .bustype = BUS_PARALLEL, |
| 7817 | .manufacture_id = HYUNDAI_ID, |
| 7818 | .model_id = HYUNDAI_HY29F002B, |
| 7819 | .total_size = 256, |
| 7820 | .page_size = 256 * 1024, |
| 7821 | .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */ |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7822 | .tested = TEST_UNTESTED, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7823 | .probe = probe_jedec, |
| 7824 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7825 | .block_erasers = |
| 7826 | { |
| 7827 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7828 | .eraseblocks = { |
| 7829 | {16 * 1024, 1}, |
| 7830 | {8 * 1024, 2}, |
| 7831 | {32 * 1024, 1}, |
| 7832 | {64 * 1024, 3}, |
| 7833 | }, |
| 7834 | .block_erase = erase_sector_jedec, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7835 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7836 | .eraseblocks = { {256 * 1024, 1} }, |
| 7837 | .block_erase = erase_chip_block_jedec, |
| 7838 | }, |
Hatim Kanchwala | d059535 | 2016-03-06 14:33:49 +0000 | [diff] [blame] | 7839 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 7840 | .write = write_jedec_1, |
| 7841 | .read = read_memmapped, |
| 7842 | .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] | 7843 | .prepare_access = prepare_memory_access, |
| 7844 | .finish_access = finish_memory_access, |
Hatim Kanchwala | e0c7abf | 2016-02-21 00:21:11 +0000 | [diff] [blame] | 7845 | }, |
| 7846 | |
| 7847 | { |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 7848 | .vendor = "Hyundai", |
| 7849 | .name = "HY29F002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7850 | .bustype = BUS_PARALLEL, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 7851 | .manufacture_id = HYUNDAI_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7852 | .model_id = HYUNDAI_HY29F002T, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 7853 | .total_size = 256, |
| 7854 | .page_size = 256 * 1024, |
| 7855 | .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] | 7856 | .tested = TEST_OK_PRE, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 7857 | .probe = probe_jedec, |
| 7858 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 7859 | .block_erasers = |
| 7860 | { |
| 7861 | { |
| 7862 | .eraseblocks = { |
| 7863 | {64 * 1024, 3}, |
| 7864 | {32 * 1024, 1}, |
| 7865 | {8 * 1024, 2}, |
| 7866 | {16 * 1024, 1}, |
| 7867 | }, |
| 7868 | .block_erase = erase_sector_jedec, |
| 7869 | }, { |
| 7870 | .eraseblocks = { {256 * 1024, 1} }, |
| 7871 | .block_erase = erase_chip_block_jedec, |
| 7872 | }, |
| 7873 | }, |
| 7874 | .write = write_jedec_1, |
| 7875 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 7876 | .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] | 7877 | .prepare_access = prepare_memory_access, |
| 7878 | .finish_access = finish_memory_access, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 7879 | }, |
| 7880 | |
| 7881 | { |
| 7882 | .vendor = "Hyundai", |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 7883 | .name = "HY29F040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7884 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 7885 | .manufacture_id = HYUNDAI_ID, |
| 7886 | .model_id = HYUNDAI_HY29F040A, |
| 7887 | .total_size = 512, |
| 7888 | .page_size = 64 * 1024, |
| 7889 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 7890 | .tested = TEST_UNTESTED, |
| 7891 | .probe = probe_jedec, |
| 7892 | .probe_timing = TIMING_ZERO, |
| 7893 | .block_erasers = |
| 7894 | { |
| 7895 | { |
| 7896 | .eraseblocks = { {64 * 1024, 8} }, |
| 7897 | .block_erase = erase_sector_jedec, |
| 7898 | }, { |
| 7899 | .eraseblocks = { {512 * 1024, 1} }, |
| 7900 | .block_erase = erase_chip_block_jedec, |
| 7901 | }, |
| 7902 | }, |
| 7903 | .write = write_jedec_1, |
| 7904 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 7905 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 7906 | .prepare_access = prepare_memory_access, |
| 7907 | .finish_access = finish_memory_access, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 7908 | }, |
| 7909 | |
| 7910 | { |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 7911 | .vendor = "ISSI", |
Angel Pons | 2ef47f3 | 2018-09-30 16:47:30 +0200 | [diff] [blame] | 7912 | .name = "IS25LP064", |
| 7913 | .bustype = BUS_SPI, |
| 7914 | .manufacture_id = ISSI_ID_SPI, |
| 7915 | .model_id = ISSI_IS25LP064, |
| 7916 | .total_size = 8192, |
| 7917 | .page_size = 256, |
| 7918 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 7919 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Simon Buhrow | 9bf829d | 2021-10-20 17:09:09 +0200 | [diff] [blame] | 7920 | .tested = TEST_OK_PREW, |
Angel Pons | 2ef47f3 | 2018-09-30 16:47:30 +0200 | [diff] [blame] | 7921 | .probe = probe_spi_rdid, |
| 7922 | .probe_timing = TIMING_ZERO, |
| 7923 | .block_erasers = |
| 7924 | { |
| 7925 | { |
| 7926 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7927 | .block_erase = spi_block_erase_20, |
| 7928 | }, { |
| 7929 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7930 | .block_erase = spi_block_erase_d7, |
| 7931 | }, { |
| 7932 | .eraseblocks = { {32 * 1024, 256} }, |
| 7933 | .block_erase = spi_block_erase_52, |
| 7934 | }, { |
| 7935 | .eraseblocks = { {64 * 1024, 128} }, |
| 7936 | .block_erase = spi_block_erase_d8, |
| 7937 | }, { |
| 7938 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7939 | .block_erase = spi_block_erase_60, |
| 7940 | }, { |
| 7941 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7942 | .block_erase = spi_block_erase_c7, |
| 7943 | } |
| 7944 | }, |
| 7945 | .unlock = spi_disable_blockprotect, |
| 7946 | .write = spi_chip_write_256, |
| 7947 | .read = spi_chip_read, |
| 7948 | .voltage = {2300, 3600}, |
| 7949 | }, |
| 7950 | |
| 7951 | { |
| 7952 | .vendor = "ISSI", |
David Hendricks | 3083ed9 | 2017-05-02 13:25:56 -0700 | [diff] [blame] | 7953 | .name = "IS25LP128", |
| 7954 | .bustype = BUS_SPI, |
| 7955 | .manufacture_id = ISSI_ID_SPI, |
| 7956 | .model_id = ISSI_IS25LP128, |
| 7957 | .total_size = 16384, |
| 7958 | .page_size = 256, |
| 7959 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
| 7960 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7961 | .tested = TEST_OK_PREW, |
| 7962 | .probe = probe_spi_rdid, |
| 7963 | .probe_timing = TIMING_ZERO, |
| 7964 | .block_erasers = |
| 7965 | { |
| 7966 | { |
| 7967 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7968 | .block_erase = spi_block_erase_20, |
| 7969 | }, { |
| 7970 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7971 | .block_erase = spi_block_erase_d7, |
| 7972 | }, { |
| 7973 | .eraseblocks = { {32 * 1024, 512} }, |
| 7974 | .block_erase = spi_block_erase_52, |
| 7975 | }, { |
| 7976 | .eraseblocks = { {64 * 1024, 256} }, |
| 7977 | .block_erase = spi_block_erase_d8, |
| 7978 | }, { |
| 7979 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7980 | .block_erase = spi_block_erase_60, |
| 7981 | }, { |
| 7982 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7983 | .block_erase = spi_block_erase_c7, |
| 7984 | } |
| 7985 | }, |
| 7986 | .unlock = spi_disable_blockprotect, |
| 7987 | .write = spi_chip_write_256, |
| 7988 | .read = spi_chip_read, |
| 7989 | .voltage = {2300, 3600}, |
| 7990 | }, |
| 7991 | |
| 7992 | { |
| 7993 | .vendor = "ISSI", |
David Hendricks | 61818dc | 2018-10-28 01:02:21 +0000 | [diff] [blame] | 7994 | .name = "IS25LP256", |
| 7995 | .bustype = BUS_SPI, |
| 7996 | .manufacture_id = ISSI_ID_SPI, |
| 7997 | .model_id = ISSI_IS25LP256, |
| 7998 | .total_size = 32768, |
| 7999 | .page_size = 256, |
| 8000 | /* supports SFDP */ |
| 8001 | /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */ |
Nico Huber | ad55d5a | 2022-06-20 19:32:16 +0200 | [diff] [blame] | 8002 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 8003 | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716, |
David Hendricks | 61818dc | 2018-10-28 01:02:21 +0000 | [diff] [blame] | 8004 | .tested = TEST_OK_PREW, |
| 8005 | .probe = probe_spi_rdid, |
| 8006 | .probe_timing = TIMING_ZERO, |
| 8007 | .block_erasers = |
| 8008 | { |
| 8009 | { |
| 8010 | .eraseblocks = { {4 * 1024, 8192} }, |
| 8011 | .block_erase = spi_block_erase_21, |
| 8012 | }, { |
| 8013 | .eraseblocks = { {4 * 1024, 8192} }, |
| 8014 | .block_erase = spi_block_erase_20, |
| 8015 | /* could also use spi_block_erase_d7 */ |
| 8016 | }, { |
| 8017 | .eraseblocks = { {32 * 1024, 1024} }, |
| 8018 | .block_erase = spi_block_erase_5c, |
| 8019 | }, { |
| 8020 | .eraseblocks = { {32 * 1024, 1024} }, |
| 8021 | .block_erase = spi_block_erase_52, |
| 8022 | }, { |
| 8023 | .eraseblocks = { {64 * 1024, 512} }, |
| 8024 | .block_erase = spi_block_erase_dc, |
| 8025 | }, { |
| 8026 | .eraseblocks = { {64 * 1024, 512} }, |
| 8027 | .block_erase = spi_block_erase_d8, |
| 8028 | }, { |
| 8029 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 8030 | .block_erase = spi_block_erase_60, |
| 8031 | }, { |
| 8032 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 8033 | .block_erase = spi_block_erase_c7, |
| 8034 | } |
| 8035 | }, |
| 8036 | .unlock = spi_disable_blockprotect, |
| 8037 | .write = spi_chip_write_256, |
| 8038 | .read = spi_chip_read, |
| 8039 | .voltage = {2300, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 8040 | .prepare_access = spi_prepare_io, |
| 8041 | .finish_access = spi_finish_io, |
David Hendricks | 61818dc | 2018-10-28 01:02:21 +0000 | [diff] [blame] | 8042 | }, |
| 8043 | |
| 8044 | { |
| 8045 | .vendor = "ISSI", |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 8046 | .name = "IS25WP032", |
| 8047 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 8048 | .manufacture_id = ISSI_ID_SPI, |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 8049 | .model_id = ISSI_IS25WP032, |
| 8050 | .total_size = 4096, |
| 8051 | .page_size = 256, |
| 8052 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 8053 | /* QPI: enter/exit 35/f5, SRP with 4 bits directly specifying |
| 8054 | dummy cycles; non-volatile read parameters, so disable for now */ |
| 8055 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 8056 | .tested = TEST_UNTESTED, |
| 8057 | .probe = probe_spi_rdid, |
| 8058 | .probe_timing = TIMING_ZERO, |
| 8059 | .block_erasers = |
| 8060 | { |
| 8061 | { |
| 8062 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8063 | .block_erase = spi_block_erase_20, |
| 8064 | }, { |
| 8065 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8066 | .block_erase = spi_block_erase_d7, |
| 8067 | }, { |
| 8068 | .eraseblocks = { {32 * 1024, 128} }, |
| 8069 | .block_erase = spi_block_erase_52, |
| 8070 | }, { |
| 8071 | .eraseblocks = { {64 * 1024, 64} }, |
| 8072 | .block_erase = spi_block_erase_d8, |
| 8073 | }, { |
| 8074 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8075 | .block_erase = spi_block_erase_60, |
| 8076 | }, { |
| 8077 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8078 | .block_erase = spi_block_erase_c7, |
| 8079 | } |
| 8080 | }, |
| 8081 | .unlock = spi_disable_blockprotect, |
| 8082 | .write = spi_chip_write_256, |
| 8083 | .read = spi_chip_read, |
| 8084 | .voltage = {1650, 1950}, |
| 8085 | }, |
| 8086 | |
| 8087 | { |
| 8088 | .vendor = "ISSI", |
| 8089 | .name = "IS25WP064", |
| 8090 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 8091 | .manufacture_id = ISSI_ID_SPI, |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 8092 | .model_id = ISSI_IS25WP064, |
| 8093 | .total_size = 8192, |
| 8094 | .page_size = 256, |
| 8095 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 8096 | /* QPI: enter/exit 35/f5, SRP with 4 bits directly specifying |
| 8097 | dummy cycles; non-volatile read parameters, so disable for now */ |
| 8098 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Nico Huber | b27b8d1 | 2018-10-02 20:46:21 +0200 | [diff] [blame] | 8099 | .tested = TEST_OK_PREW, |
| 8100 | .probe = probe_spi_rdid, |
| 8101 | .probe_timing = TIMING_ZERO, |
| 8102 | .block_erasers = |
| 8103 | { |
| 8104 | { |
| 8105 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8106 | .block_erase = spi_block_erase_20, |
| 8107 | }, { |
| 8108 | .eraseblocks = { {4 * 1024, 2048} }, |
| 8109 | .block_erase = spi_block_erase_d7, |
| 8110 | }, { |
| 8111 | .eraseblocks = { {32 * 1024, 256} }, |
| 8112 | .block_erase = spi_block_erase_52, |
| 8113 | }, { |
| 8114 | .eraseblocks = { {64 * 1024, 128} }, |
| 8115 | .block_erase = spi_block_erase_d8, |
| 8116 | }, { |
| 8117 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8118 | .block_erase = spi_block_erase_60, |
| 8119 | }, { |
| 8120 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8121 | .block_erase = spi_block_erase_c7, |
| 8122 | } |
| 8123 | }, |
| 8124 | .unlock = spi_disable_blockprotect, |
| 8125 | .write = spi_chip_write_256, |
| 8126 | .read = spi_chip_read, |
| 8127 | .voltage = {1650, 1950}, |
| 8128 | }, |
| 8129 | |
| 8130 | { |
| 8131 | .vendor = "ISSI", |
David Hendricks | 3083ed9 | 2017-05-02 13:25:56 -0700 | [diff] [blame] | 8132 | .name = "IS25WP128", |
| 8133 | .bustype = BUS_SPI, |
| 8134 | .manufacture_id = ISSI_ID_SPI, |
| 8135 | .model_id = ISSI_IS25WP128, |
| 8136 | .total_size = 16384, |
| 8137 | .page_size = 256, |
| 8138 | /* OTP: 1024B total; read 0x48; write 0x42 */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 8139 | /* QPI: enter/exit 35/f5, SRP with 4 bits directly specifying |
| 8140 | dummy cycles; non-volatile read parameters, so disable for now */ |
| 8141 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 3083ed9 | 2017-05-02 13:25:56 -0700 | [diff] [blame] | 8142 | .tested = TEST_OK_PREW, |
| 8143 | .probe = probe_spi_rdid, |
| 8144 | .probe_timing = TIMING_ZERO, |
| 8145 | .block_erasers = |
| 8146 | { |
| 8147 | { |
| 8148 | .eraseblocks = { {4 * 1024, 4096} }, |
| 8149 | .block_erase = spi_block_erase_20, |
| 8150 | }, { |
| 8151 | .eraseblocks = { {4 * 1024, 4096} }, |
| 8152 | .block_erase = spi_block_erase_d7, |
| 8153 | }, { |
| 8154 | .eraseblocks = { {32 * 1024, 512} }, |
| 8155 | .block_erase = spi_block_erase_52, |
| 8156 | }, { |
| 8157 | .eraseblocks = { {64 * 1024, 256} }, |
| 8158 | .block_erase = spi_block_erase_d8, |
| 8159 | }, { |
| 8160 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 8161 | .block_erase = spi_block_erase_60, |
| 8162 | }, { |
| 8163 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 8164 | .block_erase = spi_block_erase_c7, |
| 8165 | } |
| 8166 | }, |
| 8167 | .unlock = spi_disable_blockprotect, |
| 8168 | .write = spi_chip_write_256, |
| 8169 | .read = spi_chip_read, |
| 8170 | .voltage = {1650, 1950}, |
| 8171 | }, |
| 8172 | |
| 8173 | { |
| 8174 | .vendor = "ISSI", |
David Hendricks | 61818dc | 2018-10-28 01:02:21 +0000 | [diff] [blame] | 8175 | .name = "IS25WP256", |
| 8176 | .bustype = BUS_SPI, |
| 8177 | .manufacture_id = ISSI_ID_SPI, |
| 8178 | .model_id = ISSI_IS25WP256, |
| 8179 | .total_size = 32768, |
| 8180 | .page_size = 256, |
| 8181 | /* supports SFDP */ |
| 8182 | /* OTP: 1024B total; read 0x68; write 0x62, erase 0x64, read ID 0x4B */ |
Nico Huber | ad55d5a | 2022-06-20 19:32:16 +0200 | [diff] [blame] | 8183 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 8184 | FEATURE_4BA | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716, |
David Hendricks | 61818dc | 2018-10-28 01:02:21 +0000 | [diff] [blame] | 8185 | .tested = TEST_OK_PREW, |
| 8186 | .probe = probe_spi_rdid, |
| 8187 | .probe_timing = TIMING_ZERO, |
| 8188 | .block_erasers = |
| 8189 | { |
| 8190 | { |
| 8191 | .eraseblocks = { {4 * 1024, 8192} }, |
| 8192 | .block_erase = spi_block_erase_21, |
| 8193 | }, { |
| 8194 | .eraseblocks = { {4 * 1024, 8192} }, |
| 8195 | .block_erase = spi_block_erase_20, |
| 8196 | /* could also use spi_block_erase_d7 */ |
| 8197 | }, { |
| 8198 | .eraseblocks = { {32 * 1024, 1024} }, |
| 8199 | .block_erase = spi_block_erase_5c, |
| 8200 | }, { |
| 8201 | .eraseblocks = { {32 * 1024, 1024} }, |
| 8202 | .block_erase = spi_block_erase_52, |
| 8203 | }, { |
| 8204 | .eraseblocks = { {64 * 1024, 512} }, |
| 8205 | .block_erase = spi_block_erase_dc, |
| 8206 | }, { |
| 8207 | .eraseblocks = { {64 * 1024, 512} }, |
| 8208 | .block_erase = spi_block_erase_d8, |
| 8209 | }, { |
| 8210 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 8211 | .block_erase = spi_block_erase_60, |
| 8212 | }, { |
| 8213 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 8214 | .block_erase = spi_block_erase_c7, |
| 8215 | } |
| 8216 | }, |
| 8217 | .unlock = spi_disable_blockprotect, |
| 8218 | .write = spi_chip_write_256, |
| 8219 | .read = spi_chip_read, |
| 8220 | .voltage = {1650, 1950}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 8221 | .prepare_access = spi_prepare_io, |
| 8222 | .finish_access = spi_finish_io, |
David Hendricks | 61818dc | 2018-10-28 01:02:21 +0000 | [diff] [blame] | 8223 | }, |
| 8224 | |
| 8225 | { |
| 8226 | .vendor = "ISSI", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 8227 | .name = "IS29GL064B", |
| 8228 | .bustype = BUS_PARALLEL, |
| 8229 | .manufacture_id = ISSI_ID, |
| 8230 | .model_id = ISSI_PMC_IS29GL064B, |
| 8231 | .total_size = 8192, |
| 8232 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 8233 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8234 | .tested = TEST_UNTESTED, |
| 8235 | .probe = probe_jedec_29gl, |
| 8236 | .probe_timing = TIMING_ZERO, |
| 8237 | .block_erasers = |
| 8238 | { |
| 8239 | { |
| 8240 | .eraseblocks = { |
| 8241 | {8 * 1024, 8}, |
| 8242 | {64 * 1024, 127}, |
| 8243 | }, |
| 8244 | .block_erase = erase_sector_jedec, |
| 8245 | }, { |
| 8246 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8247 | .block_erase = erase_chip_block_jedec, |
| 8248 | }, |
| 8249 | }, |
| 8250 | .write = write_jedec_1, |
| 8251 | .read = read_memmapped, |
| 8252 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8253 | .prepare_access = prepare_memory_access, |
| 8254 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 8255 | }, |
| 8256 | |
| 8257 | { |
| 8258 | .vendor = "ISSI", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8259 | .name = "IS29GL064H/L", |
| 8260 | .bustype = BUS_PARALLEL, |
| 8261 | .manufacture_id = ISSI_ID, |
| 8262 | .model_id = ISSI_PMC_IS29GL064HL, |
| 8263 | .total_size = 8192, |
| 8264 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 8265 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8266 | .tested = TEST_UNTESTED, |
| 8267 | .probe = probe_jedec_29gl, |
| 8268 | .probe_timing = TIMING_ZERO, |
| 8269 | .block_erasers = |
| 8270 | { |
| 8271 | { |
| 8272 | .eraseblocks = { {64 * 1024, 128} }, |
| 8273 | .block_erase = erase_sector_jedec, |
| 8274 | }, { |
| 8275 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8276 | .block_erase = erase_chip_block_jedec, |
| 8277 | }, |
| 8278 | }, |
| 8279 | .write = write_jedec_1, |
| 8280 | .read = read_memmapped, |
| 8281 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8282 | .prepare_access = prepare_memory_access, |
| 8283 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8284 | }, |
| 8285 | |
| 8286 | { |
| 8287 | .vendor = "ISSI", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 8288 | .name = "IS29GL064T", |
| 8289 | .bustype = BUS_PARALLEL, |
| 8290 | .manufacture_id = ISSI_ID, |
| 8291 | .model_id = ISSI_PMC_IS29GL064T, |
| 8292 | .total_size = 8192, |
| 8293 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 8294 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8295 | .tested = TEST_UNTESTED, |
| 8296 | .probe = probe_jedec_29gl, |
| 8297 | .probe_timing = TIMING_ZERO, |
| 8298 | .block_erasers = |
| 8299 | { |
| 8300 | { |
| 8301 | .eraseblocks = { |
| 8302 | {64 * 1024, 127}, |
| 8303 | {8 * 1024, 8}, |
| 8304 | }, |
| 8305 | .block_erase = erase_sector_jedec, |
| 8306 | }, { |
| 8307 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8308 | .block_erase = erase_chip_block_jedec, |
| 8309 | }, |
| 8310 | }, |
| 8311 | .write = write_jedec_1, |
| 8312 | .read = read_memmapped, |
| 8313 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8314 | .prepare_access = prepare_memory_access, |
| 8315 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 8316 | }, |
| 8317 | |
| 8318 | { |
| 8319 | .vendor = "ISSI", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 8320 | .name = "IS29GL128H/L", |
| 8321 | .bustype = BUS_PARALLEL, |
| 8322 | .manufacture_id = ISSI_ID, |
| 8323 | .model_id = ISSI_PMC_IS29GL128HL, |
| 8324 | .total_size = 16384, |
| 8325 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 8326 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 8327 | .tested = TEST_UNTESTED, |
| 8328 | .probe = probe_jedec_29gl, |
| 8329 | .probe_timing = TIMING_ZERO, |
| 8330 | .block_erasers = |
| 8331 | { |
| 8332 | { |
| 8333 | .eraseblocks = { {128 * 1024, 128} }, |
| 8334 | .block_erase = erase_sector_jedec, |
| 8335 | }, { |
| 8336 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 8337 | .block_erase = erase_chip_block_jedec, |
| 8338 | }, |
| 8339 | }, |
| 8340 | .write = write_jedec_1, |
| 8341 | .read = read_memmapped, |
| 8342 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8343 | .prepare_access = prepare_memory_access, |
| 8344 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 8345 | }, |
| 8346 | |
| 8347 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8348 | .vendor = "Intel", |
| 8349 | .name = "25F160S33B8", |
| 8350 | .bustype = BUS_SPI, |
| 8351 | .manufacture_id = INTEL_ID, |
| 8352 | .model_id = INTEL_25F160S33B8, |
| 8353 | .total_size = 2048, |
| 8354 | .page_size = 256, |
| 8355 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 8356 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8357 | .tested = TEST_UNTESTED, |
| 8358 | .probe = probe_spi_rdid, |
| 8359 | .probe_timing = TIMING_ZERO, |
| 8360 | .block_erasers = |
| 8361 | { |
| 8362 | { |
| 8363 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 8364 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 8365 | * have no effect on the memory contents, but sets a flag in the SR. |
| 8366 | .eraseblocks = { |
| 8367 | {8 * 1024, 8}, |
| 8368 | {64 * 1024, 31} // inaccessible |
| 8369 | }, |
| 8370 | .block_erase = spi_block_erase_40, |
| 8371 | }, { */ |
| 8372 | .eraseblocks = { {64 * 1024, 32} }, |
| 8373 | .block_erase = spi_block_erase_d8, |
| 8374 | }, { |
| 8375 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8376 | .block_erase = spi_block_erase_c7, |
| 8377 | } |
| 8378 | }, |
| 8379 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 8380 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 8381 | .write = spi_chip_write_256, |
| 8382 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 8383 | .voltage = {2700, 3600}, |
| 8384 | }, |
| 8385 | |
| 8386 | { |
| 8387 | .vendor = "Intel", |
| 8388 | .name = "25F160S33T8", |
| 8389 | .bustype = BUS_SPI, |
| 8390 | .manufacture_id = INTEL_ID, |
| 8391 | .model_id = INTEL_25F160S33T8, |
| 8392 | .total_size = 2048, |
| 8393 | .page_size = 256, |
| 8394 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 8395 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8396 | .tested = TEST_UNTESTED, |
| 8397 | .probe = probe_spi_rdid, |
| 8398 | .probe_timing = TIMING_ZERO, |
| 8399 | .block_erasers = |
| 8400 | { |
| 8401 | { |
| 8402 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 8403 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 8404 | * have no effect on the memory contents, but sets a flag in the SR. |
| 8405 | .eraseblocks = { |
| 8406 | {64 * 1024, 31}, // inaccessible |
| 8407 | {8 * 1024, 8} |
| 8408 | }, |
| 8409 | .block_erase = spi_block_erase_40, |
| 8410 | }, { */ |
| 8411 | .eraseblocks = { {64 * 1024, 32} }, |
| 8412 | .block_erase = spi_block_erase_d8, |
| 8413 | }, { |
| 8414 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8415 | .block_erase = spi_block_erase_c7, |
| 8416 | } |
| 8417 | }, |
| 8418 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 8419 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 8420 | .write = spi_chip_write_256, |
| 8421 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 8422 | .voltage = {2700, 3600}, |
| 8423 | }, |
| 8424 | |
| 8425 | { |
| 8426 | .vendor = "Intel", |
| 8427 | .name = "25F320S33B8", |
| 8428 | .bustype = BUS_SPI, |
| 8429 | .manufacture_id = INTEL_ID, |
| 8430 | .model_id = INTEL_25F320S33B8, |
| 8431 | .total_size = 4096, |
| 8432 | .page_size = 256, |
| 8433 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 8434 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8435 | .tested = TEST_UNTESTED, |
| 8436 | .probe = probe_spi_rdid, |
| 8437 | .probe_timing = TIMING_ZERO, |
| 8438 | .block_erasers = |
| 8439 | { |
| 8440 | { |
| 8441 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 8442 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 8443 | * have no effect on the memory contents, but sets a flag in the SR. |
| 8444 | .eraseblocks = { |
| 8445 | {8 * 1024, 8}, |
| 8446 | {64 * 1024, 63} // inaccessible |
| 8447 | }, |
| 8448 | .block_erase = spi_block_erase_40, |
| 8449 | }, { */ |
| 8450 | .eraseblocks = { {64 * 1024, 64} }, |
| 8451 | .block_erase = spi_block_erase_d8, |
| 8452 | }, { |
| 8453 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8454 | .block_erase = spi_block_erase_c7, |
| 8455 | } |
| 8456 | }, |
| 8457 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 8458 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 8459 | .write = spi_chip_write_256, |
| 8460 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 8461 | .voltage = {2700, 3600}, |
| 8462 | }, |
| 8463 | |
| 8464 | { |
| 8465 | .vendor = "Intel", |
| 8466 | .name = "25F320S33T8", |
| 8467 | .bustype = BUS_SPI, |
| 8468 | .manufacture_id = INTEL_ID, |
| 8469 | .model_id = INTEL_25F320S33T8, |
| 8470 | .total_size = 4096, |
| 8471 | .page_size = 256, |
| 8472 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 8473 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8474 | .tested = TEST_UNTESTED, |
| 8475 | .probe = probe_spi_rdid, |
| 8476 | .probe_timing = TIMING_ZERO, |
| 8477 | .block_erasers = |
| 8478 | { |
| 8479 | { |
| 8480 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 8481 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 8482 | * have no effect on the memory contents, but sets a flag in the SR. |
| 8483 | .eraseblocks = { |
| 8484 | {64 * 1024, 63}, // inaccessible |
| 8485 | {8 * 1024, 8} |
| 8486 | }, |
| 8487 | .block_erase = spi_block_erase_40, |
| 8488 | }, { */ |
| 8489 | .eraseblocks = { {64 * 1024, 64} }, |
| 8490 | .block_erase = spi_block_erase_d8, |
| 8491 | }, { |
| 8492 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8493 | .block_erase = spi_block_erase_c7, |
| 8494 | } |
| 8495 | }, |
| 8496 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 8497 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 8498 | .write = spi_chip_write_256, |
| 8499 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 8500 | .voltage = {2700, 3600}, |
| 8501 | }, |
| 8502 | |
| 8503 | { |
| 8504 | .vendor = "Intel", |
| 8505 | .name = "25F640S33B8", |
| 8506 | .bustype = BUS_SPI, |
| 8507 | .manufacture_id = INTEL_ID, |
| 8508 | .model_id = INTEL_25F640S33B8, |
| 8509 | .total_size = 8192, |
| 8510 | .page_size = 256, |
| 8511 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 8512 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Zoltan HERPAI | e0e8b2b | 2020-08-08 16:04:34 +0200 | [diff] [blame] | 8513 | .tested = TEST_OK_PREW, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8514 | .probe = probe_spi_rdid, |
| 8515 | .probe_timing = TIMING_ZERO, |
| 8516 | .block_erasers = |
| 8517 | { |
| 8518 | { |
| 8519 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 8520 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 8521 | * have no effect on the memory contents, but sets a flag in the SR. |
| 8522 | .eraseblocks = { |
| 8523 | {8 * 1024, 8}, |
| 8524 | {64 * 1024, 127} // inaccessible |
| 8525 | }, |
| 8526 | .block_erase = spi_block_erase_40, |
| 8527 | }, { */ |
| 8528 | .eraseblocks = { {64 * 1024, 128} }, |
| 8529 | .block_erase = spi_block_erase_d8, |
| 8530 | }, { |
| 8531 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8532 | .block_erase = spi_block_erase_c7, |
| 8533 | } |
| 8534 | }, |
| 8535 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 8536 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 8537 | .write = spi_chip_write_256, |
| 8538 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 8539 | .voltage = {2700, 3600}, |
| 8540 | }, |
| 8541 | |
| 8542 | { |
| 8543 | .vendor = "Intel", |
| 8544 | .name = "25F640S33T8", |
| 8545 | .bustype = BUS_SPI, |
| 8546 | .manufacture_id = INTEL_ID, |
| 8547 | .model_id = INTEL_25F640S33T8, |
| 8548 | .total_size = 8192, |
| 8549 | .page_size = 256, |
| 8550 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 8551 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8552 | .tested = TEST_UNTESTED, |
| 8553 | .probe = probe_spi_rdid, |
| 8554 | .probe_timing = TIMING_ZERO, |
| 8555 | .block_erasers = |
| 8556 | { |
| 8557 | { |
| 8558 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 8559 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 8560 | * have no effect on the memory contents, but sets a flag in the SR. |
| 8561 | .eraseblocks = { |
| 8562 | {64 * 1024, 127}, // inaccessible |
| 8563 | {8 * 1024, 8} |
| 8564 | }, |
| 8565 | .block_erase = spi_block_erase_40, |
| 8566 | }, { */ |
| 8567 | .eraseblocks = { {64 * 1024, 128} }, |
| 8568 | .block_erase = spi_block_erase_d8, |
| 8569 | }, { |
| 8570 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8571 | .block_erase = spi_block_erase_c7, |
| 8572 | } |
| 8573 | }, |
| 8574 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 8575 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
| 8576 | .write = spi_chip_write_256, |
| 8577 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 8578 | .voltage = {2700, 3600}, |
| 8579 | }, |
| 8580 | |
| 8581 | { |
| 8582 | .vendor = "Intel", |
| 8583 | .name = "28F001BN/BX-B", |
| 8584 | .bustype = BUS_PARALLEL, |
| 8585 | .manufacture_id = INTEL_ID, |
| 8586 | .model_id = INTEL_28F001B, |
| 8587 | .total_size = 128, |
| 8588 | .page_size = 128 * 1024, /* 8k + 2x4k + 112k */ |
| 8589 | .tested = TEST_UNTESTED, |
| 8590 | .probe = probe_jedec, |
| 8591 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8592 | .block_erasers = |
| 8593 | { |
| 8594 | { |
| 8595 | .eraseblocks = { |
| 8596 | {8 * 1024, 1}, |
| 8597 | {4 * 1024, 2}, |
| 8598 | {112 * 1024, 1}, |
| 8599 | }, |
| 8600 | .block_erase = erase_block_82802ab, |
| 8601 | }, |
| 8602 | }, |
| 8603 | .write = write_82802ab, |
| 8604 | .read = read_memmapped, |
| 8605 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8606 | .prepare_access = prepare_memory_access, |
| 8607 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8608 | }, |
| 8609 | |
| 8610 | { |
| 8611 | .vendor = "Intel", |
| 8612 | .name = "28F001BN/BX-T", |
| 8613 | .bustype = BUS_PARALLEL, |
| 8614 | .manufacture_id = INTEL_ID, |
| 8615 | .model_id = INTEL_28F001T, |
| 8616 | .total_size = 128, |
| 8617 | .page_size = 128 * 1024, /* 112k + 2x4k + 8k */ |
| 8618 | .tested = TEST_OK_PREW, |
| 8619 | .probe = probe_jedec, |
| 8620 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8621 | .block_erasers = |
| 8622 | { |
| 8623 | { |
| 8624 | .eraseblocks = { |
| 8625 | {112 * 1024, 1}, |
| 8626 | {4 * 1024, 2}, |
| 8627 | {8 * 1024, 1}, |
| 8628 | }, |
| 8629 | .block_erase = erase_block_82802ab, |
| 8630 | }, |
| 8631 | }, |
| 8632 | .write = write_82802ab, |
| 8633 | .read = read_memmapped, |
| 8634 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8635 | .prepare_access = prepare_memory_access, |
| 8636 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8637 | }, |
| 8638 | |
| 8639 | { |
| 8640 | .vendor = "Intel", |
| 8641 | .name = "28F002BC/BL/BV/BX-T", |
| 8642 | .bustype = BUS_PARALLEL, |
| 8643 | .manufacture_id = INTEL_ID, |
| 8644 | .model_id = INTEL_28F002T, |
| 8645 | .total_size = 256, |
| 8646 | .page_size = 256 * 1024, |
| 8647 | .tested = TEST_OK_PRE, |
| 8648 | .probe = probe_82802ab, |
| 8649 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8650 | .block_erasers = |
| 8651 | { |
| 8652 | { |
| 8653 | .eraseblocks = { |
| 8654 | {128 * 1024, 1}, |
| 8655 | {96 * 1024, 1}, |
| 8656 | {8 * 1024, 2}, |
| 8657 | {16 * 1024, 1}, |
| 8658 | }, |
| 8659 | .block_erase = erase_block_82802ab, |
| 8660 | }, |
| 8661 | }, |
| 8662 | .write = write_82802ab, |
| 8663 | .read = read_memmapped, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8664 | .prepare_access = prepare_memory_access, |
| 8665 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8666 | }, |
| 8667 | |
| 8668 | { |
| 8669 | .vendor = "Intel", |
| 8670 | .name = "28F004B5/BE/BV/BX-B", |
| 8671 | .bustype = BUS_PARALLEL, |
| 8672 | .manufacture_id = INTEL_ID, |
| 8673 | .model_id = INTEL_28F004B, |
| 8674 | .total_size = 512, |
| 8675 | .page_size = 128 * 1024, /* maximal block size */ |
| 8676 | .tested = TEST_UNTESTED, |
| 8677 | .probe = probe_82802ab, |
| 8678 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8679 | .block_erasers = |
| 8680 | { |
| 8681 | { |
| 8682 | .eraseblocks = { |
| 8683 | {16 * 1024, 1}, |
| 8684 | {8 * 1024, 2}, |
| 8685 | {96 * 1024, 1}, |
| 8686 | {128 * 1024, 3}, |
| 8687 | }, |
| 8688 | .block_erase = erase_block_82802ab, |
| 8689 | }, |
| 8690 | }, |
| 8691 | .write = write_82802ab, |
| 8692 | .read = read_memmapped, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8693 | .prepare_access = prepare_memory_access, |
| 8694 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8695 | }, |
| 8696 | |
| 8697 | { |
| 8698 | .vendor = "Intel", |
| 8699 | .name = "28F004B5/BE/BV/BX-T", |
| 8700 | .bustype = BUS_PARALLEL, |
| 8701 | .manufacture_id = INTEL_ID, |
| 8702 | .model_id = INTEL_28F004T, |
| 8703 | .total_size = 512, |
| 8704 | .page_size = 128 * 1024, /* maximal block size */ |
| 8705 | .tested = TEST_UNTESTED, |
| 8706 | .probe = probe_82802ab, |
| 8707 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8708 | .block_erasers = |
| 8709 | { |
| 8710 | { |
| 8711 | .eraseblocks = { |
| 8712 | {128 * 1024, 3}, |
| 8713 | {96 * 1024, 1}, |
| 8714 | {8 * 1024, 2}, |
| 8715 | {16 * 1024, 1}, |
| 8716 | }, |
| 8717 | .block_erase = erase_block_82802ab, |
| 8718 | }, |
| 8719 | }, |
| 8720 | .write = write_82802ab, |
| 8721 | .read = read_memmapped, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8722 | .prepare_access = prepare_memory_access, |
| 8723 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8724 | }, |
| 8725 | |
| 8726 | { |
| 8727 | .vendor = "Intel", |
| 8728 | .name = "28F008S3/S5/SC", |
| 8729 | .bustype = BUS_PARALLEL, |
| 8730 | .manufacture_id = INTEL_ID, |
| 8731 | .model_id = INTEL_28F004S3, |
| 8732 | .total_size = 512, |
| 8733 | .page_size = 256, |
| 8734 | .tested = TEST_UNTESTED, |
| 8735 | .probe = probe_82802ab, |
| 8736 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8737 | .block_erasers = |
| 8738 | { |
| 8739 | { |
| 8740 | .eraseblocks = { {64 * 1024, 8} }, |
| 8741 | .block_erase = erase_block_82802ab, |
| 8742 | }, |
| 8743 | }, |
| 8744 | .unlock = unlock_28f004s5, |
| 8745 | .write = write_82802ab, |
| 8746 | .read = read_memmapped, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8747 | .prepare_access = prepare_memory_access, |
| 8748 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8749 | }, |
| 8750 | |
| 8751 | { |
| 8752 | .vendor = "Intel", |
| 8753 | .name = "28F400BV/BX/CE/CV-B", |
| 8754 | .bustype = BUS_PARALLEL, |
| 8755 | .manufacture_id = INTEL_ID, |
| 8756 | .model_id = INTEL_28F400B, |
| 8757 | .total_size = 512, |
| 8758 | .page_size = 128 * 1024, /* maximal block size */ |
| 8759 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 8760 | .tested = TEST_UNTESTED, |
| 8761 | .probe = probe_82802ab, |
| 8762 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8763 | .block_erasers = |
| 8764 | { |
| 8765 | { |
| 8766 | .eraseblocks = { |
| 8767 | {16 * 1024, 1}, |
| 8768 | {8 * 1024, 2}, |
| 8769 | {96 * 1024, 1}, |
| 8770 | {128 * 1024, 3}, |
| 8771 | }, |
| 8772 | .block_erase = erase_block_82802ab, |
| 8773 | }, |
| 8774 | }, |
| 8775 | .write = write_82802ab, |
| 8776 | .read = read_memmapped, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8777 | .prepare_access = prepare_memory_access, |
| 8778 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8779 | }, |
| 8780 | |
| 8781 | { |
| 8782 | .vendor = "Intel", |
| 8783 | .name = "28F400BV/BX/CE/CV-T", |
| 8784 | .bustype = BUS_PARALLEL, |
| 8785 | .manufacture_id = INTEL_ID, |
| 8786 | .model_id = INTEL_28F400T, |
| 8787 | .total_size = 512, |
| 8788 | .page_size = 128 * 1024, /* maximal block size */ |
| 8789 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 8790 | .tested = TEST_UNTESTED, |
| 8791 | .probe = probe_82802ab, |
| 8792 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8793 | .block_erasers = |
| 8794 | { |
| 8795 | { |
| 8796 | .eraseblocks = { |
| 8797 | {128 * 1024, 3}, |
| 8798 | {96 * 1024, 1}, |
| 8799 | {8 * 1024, 2}, |
| 8800 | {16 * 1024, 1}, |
| 8801 | }, |
| 8802 | .block_erase = erase_block_82802ab, |
| 8803 | }, |
| 8804 | }, |
| 8805 | .write = write_82802ab, |
| 8806 | .read = read_memmapped, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8807 | .prepare_access = prepare_memory_access, |
| 8808 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8809 | }, |
| 8810 | |
| 8811 | { |
| 8812 | .vendor = "Intel", |
| 8813 | .name = "82802AB", |
| 8814 | .bustype = BUS_FWH, |
| 8815 | .manufacture_id = INTEL_ID, |
| 8816 | .model_id = INTEL_82802AB, |
| 8817 | .total_size = 512, |
| 8818 | .page_size = 64 * 1024, |
Alan Green | 8855257 | 2019-07-24 13:56:06 +1000 | [diff] [blame] | 8819 | .tested = TEST_OK_PREW, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8820 | .probe = probe_82802ab, |
| 8821 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
| 8822 | .block_erasers = |
| 8823 | { |
| 8824 | { |
| 8825 | .eraseblocks = { {64 * 1024, 8} }, |
| 8826 | .block_erase = erase_block_82802ab, |
| 8827 | }, |
| 8828 | }, |
| 8829 | .unlock = unlock_regspace2_uniform_64k, |
| 8830 | .write = write_82802ab, |
| 8831 | .read = read_memmapped, |
| 8832 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 8833 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8834 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8835 | }, |
| 8836 | |
| 8837 | { |
| 8838 | .vendor = "Intel", |
| 8839 | .name = "82802AC", |
| 8840 | .bustype = BUS_FWH, |
| 8841 | .manufacture_id = INTEL_ID, |
| 8842 | .model_id = INTEL_82802AC, |
| 8843 | .total_size = 1024, |
| 8844 | .page_size = 64 * 1024, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8845 | .tested = TEST_OK_PR, |
| 8846 | .probe = probe_82802ab, |
| 8847 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
| 8848 | .block_erasers = |
| 8849 | { |
| 8850 | { |
| 8851 | .eraseblocks = { {64 * 1024, 16} }, |
| 8852 | .block_erase = erase_block_82802ab, |
| 8853 | }, |
| 8854 | }, |
| 8855 | .unlock = unlock_regspace2_uniform_64k, |
| 8856 | .write = write_82802ab, |
| 8857 | .read = read_memmapped, |
| 8858 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 8859 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 8860 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8861 | }, |
| 8862 | |
| 8863 | { |
| 8864 | .vendor = "Macronix", |
| 8865 | .name = "MX23L12854", |
| 8866 | .bustype = BUS_SPI, |
| 8867 | .manufacture_id = MACRONIX_ID, |
| 8868 | .model_id = MACRONIX_MX23L12854, |
| 8869 | .total_size = 16384, |
| 8870 | .page_size = 256, |
| 8871 | .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA}, |
| 8872 | .probe = probe_spi_rdid, |
| 8873 | .probe_timing = TIMING_ZERO, |
| 8874 | .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */ |
| 8875 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8876 | .voltage = {3000, 3600}, |
| 8877 | }, |
| 8878 | |
| 8879 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8880 | .vendor = "Macronix", |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 8881 | .name = "MX23L1654", |
| 8882 | .bustype = BUS_SPI, |
| 8883 | .manufacture_id = MACRONIX_ID, |
| 8884 | .model_id = MACRONIX_MX23L1654, |
| 8885 | .total_size = 2048, |
| 8886 | .page_size = 256, |
| 8887 | .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA}, |
| 8888 | .probe = probe_spi_rdid, |
| 8889 | .probe_timing = TIMING_ZERO, |
| 8890 | .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */ |
| 8891 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8892 | .voltage = {3000, 3600}, |
| 8893 | }, |
| 8894 | |
| 8895 | { |
| 8896 | .vendor = "Macronix", |
Michael Coppola | 4e7f36e | 2014-05-03 23:01:18 +0000 | [diff] [blame] | 8897 | .name = "MX23L3254", |
| 8898 | .bustype = BUS_SPI, |
| 8899 | .manufacture_id = MACRONIX_ID, |
| 8900 | .model_id = MACRONIX_MX23L3254, |
| 8901 | .total_size = 4096, |
| 8902 | .page_size = 256, |
Stefan Tauner | 6455dff | 2014-05-26 00:36:24 +0000 | [diff] [blame] | 8903 | .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA}, |
Michael Coppola | 4e7f36e | 2014-05-03 23:01:18 +0000 | [diff] [blame] | 8904 | .probe = probe_spi_rdid, |
| 8905 | .probe_timing = TIMING_ZERO, |
| 8906 | .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */ |
| 8907 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8908 | .voltage = {3000, 3600}, |
| 8909 | }, |
| 8910 | |
| 8911 | { |
| 8912 | .vendor = "Macronix", |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 8913 | .name = "MX23L6454", |
| 8914 | .bustype = BUS_SPI, |
| 8915 | .manufacture_id = MACRONIX_ID, |
| 8916 | .model_id = MACRONIX_MX23L6454, |
| 8917 | .total_size = 8192, |
| 8918 | .page_size = 256, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 8919 | .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA}, |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 8920 | .probe = probe_spi_rdid, |
| 8921 | .probe_timing = TIMING_ZERO, |
| 8922 | .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */ |
| 8923 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8924 | .voltage = {3000, 3600}, |
| 8925 | }, |
| 8926 | |
| 8927 | { |
| 8928 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 8929 | .name = "MX25L1005(C)/MX25L1006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8930 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8931 | .manufacture_id = MACRONIX_ID, |
| 8932 | .model_id = MACRONIX_MX25L1005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8933 | .total_size = 128, |
| 8934 | .page_size = 256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 8935 | /* MX25L1006E supports SFDP */ |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 8936 | /* FEATURE_FAST_READ_DOUT: MX25L1006E */ |
| 8937 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 8938 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8939 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8940 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 8941 | .block_erasers = |
| 8942 | { |
| 8943 | { |
| 8944 | .eraseblocks = { {4 * 1024, 32} }, |
| 8945 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8946 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 8947 | .eraseblocks = { {64 * 1024, 2} }, |
| 8948 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8949 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 8950 | .eraseblocks = { {128 * 1024, 1} }, |
| 8951 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8952 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 8953 | .eraseblocks = { {128 * 1024, 1} }, |
| 8954 | .block_erase = spi_block_erase_c7, |
| 8955 | }, |
| 8956 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8957 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8958 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8959 | .write = spi_chip_write_256, |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 8960 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8961 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 8962 | .prepare_access = spi_prepare_io, |
| 8963 | .finish_access = spi_finish_io, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8964 | }, |
| 8965 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8966 | { |
| 8967 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8968 | .name = "MX25L12805D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8969 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8970 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8971 | .model_id = MACRONIX_MX25L12805D, |
| 8972 | .total_size = 16384, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8973 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8974 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 8975 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8976 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8977 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8978 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8979 | .block_erasers = |
| 8980 | { |
| 8981 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8982 | .eraseblocks = { {4 * 1024, 4096} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8983 | .block_erase = spi_block_erase_20, |
| 8984 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8985 | .eraseblocks = { {64 * 1024, 256} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8986 | .block_erase = spi_block_erase_d8, |
| 8987 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8988 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8989 | .block_erase = spi_block_erase_60, |
| 8990 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8991 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8992 | .block_erase = spi_block_erase_c7, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8993 | } |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 8994 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 8995 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 8996 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8997 | .write = spi_chip_write_256, |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 8998 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8999 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9000 | }, |
| 9001 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9002 | { |
| 9003 | .vendor = "Macronix", |
Tao Xia | 571f6ad | 2021-07-21 16:41:53 +0800 | [diff] [blame] | 9004 | .name = "MX25L12833F/MX25L12835F/MX25L12845E/MX25L12865E/MX25L12873F", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9005 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9006 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9007 | .model_id = MACRONIX_MX25L12805D, |
| 9008 | .total_size = 16384, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9009 | .page_size = 256, |
Tao Xia | 571f6ad | 2021-07-21 16:41:53 +0800 | [diff] [blame] | 9010 | /* OTP: MX25L12833F has 1KB total, others have 512B total; enter 0xB1, exit 0xC1 */ |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9011 | /* *F versions: FEATURE_QPI_35 + DC bits (6, 4, 8, 10) in configuration register */ |
| 9012 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 9013 | FEATURE_FAST_READ | FEATURE_FAST_READ_DIO | FEATURE_FAST_READ_QIO, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 9014 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9015 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9016 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 9017 | .block_erasers = |
| 9018 | { |
| 9019 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9020 | .eraseblocks = { {4 * 1024, 4096} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 9021 | .block_erase = spi_block_erase_20, |
| 9022 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9023 | .eraseblocks = { {32 * 1024, 512} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 9024 | .block_erase = spi_block_erase_52, |
| 9025 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9026 | .eraseblocks = { {64 * 1024, 256} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 9027 | .block_erase = spi_block_erase_d8, |
| 9028 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9029 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 9030 | .block_erase = spi_block_erase_60, |
| 9031 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9032 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 9033 | .block_erase = spi_block_erase_c7, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9034 | } |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 9035 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9036 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9037 | .reg_bits = |
| 9038 | { |
| 9039 | .qe = {STATUS1, 6, RW}, |
| 9040 | }, |
| 9041 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9042 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9043 | .write = spi_chip_write_256, |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9044 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9045 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 9046 | .prepare_access = spi_prepare_io, |
| 9047 | .finish_access = spi_finish_io, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9048 | }, |
| 9049 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9050 | { |
| 9051 | .vendor = "Macronix", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9052 | .name = "MX25L1605", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9053 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9054 | .manufacture_id = MACRONIX_ID, |
| 9055 | .model_id = MACRONIX_MX25L1605, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9056 | .total_size = 2048, |
| 9057 | .page_size = 256, |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9058 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ, |
Sven Schnelle | 4bd8a40 | 2011-03-07 10:59:06 +0000 | [diff] [blame] | 9059 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9060 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9061 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 9062 | .block_erasers = |
| 9063 | { |
| 9064 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9065 | .eraseblocks = { {64 * 1024, 32} }, |
| 9066 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 9067 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9068 | .eraseblocks = { {64 * 1024, 32} }, |
| 9069 | .block_erase = spi_block_erase_d8, |
| 9070 | }, { |
| 9071 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9072 | .block_erase = spi_block_erase_60, |
| 9073 | }, { |
| 9074 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9075 | .block_erase = spi_block_erase_c7, |
| 9076 | }, |
| 9077 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9078 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9079 | .unlock = spi_disable_blockprotect, |
| 9080 | .write = spi_chip_write_256, |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9081 | .read = spi_chip_read, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9082 | .voltage = {2700, 3600}, |
| 9083 | }, |
| 9084 | |
| 9085 | { |
| 9086 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9087 | .name = "MX25L1605A/MX25L1606E/MX25L1608E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9088 | .bustype = BUS_SPI, |
| 9089 | .manufacture_id = MACRONIX_ID, |
| 9090 | .model_id = MACRONIX_MX25L1605, |
| 9091 | .total_size = 2048, |
| 9092 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9093 | /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E and MX25L1608E only) */ |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9094 | /* FEATURE_FAST_READ_DOUT: MX25L1606E & MX25L1608E */ |
| 9095 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9096 | .tested = TEST_OK_PREW, |
| 9097 | .probe = probe_spi_rdid, |
| 9098 | .probe_timing = TIMING_ZERO, |
| 9099 | .block_erasers = |
| 9100 | { |
| 9101 | { |
| 9102 | .eraseblocks = { {4 * 1024, 512} }, |
| 9103 | .block_erase = spi_block_erase_20, |
| 9104 | }, { |
| 9105 | .eraseblocks = { {64 * 1024, 32} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 9106 | .block_erase = spi_block_erase_52, |
| 9107 | }, { |
| 9108 | .eraseblocks = { {64 * 1024, 32} }, |
| 9109 | .block_erase = spi_block_erase_d8, |
| 9110 | }, { |
| 9111 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9112 | .block_erase = spi_block_erase_60, |
| 9113 | }, { |
| 9114 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9115 | .block_erase = spi_block_erase_c7, |
| 9116 | }, |
| 9117 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9118 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9119 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9120 | .write = spi_chip_write_256, |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9121 | .read = spi_chip_read, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9122 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 9123 | .prepare_access = spi_prepare_io, |
| 9124 | .finish_access = spi_finish_io, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9125 | }, |
| 9126 | |
| 9127 | { |
| 9128 | .vendor = "Macronix", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 9129 | .name = "MX25L1605D/MX25L1608D/MX25L1673E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9130 | .bustype = BUS_SPI, |
| 9131 | .manufacture_id = MACRONIX_ID, |
| 9132 | .model_id = MACRONIX_MX25L1605, |
| 9133 | .total_size = 2048, |
| 9134 | .page_size = 256, |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9135 | /* FEATURE_QIO: MX25L1673E */ |
| 9136 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ | FEATURE_FAST_READ_DIO, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9137 | .tested = TEST_OK_PREW, |
| 9138 | .probe = probe_spi_rdid, |
| 9139 | .probe_timing = TIMING_ZERO, |
| 9140 | .block_erasers = |
| 9141 | { |
| 9142 | { |
| 9143 | .eraseblocks = { {4 * 1024, 512} }, |
| 9144 | .block_erase = spi_block_erase_20, |
| 9145 | }, { |
| 9146 | .eraseblocks = { {64 * 1024, 32} }, |
| 9147 | .block_erase = spi_block_erase_d8, |
| 9148 | }, { |
| 9149 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9150 | .block_erase = spi_block_erase_60, |
| 9151 | }, { |
| 9152 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9153 | .block_erase = spi_block_erase_c7, |
| 9154 | }, |
| 9155 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9156 | .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] | 9157 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9158 | .write = spi_chip_write_256, |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9159 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9160 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 9161 | .prepare_access = spi_prepare_io, |
| 9162 | .finish_access = spi_finish_io, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9163 | }, |
| 9164 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9165 | { |
| 9166 | .vendor = "Macronix", |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 9167 | .name = "MX25L1635D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9168 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9169 | .manufacture_id = MACRONIX_ID, |
| 9170 | .model_id = MACRONIX_MX25L1635D, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 9171 | .total_size = 2048, |
| 9172 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9173 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9174 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 9175 | FEATURE_FAST_READ | FEATURE_FAST_READ_DIO | FEATURE_FAST_READ_QIO, |
Angel Pons | c205487 | 2021-01-15 18:57:32 +0100 | [diff] [blame] | 9176 | .tested = TEST_OK_PREW, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 9177 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9178 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9179 | .block_erasers = |
| 9180 | { |
| 9181 | { |
| 9182 | .eraseblocks = { {4 * 1024, 512} }, |
| 9183 | .block_erase = spi_block_erase_20, |
| 9184 | }, { |
| 9185 | .eraseblocks = { {64 * 1024, 32} }, |
| 9186 | .block_erase = spi_block_erase_d8, |
| 9187 | }, { |
| 9188 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9189 | .block_erase = spi_block_erase_60, |
| 9190 | }, { |
| 9191 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9192 | .block_erase = spi_block_erase_c7, |
| 9193 | } |
| 9194 | }, |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9195 | .reg_bits = |
| 9196 | { |
| 9197 | .qe = {STATUS1, 6, RW}, |
| 9198 | }, |
| 9199 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9200 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9201 | .write = spi_chip_write_256, |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9202 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9203 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 9204 | .prepare_access = spi_prepare_io, |
| 9205 | .finish_access = spi_finish_io, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 9206 | }, |
Stephan Guilloux | fd31550 | 2009-04-20 22:54:13 +0000 | [diff] [blame] | 9207 | |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 9208 | { |
| 9209 | .vendor = "Macronix", |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 9210 | .name = "MX25L1635E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9211 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9212 | .manufacture_id = MACRONIX_ID, |
| 9213 | .model_id = MACRONIX_MX25L1635E, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 9214 | .total_size = 2048, |
| 9215 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9216 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9217 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 9218 | FEATURE_FAST_READ | FEATURE_FAST_READ_DIO | FEATURE_FAST_READ_QIO, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 9219 | .tested = TEST_UNTESTED, |
| 9220 | .probe = probe_spi_rdid, |
| 9221 | .probe_timing = TIMING_ZERO, |
| 9222 | .block_erasers = |
| 9223 | { |
| 9224 | { |
| 9225 | .eraseblocks = { {4 * 1024, 512} }, |
| 9226 | .block_erase = spi_block_erase_20, |
| 9227 | }, { |
| 9228 | .eraseblocks = { {64 * 1024, 32} }, |
| 9229 | .block_erase = spi_block_erase_d8, |
| 9230 | }, { |
| 9231 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9232 | .block_erase = spi_block_erase_60, |
| 9233 | }, { |
| 9234 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9235 | .block_erase = spi_block_erase_c7, |
| 9236 | } |
| 9237 | }, |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9238 | .reg_bits = |
| 9239 | { |
| 9240 | .qe = {STATUS1, 6, RW}, |
| 9241 | }, |
| 9242 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9243 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 9244 | .write = spi_chip_write_256, |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9245 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 9246 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 9247 | .prepare_access = spi_prepare_io, |
| 9248 | .finish_access = spi_finish_io, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 9249 | }, |
| 9250 | |
| 9251 | { |
| 9252 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9253 | .name = "MX25L2005(C)/MX25L2006E", |
| 9254 | .bustype = BUS_SPI, |
| 9255 | .manufacture_id = MACRONIX_ID, |
| 9256 | .model_id = MACRONIX_MX25L2005, |
| 9257 | .total_size = 256, |
| 9258 | .page_size = 256, |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9259 | /* FEATURE_FAST_READ_DOUT: MX25L2006E */ |
| 9260 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9261 | .tested = TEST_OK_PREW, |
| 9262 | .probe = probe_spi_rdid, |
| 9263 | .probe_timing = TIMING_ZERO, |
| 9264 | .block_erasers = |
| 9265 | { |
| 9266 | { |
| 9267 | .eraseblocks = { {4 * 1024, 64} }, |
| 9268 | .block_erase = spi_block_erase_20, |
| 9269 | }, { |
| 9270 | .eraseblocks = { {64 * 1024, 4} }, |
| 9271 | .block_erase = spi_block_erase_52, |
| 9272 | }, { |
| 9273 | .eraseblocks = { {64 * 1024, 4} }, |
| 9274 | .block_erase = spi_block_erase_d8, |
| 9275 | }, { |
| 9276 | .eraseblocks = { {256 * 1024, 1} }, |
| 9277 | .block_erase = spi_block_erase_60, |
| 9278 | }, { |
| 9279 | .eraseblocks = { {256 * 1024, 1} }, |
| 9280 | .block_erase = spi_block_erase_c7, |
| 9281 | }, |
| 9282 | }, |
| 9283 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 9284 | .unlock = spi_disable_blockprotect, |
| 9285 | .write = spi_chip_write_256, |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9286 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9287 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 9288 | .prepare_access = spi_prepare_io, |
| 9289 | .finish_access = spi_finish_io, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9290 | }, |
| 9291 | |
| 9292 | { |
| 9293 | .vendor = "Macronix", |
Alan Green | 0370730 | 2019-08-26 12:50:43 +1000 | [diff] [blame] | 9294 | .name = "MX25L25635F/MX25L25645G", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9295 | .bustype = BUS_SPI, |
| 9296 | .manufacture_id = MACRONIX_ID, |
| 9297 | .model_id = MACRONIX_MX25L25635F, |
| 9298 | .total_size = 32768, |
| 9299 | .page_size = 256, |
| 9300 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9301 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | |
| 9302 | FEATURE_4BA | FEATURE_QPI_35 | FEATURE_FAST_READ_QPI4B, |
| 9303 | .dummy_cycles = { .qpi_read_params = { 6, 4, 8, 10 } }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9304 | .tested = TEST_OK_PREW, |
| 9305 | .probe = probe_spi_rdid, |
| 9306 | .probe_timing = TIMING_ZERO, |
| 9307 | .block_erasers = |
| 9308 | { |
| 9309 | { |
| 9310 | .eraseblocks = { {4 * 1024, 8192} }, |
| 9311 | .block_erase = spi_block_erase_21, |
| 9312 | }, { |
| 9313 | .eraseblocks = { {4 * 1024, 8192} }, |
| 9314 | .block_erase = spi_block_erase_20, |
| 9315 | }, { |
| 9316 | .eraseblocks = { {32 * 1024, 1024} }, |
| 9317 | .block_erase = spi_block_erase_5c, |
| 9318 | }, { |
| 9319 | .eraseblocks = { {32 * 1024, 1024} }, |
| 9320 | .block_erase = spi_block_erase_52, |
| 9321 | }, { |
| 9322 | .eraseblocks = { {64 * 1024, 512} }, |
| 9323 | .block_erase = spi_block_erase_dc, |
| 9324 | }, { |
| 9325 | .eraseblocks = { {64 * 1024, 512} }, |
| 9326 | .block_erase = spi_block_erase_d8, |
| 9327 | }, { |
| 9328 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 9329 | .block_erase = spi_block_erase_60, |
| 9330 | }, { |
| 9331 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 9332 | .block_erase = spi_block_erase_c7, |
| 9333 | } |
| 9334 | }, |
| 9335 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9336 | .reg_bits = { |
| 9337 | .qe = {STATUS1, 6, RW}, |
| 9338 | .dc = {{CONFIG, 6, RW}, {CONFIG, 7, RW}}, |
| 9339 | }, |
| 9340 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9341 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9342 | .write = spi_chip_write_256, |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9343 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9344 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 9345 | .prepare_access = spi_prepare_io, |
| 9346 | .finish_access = spi_finish_io, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9347 | }, |
| 9348 | |
| 9349 | { |
| 9350 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9351 | .name = "MX25L3205(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9352 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9353 | .manufacture_id = MACRONIX_ID, |
| 9354 | .model_id = MACRONIX_MX25L3205, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9355 | .total_size = 4096, |
| 9356 | .page_size = 256, |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9357 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 9358 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9359 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9360 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9361 | .block_erasers = |
| 9362 | { |
| 9363 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9364 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9365 | .block_erase = spi_block_erase_20, |
| 9366 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9367 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 9368 | .block_erase = spi_block_erase_d8, |
| 9369 | }, { |
| 9370 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9371 | .block_erase = spi_block_erase_60, |
| 9372 | }, { |
| 9373 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9374 | .block_erase = spi_block_erase_c7, |
| 9375 | }, |
| 9376 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9377 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9378 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9379 | .write = spi_chip_write_256, |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9380 | .read = spi_chip_read, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9381 | .voltage = {2700, 3600}, |
| 9382 | }, |
| 9383 | |
| 9384 | { |
| 9385 | .vendor = "Macronix", |
| 9386 | .name = "MX25L3205D/MX25L3208D", |
| 9387 | .bustype = BUS_SPI, |
| 9388 | .manufacture_id = MACRONIX_ID, |
| 9389 | .model_id = MACRONIX_MX25L3205, |
| 9390 | .total_size = 4096, |
| 9391 | .page_size = 256, |
| 9392 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9393 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ | FEATURE_FAST_READ_DIO, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9394 | .tested = TEST_OK_PREW, |
| 9395 | .probe = probe_spi_rdid, |
| 9396 | .probe_timing = TIMING_ZERO, |
| 9397 | .block_erasers = |
| 9398 | { |
| 9399 | { |
| 9400 | .eraseblocks = { {4 * 1024, 1024} }, |
| 9401 | .block_erase = spi_block_erase_20, |
| 9402 | }, { |
| 9403 | .eraseblocks = { {64 * 1024, 64} }, |
| 9404 | .block_erase = spi_block_erase_d8, |
| 9405 | }, { |
| 9406 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9407 | .block_erase = spi_block_erase_60, |
| 9408 | }, { |
| 9409 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9410 | .block_erase = spi_block_erase_c7, |
| 9411 | }, |
| 9412 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9413 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9414 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9415 | .write = spi_chip_write_256, |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9416 | .read = spi_chip_read, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9417 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 9418 | .prepare_access = spi_prepare_io, |
| 9419 | .finish_access = spi_finish_io, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9420 | }, |
| 9421 | |
| 9422 | { |
| 9423 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9424 | .name = "MX25L3206E/MX25L3208E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9425 | .bustype = BUS_SPI, |
| 9426 | .manufacture_id = MACRONIX_ID, |
| 9427 | .model_id = MACRONIX_MX25L3205, |
| 9428 | .total_size = 4096, |
| 9429 | .page_size = 256, |
| 9430 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9431 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ | FEATURE_FAST_READ_DOUT, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9432 | .tested = TEST_OK_PREW, |
| 9433 | .probe = probe_spi_rdid, |
| 9434 | .probe_timing = TIMING_ZERO, |
| 9435 | .block_erasers = |
| 9436 | { |
| 9437 | { |
| 9438 | .eraseblocks = { {4 * 1024, 1024} }, |
| 9439 | .block_erase = spi_block_erase_20, |
| 9440 | }, { |
| 9441 | .eraseblocks = { {64 * 1024, 64} }, |
| 9442 | .block_erase = spi_block_erase_d8, |
| 9443 | }, { |
| 9444 | .eraseblocks = { {64 * 1024, 64} }, |
| 9445 | .block_erase = spi_block_erase_52, |
| 9446 | }, { |
| 9447 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9448 | .block_erase = spi_block_erase_60, |
| 9449 | }, { |
| 9450 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9451 | .block_erase = spi_block_erase_c7, |
| 9452 | }, |
| 9453 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9454 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9455 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9456 | .write = spi_chip_write_256, |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9457 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9458 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 9459 | .prepare_access = spi_prepare_io, |
| 9460 | .finish_access = spi_finish_io, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9461 | }, |
| 9462 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9463 | { |
| 9464 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9465 | .name = "MX25L3235D", |
| 9466 | .bustype = BUS_SPI, |
| 9467 | .manufacture_id = MACRONIX_ID, |
| 9468 | .model_id = MACRONIX_MX25L3235D, |
| 9469 | .total_size = 4096, |
| 9470 | .page_size = 256, |
| 9471 | /* OTP: 256B total; enter 0xB1, exit 0xC1 */ |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9472 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 9473 | FEATURE_FAST_READ | FEATURE_FAST_READ_DIO | FEATURE_FAST_READ_QIO, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9474 | .tested = TEST_UNTESTED, |
| 9475 | .probe = probe_spi_rdid, |
| 9476 | .probe_timing = TIMING_ZERO, |
| 9477 | .block_erasers = |
| 9478 | { |
| 9479 | { |
| 9480 | .eraseblocks = { {4 * 1024, 1024} }, |
| 9481 | .block_erase = spi_block_erase_20, |
| 9482 | }, { |
| 9483 | .eraseblocks = { {64 * 1024, 64} }, |
| 9484 | .block_erase = spi_block_erase_d8, |
| 9485 | }, { |
| 9486 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9487 | .block_erase = spi_block_erase_60, |
| 9488 | }, { |
| 9489 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9490 | .block_erase = spi_block_erase_c7, |
| 9491 | } |
| 9492 | }, |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9493 | .reg_bits = |
| 9494 | { |
| 9495 | .qe = {STATUS1, 6, RW}, |
| 9496 | }, |
| 9497 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9498 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9499 | .write = spi_chip_write_256, |
| 9500 | .read = spi_chip_read, |
| 9501 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 9502 | .prepare_access = spi_prepare_io, |
| 9503 | .finish_access = spi_finish_io, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9504 | }, |
| 9505 | |
| 9506 | { |
| 9507 | .vendor = "Macronix", |
Nico Huber | b6683e0 | 2021-04-21 13:04:29 +0200 | [diff] [blame] | 9508 | .name = "MX25L3233F/MX25L3273E", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 9509 | .bustype = BUS_SPI, |
| 9510 | .manufacture_id = MACRONIX_ID, |
| 9511 | .model_id = MACRONIX_MX25L3205, |
| 9512 | .total_size = 4096, |
| 9513 | .page_size = 256, |
Nico Huber | 6e69e2b | 2021-04-21 13:03:13 +0200 | [diff] [blame] | 9514 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9515 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QIO, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 9516 | .tested = TEST_OK_PREW, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 9517 | .probe = probe_spi_rdid, |
| 9518 | .probe_timing = TIMING_ZERO, |
| 9519 | .block_erasers = |
| 9520 | { |
| 9521 | { |
| 9522 | .eraseblocks = { {4 * 1024, 1024} }, |
| 9523 | .block_erase = spi_block_erase_20, |
| 9524 | }, { |
| 9525 | .eraseblocks = { {32 * 1024, 128} }, |
| 9526 | .block_erase = spi_block_erase_52, |
| 9527 | }, { |
| 9528 | .eraseblocks = { {64 * 1024, 64} }, |
| 9529 | .block_erase = spi_block_erase_d8, |
| 9530 | }, { |
| 9531 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9532 | .block_erase = spi_block_erase_60, |
| 9533 | }, { |
| 9534 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9535 | .block_erase = spi_block_erase_c7, |
| 9536 | }, |
| 9537 | }, |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9538 | .reg_bits = |
| 9539 | { |
| 9540 | .qe = {STATUS1, 6, RW}, |
| 9541 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9542 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9543 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 9544 | .write = spi_chip_write_256, |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9545 | .read = spi_chip_read, |
Nico Huber | b6683e0 | 2021-04-21 13:04:29 +0200 | [diff] [blame] | 9546 | .voltage = {2700, 3600}, /* 33F 2.65V..3.6V */ |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 9547 | .prepare_access = spi_prepare_io, |
| 9548 | .finish_access = spi_finish_io, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 9549 | }, |
| 9550 | |
| 9551 | { |
| 9552 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9553 | .name = "MX25L4005(A/C)/MX25L4006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9554 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9555 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9556 | .model_id = MACRONIX_MX25L4005, |
| 9557 | .total_size = 512, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 9558 | .page_size = 256, |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9559 | /* FEATURE_FAST_READ_DOUT: MX25L4006E */ |
| 9560 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9561 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 9562 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9563 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9564 | .block_erasers = |
| 9565 | { |
| 9566 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9567 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9568 | .block_erase = spi_block_erase_20, |
| 9569 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9570 | .eraseblocks = { {64 * 1024, 8} }, |
| 9571 | .block_erase = spi_block_erase_52, |
| 9572 | }, { |
| 9573 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9574 | .block_erase = spi_block_erase_d8, |
| 9575 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9576 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9577 | .block_erase = spi_block_erase_60, |
| 9578 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9579 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9580 | .block_erase = spi_block_erase_c7, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9581 | }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9582 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9583 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 9584 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9585 | .write = spi_chip_write_256, |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9586 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9587 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 9588 | .prepare_access = spi_prepare_io, |
| 9589 | .finish_access = spi_finish_io, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 9590 | }, |
| 9591 | |
| 9592 | { |
| 9593 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9594 | .name = "MX25L512(E)/MX25V512(C)", |
| 9595 | .bustype = BUS_SPI, |
| 9596 | .manufacture_id = MACRONIX_ID, |
| 9597 | .model_id = MACRONIX_MX25L512, |
| 9598 | .total_size = 64, |
| 9599 | .page_size = 256, |
| 9600 | /* MX25L512E supports SFDP */ |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9601 | /* FEATURE_FAST_READ_DOUT: MX25L512E */ |
| 9602 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9603 | .tested = TEST_OK_PREW, |
| 9604 | .probe = probe_spi_rdid, |
| 9605 | .probe_timing = TIMING_ZERO, |
| 9606 | .block_erasers = |
| 9607 | { |
| 9608 | { |
| 9609 | .eraseblocks = { {4 * 1024, 16} }, |
| 9610 | .block_erase = spi_block_erase_20, |
| 9611 | }, { |
| 9612 | .eraseblocks = { {64 * 1024, 1} }, |
| 9613 | .block_erase = spi_block_erase_52, |
| 9614 | }, { |
| 9615 | .eraseblocks = { {64 * 1024, 1} }, |
| 9616 | .block_erase = spi_block_erase_d8, |
| 9617 | }, { |
| 9618 | .eraseblocks = { {64 * 1024, 1} }, |
| 9619 | .block_erase = spi_block_erase_60, |
| 9620 | }, { |
| 9621 | .eraseblocks = { {64 * 1024, 1} }, |
| 9622 | .block_erase = spi_block_erase_c7, |
| 9623 | }, |
| 9624 | }, |
| 9625 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 9626 | .unlock = spi_disable_blockprotect, |
| 9627 | .write = spi_chip_write_256, |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9628 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9629 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */ |
| 9630 | }, |
| 9631 | |
| 9632 | { |
| 9633 | .vendor = "Macronix", |
Steve Markgraf | 7e6f3a7 | 2020-07-13 18:22:56 +0200 | [diff] [blame] | 9634 | .name = "MX25L5121E", |
| 9635 | .bustype = BUS_SPI, |
| 9636 | .manufacture_id = MACRONIX_ID, |
| 9637 | .model_id = MACRONIX_MX25L5121E, |
| 9638 | .total_size = 64, |
| 9639 | .page_size = 32, |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9640 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ, |
Steve Markgraf | 7e6f3a7 | 2020-07-13 18:22:56 +0200 | [diff] [blame] | 9641 | .tested = TEST_OK_PREW, |
| 9642 | .probe = probe_spi_rdid, |
| 9643 | .probe_timing = TIMING_ZERO, |
| 9644 | .block_erasers = |
| 9645 | { |
| 9646 | { |
| 9647 | .eraseblocks = { {4 * 1024, 16} }, |
| 9648 | .block_erase = spi_block_erase_20, |
| 9649 | }, { |
| 9650 | .eraseblocks = { {64 * 1024, 1} }, |
| 9651 | .block_erase = spi_block_erase_52, |
| 9652 | }, { |
| 9653 | .eraseblocks = { {64 * 1024, 1} }, |
| 9654 | .block_erase = spi_block_erase_d8, |
| 9655 | }, { |
| 9656 | .eraseblocks = { {64 * 1024, 1} }, |
| 9657 | .block_erase = spi_block_erase_60, |
| 9658 | }, { |
| 9659 | .eraseblocks = { {64 * 1024, 1} }, |
| 9660 | .block_erase = spi_block_erase_c7, |
| 9661 | }, |
| 9662 | }, |
| 9663 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 9664 | .unlock = spi_disable_blockprotect, |
| 9665 | .write = spi_chip_write_256, |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9666 | .read = spi_chip_read, |
Steve Markgraf | 7e6f3a7 | 2020-07-13 18:22:56 +0200 | [diff] [blame] | 9667 | .voltage = {2700, 3600}, |
| 9668 | }, |
| 9669 | |
| 9670 | { |
| 9671 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9672 | .name = "MX25L6405", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9673 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9674 | .manufacture_id = MACRONIX_ID, |
| 9675 | .model_id = MACRONIX_MX25L6405, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9676 | .total_size = 8192, |
| 9677 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9678 | /* Has an additional 512B EEPROM sector */ |
| 9679 | .feature_bits = FEATURE_WRSR_WREN, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 9680 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9681 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9682 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9683 | .block_erasers = |
| 9684 | { |
| 9685 | { |
| 9686 | .eraseblocks = { {64 * 1024, 128} }, |
| 9687 | .block_erase = spi_block_erase_20, |
| 9688 | }, { |
| 9689 | .eraseblocks = { {64 * 1024, 128} }, |
| 9690 | .block_erase = spi_block_erase_d8, |
| 9691 | }, { |
| 9692 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9693 | .block_erase = spi_block_erase_60, |
| 9694 | }, { |
| 9695 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9696 | .block_erase = spi_block_erase_c7, |
| 9697 | } |
| 9698 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9699 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: error flag */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9700 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9701 | .write = spi_chip_write_256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9702 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9703 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9704 | }, |
| 9705 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9706 | { |
| 9707 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9708 | .name = "MX25L6405D", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9709 | .bustype = BUS_SPI, |
| 9710 | .manufacture_id = MACRONIX_ID, |
| 9711 | .model_id = MACRONIX_MX25L6405, |
| 9712 | .total_size = 8192, |
| 9713 | .page_size = 256, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9714 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9715 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ | FEATURE_FAST_READ_DIO, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9716 | .tested = TEST_OK_PREW, |
| 9717 | .probe = probe_spi_rdid, |
| 9718 | .probe_timing = TIMING_ZERO, |
| 9719 | .block_erasers = |
| 9720 | { |
| 9721 | { |
| 9722 | .eraseblocks = { {4 * 1024, 2048} }, |
| 9723 | .block_erase = spi_block_erase_20, |
| 9724 | }, { |
| 9725 | .eraseblocks = { {64 * 1024, 128} }, |
| 9726 | .block_erase = spi_block_erase_d8, |
| 9727 | }, { |
| 9728 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9729 | .block_erase = spi_block_erase_60, |
| 9730 | }, { |
| 9731 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9732 | .block_erase = spi_block_erase_c7, |
| 9733 | } |
| 9734 | }, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9735 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: continuously program mode */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9736 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9737 | .write = spi_chip_write_256, |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9738 | .read = spi_chip_read, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9739 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 9740 | .prepare_access = spi_prepare_io, |
| 9741 | .finish_access = spi_finish_io, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9742 | }, |
| 9743 | |
| 9744 | { |
| 9745 | .vendor = "Macronix", |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9746 | .name = "MX25L6406E/MX25L6408E", |
| 9747 | .bustype = BUS_SPI, |
| 9748 | .manufacture_id = MACRONIX_ID, |
| 9749 | .model_id = MACRONIX_MX25L6405, |
| 9750 | .total_size = 8192, |
| 9751 | .page_size = 256, |
| 9752 | /* MX25L6406E supports SFDP */ |
| 9753 | /* OTP: 06E 64B total; enter 0xB1, exit 0xC1 */ |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9754 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ | FEATURE_FAST_READ_DOUT, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9755 | .tested = TEST_OK_PREW, |
| 9756 | .probe = probe_spi_rdid, |
| 9757 | .probe_timing = TIMING_ZERO, |
| 9758 | .block_erasers = |
| 9759 | { |
| 9760 | { |
| 9761 | .eraseblocks = { {4 * 1024, 2048} }, |
| 9762 | .block_erase = spi_block_erase_20, |
| 9763 | }, { |
| 9764 | .eraseblocks = { {64 * 1024, 128} }, |
| 9765 | .block_erase = spi_block_erase_52, |
| 9766 | }, { |
| 9767 | .eraseblocks = { {64 * 1024, 128} }, |
| 9768 | .block_erase = spi_block_erase_d8, |
| 9769 | }, { |
| 9770 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9771 | .block_erase = spi_block_erase_60, |
| 9772 | }, { |
| 9773 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9774 | .block_erase = spi_block_erase_c7, |
| 9775 | } |
| 9776 | }, |
| 9777 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 9778 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9779 | .write = spi_chip_write_256, |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9780 | .read = spi_chip_read, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9781 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 9782 | .prepare_access = spi_prepare_io, |
| 9783 | .finish_access = spi_finish_io, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 9784 | }, |
| 9785 | |
| 9786 | { |
| 9787 | .vendor = "Macronix", |
Nico Huber | b007278 | 2017-12-06 21:02:57 +0100 | [diff] [blame] | 9788 | .name = "MX25L6436E/MX25L6445E/MX25L6465E/MX25L6473E/MX25L6473F", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9789 | .bustype = BUS_SPI, |
| 9790 | .manufacture_id = MACRONIX_ID, |
| 9791 | .model_id = MACRONIX_MX25L6405, |
| 9792 | .total_size = 8192, |
| 9793 | .page_size = 256, |
| 9794 | /* supports SFDP */ |
| 9795 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9796 | /* FEATURE_QIO: MX25L6473E, MX25L6473F */ |
| 9797 | /* FEATURE_FAST_READ_DOUT, _QOUT: MX25L6436E */ |
| 9798 | /* FEATURE_FAST_READ_DIO, _QIO: MX25L6445E, MX25L6465E */ |
| 9799 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9800 | .tested = TEST_OK_PREW, |
| 9801 | .probe = probe_spi_rdid, |
| 9802 | .probe_timing = TIMING_ZERO, |
| 9803 | .block_erasers = |
| 9804 | { |
| 9805 | { |
| 9806 | .eraseblocks = { {4 * 1024, 2048} }, |
| 9807 | .block_erase = spi_block_erase_20, |
| 9808 | }, { |
| 9809 | .eraseblocks = { {32 * 1024, 256} }, |
| 9810 | .block_erase = spi_block_erase_52, |
| 9811 | }, { |
| 9812 | .eraseblocks = { {64 * 1024, 128} }, |
| 9813 | .block_erase = spi_block_erase_d8, |
| 9814 | }, { |
| 9815 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9816 | .block_erase = spi_block_erase_60, |
| 9817 | }, { |
| 9818 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9819 | .block_erase = spi_block_erase_c7, |
| 9820 | } |
| 9821 | }, |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9822 | .reg_bits = |
| 9823 | { |
| 9824 | .qe = {STATUS1, 6, RW}, |
| 9825 | }, |
| 9826 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9827 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9828 | .write = spi_chip_write_256, |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9829 | .read = spi_chip_read, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9830 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 9831 | .prepare_access = spi_prepare_io, |
| 9832 | .finish_access = spi_finish_io, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9833 | }, |
| 9834 | |
| 9835 | { |
| 9836 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9837 | .name = "MX25L6495F", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9838 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9839 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9840 | .model_id = MACRONIX_MX25L6495F, |
| 9841 | .total_size = 8192, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 9842 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9843 | /* OTP: 1024B total; enter 0xB1, exit 0xC1 */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 9844 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 9845 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 9846 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9847 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9848 | .block_erasers = |
| 9849 | { |
| 9850 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9851 | .eraseblocks = { {4 * 1024, 2048} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9852 | .block_erase = spi_block_erase_20, |
| 9853 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9854 | .eraseblocks = { {32 * 1024, 256} }, |
| 9855 | .block_erase = spi_block_erase_52, |
| 9856 | }, { |
Aarya Chaumal | 478e179 | 2022-06-04 01:34:44 +0530 | [diff] [blame] | 9857 | .eraseblocks = { {64 * 1024, 128} }, |
| 9858 | .block_erase = spi_block_erase_d8, |
| 9859 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9860 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9861 | .block_erase = spi_block_erase_60, |
| 9862 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9863 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 9864 | .block_erase = spi_block_erase_c7, |
| 9865 | } |
| 9866 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9867 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9868 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9869 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9870 | .voltage = {2700, 3600}, |
| 9871 | }, |
| 9872 | |
| 9873 | { |
| 9874 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9875 | .name = "MX25L8005/MX25L8006E/MX25L8008E/MX25V8005", |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 9876 | .bustype = BUS_SPI, |
| 9877 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9878 | .model_id = MACRONIX_MX25L8005, |
| 9879 | .total_size = 1024, |
| 9880 | .page_size = 256, |
| 9881 | /* MX25L8006E, MX25L8008E support SFDP */ |
| 9882 | /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L8006E, MX25L8008E only) */ |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9883 | /* FEATURE_FAST_READ_DOUT: MX25L8006E, MX25L8008E */ |
| 9884 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9885 | .tested = TEST_OK_PREW, |
| 9886 | .probe = probe_spi_rdid, |
| 9887 | .probe_timing = TIMING_ZERO, |
| 9888 | .block_erasers = |
| 9889 | { |
| 9890 | { |
| 9891 | .eraseblocks = { {4 * 1024, 256} }, |
| 9892 | .block_erase = spi_block_erase_20, |
| 9893 | }, { |
| 9894 | .eraseblocks = { {64 * 1024, 16} }, |
| 9895 | .block_erase = spi_block_erase_52, |
| 9896 | }, { |
| 9897 | .eraseblocks = { {64 * 1024, 16} }, |
| 9898 | .block_erase = spi_block_erase_d8, |
| 9899 | }, { |
| 9900 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9901 | .block_erase = spi_block_erase_60, |
| 9902 | }, { |
| 9903 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9904 | .block_erase = spi_block_erase_c7, |
| 9905 | }, |
| 9906 | }, |
| 9907 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 9908 | .unlock = spi_disable_blockprotect, |
| 9909 | .write = spi_chip_write_256, |
Nico Huber | 46552c8 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9910 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9911 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */ |
| 9912 | }, |
| 9913 | |
| 9914 | { |
| 9915 | .vendor = "Macronix", |
sibradzic | f62623c | 2020-03-14 17:21:34 +0900 | [diff] [blame] | 9916 | .name = "MX25R3235F", |
| 9917 | .bustype = BUS_SPI, |
| 9918 | .manufacture_id = MACRONIX_ID, |
| 9919 | .model_id = MACRONIX_MX25R3235F, |
| 9920 | .total_size = 4096, |
| 9921 | .page_size = 256, |
| 9922 | /* OTP: 1024B total; enter 0xB1, exit 0xC1 */ |
Nico Huber | 5f50999 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9923 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QIO, |
sibradzic | f62623c | 2020-03-14 17:21:34 +0900 | [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, 1024} }, |
| 9931 | .block_erase = spi_block_erase_20, |
| 9932 | }, { |
sibradzic | f62623c | 2020-03-14 17:21:34 +0900 | [diff] [blame] | 9933 | .eraseblocks = { {32 * 1024, 128} }, |
| 9934 | .block_erase = spi_block_erase_52, |
| 9935 | }, { |
Aarya Chaumal | 478e179 | 2022-06-04 01:34:44 +0530 | [diff] [blame] | 9936 | .eraseblocks = { {64 * 1024, 64} }, |
| 9937 | .block_erase = spi_block_erase_d8, |
| 9938 | }, { |
sibradzic | f62623c | 2020-03-14 17:21:34 +0900 | [diff] [blame] | 9939 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9940 | .block_erase = spi_block_erase_60, |
| 9941 | }, { |
| 9942 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9943 | .block_erase = spi_block_erase_c7, |
| 9944 | } |
| 9945 | }, |
Nico Huber | 5f50999 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9946 | .reg_bits = |
| 9947 | { |
| 9948 | .qe = {STATUS1, 6, RW}, |
| 9949 | }, |
| 9950 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
sibradzic | f62623c | 2020-03-14 17:21:34 +0900 | [diff] [blame] | 9951 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9952 | .write = spi_chip_write_256, |
Nico Huber | 5f50999 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9953 | .read = spi_chip_read, |
sibradzic | f62623c | 2020-03-14 17:21:34 +0900 | [diff] [blame] | 9954 | .voltage = {1650, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 9955 | .prepare_access = spi_prepare_io, |
| 9956 | .finish_access = spi_finish_io, |
sibradzic | f62623c | 2020-03-14 17:21:34 +0900 | [diff] [blame] | 9957 | }, |
| 9958 | |
| 9959 | { |
| 9960 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9961 | .name = "MX25R6435F", |
| 9962 | .bustype = BUS_SPI, |
| 9963 | .manufacture_id = MACRONIX_ID, |
| 9964 | .model_id = MACRONIX_MX25R6435F, |
| 9965 | .total_size = 8192, |
| 9966 | .page_size = 256, |
| 9967 | /* OTP: 1024B total; enter 0xB1, exit 0xC1 */ |
Nico Huber | 5f50999 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9968 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QIO, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9969 | .tested = TEST_OK_PREW, |
| 9970 | .probe = probe_spi_rdid, |
| 9971 | .probe_timing = TIMING_ZERO, |
| 9972 | .block_erasers = |
| 9973 | { |
| 9974 | { |
| 9975 | .eraseblocks = { {4 * 1024, 2048} }, |
| 9976 | .block_erase = spi_block_erase_20, |
| 9977 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9978 | .eraseblocks = { {32 * 1024, 256} }, |
| 9979 | .block_erase = spi_block_erase_52, |
| 9980 | }, { |
Aarya Chaumal | 478e179 | 2022-06-04 01:34:44 +0530 | [diff] [blame] | 9981 | .eraseblocks = { {64 * 1024, 128} }, |
| 9982 | .block_erase = spi_block_erase_d8, |
| 9983 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9984 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9985 | .block_erase = spi_block_erase_60, |
| 9986 | }, { |
| 9987 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9988 | .block_erase = spi_block_erase_c7, |
| 9989 | } |
| 9990 | }, |
Nico Huber | 5f50999 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9991 | .reg_bits = |
| 9992 | { |
| 9993 | .qe = {STATUS1, 6, RW}, |
| 9994 | }, |
| 9995 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9996 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9997 | .write = spi_chip_write_256, |
Nico Huber | 5f50999 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 9998 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 9999 | .voltage = {1650, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 10000 | .prepare_access = spi_prepare_io, |
| 10001 | .finish_access = spi_finish_io, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10002 | }, |
| 10003 | |
| 10004 | { |
| 10005 | .vendor = "Macronix", |
| 10006 | .name = "MX25U12835F", |
| 10007 | .bustype = BUS_SPI, |
| 10008 | .manufacture_id = MACRONIX_ID, |
| 10009 | .model_id = MACRONIX_MX25U12835E, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10010 | .total_size = 16384, |
| 10011 | .page_size = 256, |
| 10012 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 10013 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_35, |
| 10014 | .dummy_cycles = |
| 10015 | { |
| 10016 | /* 133MHz version has configuration register |
| 10017 | bit to toggle 8 dummy cycles for QIO, defaults: */ |
| 10018 | .qpi_fast_read = 4, |
| 10019 | .qpi_fast_read_qio = 6, |
| 10020 | }, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10021 | .tested = TEST_OK_PREW, |
| 10022 | .probe = probe_spi_rdid, |
| 10023 | .probe_timing = TIMING_ZERO, |
| 10024 | .block_erasers = |
| 10025 | { |
| 10026 | { |
| 10027 | .eraseblocks = { {4 * 1024, 4096} }, |
| 10028 | .block_erase = spi_block_erase_20, |
| 10029 | }, { |
| 10030 | .eraseblocks = { {32 * 1024, 512} }, |
| 10031 | .block_erase = spi_block_erase_52, |
| 10032 | }, { |
| 10033 | .eraseblocks = { {64 * 1024, 256} }, |
| 10034 | .block_erase = spi_block_erase_d8, |
| 10035 | }, { |
| 10036 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 10037 | .block_erase = spi_block_erase_60, |
| 10038 | }, { |
| 10039 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 10040 | .block_erase = spi_block_erase_c7, |
| 10041 | } |
| 10042 | }, |
Angel Pons | f112e24 | 2018-09-30 20:14:17 +0200 | [diff] [blame] | 10043 | /* TODO: security register */ |
Nico Huber | 4fa39c5 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 10044 | .reg_bits = |
| 10045 | { |
| 10046 | .qe = {STATUS1, 6, RW}, |
| 10047 | }, |
| 10048 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Angel Pons | f112e24 | 2018-09-30 20:14:17 +0200 | [diff] [blame] | 10049 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10050 | .write = spi_chip_write_256, /* Multi I/O supported */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 10051 | .read = spi_chip_read, |
Angel Pons | f112e24 | 2018-09-30 20:14:17 +0200 | [diff] [blame] | 10052 | .voltage = {1650, 2000}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 10053 | .prepare_access = spi_prepare_io, |
| 10054 | .finish_access = spi_finish_io, |
Angel Pons | f112e24 | 2018-09-30 20:14:17 +0200 | [diff] [blame] | 10055 | }, |
| 10056 | |
| 10057 | { |
| 10058 | .vendor = "Macronix", |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 10059 | .name = "MX25U1635E", |
| 10060 | .bustype = BUS_SPI, |
| 10061 | .manufacture_id = MACRONIX_ID, |
| 10062 | .model_id = MACRONIX_MX25U1635E, |
| 10063 | .total_size = 2048, |
| 10064 | .page_size = 256, |
| 10065 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 10066 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ | |
| 10067 | FEATURE_FAST_READ_DIO | FEATURE_FAST_READ_QIO | FEATURE_QPI_35_F5, |
| 10068 | .dummy_cycles = |
| 10069 | { |
| 10070 | .qpi_fast_read = 4, |
| 10071 | .qpi_fast_read_qio = 6, |
| 10072 | }, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10073 | .tested = TEST_OK_PR, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 10074 | .probe = probe_spi_rdid, |
| 10075 | .probe_timing = TIMING_ZERO, |
| 10076 | .block_erasers = |
| 10077 | { |
| 10078 | { |
| 10079 | .eraseblocks = { {4 * 1024, 512} }, |
| 10080 | .block_erase = spi_block_erase_20, |
| 10081 | }, { |
| 10082 | .eraseblocks = { {32 * 1024, 64} }, |
| 10083 | .block_erase = spi_block_erase_52, |
| 10084 | }, { |
| 10085 | .eraseblocks = { {64 * 1024, 32} }, |
| 10086 | .block_erase = spi_block_erase_d8, |
| 10087 | }, { |
| 10088 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10089 | .block_erase = spi_block_erase_60, |
| 10090 | }, { |
| 10091 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10092 | .block_erase = spi_block_erase_c7, |
| 10093 | } |
| 10094 | }, |
| 10095 | /* TODO: security register */ |
Nico Huber | 4fa39c5 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 10096 | .reg_bits = |
| 10097 | { |
| 10098 | .qe = {STATUS1, 6, RW}, |
| 10099 | }, |
| 10100 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10101 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 10102 | .write = spi_chip_write_256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 10103 | .read = spi_chip_read, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 10104 | .voltage = {1650, 2000}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 10105 | .prepare_access = spi_prepare_io, |
| 10106 | .finish_access = spi_finish_io, |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 10107 | }, |
| 10108 | |
| 10109 | { |
| 10110 | .vendor = "Macronix", |
David Tomaschik | f75d8c5 | 2019-06-20 09:49:01 -0700 | [diff] [blame] | 10111 | .name = "MX25U25635F", |
| 10112 | .bustype = BUS_SPI, |
| 10113 | .manufacture_id = MACRONIX_ID, |
| 10114 | .model_id = MACRONIX_MX25U25635F, |
| 10115 | .total_size = 32768, |
| 10116 | .page_size = 256, |
| 10117 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 10118 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | |
| 10119 | FEATURE_4BA | FEATURE_QPI_35 | FEATURE_FAST_READ_QPI4B, |
| 10120 | .dummy_cycles = { .qpi_read_params = { 6, 4, 8, 10 } }, |
Nikolai Artemiev | 148254b | 2021-03-23 17:21:10 +1100 | [diff] [blame] | 10121 | .tested = TEST_OK_PREW, |
David Tomaschik | f75d8c5 | 2019-06-20 09:49:01 -0700 | [diff] [blame] | 10122 | .probe = probe_spi_rdid, |
| 10123 | .probe_timing = TIMING_ZERO, |
| 10124 | .block_erasers = |
| 10125 | { |
| 10126 | { |
| 10127 | .eraseblocks = { {4 * 1024, 8192} }, |
| 10128 | .block_erase = spi_block_erase_21, |
| 10129 | }, { |
| 10130 | .eraseblocks = { {4 * 1024, 8192} }, |
| 10131 | .block_erase = spi_block_erase_20, |
| 10132 | }, { |
| 10133 | .eraseblocks = { {32 * 1024, 1024} }, |
| 10134 | .block_erase = spi_block_erase_5c, |
| 10135 | }, { |
| 10136 | .eraseblocks = { {32 * 1024, 1024} }, |
| 10137 | .block_erase = spi_block_erase_52, |
| 10138 | }, { |
| 10139 | .eraseblocks = { {64 * 1024, 512} }, |
| 10140 | .block_erase = spi_block_erase_dc, |
| 10141 | }, { |
| 10142 | .eraseblocks = { {64 * 1024, 512} }, |
| 10143 | .block_erase = spi_block_erase_d8, |
| 10144 | }, { |
| 10145 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 10146 | .block_erase = spi_block_erase_60, |
| 10147 | }, { |
| 10148 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 10149 | .block_erase = spi_block_erase_c7, |
| 10150 | } |
| 10151 | }, |
| 10152 | /* TODO: security register */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 10153 | .reg_bits = |
| 10154 | { |
Nico Huber | 4fa39c5 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 10155 | .qe = {STATUS1, 6, RW}, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 10156 | .dc = {{CONFIG, 6, RW}, {CONFIG, 7, RW}}, |
| 10157 | }, |
Nico Huber | 4fa39c5 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 10158 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
David Tomaschik | f75d8c5 | 2019-06-20 09:49:01 -0700 | [diff] [blame] | 10159 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10160 | .write = spi_chip_write_256, /* Multi I/O supported */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 10161 | .read = spi_chip_read, |
David Tomaschik | f75d8c5 | 2019-06-20 09:49:01 -0700 | [diff] [blame] | 10162 | .voltage = {1650, 2000}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 10163 | .prepare_access = spi_prepare_io, |
| 10164 | .finish_access = spi_finish_io, |
David Tomaschik | f75d8c5 | 2019-06-20 09:49:01 -0700 | [diff] [blame] | 10165 | }, |
| 10166 | |
| 10167 | { |
| 10168 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10169 | .name = "MX25U3235E/F", |
| 10170 | .bustype = BUS_SPI, |
| 10171 | .manufacture_id = MACRONIX_ID, |
| 10172 | .model_id = MACRONIX_MX25U3235E, |
| 10173 | .total_size = 4096, |
| 10174 | .page_size = 256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 10175 | /* F model supports SFDP, FAST_READ_DOUT/_QOUT */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10176 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 10177 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ | |
| 10178 | FEATURE_FAST_READ_DIO | FEATURE_FAST_READ_QIO | FEATURE_QPI_35_F5, |
| 10179 | .dummy_cycles = |
| 10180 | { |
| 10181 | .qpi_fast_read = 4, |
| 10182 | .qpi_fast_read_qio = 6, |
| 10183 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10184 | .tested = TEST_OK_PREW, |
| 10185 | .probe = probe_spi_rdid, |
| 10186 | .probe_timing = TIMING_ZERO, |
| 10187 | .block_erasers = |
| 10188 | { |
| 10189 | { |
| 10190 | .eraseblocks = { {4 * 1024, 1024} }, |
| 10191 | .block_erase = spi_block_erase_20, |
| 10192 | }, { |
| 10193 | .eraseblocks = { {32 * 1024, 128} }, |
| 10194 | .block_erase = spi_block_erase_52, |
| 10195 | }, { |
| 10196 | .eraseblocks = { {64 * 1024, 64} }, |
| 10197 | .block_erase = spi_block_erase_d8, |
| 10198 | }, { |
| 10199 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10200 | .block_erase = spi_block_erase_60, |
| 10201 | }, { |
| 10202 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10203 | .block_erase = spi_block_erase_c7, |
| 10204 | } |
| 10205 | }, |
| 10206 | /* TODO: security register */ |
Nico Huber | 4fa39c5 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 10207 | .reg_bits = |
| 10208 | { |
| 10209 | .qe = {STATUS1, 6, RW}, |
| 10210 | }, |
| 10211 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10212 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10213 | .write = spi_chip_write_256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 10214 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10215 | .voltage = {1650, 2000}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 10216 | .prepare_access = spi_prepare_io, |
| 10217 | .finish_access = spi_finish_io, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10218 | }, |
| 10219 | |
| 10220 | { |
| 10221 | .vendor = "Macronix", |
Daniel Thompson | cadd420 | 2018-06-04 13:52:22 +0100 | [diff] [blame] | 10222 | .name = "MX25U51245G", |
| 10223 | .bustype = BUS_SPI, |
| 10224 | .manufacture_id = MACRONIX_ID, |
| 10225 | .model_id = MACRONIX_MX25U51245G, |
| 10226 | .total_size = 65536, |
| 10227 | .page_size = 256, |
| 10228 | /* OTP: 512B factory programmed and 512B customer programmed; enter 0xB1, exit 0xC1 */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 10229 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | |
| 10230 | FEATURE_4BA | FEATURE_QPI_35 | FEATURE_FAST_READ_QPI4B, |
| 10231 | .dummy_cycles = { .qpi_read_params = { 6, 4, 8, 10 } }, |
Daniel Thompson | cadd420 | 2018-06-04 13:52:22 +0100 | [diff] [blame] | 10232 | .tested = TEST_OK_PREW, |
| 10233 | .probe = probe_spi_rdid, |
| 10234 | .probe_timing = TIMING_ZERO, |
| 10235 | .block_erasers = |
| 10236 | { |
| 10237 | { |
| 10238 | .eraseblocks = { {4 * 1024, 16384} }, |
| 10239 | .block_erase = spi_block_erase_21, |
| 10240 | }, { |
| 10241 | .eraseblocks = { {4 * 1024, 16384} }, |
| 10242 | .block_erase = spi_block_erase_20, |
| 10243 | }, { |
| 10244 | .eraseblocks = { {32 * 1024, 2048} }, |
| 10245 | .block_erase = spi_block_erase_5c, |
| 10246 | }, { |
| 10247 | .eraseblocks = { {32 * 1024, 2048} }, |
| 10248 | .block_erase = spi_block_erase_52, |
| 10249 | }, { |
| 10250 | .eraseblocks = { {64 * 1024, 1024} }, |
| 10251 | .block_erase = spi_block_erase_dc, |
| 10252 | }, { |
| 10253 | .eraseblocks = { {64 * 1024, 1024} }, |
| 10254 | .block_erase = spi_block_erase_d8, |
| 10255 | }, { |
| 10256 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 10257 | .block_erase = spi_block_erase_60, |
| 10258 | }, { |
| 10259 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 10260 | .block_erase = spi_block_erase_c7, |
| 10261 | } |
| 10262 | }, |
| 10263 | /* TODO: security register */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 10264 | .reg_bits = |
| 10265 | { |
Nico Huber | 4fa39c5 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 10266 | .qe = {STATUS1, 6, RW}, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 10267 | .dc = {{CONFIG, 6, RW}, {CONFIG, 7, RW}}, |
| 10268 | }, |
Nico Huber | 4fa39c5 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 10269 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Daniel Thompson | cadd420 | 2018-06-04 13:52:22 +0100 | [diff] [blame] | 10270 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10271 | .write = spi_chip_write_256, /* Multi I/O supported */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 10272 | .read = spi_chip_read, |
Daniel Thompson | cadd420 | 2018-06-04 13:52:22 +0100 | [diff] [blame] | 10273 | .voltage = {1650, 2000}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 10274 | .prepare_access = spi_prepare_io, |
| 10275 | .finish_access = spi_finish_io, |
Daniel Thompson | cadd420 | 2018-06-04 13:52:22 +0100 | [diff] [blame] | 10276 | }, |
| 10277 | |
| 10278 | { |
| 10279 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10280 | .name = "MX25U6435E/F", |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 10281 | .bustype = BUS_SPI, |
| 10282 | .manufacture_id = MACRONIX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10283 | .model_id = MACRONIX_MX25U6435E, |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 10284 | .total_size = 8192, |
| 10285 | .page_size = 256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 10286 | /* F model supports SFDP, FAST_READ_DOUT/_QOUT */ |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10287 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 10288 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_FAST_READ | |
| 10289 | FEATURE_FAST_READ_DIO | FEATURE_FAST_READ_QIO | FEATURE_QPI_35_F5, |
| 10290 | .dummy_cycles = |
| 10291 | { |
| 10292 | .qpi_fast_read = 4, |
| 10293 | .qpi_fast_read_qio = 6, |
| 10294 | }, |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 10295 | .tested = TEST_OK_PREW, |
| 10296 | .probe = probe_spi_rdid, |
| 10297 | .probe_timing = TIMING_ZERO, |
| 10298 | .block_erasers = |
| 10299 | { |
| 10300 | { |
| 10301 | .eraseblocks = { {4 * 1024, 2048} }, |
| 10302 | .block_erase = spi_block_erase_20, |
| 10303 | }, { |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 10304 | .eraseblocks = { {32 * 1024, 256} }, |
| 10305 | .block_erase = spi_block_erase_52, |
| 10306 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10307 | .eraseblocks = { {64 * 1024, 128} }, |
| 10308 | .block_erase = spi_block_erase_d8, |
| 10309 | }, { |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 10310 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10311 | .block_erase = spi_block_erase_60, |
| 10312 | }, { |
| 10313 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10314 | .block_erase = spi_block_erase_c7, |
| 10315 | } |
| 10316 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10317 | /* TODO: security register */ |
Nico Huber | 4fa39c5 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 10318 | .reg_bits = |
| 10319 | { |
| 10320 | .qe = {STATUS1, 6, RW}, |
| 10321 | }, |
| 10322 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Nathan Rennie-Waldock | 5a7f942 | 2018-08-10 15:35:23 +0100 | [diff] [blame] | 10323 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10324 | .write = spi_chip_write_256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 10325 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10326 | .voltage = {1650, 2000}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 10327 | .prepare_access = spi_prepare_io, |
| 10328 | .finish_access = spi_finish_io, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10329 | }, |
| 10330 | |
| 10331 | { |
| 10332 | .vendor = "Macronix", |
| 10333 | .name = "MX25U8032E", |
| 10334 | .bustype = BUS_SPI, |
| 10335 | .manufacture_id = MACRONIX_ID, |
| 10336 | .model_id = MACRONIX_MX25U8032E, |
| 10337 | .total_size = 1024, |
| 10338 | .page_size = 256, |
| 10339 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
Nico Huber | 4fa39c5 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 10340 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 10341 | FEATURE_FAST_READ | FEATURE_FAST_READ_DIO | FEATURE_FAST_READ_QIO, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10342 | .tested = TEST_OK_PREW, |
| 10343 | .probe = probe_spi_rdid, |
| 10344 | .probe_timing = TIMING_ZERO, |
| 10345 | .block_erasers = |
| 10346 | { |
| 10347 | { |
| 10348 | .eraseblocks = { {4 * 1024, 256} }, |
| 10349 | .block_erase = spi_block_erase_20, |
| 10350 | }, { |
| 10351 | .eraseblocks = { {32 * 1024, 32} }, |
| 10352 | .block_erase = spi_block_erase_52, |
| 10353 | }, { |
| 10354 | .eraseblocks = { {64 * 1024, 16} }, |
| 10355 | .block_erase = spi_block_erase_d8, |
| 10356 | }, { |
| 10357 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10358 | .block_erase = spi_block_erase_60, |
| 10359 | }, { |
| 10360 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10361 | .block_erase = spi_block_erase_c7, |
| 10362 | } |
| 10363 | }, |
| 10364 | /* TODO: security register */ |
Nico Huber | 4fa39c5 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 10365 | .reg_bits = |
| 10366 | { |
| 10367 | .qe = {STATUS1, 6, RW}, |
| 10368 | }, |
| 10369 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10370 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10371 | .write = spi_chip_write_256, |
Nico Huber | 4fa39c5 | 2024-03-27 01:18:12 +0100 | [diff] [blame] | 10372 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10373 | .voltage = {1650, 2000}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 10374 | .prepare_access = spi_prepare_io, |
| 10375 | .finish_access = spi_finish_io, |
Nathan Rennie-Waldock | 5a7f942 | 2018-08-10 15:35:23 +0100 | [diff] [blame] | 10376 | }, |
| 10377 | |
| 10378 | { |
| 10379 | .vendor = "Macronix", |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 10380 | .name = "MX29F001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10381 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10382 | .manufacture_id = MACRONIX_ID, |
| 10383 | .model_id = MACRONIX_MX29F001B, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 10384 | .total_size = 128, |
| 10385 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10386 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10387 | .tested = TEST_UNTESTED, |
| 10388 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 10389 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 10390 | .block_erasers = |
| 10391 | { |
| 10392 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 10393 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 10394 | {8 * 1024, 1}, |
| 10395 | {4 * 1024, 2}, |
| 10396 | {8 * 1024, 2}, |
| 10397 | {32 * 1024, 1}, |
| 10398 | {64 * 1024, 1}, |
| 10399 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10400 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 10401 | }, { |
| 10402 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10403 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 10404 | } |
| 10405 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 10406 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 10407 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10408 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10409 | .prepare_access = prepare_memory_access, |
| 10410 | .finish_access = finish_memory_access, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 10411 | }, |
| 10412 | |
| 10413 | { |
| 10414 | .vendor = "Macronix", |
| 10415 | .name = "MX29F001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10416 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10417 | .manufacture_id = MACRONIX_ID, |
| 10418 | .model_id = MACRONIX_MX29F001T, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 10419 | .total_size = 128, |
| 10420 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10421 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stefan Tauner | 74c6ec6 | 2011-05-18 01:31:46 +0000 | [diff] [blame] | 10422 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10423 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 10424 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 10425 | .block_erasers = |
| 10426 | { |
| 10427 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 10428 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 10429 | {64 * 1024, 1}, |
| 10430 | {32 * 1024, 1}, |
| 10431 | {8 * 1024, 2}, |
| 10432 | {4 * 1024, 2}, |
| 10433 | {8 * 1024, 1}, |
| 10434 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10435 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 10436 | }, { |
| 10437 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10438 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 10439 | } |
| 10440 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 10441 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 10442 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10443 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10444 | .prepare_access = prepare_memory_access, |
| 10445 | .finish_access = finish_memory_access, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 10446 | }, |
| 10447 | |
| 10448 | { |
| 10449 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 10450 | .name = "MX29F002(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10451 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10452 | .manufacture_id = MACRONIX_ID, |
| 10453 | .model_id = MACRONIX_MX29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10454 | .total_size = 256, |
| 10455 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10456 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10457 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10458 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 10459 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 10460 | .block_erasers = |
| 10461 | { |
| 10462 | { |
| 10463 | .eraseblocks = { |
| 10464 | {16 * 1024, 1}, |
| 10465 | {8 * 1024, 2}, |
| 10466 | {32 * 1024, 1}, |
| 10467 | {64 * 1024, 3}, |
| 10468 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10469 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 10470 | }, { |
| 10471 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10472 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 10473 | }, |
| 10474 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 10475 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10476 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10477 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10478 | .prepare_access = prepare_memory_access, |
| 10479 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10480 | }, |
| 10481 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10482 | { |
| 10483 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 10484 | .name = "MX29F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10485 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10486 | .manufacture_id = MACRONIX_ID, |
| 10487 | .model_id = MACRONIX_MX29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10488 | .total_size = 256, |
| 10489 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10490 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 10491 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10492 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 10493 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 10494 | .block_erasers = |
| 10495 | { |
| 10496 | { |
| 10497 | .eraseblocks = { |
| 10498 | {64 * 1024, 3}, |
| 10499 | {32 * 1024, 1}, |
| 10500 | {8 * 1024, 2}, |
| 10501 | {16 * 1024, 1}, |
| 10502 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10503 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 10504 | }, { |
| 10505 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10506 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 10507 | }, |
| 10508 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 10509 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10510 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10511 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10512 | .prepare_access = prepare_memory_access, |
| 10513 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10514 | }, |
| 10515 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10516 | { |
| 10517 | .vendor = "Macronix", |
Daniele Forsi | 6a18a93 | 2014-07-13 14:53:45 +0000 | [diff] [blame] | 10518 | .name = "MX29F022(N)B", |
| 10519 | .bustype = BUS_PARALLEL, |
| 10520 | .manufacture_id = MACRONIX_ID, |
| 10521 | .model_id = MACRONIX_MX29F022B, |
| 10522 | .total_size = 256, |
| 10523 | .page_size = 0, /* unused */ |
| 10524 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10525 | .tested = TEST_UNTESTED, |
| 10526 | .probe = probe_jedec, |
| 10527 | .probe_timing = TIMING_ZERO, |
| 10528 | .block_erasers = |
| 10529 | { |
| 10530 | { |
| 10531 | .eraseblocks = { |
| 10532 | {16 * 1024, 1}, |
| 10533 | {8 * 1024, 2}, |
| 10534 | {32 * 1024, 1}, |
| 10535 | {64 * 1024, 3}, |
| 10536 | }, |
| 10537 | .block_erase = erase_sector_jedec, |
| 10538 | }, { |
| 10539 | .eraseblocks = { {256 * 1024, 1} }, |
| 10540 | .block_erase = erase_chip_block_jedec, |
| 10541 | } |
| 10542 | }, |
| 10543 | .write = write_jedec_1, |
| 10544 | .read = read_memmapped, |
| 10545 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10546 | .prepare_access = prepare_memory_access, |
| 10547 | .finish_access = finish_memory_access, |
Daniele Forsi | 6a18a93 | 2014-07-13 14:53:45 +0000 | [diff] [blame] | 10548 | }, |
| 10549 | |
| 10550 | { |
| 10551 | .vendor = "Macronix", |
| 10552 | .name = "MX29F022(N)T", |
| 10553 | .bustype = BUS_PARALLEL, |
| 10554 | .manufacture_id = MACRONIX_ID, |
| 10555 | .model_id = MACRONIX_MX29F022T, |
| 10556 | .total_size = 256, |
| 10557 | .page_size = 0, /* unused */ |
| 10558 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10559 | .tested = TEST_OK_PREW, |
| 10560 | .probe = probe_jedec, |
| 10561 | .probe_timing = TIMING_ZERO, |
| 10562 | .block_erasers = |
| 10563 | { |
| 10564 | { |
| 10565 | .eraseblocks = { |
| 10566 | {64 * 1024, 3}, |
| 10567 | {32 * 1024, 1}, |
| 10568 | {8 * 1024, 2}, |
| 10569 | {16 * 1024, 1}, |
| 10570 | }, |
| 10571 | .block_erase = erase_sector_jedec, |
| 10572 | }, { |
| 10573 | .eraseblocks = { {256 * 1024, 1} }, |
| 10574 | .block_erase = erase_chip_block_jedec, |
| 10575 | } |
| 10576 | }, |
| 10577 | .write = write_jedec_1, |
| 10578 | .read = read_memmapped, |
| 10579 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10580 | .prepare_access = prepare_memory_access, |
| 10581 | .finish_access = finish_memory_access, |
Daniele Forsi | 6a18a93 | 2014-07-13 14:53:45 +0000 | [diff] [blame] | 10582 | }, |
| 10583 | |
| 10584 | { |
| 10585 | .vendor = "Macronix", |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 10586 | .name = "MX29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10587 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 10588 | .manufacture_id = MACRONIX_ID, |
| 10589 | .model_id = MACRONIX_MX29F040, |
| 10590 | .total_size = 512, |
| 10591 | .page_size = 64 * 1024, |
| 10592 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10593 | .tested = TEST_UNTESTED, |
| 10594 | .probe = probe_jedec, |
| 10595 | .probe_timing = TIMING_ZERO, |
| 10596 | .block_erasers = |
| 10597 | { |
| 10598 | { |
| 10599 | .eraseblocks = { {64 * 1024, 8} }, |
| 10600 | .block_erase = erase_sector_jedec, |
| 10601 | }, { |
| 10602 | .eraseblocks = { {512 * 1024, 1} }, |
| 10603 | .block_erase = erase_chip_block_jedec, |
| 10604 | }, |
| 10605 | }, |
| 10606 | .write = write_jedec_1, |
| 10607 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 10608 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10609 | .prepare_access = prepare_memory_access, |
| 10610 | .finish_access = finish_memory_access, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 10611 | }, |
| 10612 | |
| 10613 | { |
| 10614 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10615 | .name = "MX29GL128F", |
| 10616 | .bustype = BUS_PARALLEL, |
| 10617 | .manufacture_id = MACRONIX_ID, |
| 10618 | .model_id = MACRONIX_MX29GL128F, |
| 10619 | .total_size = 16384, |
| 10620 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 10621 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10622 | .tested = TEST_UNTESTED, |
| 10623 | .probe = probe_jedec_29gl, |
| 10624 | .probe_timing = TIMING_ZERO, |
| 10625 | .block_erasers = |
| 10626 | { |
| 10627 | { |
| 10628 | .eraseblocks = { {128 * 1024, 128} }, |
| 10629 | .block_erase = erase_sector_jedec, |
| 10630 | }, { |
| 10631 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 10632 | .block_erase = erase_chip_block_jedec, |
| 10633 | }, |
| 10634 | }, |
| 10635 | .write = write_jedec_1, |
| 10636 | .read = read_memmapped, |
| 10637 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10638 | .prepare_access = prepare_memory_access, |
| 10639 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10640 | }, |
| 10641 | |
| 10642 | { |
| 10643 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 10644 | .name = "MX29GL320EB", |
| 10645 | .bustype = BUS_PARALLEL, |
| 10646 | .manufacture_id = MACRONIX_ID, |
| 10647 | .model_id = MACRONIX_MX29GL320EB, |
| 10648 | .total_size = 4096, |
| 10649 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 10650 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10651 | .tested = TEST_UNTESTED, |
| 10652 | .probe = probe_jedec_29gl, |
| 10653 | .probe_timing = TIMING_ZERO, |
| 10654 | .block_erasers = |
| 10655 | { |
| 10656 | { |
| 10657 | .eraseblocks = { |
| 10658 | {8 * 1024, 8}, |
| 10659 | {64 * 1024, 63}, |
| 10660 | }, |
| 10661 | .block_erase = erase_sector_jedec, |
| 10662 | }, { |
| 10663 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10664 | .block_erase = erase_chip_block_jedec, |
| 10665 | }, |
| 10666 | }, |
| 10667 | .write = write_jedec_1, |
| 10668 | .read = read_memmapped, |
| 10669 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10670 | .prepare_access = prepare_memory_access, |
| 10671 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 10672 | }, |
| 10673 | |
| 10674 | { |
| 10675 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10676 | .name = "MX29GL320EH/L", |
| 10677 | .bustype = BUS_PARALLEL, |
| 10678 | .manufacture_id = MACRONIX_ID, |
| 10679 | .model_id = MACRONIX_MX29GL320EHL, |
| 10680 | .total_size = 4096, |
| 10681 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 10682 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10683 | .tested = TEST_UNTESTED, |
| 10684 | .probe = probe_jedec_29gl, |
| 10685 | .probe_timing = TIMING_ZERO, |
| 10686 | .block_erasers = |
| 10687 | { |
| 10688 | { |
| 10689 | .eraseblocks = { {64 * 1024, 64} }, |
| 10690 | .block_erase = erase_sector_jedec, |
| 10691 | }, { |
| 10692 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10693 | .block_erase = erase_chip_block_jedec, |
| 10694 | }, |
| 10695 | }, |
| 10696 | .write = write_jedec_1, |
| 10697 | .read = read_memmapped, |
| 10698 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10699 | .prepare_access = prepare_memory_access, |
| 10700 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10701 | }, |
| 10702 | |
| 10703 | { |
| 10704 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 10705 | .name = "MX29GL320ET", |
| 10706 | .bustype = BUS_PARALLEL, |
| 10707 | .manufacture_id = MACRONIX_ID, |
| 10708 | .model_id = MACRONIX_MX29GL320ET, |
| 10709 | .total_size = 4096, |
| 10710 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 10711 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10712 | .tested = TEST_UNTESTED, |
| 10713 | .probe = probe_jedec_29gl, |
| 10714 | .probe_timing = TIMING_ZERO, |
| 10715 | .block_erasers = |
| 10716 | { |
| 10717 | { |
| 10718 | .eraseblocks = { |
| 10719 | {64 * 1024, 63}, |
| 10720 | {8 * 1024, 8}, |
| 10721 | }, |
| 10722 | .block_erase = erase_sector_jedec, |
| 10723 | }, { |
| 10724 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10725 | .block_erase = erase_chip_block_jedec, |
| 10726 | }, |
| 10727 | }, |
| 10728 | .write = write_jedec_1, |
| 10729 | .read = read_memmapped, |
| 10730 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10731 | .prepare_access = prepare_memory_access, |
| 10732 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 10733 | }, |
| 10734 | |
| 10735 | { |
| 10736 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 10737 | .name = "MX29GL640EB", |
| 10738 | .bustype = BUS_PARALLEL, |
| 10739 | .manufacture_id = MACRONIX_ID, |
| 10740 | .model_id = MACRONIX_MX29GL640EB, |
| 10741 | .total_size = 8192, |
| 10742 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 10743 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10744 | .tested = TEST_UNTESTED, |
| 10745 | .probe = probe_jedec_29gl, |
| 10746 | .probe_timing = TIMING_ZERO, |
| 10747 | .block_erasers = |
| 10748 | { |
| 10749 | { |
| 10750 | .eraseblocks = { |
| 10751 | {8 * 1024, 8}, |
| 10752 | {64 * 1024, 127}, |
| 10753 | }, |
| 10754 | .block_erase = erase_sector_jedec, |
| 10755 | }, { |
| 10756 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10757 | .block_erase = erase_chip_block_jedec, |
| 10758 | }, |
| 10759 | }, |
| 10760 | .write = write_jedec_1, |
| 10761 | .read = read_memmapped, |
| 10762 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10763 | .prepare_access = prepare_memory_access, |
| 10764 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 10765 | }, |
| 10766 | |
| 10767 | { |
| 10768 | .vendor = "Macronix", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10769 | .name = "MX29GL640EH/L", |
| 10770 | .bustype = BUS_PARALLEL, |
| 10771 | .manufacture_id = MACRONIX_ID, |
| 10772 | .model_id = MACRONIX_MX29GL640EHL, |
| 10773 | .total_size = 8192, |
| 10774 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 10775 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10776 | .tested = TEST_UNTESTED, |
| 10777 | .probe = probe_jedec_29gl, |
| 10778 | .probe_timing = TIMING_ZERO, |
| 10779 | .block_erasers = |
| 10780 | { |
| 10781 | { |
| 10782 | .eraseblocks = { {64 * 1024, 128} }, |
| 10783 | .block_erase = erase_sector_jedec, |
| 10784 | }, { |
| 10785 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10786 | .block_erase = erase_chip_block_jedec, |
| 10787 | }, |
| 10788 | }, |
| 10789 | .write = write_jedec_1, |
| 10790 | .read = read_memmapped, |
| 10791 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10792 | .prepare_access = prepare_memory_access, |
| 10793 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10794 | }, |
| 10795 | |
| 10796 | { |
| 10797 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 10798 | .name = "MX29GL640ET", |
| 10799 | .bustype = BUS_PARALLEL, |
| 10800 | .manufacture_id = MACRONIX_ID, |
| 10801 | .model_id = MACRONIX_MX29GL640ET, |
| 10802 | .total_size = 8192, |
| 10803 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 10804 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10805 | .tested = TEST_UNTESTED, |
| 10806 | .probe = probe_jedec_29gl, |
| 10807 | .probe_timing = TIMING_ZERO, |
| 10808 | .block_erasers = |
| 10809 | { |
| 10810 | { |
| 10811 | .eraseblocks = { |
| 10812 | {64 * 1024, 127}, |
| 10813 | {8 * 1024, 8}, |
| 10814 | }, |
| 10815 | .block_erase = erase_sector_jedec, |
| 10816 | }, { |
| 10817 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10818 | .block_erase = erase_chip_block_jedec, |
| 10819 | }, |
| 10820 | }, |
| 10821 | .write = write_jedec_1, |
| 10822 | .read = read_memmapped, |
| 10823 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10824 | .prepare_access = prepare_memory_access, |
| 10825 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 10826 | }, |
| 10827 | |
| 10828 | { |
| 10829 | .vendor = "Macronix", |
Carl-Daniel Hailfinger | 350a0c3 | 2009-07-24 13:59:27 +0000 | [diff] [blame] | 10830 | .name = "MX29LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10831 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10832 | .manufacture_id = MACRONIX_ID, |
| 10833 | .model_id = MACRONIX_MX29LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10834 | .total_size = 512, |
| 10835 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10836 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 10837 | .tested = TEST_UNTESTED, |
| 10838 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 10839 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 10840 | .block_erasers = |
| 10841 | { |
| 10842 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 10843 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10844 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 10845 | }, { |
| 10846 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10847 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 10848 | }, |
| 10849 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 10850 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10851 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10852 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 10853 | .prepare_access = prepare_memory_access, |
| 10854 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | 7de8639 | 2008-12-10 10:32:05 +0000 | [diff] [blame] | 10855 | }, |
| 10856 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10857 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10858 | .vendor = "Macronix", |
Hemanth Guruva Reddy | a136d42 | 2019-07-11 11:08:27 +0200 | [diff] [blame] | 10859 | .name = "MX66L51235F/MX25L51245G", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10860 | .bustype = BUS_SPI, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10861 | .manufacture_id = MACRONIX_ID, |
| 10862 | .model_id = MACRONIX_MX66L51235F, |
| 10863 | .total_size = 65536, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10864 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10865 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 10866 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10867 | .tested = TEST_OK_PREW, |
| 10868 | .probe = probe_spi_rdid, |
| 10869 | .probe_timing = TIMING_ZERO, |
| 10870 | .block_erasers = |
| 10871 | { |
| 10872 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10873 | .eraseblocks = { {4 * 1024, 16384} }, |
| 10874 | .block_erase = spi_block_erase_21, |
| 10875 | }, { |
| 10876 | .eraseblocks = { {4 * 1024, 16384} }, |
| 10877 | .block_erase = spi_block_erase_20, |
| 10878 | }, { |
| 10879 | .eraseblocks = { {32 * 1024, 2048} }, |
| 10880 | .block_erase = spi_block_erase_5c, |
| 10881 | }, { |
| 10882 | .eraseblocks = { {32 * 1024, 2048} }, |
| 10883 | .block_erase = spi_block_erase_52, |
| 10884 | }, { |
| 10885 | .eraseblocks = { {64 * 1024, 1024} }, |
| 10886 | .block_erase = spi_block_erase_dc, |
| 10887 | }, { |
| 10888 | .eraseblocks = { {64 * 1024, 1024} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10889 | .block_erase = spi_block_erase_d8, |
| 10890 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10891 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 10892 | .block_erase = spi_block_erase_60, |
| 10893 | }, { |
| 10894 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10895 | .block_erase = spi_block_erase_c7, |
| 10896 | } |
| 10897 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10898 | /* TODO: security register and SBLK/SBULK; MX25L12835F: configuration register */ |
| 10899 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10900 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10901 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10902 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10903 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 10904 | .prepare_access = spi_prepare_io, |
| 10905 | .finish_access = spi_finish_io, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10906 | }, |
| 10907 | |
Patrick Rudolph | 3ba8315 | 2021-06-08 10:52:19 +0200 | [diff] [blame] | 10908 | { |
| 10909 | .vendor = "Macronix", |
| 10910 | .name = "MX66L1G45G", |
| 10911 | .bustype = BUS_SPI, |
| 10912 | .manufacture_id = MACRONIX_ID, |
| 10913 | .model_id = MACRONIX_MX66L1G45G, |
| 10914 | .total_size = 131072, |
| 10915 | .page_size = 256, |
| 10916 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 10917 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA, |
| 10918 | .tested = TEST_OK_PREW, |
| 10919 | .probe = probe_spi_rdid, |
| 10920 | .probe_timing = TIMING_ZERO, |
| 10921 | .block_erasers = |
| 10922 | { |
| 10923 | { |
| 10924 | .eraseblocks = { {4 * 1024, 32768} }, |
| 10925 | .block_erase = spi_block_erase_21, |
| 10926 | }, { |
| 10927 | .eraseblocks = { {4 * 1024, 32768} }, |
| 10928 | .block_erase = spi_block_erase_20, |
| 10929 | }, { |
| 10930 | .eraseblocks = { {32 * 1024, 4096} }, |
| 10931 | .block_erase = spi_block_erase_5c, |
| 10932 | }, { |
| 10933 | .eraseblocks = { {32 * 1024, 4096} }, |
| 10934 | .block_erase = spi_block_erase_52, |
| 10935 | }, { |
| 10936 | .eraseblocks = { {64 * 1024, 2048} }, |
| 10937 | .block_erase = spi_block_erase_dc, |
| 10938 | }, { |
| 10939 | .eraseblocks = { {64 * 1024, 2048} }, |
| 10940 | .block_erase = spi_block_erase_d8, |
| 10941 | }, { |
| 10942 | .eraseblocks = { {128 * 1024 * 1024, 1} }, |
| 10943 | .block_erase = spi_block_erase_60, |
| 10944 | }, { |
| 10945 | .eraseblocks = { {128 * 1024 * 1024, 1} }, |
| 10946 | .block_erase = spi_block_erase_c7, |
| 10947 | } |
| 10948 | }, |
| 10949 | /* TODO: security register and SBLK/SBULK, configuration register */ |
| 10950 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 10951 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10952 | .write = spi_chip_write_256, |
| 10953 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10954 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 10955 | .prepare_access = spi_prepare_io, |
| 10956 | .finish_access = spi_finish_io, |
Patrick Rudolph | 3ba8315 | 2021-06-08 10:52:19 +0200 | [diff] [blame] | 10957 | }, |
| 10958 | |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10959 | /* The ST M25P05 is a bit of a problem. It has the same ID as the |
| 10960 | * ST M25P05-A in RES mode, but supports only 128 byte writes instead |
| 10961 | * of 256 byte writes. We rely heavily on the fact that probe_spi_res1 |
| 10962 | * only is successful if RDID does not work. |
| 10963 | */ |
| 10964 | { |
| 10965 | .vendor = "Micron/Numonyx/ST", |
| 10966 | .name = "M25P05", |
| 10967 | .bustype = BUS_SPI, |
| 10968 | .manufacture_id = 0, /* Not used. */ |
| 10969 | .model_id = ST_M25P05_RES, |
| 10970 | .total_size = 64, |
| 10971 | .page_size = 256, |
| 10972 | .feature_bits = FEATURE_WRSR_WREN, |
| 10973 | .tested = TEST_UNTESTED, |
| 10974 | .probe = probe_spi_res1, |
| 10975 | .probe_timing = TIMING_ZERO, |
| 10976 | .block_erasers = |
| 10977 | { |
| 10978 | { |
| 10979 | .eraseblocks = { {32 * 1024, 2} }, |
| 10980 | .block_erase = spi_block_erase_d8, |
| 10981 | }, { |
| 10982 | .eraseblocks = { {64 * 1024, 1} }, |
| 10983 | .block_erase = spi_block_erase_c7, |
| 10984 | } |
| 10985 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10986 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 10987 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10988 | .write = spi_chip_write_1, /* 128 */ |
| 10989 | .read = spi_chip_read, |
| 10990 | .voltage = {2700, 3600}, |
| 10991 | }, |
| 10992 | |
| 10993 | { |
| 10994 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10995 | .name = "M25P05-A", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 10996 | .bustype = BUS_SPI, |
| 10997 | .manufacture_id = ST_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 10998 | .model_id = ST_M25P05A, |
| 10999 | .total_size = 64, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11000 | .page_size = 256, |
| 11001 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11002 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11003 | .probe = probe_spi_rdid, |
| 11004 | .probe_timing = TIMING_ZERO, |
| 11005 | .block_erasers = |
| 11006 | { |
| 11007 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11008 | .eraseblocks = { {32 * 1024, 2} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11009 | .block_erase = spi_block_erase_d8, |
| 11010 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11011 | .eraseblocks = { {64 * 1024, 1} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11012 | .block_erase = spi_block_erase_c7, |
| 11013 | } |
| 11014 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11015 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 11016 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11017 | .write = spi_chip_write_256, |
| 11018 | .read = spi_chip_read, |
| 11019 | .voltage = {2700, 3600}, |
| 11020 | }, |
| 11021 | |
| 11022 | /* The ST M25P10 has the same problem as the M25P05. */ |
| 11023 | { |
| 11024 | .vendor = "Micron/Numonyx/ST", |
| 11025 | .name = "M25P10", |
| 11026 | .bustype = BUS_SPI, |
| 11027 | .manufacture_id = 0, /* Not used. */ |
| 11028 | .model_id = ST_M25P10_RES, |
| 11029 | .total_size = 128, |
| 11030 | .page_size = 256, |
| 11031 | .feature_bits = FEATURE_WRSR_WREN, |
| 11032 | .tested = TEST_UNTESTED, |
| 11033 | .probe = probe_spi_res1, |
| 11034 | .probe_timing = TIMING_ZERO, |
| 11035 | .block_erasers = |
| 11036 | { |
| 11037 | { |
| 11038 | .eraseblocks = { {32 * 1024, 4} }, |
| 11039 | .block_erase = spi_block_erase_d8, |
| 11040 | }, { |
| 11041 | .eraseblocks = { {128 * 1024, 1} }, |
| 11042 | .block_erase = spi_block_erase_c7, |
| 11043 | } |
| 11044 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11045 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 11046 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11047 | .write = spi_chip_write_1, /* 128 */ |
| 11048 | .read = spi_chip_read, |
| 11049 | .voltage = {2700, 3600}, |
| 11050 | }, |
| 11051 | |
| 11052 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11053 | .vendor = "Micron/Numonyx/ST", |
| 11054 | .name = "M25P10-A", |
| 11055 | .bustype = BUS_SPI, |
| 11056 | .manufacture_id = ST_ID, |
| 11057 | .model_id = ST_M25P10A, |
| 11058 | .total_size = 128, |
| 11059 | .page_size = 256, |
| 11060 | .feature_bits = FEATURE_WRSR_WREN, |
| 11061 | .tested = TEST_OK_PREW, |
| 11062 | .probe = probe_spi_rdid, |
| 11063 | .probe_timing = TIMING_ZERO, |
| 11064 | .block_erasers = |
| 11065 | { |
| 11066 | { |
| 11067 | .eraseblocks = { {32 * 1024, 4} }, |
| 11068 | .block_erase = spi_block_erase_d8, |
| 11069 | }, { |
| 11070 | .eraseblocks = { {128 * 1024, 1} }, |
| 11071 | .block_erase = spi_block_erase_c7, |
| 11072 | } |
| 11073 | }, |
| 11074 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
| 11075 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11076 | .write = spi_chip_write_256, |
| 11077 | .read = spi_chip_read, |
| 11078 | .voltage = {2700, 3600}, |
| 11079 | }, |
| 11080 | |
| 11081 | { |
| 11082 | .vendor = "Micron/Numonyx/ST", |
| 11083 | .name = "M25P128", |
| 11084 | .bustype = BUS_SPI, |
| 11085 | .manufacture_id = ST_ID, |
| 11086 | .model_id = ST_M25P128, |
| 11087 | .total_size = 16384, |
| 11088 | .page_size = 256, |
| 11089 | .feature_bits = FEATURE_WRSR_WREN, |
| 11090 | .tested = TEST_OK_PREW, |
| 11091 | .probe = probe_spi_rdid, |
| 11092 | .probe_timing = TIMING_ZERO, |
| 11093 | .block_erasers = |
| 11094 | { |
| 11095 | { |
| 11096 | .eraseblocks = { {256 * 1024, 64} }, |
| 11097 | .block_erase = spi_block_erase_d8, |
| 11098 | }, { |
| 11099 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 11100 | .block_erase = spi_block_erase_c7, |
| 11101 | } |
| 11102 | }, |
| 11103 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
| 11104 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11105 | .write = spi_chip_write_256, |
| 11106 | .read = spi_chip_read, |
| 11107 | .voltage = {2700, 3600}, |
| 11108 | }, |
| 11109 | |
| 11110 | { |
| 11111 | .vendor = "Micron/Numonyx/ST", |
| 11112 | .name = "M25P16", |
| 11113 | .bustype = BUS_SPI, |
| 11114 | .manufacture_id = ST_ID, |
| 11115 | .model_id = ST_M25P16, |
| 11116 | .total_size = 2048, |
| 11117 | .page_size = 256, |
| 11118 | .feature_bits = FEATURE_WRSR_WREN, |
| 11119 | .tested = TEST_OK_PREW, |
| 11120 | .probe = probe_spi_rdid, |
| 11121 | .probe_timing = TIMING_ZERO, |
| 11122 | .block_erasers = |
| 11123 | { |
| 11124 | { |
| 11125 | .eraseblocks = { {64 * 1024, 32} }, |
| 11126 | .block_erase = spi_block_erase_d8, |
| 11127 | }, { |
| 11128 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 11129 | .block_erase = spi_block_erase_c7, |
| 11130 | } |
| 11131 | }, |
| 11132 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
| 11133 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11134 | .write = spi_chip_write_256, |
| 11135 | .read = spi_chip_read, |
| 11136 | .voltage = {2700, 3600}, |
| 11137 | }, |
| 11138 | |
| 11139 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11140 | .vendor = "Micron/Numonyx/ST", /* Numonyx */ |
| 11141 | .name = "M25P20", |
| 11142 | .bustype = BUS_SPI, |
| 11143 | .manufacture_id = ST_ID, |
| 11144 | .model_id = ST_M25P20, |
| 11145 | .total_size = 256, |
| 11146 | .page_size = 256, |
| 11147 | .feature_bits = FEATURE_WRSR_WREN, |
| 11148 | .tested = TEST_UNTESTED, |
| 11149 | .probe = probe_spi_rdid, |
| 11150 | .probe_timing = TIMING_ZERO, |
| 11151 | .block_erasers = |
| 11152 | { |
| 11153 | { |
| 11154 | .eraseblocks = { {64 * 1024, 4} }, |
| 11155 | .block_erase = spi_block_erase_d8, |
| 11156 | }, { |
| 11157 | .eraseblocks = { {256 * 1024, 1} }, |
| 11158 | .block_erase = spi_block_erase_c7, |
| 11159 | } |
| 11160 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11161 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11162 | .unlock = spi_disable_blockprotect, |
| 11163 | .write = spi_chip_write_256, |
| 11164 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11165 | .voltage = {2700, 3600}, |
| 11166 | }, |
| 11167 | |
| 11168 | { |
| 11169 | .vendor = "Micron/Numonyx/ST", |
| 11170 | .name = "M25P20-old", |
| 11171 | .bustype = BUS_SPI, |
| 11172 | .manufacture_id = 0, /* Not used. */ |
| 11173 | .model_id = ST_M25P20_RES, |
| 11174 | .total_size = 256, |
| 11175 | .page_size = 256, |
| 11176 | .feature_bits = FEATURE_WRSR_WREN, |
| 11177 | .tested = TEST_OK_PREW, |
| 11178 | .probe = probe_spi_res1, |
| 11179 | .probe_timing = TIMING_ZERO, |
| 11180 | .block_erasers = |
| 11181 | { |
| 11182 | { |
| 11183 | .eraseblocks = { {64 * 1024, 4} }, |
| 11184 | .block_erase = spi_block_erase_d8, |
| 11185 | }, { |
| 11186 | .eraseblocks = { {256 * 1024, 1} }, |
| 11187 | .block_erase = spi_block_erase_c7, |
| 11188 | } |
| 11189 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11190 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11191 | .unlock = spi_disable_blockprotect, |
| 11192 | .write = spi_chip_write_256, |
| 11193 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11194 | .voltage = {2700, 3600}, |
| 11195 | }, |
| 11196 | |
| 11197 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11198 | .vendor = "Micron/Numonyx/ST", |
| 11199 | .name = "M25P32", |
| 11200 | .bustype = BUS_SPI, |
| 11201 | .manufacture_id = ST_ID, |
| 11202 | .model_id = ST_M25P32, |
| 11203 | .total_size = 4096, |
| 11204 | .page_size = 256, |
| 11205 | .feature_bits = FEATURE_WRSR_WREN, |
| 11206 | .tested = TEST_OK_PREW, |
| 11207 | .probe = probe_spi_rdid, |
| 11208 | .probe_timing = TIMING_ZERO, |
| 11209 | .block_erasers = |
| 11210 | { |
| 11211 | { |
| 11212 | .eraseblocks = { {64 * 1024, 64} }, |
| 11213 | .block_erase = spi_block_erase_d8, |
| 11214 | }, { |
| 11215 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 11216 | .block_erase = spi_block_erase_c7, |
| 11217 | } |
| 11218 | }, |
| 11219 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
| 11220 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 11221 | .write = spi_chip_write_256, |
| 11222 | .read = spi_chip_read, |
| 11223 | .voltage = {2700, 3600}, |
| 11224 | }, |
| 11225 | |
| 11226 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11227 | .vendor = "Micron/Numonyx/ST", /* Numonyx */ |
| 11228 | .name = "M25P40", |
| 11229 | .bustype = BUS_SPI, |
| 11230 | .manufacture_id = ST_ID, |
| 11231 | .model_id = ST_M25P40, |
| 11232 | .total_size = 512, |
| 11233 | .page_size = 256, |
| 11234 | .feature_bits = FEATURE_WRSR_WREN, |
| 11235 | .tested = TEST_OK_PREW, |
| 11236 | .probe = probe_spi_rdid, |
| 11237 | .probe_timing = TIMING_ZERO, |
| 11238 | .block_erasers = |
| 11239 | { |
| 11240 | { |
| 11241 | .eraseblocks = { {64 * 1024, 8} }, |
| 11242 | .block_erase = spi_block_erase_d8, |
| 11243 | }, { |
| 11244 | .eraseblocks = { {512 * 1024, 1} }, |
| 11245 | .block_erase = spi_block_erase_c7, |
| 11246 | } |
| 11247 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11248 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 11249 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11250 | .write = spi_chip_write_256, |
| 11251 | .read = spi_chip_read, |
| 11252 | .voltage = {2700, 3600}, |
| 11253 | }, |
| 11254 | |
| 11255 | { |
| 11256 | .vendor = "Micron/Numonyx/ST", |
| 11257 | .name = "M25P40-old", |
| 11258 | .bustype = BUS_SPI, |
| 11259 | .manufacture_id = 0, /* Not used. */ |
| 11260 | .model_id = ST_M25P40_RES, |
| 11261 | .total_size = 512, |
| 11262 | .page_size = 256, |
| 11263 | .feature_bits = FEATURE_WRSR_WREN, |
| 11264 | .tested = TEST_UNTESTED, |
| 11265 | .probe = probe_spi_res1, |
| 11266 | .probe_timing = TIMING_ZERO, |
| 11267 | .block_erasers = |
| 11268 | { |
| 11269 | { |
| 11270 | .eraseblocks = { {64 * 1024, 8} }, |
| 11271 | .block_erase = spi_block_erase_d8, |
| 11272 | }, { |
| 11273 | .eraseblocks = { {512 * 1024, 1} }, |
| 11274 | .block_erase = spi_block_erase_c7, |
| 11275 | } |
| 11276 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11277 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 11278 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11279 | .write = spi_chip_write_256, |
| 11280 | .read = spi_chip_read, |
| 11281 | }, |
| 11282 | |
| 11283 | { |
| 11284 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11285 | .name = "M25P64", |
| 11286 | .bustype = BUS_SPI, |
| 11287 | .manufacture_id = ST_ID, |
| 11288 | .model_id = ST_M25P64, |
| 11289 | .total_size = 8192, |
| 11290 | .page_size = 256, |
| 11291 | .feature_bits = FEATURE_WRSR_WREN, |
| 11292 | .tested = TEST_OK_PREW, |
| 11293 | .probe = probe_spi_rdid, |
| 11294 | .probe_timing = TIMING_ZERO, |
| 11295 | .block_erasers = |
| 11296 | { |
| 11297 | { |
| 11298 | .eraseblocks = { {64 * 1024, 128} }, |
| 11299 | .block_erase = spi_block_erase_d8, |
| 11300 | }, { |
| 11301 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 11302 | .block_erase = spi_block_erase_c7, |
| 11303 | } |
| 11304 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11305 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 11306 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11307 | .write = spi_chip_write_256, |
| 11308 | .read = spi_chip_read, |
| 11309 | .voltage = {2700, 3600}, |
| 11310 | }, |
| 11311 | |
| 11312 | { |
| 11313 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11314 | .name = "M25P80", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11315 | .bustype = BUS_SPI, |
| 11316 | .manufacture_id = ST_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11317 | .model_id = ST_M25P80, |
| 11318 | .total_size = 1024, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11319 | .page_size = 256, |
| 11320 | .feature_bits = FEATURE_WRSR_WREN, |
| 11321 | .tested = TEST_OK_PREW, |
| 11322 | .probe = probe_spi_rdid, |
| 11323 | .probe_timing = TIMING_ZERO, |
| 11324 | .block_erasers = |
| 11325 | { |
| 11326 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11327 | .eraseblocks = { {64 * 1024, 16} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11328 | .block_erase = spi_block_erase_d8, |
| 11329 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11330 | .eraseblocks = { {1024 * 1024, 1} }, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11331 | .block_erase = spi_block_erase_c7, |
| 11332 | } |
| 11333 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11334 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 11335 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11336 | .write = spi_chip_write_256, |
| 11337 | .read = spi_chip_read, |
| 11338 | .voltage = {2700, 3600}, |
| 11339 | }, |
| 11340 | |
| 11341 | { |
| 11342 | .vendor = "Micron/Numonyx/ST", |
| 11343 | .name = "M25PE10", |
| 11344 | .bustype = BUS_SPI, |
| 11345 | .manufacture_id = ST_ID, |
| 11346 | .model_id = ST_M25PE10, |
| 11347 | .total_size = 128, |
| 11348 | .page_size = 256, |
| 11349 | .feature_bits = FEATURE_WRSR_WREN, |
| 11350 | .tested = TEST_UNTESTED, |
| 11351 | .probe = probe_spi_rdid, |
| 11352 | .probe_timing = TIMING_ZERO, |
| 11353 | .block_erasers = |
| 11354 | { |
| 11355 | { |
| 11356 | .eraseblocks = { {4 * 1024, 32} }, |
| 11357 | .block_erase = spi_block_erase_20, |
| 11358 | }, { |
| 11359 | .eraseblocks = { {64 * 1024, 2} }, |
| 11360 | .block_erase = spi_block_erase_d8, |
| 11361 | }, { |
| 11362 | .eraseblocks = { {128 * 1024, 1} }, |
| 11363 | .block_erase = spi_block_erase_c7, |
| 11364 | } |
| 11365 | }, |
| 11366 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 11367 | .unlock = spi_disable_blockprotect, |
| 11368 | .write = spi_chip_write_256, |
| 11369 | .read = spi_chip_read, |
| 11370 | .voltage = {2700, 3600}, |
| 11371 | }, |
| 11372 | |
| 11373 | { |
| 11374 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11375 | .name = "M25PE16", |
| 11376 | .bustype = BUS_SPI, |
| 11377 | .manufacture_id = ST_ID, |
| 11378 | .model_id = ST_M25PE16, |
| 11379 | .total_size = 2048, |
| 11380 | .page_size = 256, |
| 11381 | .feature_bits = FEATURE_WRSR_WREN, |
| 11382 | .tested = TEST_UNTESTED, |
| 11383 | .probe = probe_spi_rdid, |
| 11384 | .probe_timing = TIMING_ZERO, |
| 11385 | .block_erasers = |
| 11386 | { |
| 11387 | { |
| 11388 | .eraseblocks = { {4 * 1024, 512} }, |
| 11389 | .block_erase = spi_block_erase_20, |
| 11390 | }, { |
| 11391 | .eraseblocks = { {64 * 1024, 32} }, |
| 11392 | .block_erase = spi_block_erase_d8, |
| 11393 | }, { |
| 11394 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 11395 | .block_erase = spi_block_erase_c7, |
| 11396 | } |
| 11397 | }, |
| 11398 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 11399 | .unlock = spi_disable_blockprotect, |
| 11400 | .write = spi_chip_write_256, |
| 11401 | .read = spi_chip_read, |
| 11402 | .voltage = {2700, 3600}, |
| 11403 | }, |
| 11404 | |
| 11405 | { |
| 11406 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11407 | .name = "M25PE20", |
| 11408 | .bustype = BUS_SPI, |
| 11409 | .manufacture_id = ST_ID, |
| 11410 | .model_id = ST_M25PE20, |
| 11411 | .total_size = 256, |
| 11412 | .page_size = 256, |
| 11413 | .feature_bits = FEATURE_WRSR_WREN, |
| 11414 | .tested = TEST_UNTESTED, |
| 11415 | .probe = probe_spi_rdid, |
| 11416 | .probe_timing = TIMING_ZERO, |
| 11417 | .block_erasers = |
| 11418 | { |
| 11419 | { |
| 11420 | .eraseblocks = { {4 * 1024, 64} }, |
| 11421 | .block_erase = spi_block_erase_20, |
| 11422 | }, { |
| 11423 | .eraseblocks = { {64 * 1024, 4} }, |
| 11424 | .block_erase = spi_block_erase_d8, |
| 11425 | }, { |
| 11426 | .eraseblocks = { {256 * 1024, 1} }, |
| 11427 | .block_erase = spi_block_erase_c7, |
| 11428 | } |
| 11429 | }, |
| 11430 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 11431 | .unlock = spi_disable_blockprotect, |
| 11432 | .write = spi_chip_write_256, |
| 11433 | .read = spi_chip_read, |
| 11434 | .voltage = {2700, 3600}, |
| 11435 | }, |
| 11436 | |
| 11437 | { |
| 11438 | .vendor = "Micron/Numonyx/ST", |
| 11439 | .name = "M25PE40", |
| 11440 | .bustype = BUS_SPI, |
| 11441 | .manufacture_id = ST_ID, |
| 11442 | .model_id = ST_M25PE40, |
| 11443 | .total_size = 512, |
| 11444 | .page_size = 256, |
| 11445 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11446 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11447 | .probe = probe_spi_rdid, |
| 11448 | .probe_timing = TIMING_ZERO, |
| 11449 | .block_erasers = |
| 11450 | { |
| 11451 | { |
| 11452 | .eraseblocks = { {4 * 1024, 128} }, |
| 11453 | .block_erase = spi_block_erase_20, |
| 11454 | }, { |
| 11455 | .eraseblocks = { {64 * 1024, 8} }, |
| 11456 | .block_erase = spi_block_erase_d8, |
| 11457 | }, { |
| 11458 | .eraseblocks = { {512 * 1024, 1} }, |
| 11459 | .block_erase = spi_block_erase_c7, |
| 11460 | } |
| 11461 | }, |
| 11462 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 11463 | .unlock = spi_disable_blockprotect, |
| 11464 | .write = spi_chip_write_256, |
| 11465 | .read = spi_chip_read, |
| 11466 | .voltage = {2700, 3600}, |
| 11467 | }, |
| 11468 | |
| 11469 | { |
| 11470 | .vendor = "Micron/Numonyx/ST", |
| 11471 | .name = "M25PE80", |
| 11472 | .bustype = BUS_SPI, |
| 11473 | .manufacture_id = ST_ID, |
| 11474 | .model_id = ST_M25PE80, |
| 11475 | .total_size = 1024, |
| 11476 | .page_size = 256, |
| 11477 | .feature_bits = FEATURE_WRSR_WREN, |
| 11478 | .tested = TEST_OK_PREW, |
| 11479 | .probe = probe_spi_rdid, |
| 11480 | .probe_timing = TIMING_ZERO, |
| 11481 | .block_erasers = |
| 11482 | { |
| 11483 | { |
| 11484 | .eraseblocks = { {4 * 1024, 256} }, |
| 11485 | .block_erase = spi_block_erase_20, |
| 11486 | }, { |
| 11487 | .eraseblocks = { {64 * 1024, 16} }, |
| 11488 | .block_erase = spi_block_erase_d8, |
| 11489 | }, { |
| 11490 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11491 | .block_erase = spi_block_erase_c7, |
| 11492 | } |
| 11493 | }, |
| 11494 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 11495 | .unlock = spi_disable_blockprotect, |
| 11496 | .write = spi_chip_write_256, |
| 11497 | .read = spi_chip_read, |
| 11498 | .voltage = {2700, 3600}, |
| 11499 | }, |
| 11500 | |
| 11501 | { |
| 11502 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11503 | .name = "M25PX16", |
| 11504 | .bustype = BUS_SPI, |
| 11505 | .manufacture_id = ST_ID, |
| 11506 | .model_id = ST_M25PX16, |
| 11507 | .total_size = 2048, |
| 11508 | .page_size = 256, |
| 11509 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 11510 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11511 | .tested = TEST_OK_PREW, |
| 11512 | .probe = probe_spi_rdid, |
| 11513 | .probe_timing = TIMING_ZERO, |
| 11514 | .block_erasers = |
| 11515 | { |
| 11516 | { |
| 11517 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 11518 | .block_erase = spi_block_erase_20, |
| 11519 | }, { |
| 11520 | .eraseblocks = { {64 * 1024, 32} }, |
| 11521 | .block_erase = spi_block_erase_d8, |
| 11522 | }, { |
| 11523 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 11524 | .block_erase = spi_block_erase_c7, |
| 11525 | } |
| 11526 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11527 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11528 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 11529 | .write = spi_chip_write_256, |
| 11530 | .read = spi_chip_read, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 11531 | .voltage = {2300, 3600}, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11532 | }, |
| 11533 | |
| 11534 | { |
| 11535 | .vendor = "Micron/Numonyx/ST", |
| 11536 | .name = "M25PX32", |
| 11537 | .bustype = BUS_SPI, |
| 11538 | .manufacture_id = ST_ID, |
| 11539 | .model_id = ST_M25PX32, |
| 11540 | .total_size = 4096, |
| 11541 | .page_size = 256, |
| 11542 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 11543 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11544 | .tested = TEST_OK_PRE, |
| 11545 | .probe = probe_spi_rdid, |
| 11546 | .probe_timing = TIMING_ZERO, |
| 11547 | .block_erasers = |
| 11548 | { |
| 11549 | { |
| 11550 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 11551 | .block_erase = spi_block_erase_20, |
| 11552 | }, { |
| 11553 | .eraseblocks = { {64 * 1024, 64} }, |
| 11554 | .block_erase = spi_block_erase_d8, |
| 11555 | }, { |
| 11556 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 11557 | .block_erase = spi_block_erase_c7, |
| 11558 | } |
| 11559 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11560 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11561 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 11562 | .write = spi_chip_write_256, |
| 11563 | .read = spi_chip_read, |
| 11564 | .voltage = {2700, 3600}, |
| 11565 | }, |
| 11566 | |
| 11567 | { |
| 11568 | .vendor = "Micron/Numonyx/ST", |
| 11569 | .name = "M25PX64", |
| 11570 | .bustype = BUS_SPI, |
| 11571 | .manufacture_id = ST_ID, |
| 11572 | .model_id = ST_M25PX64, |
| 11573 | .total_size = 8192, |
| 11574 | .page_size = 256, |
| 11575 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 11576 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 11577 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11578 | .probe = probe_spi_rdid, |
| 11579 | .probe_timing = TIMING_ZERO, |
| 11580 | .block_erasers = |
| 11581 | { |
| 11582 | { |
| 11583 | .eraseblocks = { { 4 * 1024, 2048 } }, |
| 11584 | .block_erase = spi_block_erase_20, |
| 11585 | }, { |
| 11586 | .eraseblocks = { {64 * 1024, 128} }, |
| 11587 | .block_erase = spi_block_erase_d8, |
| 11588 | }, { |
| 11589 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 11590 | .block_erase = spi_block_erase_c7, |
| 11591 | } |
| 11592 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 11593 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11594 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 11595 | .write = spi_chip_write_256, |
| 11596 | .read = spi_chip_read, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 11597 | .voltage = {2700, 3600}, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11598 | }, |
| 11599 | |
| 11600 | { |
| 11601 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11602 | .name = "M25PX80", |
| 11603 | .bustype = BUS_SPI, |
| 11604 | .manufacture_id = ST_ID, |
| 11605 | .model_id = ST_M25PX80, |
| 11606 | .total_size = 1024, |
| 11607 | .page_size = 256, |
| 11608 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11609 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11610 | .tested = TEST_OK_PREW, |
| 11611 | .probe = probe_spi_rdid, |
| 11612 | .probe_timing = TIMING_ZERO, |
| 11613 | .block_erasers = |
| 11614 | { |
| 11615 | { |
| 11616 | .eraseblocks = { { 4 * 1024, 256 } }, |
| 11617 | .block_erase = spi_block_erase_20, |
| 11618 | }, { |
| 11619 | .eraseblocks = { {64 * 1024, 16} }, |
| 11620 | .block_erase = spi_block_erase_d8, |
| 11621 | }, { |
| 11622 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11623 | .block_erase = spi_block_erase_c7, |
| 11624 | } |
| 11625 | }, |
| 11626 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
| 11627 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 11628 | .write = spi_chip_write_256, |
| 11629 | .read = spi_chip_read, |
| 11630 | .voltage = {2700, 3600}, |
| 11631 | }, |
| 11632 | |
| 11633 | { |
| 11634 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11635 | .name = "M45PE10", |
| 11636 | .bustype = BUS_SPI, |
| 11637 | .manufacture_id = ST_ID, |
| 11638 | .model_id = ST_M45PE10, |
| 11639 | .total_size = 128, |
| 11640 | .page_size = 256, |
| 11641 | .tested = TEST_UNTESTED, |
| 11642 | .probe = probe_spi_rdid, |
| 11643 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 11644 | .block_erasers = |
| 11645 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11646 | { |
| 11647 | .eraseblocks = { {256, 512} }, |
| 11648 | .block_erase = spi_block_erase_db, |
| 11649 | }, { |
| 11650 | .eraseblocks = { {64 * 1024, 2} }, |
| 11651 | .block_erase = spi_block_erase_d8, |
| 11652 | } |
| 11653 | }, |
| 11654 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 11655 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 11656 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 11657 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11658 | .voltage = {2700, 3600}, |
| 11659 | }, |
| 11660 | |
| 11661 | { |
| 11662 | .vendor = "Micron/Numonyx/ST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 11663 | .name = "M45PE16", |
| 11664 | .bustype = BUS_SPI, |
| 11665 | .manufacture_id = ST_ID, |
| 11666 | .model_id = ST_M45PE16, |
| 11667 | .total_size = 2048, |
| 11668 | .page_size = 256, |
| 11669 | .tested = TEST_UNTESTED, |
| 11670 | .probe = probe_spi_rdid, |
| 11671 | .probe_timing = TIMING_ZERO, |
| 11672 | .block_erasers = |
| 11673 | { |
| 11674 | { |
| 11675 | .eraseblocks = { {256, 8192} }, |
| 11676 | .block_erase = spi_block_erase_db, |
| 11677 | }, { |
| 11678 | .eraseblocks = { {64 * 1024, 32} }, |
| 11679 | .block_erase = spi_block_erase_d8, |
| 11680 | } |
| 11681 | }, |
| 11682 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 11683 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 11684 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 11685 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11686 | .voltage = {2700, 3600}, |
| 11687 | }, |
| 11688 | |
| 11689 | { |
| 11690 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11691 | .name = "M45PE20", |
| 11692 | .bustype = BUS_SPI, |
| 11693 | .manufacture_id = ST_ID, |
| 11694 | .model_id = ST_M45PE20, |
| 11695 | .total_size = 256, |
| 11696 | .page_size = 256, |
| 11697 | .tested = TEST_UNTESTED, |
| 11698 | .probe = probe_spi_rdid, |
| 11699 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 11700 | .block_erasers = |
| 11701 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11702 | { |
| 11703 | .eraseblocks = { {256, 1024} }, |
| 11704 | .block_erase = spi_block_erase_db, |
| 11705 | }, { |
| 11706 | .eraseblocks = { {64 * 1024, 4} }, |
| 11707 | .block_erase = spi_block_erase_d8, |
| 11708 | } |
| 11709 | }, |
| 11710 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 11711 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 11712 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 11713 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11714 | .voltage = {2700, 3600}, |
| 11715 | }, |
| 11716 | |
| 11717 | { |
| 11718 | .vendor = "Micron/Numonyx/ST", |
| 11719 | .name = "M45PE40", |
| 11720 | .bustype = BUS_SPI, |
| 11721 | .manufacture_id = ST_ID, |
| 11722 | .model_id = ST_M45PE40, |
| 11723 | .total_size = 512, |
| 11724 | .page_size = 256, |
| 11725 | .tested = TEST_UNTESTED, |
| 11726 | .probe = probe_spi_rdid, |
| 11727 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 11728 | .block_erasers = |
| 11729 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11730 | { |
| 11731 | .eraseblocks = { {256, 2048} }, |
| 11732 | .block_erase = spi_block_erase_db, |
| 11733 | }, { |
| 11734 | .eraseblocks = { {64 * 1024, 8} }, |
| 11735 | .block_erase = spi_block_erase_d8, |
| 11736 | } |
| 11737 | }, |
| 11738 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 11739 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 11740 | .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] | 11741 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11742 | .voltage = {2700, 3600}, |
| 11743 | }, |
| 11744 | |
| 11745 | { |
| 11746 | .vendor = "Micron/Numonyx/ST", |
| 11747 | .name = "M45PE80", |
| 11748 | .bustype = BUS_SPI, |
| 11749 | .manufacture_id = ST_ID, |
| 11750 | .model_id = ST_M45PE80, |
| 11751 | .total_size = 1024, |
| 11752 | .page_size = 256, |
| 11753 | .tested = TEST_UNTESTED, |
| 11754 | .probe = probe_spi_rdid, |
| 11755 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 11756 | .block_erasers = |
| 11757 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11758 | { |
| 11759 | .eraseblocks = { {256, 4096} }, |
| 11760 | .block_erase = spi_block_erase_db, |
| 11761 | }, { |
| 11762 | .eraseblocks = { {64 * 1024, 16} }, |
| 11763 | .block_erase = spi_block_erase_d8, |
| 11764 | } |
| 11765 | }, |
| 11766 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 11767 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 11768 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 11769 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11770 | .voltage = {2700, 3600}, |
| 11771 | }, |
| 11772 | |
| 11773 | { |
| 11774 | .vendor = "Micron/Numonyx/ST", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11775 | .name = "N25Q00A..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11776 | .bustype = BUS_SPI, |
| 11777 | .manufacture_id = ST_ID, |
| 11778 | .model_id = ST_N25Q00A__1G, |
| 11779 | .total_size = 131072, |
| 11780 | .page_size = 256, |
| 11781 | /* supports SFDP */ |
| 11782 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11783 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11784 | .tested = TEST_UNTESTED, |
| 11785 | .probe = probe_spi_rdid, |
| 11786 | .probe_timing = TIMING_ZERO, |
| 11787 | .block_erasers = |
| 11788 | { |
| 11789 | { |
| 11790 | .eraseblocks = { {4 * 1024, 32768} }, |
| 11791 | .block_erase = spi_block_erase_21, |
| 11792 | }, { |
| 11793 | .eraseblocks = { {4 * 1024, 32768} }, |
| 11794 | .block_erase = spi_block_erase_20, |
| 11795 | }, { |
| 11796 | .eraseblocks = { {64 * 1024, 2048} }, |
| 11797 | .block_erase = spi_block_erase_dc, |
| 11798 | }, { |
| 11799 | .eraseblocks = { {64 * 1024, 2048} }, |
| 11800 | .block_erase = spi_block_erase_d8, |
| 11801 | }, { |
| 11802 | .eraseblocks = { {32768 * 1024, 4} }, |
| 11803 | .block_erase = spi_block_erase_c4, |
| 11804 | } |
| 11805 | }, |
| 11806 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11807 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11808 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11809 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11810 | .voltage = {1700, 2000}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 11811 | .prepare_access = spi_prepare_io, |
| 11812 | .finish_access = spi_finish_io, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11813 | }, |
| 11814 | |
| 11815 | { |
| 11816 | .vendor = "Micron/Numonyx/ST", |
| 11817 | .name = "N25Q00A..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */ |
| 11818 | .bustype = BUS_SPI, |
| 11819 | .manufacture_id = ST_ID, |
| 11820 | .model_id = ST_N25Q00A__3G, |
| 11821 | .total_size = 131072, |
| 11822 | .page_size = 256, |
| 11823 | /* supports SFDP */ |
| 11824 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11825 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 11826 | .tested = TEST_UNTESTED, |
| 11827 | .probe = probe_spi_rdid, |
| 11828 | .probe_timing = TIMING_ZERO, |
| 11829 | .block_erasers = |
| 11830 | { |
| 11831 | { |
| 11832 | .eraseblocks = { {4 * 1024, 32768} }, |
| 11833 | .block_erase = spi_block_erase_21, |
| 11834 | }, { |
| 11835 | .eraseblocks = { {4 * 1024, 32768} }, |
| 11836 | .block_erase = spi_block_erase_20, |
| 11837 | }, { |
| 11838 | .eraseblocks = { {64 * 1024, 2048} }, |
| 11839 | .block_erase = spi_block_erase_dc, |
| 11840 | }, { |
| 11841 | .eraseblocks = { {64 * 1024, 2048} }, |
| 11842 | .block_erase = spi_block_erase_d8, |
| 11843 | }, { |
| 11844 | .eraseblocks = { {32768 * 1024, 4} }, |
| 11845 | .block_erase = spi_block_erase_c4, |
| 11846 | } |
| 11847 | }, |
| 11848 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11849 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11850 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11851 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11852 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 11853 | .prepare_access = spi_prepare_io, |
| 11854 | .finish_access = spi_finish_io, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 11855 | }, |
| 11856 | |
| 11857 | { |
| 11858 | .vendor = "Micron/Numonyx/ST", |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11859 | .name = "N25Q016", |
| 11860 | .bustype = BUS_SPI, |
| 11861 | .manufacture_id = ST_ID, |
| 11862 | .model_id = ST_N25Q016__1E, |
| 11863 | .total_size = 2048, |
| 11864 | .page_size = 256, |
| 11865 | /* supports SFDP */ |
| 11866 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11867 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11868 | .tested = TEST_UNTESTED, |
| 11869 | .probe = probe_spi_rdid, |
| 11870 | .probe_timing = TIMING_ZERO, |
| 11871 | .block_erasers = |
| 11872 | { |
| 11873 | { |
| 11874 | .eraseblocks = { {4 * 1024, 512} }, |
| 11875 | .block_erase = spi_block_erase_20, |
| 11876 | }, { |
| 11877 | .eraseblocks = { {32 * 1024, 64} }, |
| 11878 | .block_erase = spi_block_erase_52, |
| 11879 | }, { |
| 11880 | .eraseblocks = { {64 * 1024, 32} }, |
| 11881 | .block_erase = spi_block_erase_d8, |
| 11882 | }, { |
| 11883 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 11884 | .block_erase = spi_block_erase_c7, |
| 11885 | } |
| 11886 | }, |
| 11887 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11888 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11889 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11890 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11891 | .voltage = {1700, 2000}, |
| 11892 | }, |
| 11893 | |
| 11894 | { |
| 11895 | .vendor = "Micron/Numonyx/ST", |
| 11896 | .name = "N25Q032..1E", |
| 11897 | .bustype = BUS_SPI, |
| 11898 | .manufacture_id = ST_ID, |
| 11899 | .model_id = ST_N25Q032__1E, |
| 11900 | .total_size = 4096, |
| 11901 | .page_size = 256, |
| 11902 | /* supports SFDP */ |
| 11903 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11904 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11905 | .tested = TEST_UNTESTED, |
| 11906 | .probe = probe_spi_rdid, |
| 11907 | .probe_timing = TIMING_ZERO, |
| 11908 | .block_erasers = |
| 11909 | { |
| 11910 | { |
| 11911 | .eraseblocks = { {4 * 1024, 1024} }, |
| 11912 | .block_erase = spi_block_erase_20, |
| 11913 | }, { |
| 11914 | .eraseblocks = { {64 * 1024, 64} }, |
| 11915 | .block_erase = spi_block_erase_d8, |
| 11916 | }, { |
| 11917 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 11918 | .block_erase = spi_block_erase_c7, |
| 11919 | } |
| 11920 | }, |
| 11921 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11922 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11923 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11924 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11925 | .voltage = {1700, 2000}, |
Sergii Dmytruk | d5ba24c | 2022-07-25 00:28:35 +0300 | [diff] [blame] | 11926 | .reg_bits = |
| 11927 | { |
| 11928 | /* |
| 11929 | * There is also a volatile lock register per 64KiB sector, which is not |
| 11930 | * mutually exclusive with BP-based protection. |
| 11931 | */ |
| 11932 | .srp = {STATUS1, 7, RW}, |
| 11933 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 11934 | .tb = {STATUS1, 5, RW}, |
| 11935 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 11936 | .wp_write_cfg = spi_wp_write_cfg, |
| 11937 | .wp_read_cfg = spi_wp_read_cfg, |
| 11938 | .wp_get_ranges = spi_wp_get_available_ranges, |
Sergii Dmytruk | d5ba24c | 2022-07-25 00:28:35 +0300 | [diff] [blame] | 11939 | .decode_range = decode_range_spi25, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11940 | }, |
| 11941 | |
| 11942 | { |
| 11943 | .vendor = "Micron/Numonyx/ST", |
| 11944 | .name = "N25Q032..3E", |
| 11945 | .bustype = BUS_SPI, |
| 11946 | .manufacture_id = ST_ID, |
| 11947 | .model_id = ST_N25Q032__3E, |
| 11948 | .total_size = 4096, |
| 11949 | .page_size = 256, |
| 11950 | /* supports SFDP */ |
| 11951 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 11952 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11953 | .tested = TEST_OK_PREW, |
| 11954 | .probe = probe_spi_rdid, |
| 11955 | .probe_timing = TIMING_ZERO, |
| 11956 | .block_erasers = |
| 11957 | { |
| 11958 | { |
| 11959 | .eraseblocks = { {4 * 1024, 1024} }, |
| 11960 | .block_erase = spi_block_erase_20, |
| 11961 | }, { |
| 11962 | .eraseblocks = { {64 * 1024, 64} }, |
| 11963 | .block_erase = spi_block_erase_d8, |
| 11964 | }, { |
| 11965 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 11966 | .block_erase = spi_block_erase_c7, |
| 11967 | } |
| 11968 | }, |
| 11969 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 11970 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 11971 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11972 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11973 | .voltage = {2700, 3600}, |
Sergii Dmytruk | d5ba24c | 2022-07-25 00:28:35 +0300 | [diff] [blame] | 11974 | .reg_bits = |
| 11975 | { |
| 11976 | /* |
| 11977 | * There is also a volatile lock register per 64KiB sector, which is not |
| 11978 | * mutually exclusive with BP-based protection. |
| 11979 | */ |
| 11980 | .srp = {STATUS1, 7, RW}, |
| 11981 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 11982 | .tb = {STATUS1, 5, RW}, |
| 11983 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 11984 | .wp_write_cfg = spi_wp_write_cfg, |
| 11985 | .wp_read_cfg = spi_wp_read_cfg, |
| 11986 | .wp_get_ranges = spi_wp_get_available_ranges, |
Sergii Dmytruk | d5ba24c | 2022-07-25 00:28:35 +0300 | [diff] [blame] | 11987 | .decode_range = decode_range_spi25, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 11988 | }, |
| 11989 | |
| 11990 | { |
| 11991 | .vendor = "Micron/Numonyx/ST", |
| 11992 | .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 11993 | .bustype = BUS_SPI, |
| 11994 | .manufacture_id = ST_ID, |
| 11995 | .model_id = ST_N25Q064__1E, |
| 11996 | .total_size = 8192, |
| 11997 | .page_size = 256, |
| 11998 | /* supports SFDP */ |
| 11999 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 12000 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 12001 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 12002 | .probe = probe_spi_rdid, |
| 12003 | .probe_timing = TIMING_ZERO, |
| 12004 | .block_erasers = |
| 12005 | { |
| 12006 | { |
| 12007 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 12008 | .block_erase = spi_block_erase_20, |
| 12009 | }, { |
| 12010 | .eraseblocks = { {64 * 1024, 128} }, |
| 12011 | .block_erase = spi_block_erase_d8, |
| 12012 | }, { |
| 12013 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 12014 | .block_erase = spi_block_erase_c7, |
| 12015 | } |
| 12016 | }, |
| 12017 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 12018 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 12019 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12020 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12021 | .voltage = {1700, 2000}, |
Sergii Dmytruk | d5ba24c | 2022-07-25 00:28:35 +0300 | [diff] [blame] | 12022 | .reg_bits = |
| 12023 | { |
| 12024 | /* |
| 12025 | * There is also a volatile lock register per 64KiB sector, which is not |
| 12026 | * mutually exclusive with BP-based protection. |
| 12027 | */ |
| 12028 | .srp = {STATUS1, 7, RW}, |
| 12029 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}}, |
| 12030 | .tb = {STATUS1, 5, RW}, |
| 12031 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 12032 | .wp_write_cfg = spi_wp_write_cfg, |
| 12033 | .wp_read_cfg = spi_wp_read_cfg, |
| 12034 | .wp_get_ranges = spi_wp_get_available_ranges, |
Sergii Dmytruk | d5ba24c | 2022-07-25 00:28:35 +0300 | [diff] [blame] | 12035 | .decode_range = decode_range_spi25, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 12036 | }, |
| 12037 | |
| 12038 | { |
| 12039 | .vendor = "Micron/Numonyx/ST", |
| 12040 | .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 12041 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 12042 | .manufacture_id = ST_ID, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 12043 | .model_id = ST_N25Q064__3E, |
| 12044 | .total_size = 8192, |
| 12045 | .page_size = 256, |
| 12046 | /* supports SFDP */ |
| 12047 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 12048 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12049 | .tested = TEST_OK_PREW, |
| 12050 | .probe = probe_spi_rdid, |
| 12051 | .probe_timing = TIMING_ZERO, |
| 12052 | .block_erasers = |
| 12053 | { |
| 12054 | { |
| 12055 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 12056 | .block_erase = spi_block_erase_20, |
| 12057 | }, { |
| 12058 | .eraseblocks = { {64 * 1024, 128} }, |
| 12059 | .block_erase = spi_block_erase_d8, |
| 12060 | }, { |
| 12061 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 12062 | .block_erase = spi_block_erase_c7, |
| 12063 | } |
| 12064 | }, |
| 12065 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 12066 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 12067 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12068 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12069 | .voltage = {2700, 3600}, |
Sergii Dmytruk | d5ba24c | 2022-07-25 00:28:35 +0300 | [diff] [blame] | 12070 | .reg_bits = |
| 12071 | { |
| 12072 | /* |
| 12073 | * There is also a volatile lock register per 64KiB sector, which is not |
| 12074 | * mutually exclusive with BP-based protection. |
| 12075 | */ |
| 12076 | .srp = {STATUS1, 7, RW}, |
| 12077 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}}, |
| 12078 | .tb = {STATUS1, 5, RW}, |
| 12079 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 12080 | .wp_write_cfg = spi_wp_write_cfg, |
| 12081 | .wp_read_cfg = spi_wp_read_cfg, |
| 12082 | .wp_get_ranges = spi_wp_get_available_ranges, |
Sergii Dmytruk | d5ba24c | 2022-07-25 00:28:35 +0300 | [diff] [blame] | 12083 | .decode_range = decode_range_spi25, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 12084 | }, |
| 12085 | |
| 12086 | { |
| 12087 | .vendor = "Micron/Numonyx/ST", |
| 12088 | .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 12089 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 12090 | .manufacture_id = ST_ID, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 12091 | .model_id = ST_N25Q128__1E, |
| 12092 | .total_size = 16384, |
| 12093 | .page_size = 256, |
| 12094 | /* supports SFDP */ |
| 12095 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 12096 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 12097 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 12098 | .probe = probe_spi_rdid, |
| 12099 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 12100 | .block_erasers = |
| 12101 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 12102 | { |
| 12103 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 12104 | .block_erase = spi_block_erase_20, |
| 12105 | }, { |
| 12106 | .eraseblocks = { {64 * 1024, 256} }, |
| 12107 | .block_erase = spi_block_erase_d8, |
| 12108 | }, { |
| 12109 | .eraseblocks = { {16384 * 1024, 1} }, |
| 12110 | .block_erase = spi_block_erase_c7, |
| 12111 | } |
| 12112 | }, |
| 12113 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 12114 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 12115 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12116 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12117 | .voltage = {1700, 2000}, |
| 12118 | }, |
| 12119 | |
| 12120 | { |
| 12121 | .vendor = "Micron/Numonyx/ST", |
| 12122 | .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 12123 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 12124 | .manufacture_id = ST_ID, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 12125 | .model_id = ST_N25Q128__3E, |
| 12126 | .total_size = 16384, |
| 12127 | .page_size = 256, |
| 12128 | /* supports SFDP */ |
| 12129 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 12130 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12131 | .tested = TEST_OK_PREW, |
| 12132 | .probe = probe_spi_rdid, |
| 12133 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 12134 | .block_erasers = |
| 12135 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 12136 | { |
| 12137 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 12138 | .block_erase = spi_block_erase_20, |
| 12139 | }, { |
| 12140 | .eraseblocks = { {64 * 1024, 256} }, |
| 12141 | .block_erase = spi_block_erase_d8, |
| 12142 | }, { |
| 12143 | .eraseblocks = { {16384 * 1024, 1} }, |
| 12144 | .block_erase = spi_block_erase_c7, |
| 12145 | } |
| 12146 | }, |
| 12147 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 12148 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 12149 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12150 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12151 | .voltage = {2700, 3600}, |
| 12152 | }, |
| 12153 | |
| 12154 | { |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 12155 | .vendor = "Micron/Numonyx/ST", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12156 | .name = "N25Q256..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 12157 | .bustype = BUS_SPI, |
| 12158 | .manufacture_id = ST_ID, |
| 12159 | .model_id = ST_N25Q256__1E, |
| 12160 | .total_size = 32768, |
| 12161 | .page_size = 256, |
| 12162 | /* supports SFDP */ |
| 12163 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 12164 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 12165 | .tested = TEST_UNTESTED, |
| 12166 | .probe = probe_spi_rdid, |
| 12167 | .probe_timing = TIMING_ZERO, |
| 12168 | .block_erasers = |
| 12169 | { |
| 12170 | { |
| 12171 | .eraseblocks = { {4 * 1024, 8192} }, |
| 12172 | .block_erase = spi_block_erase_21, |
| 12173 | }, { |
| 12174 | .eraseblocks = { {4 * 1024, 8192} }, |
| 12175 | .block_erase = spi_block_erase_20, |
| 12176 | }, { |
| 12177 | .eraseblocks = { {64 * 1024, 512} }, |
| 12178 | .block_erase = spi_block_erase_dc, |
| 12179 | }, { |
| 12180 | .eraseblocks = { {64 * 1024, 512} }, |
| 12181 | .block_erase = spi_block_erase_d8, |
| 12182 | }, { |
| 12183 | .eraseblocks = { {32768 * 1024, 1} }, |
| 12184 | .block_erase = spi_block_erase_c7, |
| 12185 | } |
| 12186 | }, |
| 12187 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 12188 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 12189 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12190 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12191 | .voltage = {1700, 2000}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 12192 | .prepare_access = spi_prepare_io, |
| 12193 | .finish_access = spi_finish_io, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12194 | }, |
| 12195 | |
| 12196 | { |
| 12197 | .vendor = "Micron/Numonyx/ST", |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 12198 | .name = "N25Q256..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 12199 | .bustype = BUS_SPI, |
| 12200 | .manufacture_id = ST_ID, |
| 12201 | .model_id = ST_N25Q256__3E, |
| 12202 | .total_size = 32768, |
| 12203 | .page_size = 256, |
| 12204 | /* supports SFDP */ |
| 12205 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 12206 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 12207 | .tested = TEST_UNTESTED, |
| 12208 | .probe = probe_spi_rdid, |
| 12209 | .probe_timing = TIMING_ZERO, |
| 12210 | .block_erasers = |
| 12211 | { |
| 12212 | { |
| 12213 | .eraseblocks = { {4 * 1024, 8192} }, |
| 12214 | .block_erase = spi_block_erase_21, |
| 12215 | }, { |
| 12216 | .eraseblocks = { {4 * 1024, 8192} }, |
| 12217 | .block_erase = spi_block_erase_20, |
| 12218 | }, { |
| 12219 | .eraseblocks = { {64 * 1024, 512} }, |
| 12220 | .block_erase = spi_block_erase_dc, |
| 12221 | }, { |
| 12222 | .eraseblocks = { {64 * 1024, 512} }, |
| 12223 | .block_erase = spi_block_erase_d8, |
| 12224 | }, { |
| 12225 | .eraseblocks = { {32768 * 1024, 1} }, |
| 12226 | .block_erase = spi_block_erase_c7, |
| 12227 | } |
| 12228 | }, |
| 12229 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 12230 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 12231 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12232 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12233 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 12234 | .prepare_access = spi_prepare_io, |
| 12235 | .finish_access = spi_finish_io, |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 12236 | }, |
| 12237 | |
| 12238 | { |
| 12239 | .vendor = "Micron/Numonyx/ST", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12240 | .name = "N25Q512..1G", /* ..1G = 1.8V, uniform 64KB/4KB blocks/sectors */ |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 12241 | .bustype = BUS_SPI, |
| 12242 | .manufacture_id = ST_ID, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12243 | .model_id = ST_N25Q512__1G, |
| 12244 | .total_size = 65536, |
| 12245 | .page_size = 256, |
| 12246 | /* supports SFDP */ |
| 12247 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 12248 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 12249 | .tested = TEST_UNTESTED, |
| 12250 | .probe = probe_spi_rdid, |
| 12251 | .probe_timing = TIMING_ZERO, |
| 12252 | .block_erasers = |
| 12253 | { |
| 12254 | { |
| 12255 | .eraseblocks = { {4 * 1024, 16384} }, |
| 12256 | .block_erase = spi_block_erase_21, |
| 12257 | }, { |
| 12258 | .eraseblocks = { {4 * 1024, 16384} }, |
| 12259 | .block_erase = spi_block_erase_20, |
| 12260 | }, { |
| 12261 | .eraseblocks = { {64 * 1024, 1024} }, |
| 12262 | .block_erase = spi_block_erase_dc, |
| 12263 | }, { |
| 12264 | .eraseblocks = { {64 * 1024, 1024} }, |
| 12265 | .block_erase = spi_block_erase_d8, |
| 12266 | }, { |
| 12267 | .eraseblocks = { {32768 * 1024, 2} }, |
| 12268 | .block_erase = spi_block_erase_c4, |
| 12269 | } |
| 12270 | }, |
| 12271 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 12272 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 12273 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12274 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12275 | .voltage = {1700, 2000}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 12276 | .prepare_access = spi_prepare_io, |
| 12277 | .finish_access = spi_finish_io, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12278 | }, |
| 12279 | |
| 12280 | { |
| 12281 | .vendor = "Micron/Numonyx/ST", |
| 12282 | .name = "N25Q512..3G", /* ..3G = 3V, uniform 64KB/4KB blocks/sectors */ |
| 12283 | .bustype = BUS_SPI, |
| 12284 | .manufacture_id = ST_ID, |
| 12285 | .model_id = ST_N25Q512__3G, |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 12286 | .total_size = 65536, |
| 12287 | .page_size = 256, |
| 12288 | /* supports SFDP */ |
| 12289 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 12290 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 12291 | .tested = TEST_OK_PREW, |
| 12292 | .probe = probe_spi_rdid, |
| 12293 | .probe_timing = TIMING_ZERO, |
| 12294 | .block_erasers = |
| 12295 | { |
| 12296 | { |
| 12297 | .eraseblocks = { {4 * 1024, 16384} }, |
| 12298 | .block_erase = spi_block_erase_21, |
| 12299 | }, { |
| 12300 | .eraseblocks = { {4 * 1024, 16384} }, |
| 12301 | .block_erase = spi_block_erase_20, |
| 12302 | }, { |
| 12303 | .eraseblocks = { {64 * 1024, 1024} }, |
| 12304 | .block_erase = spi_block_erase_dc, |
| 12305 | }, { |
| 12306 | .eraseblocks = { {64 * 1024, 1024} }, |
| 12307 | .block_erase = spi_block_erase_d8, |
| 12308 | }, { |
Jacob Creedon | e8e7b0e | 2019-07-22 12:21:22 -0700 | [diff] [blame] | 12309 | .eraseblocks = { {32768 * 1024, 2} }, |
| 12310 | .block_erase = spi_block_erase_c4, |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 12311 | } |
| 12312 | }, |
| 12313 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 12314 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 12315 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12316 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12317 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 12318 | .prepare_access = spi_prepare_io, |
| 12319 | .finish_access = spi_finish_io, |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 12320 | }, |
| 12321 | |
| 12322 | { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12323 | .vendor = "Micron", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12324 | .name = "MT25QL01G", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
| 12325 | .bustype = BUS_SPI, |
| 12326 | .manufacture_id = ST_ID, |
| 12327 | .model_id = ST_N25Q00A__3G, |
| 12328 | .total_size = 131072, |
| 12329 | .page_size = 256, |
| 12330 | /* supports SFDP */ |
| 12331 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 12332 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 12333 | .tested = TEST_OK_PREW, |
| 12334 | .probe = probe_spi_rdid, |
| 12335 | .probe_timing = TIMING_ZERO, |
| 12336 | .block_erasers = |
| 12337 | { |
| 12338 | { |
| 12339 | .eraseblocks = { {4 * 1024, 32768} }, |
| 12340 | .block_erase = spi_block_erase_21, |
| 12341 | }, { |
| 12342 | .eraseblocks = { {4 * 1024, 32768} }, |
| 12343 | .block_erase = spi_block_erase_20, |
| 12344 | }, { |
| 12345 | .eraseblocks = { {32 * 1024, 4096} }, |
| 12346 | .block_erase = spi_block_erase_5c, |
| 12347 | }, { |
| 12348 | .eraseblocks = { {32 * 1024, 4096} }, |
| 12349 | .block_erase = spi_block_erase_52, |
| 12350 | }, { |
| 12351 | .eraseblocks = { {64 * 1024, 2048} }, |
| 12352 | .block_erase = spi_block_erase_dc, |
| 12353 | }, { |
| 12354 | .eraseblocks = { {64 * 1024, 2048} }, |
| 12355 | .block_erase = spi_block_erase_d8, |
| 12356 | }, { |
| 12357 | .eraseblocks = { {65536 * 1024, 2} }, |
| 12358 | .block_erase = spi_block_erase_c4, |
| 12359 | } |
| 12360 | }, |
| 12361 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 12362 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 12363 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12364 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12365 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 12366 | .prepare_access = spi_prepare_io, |
| 12367 | .finish_access = spi_finish_io, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12368 | }, |
| 12369 | |
| 12370 | { |
| 12371 | .vendor = "Micron", |
| 12372 | .name = "MT25QU01G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 12373 | .bustype = BUS_SPI, |
| 12374 | .manufacture_id = ST_ID, |
| 12375 | .model_id = ST_N25Q00A__1G, |
| 12376 | .total_size = 131072, |
| 12377 | .page_size = 256, |
| 12378 | /* supports SFDP */ |
| 12379 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 12380 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 12381 | .tested = TEST_UNTESTED, |
| 12382 | .probe = probe_spi_rdid, |
| 12383 | .probe_timing = TIMING_ZERO, |
| 12384 | .block_erasers = |
| 12385 | { |
| 12386 | { |
| 12387 | .eraseblocks = { {4 * 1024, 32768} }, |
| 12388 | .block_erase = spi_block_erase_21, |
| 12389 | }, { |
| 12390 | .eraseblocks = { {4 * 1024, 32768} }, |
| 12391 | .block_erase = spi_block_erase_20, |
| 12392 | }, { |
| 12393 | .eraseblocks = { {32 * 1024, 4096} }, |
| 12394 | .block_erase = spi_block_erase_5c, |
| 12395 | }, { |
| 12396 | .eraseblocks = { {32 * 1024, 4096} }, |
| 12397 | .block_erase = spi_block_erase_52, |
| 12398 | }, { |
| 12399 | .eraseblocks = { {64 * 1024, 2048} }, |
| 12400 | .block_erase = spi_block_erase_dc, |
| 12401 | }, { |
| 12402 | .eraseblocks = { {64 * 1024, 2048} }, |
| 12403 | .block_erase = spi_block_erase_d8, |
| 12404 | }, { |
| 12405 | .eraseblocks = { {65536 * 1024, 2} }, |
| 12406 | .block_erase = spi_block_erase_c4, |
| 12407 | } |
| 12408 | }, |
| 12409 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 12410 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 12411 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12412 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12413 | .voltage = {1700, 2000}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 12414 | .prepare_access = spi_prepare_io, |
| 12415 | .finish_access = spi_finish_io, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12416 | }, |
| 12417 | |
| 12418 | { |
| 12419 | .vendor = "Micron", |
| 12420 | .name = "MT25QL02G", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
| 12421 | .bustype = BUS_SPI, |
| 12422 | .manufacture_id = ST_ID, |
| 12423 | .model_id = ST_MT25QL02G, |
| 12424 | .total_size = 262144, |
| 12425 | .page_size = 256, |
| 12426 | /* supports SFDP */ |
| 12427 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 12428 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 12429 | .tested = TEST_UNTESTED, |
| 12430 | .probe = probe_spi_rdid, |
| 12431 | .probe_timing = TIMING_ZERO, |
| 12432 | .block_erasers = |
| 12433 | { |
| 12434 | { |
| 12435 | .eraseblocks = { {4 * 1024, 65536} }, |
| 12436 | .block_erase = spi_block_erase_21, |
| 12437 | }, { |
| 12438 | .eraseblocks = { {4 * 1024, 65536} }, |
| 12439 | .block_erase = spi_block_erase_20, |
| 12440 | }, { |
| 12441 | .eraseblocks = { {32 * 1024, 8192} }, |
| 12442 | .block_erase = spi_block_erase_5c, |
| 12443 | }, { |
| 12444 | .eraseblocks = { {32 * 1024, 8192} }, |
| 12445 | .block_erase = spi_block_erase_52, |
| 12446 | }, { |
| 12447 | .eraseblocks = { {64 * 1024, 4096} }, |
| 12448 | .block_erase = spi_block_erase_dc, |
| 12449 | }, { |
| 12450 | .eraseblocks = { {64 * 1024, 4096} }, |
| 12451 | .block_erase = spi_block_erase_d8, |
| 12452 | }, { |
| 12453 | .eraseblocks = { {65536 * 1024, 4} }, |
| 12454 | .block_erase = spi_block_erase_c4, |
| 12455 | } |
| 12456 | }, |
| 12457 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 12458 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 12459 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12460 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12461 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 12462 | .prepare_access = spi_prepare_io, |
| 12463 | .finish_access = spi_finish_io, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12464 | }, |
| 12465 | |
| 12466 | { |
| 12467 | .vendor = "Micron", |
| 12468 | .name = "MT25QU02G", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 12469 | .bustype = BUS_SPI, |
| 12470 | .manufacture_id = ST_ID, |
| 12471 | .model_id = ST_MT25QU02G, |
| 12472 | .total_size = 262144, |
| 12473 | .page_size = 256, |
| 12474 | /* supports SFDP */ |
| 12475 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 12476 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 12477 | .tested = TEST_UNTESTED, |
| 12478 | .probe = probe_spi_rdid, |
| 12479 | .probe_timing = TIMING_ZERO, |
| 12480 | .block_erasers = |
| 12481 | { |
| 12482 | { |
| 12483 | .eraseblocks = { {4 * 1024, 65536} }, |
| 12484 | .block_erase = spi_block_erase_21, |
| 12485 | }, { |
| 12486 | .eraseblocks = { {4 * 1024, 65536} }, |
| 12487 | .block_erase = spi_block_erase_20, |
| 12488 | }, { |
| 12489 | .eraseblocks = { {32 * 1024, 8192} }, |
| 12490 | .block_erase = spi_block_erase_5c, |
| 12491 | }, { |
| 12492 | .eraseblocks = { {32 * 1024, 8192} }, |
| 12493 | .block_erase = spi_block_erase_52, |
| 12494 | }, { |
| 12495 | .eraseblocks = { {64 * 1024, 4096} }, |
| 12496 | .block_erase = spi_block_erase_dc, |
| 12497 | }, { |
| 12498 | .eraseblocks = { {64 * 1024, 4096} }, |
| 12499 | .block_erase = spi_block_erase_d8, |
| 12500 | }, { |
| 12501 | .eraseblocks = { {65536 * 1024, 4} }, |
| 12502 | .block_erase = spi_block_erase_c4, |
| 12503 | } |
| 12504 | }, |
| 12505 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 12506 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 12507 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12508 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12509 | .voltage = {1700, 2000}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 12510 | .prepare_access = spi_prepare_io, |
| 12511 | .finish_access = spi_finish_io, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12512 | }, |
| 12513 | |
| 12514 | { |
| 12515 | .vendor = "Micron", |
| 12516 | .name = "MT25QU128", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 12517 | .bustype = BUS_SPI, |
| 12518 | .manufacture_id = ST_ID, |
| 12519 | .model_id = ST_N25Q128__1E, |
| 12520 | .total_size = 16384, |
| 12521 | .page_size = 256, |
| 12522 | /* supports SFDP */ |
| 12523 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
Nico Huber | 48dc090 | 2023-03-05 17:20:55 +0100 | [diff] [blame] | 12524 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12525 | .tested = TEST_UNTESTED, |
| 12526 | .probe = probe_spi_rdid, |
| 12527 | .probe_timing = TIMING_ZERO, |
| 12528 | .block_erasers = |
| 12529 | { |
| 12530 | { |
| 12531 | .eraseblocks = { {4 * 1024, 4096} }, |
| 12532 | .block_erase = spi_block_erase_20, |
| 12533 | }, { |
| 12534 | .eraseblocks = { {32 * 1024, 512} }, |
| 12535 | .block_erase = spi_block_erase_52, |
| 12536 | }, { |
| 12537 | .eraseblocks = { {64 * 1024, 256} }, |
| 12538 | .block_erase = spi_block_erase_d8, |
| 12539 | }, { |
| 12540 | .eraseblocks = { {16384 * 1024, 1} }, |
| 12541 | .block_erase = spi_block_erase_c7, |
| 12542 | }, { |
| 12543 | .eraseblocks = { {16384 * 1024, 1} }, |
| 12544 | .block_erase = spi_block_erase_60, |
| 12545 | } |
| 12546 | }, |
| 12547 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 12548 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 12549 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12550 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12551 | .voltage = {1700, 2000}, |
| 12552 | }, |
| 12553 | |
| 12554 | { |
| 12555 | .vendor = "Micron", |
| 12556 | .name = "MT25QL128", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
| 12557 | .bustype = BUS_SPI, |
| 12558 | .manufacture_id = ST_ID, |
| 12559 | .model_id = ST_N25Q128__3E, |
| 12560 | .total_size = 16384, |
| 12561 | .page_size = 256, |
| 12562 | /* supports SFDP */ |
| 12563 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
Rick Altherr | 1e56360 | 2022-12-22 10:25:34 -0800 | [diff] [blame] | 12564 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12565 | .tested = TEST_OK_PREW, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12566 | .probe = probe_spi_rdid, |
| 12567 | .probe_timing = TIMING_ZERO, |
| 12568 | .block_erasers = |
| 12569 | { |
| 12570 | { |
| 12571 | .eraseblocks = { {4 * 1024, 4096} }, |
| 12572 | .block_erase = spi_block_erase_20, |
| 12573 | }, { |
| 12574 | .eraseblocks = { {32 * 1024, 512} }, |
| 12575 | .block_erase = spi_block_erase_52, |
| 12576 | }, { |
| 12577 | .eraseblocks = { {64 * 1024, 256} }, |
| 12578 | .block_erase = spi_block_erase_d8, |
| 12579 | }, { |
| 12580 | .eraseblocks = { {16384 * 1024, 1} }, |
| 12581 | .block_erase = spi_block_erase_c7, |
| 12582 | }, { |
| 12583 | .eraseblocks = { {16384 * 1024, 1} }, |
| 12584 | .block_erase = spi_block_erase_60, |
| 12585 | } |
| 12586 | }, |
| 12587 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 12588 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 12589 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12590 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12591 | .voltage = {2700, 3600}, |
| 12592 | }, |
| 12593 | |
| 12594 | { |
| 12595 | .vendor = "Micron", |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 12596 | .name = "MT25QL256", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12597 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 12598 | .manufacture_id = ST_ID, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12599 | .model_id = ST_N25Q256__3E, |
| 12600 | .total_size = 32768, |
| 12601 | .page_size = 256, |
| 12602 | /* supports SFDP */ |
| 12603 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 12604 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
Simon Buhrow | b7014f9 | 2021-02-15 13:16:57 +0100 | [diff] [blame] | 12605 | .tested = TEST_OK_PREW, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12606 | .probe = probe_spi_rdid, |
| 12607 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 12608 | .block_erasers = |
| 12609 | { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12610 | { |
| 12611 | .eraseblocks = { {4 * 1024, 8192} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 12612 | .block_erase = spi_block_erase_21, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12613 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 12614 | .eraseblocks = { {4 * 1024, 8192} }, |
| 12615 | .block_erase = spi_block_erase_20, |
| 12616 | }, { |
Jacob Creedon | 045b97e | 2019-07-22 12:26:56 -0700 | [diff] [blame] | 12617 | .eraseblocks = { {32 * 1024, 1024} }, |
| 12618 | .block_erase = spi_block_erase_5c, |
| 12619 | }, { |
| 12620 | .eraseblocks = { {32 * 1024, 1024} }, |
| 12621 | .block_erase = spi_block_erase_52, |
| 12622 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12623 | .eraseblocks = { {64 * 1024, 512} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 12624 | .block_erase = spi_block_erase_dc, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12625 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 12626 | .eraseblocks = { {64 * 1024, 512} }, |
| 12627 | .block_erase = spi_block_erase_d8, |
| 12628 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12629 | .eraseblocks = { {32768 * 1024, 1} }, |
| 12630 | .block_erase = spi_block_erase_c7, |
Jacob Creedon | 045b97e | 2019-07-22 12:26:56 -0700 | [diff] [blame] | 12631 | }, { |
| 12632 | .eraseblocks = { {32768 * 1024, 1} }, |
| 12633 | .block_erase = spi_block_erase_60, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12634 | } |
| 12635 | }, |
| 12636 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 12637 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 12638 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12639 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12640 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 12641 | .prepare_access = spi_prepare_io, |
| 12642 | .finish_access = spi_finish_io, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12643 | }, |
| 12644 | |
| 12645 | { |
| 12646 | .vendor = "Micron", |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12647 | .name = "MT25QU256", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 12648 | .bustype = BUS_SPI, |
| 12649 | .manufacture_id = ST_ID, |
| 12650 | .model_id = ST_N25Q256__1E, |
| 12651 | .total_size = 32768, |
| 12652 | .page_size = 256, |
| 12653 | /* supports SFDP */ |
| 12654 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 12655 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
Angel Pons | 5905258 | 2022-03-08 15:23:58 +0100 | [diff] [blame] | 12656 | .tested = TEST_OK_PREW, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12657 | .probe = probe_spi_rdid, |
| 12658 | .probe_timing = TIMING_ZERO, |
| 12659 | .block_erasers = |
| 12660 | { |
| 12661 | { |
| 12662 | .eraseblocks = { {4 * 1024, 8192} }, |
| 12663 | .block_erase = spi_block_erase_21, |
| 12664 | }, { |
| 12665 | .eraseblocks = { {4 * 1024, 8192} }, |
| 12666 | .block_erase = spi_block_erase_20, |
| 12667 | }, { |
| 12668 | .eraseblocks = { {32 * 1024, 1024} }, |
| 12669 | .block_erase = spi_block_erase_5c, |
| 12670 | }, { |
| 12671 | .eraseblocks = { {32 * 1024, 1024} }, |
| 12672 | .block_erase = spi_block_erase_52, |
| 12673 | }, { |
| 12674 | .eraseblocks = { {64 * 1024, 512} }, |
| 12675 | .block_erase = spi_block_erase_dc, |
| 12676 | }, { |
| 12677 | .eraseblocks = { {64 * 1024, 512} }, |
| 12678 | .block_erase = spi_block_erase_d8, |
| 12679 | }, { |
| 12680 | .eraseblocks = { {32768 * 1024, 1} }, |
| 12681 | .block_erase = spi_block_erase_c7, |
| 12682 | }, { |
| 12683 | .eraseblocks = { {32768 * 1024, 1} }, |
| 12684 | .block_erase = spi_block_erase_60, |
| 12685 | } |
| 12686 | }, |
| 12687 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 12688 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 12689 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12690 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12691 | .voltage = {1700, 2000}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 12692 | .prepare_access = spi_prepare_io, |
| 12693 | .finish_access = spi_finish_io, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12694 | }, |
| 12695 | |
| 12696 | { |
| 12697 | .vendor = "Micron", |
Jacob Creedon | 08e9d1d | 2019-07-22 12:04:40 -0700 | [diff] [blame] | 12698 | .name = "MT25QL512", /* L = 3V, uniform 64KB/4KB blocks/sectors */ |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12699 | .bustype = BUS_SPI, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 12700 | .manufacture_id = ST_ID, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12701 | .model_id = ST_N25Q512__3G, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12702 | .total_size = 65536, |
| 12703 | .page_size = 256, |
| 12704 | /* supports SFDP */ |
| 12705 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 12706 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
Angel Pons | 3ed5a35 | 2018-09-30 16:31:09 +0200 | [diff] [blame] | 12707 | .tested = TEST_OK_PREW, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12708 | .probe = probe_spi_rdid, |
| 12709 | .probe_timing = TIMING_ZERO, |
Alan Green | fdf5da4 | 2019-06-27 16:56:52 +1000 | [diff] [blame] | 12710 | .block_erasers = |
| 12711 | { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12712 | { |
| 12713 | .eraseblocks = { {4 * 1024, 16384} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 12714 | .block_erase = spi_block_erase_21, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12715 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 12716 | .eraseblocks = { {4 * 1024, 16384} }, |
| 12717 | .block_erase = spi_block_erase_20, |
| 12718 | }, { |
Jacob Creedon | 045b97e | 2019-07-22 12:26:56 -0700 | [diff] [blame] | 12719 | .eraseblocks = { {32 * 1024, 2048} }, |
| 12720 | .block_erase = spi_block_erase_5c, |
| 12721 | }, { |
| 12722 | .eraseblocks = { {32 * 1024, 2048} }, |
| 12723 | .block_erase = spi_block_erase_52, |
| 12724 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12725 | .eraseblocks = { {64 * 1024, 1024} }, |
Nico Huber | 7e3c81a | 2017-10-14 18:56:50 +0200 | [diff] [blame] | 12726 | .block_erase = spi_block_erase_dc, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12727 | }, { |
Nico Huber | aac8142 | 2017-11-10 22:54:13 +0100 | [diff] [blame] | 12728 | .eraseblocks = { {64 * 1024, 1024} }, |
| 12729 | .block_erase = spi_block_erase_d8, |
| 12730 | }, { |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12731 | .eraseblocks = { {65536 * 1024, 1} }, |
| 12732 | .block_erase = spi_block_erase_c7, |
Jacob Creedon | 045b97e | 2019-07-22 12:26:56 -0700 | [diff] [blame] | 12733 | }, { |
| 12734 | .eraseblocks = { {65536 * 1024, 1} }, |
| 12735 | .block_erase = spi_block_erase_60, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12736 | } |
| 12737 | }, |
| 12738 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 12739 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 12740 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12741 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12742 | .voltage = {2700, 3600}, |
Sergii Dmytruk | d5ba24c | 2022-07-25 00:28:35 +0300 | [diff] [blame] | 12743 | .reg_bits = |
| 12744 | { |
| 12745 | .srp = {STATUS1, 7, RW}, |
| 12746 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 6, RW}}, |
| 12747 | .tb = {STATUS1, 5, RW}, |
| 12748 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 12749 | .wp_write_cfg = spi_wp_write_cfg, |
| 12750 | .wp_read_cfg = spi_wp_read_cfg, |
| 12751 | .wp_get_ranges = spi_wp_get_available_ranges, |
Sergii Dmytruk | d5ba24c | 2022-07-25 00:28:35 +0300 | [diff] [blame] | 12752 | .decode_range = decode_range_spi25, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 12753 | .prepare_access = spi_prepare_io, |
| 12754 | .finish_access = spi_finish_io, |
Ed Swierk | 199ab39 | 2017-07-03 13:33:44 -0700 | [diff] [blame] | 12755 | }, |
| 12756 | |
| 12757 | { |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12758 | .vendor = "Micron", |
| 12759 | .name = "MT25QU512", /* U = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 12760 | .bustype = BUS_SPI, |
| 12761 | .manufacture_id = ST_ID, |
| 12762 | .model_id = ST_N25Q512__1G, |
| 12763 | .total_size = 65536, |
| 12764 | .page_size = 256, |
| 12765 | /* supports SFDP */ |
| 12766 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 12767 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_4BA_WREN, |
| 12768 | .tested = TEST_OK_PREW, |
| 12769 | .probe = probe_spi_rdid, |
| 12770 | .probe_timing = TIMING_ZERO, |
| 12771 | .block_erasers = |
| 12772 | { |
| 12773 | { |
| 12774 | .eraseblocks = { {4 * 1024, 16384} }, |
| 12775 | .block_erase = spi_block_erase_21, |
| 12776 | }, { |
| 12777 | .eraseblocks = { {4 * 1024, 16384} }, |
| 12778 | .block_erase = spi_block_erase_20, |
| 12779 | }, { |
| 12780 | .eraseblocks = { {32 * 1024, 2048} }, |
| 12781 | .block_erase = spi_block_erase_5c, |
| 12782 | }, { |
| 12783 | .eraseblocks = { {32 * 1024, 2048} }, |
| 12784 | .block_erase = spi_block_erase_52, |
| 12785 | }, { |
| 12786 | .eraseblocks = { {64 * 1024, 1024} }, |
| 12787 | .block_erase = spi_block_erase_dc, |
| 12788 | }, { |
| 12789 | .eraseblocks = { {64 * 1024, 1024} }, |
| 12790 | .block_erase = spi_block_erase_d8, |
| 12791 | }, { |
| 12792 | .eraseblocks = { {65536 * 1024, 1} }, |
| 12793 | .block_erase = spi_block_erase_c7, |
| 12794 | }, { |
| 12795 | .eraseblocks = { {65536 * 1024, 1} }, |
| 12796 | .block_erase = spi_block_erase_60, |
| 12797 | } |
| 12798 | }, |
| 12799 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 12800 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 12801 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 12802 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 12803 | .voltage = {1700, 2000}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 12804 | .prepare_access = spi_prepare_io, |
| 12805 | .finish_access = spi_finish_io, |
Jacob Creedon | 80e8dc4 | 2019-07-22 12:35:30 -0700 | [diff] [blame] | 12806 | }, |
| 12807 | |
| 12808 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12809 | .vendor = "MoselVitelic", |
| 12810 | .name = "V29C51000B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12811 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12812 | .manufacture_id = SYNCMOS_MVC_ID, |
| 12813 | .model_id = MVC_V29C51000B, |
| 12814 | .total_size = 64, |
| 12815 | .page_size = 512, |
| 12816 | .feature_bits = FEATURE_EITHER_RESET, |
| 12817 | .tested = TEST_UNTESTED, |
| 12818 | .probe = probe_jedec, |
| 12819 | .probe_timing = TIMING_ZERO, |
| 12820 | .block_erasers = |
| 12821 | { |
| 12822 | { |
| 12823 | .eraseblocks = { {512, 128} }, |
| 12824 | .block_erase = erase_sector_jedec, |
| 12825 | }, { |
| 12826 | .eraseblocks = { {64 * 1024, 1} }, |
| 12827 | .block_erase = erase_chip_block_jedec, |
| 12828 | }, |
| 12829 | }, |
| 12830 | .write = write_jedec_1, |
| 12831 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12832 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 12833 | .prepare_access = prepare_memory_access, |
| 12834 | .finish_access = finish_memory_access, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12835 | }, |
| 12836 | |
| 12837 | { |
| 12838 | .vendor = "MoselVitelic", |
| 12839 | .name = "V29C51000T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12840 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12841 | .manufacture_id = SYNCMOS_MVC_ID, |
| 12842 | .model_id = MVC_V29C51000T, |
| 12843 | .total_size = 64, |
| 12844 | .page_size = 512, |
| 12845 | .feature_bits = FEATURE_EITHER_RESET, |
| 12846 | .tested = TEST_UNTESTED, |
| 12847 | .probe = probe_jedec, |
| 12848 | .probe_timing = TIMING_ZERO, |
| 12849 | .block_erasers = |
| 12850 | { |
| 12851 | { |
| 12852 | .eraseblocks = { {512, 128} }, |
| 12853 | .block_erase = erase_sector_jedec, |
| 12854 | }, { |
| 12855 | .eraseblocks = { {64 * 1024, 1} }, |
| 12856 | .block_erase = erase_chip_block_jedec, |
| 12857 | }, |
| 12858 | }, |
| 12859 | .write = write_jedec_1, |
| 12860 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12861 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 12862 | .prepare_access = prepare_memory_access, |
| 12863 | .finish_access = finish_memory_access, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12864 | }, |
| 12865 | |
| 12866 | { |
| 12867 | .vendor = "MoselVitelic", |
| 12868 | .name = "V29C51400B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12869 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12870 | .manufacture_id = SYNCMOS_MVC_ID, |
| 12871 | .model_id = MVC_V29C51400B, |
| 12872 | .total_size = 512, |
| 12873 | .page_size = 1024, |
| 12874 | .feature_bits = FEATURE_EITHER_RESET, |
| 12875 | .tested = TEST_UNTESTED, |
| 12876 | .probe = probe_jedec, |
| 12877 | .probe_timing = TIMING_ZERO, |
| 12878 | .block_erasers = |
| 12879 | { |
| 12880 | { |
| 12881 | .eraseblocks = { {1024, 512} }, |
| 12882 | .block_erase = erase_sector_jedec, |
| 12883 | }, { |
| 12884 | .eraseblocks = { {512 * 1024, 1} }, |
| 12885 | .block_erase = erase_chip_block_jedec, |
| 12886 | }, |
| 12887 | }, |
| 12888 | .write = write_jedec_1, |
| 12889 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12890 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 12891 | .prepare_access = prepare_memory_access, |
| 12892 | .finish_access = finish_memory_access, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12893 | }, |
| 12894 | |
| 12895 | { |
| 12896 | .vendor = "MoselVitelic", |
| 12897 | .name = "V29C51400T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12898 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12899 | .manufacture_id = SYNCMOS_MVC_ID, |
| 12900 | .model_id = MVC_V29C51400T, |
| 12901 | .total_size = 512, |
| 12902 | .page_size = 1024, |
| 12903 | .feature_bits = FEATURE_EITHER_RESET, |
| 12904 | .tested = TEST_UNTESTED, |
| 12905 | .probe = probe_jedec, |
| 12906 | .probe_timing = TIMING_ZERO, |
| 12907 | .block_erasers = |
| 12908 | { |
| 12909 | { |
| 12910 | .eraseblocks = { {1024, 512} }, |
| 12911 | .block_erase = erase_sector_jedec, |
| 12912 | }, { |
| 12913 | .eraseblocks = { {512 * 1024, 1} }, |
| 12914 | .block_erase = erase_chip_block_jedec, |
| 12915 | }, |
| 12916 | }, |
| 12917 | .write = write_jedec_1, |
| 12918 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12919 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 12920 | .prepare_access = prepare_memory_access, |
| 12921 | .finish_access = finish_memory_access, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12922 | }, |
| 12923 | |
| 12924 | { |
| 12925 | .vendor = "MoselVitelic", |
| 12926 | .name = "V29LC51000", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12927 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12928 | .manufacture_id = SYNCMOS_MVC_ID, |
| 12929 | .model_id = MVC_V29LC51000, |
| 12930 | .total_size = 64, |
| 12931 | .page_size = 512, |
| 12932 | .feature_bits = FEATURE_EITHER_RESET, |
| 12933 | .tested = TEST_UNTESTED, |
| 12934 | .probe = probe_jedec, |
| 12935 | .probe_timing = TIMING_ZERO, |
| 12936 | .block_erasers = |
| 12937 | { |
| 12938 | { |
| 12939 | .eraseblocks = { {512, 128} }, |
| 12940 | .block_erase = erase_sector_jedec, |
| 12941 | }, { |
| 12942 | .eraseblocks = { {64 * 1024, 1} }, |
| 12943 | .block_erase = erase_chip_block_jedec, |
| 12944 | }, |
| 12945 | }, |
| 12946 | .write = write_jedec_1, |
| 12947 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12948 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 12949 | .prepare_access = prepare_memory_access, |
| 12950 | .finish_access = finish_memory_access, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12951 | }, |
| 12952 | |
| 12953 | { |
| 12954 | .vendor = "MoselVitelic", |
| 12955 | .name = "V29LC51001", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12956 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12957 | .manufacture_id = SYNCMOS_MVC_ID, |
| 12958 | .model_id = MVC_V29LC51001, |
| 12959 | .total_size = 128, |
| 12960 | .page_size = 512, |
| 12961 | .feature_bits = FEATURE_EITHER_RESET, |
| 12962 | .tested = TEST_UNTESTED, |
| 12963 | .probe = probe_jedec, |
| 12964 | .probe_timing = TIMING_ZERO, |
| 12965 | .block_erasers = |
| 12966 | { |
| 12967 | { |
| 12968 | .eraseblocks = { {512, 256} }, |
| 12969 | .block_erase = erase_sector_jedec, |
| 12970 | }, { |
| 12971 | .eraseblocks = { {128 * 1024, 1} }, |
| 12972 | .block_erase = erase_chip_block_jedec, |
| 12973 | }, |
| 12974 | }, |
| 12975 | .write = write_jedec_1, |
| 12976 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12977 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 12978 | .prepare_access = prepare_memory_access, |
| 12979 | .finish_access = finish_memory_access, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12980 | }, |
| 12981 | |
| 12982 | { |
| 12983 | .vendor = "MoselVitelic", |
| 12984 | .name = "V29LC51002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12985 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 12986 | .manufacture_id = SYNCMOS_MVC_ID, |
| 12987 | .model_id = MVC_V29LC51002, |
| 12988 | .total_size = 256, |
| 12989 | .page_size = 512, |
| 12990 | .feature_bits = FEATURE_EITHER_RESET, |
| 12991 | .tested = TEST_UNTESTED, |
| 12992 | .probe = probe_jedec, |
| 12993 | .probe_timing = TIMING_ZERO, |
| 12994 | .block_erasers = |
| 12995 | { |
| 12996 | { |
| 12997 | .eraseblocks = { {512, 512} }, |
| 12998 | .block_erase = erase_sector_jedec, |
| 12999 | }, { |
| 13000 | .eraseblocks = { {256 * 1024, 1} }, |
| 13001 | .block_erase = erase_chip_block_jedec, |
| 13002 | }, |
| 13003 | }, |
| 13004 | .write = write_jedec_1, |
| 13005 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13006 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 13007 | .prepare_access = prepare_memory_access, |
| 13008 | .finish_access = finish_memory_access, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13009 | }, |
| 13010 | |
| 13011 | { |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 13012 | .vendor = "Nantronics", |
| 13013 | .name = "N25S10", |
| 13014 | .bustype = BUS_SPI, |
| 13015 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 13016 | .model_id = NANTRONICS_N25S10, |
| 13017 | .total_size = 128, |
| 13018 | .page_size = 256, |
| 13019 | .feature_bits = FEATURE_WRSR_WREN, |
| 13020 | .tested = TEST_UNTESTED, |
| 13021 | .probe = probe_spi_rdid, |
| 13022 | .probe_timing = TIMING_ZERO, |
| 13023 | .block_erasers = |
| 13024 | { |
| 13025 | { |
| 13026 | .eraseblocks = { {4 * 1024, 32} }, |
| 13027 | .block_erase = spi_block_erase_20, |
| 13028 | }, { |
| 13029 | .eraseblocks = { {4 * 1024, 32} }, |
| 13030 | .block_erase = spi_block_erase_d7, |
| 13031 | }, { |
| 13032 | .eraseblocks = { {32 * 1024, 4} }, |
| 13033 | .block_erase = spi_block_erase_52, |
| 13034 | }, { |
| 13035 | .eraseblocks = { {64 * 1024, 2} }, |
| 13036 | .block_erase = spi_block_erase_d8, |
| 13037 | }, { |
| 13038 | .eraseblocks = { {128 * 1024, 1} }, |
| 13039 | .block_erase = spi_block_erase_60, |
| 13040 | }, { |
| 13041 | .eraseblocks = { {128 * 1024, 1} }, |
| 13042 | .block_erase = spi_block_erase_c7, |
| 13043 | } |
| 13044 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 13045 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 13046 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 13047 | .write = spi_chip_write_256, |
| 13048 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 13049 | .voltage = {2700, 3600}, |
| 13050 | }, |
| 13051 | |
| 13052 | { |
| 13053 | .vendor = "Nantronics", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13054 | .name = "N25S16", |
| 13055 | .bustype = BUS_SPI, |
| 13056 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 13057 | .model_id = NANTRONICS_N25S16, |
| 13058 | .total_size = 2048, |
| 13059 | .page_size = 256, |
| 13060 | .feature_bits = FEATURE_WRSR_WREN, |
| 13061 | .tested = TEST_UNTESTED, |
| 13062 | .probe = probe_spi_rdid, |
| 13063 | .probe_timing = TIMING_ZERO, |
| 13064 | .block_erasers = |
| 13065 | { |
| 13066 | { |
| 13067 | .eraseblocks = { {4 * 1024, 512} }, |
| 13068 | .block_erase = spi_block_erase_20, |
| 13069 | }, { |
| 13070 | .eraseblocks = { {64 * 1024, 32} }, |
| 13071 | .block_erase = spi_block_erase_d8, |
| 13072 | }, { |
| 13073 | .eraseblocks = { {2048 * 1024, 1} }, |
| 13074 | .block_erase = spi_block_erase_60, |
| 13075 | }, { |
| 13076 | .eraseblocks = { {2048 * 1024, 1} }, |
| 13077 | .block_erase = spi_block_erase_c7, |
| 13078 | } |
| 13079 | }, |
| 13080 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 13081 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 13082 | .write = spi_chip_write_256, |
| 13083 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 13084 | .voltage = {2700, 3600}, |
| 13085 | }, |
| 13086 | |
| 13087 | { |
| 13088 | .vendor = "Nantronics", |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 13089 | .name = "N25S20", |
| 13090 | .bustype = BUS_SPI, |
| 13091 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 13092 | .model_id = NANTRONICS_N25S20, |
| 13093 | .total_size = 256, |
| 13094 | .page_size = 256, |
| 13095 | .feature_bits = FEATURE_WRSR_WREN, |
| 13096 | .tested = TEST_UNTESTED, |
| 13097 | .probe = probe_spi_rdid, |
| 13098 | .probe_timing = TIMING_ZERO, |
| 13099 | .block_erasers = |
| 13100 | { |
| 13101 | { |
| 13102 | .eraseblocks = { {4 * 1024, 64} }, |
| 13103 | .block_erase = spi_block_erase_20, |
| 13104 | }, { |
| 13105 | .eraseblocks = { {4 * 1024, 64} }, |
| 13106 | .block_erase = spi_block_erase_d7, |
| 13107 | }, { |
| 13108 | .eraseblocks = { {32 * 1024, 8} }, |
| 13109 | .block_erase = spi_block_erase_52, |
| 13110 | }, { |
| 13111 | .eraseblocks = { {64 * 1024, 4} }, |
| 13112 | .block_erase = spi_block_erase_d8, |
| 13113 | }, { |
| 13114 | .eraseblocks = { {256 * 1024, 1} }, |
| 13115 | .block_erase = spi_block_erase_60, |
| 13116 | }, { |
| 13117 | .eraseblocks = { {256 * 1024, 1} }, |
| 13118 | .block_erase = spi_block_erase_c7, |
| 13119 | } |
| 13120 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 13121 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 13122 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 13123 | .write = spi_chip_write_256, |
| 13124 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 13125 | .voltage = {2700, 3600}, |
| 13126 | }, |
| 13127 | |
| 13128 | { |
| 13129 | .vendor = "Nantronics", |
| 13130 | .name = "N25S40", |
| 13131 | .bustype = BUS_SPI, |
| 13132 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 13133 | .model_id = NANTRONICS_N25S40, |
| 13134 | .total_size = 512, |
| 13135 | .page_size = 256, |
| 13136 | .feature_bits = FEATURE_WRSR_WREN, |
| 13137 | .tested = TEST_UNTESTED, |
| 13138 | .probe = probe_spi_rdid, |
| 13139 | .probe_timing = TIMING_ZERO, |
| 13140 | .block_erasers = |
| 13141 | { |
| 13142 | { |
| 13143 | .eraseblocks = { {4 * 1024, 128} }, |
| 13144 | .block_erase = spi_block_erase_20, |
| 13145 | }, { |
| 13146 | .eraseblocks = { {4 * 1024, 128} }, |
| 13147 | .block_erase = spi_block_erase_d7, |
| 13148 | }, { |
| 13149 | .eraseblocks = { {32 * 1024, 16} }, |
| 13150 | .block_erase = spi_block_erase_52, |
| 13151 | }, { |
| 13152 | .eraseblocks = { {64 * 1024, 8} }, |
| 13153 | .block_erase = spi_block_erase_d8, |
| 13154 | }, { |
| 13155 | .eraseblocks = { {512 * 1024, 1} }, |
| 13156 | .block_erase = spi_block_erase_60, |
| 13157 | }, { |
| 13158 | .eraseblocks = { {512 * 1024, 1} }, |
| 13159 | .block_erase = spi_block_erase_c7, |
| 13160 | } |
| 13161 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 13162 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 13163 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 13164 | .write = spi_chip_write_256, |
| 13165 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 13166 | .voltage = {2700, 3600}, |
| 13167 | }, |
| 13168 | |
| 13169 | { |
| 13170 | .vendor = "Nantronics", |
| 13171 | .name = "N25S80", |
| 13172 | .bustype = BUS_SPI, |
| 13173 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 13174 | .model_id = NANTRONICS_N25S80, |
| 13175 | .total_size = 1024, |
| 13176 | .page_size = 256, |
| 13177 | .feature_bits = FEATURE_WRSR_WREN, |
| 13178 | .tested = TEST_UNTESTED, |
| 13179 | .probe = probe_spi_rdid, |
| 13180 | .probe_timing = TIMING_ZERO, |
| 13181 | .block_erasers = |
| 13182 | { |
| 13183 | { |
| 13184 | .eraseblocks = { {4 * 1024, 256} }, |
| 13185 | .block_erase = spi_block_erase_20, |
| 13186 | }, { |
| 13187 | .eraseblocks = { {32 * 1024, 32} }, |
| 13188 | .block_erase = spi_block_erase_52, |
| 13189 | }, { |
| 13190 | .eraseblocks = { {64 * 1024, 16} }, |
| 13191 | .block_erase = spi_block_erase_d8, |
| 13192 | }, { |
| 13193 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13194 | .block_erase = spi_block_erase_60, |
| 13195 | }, { |
| 13196 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13197 | .block_erase = spi_block_erase_c7, |
| 13198 | } |
| 13199 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 13200 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 13201 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 13202 | .write = spi_chip_write_256, |
| 13203 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 13204 | .voltage = {2700, 3600}, |
| 13205 | }, |
| 13206 | |
| 13207 | { |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 13208 | .vendor = "PMC", |
| 13209 | .name = "Pm25LD010(C)", |
| 13210 | .bustype = BUS_SPI, |
| 13211 | .manufacture_id = PMC_ID, |
| 13212 | .model_id = PMC_PM25LD010, |
| 13213 | .total_size = 128, |
| 13214 | .page_size = 256, |
| 13215 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 13216 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 13217 | .probe = probe_spi_rdid, |
| 13218 | .probe_timing = TIMING_ZERO, |
| 13219 | .block_erasers = |
| 13220 | { |
| 13221 | { |
| 13222 | .eraseblocks = { {4 * 1024, 32} }, |
| 13223 | .block_erase = spi_block_erase_20, |
| 13224 | }, { |
| 13225 | .eraseblocks = { {4 * 1024, 32} }, |
| 13226 | .block_erase = spi_block_erase_d7, |
| 13227 | }, { |
| 13228 | .eraseblocks = { {32 * 1024, 4} }, |
| 13229 | .block_erase = spi_block_erase_d8, |
| 13230 | }, { |
| 13231 | .eraseblocks = { {128 * 1024, 1} }, |
| 13232 | .block_erase = spi_block_erase_60, |
| 13233 | }, { |
| 13234 | .eraseblocks = { {128 * 1024, 1} }, |
| 13235 | .block_erase = spi_block_erase_c7, |
| 13236 | } |
| 13237 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 13238 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 13239 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 13240 | .write = spi_chip_write_256, |
| 13241 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 13242 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */ |
| 13243 | }, |
| 13244 | |
| 13245 | { |
| 13246 | .vendor = "PMC", |
| 13247 | .name = "Pm25LD020(C)", |
| 13248 | .bustype = BUS_SPI, |
| 13249 | .manufacture_id = PMC_ID, |
| 13250 | .model_id = PMC_PM25LD020, |
| 13251 | .total_size = 256, |
| 13252 | .page_size = 256, |
| 13253 | .feature_bits = FEATURE_WRSR_WREN, |
Angel Pons | f5822a8 | 2018-09-30 20:09:58 +0200 | [diff] [blame] | 13254 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 13255 | .probe = probe_spi_rdid, |
| 13256 | .probe_timing = TIMING_ZERO, |
| 13257 | .block_erasers = |
| 13258 | { |
| 13259 | { |
| 13260 | .eraseblocks = { {4 * 1024, 64} }, |
| 13261 | .block_erase = spi_block_erase_20, |
| 13262 | }, { |
| 13263 | .eraseblocks = { {4 * 1024, 64} }, |
| 13264 | .block_erase = spi_block_erase_d7, |
| 13265 | }, { |
| 13266 | .eraseblocks = { {64 * 1024, 4} }, |
| 13267 | .block_erase = spi_block_erase_d8, |
| 13268 | }, { |
| 13269 | .eraseblocks = { {256 * 1024, 1} }, |
| 13270 | .block_erase = spi_block_erase_60, |
| 13271 | }, { |
| 13272 | .eraseblocks = { {256 * 1024, 1} }, |
| 13273 | .block_erase = spi_block_erase_c7, |
| 13274 | } |
| 13275 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 13276 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 13277 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 13278 | .write = spi_chip_write_256, |
| 13279 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 13280 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */ |
| 13281 | }, |
| 13282 | |
| 13283 | { |
| 13284 | .vendor = "PMC", |
| 13285 | .name = "Pm25LD040(C)", |
| 13286 | .bustype = BUS_SPI, |
| 13287 | .manufacture_id = PMC_ID, |
| 13288 | .model_id = PMC_PM25LV040, |
| 13289 | .total_size = 512, |
| 13290 | .page_size = 256, |
| 13291 | .feature_bits = FEATURE_WRSR_WREN, |
Angel Pons | 05127bf | 2018-09-30 20:23:24 +0200 | [diff] [blame] | 13292 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 13293 | .probe = probe_spi_rdid, |
| 13294 | .probe_timing = TIMING_ZERO, |
| 13295 | .block_erasers = |
| 13296 | { |
| 13297 | { |
| 13298 | .eraseblocks = { {4 * 1024, 128} }, |
| 13299 | .block_erase = spi_block_erase_20, |
| 13300 | }, { |
| 13301 | .eraseblocks = { {4 * 1024, 128} }, |
| 13302 | .block_erase = spi_block_erase_d7, |
| 13303 | }, { |
| 13304 | .eraseblocks = { {64 * 1024, 8} }, |
| 13305 | .block_erase = spi_block_erase_d8, |
| 13306 | }, { |
| 13307 | .eraseblocks = { {512 * 1024, 1} }, |
| 13308 | .block_erase = spi_block_erase_60, |
| 13309 | }, { |
| 13310 | .eraseblocks = { {512 * 1024, 1} }, |
| 13311 | .block_erase = spi_block_erase_c7, |
| 13312 | } |
| 13313 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 13314 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 13315 | .unlock = spi_disable_blockprotect, |
| 13316 | .write = spi_chip_write_256, |
| 13317 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 13318 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */ |
| 13319 | }, |
| 13320 | |
Steven Honeyman | 81a8fb7 | 2015-06-02 22:32:24 +0000 | [diff] [blame] | 13321 | { |
| 13322 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13323 | .name = "Pm25LD256C", |
| 13324 | .bustype = BUS_SPI, |
| 13325 | .manufacture_id = PMC_ID, |
| 13326 | .model_id = PMC_PM25LD256C, |
| 13327 | .total_size = 32, |
| 13328 | .page_size = 256, |
| 13329 | .feature_bits = FEATURE_WRSR_WREN, |
| 13330 | .tested = TEST_UNTESTED, |
| 13331 | .probe = probe_spi_rdid, |
| 13332 | .probe_timing = TIMING_ZERO, |
| 13333 | .block_erasers = |
| 13334 | { |
| 13335 | { |
| 13336 | .eraseblocks = { {4 * 1024, 8} }, |
| 13337 | .block_erase = spi_block_erase_20, |
| 13338 | }, { |
| 13339 | .eraseblocks = { {4 * 1024, 8} }, |
| 13340 | .block_erase = spi_block_erase_d7, |
| 13341 | }, { |
| 13342 | .eraseblocks = { {32 * 1024, 1} }, |
| 13343 | .block_erase = spi_block_erase_d8, |
| 13344 | }, { |
| 13345 | .eraseblocks = { {32 * 1024, 1} }, |
| 13346 | .block_erase = spi_block_erase_60, |
| 13347 | }, { |
| 13348 | .eraseblocks = { {32 * 1024, 1} }, |
| 13349 | .block_erase = spi_block_erase_c7, |
| 13350 | } |
| 13351 | }, |
| 13352 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 13353 | .unlock = spi_disable_blockprotect, |
| 13354 | .write = spi_chip_write_256, |
| 13355 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 13356 | .voltage = {2700, 3600}, |
| 13357 | }, |
| 13358 | |
| 13359 | { |
| 13360 | .vendor = "PMC", |
| 13361 | .name = "Pm25LD512(C)", |
| 13362 | .bustype = BUS_SPI, |
| 13363 | .manufacture_id = PMC_ID, |
| 13364 | .model_id = PMC_PM25LD512, |
| 13365 | .total_size = 64, |
| 13366 | .page_size = 256, |
| 13367 | .feature_bits = FEATURE_WRSR_WREN, |
| 13368 | .tested = TEST_OK_PREW, |
| 13369 | .probe = probe_spi_rdid, |
| 13370 | .probe_timing = TIMING_ZERO, |
| 13371 | .block_erasers = |
| 13372 | { |
| 13373 | { |
| 13374 | .eraseblocks = { {4 * 1024, 16} }, |
| 13375 | .block_erase = spi_block_erase_20, |
| 13376 | }, { |
| 13377 | .eraseblocks = { {4 * 1024, 16} }, |
| 13378 | .block_erase = spi_block_erase_d7, |
| 13379 | }, { |
| 13380 | .eraseblocks = { {32 * 1024, 2} }, |
| 13381 | .block_erase = spi_block_erase_d8, |
| 13382 | }, { |
| 13383 | .eraseblocks = { {64 * 1024, 1} }, |
| 13384 | .block_erase = spi_block_erase_60, |
| 13385 | }, { |
| 13386 | .eraseblocks = { {64 * 1024, 1} }, |
| 13387 | .block_erase = spi_block_erase_c7, |
| 13388 | } |
| 13389 | }, |
| 13390 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 13391 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 13392 | .write = spi_chip_write_256, |
| 13393 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 13394 | .voltage = {2300, 3600}, |
| 13395 | }, |
| 13396 | |
| 13397 | { |
| 13398 | .vendor = "PMC", |
| 13399 | .name = "Pm25LQ016", |
| 13400 | .bustype = BUS_SPI, |
| 13401 | .manufacture_id = PMC_ID, |
| 13402 | .model_id = PMC_PM25LQ016, |
| 13403 | .total_size = 2048, |
| 13404 | .page_size = 256, |
| 13405 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 13406 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 13407 | .tested = TEST_UNTESTED, |
| 13408 | .probe = probe_spi_rdid, |
| 13409 | .probe_timing = TIMING_ZERO, |
| 13410 | .block_erasers = |
| 13411 | { |
| 13412 | { |
| 13413 | .eraseblocks = { {4 * 1024, 512} }, |
| 13414 | .block_erase = spi_block_erase_20, |
| 13415 | }, { |
| 13416 | .eraseblocks = { {4 * 1024, 512} }, |
| 13417 | .block_erase = spi_block_erase_d7, |
| 13418 | }, { |
| 13419 | .eraseblocks = { {64 * 1024, 32} }, |
| 13420 | .block_erase = spi_block_erase_d8, |
| 13421 | }, { |
| 13422 | .eraseblocks = { {2048 * 1024, 1} }, |
| 13423 | .block_erase = spi_block_erase_60, |
| 13424 | }, { |
| 13425 | .eraseblocks = { {2048 * 1024, 1} }, |
| 13426 | .block_erase = spi_block_erase_c7, |
| 13427 | } |
| 13428 | }, |
| 13429 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 13430 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 13431 | .write = spi_chip_write_256, |
| 13432 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 13433 | .voltage = {2300, 3600}, |
| 13434 | }, |
| 13435 | |
| 13436 | { |
| 13437 | .vendor = "PMC", |
Steven Honeyman | 81a8fb7 | 2015-06-02 22:32:24 +0000 | [diff] [blame] | 13438 | .name = "Pm25LQ020", |
| 13439 | .bustype = BUS_SPI, |
| 13440 | .manufacture_id = PMC_ID, |
| 13441 | .model_id = PMC_PM25LQ020, |
| 13442 | .total_size = 256, |
| 13443 | .page_size = 256, |
| 13444 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 13445 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 13446 | .tested = TEST_UNTESTED, |
| 13447 | .probe = probe_spi_rdid, |
| 13448 | .probe_timing = TIMING_ZERO, |
| 13449 | .block_erasers = |
| 13450 | { |
| 13451 | { |
| 13452 | .eraseblocks = { {4 * 1024, 64} }, |
| 13453 | .block_erase = spi_block_erase_20, |
| 13454 | }, { |
| 13455 | .eraseblocks = { {4 * 1024, 64} }, |
| 13456 | .block_erase = spi_block_erase_d7, |
| 13457 | }, { |
| 13458 | .eraseblocks = { {64 * 1024, 4} }, |
| 13459 | .block_erase = spi_block_erase_d8, |
| 13460 | }, { |
| 13461 | .eraseblocks = { {256 * 1024, 1} }, |
| 13462 | .block_erase = spi_block_erase_60, |
| 13463 | }, { |
| 13464 | .eraseblocks = { {256 * 1024, 1} }, |
| 13465 | .block_erase = spi_block_erase_c7, |
| 13466 | } |
| 13467 | }, |
| 13468 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 13469 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 13470 | .write = spi_chip_write_256, |
| 13471 | .read = spi_chip_read, |
| 13472 | .voltage = {2300, 3600}, |
| 13473 | }, |
| 13474 | |
| 13475 | { |
| 13476 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13477 | .name = "Pm25LQ032C", |
| 13478 | .bustype = BUS_SPI, |
| 13479 | .manufacture_id = PMC_ID, |
| 13480 | .model_id = PMC_PM25LQ032C, |
| 13481 | .total_size = 4096, |
| 13482 | .page_size = 256, |
| 13483 | /* OTP: 64B total; read 0x4B, write 0xB1 */ |
| 13484 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 13485 | .tested = TEST_OK_PREW, |
| 13486 | .probe = probe_spi_rdid, |
| 13487 | .probe_timing = TIMING_ZERO, |
| 13488 | .block_erasers = |
| 13489 | { |
| 13490 | { |
| 13491 | .eraseblocks = { {4 * 1024, 1024} }, |
| 13492 | .block_erase = spi_block_erase_20, |
| 13493 | }, { |
| 13494 | .eraseblocks = { {4 * 1024, 1024} }, |
| 13495 | .block_erase = spi_block_erase_d7, |
| 13496 | }, { |
| 13497 | .eraseblocks = { {64 * 1024, 64} }, |
| 13498 | .block_erase = spi_block_erase_d8, |
| 13499 | }, { |
| 13500 | .eraseblocks = { {4096 * 1024, 1} }, |
| 13501 | .block_erase = spi_block_erase_60, |
| 13502 | }, { |
| 13503 | .eraseblocks = { {4096 * 1024, 1} }, |
| 13504 | .block_erase = spi_block_erase_c7, |
| 13505 | } |
| 13506 | }, |
| 13507 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 13508 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 13509 | .write = spi_chip_write_256, |
| 13510 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 13511 | .voltage = {2700, 3600}, |
| 13512 | }, |
| 13513 | |
| 13514 | { |
| 13515 | .vendor = "PMC", |
Steven Honeyman | 81a8fb7 | 2015-06-02 22:32:24 +0000 | [diff] [blame] | 13516 | .name = "Pm25LQ040", |
| 13517 | .bustype = BUS_SPI, |
| 13518 | .manufacture_id = PMC_ID, |
| 13519 | .model_id = PMC_PM25LQ040, |
| 13520 | .total_size = 512, |
| 13521 | .page_size = 256, |
| 13522 | /* OTP: 256B total; read 0x4B, write 0xB1 */ |
| 13523 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 13524 | .tested = TEST_UNTESTED, |
| 13525 | .probe = probe_spi_rdid, |
| 13526 | .probe_timing = TIMING_ZERO, |
| 13527 | .block_erasers = |
| 13528 | { |
| 13529 | { |
| 13530 | .eraseblocks = { {4 * 1024, 128} }, |
| 13531 | .block_erase = spi_block_erase_20, |
| 13532 | }, { |
| 13533 | .eraseblocks = { {4 * 1024, 128} }, |
| 13534 | .block_erase = spi_block_erase_d7, |
| 13535 | }, { |
| 13536 | .eraseblocks = { {64 * 1024, 8} }, |
| 13537 | .block_erase = spi_block_erase_d8, |
| 13538 | }, { |
| 13539 | .eraseblocks = { {512 * 1024, 1} }, |
| 13540 | .block_erase = spi_block_erase_60, |
| 13541 | }, { |
| 13542 | .eraseblocks = { {512 * 1024, 1} }, |
| 13543 | .block_erase = spi_block_erase_c7, |
| 13544 | } |
| 13545 | }, |
| 13546 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 13547 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 13548 | .write = spi_chip_write_256, |
| 13549 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 13550 | .voltage = {2300, 3600}, |
| 13551 | }, |
| 13552 | |
| 13553 | { |
| 13554 | .vendor = "PMC", |
| 13555 | .name = "Pm25LQ080", |
| 13556 | .bustype = BUS_SPI, |
| 13557 | .manufacture_id = PMC_ID, |
| 13558 | .model_id = PMC_PM25LQ080, |
| 13559 | .total_size = 1024, |
| 13560 | .page_size = 256, |
| 13561 | /* OTP: 64B total; read 0x4B, write 0xB1 */ |
| 13562 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 13563 | .tested = TEST_UNTESTED, |
| 13564 | .probe = probe_spi_rdid, |
| 13565 | .probe_timing = TIMING_ZERO, |
| 13566 | .block_erasers = |
| 13567 | { |
| 13568 | { |
| 13569 | .eraseblocks = { {4 * 1024, 256} }, |
| 13570 | .block_erase = spi_block_erase_20, |
| 13571 | }, { |
| 13572 | .eraseblocks = { {4 * 1024, 256} }, |
| 13573 | .block_erase = spi_block_erase_d7, |
| 13574 | }, { |
| 13575 | .eraseblocks = { {64 * 1024, 16} }, |
| 13576 | .block_erase = spi_block_erase_d8, |
| 13577 | }, { |
| 13578 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13579 | .block_erase = spi_block_erase_60, |
| 13580 | }, { |
| 13581 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13582 | .block_erase = spi_block_erase_c7, |
| 13583 | } |
| 13584 | }, |
| 13585 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 13586 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 13587 | .write = spi_chip_write_256, |
| 13588 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 13589 | .voltage = {2300, 3600}, |
| 13590 | }, |
| 13591 | |
| 13592 | { |
| 13593 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13594 | .name = "Pm25LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13595 | .bustype = BUS_SPI, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 13596 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13597 | .model_id = PMC_PM25LV010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13598 | .total_size = 128, |
| 13599 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 13600 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 13601 | .tested = TEST_OK_PREW, |
| 13602 | .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] | 13603 | .probe_timing = TIMING_ZERO, |
| 13604 | .block_erasers = |
| 13605 | { |
| 13606 | { |
| 13607 | .eraseblocks = { {4 * 1024, 32} }, |
| 13608 | .block_erase = spi_block_erase_d7, |
| 13609 | }, { |
| 13610 | .eraseblocks = { {32 * 1024, 4} }, |
| 13611 | .block_erase = spi_block_erase_d8, |
| 13612 | }, { |
| 13613 | .eraseblocks = { {128 * 1024, 1} }, |
| 13614 | .block_erase = spi_block_erase_c7, |
| 13615 | } |
| 13616 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 13617 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 13618 | .unlock = spi_disable_blockprotect, |
| 13619 | .write = spi_chip_write_256, |
| 13620 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13621 | .voltage = {2700, 3600}, |
| 13622 | }, |
| 13623 | |
| 13624 | { |
| 13625 | .vendor = "PMC", |
| 13626 | .name = "Pm25LV010A", |
| 13627 | .bustype = BUS_SPI, |
| 13628 | .manufacture_id = PMC_ID, |
| 13629 | .model_id = PMC_PM25LV010, |
| 13630 | .total_size = 128, |
| 13631 | .page_size = 256, |
| 13632 | .feature_bits = FEATURE_WRSR_WREN, |
| 13633 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13634 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13635 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13636 | .block_erasers = |
| 13637 | { |
| 13638 | { |
| 13639 | .eraseblocks = { {4 * 1024, 32} }, |
| 13640 | .block_erase = spi_block_erase_d7, |
| 13641 | }, { |
| 13642 | .eraseblocks = { {32 * 1024, 4} }, |
| 13643 | .block_erase = spi_block_erase_d8, |
| 13644 | }, { |
| 13645 | .eraseblocks = { {128 * 1024, 1} }, |
| 13646 | .block_erase = spi_block_erase_c7, |
| 13647 | } |
| 13648 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 13649 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 13650 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 13651 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 13652 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 13653 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13654 | }, |
| 13655 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13656 | { |
| 13657 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13658 | .name = "Pm25LV016B", |
| 13659 | .bustype = BUS_SPI, |
| 13660 | .manufacture_id = PMC_ID, |
| 13661 | .model_id = PMC_PM25LV016B, |
| 13662 | .total_size = 2048, |
| 13663 | .page_size = 256, |
| 13664 | .feature_bits = FEATURE_WRSR_WREN, |
| 13665 | .tested = TEST_UNTESTED, |
| 13666 | .probe = probe_spi_rdid, |
| 13667 | .probe_timing = TIMING_ZERO, |
| 13668 | .block_erasers = |
| 13669 | { |
| 13670 | { |
| 13671 | .eraseblocks = { {4 * 1024, 512} }, |
| 13672 | .block_erase = spi_block_erase_d7, |
| 13673 | }, { |
| 13674 | .eraseblocks = { {4 * 1024, 512} }, |
| 13675 | .block_erase = spi_block_erase_20, |
| 13676 | }, { |
| 13677 | .eraseblocks = { {64 * 1024, 32} }, |
| 13678 | .block_erase = spi_block_erase_d8, |
| 13679 | }, { |
| 13680 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 13681 | .block_erase = spi_block_erase_60, |
| 13682 | }, { |
| 13683 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 13684 | .block_erase = spi_block_erase_c7, |
| 13685 | } |
| 13686 | }, |
| 13687 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 13688 | .unlock = spi_disable_blockprotect, |
| 13689 | .write = spi_chip_write_256, |
| 13690 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 13691 | .voltage = {2700, 3600}, |
| 13692 | }, |
| 13693 | |
| 13694 | { |
| 13695 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13696 | .name = "Pm25LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13697 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13698 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13699 | .model_id = PMC_PM25LV020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13700 | .total_size = 256, |
| 13701 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 13702 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13703 | .tested = TEST_UNTESTED, |
| 13704 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13705 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13706 | .block_erasers = |
| 13707 | { |
| 13708 | { |
| 13709 | .eraseblocks = { {4 * 1024, 64} }, |
| 13710 | .block_erase = spi_block_erase_d7, |
| 13711 | }, { |
| 13712 | .eraseblocks = { {64 * 1024, 4} }, |
| 13713 | .block_erase = spi_block_erase_d8, |
| 13714 | }, { |
| 13715 | .eraseblocks = { {256 * 1024, 1} }, |
| 13716 | .block_erase = spi_block_erase_c7, |
| 13717 | } |
| 13718 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 13719 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 13720 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 13721 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13722 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13723 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13724 | }, |
| 13725 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13726 | { |
| 13727 | .vendor = "PMC", |
| 13728 | .name = "Pm25LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13729 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13730 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13731 | .model_id = PMC_PM25LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13732 | .total_size = 512, |
| 13733 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 13734 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 13735 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13736 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13737 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13738 | .block_erasers = |
| 13739 | { |
| 13740 | { |
| 13741 | .eraseblocks = { {4 * 1024, 128} }, |
| 13742 | .block_erase = spi_block_erase_d7, |
| 13743 | }, { |
| 13744 | .eraseblocks = { {64 * 1024, 8} }, |
| 13745 | .block_erase = spi_block_erase_d8, |
| 13746 | }, { |
| 13747 | .eraseblocks = { {512 * 1024, 1} }, |
| 13748 | .block_erase = spi_block_erase_c7, |
| 13749 | } |
| 13750 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 13751 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 13752 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 13753 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 13754 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13755 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13756 | }, |
| 13757 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13758 | { |
| 13759 | .vendor = "PMC", |
| 13760 | .name = "Pm25LV080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13761 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13762 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13763 | .model_id = PMC_PM25LV080B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13764 | .total_size = 1024, |
| 13765 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 13766 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13767 | .tested = TEST_UNTESTED, |
| 13768 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13769 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13770 | .block_erasers = |
| 13771 | { |
| 13772 | { |
| 13773 | .eraseblocks = { {4 * 1024, 256} }, |
| 13774 | .block_erase = spi_block_erase_d7, |
| 13775 | }, { |
| 13776 | .eraseblocks = { {4 * 1024, 256} }, |
| 13777 | .block_erase = spi_block_erase_20, |
| 13778 | }, { |
| 13779 | .eraseblocks = { {64 * 1024, 16} }, |
| 13780 | .block_erase = spi_block_erase_d8, |
| 13781 | }, { |
| 13782 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13783 | .block_erase = spi_block_erase_60, |
| 13784 | }, { |
| 13785 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13786 | .block_erase = spi_block_erase_c7, |
| 13787 | } |
| 13788 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 13789 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 13790 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 13791 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 13792 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13793 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13794 | }, |
| 13795 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13796 | { |
| 13797 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13798 | .name = "Pm25LV512(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13799 | .bustype = BUS_SPI, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13800 | .manufacture_id = PMC_ID_NOPREFIX, |
| 13801 | .model_id = PMC_PM25LV512, |
| 13802 | .total_size = 64, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13803 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 13804 | .feature_bits = FEATURE_WRSR_WREN, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13805 | .tested = TEST_OK_PREW, |
| 13806 | .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] | 13807 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13808 | .block_erasers = |
| 13809 | { |
| 13810 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13811 | .eraseblocks = { {4 * 1024, 16} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13812 | .block_erase = spi_block_erase_d7, |
| 13813 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13814 | .eraseblocks = { {32 * 1024, 2} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13815 | .block_erase = spi_block_erase_d8, |
| 13816 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13817 | .eraseblocks = { {64 * 1024, 1} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13818 | .block_erase = spi_block_erase_c7, |
| 13819 | } |
| 13820 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13821 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 13822 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 13823 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 13824 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 13825 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13826 | }, |
| 13827 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13828 | { |
| 13829 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 13830 | .name = "Pm29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13831 | .bustype = BUS_PARALLEL, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 13832 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13833 | .model_id = PMC_PM29F002B, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 13834 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 13835 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13836 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 13837 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13838 | .probe = probe_jedec, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 13839 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 13840 | .block_erasers = |
| 13841 | { |
| 13842 | { |
| 13843 | .eraseblocks = { |
| 13844 | {16 * 1024, 1}, |
| 13845 | {8 * 1024, 2}, |
| 13846 | {96 * 1024, 1}, |
| 13847 | {128 * 1024, 1}, |
| 13848 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13849 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 13850 | }, { |
| 13851 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13852 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 13853 | }, |
| 13854 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13855 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 13856 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13857 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 13858 | .prepare_access = prepare_memory_access, |
| 13859 | .finish_access = finish_memory_access, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 13860 | }, |
| 13861 | |
| 13862 | { |
| 13863 | .vendor = "PMC", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13864 | .name = "Pm29F002T", |
| 13865 | .bustype = BUS_PARALLEL, |
| 13866 | .manufacture_id = PMC_ID_NOPREFIX, |
| 13867 | .model_id = PMC_PM29F002T, |
| 13868 | .total_size = 256, |
| 13869 | .page_size = 8 * 1024, |
| 13870 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 13871 | .tested = TEST_OK_PREW, |
| 13872 | .probe = probe_jedec, |
| 13873 | .probe_timing = TIMING_FIXME, |
| 13874 | .block_erasers = |
| 13875 | { |
| 13876 | { |
| 13877 | .eraseblocks = { |
| 13878 | {128 * 1024, 1}, |
| 13879 | {96 * 1024, 1}, |
| 13880 | {8 * 1024, 2}, |
| 13881 | {16 * 1024, 1}, |
| 13882 | }, |
| 13883 | .block_erase = erase_sector_jedec, |
| 13884 | }, { |
| 13885 | .eraseblocks = { {256 * 1024, 1} }, |
| 13886 | .block_erase = erase_chip_block_jedec, |
| 13887 | }, |
| 13888 | }, |
| 13889 | .write = write_jedec_1, |
| 13890 | .read = read_memmapped, |
| 13891 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 13892 | .prepare_access = prepare_memory_access, |
| 13893 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 13894 | }, |
| 13895 | |
| 13896 | { |
| 13897 | .vendor = "PMC", |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 13898 | .name = "Pm39LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13899 | .bustype = BUS_PARALLEL, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 13900 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13901 | .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] | 13902 | .total_size = 128, |
| 13903 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13904 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 13905 | .tested = TEST_OK_PREW, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 13906 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13907 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 13908 | .block_erasers = |
| 13909 | { |
| 13910 | { |
| 13911 | .eraseblocks = { {4 * 1024, 32} }, |
| 13912 | .block_erase = erase_sector_jedec, |
| 13913 | }, { |
| 13914 | .eraseblocks = { {64 * 1024, 2} }, |
| 13915 | .block_erase = erase_block_jedec, |
| 13916 | }, { |
| 13917 | .eraseblocks = { {128 * 1024, 1} }, |
| 13918 | .block_erase = erase_chip_block_jedec, |
| 13919 | } |
| 13920 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13921 | .write = write_jedec_1, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 13922 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13923 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 13924 | .prepare_access = prepare_memory_access, |
| 13925 | .finish_access = finish_memory_access, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 13926 | }, |
| 13927 | |
| 13928 | { |
| 13929 | .vendor = "PMC", |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13930 | .name = "Pm39LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13931 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13932 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13933 | .model_id = PMC_PM39LV020, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13934 | .total_size = 256, |
| 13935 | .page_size = 4096, |
| 13936 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 13937 | .tested = TEST_UNTESTED, |
| 13938 | .probe = probe_jedec, |
| 13939 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 13940 | .block_erasers = |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13941 | { |
| 13942 | { |
| 13943 | .eraseblocks = { {4 * 1024, 64} }, |
| 13944 | .block_erase = erase_sector_jedec, |
| 13945 | }, { |
| 13946 | .eraseblocks = { {64 * 1024, 4} }, |
| 13947 | .block_erase = erase_block_jedec, |
| 13948 | }, { |
| 13949 | .eraseblocks = { {256 * 1024, 1} }, |
| 13950 | .block_erase = erase_chip_block_jedec, |
| 13951 | } |
| 13952 | }, |
| 13953 | .write = write_jedec_1, |
| 13954 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13955 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 13956 | .prepare_access = prepare_memory_access, |
| 13957 | .finish_access = finish_memory_access, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13958 | }, |
| 13959 | |
| 13960 | { |
| 13961 | .vendor = "PMC", |
| 13962 | .name = "Pm39LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13963 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13964 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13965 | .model_id = PMC_PM39LV040, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13966 | .total_size = 512, |
| 13967 | .page_size = 4096, |
| 13968 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 13969 | .tested = TEST_OK_PR, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13970 | .probe = probe_jedec, |
| 13971 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 13972 | .block_erasers = |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13973 | { |
| 13974 | { |
| 13975 | .eraseblocks = { {4 * 1024, 128} }, |
| 13976 | .block_erase = erase_sector_jedec, |
| 13977 | }, { |
| 13978 | .eraseblocks = { {64 * 1024, 8} }, |
| 13979 | .block_erase = erase_block_jedec, |
| 13980 | }, { |
| 13981 | .eraseblocks = { {512 * 1024, 1} }, |
| 13982 | .block_erase = erase_chip_block_jedec, |
| 13983 | } |
| 13984 | }, |
| 13985 | .write = write_jedec_1, |
| 13986 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13987 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 13988 | .prepare_access = prepare_memory_access, |
| 13989 | .finish_access = finish_memory_access, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 13990 | }, |
Kyösti Mälkki | edab1d2 | 2012-05-20 23:32:33 +0000 | [diff] [blame] | 13991 | |
| 13992 | { |
| 13993 | .vendor = "PMC", |
| 13994 | .name = "Pm39LV512", |
| 13995 | .bustype = BUS_PARALLEL, |
| 13996 | .manufacture_id = PMC_ID_NOPREFIX, |
| 13997 | .model_id = PMC_PM39LV512, |
| 13998 | .total_size = 64, |
| 13999 | .page_size = 4096, |
| 14000 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 14001 | .tested = TEST_OK_PREW, |
| 14002 | .probe = probe_jedec, |
| 14003 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 14004 | .block_erasers = |
| 14005 | { |
| 14006 | { |
| 14007 | .eraseblocks = { {4 * 1024, 16} }, |
| 14008 | .block_erase = erase_sector_jedec, |
| 14009 | }, { |
| 14010 | .eraseblocks = { {64 * 1024, 1} }, |
| 14011 | .block_erase = erase_block_jedec, |
| 14012 | }, { |
| 14013 | .eraseblocks = { {64 * 1024, 1} }, |
| 14014 | .block_erase = erase_chip_block_jedec, |
| 14015 | } |
| 14016 | }, |
| 14017 | .write = write_jedec_1, |
| 14018 | .read = read_memmapped, |
| 14019 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 14020 | .prepare_access = prepare_memory_access, |
| 14021 | .finish_access = finish_memory_access, |
Kyösti Mälkki | edab1d2 | 2012-05-20 23:32:33 +0000 | [diff] [blame] | 14022 | }, |
| 14023 | |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 14024 | { |
| 14025 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14026 | .name = "Pm49FL002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14027 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14028 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14029 | .model_id = PMC_PM49FL002, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14030 | .total_size = 256, |
| 14031 | .page_size = 16 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 14032 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14033 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 14034 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14035 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 14036 | .block_erasers = |
| 14037 | { |
| 14038 | { |
| 14039 | .eraseblocks = { {4 * 1024, 64} }, |
| 14040 | .block_erase = erase_sector_jedec, |
| 14041 | }, { |
| 14042 | .eraseblocks = { {16 * 1024, 16} }, |
| 14043 | .block_erase = erase_block_jedec, |
| 14044 | }, { |
| 14045 | .eraseblocks = { {256 * 1024, 1} }, |
| 14046 | .block_erase = erase_chip_block_jedec, |
| 14047 | } |
| 14048 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14049 | .unlock = unlock_regspace2_uniform_32k, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 14050 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14051 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14052 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 14053 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 14054 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14055 | }, |
| 14056 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14057 | { |
| 14058 | .vendor = "PMC", |
| 14059 | .name = "Pm49FL004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14060 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14061 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14062 | .model_id = PMC_PM49FL004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14063 | .total_size = 512, |
| 14064 | .page_size = 64 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 14065 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 14066 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 14067 | .probe = probe_jedec, |
Stefan Tauner | 74dc73f | 2015-03-01 22:04:38 +0000 | [diff] [blame] | 14068 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 14069 | .block_erasers = |
| 14070 | { |
| 14071 | { |
| 14072 | .eraseblocks = { {4 * 1024, 128} }, |
| 14073 | .block_erase = erase_sector_jedec, |
| 14074 | }, { |
| 14075 | .eraseblocks = { {64 * 1024, 8} }, |
| 14076 | .block_erase = erase_block_jedec, |
| 14077 | }, { |
| 14078 | .eraseblocks = { {512 * 1024, 1} }, |
| 14079 | .block_erase = erase_chip_block_jedec, |
| 14080 | } |
| 14081 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14082 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 14083 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14084 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14085 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 14086 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 14087 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14088 | }, |
| 14089 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14090 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14091 | .vendor = "SST", |
Idwer Vollering | f3607d1 | 2014-05-07 15:25:04 +0000 | [diff] [blame] | 14092 | .name = "SST25LF020A", |
| 14093 | .bustype = BUS_SPI, |
| 14094 | .manufacture_id = SST_ID, |
| 14095 | .model_id = SST_SST25VF020_REMS, |
| 14096 | .total_size = 256, |
| 14097 | .page_size = 256, |
| 14098 | .feature_bits = FEATURE_WRSR_EWSR, |
| 14099 | .tested = TEST_OK_PREW, |
| 14100 | .probe = probe_spi_rems, |
| 14101 | .probe_timing = TIMING_ZERO, |
| 14102 | .block_erasers = |
| 14103 | { |
| 14104 | { |
| 14105 | .eraseblocks = { {4 * 1024, 64} }, |
| 14106 | .block_erase = spi_block_erase_20, |
| 14107 | }, { |
| 14108 | .eraseblocks = { {32 * 1024, 8} }, |
| 14109 | .block_erase = spi_block_erase_52, |
| 14110 | }, { |
| 14111 | .eraseblocks = { {256 * 1024, 1} }, |
| 14112 | .block_erase = spi_block_erase_60, |
| 14113 | }, |
| 14114 | }, |
| 14115 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 14116 | .unlock = spi_disable_blockprotect, |
| 14117 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 14118 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 14119 | .voltage = {2700, 3600}, |
| 14120 | }, |
| 14121 | |
| 14122 | { |
| 14123 | .vendor = "SST", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 14124 | .name = "SST25LF040A", |
| 14125 | .bustype = BUS_SPI, |
| 14126 | .manufacture_id = SST_ID, |
| 14127 | .model_id = SST_SST25VF040_REMS, |
| 14128 | .total_size = 512, |
| 14129 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 14130 | .feature_bits = FEATURE_WRSR_EWSR, |
Uwe Hermann | 4335ec8 | 2011-09-07 20:20:25 +0000 | [diff] [blame] | 14131 | .tested = TEST_OK_PREW, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 14132 | .probe = probe_spi_res2, |
| 14133 | .probe_timing = TIMING_ZERO, |
| 14134 | .block_erasers = |
| 14135 | { |
| 14136 | { |
| 14137 | .eraseblocks = { {4 * 1024, 128} }, |
| 14138 | .block_erase = spi_block_erase_20, |
| 14139 | }, { |
| 14140 | .eraseblocks = { {32 * 1024, 16} }, |
| 14141 | .block_erase = spi_block_erase_52, |
| 14142 | }, { |
| 14143 | .eraseblocks = { {512 * 1024, 1} }, |
| 14144 | .block_erase = spi_block_erase_60, |
| 14145 | }, |
| 14146 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 14147 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 14148 | .unlock = spi_disable_blockprotect, |
| 14149 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 14150 | .read = spi_chip_read, |
| 14151 | .voltage = {3000, 3600}, |
| 14152 | }, |
| 14153 | |
| 14154 | { |
| 14155 | .vendor = "SST", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 14156 | .name = "SST25LF080(A)", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 14157 | .bustype = BUS_SPI, |
| 14158 | .manufacture_id = SST_ID, |
| 14159 | .model_id = SST_SST25VF080_REMS, |
| 14160 | .total_size = 1024, |
| 14161 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 14162 | .feature_bits = FEATURE_WRSR_EITHER, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 14163 | .tested = TEST_UNTESTED, |
| 14164 | .probe = probe_spi_res2, |
| 14165 | .probe_timing = TIMING_ZERO, |
| 14166 | .block_erasers = |
| 14167 | { |
| 14168 | { |
| 14169 | .eraseblocks = { {4 * 1024, 256} }, |
| 14170 | .block_erase = spi_block_erase_20, |
| 14171 | }, { |
| 14172 | .eraseblocks = { {32 * 1024, 32} }, |
| 14173 | .block_erase = spi_block_erase_52, |
| 14174 | }, { |
| 14175 | .eraseblocks = { {1024 * 1024, 1} }, |
| 14176 | .block_erase = spi_block_erase_60, |
| 14177 | }, |
| 14178 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 14179 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 14180 | .unlock = spi_disable_blockprotect, |
| 14181 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 14182 | .read = spi_chip_read, |
| 14183 | .voltage = {3000, 3600}, |
| 14184 | }, |
| 14185 | |
| 14186 | { |
| 14187 | .vendor = "SST", |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14188 | .name = "SST25VF010(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14189 | .bustype = BUS_SPI, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 14190 | .manufacture_id = SST_ID, |
| 14191 | .model_id = SST_SST25VF010_REMS, |
| 14192 | .total_size = 128, |
| 14193 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 14194 | .feature_bits = FEATURE_WRSR_EWSR, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 14195 | .tested = TEST_OK_PREW, |
| 14196 | .probe = probe_spi_rems, |
| 14197 | .probe_timing = TIMING_ZERO, |
| 14198 | .block_erasers = |
| 14199 | { |
| 14200 | { |
| 14201 | .eraseblocks = { {4 * 1024, 32} }, |
| 14202 | .block_erase = spi_block_erase_20, |
| 14203 | }, { |
| 14204 | .eraseblocks = { {32 * 1024, 4} }, |
| 14205 | .block_erase = spi_block_erase_52, |
| 14206 | }, { |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 14207 | .eraseblocks = { {32 * 1024, 4} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14208 | .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 14209 | }, { |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 14210 | .eraseblocks = { {128 * 1024, 1} }, |
| 14211 | .block_erase = spi_block_erase_60, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 14212 | }, { |
| 14213 | .eraseblocks = { {128 * 1024, 1} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14214 | .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 14215 | }, |
| 14216 | }, |
| 14217 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 14218 | .unlock = spi_disable_blockprotect, |
| 14219 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14220 | .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 14221 | .voltage = {2700, 3600}, |
| 14222 | }, |
| 14223 | |
| 14224 | { |
| 14225 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14226 | .name = "SST25VF016B", |
| 14227 | .bustype = BUS_SPI, |
| 14228 | .manufacture_id = SST_ID, |
| 14229 | .model_id = SST_SST25VF016B, |
| 14230 | .total_size = 2048, |
| 14231 | .page_size = 256, |
| 14232 | .feature_bits = FEATURE_WRSR_EITHER, |
| 14233 | .tested = TEST_OK_PREW, |
| 14234 | .probe = probe_spi_rdid, |
| 14235 | .probe_timing = TIMING_ZERO, |
| 14236 | .block_erasers = |
| 14237 | { |
| 14238 | { |
| 14239 | .eraseblocks = { {4 * 1024, 512} }, |
| 14240 | .block_erase = spi_block_erase_20, |
| 14241 | }, { |
| 14242 | .eraseblocks = { {32 * 1024, 64} }, |
| 14243 | .block_erase = spi_block_erase_52, |
| 14244 | }, { |
| 14245 | .eraseblocks = { {64 * 1024, 32} }, |
| 14246 | .block_erase = spi_block_erase_d8, |
| 14247 | }, { |
| 14248 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 14249 | .block_erase = spi_block_erase_60, |
| 14250 | }, { |
| 14251 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 14252 | .block_erase = spi_block_erase_c7, |
| 14253 | }, |
| 14254 | }, |
| 14255 | .printlock = spi_prettyprint_status_register_sst25vf016, |
| 14256 | .unlock = spi_disable_blockprotect, |
| 14257 | .write = spi_aai_write, |
| 14258 | .read = spi_chip_read, |
| 14259 | .voltage = {2700, 3600}, |
| 14260 | }, |
| 14261 | |
| 14262 | { |
| 14263 | .vendor = "SST", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 14264 | .name = "SST25VF020", |
| 14265 | .bustype = BUS_SPI, |
| 14266 | .manufacture_id = SST_ID, |
| 14267 | .model_id = SST_SST25VF020_REMS, |
| 14268 | .total_size = 256, |
| 14269 | .page_size = 256, |
| 14270 | .feature_bits = FEATURE_WRSR_EWSR, |
| 14271 | .tested = TEST_UNTESTED, |
| 14272 | .probe = probe_spi_rems, |
| 14273 | .probe_timing = TIMING_ZERO, |
| 14274 | .block_erasers = |
| 14275 | { |
| 14276 | { |
| 14277 | .eraseblocks = { {4 * 1024, 64} }, |
| 14278 | .block_erase = spi_block_erase_20, |
| 14279 | }, { |
| 14280 | .eraseblocks = { {32 * 1024, 8} }, |
| 14281 | .block_erase = spi_block_erase_52, |
| 14282 | }, { |
| 14283 | .eraseblocks = { {256 * 1024, 1} }, |
| 14284 | .block_erase = spi_block_erase_60, |
| 14285 | }, |
| 14286 | }, |
| 14287 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 14288 | .unlock = spi_disable_blockprotect, |
| 14289 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 14290 | .read = spi_chip_read, /* only */ |
| 14291 | .voltage = {2700, 3600}, |
| 14292 | }, |
| 14293 | |
| 14294 | { |
| 14295 | .vendor = "SST", |
| 14296 | .name = "SST25VF020B", |
| 14297 | .bustype = BUS_SPI, |
| 14298 | .manufacture_id = SST_ID, |
| 14299 | .model_id = SST_SST25VF020B, |
| 14300 | .total_size = 256, |
| 14301 | .page_size = 256, |
| 14302 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 14303 | .tested = TEST_OK_PREW, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 14304 | .probe = probe_spi_rdid, |
| 14305 | .probe_timing = TIMING_ZERO, |
| 14306 | .block_erasers = |
| 14307 | { |
| 14308 | { |
| 14309 | .eraseblocks = { {4 * 1024, 64} }, |
| 14310 | .block_erase = spi_block_erase_20, |
| 14311 | }, { |
| 14312 | .eraseblocks = { {32 * 1024, 8} }, |
| 14313 | .block_erase = spi_block_erase_52, |
| 14314 | }, { |
| 14315 | .eraseblocks = { {64 * 1024, 4} }, |
| 14316 | .block_erase = spi_block_erase_d8, |
| 14317 | }, { |
| 14318 | .eraseblocks = { {256 * 1024, 1} }, |
| 14319 | .block_erase = spi_block_erase_60, |
| 14320 | }, { |
| 14321 | .eraseblocks = { {256 * 1024, 1} }, |
| 14322 | .block_erase = spi_block_erase_c7, |
| 14323 | }, |
| 14324 | }, |
| 14325 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */ |
| 14326 | .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */ |
| 14327 | .write = spi_aai_write, /* AAI supported (0xAD) */ |
| 14328 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 14329 | .voltage = {2700, 3600}, |
| 14330 | }, |
| 14331 | |
| 14332 | { |
| 14333 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14334 | .name = "SST25VF032B", |
| 14335 | .bustype = BUS_SPI, |
| 14336 | .manufacture_id = SST_ID, |
| 14337 | .model_id = SST_SST25VF032B, |
| 14338 | .total_size = 4096, |
| 14339 | .page_size = 256, |
| 14340 | .feature_bits = FEATURE_WRSR_EWSR, |
| 14341 | .tested = TEST_OK_PREW, |
| 14342 | .probe = probe_spi_rdid, |
| 14343 | .probe_timing = TIMING_ZERO, |
| 14344 | .block_erasers = |
| 14345 | { |
| 14346 | { |
| 14347 | .eraseblocks = { {4 * 1024, 1024} }, |
| 14348 | .block_erase = spi_block_erase_20, |
| 14349 | }, { |
| 14350 | .eraseblocks = { {32 * 1024, 128} }, |
| 14351 | .block_erase = spi_block_erase_52, |
| 14352 | }, { |
| 14353 | .eraseblocks = { {64 * 1024, 64} }, |
| 14354 | .block_erase = spi_block_erase_d8, |
| 14355 | }, { |
| 14356 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 14357 | .block_erase = spi_block_erase_60, |
| 14358 | }, { |
| 14359 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 14360 | .block_erase = spi_block_erase_c7, |
| 14361 | }, |
| 14362 | }, |
| 14363 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
| 14364 | .unlock = spi_disable_blockprotect, |
| 14365 | .write = spi_aai_write, |
| 14366 | .read = spi_chip_read, |
| 14367 | .voltage = {2700, 3600}, |
| 14368 | }, |
| 14369 | |
| 14370 | { |
| 14371 | .vendor = "SST", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 14372 | .name = "SST25VF040", |
| 14373 | .bustype = BUS_SPI, |
| 14374 | .manufacture_id = SST_ID, |
| 14375 | .model_id = SST_SST25VF040_REMS, |
| 14376 | .total_size = 512, |
| 14377 | .page_size = 256, |
| 14378 | .feature_bits = FEATURE_WRSR_EWSR, |
| 14379 | .tested = TEST_OK_PR, |
| 14380 | .probe = probe_spi_rems, |
| 14381 | .probe_timing = TIMING_ZERO, |
| 14382 | .block_erasers = |
| 14383 | { |
| 14384 | { |
| 14385 | .eraseblocks = { {4 * 1024, 128} }, |
| 14386 | .block_erase = spi_block_erase_20, |
| 14387 | }, { |
| 14388 | .eraseblocks = { {32 * 1024, 16} }, |
| 14389 | .block_erase = spi_block_erase_52, |
| 14390 | }, { |
| 14391 | .eraseblocks = { {512 * 1024, 1} }, |
| 14392 | .block_erase = spi_block_erase_60, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 14393 | }, |
| 14394 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 14395 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 14396 | .unlock = spi_disable_blockprotect, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 14397 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 14398 | .read = spi_chip_read, |
| 14399 | .voltage = {2700, 3600}, |
| 14400 | }, |
| 14401 | |
| 14402 | { |
| 14403 | .vendor = "SST", |
| 14404 | .name = "SST25VF040B", |
| 14405 | .bustype = BUS_SPI, |
| 14406 | .manufacture_id = SST_ID, |
| 14407 | .model_id = SST_SST25VF040B, |
| 14408 | .total_size = 512, |
| 14409 | .page_size = 256, |
| 14410 | .feature_bits = FEATURE_WRSR_EWSR, |
| 14411 | .tested = TEST_OK_PREW, |
| 14412 | .probe = probe_spi_rdid, |
| 14413 | .probe_timing = TIMING_ZERO, |
| 14414 | .block_erasers = |
| 14415 | { |
| 14416 | { |
| 14417 | .eraseblocks = { {4 * 1024, 128} }, |
| 14418 | .block_erase = spi_block_erase_20, |
| 14419 | }, { |
| 14420 | .eraseblocks = { {32 * 1024, 16} }, |
| 14421 | .block_erase = spi_block_erase_52, |
| 14422 | }, { |
| 14423 | .eraseblocks = { {64 * 1024, 8} }, |
| 14424 | .block_erase = spi_block_erase_d8, |
| 14425 | }, { |
| 14426 | .eraseblocks = { {512 * 1024, 1} }, |
| 14427 | .block_erase = spi_block_erase_60, |
| 14428 | }, { |
| 14429 | .eraseblocks = { {512 * 1024, 1} }, |
| 14430 | .block_erase = spi_block_erase_c7, |
| 14431 | }, |
| 14432 | }, |
| 14433 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
| 14434 | .unlock = spi_disable_blockprotect, |
| 14435 | .write = spi_aai_write, /* AAI supported (0xAD) */ |
| 14436 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 14437 | .voltage = {2700, 3600}, |
| 14438 | }, |
| 14439 | |
| 14440 | { |
| 14441 | .vendor = "SST", |
| 14442 | .name = "SST25VF040B.REMS", |
| 14443 | .bustype = BUS_SPI, |
| 14444 | .manufacture_id = SST_ID, |
| 14445 | .model_id = SST_SST25VF040B_REMS, |
| 14446 | .total_size = 512, |
| 14447 | .page_size = 256, |
| 14448 | .feature_bits = FEATURE_WRSR_EWSR, |
| 14449 | .tested = TEST_OK_PREW, |
| 14450 | .probe = probe_spi_rems, |
| 14451 | .probe_timing = TIMING_ZERO, |
| 14452 | .block_erasers = |
| 14453 | { |
| 14454 | { |
| 14455 | .eraseblocks = { {4 * 1024, 128} }, |
| 14456 | .block_erase = spi_block_erase_20, |
| 14457 | }, { |
| 14458 | .eraseblocks = { {32 * 1024, 16} }, |
| 14459 | .block_erase = spi_block_erase_52, |
| 14460 | }, { |
| 14461 | .eraseblocks = { {64 * 1024, 8} }, |
| 14462 | .block_erase = spi_block_erase_d8, |
| 14463 | }, { |
| 14464 | .eraseblocks = { {512 * 1024, 1} }, |
| 14465 | .block_erase = spi_block_erase_60, |
| 14466 | }, { |
| 14467 | .eraseblocks = { {512 * 1024, 1} }, |
| 14468 | .block_erase = spi_block_erase_c7, |
| 14469 | }, |
| 14470 | }, |
| 14471 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
| 14472 | .unlock = spi_disable_blockprotect, |
| 14473 | .write = spi_aai_write, |
| 14474 | .read = spi_chip_read, |
| 14475 | .voltage = {2700, 3600}, |
| 14476 | }, |
| 14477 | |
| 14478 | { |
| 14479 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14480 | .name = "SST25VF064C", |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 14481 | .bustype = BUS_SPI, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14482 | .manufacture_id = SST_ID, |
| 14483 | .model_id = SST_SST25VF064C, |
| 14484 | .total_size = 8192, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 14485 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14486 | .feature_bits = FEATURE_WRSR_EWSR, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 14487 | .tested = TEST_OK_PREW, |
| 14488 | .probe = probe_spi_rdid, |
| 14489 | .probe_timing = TIMING_ZERO, |
| 14490 | .block_erasers = |
| 14491 | { |
| 14492 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14493 | .eraseblocks = { {4 * 1024, 2048} }, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 14494 | .block_erase = spi_block_erase_20, |
| 14495 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14496 | .eraseblocks = { {32 * 1024, 256} }, |
| 14497 | .block_erase = spi_block_erase_52, |
| 14498 | }, { |
| 14499 | .eraseblocks = { {64 * 1024, 128} }, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 14500 | .block_erase = spi_block_erase_d8, |
| 14501 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14502 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 14503 | .block_erase = spi_block_erase_60, |
| 14504 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14505 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 14506 | .block_erase = spi_block_erase_c7, |
| 14507 | }, |
| 14508 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14509 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
| 14510 | .unlock = spi_disable_blockprotect, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 14511 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14512 | .read = spi_chip_read, |
| 14513 | .voltage = {2700, 3600}, |
Ben Gardner | bcf6109 | 2015-11-22 02:23:31 +0000 | [diff] [blame] | 14514 | }, |
| 14515 | |
| 14516 | { |
| 14517 | .vendor = "SST", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 14518 | .name = "SST25VF080B", |
| 14519 | .bustype = BUS_SPI, |
| 14520 | .manufacture_id = SST_ID, |
| 14521 | .model_id = SST_SST25VF080B, |
| 14522 | .total_size = 1024, |
| 14523 | .page_size = 256, |
| 14524 | .feature_bits = FEATURE_WRSR_EWSR, |
| 14525 | .tested = TEST_OK_PREW, |
| 14526 | .probe = probe_spi_rdid, |
| 14527 | .probe_timing = TIMING_ZERO, |
| 14528 | .block_erasers = |
| 14529 | { |
| 14530 | { |
| 14531 | .eraseblocks = { {4 * 1024, 256} }, |
| 14532 | .block_erase = spi_block_erase_20, |
| 14533 | }, { |
| 14534 | .eraseblocks = { {32 * 1024, 32} }, |
| 14535 | .block_erase = spi_block_erase_52, |
| 14536 | }, { |
| 14537 | .eraseblocks = { {64 * 1024, 16} }, |
| 14538 | .block_erase = spi_block_erase_d8, |
| 14539 | }, { |
| 14540 | .eraseblocks = { {1024 * 1024, 1} }, |
| 14541 | .block_erase = spi_block_erase_60, |
| 14542 | }, { |
| 14543 | .eraseblocks = { {1024 * 1024, 1} }, |
| 14544 | .block_erase = spi_block_erase_c7, |
| 14545 | }, |
| 14546 | }, |
| 14547 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
| 14548 | .unlock = spi_disable_blockprotect, |
| 14549 | .write = spi_aai_write, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 14550 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 14551 | .voltage = {2700, 3600}, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 14552 | }, |
| 14553 | |
| 14554 | { |
| 14555 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14556 | .name = "SST25VF512(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14557 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14558 | .manufacture_id = SST_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14559 | .model_id = SST_SST25VF512_REMS, |
| 14560 | .total_size = 64, |
| 14561 | .page_size = 256, |
| 14562 | .feature_bits = FEATURE_WRSR_EWSR, |
| 14563 | .tested = TEST_OK_PREW, |
| 14564 | .probe = probe_spi_rems, |
| 14565 | .probe_timing = TIMING_ZERO, |
| 14566 | .block_erasers = |
| 14567 | { |
| 14568 | { |
| 14569 | .eraseblocks = { {4 * 1024, 16} }, |
| 14570 | .block_erase = spi_block_erase_20, |
| 14571 | }, { |
| 14572 | .eraseblocks = { {32 * 1024, 2} }, |
| 14573 | .block_erase = spi_block_erase_52, |
| 14574 | }, { |
| 14575 | .eraseblocks = { {32 * 1024, 2} }, |
| 14576 | .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */ |
| 14577 | }, { |
| 14578 | .eraseblocks = { {64 * 1024, 1} }, |
| 14579 | .block_erase = spi_block_erase_60, |
| 14580 | }, { |
| 14581 | .eraseblocks = { {64 * 1024, 1} }, |
| 14582 | .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */ |
| 14583 | }, |
| 14584 | }, |
| 14585 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 14586 | .unlock = spi_disable_blockprotect, |
| 14587 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 14588 | .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */ |
| 14589 | .voltage = {2700, 3600}, |
| 14590 | }, |
| 14591 | |
| 14592 | { |
| 14593 | .vendor = "SST", |
| 14594 | .name = "SST25WF010", |
| 14595 | .bustype = BUS_SPI, |
| 14596 | .manufacture_id = SST_ID, |
| 14597 | .model_id = SST_SST25WF010, |
| 14598 | .total_size = 128, |
| 14599 | .page_size = 256, |
| 14600 | .feature_bits = FEATURE_WRSR_EITHER, |
| 14601 | .tested = TEST_UNTESTED, |
| 14602 | .probe = probe_spi_rdid, |
| 14603 | .probe_timing = TIMING_ZERO, |
| 14604 | .block_erasers = |
| 14605 | { |
| 14606 | { |
| 14607 | .eraseblocks = { {4 * 1024, 32} }, |
| 14608 | .block_erase = spi_block_erase_20, |
| 14609 | }, { |
| 14610 | .eraseblocks = { {32 * 1024, 4} }, |
| 14611 | .block_erase = spi_block_erase_52, |
| 14612 | }, { |
| 14613 | .eraseblocks = { {1024 * 128, 1} }, |
| 14614 | .block_erase = spi_block_erase_60, |
| 14615 | }, { |
| 14616 | .eraseblocks = { {1024 * 128, 1} }, |
| 14617 | .block_erase = spi_block_erase_c7, |
| 14618 | }, |
| 14619 | }, |
| 14620 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 14621 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 14622 | .write = spi_aai_write, |
| 14623 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 14624 | .voltage = {1650, 1950}, |
| 14625 | }, |
| 14626 | |
| 14627 | { |
| 14628 | .vendor = "SST", |
| 14629 | .name = "SST25WF020", |
| 14630 | .bustype = BUS_SPI, |
| 14631 | .manufacture_id = SST_ID, |
| 14632 | .model_id = SST_SST25WF020, |
| 14633 | .total_size = 256, |
| 14634 | .page_size = 256, |
| 14635 | .feature_bits = FEATURE_WRSR_EITHER, |
| 14636 | .tested = TEST_UNTESTED, |
| 14637 | .probe = probe_spi_rdid, |
| 14638 | .probe_timing = TIMING_ZERO, |
| 14639 | .block_erasers = |
| 14640 | { |
| 14641 | { |
| 14642 | .eraseblocks = { {4 * 1024, 64} }, |
| 14643 | .block_erase = spi_block_erase_20, |
| 14644 | }, { |
| 14645 | .eraseblocks = { {32 * 1024, 8} }, |
| 14646 | .block_erase = spi_block_erase_52, |
| 14647 | }, { |
| 14648 | .eraseblocks = { {64 * 1024, 4} }, |
| 14649 | .block_erase = spi_block_erase_d8, |
| 14650 | }, { |
| 14651 | .eraseblocks = { {1024 * 256, 1} }, |
| 14652 | .block_erase = spi_block_erase_60, |
| 14653 | }, { |
| 14654 | .eraseblocks = { {1024 * 256, 1} }, |
| 14655 | .block_erase = spi_block_erase_c7, |
| 14656 | }, |
| 14657 | }, |
| 14658 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 14659 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 14660 | .write = spi_aai_write, |
| 14661 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 14662 | .voltage = {1650, 1950}, |
| 14663 | }, |
| 14664 | |
| 14665 | { |
| 14666 | .vendor = "SST", |
| 14667 | .name = "SST25WF020A", |
| 14668 | .bustype = BUS_SPI, |
| 14669 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 14670 | .model_id = SST_SST25WF020A, |
| 14671 | .total_size = 256, |
| 14672 | .page_size = 256, |
| 14673 | .feature_bits = FEATURE_WRSR_WREN, |
| 14674 | .tested = TEST_UNTESTED, |
| 14675 | .probe = probe_spi_rdid, |
| 14676 | .probe_timing = TIMING_ZERO, |
| 14677 | .block_erasers = |
| 14678 | { |
| 14679 | { |
| 14680 | .eraseblocks = { {4 * 1024, 64} }, |
| 14681 | .block_erase = spi_block_erase_20, |
| 14682 | }, { |
| 14683 | .eraseblocks = { {64 * 1024, 4} }, |
| 14684 | .block_erase = spi_block_erase_d8, |
| 14685 | }, { |
| 14686 | .eraseblocks = { {256 * 1024, 1} }, |
| 14687 | .block_erase = spi_block_erase_60, |
| 14688 | }, { |
| 14689 | .eraseblocks = { {256 * 1024, 1} }, |
| 14690 | .block_erase = spi_block_erase_c7, |
| 14691 | }, |
| 14692 | }, |
| 14693 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 14694 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 14695 | .write = spi_chip_write_256, |
| 14696 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 14697 | .voltage = {1650, 1950}, |
| 14698 | }, |
| 14699 | |
| 14700 | { |
| 14701 | .vendor = "SST", |
| 14702 | .name = "SST25WF040", |
| 14703 | .bustype = BUS_SPI, |
| 14704 | .manufacture_id = SST_ID, |
| 14705 | .model_id = SST_SST25WF040, |
| 14706 | .total_size = 512, |
| 14707 | .page_size = 256, |
| 14708 | .feature_bits = FEATURE_WRSR_EITHER, |
| 14709 | .tested = TEST_UNTESTED, |
| 14710 | .probe = probe_spi_rdid, |
| 14711 | .probe_timing = TIMING_ZERO, |
| 14712 | .block_erasers = |
| 14713 | { |
| 14714 | { |
| 14715 | .eraseblocks = { {4 * 1024, 128} }, |
| 14716 | .block_erase = spi_block_erase_20, |
| 14717 | }, { |
| 14718 | .eraseblocks = { {32 * 1024, 16} }, |
| 14719 | .block_erase = spi_block_erase_52, |
| 14720 | }, { |
| 14721 | .eraseblocks = { {64 * 1024, 8} }, |
| 14722 | .block_erase = spi_block_erase_d8, |
| 14723 | }, { |
| 14724 | .eraseblocks = { {1024 * 512, 1} }, |
| 14725 | .block_erase = spi_block_erase_60, |
| 14726 | }, { |
| 14727 | .eraseblocks = { {1024 * 512, 1} }, |
| 14728 | .block_erase = spi_block_erase_c7, |
| 14729 | }, |
| 14730 | }, |
| 14731 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 14732 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 14733 | .write = spi_aai_write, |
| 14734 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 14735 | .voltage = {1650, 1950}, |
| 14736 | }, |
| 14737 | |
| 14738 | { |
| 14739 | .vendor = "SST", |
| 14740 | .name = "SST25WF040B", |
| 14741 | .bustype = BUS_SPI, |
| 14742 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 14743 | .model_id = SST_SST25WF040B, |
| 14744 | .total_size = 512, |
| 14745 | .page_size = 256, |
| 14746 | .feature_bits = FEATURE_WRSR_WREN, |
| 14747 | .tested = TEST_UNTESTED, |
| 14748 | .probe = probe_spi_rdid, |
| 14749 | .probe_timing = TIMING_ZERO, |
| 14750 | .block_erasers = |
| 14751 | { |
| 14752 | { |
| 14753 | .eraseblocks = { {4 * 1024, 128} }, |
| 14754 | .block_erase = spi_block_erase_20, |
| 14755 | }, { |
| 14756 | .eraseblocks = { {64 * 1024, 8} }, |
| 14757 | .block_erase = spi_block_erase_d8, |
| 14758 | }, { |
| 14759 | .eraseblocks = { {512 * 1024, 1} }, |
| 14760 | .block_erase = spi_block_erase_60, |
| 14761 | }, { |
| 14762 | .eraseblocks = { {512 * 1024, 1} }, |
| 14763 | .block_erase = spi_block_erase_c7, |
| 14764 | }, |
| 14765 | }, |
| 14766 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 14767 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 14768 | .write = spi_chip_write_256, |
| 14769 | .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */ |
| 14770 | .voltage = {1650, 1950}, |
| 14771 | }, |
| 14772 | |
| 14773 | { |
| 14774 | .vendor = "SST", |
| 14775 | .name = "SST25WF080", |
| 14776 | .bustype = BUS_SPI, |
| 14777 | .manufacture_id = SST_ID, |
| 14778 | .model_id = SST_SST25WF080, |
| 14779 | .total_size = 1024, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14780 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 14781 | .feature_bits = FEATURE_WRSR_EITHER, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 14782 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14783 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 14784 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14785 | .block_erasers = |
| 14786 | { |
| 14787 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14788 | .eraseblocks = { {4 * 1024, 256} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14789 | .block_erase = spi_block_erase_20, |
| 14790 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14791 | .eraseblocks = { {32 * 1024, 32} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14792 | .block_erase = spi_block_erase_52, |
| 14793 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14794 | .eraseblocks = { {64 * 1024, 16} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14795 | .block_erase = spi_block_erase_d8, |
| 14796 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14797 | .eraseblocks = { {1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14798 | .block_erase = spi_block_erase_60, |
| 14799 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14800 | .eraseblocks = { {1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14801 | .block_erase = spi_block_erase_c7, |
| 14802 | }, |
| 14803 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14804 | .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */ |
| 14805 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 14806 | .write = spi_aai_write, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14807 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 14808 | .voltage = {1650, 1950}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14809 | }, |
| 14810 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14811 | { |
| 14812 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14813 | .name = "SST25WF080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14814 | .bustype = BUS_SPI, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14815 | .manufacture_id = SANYO_ID, /* See flashchips.h */ |
| 14816 | .model_id = SST_SST25WF080B, |
| 14817 | .total_size = 1024, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14818 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14819 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | fcf6a8c | 2011-05-18 01:32:00 +0000 | [diff] [blame] | 14820 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14821 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 14822 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14823 | .block_erasers = |
| 14824 | { |
| 14825 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14826 | .eraseblocks = { {4 * 1024, 256} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14827 | .block_erase = spi_block_erase_20, |
| 14828 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14829 | .eraseblocks = { {64 * 1024, 16} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14830 | .block_erase = spi_block_erase_d8, |
| 14831 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14832 | .eraseblocks = { {1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14833 | .block_erase = spi_block_erase_60, |
| 14834 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14835 | .eraseblocks = { {1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 14836 | .block_erase = spi_block_erase_c7, |
| 14837 | }, |
| 14838 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14839 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 14840 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 14841 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 14842 | .read = spi_chip_read, /* Fast read (0x0B), dual O (0x3B), dual I/O read (0xBB) supported */ |
| 14843 | .voltage = {1650, 1950}, |
| 14844 | }, |
| 14845 | |
| 14846 | { |
| 14847 | .vendor = "SST", |
| 14848 | .name = "SST25WF512", |
| 14849 | .bustype = BUS_SPI, |
| 14850 | .manufacture_id = SST_ID, |
| 14851 | .model_id = SST_SST25WF512, |
| 14852 | .total_size = 64, |
| 14853 | .page_size = 256, |
| 14854 | .feature_bits = FEATURE_WRSR_EITHER, |
| 14855 | .tested = TEST_UNTESTED, |
| 14856 | .probe = probe_spi_rdid, |
| 14857 | .probe_timing = TIMING_ZERO, |
| 14858 | .block_erasers = |
| 14859 | { |
| 14860 | { |
| 14861 | .eraseblocks = { {4 * 1024, 16} }, |
| 14862 | .block_erase = spi_block_erase_20, |
| 14863 | }, { |
| 14864 | .eraseblocks = { {32 * 1024, 2} }, |
| 14865 | .block_erase = spi_block_erase_52, |
| 14866 | }, { |
| 14867 | .eraseblocks = { {1024 * 64, 1} }, |
| 14868 | .block_erase = spi_block_erase_60, |
| 14869 | }, { |
| 14870 | .eraseblocks = { {1024 * 64, 1} }, |
| 14871 | .block_erase = spi_block_erase_c7, |
| 14872 | }, |
| 14873 | }, |
| 14874 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 14875 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 14876 | .write = spi_aai_write, |
| 14877 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 14878 | .voltage = {1650, 1950}, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 14879 | }, |
| 14880 | |
| 14881 | { |
| 14882 | .vendor = "SST", |
Nico Huber | a2eaf4a | 2023-02-15 22:56:53 +0100 | [diff] [blame] | 14883 | .name = "SST26VF016", |
| 14884 | .bustype = BUS_SPI, |
| 14885 | .manufacture_id = SST_ID, |
| 14886 | .model_id = SST_SST26VF016, |
| 14887 | .total_size = 2048, |
| 14888 | .page_size = 256, |
| 14889 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 14890 | .tested = TEST_UNTESTED, |
| 14891 | .probe = probe_spi_rdid, |
| 14892 | .probe_timing = TIMING_ZERO, |
| 14893 | .block_erasers = |
| 14894 | { |
| 14895 | { |
| 14896 | .eraseblocks = { {4 * 1024, 512} }, |
| 14897 | .block_erase = spi_block_erase_20, |
| 14898 | }, { |
| 14899 | .eraseblocks = { |
| 14900 | {8 * 1024, 4}, |
| 14901 | {32 * 1024, 1}, |
| 14902 | {64 * 1024, 30}, |
| 14903 | {32 * 1024, 1}, |
| 14904 | {8 * 1024, 4}, |
| 14905 | }, |
| 14906 | .block_erase = spi_block_erase_d8, |
| 14907 | }, { |
| 14908 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 14909 | .block_erase = spi_block_erase_c7, |
| 14910 | }, |
| 14911 | }, |
| 14912 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 14913 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 14914 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 14915 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 14916 | .voltage = {2700, 3600}, |
| 14917 | }, |
| 14918 | |
| 14919 | { |
| 14920 | .vendor = "SST", |
Wei Hu | 25584de | 2018-04-30 14:02:08 -0700 | [diff] [blame] | 14921 | .name = "SST26VF016B(A)", |
| 14922 | .bustype = BUS_SPI, |
| 14923 | .manufacture_id = SST_ID, |
| 14924 | .model_id = SST_SST26VF016B, |
| 14925 | .total_size = 2048, |
| 14926 | .page_size = 256, |
| 14927 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 14928 | .tested = TEST_OK_PREW, |
| 14929 | .probe = probe_spi_rdid, |
| 14930 | .probe_timing = TIMING_ZERO, |
| 14931 | .block_erasers = |
| 14932 | { |
| 14933 | { |
| 14934 | .eraseblocks = { {4 * 1024, 512} }, |
| 14935 | .block_erase = spi_block_erase_20, |
| 14936 | }, { |
| 14937 | .eraseblocks = { |
| 14938 | {8 * 1024, 4}, |
| 14939 | {32 * 1024, 1}, |
| 14940 | {64 * 1024, 30}, |
| 14941 | {32 * 1024, 1}, |
| 14942 | {8 * 1024, 4}, |
| 14943 | }, |
| 14944 | .block_erase = spi_block_erase_d8, |
| 14945 | }, { |
| 14946 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 14947 | .block_erase = spi_block_erase_c7, |
| 14948 | }, |
| 14949 | }, |
| 14950 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 14951 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 14952 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 14953 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 14954 | .voltage = {2700, 3600}, |
| 14955 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 14956 | |
Wei Hu | 25584de | 2018-04-30 14:02:08 -0700 | [diff] [blame] | 14957 | { |
| 14958 | .vendor = "SST", |
Nico Huber | a2eaf4a | 2023-02-15 22:56:53 +0100 | [diff] [blame] | 14959 | .name = "SST26VF032", |
| 14960 | .bustype = BUS_SPI, |
| 14961 | .manufacture_id = SST_ID, |
| 14962 | .model_id = SST_SST26VF032, |
| 14963 | .total_size = 4096, |
| 14964 | .page_size = 256, |
| 14965 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 14966 | .tested = TEST_UNTESTED, |
| 14967 | .probe = probe_spi_rdid, |
| 14968 | .probe_timing = TIMING_ZERO, |
| 14969 | .block_erasers = |
| 14970 | { |
| 14971 | { |
| 14972 | .eraseblocks = { {4 * 1024, 1024} }, |
| 14973 | .block_erase = spi_block_erase_20, |
| 14974 | }, { |
| 14975 | .eraseblocks = { |
| 14976 | {8 * 1024, 4}, |
| 14977 | {32 * 1024, 1}, |
| 14978 | {64 * 1024, 62}, |
| 14979 | {32 * 1024, 1}, |
| 14980 | {8 * 1024, 4}, |
| 14981 | }, |
| 14982 | .block_erase = spi_block_erase_d8, |
| 14983 | }, { |
| 14984 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 14985 | .block_erase = spi_block_erase_c7, |
| 14986 | }, |
| 14987 | }, |
| 14988 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 14989 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 14990 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 14991 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 14992 | .voltage = {2700, 3600}, |
| 14993 | }, |
| 14994 | |
| 14995 | { |
| 14996 | .vendor = "SST", |
Wei Hu | 25584de | 2018-04-30 14:02:08 -0700 | [diff] [blame] | 14997 | .name = "SST26VF032B(A)", |
| 14998 | .bustype = BUS_SPI, |
| 14999 | .manufacture_id = SST_ID, |
| 15000 | .model_id = SST_SST26VF032B, |
| 15001 | .total_size = 4096, |
| 15002 | .page_size = 256, |
| 15003 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15004 | .tested = TEST_UNTESTED, |
| 15005 | .probe = probe_spi_rdid, |
| 15006 | .probe_timing = TIMING_ZERO, |
| 15007 | .block_erasers = |
| 15008 | { |
| 15009 | { |
| 15010 | .eraseblocks = { {4 * 1024, 1024} }, |
| 15011 | .block_erase = spi_block_erase_20, |
| 15012 | }, { |
| 15013 | .eraseblocks = { |
| 15014 | {8 * 1024, 4}, |
| 15015 | {32 * 1024, 1}, |
| 15016 | {64 * 1024, 62}, |
| 15017 | {32 * 1024, 1}, |
| 15018 | {8 * 1024, 4}, |
| 15019 | }, |
| 15020 | .block_erase = spi_block_erase_d8, |
| 15021 | }, { |
| 15022 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 15023 | .block_erase = spi_block_erase_c7, |
| 15024 | }, |
| 15025 | }, |
| 15026 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15027 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 15028 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 15029 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15030 | .voltage = {2700, 3600}, |
| 15031 | }, |
| 15032 | |
Wei Hu | 25584de | 2018-04-30 14:02:08 -0700 | [diff] [blame] | 15033 | { |
| 15034 | .vendor = "SST", |
| 15035 | .name = "SST26VF064B(A)", |
| 15036 | .bustype = BUS_SPI, |
| 15037 | .manufacture_id = SST_ID, |
| 15038 | .model_id = SST_SST26VF064B, |
| 15039 | .total_size = 8192, |
| 15040 | .page_size = 256, |
| 15041 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 15042 | .tested = TEST_OK_PREW, |
| 15043 | .probe = probe_spi_rdid, |
| 15044 | .probe_timing = TIMING_ZERO, |
| 15045 | .block_erasers = |
| 15046 | { |
| 15047 | { |
| 15048 | .eraseblocks = { {4 * 1024, 2048} }, |
| 15049 | .block_erase = spi_block_erase_20, |
| 15050 | }, { |
| 15051 | .eraseblocks = { |
| 15052 | {8 * 1024, 4}, |
| 15053 | {32 * 1024, 1}, |
| 15054 | {64 * 1024, 126}, |
| 15055 | {32 * 1024, 1}, |
| 15056 | {8 * 1024, 4}, |
| 15057 | }, |
| 15058 | .block_erase = spi_block_erase_d8, |
| 15059 | }, { |
| 15060 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 15061 | .block_erase = spi_block_erase_c7, |
| 15062 | }, |
| 15063 | }, |
| 15064 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 15065 | .unlock = spi_disable_blockprotect_sst26_global_unprotect, |
| 15066 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 15067 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 15068 | .voltage = {2700, 3600}, |
| 15069 | }, |
| 15070 | |
| 15071 | { |
| 15072 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15073 | .name = "SST28SF040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15074 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15075 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15076 | .model_id = SST_SST28SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15077 | .total_size = 512, |
| 15078 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15079 | .feature_bits = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15080 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15081 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 15082 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15083 | .block_erasers = |
| 15084 | { |
| 15085 | { |
| 15086 | .eraseblocks = { {128, 4096} }, |
| 15087 | .block_erase = erase_sector_28sf040, |
| 15088 | }, { |
| 15089 | .eraseblocks = { {512 * 1024, 1} }, |
| 15090 | .block_erase = erase_chip_28sf040, |
| 15091 | } |
| 15092 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 15093 | .unlock = unprotect_28sf040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15094 | .write = write_28sf040, |
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 = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15097 | .prepare_access = prepare_memory_access, |
| 15098 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15099 | }, |
| 15100 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15101 | { |
| 15102 | .vendor = "SST", |
| 15103 | .name = "SST29EE010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15104 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15105 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15106 | .model_id = SST_SST29EE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15107 | .total_size = 128, |
| 15108 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15109 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 15110 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15111 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 15112 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15113 | .block_erasers = |
| 15114 | { |
| 15115 | { |
| 15116 | .eraseblocks = { {128 * 1024, 1} }, |
| 15117 | .block_erase = erase_chip_block_jedec, |
| 15118 | } |
| 15119 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15120 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15121 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15122 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15123 | .prepare_access = prepare_memory_access, |
| 15124 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15125 | }, |
| 15126 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15127 | { |
| 15128 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15129 | .name = "SST29EE020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15130 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15131 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15132 | .model_id = SST_SST29EE020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15133 | .total_size = 256, |
| 15134 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15135 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 15136 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15137 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 15138 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15139 | .block_erasers = |
| 15140 | { |
| 15141 | { |
| 15142 | .eraseblocks = { {256 * 1024, 1} }, |
| 15143 | .block_erase = erase_chip_block_jedec, |
| 15144 | } |
| 15145 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15146 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15147 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15148 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15149 | .prepare_access = prepare_memory_access, |
| 15150 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15151 | }, |
| 15152 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15153 | { |
| 15154 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 15155 | .name = "SST29LE010", |
| 15156 | .bustype = BUS_PARALLEL, |
| 15157 | .manufacture_id = SST_ID, |
| 15158 | .model_id = SST_SST29LE010, |
| 15159 | .total_size = 128, |
| 15160 | .page_size = 128, |
| 15161 | .feature_bits = FEATURE_LONG_RESET, |
| 15162 | .tested = TEST_UNTESTED, |
| 15163 | .probe = probe_jedec, |
| 15164 | .probe_timing = 10, |
| 15165 | .block_erasers = |
| 15166 | { |
| 15167 | { |
| 15168 | .eraseblocks = { {128 * 1024, 1} }, |
| 15169 | .block_erase = erase_chip_block_jedec, |
| 15170 | } |
| 15171 | }, |
| 15172 | .write = write_jedec, |
| 15173 | .read = read_memmapped, |
| 15174 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15175 | .prepare_access = prepare_memory_access, |
| 15176 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 15177 | }, |
| 15178 | |
| 15179 | { |
| 15180 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15181 | .name = "SST29LE020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15182 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15183 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15184 | .model_id = SST_SST29LE020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15185 | .total_size = 256, |
| 15186 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15187 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 15188 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15189 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 15190 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15191 | .block_erasers = |
| 15192 | { |
| 15193 | { |
| 15194 | .eraseblocks = { {256 * 1024, 1} }, |
| 15195 | .block_erase = erase_chip_block_jedec, |
| 15196 | } |
| 15197 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15198 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15199 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15200 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15201 | .prepare_access = prepare_memory_access, |
| 15202 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15203 | }, |
| 15204 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15205 | { |
| 15206 | .vendor = "SST", |
| 15207 | .name = "SST39SF010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15208 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15209 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15210 | .model_id = SST_SST39SF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15211 | .total_size = 128, |
| 15212 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15213 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 15214 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15215 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 15216 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15217 | .block_erasers = |
| 15218 | { |
| 15219 | { |
| 15220 | .eraseblocks = { {4 * 1024, 32} }, |
| 15221 | .block_erase = erase_sector_jedec, |
| 15222 | }, { |
| 15223 | .eraseblocks = { {128 * 1024, 1} }, |
| 15224 | .block_erase = erase_chip_block_jedec, |
| 15225 | } |
| 15226 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15227 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15228 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15229 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15230 | .prepare_access = prepare_memory_access, |
| 15231 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15232 | }, |
| 15233 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15234 | { |
| 15235 | .vendor = "SST", |
| 15236 | .name = "SST39SF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15237 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15238 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15239 | .model_id = SST_SST39SF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15240 | .total_size = 256, |
| 15241 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15242 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 19f46f2 | 2011-06-18 22:56:14 +0000 | [diff] [blame] | 15243 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15244 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 15245 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15246 | .block_erasers = |
| 15247 | { |
| 15248 | { |
| 15249 | .eraseblocks = { {4 * 1024, 64} }, |
| 15250 | .block_erase = erase_sector_jedec, |
| 15251 | }, { |
| 15252 | .eraseblocks = { {256 * 1024, 1} }, |
| 15253 | .block_erase = erase_chip_block_jedec, |
| 15254 | } |
| 15255 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15256 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15257 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15258 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15259 | .prepare_access = prepare_memory_access, |
| 15260 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15261 | }, |
| 15262 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15263 | { |
| 15264 | .vendor = "SST", |
| 15265 | .name = "SST39SF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15266 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15267 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15268 | .model_id = SST_SST39SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15269 | .total_size = 512, |
| 15270 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15271 | .feature_bits = FEATURE_EITHER_RESET, |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 15272 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15273 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 15274 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15275 | .block_erasers = |
| 15276 | { |
| 15277 | { |
| 15278 | .eraseblocks = { {4 * 1024, 128} }, |
| 15279 | .block_erase = erase_sector_jedec, |
| 15280 | }, { |
| 15281 | .eraseblocks = { {512 * 1024, 1} }, |
| 15282 | .block_erase = erase_chip_block_jedec, |
| 15283 | } |
| 15284 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15285 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15286 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15287 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15288 | .prepare_access = prepare_memory_access, |
| 15289 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15290 | }, |
| 15291 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15292 | { |
| 15293 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 15294 | .name = "SST39SF512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15295 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15296 | .manufacture_id = SST_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 15297 | .model_id = SST_SST39SF512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15298 | .total_size = 64, |
| 15299 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15300 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 15301 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15302 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 15303 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15304 | .block_erasers = |
| 15305 | { |
| 15306 | { |
| 15307 | .eraseblocks = { {4 * 1024, 16} }, |
| 15308 | .block_erase = erase_sector_jedec, |
| 15309 | }, { |
| 15310 | .eraseblocks = { {64 * 1024, 1} }, |
| 15311 | .block_erase = erase_chip_block_jedec, |
| 15312 | } |
| 15313 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15314 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15315 | .read = read_memmapped, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 15316 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15317 | .prepare_access = prepare_memory_access, |
| 15318 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15319 | }, |
| 15320 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15321 | { |
| 15322 | .vendor = "SST", |
| 15323 | .name = "SST39VF010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15324 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15325 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15326 | .model_id = SST_SST39VF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15327 | .total_size = 128, |
| 15328 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15329 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 15330 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15331 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 15332 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15333 | .block_erasers = |
| 15334 | { |
| 15335 | { |
| 15336 | .eraseblocks = { {4 * 1024, 32} }, |
| 15337 | .block_erase = erase_sector_jedec, |
| 15338 | }, { |
| 15339 | .eraseblocks = { {128 * 1024, 1} }, |
| 15340 | .block_erase = erase_chip_block_jedec, |
| 15341 | } |
| 15342 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15343 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15344 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15345 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15346 | .prepare_access = prepare_memory_access, |
| 15347 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15348 | }, |
| 15349 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15350 | { |
| 15351 | .vendor = "SST", |
| 15352 | .name = "SST39VF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15353 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15354 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15355 | .model_id = SST_SST39VF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15356 | .total_size = 256, |
| 15357 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15358 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 15359 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15360 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 15361 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15362 | .block_erasers = |
| 15363 | { |
| 15364 | { |
| 15365 | .eraseblocks = { {4 * 1024, 64} }, |
| 15366 | .block_erase = erase_sector_jedec, |
| 15367 | }, { |
| 15368 | .eraseblocks = { {256 * 1024, 1} }, |
| 15369 | .block_erase = erase_chip_block_jedec, |
| 15370 | } |
| 15371 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15372 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15373 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15374 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15375 | .prepare_access = prepare_memory_access, |
| 15376 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15377 | }, |
| 15378 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15379 | { |
| 15380 | .vendor = "SST", |
| 15381 | .name = "SST39VF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15382 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15383 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15384 | .model_id = SST_SST39VF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15385 | .total_size = 512, |
| 15386 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15387 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 15388 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15389 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 15390 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15391 | .block_erasers = |
| 15392 | { |
| 15393 | { |
| 15394 | .eraseblocks = { {4 * 1024, 128} }, |
| 15395 | .block_erase = erase_sector_jedec, |
| 15396 | }, { |
| 15397 | .eraseblocks = { {512 * 1024, 1} }, |
| 15398 | .block_erase = erase_chip_block_jedec, |
| 15399 | } |
| 15400 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15401 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15402 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15403 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15404 | .prepare_access = prepare_memory_access, |
| 15405 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | 90eff15 | 2008-12-08 23:51:45 +0000 | [diff] [blame] | 15406 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15407 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15408 | { |
| 15409 | .vendor = "SST", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 15410 | .name = "SST39VF080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15411 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 15412 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15413 | .model_id = SST_SST39VF080, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 15414 | .total_size = 1024, |
| 15415 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15416 | .feature_bits = FEATURE_EITHER_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 15417 | .tested = TEST_UNTESTED, |
| 15418 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 15419 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15420 | .block_erasers = |
| 15421 | { |
| 15422 | { |
| 15423 | .eraseblocks = { {4 * 1024, 256} }, |
| 15424 | .block_erase = erase_sector_jedec, |
| 15425 | }, { |
| 15426 | .eraseblocks = { {64 * 1024, 16} }, |
| 15427 | .block_erase = erase_block_jedec, |
| 15428 | }, { |
| 15429 | .eraseblocks = { {1024 * 1024, 1} }, |
| 15430 | .block_erase = erase_chip_block_jedec, |
| 15431 | } |
| 15432 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15433 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15434 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15435 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15436 | .prepare_access = prepare_memory_access, |
| 15437 | .finish_access = finish_memory_access, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 15438 | }, |
| 15439 | |
| 15440 | { |
| 15441 | .vendor = "SST", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 15442 | .name = "SST39VF512", |
| 15443 | .bustype = BUS_PARALLEL, |
| 15444 | .manufacture_id = SST_ID, |
| 15445 | .model_id = SST_SST39VF512, |
| 15446 | .total_size = 64, |
| 15447 | .page_size = 4096, |
| 15448 | .feature_bits = FEATURE_EITHER_RESET, |
| 15449 | .tested = TEST_OK_PREW, |
| 15450 | .probe = probe_jedec, |
| 15451 | .probe_timing = 1, /* 150 ns */ |
| 15452 | .block_erasers = |
| 15453 | { |
| 15454 | { |
| 15455 | .eraseblocks = { {4 * 1024, 16} }, |
| 15456 | .block_erase = erase_sector_jedec, |
| 15457 | }, { |
| 15458 | .eraseblocks = { {64 * 1024, 1} }, |
| 15459 | .block_erase = erase_chip_block_jedec, |
| 15460 | } |
| 15461 | }, |
| 15462 | .write = write_jedec_1, |
| 15463 | .read = read_memmapped, |
| 15464 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15465 | .prepare_access = prepare_memory_access, |
| 15466 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 15467 | }, |
| 15468 | |
| 15469 | { |
| 15470 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15471 | .name = "SST49LF002A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15472 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15473 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15474 | .model_id = SST_SST49LF002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15475 | .total_size = 256, |
| 15476 | .page_size = 16 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 15477 | .feature_bits = FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 15478 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15479 | .probe = probe_jedec, |
| 15480 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15481 | .block_erasers = |
| 15482 | { |
| 15483 | { |
| 15484 | .eraseblocks = { {4 * 1024, 64} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 15485 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15486 | }, { |
| 15487 | .eraseblocks = { {16 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 15488 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15489 | }, { |
| 15490 | .eraseblocks = { {256 * 1024, 1} }, |
| 15491 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 15492 | } |
| 15493 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15494 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 15495 | .unlock = unlock_sst_fwhub, |
| 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 = "SST49LF003A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15506 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15507 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15508 | .model_id = SST_SST49LF003A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15509 | .total_size = 384, |
| 15510 | .page_size = 64 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 15511 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 15512 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15513 | .probe = probe_jedec, |
| 15514 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15515 | .block_erasers = |
| 15516 | { |
| 15517 | { |
| 15518 | .eraseblocks = { {4 * 1024, 96} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 15519 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15520 | }, { |
| 15521 | .eraseblocks = { {64 * 1024, 6} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 15522 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15523 | }, { |
| 15524 | .eraseblocks = { {384 * 1024, 1} }, |
| 15525 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 15526 | } |
| 15527 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15528 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 15529 | .unlock = unlock_sst_fwhub, |
| 15530 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15531 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15532 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 15533 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15534 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15535 | }, |
| 15536 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15537 | { |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 15538 | /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB) |
| 15539 | * and is only honored for 64k block erase, but not 4k sector erase. |
| 15540 | */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15541 | .vendor = "SST", |
| 15542 | .name = "SST49LF004A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15543 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15544 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15545 | .model_id = SST_SST49LF004A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15546 | .total_size = 512, |
| 15547 | .page_size = 64 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 15548 | .feature_bits = FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 15549 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15550 | .probe = probe_jedec, |
| 15551 | .probe_timing = 1, /* 150 ns */ |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 15552 | .block_erasers = |
| 15553 | { |
| 15554 | { |
| 15555 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 15556 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 15557 | }, { |
| 15558 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 15559 | .block_erase = erase_block_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 15560 | }, { |
| 15561 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15562 | .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] | 15563 | }, |
| 15564 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15565 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 15566 | .unlock = unlock_sst_fwhub, |
| 15567 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15568 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15569 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 15570 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15571 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15572 | }, |
| 15573 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15574 | { |
| 15575 | .vendor = "SST", |
| 15576 | .name = "SST49LF004C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15577 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15578 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15579 | .model_id = SST_SST49LF004C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15580 | .total_size = 512, |
| 15581 | .page_size = 4 * 1024, |
| 15582 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15583 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 15584 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15585 | .block_erasers = |
| 15586 | { |
| 15587 | { |
| 15588 | .eraseblocks = { {4 * 1024, 128} }, |
| 15589 | .block_erase = erase_sector_49lfxxxc, |
| 15590 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 15591 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15592 | {64 * 1024, 7}, |
| 15593 | {32 * 1024, 1}, |
| 15594 | {8 * 1024, 2}, |
| 15595 | {16 * 1024, 1}, |
| 15596 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 15597 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15598 | } |
| 15599 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15600 | .printlock = printlock_regspace2_block_eraser_1, |
| 15601 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 15602 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15603 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15604 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 15605 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15606 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15607 | }, |
| 15608 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15609 | { |
| 15610 | .vendor = "SST", |
| 15611 | .name = "SST49LF008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15612 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15613 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15614 | .model_id = SST_SST49LF008A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15615 | .total_size = 1024, |
| 15616 | .page_size = 64 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 15617 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 15618 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15619 | .probe = probe_jedec, |
| 15620 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15621 | .block_erasers = |
| 15622 | { |
| 15623 | { |
| 15624 | .eraseblocks = { {4 * 1024, 256} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 15625 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15626 | }, { |
| 15627 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 15628 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15629 | }, { |
| 15630 | .eraseblocks = { {1024 * 1024, 1} }, |
| 15631 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 15632 | } |
| 15633 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15634 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 15635 | .unlock = unlock_sst_fwhub, |
| 15636 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15637 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15638 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 15639 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15640 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15641 | }, |
| 15642 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15643 | { |
| 15644 | .vendor = "SST", |
| 15645 | .name = "SST49LF008C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15646 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15647 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15648 | .model_id = SST_SST49LF008C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15649 | .total_size = 1024, |
| 15650 | .page_size = 4 * 1024, |
| 15651 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15652 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 15653 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15654 | .block_erasers = |
| 15655 | { |
| 15656 | { |
| 15657 | .eraseblocks = { {4 * 1024, 256} }, |
| 15658 | .block_erase = erase_sector_49lfxxxc, |
| 15659 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 15660 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15661 | {64 * 1024, 15}, |
| 15662 | {32 * 1024, 1}, |
| 15663 | {8 * 1024, 2}, |
| 15664 | {16 * 1024, 1}, |
| 15665 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 15666 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15667 | } |
| 15668 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15669 | .printlock = printlock_regspace2_block_eraser_1, |
| 15670 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 15671 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15672 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15673 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 15674 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15675 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15676 | }, |
| 15677 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15678 | { |
| 15679 | .vendor = "SST", |
| 15680 | .name = "SST49LF016C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15681 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15682 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15683 | .model_id = SST_SST49LF016C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15684 | .total_size = 2048, |
| 15685 | .page_size = 4 * 1024, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 15686 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15687 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 15688 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15689 | .block_erasers = |
| 15690 | { |
| 15691 | { |
| 15692 | .eraseblocks = { {4 * 1024, 512} }, |
| 15693 | .block_erase = erase_sector_49lfxxxc, |
| 15694 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 15695 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15696 | {64 * 1024, 31}, |
| 15697 | {32 * 1024, 1}, |
| 15698 | {8 * 1024, 2}, |
| 15699 | {16 * 1024, 1}, |
| 15700 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 15701 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15702 | } |
| 15703 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15704 | .printlock = printlock_regspace2_block_eraser_1, |
| 15705 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 15706 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15707 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15708 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 15709 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15710 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15711 | }, |
| 15712 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15713 | { |
| 15714 | .vendor = "SST", |
| 15715 | .name = "SST49LF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15716 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15717 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15718 | .model_id = SST_SST49LF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15719 | .total_size = 256, |
| 15720 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15721 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 15722 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15723 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 15724 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15725 | .block_erasers = |
| 15726 | { |
| 15727 | { |
| 15728 | .eraseblocks = { {4 * 1024, 64} }, |
| 15729 | .block_erase = erase_sector_jedec, |
| 15730 | }, { |
| 15731 | .eraseblocks = { {16 * 1024, 16} }, |
| 15732 | .block_erase = erase_block_jedec, |
| 15733 | }, { |
| 15734 | .eraseblocks = { {256 * 1024, 1} }, |
| 15735 | .block_erase = NULL, |
| 15736 | } |
| 15737 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15738 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15739 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15740 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15741 | .prepare_access = prepare_memory_access, |
| 15742 | .finish_access = finish_memory_access, |
Sven Schnelle | c208dfb | 2009-01-07 12:35:09 +0000 | [diff] [blame] | 15743 | }, |
| 15744 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15745 | { |
| 15746 | .vendor = "SST", |
| 15747 | .name = "SST49LF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15748 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15749 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15750 | .model_id = SST_SST49LF020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15751 | .total_size = 256, |
Carl-Daniel Hailfinger | da65432 | 2009-07-23 01:44:38 +0000 | [diff] [blame] | 15752 | .page_size = 4 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15753 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 15754 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15755 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 15756 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15757 | .block_erasers = |
| 15758 | { |
| 15759 | { |
| 15760 | .eraseblocks = { {4 * 1024, 64} }, |
| 15761 | .block_erase = erase_sector_jedec, |
| 15762 | }, { |
| 15763 | .eraseblocks = { {16 * 1024, 16} }, |
| 15764 | .block_erase = erase_block_jedec, |
| 15765 | }, { |
| 15766 | .eraseblocks = { {256 * 1024, 1} }, |
| 15767 | .block_erase = NULL, |
| 15768 | } |
| 15769 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15770 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15771 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15772 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15773 | .prepare_access = prepare_memory_access, |
| 15774 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15775 | }, |
| 15776 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15777 | { |
| 15778 | .vendor = "SST", |
| 15779 | .name = "SST49LF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15780 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15781 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15782 | .model_id = SST_SST49LF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15783 | .total_size = 512, |
| 15784 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15785 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 15786 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15787 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 15788 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15789 | .block_erasers = |
| 15790 | { |
| 15791 | { |
| 15792 | .eraseblocks = { {4 * 1024, 128} }, |
| 15793 | .block_erase = erase_sector_jedec, |
| 15794 | }, { |
| 15795 | .eraseblocks = { {64 * 1024, 8} }, |
| 15796 | .block_erase = erase_block_jedec, |
| 15797 | }, { |
| 15798 | .eraseblocks = { {512 * 1024, 1} }, |
| 15799 | .block_erase = NULL, |
| 15800 | } |
| 15801 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15802 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15803 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15804 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15805 | .prepare_access = prepare_memory_access, |
| 15806 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15807 | }, |
| 15808 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15809 | { |
| 15810 | .vendor = "SST", |
| 15811 | .name = "SST49LF040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15812 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15813 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15814 | .model_id = SST_SST49LF040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15815 | .total_size = 512, |
| 15816 | .page_size = 64 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 15817 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 15818 | .tested = TEST_OK_PREW, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15819 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15820 | .probe_timing = 1, /* 150ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15821 | .block_erasers = |
| 15822 | { |
| 15823 | { |
| 15824 | .eraseblocks = { {4 * 1024, 128} }, |
| 15825 | .block_erase = erase_sector_jedec, |
| 15826 | }, { |
| 15827 | .eraseblocks = { {64 * 1024, 8} }, |
| 15828 | .block_erase = erase_block_jedec, |
| 15829 | }, { |
| 15830 | .eraseblocks = { {512 * 1024, 1} }, |
| 15831 | .block_erase = NULL, |
| 15832 | } |
| 15833 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15834 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15835 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15836 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15837 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 15838 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15839 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15840 | }, |
| 15841 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15842 | { |
| 15843 | .vendor = "SST", |
| 15844 | .name = "SST49LF080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15845 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15846 | .manufacture_id = SST_ID, |
Elyes HAOUAS | 124ef38 | 2018-03-27 12:15:09 +0200 | [diff] [blame] | 15847 | .model_id = SST_SST49LF080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15848 | .total_size = 1024, |
| 15849 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15850 | .feature_bits = FEATURE_EITHER_RESET, |
Brandon Dowdy | f07bf32 | 2011-03-06 18:31:11 +0000 | [diff] [blame] | 15851 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15852 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 15853 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15854 | .block_erasers = |
| 15855 | { |
| 15856 | { |
| 15857 | .eraseblocks = { {4 * 1024, 256} }, |
| 15858 | .block_erase = erase_sector_jedec, |
| 15859 | }, { |
| 15860 | .eraseblocks = { {64 * 1024, 16} }, |
| 15861 | .block_erase = erase_block_jedec, |
| 15862 | }, { |
| 15863 | .eraseblocks = { {1024 * 1024, 1} }, |
| 15864 | .block_erase = NULL, |
| 15865 | } |
| 15866 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15867 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15868 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15869 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15870 | .prepare_access = prepare_memory_access, |
| 15871 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15872 | }, |
| 15873 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15874 | { |
| 15875 | .vendor = "SST", |
| 15876 | .name = "SST49LF160C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15877 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15878 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 15879 | .model_id = SST_SST49LF160C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15880 | .total_size = 2048, |
| 15881 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15882 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 15883 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 15884 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15885 | .block_erasers = |
| 15886 | { |
| 15887 | { |
| 15888 | .eraseblocks = { {4 * 1024, 512} }, |
| 15889 | .block_erase = erase_sector_49lfxxxc, |
| 15890 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 15891 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15892 | {64 * 1024, 31}, |
| 15893 | {32 * 1024, 1}, |
| 15894 | {8 * 1024, 2}, |
| 15895 | {16 * 1024, 1}, |
| 15896 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 15897 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 15898 | } |
| 15899 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 15900 | .printlock = printlock_regspace2_block_eraser_1, |
| 15901 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 15902 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15903 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 15904 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 15905 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 15906 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15907 | }, |
| 15908 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15909 | { |
| 15910 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15911 | .name = "M29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15912 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15913 | .manufacture_id = ST_ID, |
| 15914 | .model_id = ST_M29F002B, |
| 15915 | .total_size = 256, |
| 15916 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15917 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15918 | .tested = TEST_UNTESTED, |
| 15919 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 15920 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15921 | .block_erasers = |
| 15922 | { |
| 15923 | { |
| 15924 | .eraseblocks = { |
| 15925 | {16 * 1024, 1}, |
| 15926 | {8 * 1024, 2}, |
| 15927 | {32 * 1024, 1}, |
| 15928 | {64 * 1024, 3}, |
| 15929 | }, |
| 15930 | .block_erase = erase_sector_jedec, |
| 15931 | }, { |
| 15932 | .eraseblocks = { {256 * 1024, 1} }, |
| 15933 | .block_erase = erase_chip_block_jedec, |
| 15934 | } |
| 15935 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15936 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15937 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 15938 | .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] | 15939 | .prepare_access = prepare_memory_access, |
| 15940 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15941 | }, |
| 15942 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15943 | { |
| 15944 | .vendor = "ST", |
| 15945 | .name = "M29F002T/NT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15946 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15947 | .manufacture_id = ST_ID, |
| 15948 | .model_id = ST_M29F002T, |
| 15949 | .total_size = 256, |
| 15950 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15951 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 15952 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15953 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 15954 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15955 | .block_erasers = |
| 15956 | { |
| 15957 | { |
| 15958 | .eraseblocks = { |
| 15959 | {64 * 1024, 3}, |
| 15960 | {32 * 1024, 1}, |
| 15961 | {8 * 1024, 2}, |
| 15962 | {16 * 1024, 1}, |
| 15963 | }, |
| 15964 | .block_erase = erase_sector_jedec, |
| 15965 | }, { |
| 15966 | .eraseblocks = { {256 * 1024, 1} }, |
| 15967 | .block_erase = erase_chip_block_jedec, |
| 15968 | } |
| 15969 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15970 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 15971 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 15972 | .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] | 15973 | .prepare_access = prepare_memory_access, |
| 15974 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 15975 | }, |
| 15976 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15977 | { |
| 15978 | .vendor = "ST", |
| 15979 | .name = "M29F040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15980 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 15981 | .manufacture_id = ST_ID, |
| 15982 | .model_id = ST_M29F040B, |
| 15983 | .total_size = 512, |
| 15984 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15985 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 15986 | .tested = TEST_UNTESTED, |
| 15987 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 15988 | .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15989 | .block_erasers = |
| 15990 | { |
| 15991 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 15992 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15993 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15994 | }, { |
| 15995 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15996 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 15997 | } |
| 15998 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 15999 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16000 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16001 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 16002 | .prepare_access = prepare_memory_access, |
| 16003 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16004 | }, |
| 16005 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16006 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16007 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16008 | .vendor = "ST", |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 16009 | .name = "M29F400BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16010 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 16011 | .manufacture_id = ST_ID, |
| 16012 | .model_id = ST_M29F400BB, |
| 16013 | .total_size = 512, |
| 16014 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 16015 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 16016 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 16017 | .probe = probe_jedec, |
| 16018 | .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] | 16019 | .block_erasers = |
| 16020 | { |
| 16021 | { |
| 16022 | .eraseblocks = { |
| 16023 | {16 * 1024, 1}, |
| 16024 | {8 * 1024, 2}, |
| 16025 | {32 * 1024, 1}, |
| 16026 | {64 * 1024, 7}, |
| 16027 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 16028 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 16029 | }, { |
| 16030 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 16031 | .block_erase = erase_chip_block_jedec, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 16032 | } |
| 16033 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 16034 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 16035 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16036 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 16037 | .prepare_access = prepare_memory_access, |
| 16038 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 16039 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 16040 | |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 16041 | { |
| 16042 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
| 16043 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16044 | .name = "M29F400BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16045 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16046 | .manufacture_id = ST_ID, |
| 16047 | .model_id = ST_M29F400BT, |
| 16048 | .total_size = 512, |
| 16049 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 16050 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16051 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 16052 | .probe = probe_jedec, |
| 16053 | .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] | 16054 | .block_erasers = |
| 16055 | { |
| 16056 | { |
| 16057 | .eraseblocks = { |
| 16058 | {64 * 1024, 7}, |
| 16059 | {32 * 1024, 1}, |
| 16060 | {8 * 1024, 2}, |
| 16061 | {16 * 1024, 1}, |
| 16062 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 16063 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16064 | }, { |
| 16065 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 16066 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16067 | } |
| 16068 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 16069 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16070 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16071 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 16072 | .prepare_access = prepare_memory_access, |
| 16073 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16074 | }, |
| 16075 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16076 | { |
| 16077 | .vendor = "ST", |
| 16078 | .name = "M29W010B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16079 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16080 | .manufacture_id = ST_ID, |
| 16081 | .model_id = ST_M29W010B, |
| 16082 | .total_size = 128, |
| 16083 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16084 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16085 | .tested = TEST_UNTESTED, |
| 16086 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 16087 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16088 | .block_erasers = |
| 16089 | { |
| 16090 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 16091 | .eraseblocks = { {16 * 1024, 8} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16092 | .block_erase = erase_sector_jedec, |
| 16093 | }, { |
| 16094 | .eraseblocks = { {128 * 1024, 1} }, |
| 16095 | .block_erase = erase_chip_block_jedec, |
| 16096 | } |
| 16097 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16098 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16099 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16100 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 16101 | .prepare_access = prepare_memory_access, |
| 16102 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16103 | }, |
| 16104 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16105 | { |
| 16106 | .vendor = "ST", |
| 16107 | .name = "M29W040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16108 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16109 | .manufacture_id = ST_ID, |
| 16110 | .model_id = ST_M29W040B, |
| 16111 | .total_size = 512, |
| 16112 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16113 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16114 | .tested = TEST_UNTESTED, |
| 16115 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 16116 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16117 | .block_erasers = |
| 16118 | { |
| 16119 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 16120 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16121 | .block_erase = erase_sector_jedec, |
| 16122 | }, { |
| 16123 | .eraseblocks = { {512 * 1024, 1} }, |
| 16124 | .block_erase = erase_chip_block_jedec, |
| 16125 | } |
| 16126 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16127 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16128 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16129 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 16130 | .prepare_access = prepare_memory_access, |
| 16131 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16132 | }, |
| 16133 | |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 16134 | { |
| 16135 | .vendor = "ST", |
| 16136 | .name = "M29W512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16137 | .bustype = BUS_PARALLEL, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 16138 | .manufacture_id = ST_ID, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 16139 | .model_id = ST_M29W512B, |
| 16140 | .total_size = 64, |
| 16141 | .page_size = 64 * 1024, |
| 16142 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 16143 | .tested = TEST_OK_PREW, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 16144 | .probe = probe_jedec, |
| 16145 | .probe_timing = TIMING_ZERO, |
| 16146 | .block_erasers = |
| 16147 | { |
| 16148 | { |
| 16149 | .eraseblocks = { {64 * 1024, 1} }, |
| 16150 | .block_erase = erase_chip_block_jedec, |
| 16151 | } |
| 16152 | }, |
| 16153 | .write = write_jedec_1, |
| 16154 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16155 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 16156 | .prepare_access = prepare_memory_access, |
| 16157 | .finish_access = finish_memory_access, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 16158 | }, |
Jeffrey A. Kent | ba7c922 | 2010-02-01 05:49:46 +0000 | [diff] [blame] | 16159 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16160 | { |
| 16161 | .vendor = "ST", |
| 16162 | .name = "M50FLW040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16163 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16164 | .manufacture_id = ST_ID, |
| 16165 | .model_id = ST_M50FLW040A, |
| 16166 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 16167 | .page_size = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16168 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16169 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 16170 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16171 | .block_erasers = |
| 16172 | { |
| 16173 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 16174 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 16175 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 16176 | {64 * 1024, 5}, /* block */ |
| 16177 | {4 * 1024, 16}, /* sector */ |
| 16178 | {4 * 1024, 16}, /* sector */ |
| 16179 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 16180 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 16181 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 16182 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 16183 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16184 | } |
| 16185 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 16186 | .unlock = unlock_regspace2_uniform_64k, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 16187 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16188 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16189 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 16190 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 16191 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16192 | }, |
| 16193 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16194 | { |
| 16195 | .vendor = "ST", |
| 16196 | .name = "M50FLW040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16197 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16198 | .manufacture_id = ST_ID, |
| 16199 | .model_id = ST_M50FLW040B, |
| 16200 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 16201 | .page_size = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16202 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16203 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 16204 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16205 | .block_erasers = |
| 16206 | { |
| 16207 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 16208 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 16209 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 16210 | {4 * 1024, 16}, /* sector */ |
| 16211 | {64 * 1024, 5}, /* block */ |
| 16212 | {4 * 1024, 16}, /* sector */ |
| 16213 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 16214 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 16215 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 16216 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 16217 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16218 | } |
| 16219 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 16220 | .unlock = unlock_regspace2_uniform_64k, |
Alan Green | c1863ca | 2019-06-27 15:08:03 +1000 | [diff] [blame] | 16221 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16222 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16223 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 16224 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 16225 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16226 | }, |
| 16227 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16228 | { |
| 16229 | .vendor = "ST", |
| 16230 | .name = "M50FLW080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16231 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16232 | .manufacture_id = ST_ID, |
| 16233 | .model_id = ST_M50FLW080A, |
| 16234 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 16235 | .page_size = 0, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 16236 | .tested = TEST_OK_PR, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16237 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 16238 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16239 | .block_erasers = |
| 16240 | { |
| 16241 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 16242 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 16243 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 16244 | {64 * 1024, 13}, /* block */ |
| 16245 | {4 * 1024, 16}, /* sector */ |
| 16246 | {4 * 1024, 16}, /* sector */ |
| 16247 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 16248 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 16249 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 16250 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 16251 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16252 | } |
| 16253 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 16254 | .printlock = printlock_regspace2_block_eraser_0, |
| 16255 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 16256 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16257 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16258 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 16259 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 16260 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16261 | }, |
| 16262 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16263 | { |
| 16264 | .vendor = "ST", |
| 16265 | .name = "M50FLW080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16266 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16267 | .manufacture_id = ST_ID, |
| 16268 | .model_id = ST_M50FLW080B, |
| 16269 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 16270 | .page_size = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16271 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16272 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 16273 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16274 | .block_erasers = |
| 16275 | { |
| 16276 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 16277 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 16278 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 16279 | {4 * 1024, 16}, /* sector */ |
| 16280 | {64 * 1024, 13}, /* block */ |
| 16281 | {4 * 1024, 16}, /* sector */ |
| 16282 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 16283 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 16284 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 16285 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 16286 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16287 | } |
| 16288 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 16289 | .printlock = printlock_regspace2_block_eraser_0, |
| 16290 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 16291 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16292 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16293 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 16294 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 16295 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16296 | }, |
| 16297 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16298 | { |
| 16299 | .vendor = "ST", |
| 16300 | .name = "M50FW002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16301 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16302 | .manufacture_id = ST_ID, |
| 16303 | .model_id = ST_M50FW002, |
| 16304 | .total_size = 256, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 16305 | .page_size = 0, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 16306 | .tested = TEST_OK_PR, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16307 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 16308 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16309 | .block_erasers = |
| 16310 | { |
| 16311 | { |
| 16312 | .eraseblocks = { |
| 16313 | {64 * 1024, 3}, |
| 16314 | {32 * 1024, 1}, |
| 16315 | {8 * 1024, 2}, |
| 16316 | {16 * 1024, 1}, |
| 16317 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 16318 | .block_erase = erase_block_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 16319 | }, { |
Stefan Tauner | 5c316f9 | 2015-02-08 21:57:52 +0000 | [diff] [blame] | 16320 | .eraseblocks = { {256 * 1024, 1} }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 16321 | .block_erase = NULL, /* Only in A/A mux mode */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16322 | } |
| 16323 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 16324 | .printlock = printlock_regspace2_block_eraser_0, |
| 16325 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 16326 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16327 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16328 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 16329 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 16330 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16331 | }, |
| 16332 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16333 | { |
| 16334 | .vendor = "ST", |
| 16335 | .name = "M50FW016", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16336 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16337 | .manufacture_id = ST_ID, |
| 16338 | .model_id = ST_M50FW016, |
| 16339 | .total_size = 2048, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 16340 | .page_size = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16341 | .tested = TEST_UNTESTED, |
| 16342 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 16343 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16344 | .block_erasers = |
| 16345 | { |
| 16346 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 16347 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 16348 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16349 | } |
| 16350 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 16351 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 16352 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16353 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16354 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 16355 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 16356 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16357 | }, |
| 16358 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16359 | { |
| 16360 | .vendor = "ST", |
| 16361 | .name = "M50FW040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16362 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16363 | .manufacture_id = ST_ID, |
| 16364 | .model_id = ST_M50FW040, |
| 16365 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 16366 | .page_size = 0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 16367 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16368 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 16369 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16370 | .block_erasers = |
| 16371 | { |
| 16372 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 16373 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 16374 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16375 | } |
| 16376 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 16377 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 16378 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16379 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16380 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 16381 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 16382 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16383 | }, |
| 16384 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16385 | { |
| 16386 | .vendor = "ST", |
| 16387 | .name = "M50FW080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16388 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16389 | .manufacture_id = ST_ID, |
| 16390 | .model_id = ST_M50FW080, |
| 16391 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 16392 | .page_size = 0, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 16393 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16394 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 16395 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16396 | .block_erasers = |
| 16397 | { |
| 16398 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 16399 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 16400 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16401 | } |
| 16402 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 16403 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 16404 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16405 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16406 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 16407 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 16408 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16409 | }, |
| 16410 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16411 | { |
| 16412 | .vendor = "ST", |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 16413 | .name = "M50LPW080", |
| 16414 | .bustype = BUS_LPC, /* A/A Mux */ |
| 16415 | .manufacture_id = ST_ID, |
| 16416 | .model_id = ST_M50LPW080, |
| 16417 | .total_size = 1024, |
| 16418 | .page_size = 0, |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 16419 | .tested = TEST_UNTESTED, |
| 16420 | .probe = probe_82802ab, |
| 16421 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 16422 | .block_erasers = |
| 16423 | { |
| 16424 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 16425 | .eraseblocks = { {64 * 1024, 16} }, |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 16426 | .block_erase = erase_block_82802ab, |
| 16427 | } |
| 16428 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 16429 | .unlock = unlock_regspace2_uniform_64k, |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 16430 | .write = write_82802ab, |
| 16431 | .read = read_memmapped, |
| 16432 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 16433 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 16434 | .finish_access = finish_memory_access, |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 16435 | }, |
| 16436 | |
| 16437 | { |
| 16438 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16439 | .name = "M50LPW116", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 16440 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16441 | .manufacture_id = ST_ID, |
| 16442 | .model_id = ST_M50LPW116, |
| 16443 | .total_size = 2048, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 16444 | .page_size = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16445 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 16446 | .probe = probe_82802ab, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 16447 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16448 | .block_erasers = |
| 16449 | { |
| 16450 | { |
| 16451 | .eraseblocks = { |
| 16452 | {4 * 1024, 16}, |
| 16453 | {64 * 1024, 30}, |
| 16454 | {32 * 1024, 1}, |
| 16455 | {8 * 1024, 2}, |
| 16456 | {16 * 1024, 1}, |
| 16457 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 16458 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 16459 | } |
| 16460 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 16461 | .printlock = printlock_regspace2_block_eraser_0, |
| 16462 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 16463 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 16464 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 16465 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 16466 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 16467 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 16468 | }, |
| 16469 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 16470 | { |
Konstantin Grudnev | 3d8868c | 2019-07-23 00:48:54 +0300 | [diff] [blame] | 16471 | .vendor = "ST", |
| 16472 | .name = "M95M02", |
| 16473 | .bustype = BUS_SPI, |
| 16474 | .manufacture_id = ST_ID, |
| 16475 | .model_id = ST_M95M02, |
| 16476 | .total_size = 256, |
| 16477 | .page_size = 256, |
| 16478 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_NO_ERASE | FEATURE_ERASED_ZERO, |
| 16479 | .tested = TEST_OK_PREW, |
Nico Huber | 5455786 | 2023-05-15 12:01:04 +0200 | [diff] [blame] | 16480 | .spi_cmd_set = SPI95, |
Konstantin Grudnev | 3d8868c | 2019-07-23 00:48:54 +0300 | [diff] [blame] | 16481 | .probe = probe_spi_st95, |
| 16482 | .probe_timing = TIMING_ZERO, |
| 16483 | .block_erasers = |
| 16484 | { |
| 16485 | { |
| 16486 | .eraseblocks = { {256 * 1024, 1} }, |
| 16487 | .block_erase = spi_block_erase_emulation, |
| 16488 | } |
| 16489 | }, |
| 16490 | |
| 16491 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 16492 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 16493 | .write = spi_chip_write_256, |
| 16494 | .read = spi_chip_read, |
| 16495 | .voltage = {2500, 5500}, |
| 16496 | }, |
| 16497 | |
| 16498 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16499 | .vendor = "Sanyo", |
| 16500 | .name = "LE25FU106B", |
| 16501 | .bustype = BUS_SPI, |
| 16502 | .manufacture_id = SANYO_ID, |
| 16503 | .model_id = SANYO_LE25FU106B, |
| 16504 | .total_size = 128, |
| 16505 | .page_size = 256, |
| 16506 | .feature_bits = FEATURE_WRSR_WREN, |
| 16507 | .tested = TEST_UNTESTED, |
| 16508 | .probe = probe_spi_res2, |
| 16509 | .probe_timing = TIMING_ZERO, |
| 16510 | .block_erasers = |
| 16511 | { |
| 16512 | /* FIXME: Is this correct? |
| 16513 | { |
| 16514 | .eraseblocks = { {2 * 1024, 64} }, |
| 16515 | .block_erase = spi_block_erase_d7, |
| 16516 | },*/ |
| 16517 | { |
| 16518 | .eraseblocks = { {32 * 1024, 4} }, |
| 16519 | .block_erase = spi_block_erase_d8, |
| 16520 | }, { |
| 16521 | .eraseblocks = { {128 * 1024, 1} }, |
| 16522 | .block_erase = spi_block_erase_c7, |
| 16523 | } |
| 16524 | }, |
| 16525 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 16526 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 16527 | .write = spi_chip_write_256, |
| 16528 | .read = spi_chip_read, |
| 16529 | .voltage = {2300, 3600}, |
| 16530 | }, |
| 16531 | |
| 16532 | { |
| 16533 | .vendor = "Sanyo", |
| 16534 | .name = "LE25FU206", |
| 16535 | .bustype = BUS_SPI, |
| 16536 | .manufacture_id = SANYO_ID, |
| 16537 | .model_id = SANYO_LE25FU206, |
| 16538 | .total_size = 256, |
| 16539 | .page_size = 256, |
| 16540 | .feature_bits = FEATURE_WRSR_WREN, |
| 16541 | .tested = TEST_UNTESTED, |
| 16542 | .probe = probe_spi_res2, |
| 16543 | .probe_timing = TIMING_ZERO, |
| 16544 | .block_erasers = |
| 16545 | { |
| 16546 | { |
| 16547 | .eraseblocks = { {4 * 1024, 64} }, |
| 16548 | .block_erase = spi_block_erase_d7, |
| 16549 | }, { |
| 16550 | .eraseblocks = { {64 * 1024, 4} }, |
| 16551 | .block_erase = spi_block_erase_d8, |
| 16552 | }, { |
| 16553 | .eraseblocks = { {256 * 1024, 1} }, |
| 16554 | .block_erase = spi_block_erase_c7, |
| 16555 | } |
| 16556 | }, |
| 16557 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
| 16558 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 16559 | .write = spi_chip_write_256, |
| 16560 | .read = spi_chip_read, |
| 16561 | .voltage = {2300, 3600}, |
| 16562 | }, |
| 16563 | |
| 16564 | { |
| 16565 | .vendor = "Sanyo", |
| 16566 | .name = "LE25FU206A", |
| 16567 | .bustype = BUS_SPI, |
| 16568 | .manufacture_id = SANYO_ID, |
| 16569 | .model_id = SANYO_LE25FU206A, |
| 16570 | .total_size = 256, |
| 16571 | .page_size = 256, |
| 16572 | .tested = TEST_UNTESTED, |
| 16573 | .probe = probe_spi_rdid, |
| 16574 | .probe_timing = TIMING_ZERO, |
| 16575 | .block_erasers = |
| 16576 | { |
| 16577 | { |
| 16578 | .eraseblocks = { {4 * 1024, 64} }, |
| 16579 | .block_erase = spi_block_erase_20, |
| 16580 | }, { |
| 16581 | .eraseblocks = { {4 * 1024, 64} }, |
| 16582 | .block_erase = spi_block_erase_d7, |
| 16583 | }, { |
| 16584 | .eraseblocks = { {64 * 1024, 4} }, |
| 16585 | .block_erase = spi_block_erase_d8, |
| 16586 | }, { |
| 16587 | .eraseblocks = { {256 * 1024, 1} }, |
| 16588 | .block_erase = spi_block_erase_60, |
| 16589 | }, { |
| 16590 | .eraseblocks = { {256 * 1024, 1} }, |
| 16591 | .block_erase = spi_block_erase_c7, |
| 16592 | } |
| 16593 | }, |
| 16594 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 16595 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 16596 | .write = spi_chip_write_256, |
| 16597 | .read = spi_chip_read, |
| 16598 | .voltage = {2300, 3600}, |
| 16599 | }, |
| 16600 | |
| 16601 | { |
| 16602 | .vendor = "Sanyo", |
| 16603 | .name = "LE25FU406B", |
| 16604 | .bustype = BUS_SPI, |
| 16605 | .manufacture_id = SANYO_ID, |
| 16606 | .model_id = SANYO_LE25FU406B, |
| 16607 | .total_size = 512, |
| 16608 | .page_size = 256, |
| 16609 | .feature_bits = FEATURE_WRSR_WREN, |
| 16610 | .tested = TEST_OK_PREW, |
| 16611 | .probe = probe_spi_res2, |
| 16612 | .probe_timing = TIMING_ZERO, |
| 16613 | .block_erasers = |
| 16614 | { |
| 16615 | { |
| 16616 | .eraseblocks = { {4 * 1024, 128} }, |
| 16617 | .block_erase = spi_block_erase_d7, |
| 16618 | }, { |
| 16619 | .eraseblocks = { {64 * 1024, 8} }, |
| 16620 | .block_erase = spi_block_erase_d8, |
| 16621 | }, { |
| 16622 | .eraseblocks = { {512 * 1024, 1} }, |
| 16623 | .block_erase = spi_block_erase_c7, |
| 16624 | } |
| 16625 | }, |
| 16626 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 16627 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 16628 | .write = spi_chip_write_256, |
| 16629 | .read = spi_chip_read, |
| 16630 | .voltage = {2300, 3600}, |
| 16631 | }, |
| 16632 | |
| 16633 | { |
| 16634 | .vendor = "Sanyo", |
| 16635 | .name = "LE25FU406C/LE25U40CMC", |
| 16636 | .bustype = BUS_SPI, |
| 16637 | .manufacture_id = SANYO_ID, |
| 16638 | .model_id = SANYO_LE25FU406C, |
| 16639 | .total_size = 512, |
| 16640 | .page_size = 256, |
| 16641 | .feature_bits = FEATURE_WRSR_WREN, |
| 16642 | .tested = TEST_OK_PREW, |
| 16643 | .probe = probe_spi_rdid, |
| 16644 | .probe_timing = TIMING_ZERO, |
| 16645 | .block_erasers = |
| 16646 | { |
| 16647 | { |
| 16648 | .eraseblocks = { {4 * 1024, 128} }, |
| 16649 | .block_erase = spi_block_erase_20, |
| 16650 | }, { |
| 16651 | .eraseblocks = { {4 * 1024, 128} }, |
| 16652 | .block_erase = spi_block_erase_d7, |
| 16653 | }, { |
| 16654 | .eraseblocks = { {64 * 1024, 8} }, |
| 16655 | .block_erase = spi_block_erase_d8, |
| 16656 | }, { |
| 16657 | .eraseblocks = { {512 * 1024, 1} }, |
| 16658 | .block_erase = spi_block_erase_60, |
| 16659 | }, { |
| 16660 | .eraseblocks = { {512 * 1024, 1} }, |
| 16661 | .block_erase = spi_block_erase_c7, |
| 16662 | } |
| 16663 | }, |
| 16664 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 16665 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 16666 | .write = spi_chip_write_256, |
| 16667 | .read = spi_chip_read, /* Fast read (0x0B), dual read (0x3B) and dual I/O (0xBB) supported */ |
| 16668 | .voltage = {2300, 3600}, |
| 16669 | }, |
| 16670 | |
| 16671 | { |
| 16672 | .vendor = "Sanyo", |
| 16673 | .name = "LE25FW106", |
| 16674 | .bustype = BUS_SPI, |
| 16675 | .manufacture_id = SANYO_ID, |
| 16676 | .model_id = SANYO_LE25FW106, |
| 16677 | .total_size = 128, |
| 16678 | .page_size = 256, |
| 16679 | .feature_bits = FEATURE_WRSR_WREN, |
| 16680 | .tested = TEST_OK_PREW, |
| 16681 | .probe = probe_spi_res2, |
| 16682 | .probe_timing = TIMING_ZERO, |
| 16683 | .block_erasers = |
| 16684 | { |
| 16685 | { |
| 16686 | .eraseblocks = { {2 * 1024, 64} }, |
| 16687 | .block_erase = spi_block_erase_d7, |
| 16688 | }, { |
| 16689 | .eraseblocks = { {32 * 1024, 4} }, |
| 16690 | .block_erase = spi_block_erase_d8, |
| 16691 | }, { |
| 16692 | .eraseblocks = { {128 * 1024, 1} }, |
| 16693 | .block_erase = spi_block_erase_c7, |
| 16694 | } |
| 16695 | }, |
| 16696 | .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */ |
| 16697 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 16698 | .write = spi_chip_write_256, |
| 16699 | .read = spi_chip_read, |
| 16700 | .voltage = {2700, 3600}, |
| 16701 | }, |
| 16702 | |
| 16703 | { |
| 16704 | .vendor = "Sanyo", |
| 16705 | .name = "LE25FW203A", |
| 16706 | .bustype = BUS_SPI, |
| 16707 | .manufacture_id = SANYO_ID, |
| 16708 | .model_id = SANYO_LE25FW203A, |
| 16709 | .total_size = 256, |
| 16710 | .page_size = 256, |
| 16711 | .tested = TEST_UNTESTED, |
| 16712 | .probe = probe_spi_rdid, |
| 16713 | .probe_timing = TIMING_ZERO, |
| 16714 | .block_erasers = |
| 16715 | { |
| 16716 | { |
| 16717 | .eraseblocks = { {256, 1024} }, |
| 16718 | .block_erase = spi_block_erase_db, |
| 16719 | }, { |
| 16720 | .eraseblocks = { {64 * 1024, 4} }, |
| 16721 | .block_erase = spi_block_erase_d8, |
| 16722 | }, { |
| 16723 | .eraseblocks = { {256 * 1024, 1} }, |
| 16724 | .block_erase = spi_block_erase_c7, |
| 16725 | } |
| 16726 | }, |
| 16727 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 16728 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 16729 | .write = spi_chip_write_256, |
| 16730 | .read = spi_chip_read, |
| 16731 | .voltage = {2700, 3600}, |
| 16732 | }, |
| 16733 | |
| 16734 | { |
| 16735 | .vendor = "Sanyo", |
| 16736 | .name = "LE25FW403A", |
| 16737 | .bustype = BUS_SPI, |
| 16738 | .manufacture_id = SANYO_ID, |
| 16739 | .model_id = SANYO_LE25FW403A, |
| 16740 | .total_size = 512, |
| 16741 | .page_size = 256, |
| 16742 | .tested = TEST_UNTESTED, |
| 16743 | .probe = probe_spi_rdid, |
| 16744 | .probe_timing = TIMING_ZERO, |
| 16745 | .block_erasers = |
| 16746 | { |
| 16747 | { |
| 16748 | .eraseblocks = { {256, 2 * 1024} }, |
| 16749 | .block_erase = spi_block_erase_db, |
| 16750 | }, { |
| 16751 | .eraseblocks = { {64 * 1024, 8} }, |
| 16752 | .block_erase = spi_block_erase_d8, |
| 16753 | }, { |
| 16754 | .eraseblocks = { {512 * 1024, 1} }, |
| 16755 | .block_erase = spi_block_erase_c7, |
| 16756 | } |
| 16757 | }, |
| 16758 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 16759 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 16760 | .write = spi_chip_write_256, |
| 16761 | .read = spi_chip_read, |
| 16762 | .voltage = {2700, 3600}, |
| 16763 | }, |
| 16764 | |
| 16765 | { |
| 16766 | .vendor = "Sanyo", |
| 16767 | .name = "LE25FW406A", |
| 16768 | .bustype = BUS_SPI, |
| 16769 | .manufacture_id = SANYO_ID, |
| 16770 | .model_id = SANYO_LE25FW406A, |
| 16771 | .total_size = 512, |
| 16772 | .page_size = 256, |
| 16773 | .feature_bits = FEATURE_WRSR_WREN, |
| 16774 | .tested = TEST_OK_PREW, |
| 16775 | .probe = probe_spi_res2, |
| 16776 | .probe_timing = TIMING_ZERO, |
| 16777 | .block_erasers = |
| 16778 | { |
| 16779 | { |
| 16780 | .eraseblocks = { {4 * 1024, 128} }, |
| 16781 | .block_erase = spi_block_erase_d7, |
| 16782 | }, { |
| 16783 | .eraseblocks = { {64 * 1024, 8} }, |
| 16784 | .block_erase = spi_block_erase_d8, |
| 16785 | }, { |
| 16786 | .eraseblocks = { {512 * 1024, 1} }, |
| 16787 | .block_erase = spi_block_erase_c7, |
| 16788 | } |
| 16789 | }, |
| 16790 | .printlock = spi_prettyprint_status_register_plain, |
| 16791 | .unlock = spi_disable_blockprotect, |
| 16792 | .write = spi_chip_write_256, |
| 16793 | .read = spi_chip_read, |
| 16794 | .voltage = {2700, 3600}, |
| 16795 | }, |
| 16796 | |
| 16797 | { |
| 16798 | .vendor = "Sanyo", |
| 16799 | .name = "LE25FW418A", |
| 16800 | .bustype = BUS_SPI, |
| 16801 | .manufacture_id = SANYO_ID, |
| 16802 | .model_id = SANYO_LE25FW418A, |
| 16803 | .total_size = 512, |
| 16804 | .page_size = 256, |
| 16805 | .feature_bits = FEATURE_WRSR_WREN, |
| 16806 | .tested = TEST_UNTESTED, |
| 16807 | .probe = probe_spi_res2, |
| 16808 | .probe_timing = TIMING_ZERO, |
| 16809 | .block_erasers = |
| 16810 | { |
| 16811 | { |
| 16812 | .eraseblocks = { {4 * 1024, 128} }, |
| 16813 | .block_erase = spi_block_erase_d7, |
| 16814 | }, { |
| 16815 | .eraseblocks = { {64 * 1024, 8} }, |
| 16816 | .block_erase = spi_block_erase_d8, |
| 16817 | }, { |
| 16818 | .eraseblocks = { {512 * 1024, 1} }, |
| 16819 | .block_erase = spi_block_erase_c7, |
| 16820 | } |
| 16821 | }, |
| 16822 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 16823 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 16824 | .write = spi_chip_write_256, |
| 16825 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 16826 | .voltage = {2700, 3600}, |
| 16827 | }, |
| 16828 | |
| 16829 | { |
| 16830 | .vendor = "Sanyo", |
| 16831 | .name = "LE25FW806", |
| 16832 | .bustype = BUS_SPI, |
| 16833 | .manufacture_id = SANYO_ID, |
| 16834 | .model_id = SANYO_LE25FW806, |
| 16835 | .total_size = 1024, |
| 16836 | .page_size = 256, |
| 16837 | .feature_bits = FEATURE_WRSR_WREN, |
| 16838 | .tested = TEST_UNTESTED, |
| 16839 | .probe = probe_spi_res2, |
| 16840 | .probe_timing = TIMING_ZERO, |
| 16841 | .block_erasers = |
| 16842 | { |
| 16843 | { |
| 16844 | .eraseblocks = { {4 * 1024, 256} }, |
| 16845 | .block_erase = spi_block_erase_20, |
| 16846 | }, { |
| 16847 | .eraseblocks = { {4 * 1024, 256} }, |
| 16848 | .block_erase = spi_block_erase_d7, |
| 16849 | }, { |
| 16850 | .eraseblocks = { {64 * 1024, 16} }, |
| 16851 | .block_erase = spi_block_erase_d8, |
| 16852 | }, { |
| 16853 | .eraseblocks = { {1024 * 1024, 1} }, |
| 16854 | .block_erase = spi_block_erase_c7, |
| 16855 | } |
| 16856 | }, |
| 16857 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 16858 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 16859 | .write = spi_chip_write_256, |
| 16860 | .read = spi_chip_read, |
| 16861 | .voltage = {2700, 3600}, |
| 16862 | }, |
| 16863 | |
| 16864 | { |
| 16865 | .vendor = "Sanyo", |
| 16866 | .name = "LE25FW808", |
| 16867 | .bustype = BUS_SPI, |
| 16868 | .manufacture_id = SANYO_ID, |
| 16869 | .model_id = SANYO_LE25FW808, |
| 16870 | .total_size = 1024, |
| 16871 | .page_size = 256, |
| 16872 | .feature_bits = FEATURE_WRSR_WREN, |
| 16873 | .tested = TEST_UNTESTED, |
| 16874 | .probe = probe_spi_res2, |
| 16875 | .probe_timing = TIMING_ZERO, |
| 16876 | .block_erasers = |
| 16877 | { |
| 16878 | { |
| 16879 | .eraseblocks = { {8 * 1024, 128} }, |
| 16880 | .block_erase = spi_block_erase_d7, |
| 16881 | }, { |
| 16882 | .eraseblocks = { {64 * 1024, 16} }, |
| 16883 | .block_erase = spi_block_erase_d8, |
| 16884 | }, { |
| 16885 | .eraseblocks = { {1024 * 1024, 1} }, |
| 16886 | .block_erase = spi_block_erase_c7, |
| 16887 | } |
| 16888 | }, |
| 16889 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 16890 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 16891 | .write = spi_chip_write_256, |
| 16892 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 16893 | .voltage = {2700, 3600}, |
| 16894 | }, |
| 16895 | |
| 16896 | { |
| 16897 | .vendor = "Sharp", |
| 16898 | .name = "LH28F008BJT-BTLZ1", |
| 16899 | .bustype = BUS_PARALLEL, |
| 16900 | .manufacture_id = SHARP_ID, |
| 16901 | .model_id = SHARP_LH28F008BJ__PB, |
| 16902 | .total_size = 1024, |
| 16903 | .page_size = 64 * 1024, |
| 16904 | .tested = TEST_OK_PREW, |
| 16905 | .probe = probe_82802ab, |
| 16906 | .probe_timing = TIMING_ZERO, |
| 16907 | .block_erasers = |
| 16908 | { |
| 16909 | { |
| 16910 | .eraseblocks = { |
| 16911 | {8 * 1024, 8}, |
| 16912 | {64 * 1024, 15} |
| 16913 | }, |
| 16914 | .block_erase = erase_block_82802ab, |
| 16915 | }, { |
| 16916 | .eraseblocks = { {1024 * 1024, 1} }, |
| 16917 | .block_erase = erase_sector_49lfxxxc, |
| 16918 | } |
| 16919 | }, |
| 16920 | .unlock = unlock_lh28f008bjt, |
| 16921 | .write = write_82802ab, |
| 16922 | .read = read_memmapped, |
| 16923 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 16924 | .prepare_access = prepare_memory_access, |
| 16925 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16926 | }, |
| 16927 | |
| 16928 | { |
| 16929 | .vendor = "Sharp", |
| 16930 | .name = "LHF00L04", |
| 16931 | .bustype = BUS_FWH, /* A/A Mux */ |
| 16932 | .manufacture_id = SHARP_ID, |
| 16933 | .model_id = SHARP_LHF00L04, |
| 16934 | .total_size = 1024, |
| 16935 | .page_size = 64 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 16936 | .feature_bits = FEATURE_EITHER_RESET, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16937 | .tested = TEST_UNTESTED, |
| 16938 | .probe = probe_82802ab, |
| 16939 | .probe_timing = TIMING_ZERO, |
| 16940 | .block_erasers = |
| 16941 | { |
| 16942 | { |
| 16943 | .eraseblocks = { |
| 16944 | {64 * 1024, 15}, |
| 16945 | {8 * 1024, 8} |
| 16946 | }, |
| 16947 | .block_erase = erase_block_82802ab, |
| 16948 | }, { |
| 16949 | .eraseblocks = { |
| 16950 | {1024 * 1024, 1} |
| 16951 | }, |
| 16952 | .block_erase = NULL, /* 30 D0, only in A/A mux mode */ |
| 16953 | }, |
| 16954 | }, |
| 16955 | .unlock = unlock_regspace2_uniform_64k, |
| 16956 | .write = write_82802ab, |
| 16957 | .read = read_memmapped, |
| 16958 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 16959 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 16960 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 16961 | }, |
| 16962 | |
| 16963 | { |
| 16964 | .vendor = "Spansion", |
| 16965 | .name = "S25FL004A", |
| 16966 | .bustype = BUS_SPI, |
| 16967 | .manufacture_id = SPANSION_ID, |
| 16968 | .model_id = SPANSION_S25FL004A, |
| 16969 | .total_size = 512, |
| 16970 | .page_size = 256, |
| 16971 | .feature_bits = FEATURE_WRSR_WREN, |
| 16972 | .tested = TEST_UNTESTED, |
| 16973 | .probe = probe_spi_rdid, |
| 16974 | .probe_timing = TIMING_ZERO, |
| 16975 | .block_erasers = |
| 16976 | { |
| 16977 | { |
| 16978 | .eraseblocks = { {64 * 1024, 8} }, |
| 16979 | .block_erase = spi_block_erase_d8, |
| 16980 | }, { |
| 16981 | .eraseblocks = { {512 * 1024, 1} }, |
| 16982 | .block_erase = spi_block_erase_c7, |
| 16983 | } |
| 16984 | }, |
| 16985 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 16986 | .unlock = spi_disable_blockprotect, |
| 16987 | .write = spi_chip_write_256, |
| 16988 | .read = spi_chip_read, |
| 16989 | .voltage = {2700, 3600}, |
| 16990 | }, |
| 16991 | |
| 16992 | { |
| 16993 | .vendor = "Spansion", |
| 16994 | .name = "S25FL008A", |
| 16995 | .bustype = BUS_SPI, |
| 16996 | .manufacture_id = SPANSION_ID, |
| 16997 | .model_id = SPANSION_S25FL008A, |
| 16998 | .total_size = 1024, |
| 16999 | .page_size = 256, |
| 17000 | .feature_bits = FEATURE_WRSR_WREN, |
| 17001 | .tested = TEST_OK_PRE, |
| 17002 | .probe = probe_spi_rdid, |
| 17003 | .probe_timing = TIMING_ZERO, |
| 17004 | .block_erasers = |
| 17005 | { |
| 17006 | { |
| 17007 | .eraseblocks = { {64 * 1024, 16} }, |
| 17008 | .block_erase = spi_block_erase_d8, |
| 17009 | }, { |
| 17010 | .eraseblocks = { {1024 * 1024, 1} }, |
| 17011 | .block_erase = spi_block_erase_c7, |
| 17012 | } |
| 17013 | }, |
| 17014 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17015 | .unlock = spi_disable_blockprotect, |
| 17016 | .write = spi_chip_write_256, |
| 17017 | .read = spi_chip_read, |
| 17018 | .voltage = {2700, 3600}, |
| 17019 | }, |
| 17020 | |
| 17021 | { |
| 17022 | .vendor = "Spansion", |
| 17023 | .name = "S25FL016A", |
| 17024 | .bustype = BUS_SPI, |
| 17025 | .manufacture_id = SPANSION_ID, |
| 17026 | .model_id = SPANSION_S25FL016A, |
| 17027 | .total_size = 2048, |
| 17028 | .page_size = 256, |
| 17029 | .feature_bits = FEATURE_WRSR_WREN, |
| 17030 | .tested = TEST_OK_PREW, |
| 17031 | .probe = probe_spi_rdid, |
| 17032 | .probe_timing = TIMING_ZERO, |
| 17033 | .block_erasers = |
| 17034 | { |
| 17035 | { |
| 17036 | .eraseblocks = { {64 * 1024, 32} }, |
| 17037 | .block_erase = spi_block_erase_d8, |
| 17038 | }, { |
| 17039 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 17040 | .block_erase = spi_block_erase_c7, |
| 17041 | } |
| 17042 | }, |
| 17043 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17044 | .unlock = spi_disable_blockprotect, |
| 17045 | .write = spi_chip_write_256, |
| 17046 | .read = spi_chip_read, |
| 17047 | .voltage = {2700, 3600}, |
| 17048 | }, |
| 17049 | |
| 17050 | { |
| 17051 | .vendor = "Spansion", |
| 17052 | .name = "S25FL032A/P", |
| 17053 | .bustype = BUS_SPI, |
| 17054 | .manufacture_id = SPANSION_ID, |
| 17055 | .model_id = SPANSION_S25FL032A, |
| 17056 | .total_size = 4096, |
| 17057 | .page_size = 256, |
| 17058 | .feature_bits = FEATURE_WRSR_WREN, |
| 17059 | .tested = TEST_OK_PREW, |
| 17060 | .probe = probe_spi_rdid, |
| 17061 | .probe_timing = TIMING_ZERO, |
| 17062 | .block_erasers = |
| 17063 | { |
| 17064 | { |
| 17065 | .eraseblocks = { {64 * 1024, 64} }, |
| 17066 | .block_erase = spi_block_erase_d8, |
| 17067 | }, { |
| 17068 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 17069 | .block_erase = spi_block_erase_c7, |
| 17070 | } |
| 17071 | }, |
| 17072 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17073 | .unlock = spi_disable_blockprotect, |
| 17074 | .write = spi_chip_write_256, |
| 17075 | .read = spi_chip_read, |
| 17076 | .voltage = {2700, 3600}, |
| 17077 | }, |
| 17078 | |
| 17079 | { |
| 17080 | .vendor = "Spansion", |
| 17081 | .name = "S25FL064A/P", |
| 17082 | .bustype = BUS_SPI, |
| 17083 | .manufacture_id = SPANSION_ID, |
| 17084 | .model_id = SPANSION_S25FL064A, |
| 17085 | .total_size = 8192, |
| 17086 | .page_size = 256, |
| 17087 | .feature_bits = FEATURE_WRSR_WREN, |
| 17088 | .tested = TEST_OK_PREW, |
| 17089 | .probe = probe_spi_rdid, |
| 17090 | .probe_timing = TIMING_ZERO, |
| 17091 | .block_erasers = |
| 17092 | { |
| 17093 | { |
| 17094 | .eraseblocks = { {64 * 1024, 128} }, |
| 17095 | .block_erase = spi_block_erase_d8, |
| 17096 | }, { |
| 17097 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 17098 | .block_erase = spi_block_erase_c7, |
| 17099 | } |
| 17100 | }, |
| 17101 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 17102 | .unlock = spi_disable_blockprotect, |
| 17103 | .write = spi_chip_write_256, |
| 17104 | .read = spi_chip_read, |
| 17105 | .voltage = {2700, 3600}, |
| 17106 | }, |
| 17107 | |
| 17108 | { |
| 17109 | .vendor = "Spansion", |
| 17110 | .name = "S25FL116K/S25FL216K", /* FIXME: separate them */ |
| 17111 | .bustype = BUS_SPI, |
| 17112 | .manufacture_id = SPANSION_ID, |
| 17113 | .model_id = SPANSION_S25FL216, |
| 17114 | .total_size = 2048, |
| 17115 | .page_size = 256, |
| 17116 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */ |
| 17117 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 17118 | .tested = TEST_UNTESTED, |
| 17119 | .probe = probe_spi_rdid, |
| 17120 | .probe_timing = TIMING_ZERO, |
| 17121 | .block_erasers = |
| 17122 | { |
| 17123 | { |
| 17124 | .eraseblocks = { {4 * 1024, 512} }, |
| 17125 | .block_erase = spi_block_erase_20, |
| 17126 | }, { |
| 17127 | .eraseblocks = { {64 * 1024, 32} }, |
| 17128 | .block_erase = spi_block_erase_d8, |
| 17129 | }, { |
| 17130 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 17131 | .block_erase = spi_block_erase_60, |
| 17132 | }, { |
| 17133 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 17134 | .block_erase = spi_block_erase_c7, |
| 17135 | } |
| 17136 | }, |
| 17137 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 17138 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 17139 | .write = spi_chip_write_256, |
| 17140 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
| 17141 | .voltage = {2700, 3600}, |
| 17142 | }, |
| 17143 | |
| 17144 | { |
| 17145 | .vendor = "Spansion", |
| 17146 | .name = "S25FL127S-256kB", /* uniform 256kB sectors */ |
| 17147 | .bustype = BUS_SPI, |
| 17148 | .manufacture_id = SPANSION_ID, |
| 17149 | .model_id = SPANSION_S25FL128, |
| 17150 | .total_size = 16384, |
| 17151 | .page_size = 512, |
| 17152 | /* supports 4B addressing */ |
| 17153 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 17154 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 17155 | .tested = TEST_UNTESTED, |
| 17156 | .probe = probe_spi_rdid, |
| 17157 | .probe_timing = TIMING_ZERO, |
| 17158 | .block_erasers = |
| 17159 | { |
| 17160 | { |
| 17161 | .eraseblocks = { {256 * 1024, 64} }, |
| 17162 | .block_erase = spi_block_erase_d8, |
| 17163 | }, { |
| 17164 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 17165 | .block_erase = spi_block_erase_60, |
| 17166 | }, { |
| 17167 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 17168 | .block_erase = spi_block_erase_c7, |
| 17169 | } |
| 17170 | }, |
| 17171 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 17172 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 17173 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 17174 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 17175 | .voltage = {2700, 3600}, |
| 17176 | }, |
| 17177 | |
| 17178 | { |
| 17179 | .vendor = "Spansion", |
| 17180 | .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 17181 | .bustype = BUS_SPI, |
| 17182 | .manufacture_id = SPANSION_ID, |
| 17183 | .model_id = SPANSION_S25FL128, |
| 17184 | .total_size = 16384, |
| 17185 | .page_size = 256, |
| 17186 | /* supports 4B addressing */ |
| 17187 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 17188 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 17189 | .tested = TEST_OK_PREW, |
| 17190 | /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */ |
| 17191 | .probe = probe_spi_rdid, |
| 17192 | .probe_timing = TIMING_ZERO, |
| 17193 | .block_erasers = |
| 17194 | { |
| 17195 | { |
| 17196 | /* This chip supports erasing of 32 so-called "parameter sectors" with |
| 17197 | * opcode 0x20 which may be configured to be on top or bottom of the address |
| 17198 | * space. Trying to access an address outside these 4kB blocks does have no |
| 17199 | * effect on the memory contents, e.g. |
| 17200 | .eraseblocks = { |
| 17201 | {4 * 1024, 32}, |
| 17202 | {64 * 1024, 254} // inaccessible |
| 17203 | }, |
| 17204 | .block_erase = spi_block_erase_20, |
| 17205 | }, { */ |
| 17206 | .eraseblocks = { { 64 * 1024, 256} }, |
| 17207 | .block_erase = spi_block_erase_d8, |
| 17208 | }, { |
| 17209 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 17210 | .block_erase = spi_block_erase_60, |
| 17211 | }, { |
| 17212 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 17213 | .block_erase = spi_block_erase_c7, |
| 17214 | } |
| 17215 | }, |
| 17216 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 17217 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 17218 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 17219 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 17220 | .voltage = {2700, 3600}, |
| 17221 | }, |
| 17222 | |
| 17223 | { |
| 17224 | .vendor = "Spansion", |
Nico Huber | fffc48d | 2022-05-28 14:26:06 +0200 | [diff] [blame] | 17225 | .name = "S25FL128L", |
| 17226 | .bustype = BUS_SPI, |
| 17227 | .manufacture_id = SPANSION_ID, |
| 17228 | .model_id = SPANSION_S25FL128L, |
| 17229 | .total_size = 16384, |
| 17230 | .page_size = 256, |
| 17231 | /* 4 x 256B Security Region (OTP) */ |
| 17232 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT3 | FEATURE_OTP, |
| 17233 | .tested = TEST_UNTESTED, |
| 17234 | .probe = probe_spi_rdid, |
| 17235 | .probe_timing = TIMING_ZERO, |
| 17236 | .block_erasers = |
| 17237 | { |
| 17238 | { |
| 17239 | .eraseblocks = { {4 * 1024, 4096} }, |
| 17240 | .block_erase = spi_block_erase_20, |
| 17241 | }, { |
| 17242 | .eraseblocks = { {32 * 1024, 512} }, |
| 17243 | .block_erase = spi_block_erase_52, |
| 17244 | }, { |
| 17245 | .eraseblocks = { {64 * 1024, 256} }, |
| 17246 | .block_erase = spi_block_erase_d8, |
| 17247 | }, { |
| 17248 | .eraseblocks = { {16384 * 1024, 1} }, |
| 17249 | .block_erase = spi_block_erase_60, |
| 17250 | }, { |
| 17251 | .eraseblocks = { {16384 * 1024, 1} }, |
| 17252 | .block_erase = spi_block_erase_c7, |
| 17253 | } |
| 17254 | }, |
| 17255 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 17256 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 17257 | .write = spi_chip_write_256, |
| 17258 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 17259 | .voltage = {2700, 3600}, |
| 17260 | .reg_bits = |
| 17261 | { |
| 17262 | /* |
| 17263 | * Note: This chip has a read-only Status Register 2 that is not |
| 17264 | * counted here. Registers are mapped as follows: |
| 17265 | * STATUS1 ... Status Register 1 |
| 17266 | * STATUS2 ... Configuration Register 1 |
| 17267 | * STATUS3 ... Configuration Register 2 |
| 17268 | */ |
| 17269 | .srp = {STATUS1, 7, RW}, |
| 17270 | .srl = {STATUS2, 0, RW}, |
| 17271 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 17272 | .tb = {STATUS1, 5, RW}, |
| 17273 | .sec = {STATUS1, 6, RW}, |
| 17274 | .cmp = {STATUS2, 6, RW}, |
| 17275 | .wps = {STATUS3, 2, RW}, |
| 17276 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 17277 | .wp_write_cfg = spi_wp_write_cfg, |
| 17278 | .wp_read_cfg = spi_wp_read_cfg, |
| 17279 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nico Huber | fffc48d | 2022-05-28 14:26:06 +0200 | [diff] [blame] | 17280 | .decode_range = decode_range_spi25, |
| 17281 | }, |
| 17282 | |
| 17283 | { |
| 17284 | .vendor = "Spansion", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17285 | .name = "S25FL128P......0", /* uniform 64 kB sectors */ |
| 17286 | .bustype = BUS_SPI, |
| 17287 | .manufacture_id = SPANSION_ID, |
| 17288 | .model_id = SPANSION_S25FL128, |
| 17289 | .total_size = 16384, |
| 17290 | .page_size = 256, |
| 17291 | .feature_bits = FEATURE_WRSR_WREN, |
| 17292 | .tested = TEST_OK_PREW, |
| 17293 | .probe = probe_spi_rdid, |
| 17294 | .probe_timing = TIMING_ZERO, |
| 17295 | .block_erasers = |
| 17296 | { |
| 17297 | { |
| 17298 | .eraseblocks = { {64 * 1024, 256} }, |
| 17299 | .block_erase = spi_block_erase_20, |
| 17300 | }, { |
| 17301 | .eraseblocks = { {64 * 1024, 256} }, |
| 17302 | .block_erase = spi_block_erase_d8, |
| 17303 | }, { |
| 17304 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 17305 | .block_erase = spi_block_erase_60, |
| 17306 | }, { |
| 17307 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 17308 | .block_erase = spi_block_erase_c7, |
| 17309 | } |
| 17310 | }, |
| 17311 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 17312 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 17313 | .write = spi_chip_write_256, |
| 17314 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 17315 | .voltage = {2700, 3600}, |
| 17316 | }, |
| 17317 | |
| 17318 | { |
| 17319 | .vendor = "Spansion", |
| 17320 | .name = "S25FL128P......1", /* uniform 256kB sectors */ |
| 17321 | .bustype = BUS_SPI, |
| 17322 | .manufacture_id = SPANSION_ID, |
| 17323 | .model_id = SPANSION_S25FL128, |
| 17324 | .total_size = 16384, |
| 17325 | .page_size = 256, |
| 17326 | .feature_bits = FEATURE_WRSR_WREN, |
| 17327 | .tested = TEST_UNTESTED, |
| 17328 | .probe = probe_spi_rdid, |
| 17329 | .probe_timing = TIMING_ZERO, |
| 17330 | .block_erasers = |
| 17331 | { |
| 17332 | { |
| 17333 | .eraseblocks = { {256 * 1024, 64} }, |
| 17334 | .block_erase = spi_block_erase_d8, |
| 17335 | }, { |
| 17336 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 17337 | .block_erase = spi_block_erase_c7, |
| 17338 | } |
| 17339 | }, |
| 17340 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 17341 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 17342 | .write = spi_chip_write_256, |
| 17343 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 17344 | .voltage = {2700, 3600}, |
| 17345 | }, |
| 17346 | |
| 17347 | { |
| 17348 | .vendor = "Spansion", |
| 17349 | .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 17350 | .bustype = BUS_SPI, |
| 17351 | .manufacture_id = SPANSION_ID, |
| 17352 | .model_id = SPANSION_S25FL128, |
| 17353 | .total_size = 16384, |
| 17354 | .page_size = 256, |
| 17355 | /* supports 4B addressing */ |
| 17356 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 17357 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 17358 | .tested = TEST_OK_PREW, |
| 17359 | .probe = probe_spi_rdid, |
| 17360 | .probe_timing = TIMING_ZERO, |
| 17361 | .block_erasers = |
| 17362 | { |
| 17363 | { |
| 17364 | /* This chip supports erasing of the 32 so-called "parameter sectors" with |
| 17365 | * opcode 0x20. Trying to access an address outside these 4kB blocks does |
| 17366 | * have no effect on the memory contents, but sets a flag in the SR. |
| 17367 | .eraseblocks = { |
| 17368 | {4 * 1024, 32}, |
| 17369 | {64 * 1024, 254} // inaccessible |
| 17370 | }, |
| 17371 | .block_erase = spi_block_erase_20, |
| 17372 | }, { */ |
| 17373 | .eraseblocks = { { 64 * 1024, 256} }, |
| 17374 | .block_erase = spi_block_erase_d8, |
| 17375 | }, { |
| 17376 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 17377 | .block_erase = spi_block_erase_60, |
| 17378 | }, { |
| 17379 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 17380 | .block_erase = spi_block_erase_c7, |
| 17381 | } |
| 17382 | }, |
| 17383 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 17384 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 17385 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 17386 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 17387 | .voltage = {2700, 3600}, |
| 17388 | }, |
| 17389 | |
| 17390 | { |
| 17391 | .vendor = "Spansion", |
| 17392 | .name = "S25FL128S......1", /* uniform 256 kB sectors */ |
| 17393 | .bustype = BUS_SPI, |
| 17394 | .manufacture_id = SPANSION_ID, |
| 17395 | .model_id = SPANSION_S25FL128, |
| 17396 | .total_size = 16384, |
| 17397 | .page_size = 512, |
| 17398 | /* supports 4B addressing */ |
| 17399 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 17400 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 17401 | .tested = TEST_UNTESTED, |
| 17402 | .probe = probe_spi_rdid, |
| 17403 | .probe_timing = TIMING_ZERO, |
| 17404 | .block_erasers = |
| 17405 | { |
| 17406 | { |
| 17407 | .eraseblocks = { {256 * 1024, 64} }, |
| 17408 | .block_erase = spi_block_erase_d8, |
| 17409 | }, { |
| 17410 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 17411 | .block_erase = spi_block_erase_60, |
| 17412 | }, { |
| 17413 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 17414 | .block_erase = spi_block_erase_c7, |
| 17415 | } |
| 17416 | }, |
| 17417 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 17418 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 17419 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 17420 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 17421 | .voltage = {2700, 3600}, |
| 17422 | }, |
| 17423 | |
| 17424 | { |
| 17425 | .vendor = "Spansion", |
| 17426 | .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 17427 | .bustype = BUS_SPI, |
| 17428 | .manufacture_id = SPANSION_ID, |
| 17429 | .model_id = SPANSION_S25FL128, |
| 17430 | .total_size = 16384, |
| 17431 | .page_size = 256, |
| 17432 | /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */ |
| 17433 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 17434 | .tested = TEST_OK_PREW, |
| 17435 | .probe = probe_spi_rdid, |
| 17436 | .probe_timing = TIMING_ZERO, |
| 17437 | .block_erasers = |
| 17438 | { |
| 17439 | { |
| 17440 | /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with |
| 17441 | * opcode 0x20. Trying to access an address outside these 4kB blocks does have no |
| 17442 | * effect on the memory contents, but sets a flag in the SR. |
| 17443 | .eraseblocks = { |
| 17444 | {4 * 1024, 32}, |
| 17445 | {64 * 1024, 254} // inaccessible |
| 17446 | }, |
| 17447 | .block_erase = spi_block_erase_20, |
| 17448 | }, { */ |
| 17449 | /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs |
| 17450 | .eraseblocks = { |
| 17451 | {8 * 1024, 16}, |
| 17452 | {64 * 1024, 254} // inaccessible |
| 17453 | }, |
| 17454 | .block_erase = spi_block_erase_40, |
| 17455 | }, { */ |
| 17456 | .eraseblocks = { { 64 * 1024, 256} }, |
| 17457 | .block_erase = spi_block_erase_d8, |
| 17458 | }, { |
| 17459 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 17460 | .block_erase = spi_block_erase_60, |
| 17461 | }, { |
| 17462 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 17463 | .block_erase = spi_block_erase_c7, |
| 17464 | } |
| 17465 | }, |
| 17466 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */ |
| 17467 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 17468 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 17469 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 17470 | .voltage = {2700, 3600}, |
| 17471 | }, |
| 17472 | |
| 17473 | { |
| 17474 | .vendor = "Spansion", |
| 17475 | .name = "S25FL129P......1", /* uniform 256 kB sectors */ |
| 17476 | .bustype = BUS_SPI, |
| 17477 | .manufacture_id = SPANSION_ID, |
| 17478 | .model_id = SPANSION_S25FL128, |
| 17479 | .total_size = 16384, |
| 17480 | .page_size = 256, |
| 17481 | /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */ |
| 17482 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 17483 | .tested = TEST_UNTESTED, |
| 17484 | .probe = probe_spi_rdid, |
| 17485 | .probe_timing = TIMING_ZERO, |
| 17486 | .block_erasers = |
| 17487 | { |
| 17488 | { |
| 17489 | .eraseblocks = { {256 * 1024, 64} }, |
| 17490 | .block_erase = spi_block_erase_d8, |
| 17491 | }, { |
| 17492 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 17493 | .block_erase = spi_block_erase_60, |
| 17494 | }, { |
| 17495 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 17496 | .block_erase = spi_block_erase_c7, |
| 17497 | } |
| 17498 | }, |
| 17499 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */ |
| 17500 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 17501 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 17502 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 17503 | .voltage = {2700, 3600}, |
| 17504 | }, |
| 17505 | |
| 17506 | { |
| 17507 | .vendor = "Spansion", |
| 17508 | .name = "S25FL132K", |
| 17509 | .bustype = BUS_SPI, |
| 17510 | .manufacture_id = SPANSION_ID, |
| 17511 | .model_id = SPANSION_S25FL132K, |
| 17512 | .total_size = 4096, |
| 17513 | .page_size = 256, |
| 17514 | /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 17515 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 17516 | .tested = TEST_UNTESTED, |
| 17517 | .probe = probe_spi_rdid, |
| 17518 | .probe_timing = TIMING_ZERO, |
| 17519 | .block_erasers = |
| 17520 | { |
| 17521 | { |
| 17522 | .eraseblocks = { {4 * 1024, 1024} }, |
| 17523 | .block_erase = spi_block_erase_20, |
| 17524 | }, { |
| 17525 | .eraseblocks = { {64 * 1024, 64} }, |
| 17526 | .block_erase = spi_block_erase_d8, |
| 17527 | }, { |
| 17528 | .eraseblocks = { { 4096 * 1024, 1} }, |
| 17529 | .block_erase = spi_block_erase_60, |
| 17530 | }, { |
| 17531 | .eraseblocks = { { 4096 * 1024, 1} }, |
| 17532 | .block_erase = spi_block_erase_c7, |
| 17533 | } |
| 17534 | }, |
| 17535 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */ |
| 17536 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 17537 | .write = spi_chip_write_256, |
| 17538 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 17539 | .voltage = {2700, 3600}, |
| 17540 | }, |
| 17541 | |
| 17542 | { |
| 17543 | .vendor = "Spansion", |
| 17544 | .name = "S25FL164K", |
| 17545 | .bustype = BUS_SPI, |
| 17546 | .manufacture_id = SPANSION_ID, |
| 17547 | .model_id = SPANSION_S25FL164K, |
| 17548 | .total_size = 8192, |
| 17549 | .page_size = 256, |
| 17550 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 17551 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 17552 | .tested = TEST_OK_PREW, |
| 17553 | .probe = probe_spi_rdid, |
| 17554 | .probe_timing = TIMING_ZERO, |
| 17555 | .block_erasers = |
| 17556 | { |
| 17557 | { |
| 17558 | .eraseblocks = { {4 * 1024, 2048} }, |
| 17559 | .block_erase = spi_block_erase_20, |
| 17560 | }, { |
| 17561 | .eraseblocks = { {64 * 1024, 128} }, |
| 17562 | .block_erase = spi_block_erase_d8, |
| 17563 | }, { |
| 17564 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 17565 | .block_erase = spi_block_erase_60, |
| 17566 | }, { |
| 17567 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 17568 | .block_erase = spi_block_erase_c7, |
| 17569 | } |
| 17570 | }, |
| 17571 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */ |
| 17572 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 17573 | .write = spi_chip_write_256, |
| 17574 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 17575 | .voltage = {2700, 3600}, |
| 17576 | }, |
| 17577 | |
| 17578 | { |
| 17579 | .vendor = "Spansion", |
| 17580 | .name = "S25FL204K", |
| 17581 | .bustype = BUS_SPI, |
| 17582 | .manufacture_id = SPANSION_ID, |
| 17583 | .model_id = SPANSION_S25FL204, |
| 17584 | .total_size = 512, |
| 17585 | .page_size = 256, |
| 17586 | .feature_bits = FEATURE_WRSR_WREN, |
| 17587 | .tested = TEST_OK_PR, |
| 17588 | .probe = probe_spi_rdid, |
| 17589 | .probe_timing = TIMING_ZERO, |
| 17590 | .block_erasers = |
| 17591 | { |
| 17592 | { |
| 17593 | .eraseblocks = { {4 * 1024, 128} }, |
| 17594 | .block_erase = spi_block_erase_20, |
| 17595 | }, { |
| 17596 | .eraseblocks = { {64 * 1024, 8} }, |
| 17597 | .block_erase = spi_block_erase_d8, |
| 17598 | }, { |
| 17599 | .eraseblocks = { { 512 * 1024, 1} }, |
| 17600 | .block_erase = spi_block_erase_60, |
| 17601 | }, { |
| 17602 | .eraseblocks = { { 512 * 1024, 1} }, |
| 17603 | .block_erase = spi_block_erase_c7, |
| 17604 | } |
| 17605 | }, |
| 17606 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 17607 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 17608 | .write = spi_chip_write_256, |
| 17609 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
| 17610 | .voltage = {2700, 3600}, |
| 17611 | }, |
| 17612 | |
| 17613 | { |
| 17614 | .vendor = "Spansion", |
| 17615 | .name = "S25FL208K", |
| 17616 | .bustype = BUS_SPI, |
| 17617 | .manufacture_id = SPANSION_ID, |
| 17618 | .model_id = SPANSION_S25FL208, |
| 17619 | .total_size = 1024, |
| 17620 | .page_size = 256, |
| 17621 | .feature_bits = FEATURE_WRSR_WREN, |
| 17622 | .tested = TEST_OK_PREW, |
| 17623 | .probe = probe_spi_rdid, |
| 17624 | .probe_timing = TIMING_ZERO, |
| 17625 | .block_erasers = |
| 17626 | { |
| 17627 | { |
| 17628 | .eraseblocks = { {4 * 1024, 256} }, |
| 17629 | .block_erase = spi_block_erase_20, |
| 17630 | }, { |
| 17631 | .eraseblocks = { {64 * 1024, 16} }, |
| 17632 | .block_erase = spi_block_erase_d8, |
| 17633 | }, { |
| 17634 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 17635 | .block_erase = spi_block_erase_60, |
| 17636 | }, { |
| 17637 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 17638 | .block_erase = spi_block_erase_c7, |
| 17639 | } |
| 17640 | }, |
| 17641 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 17642 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 17643 | .write = spi_chip_write_256, |
| 17644 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
| 17645 | .voltage = {2700, 3600}, |
| 17646 | }, |
| 17647 | |
| 17648 | { |
| 17649 | .vendor = "Spansion", |
Nico Huber | fffc48d | 2022-05-28 14:26:06 +0200 | [diff] [blame] | 17650 | .name = "S25FL256L", |
| 17651 | .bustype = BUS_SPI, |
| 17652 | .manufacture_id = SPANSION_ID, |
| 17653 | .model_id = SPANSION_S25FL256L, |
| 17654 | .total_size = 32768, |
| 17655 | .page_size = 256, |
| 17656 | /* 4 x 256B Security Region (OTP) */ |
| 17657 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT3 | FEATURE_OTP | |
| 17658 | FEATURE_4BA_ENTER | FEATURE_4BA_NATIVE, |
| 17659 | .tested = TEST_UNTESTED, |
| 17660 | .probe = probe_spi_rdid, |
| 17661 | .probe_timing = TIMING_ZERO, |
| 17662 | .block_erasers = |
| 17663 | { |
| 17664 | { |
| 17665 | .eraseblocks = { {4 * 1024, 8192} }, |
| 17666 | .block_erase = spi_block_erase_21, |
| 17667 | }, { |
| 17668 | .eraseblocks = { {4 * 1024, 8192} }, |
| 17669 | .block_erase = spi_block_erase_20, |
| 17670 | }, { |
| 17671 | .eraseblocks = { {32 * 1024, 1024} }, |
| 17672 | .block_erase = spi_block_erase_53, |
| 17673 | }, { |
| 17674 | .eraseblocks = { {32 * 1024, 1024} }, |
| 17675 | .block_erase = spi_block_erase_52, |
| 17676 | }, { |
| 17677 | .eraseblocks = { {64 * 1024, 512} }, |
| 17678 | .block_erase = spi_block_erase_dc, |
| 17679 | }, { |
| 17680 | .eraseblocks = { {64 * 1024, 512} }, |
| 17681 | .block_erase = spi_block_erase_d8, |
| 17682 | }, { |
| 17683 | .eraseblocks = { {32768 * 1024, 1} }, |
| 17684 | .block_erase = spi_block_erase_60, |
| 17685 | }, { |
| 17686 | .eraseblocks = { {32768 * 1024, 1} }, |
| 17687 | .block_erase = spi_block_erase_c7, |
| 17688 | } |
| 17689 | }, |
| 17690 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 17691 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 17692 | .write = spi_chip_write_256, |
| 17693 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 17694 | .voltage = {2700, 3600}, |
| 17695 | .reg_bits = |
| 17696 | { |
| 17697 | /* |
| 17698 | * Note: This chip has a read-only Status Register 2 that is not |
| 17699 | * counted here. Registers are mapped as follows: |
| 17700 | * STATUS1 ... Status Register 1 |
| 17701 | * STATUS2 ... Configuration Register 1 |
| 17702 | * STATUS3 ... Configuration Register 2 |
| 17703 | */ |
| 17704 | .srp = {STATUS1, 7, RW}, |
| 17705 | .srl = {STATUS2, 0, RW}, |
| 17706 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}}, |
| 17707 | .tb = {STATUS1, 6, RW}, |
| 17708 | .cmp = {STATUS2, 6, RW}, |
| 17709 | .wps = {STATUS3, 2, RW}, |
| 17710 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 17711 | .wp_write_cfg = spi_wp_write_cfg, |
| 17712 | .wp_read_cfg = spi_wp_read_cfg, |
| 17713 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nico Huber | fffc48d | 2022-05-28 14:26:06 +0200 | [diff] [blame] | 17714 | .decode_range = decode_range_spi25, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 17715 | .prepare_access = spi_prepare_io, |
| 17716 | .finish_access = spi_finish_io, |
Nico Huber | fffc48d | 2022-05-28 14:26:06 +0200 | [diff] [blame] | 17717 | }, |
| 17718 | |
| 17719 | { |
| 17720 | .vendor = "Spansion", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17721 | .name = "S25FL256S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 17722 | .bustype = BUS_SPI, |
| 17723 | .manufacture_id = SPANSION_ID, |
| 17724 | .model_id = SPANSION_S25FL256, |
| 17725 | .total_size = 32768, |
| 17726 | .page_size = 256, |
| 17727 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
Nico Huber | 9bb8a32 | 2022-05-24 15:07:34 +0200 | [diff] [blame] | 17728 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 17729 | FEATURE_4BA_NATIVE | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17730 | .tested = TEST_OK_PREW, |
| 17731 | .probe = probe_spi_rdid, |
| 17732 | .probe_timing = TIMING_ZERO, |
| 17733 | .block_erasers = |
| 17734 | { |
| 17735 | { |
| 17736 | /* This chip supports erasing of the 32 so-called "parameter sectors" with |
| 17737 | * opcode 0x20. Trying to access an address outside these 4kB blocks does |
| 17738 | * have no effect on the memory contents, but sets a flag in the SR. |
| 17739 | .eraseblocks = { |
| 17740 | {4 * 1024, 32}, |
| 17741 | {64 * 1024, 254} // inaccessible |
| 17742 | }, |
| 17743 | .block_erase = spi_block_erase_20, |
| 17744 | }, { */ |
| 17745 | .eraseblocks = { { 64 * 1024, 512} }, |
| 17746 | .block_erase = spi_block_erase_dc, |
| 17747 | }, { |
| 17748 | .eraseblocks = { { 64 * 1024, 512} }, |
| 17749 | .block_erase = spi_block_erase_d8, |
| 17750 | }, { |
| 17751 | .eraseblocks = { { 32768 * 1024, 1} }, |
| 17752 | .block_erase = spi_block_erase_60, |
| 17753 | }, { |
| 17754 | .eraseblocks = { { 32768 * 1024, 1} }, |
| 17755 | .block_erase = spi_block_erase_c7, |
| 17756 | } |
| 17757 | }, |
| 17758 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 17759 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 17760 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 17761 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 17762 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 17763 | .prepare_access = spi_prepare_io, |
| 17764 | .finish_access = spi_finish_io, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 17765 | }, |
| 17766 | |
| 17767 | { |
Bernhard Urban-Forster | 05c629b | 2020-02-02 21:29:48 +0100 | [diff] [blame] | 17768 | .vendor = "Spansion", |
| 17769 | .name = "S25FL512S", |
| 17770 | .bustype = BUS_SPI, |
| 17771 | .manufacture_id = SPANSION_ID, |
| 17772 | .model_id = SPANSION_S25FL512, |
| 17773 | .total_size = 65536, /* 512 Mb (=> 64 MB)) */ |
| 17774 | .page_size = 256, |
| 17775 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
Nico Huber | 2623792 | 2022-06-20 19:37:37 +0200 | [diff] [blame] | 17776 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | |
| 17777 | FEATURE_4BA_NATIVE | FEATURE_4BA_ENTER_EAR7 | FEATURE_4BA_EAR_1716, |
| 17778 | .tested = TEST_UNTESTED, |
Bernhard Urban-Forster | 05c629b | 2020-02-02 21:29:48 +0100 | [diff] [blame] | 17779 | .probe = probe_spi_rdid, |
| 17780 | .probe_timing = TIMING_ZERO, |
| 17781 | .block_erasers = |
| 17782 | { |
| 17783 | { |
| 17784 | .eraseblocks = { { 256 * 1024, 256} }, |
| 17785 | .block_erase = spi_block_erase_dc, |
| 17786 | }, { |
Nico Huber | bb608ff | 2022-05-24 15:33:26 +0200 | [diff] [blame] | 17787 | .eraseblocks = { { 256 * 1024, 256} }, |
| 17788 | .block_erase = spi_block_erase_d8, |
| 17789 | }, { |
Bernhard Urban-Forster | 05c629b | 2020-02-02 21:29:48 +0100 | [diff] [blame] | 17790 | .eraseblocks = { { 65536 * 1024, 1} }, |
| 17791 | .block_erase = spi_block_erase_60, |
| 17792 | }, { |
| 17793 | .eraseblocks = { { 65536 * 1024, 1} }, |
| 17794 | .block_erase = spi_block_erase_c7, |
| 17795 | } |
| 17796 | }, |
| 17797 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 17798 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 17799 | .write = spi_chip_write_256, /* Multi I/O supported, IGNORE for now */ |
| 17800 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 17801 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 17802 | .prepare_access = spi_prepare_io, |
| 17803 | .finish_access = spi_finish_io, |
Bernhard Urban-Forster | 05c629b | 2020-02-02 21:29:48 +0100 | [diff] [blame] | 17804 | }, |
| 17805 | |
| 17806 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17807 | .vendor = "SyncMOS/MoselVitelic", |
| 17808 | .name = "{F,S,V}29C51001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17809 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17810 | .manufacture_id = SYNCMOS_MVC_ID, |
| 17811 | .model_id = SM_MVC_29C51001B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17812 | .total_size = 128, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17813 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17814 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17815 | .tested = TEST_UNTESTED, |
| 17816 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 17817 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 17818 | .block_erasers = |
| 17819 | { |
| 17820 | { |
| 17821 | .eraseblocks = { {512, 256} }, |
| 17822 | .block_erase = erase_sector_jedec, |
| 17823 | }, { |
| 17824 | .eraseblocks = { {128 * 1024, 1} }, |
| 17825 | .block_erase = erase_chip_block_jedec, |
| 17826 | }, |
| 17827 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17828 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17829 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17830 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 17831 | .prepare_access = prepare_memory_access, |
| 17832 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17833 | }, |
| 17834 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17835 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17836 | .vendor = "SyncMOS/MoselVitelic", |
| 17837 | .name = "{F,S,V}29C51001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17838 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17839 | .manufacture_id = SYNCMOS_MVC_ID, |
| 17840 | .model_id = SM_MVC_29C51001T, |
| 17841 | .total_size = 128, |
| 17842 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17843 | .feature_bits = FEATURE_EITHER_RESET, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17844 | .tested = TEST_UNTESTED, |
| 17845 | .probe = probe_jedec, |
| 17846 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 17847 | .block_erasers = |
| 17848 | { |
| 17849 | { |
| 17850 | .eraseblocks = { {512, 256} }, |
| 17851 | .block_erase = erase_sector_jedec, |
| 17852 | }, { |
| 17853 | .eraseblocks = { {128 * 1024, 1} }, |
| 17854 | .block_erase = erase_chip_block_jedec, |
| 17855 | }, |
| 17856 | }, |
| 17857 | .write = write_jedec_1, |
| 17858 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17859 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 17860 | .prepare_access = prepare_memory_access, |
| 17861 | .finish_access = finish_memory_access, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17862 | }, |
| 17863 | |
| 17864 | { |
| 17865 | .vendor = "SyncMOS/MoselVitelic", |
| 17866 | .name = "{F,S,V}29C51002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17867 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17868 | .manufacture_id = SYNCMOS_MVC_ID, |
| 17869 | .model_id = SM_MVC_29C51002B, |
| 17870 | .total_size = 256, |
| 17871 | .page_size = 512, |
| 17872 | .feature_bits = FEATURE_EITHER_RESET, |
| 17873 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17874 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 17875 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 17876 | .block_erasers = |
| 17877 | { |
| 17878 | { |
| 17879 | .eraseblocks = { {512, 512} }, |
| 17880 | .block_erase = erase_sector_jedec, |
| 17881 | }, { |
| 17882 | .eraseblocks = { {256 * 1024, 1} }, |
| 17883 | .block_erase = erase_chip_block_jedec, |
| 17884 | }, |
| 17885 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17886 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 17887 | .read = read_memmapped, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 17888 | .prepare_access = prepare_memory_access, |
| 17889 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 17890 | }, |
| 17891 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17892 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17893 | .vendor = "SyncMOS/MoselVitelic", |
| 17894 | .name = "{F,S,V}29C51002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17895 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17896 | .manufacture_id = SYNCMOS_MVC_ID, |
| 17897 | .model_id = SM_MVC_29C51002T, |
| 17898 | .total_size = 256, |
| 17899 | .page_size = 512, |
| 17900 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 17901 | .tested = TEST_OK_PREW, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17902 | .probe = probe_jedec, |
| 17903 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 17904 | .block_erasers = |
| 17905 | { |
| 17906 | { |
| 17907 | .eraseblocks = { {512, 512} }, |
| 17908 | .block_erase = erase_sector_jedec, |
| 17909 | }, { |
| 17910 | .eraseblocks = { {256 * 1024, 1} }, |
| 17911 | .block_erase = erase_chip_block_jedec, |
| 17912 | }, |
| 17913 | }, |
| 17914 | .write = write_jedec_1, |
| 17915 | .read = read_memmapped, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 17916 | .prepare_access = prepare_memory_access, |
| 17917 | .finish_access = finish_memory_access, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17918 | }, |
| 17919 | |
| 17920 | { |
| 17921 | .vendor = "SyncMOS/MoselVitelic", |
| 17922 | .name = "{F,S,V}29C51004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17923 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17924 | .manufacture_id = SYNCMOS_MVC_ID, |
| 17925 | .model_id = SM_MVC_29C51004B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17926 | .total_size = 512, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17927 | .page_size = 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 17928 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 17929 | .tested = TEST_UNTESTED, |
| 17930 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 17931 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 17932 | .block_erasers = |
| 17933 | { |
| 17934 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17935 | .eraseblocks = { {1024, 512} }, |
| 17936 | .block_erase = erase_sector_jedec, |
| 17937 | }, { |
| 17938 | .eraseblocks = { {512 * 1024, 1} }, |
| 17939 | .block_erase = erase_chip_block_jedec, |
| 17940 | }, |
| 17941 | }, |
| 17942 | .write = write_jedec_1, |
| 17943 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17944 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 17945 | .prepare_access = prepare_memory_access, |
| 17946 | .finish_access = finish_memory_access, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17947 | }, |
| 17948 | |
| 17949 | { |
| 17950 | .vendor = "SyncMOS/MoselVitelic", |
| 17951 | .name = "{F,S,V}29C51004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17952 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17953 | .manufacture_id = SYNCMOS_MVC_ID, |
| 17954 | .model_id = SM_MVC_29C51004T, |
| 17955 | .total_size = 512, |
| 17956 | .page_size = 1024, |
| 17957 | .feature_bits = FEATURE_EITHER_RESET, |
| 17958 | .tested = TEST_UNTESTED, |
| 17959 | .probe = probe_jedec, |
| 17960 | .probe_timing = TIMING_ZERO, |
| 17961 | .block_erasers = |
| 17962 | { |
| 17963 | { |
| 17964 | .eraseblocks = { {1024, 512} }, |
| 17965 | .block_erase = erase_sector_jedec, |
| 17966 | }, { |
| 17967 | .eraseblocks = { {512 * 1024, 1} }, |
| 17968 | .block_erase = erase_chip_block_jedec, |
| 17969 | }, |
| 17970 | }, |
| 17971 | .write = write_jedec_1, |
| 17972 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 17973 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 17974 | .prepare_access = prepare_memory_access, |
| 17975 | .finish_access = finish_memory_access, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17976 | }, |
| 17977 | |
| 17978 | { |
| 17979 | .vendor = "SyncMOS/MoselVitelic", |
| 17980 | .name = "{S,V}29C31004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 17981 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 17982 | .manufacture_id = SYNCMOS_MVC_ID, |
| 17983 | .model_id = SM_MVC_29C31004B, |
| 17984 | .total_size = 512, |
| 17985 | .page_size = 1024, |
| 17986 | .feature_bits = FEATURE_EITHER_RESET, |
| 17987 | .tested = TEST_UNTESTED, |
| 17988 | .probe = probe_jedec, |
| 17989 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 17990 | .block_erasers = |
| 17991 | { |
| 17992 | { |
| 17993 | .eraseblocks = { {1024, 512} }, |
| 17994 | .block_erase = erase_sector_jedec, |
| 17995 | }, { |
| 17996 | .eraseblocks = { {512 * 1024, 1} }, |
| 17997 | .block_erase = erase_chip_block_jedec, |
| 17998 | }, |
| 17999 | }, |
| 18000 | .write = write_jedec_1, |
| 18001 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 18002 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 18003 | .prepare_access = prepare_memory_access, |
| 18004 | .finish_access = finish_memory_access, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 18005 | }, |
| 18006 | |
| 18007 | { |
| 18008 | .vendor = "SyncMOS/MoselVitelic", |
| 18009 | .name = "{S,V}29C31004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18010 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 18011 | .manufacture_id = SYNCMOS_MVC_ID, |
| 18012 | .model_id = SM_MVC_29C31004T, |
| 18013 | .total_size = 512, |
| 18014 | .page_size = 1024, |
| 18015 | .feature_bits = FEATURE_EITHER_RESET, |
| 18016 | .tested = TEST_UNTESTED, |
| 18017 | .probe = probe_jedec, |
| 18018 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 18019 | .block_erasers = |
| 18020 | { |
| 18021 | { |
| 18022 | .eraseblocks = { {1024, 512} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 18023 | .block_erase = erase_sector_jedec, |
| 18024 | }, { |
| 18025 | .eraseblocks = { {512 * 1024, 1} }, |
| 18026 | .block_erase = erase_chip_block_jedec, |
| 18027 | }, |
| 18028 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18029 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 18030 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 18031 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 18032 | .prepare_access = prepare_memory_access, |
| 18033 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 18034 | }, |
| 18035 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18036 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 18037 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 18038 | .name = "TMS29F002RB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18039 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 18040 | .manufacture_id = TI_OLD_ID, |
| 18041 | .model_id = TI_TMS29F002RB, |
| 18042 | .total_size = 256, |
| 18043 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18044 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 18045 | .tested = TEST_UNTESTED, |
| 18046 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 18047 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 18048 | .block_erasers = |
| 18049 | { |
| 18050 | { |
| 18051 | .eraseblocks = { |
| 18052 | {16 * 1024, 1}, |
| 18053 | {8 * 1024, 2}, |
| 18054 | {32 * 1024, 1}, |
| 18055 | {64 * 1024, 3}, |
| 18056 | }, |
| 18057 | .block_erase = erase_sector_jedec, |
| 18058 | }, { |
| 18059 | .eraseblocks = { {256 * 1024, 1} }, |
| 18060 | .block_erase = erase_chip_block_jedec, |
| 18061 | }, |
| 18062 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18063 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 18064 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 18065 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 18066 | .prepare_access = prepare_memory_access, |
| 18067 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 18068 | }, |
| 18069 | |
| 18070 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 18071 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 18072 | .name = "TMS29F002RT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18073 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 18074 | .manufacture_id = TI_OLD_ID, |
| 18075 | .model_id = TI_TMS29F002RT, |
| 18076 | .total_size = 256, |
| 18077 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18078 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 18079 | .tested = TEST_UNTESTED, |
| 18080 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 18081 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 18082 | .block_erasers = |
| 18083 | { |
| 18084 | { |
| 18085 | .eraseblocks = { |
| 18086 | {64 * 1024, 3}, |
| 18087 | {32 * 1024, 1}, |
| 18088 | {8 * 1024, 2}, |
| 18089 | {16 * 1024, 1}, |
| 18090 | }, |
| 18091 | .block_erase = erase_sector_jedec, |
| 18092 | }, { |
| 18093 | .eraseblocks = { {256 * 1024, 1} }, |
| 18094 | .block_erase = erase_chip_block_jedec, |
| 18095 | }, |
| 18096 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 18097 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 18098 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 18099 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 18100 | .prepare_access = prepare_memory_access, |
| 18101 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 18102 | }, |
| 18103 | |
| 18104 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 18105 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18106 | .name = "W25P16", |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 18107 | .bustype = BUS_SPI, |
| 18108 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18109 | .model_id = WINBOND_NEX_W25P16, |
| 18110 | .total_size = 2048, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 18111 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18112 | .feature_bits = FEATURE_WRSR_WREN, |
| 18113 | .tested = TEST_UNTESTED, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 18114 | .probe = probe_spi_rdid, |
| 18115 | .probe_timing = TIMING_ZERO, |
| 18116 | .block_erasers = |
| 18117 | { |
| 18118 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18119 | .eraseblocks = { {64 * 1024, 32} }, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 18120 | .block_erase = spi_block_erase_d8, |
| 18121 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18122 | .eraseblocks = { {2048 * 1024, 1} }, |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 18123 | .block_erase = spi_block_erase_c7, |
| 18124 | } |
| 18125 | }, |
| 18126 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18127 | .unlock = spi_disable_blockprotect, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18128 | .write = spi_chip_write_256, |
| 18129 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 18130 | .voltage = {2700, 3600}, |
| 18131 | }, |
| 18132 | |
| 18133 | { |
| 18134 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18135 | .name = "W25P32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18136 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 18137 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18138 | .model_id = WINBOND_NEX_W25P32, |
| 18139 | .total_size = 4096, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 18140 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18141 | .feature_bits = FEATURE_WRSR_WREN, |
| 18142 | .tested = TEST_UNTESTED, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 18143 | .probe = probe_spi_rdid, |
| 18144 | .probe_timing = TIMING_ZERO, |
| 18145 | .block_erasers = |
| 18146 | { |
| 18147 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18148 | .eraseblocks = { {64 * 1024, 64} }, |
| 18149 | .block_erase = spi_block_erase_d8, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 18150 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18151 | .eraseblocks = { {4096 * 1024, 1} }, |
| 18152 | .block_erase = spi_block_erase_c7, |
| 18153 | } |
| 18154 | }, |
| 18155 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18156 | .unlock = spi_disable_blockprotect, |
| 18157 | .write = spi_chip_write_256, |
| 18158 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 18159 | .voltage = {2700, 3600}, |
| 18160 | }, |
| 18161 | |
| 18162 | { |
| 18163 | .vendor = "Winbond", |
| 18164 | .name = "W25P80", |
| 18165 | .bustype = BUS_SPI, |
| 18166 | .manufacture_id = WINBOND_NEX_ID, |
| 18167 | .model_id = WINBOND_NEX_W25P80, |
| 18168 | .total_size = 1024, |
| 18169 | .page_size = 256, |
| 18170 | .feature_bits = FEATURE_WRSR_WREN, |
| 18171 | .tested = TEST_UNTESTED, |
| 18172 | .probe = probe_spi_rdid, |
| 18173 | .probe_timing = TIMING_ZERO, |
| 18174 | .block_erasers = |
| 18175 | { |
| 18176 | { |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 18177 | .eraseblocks = { {64 * 1024, 16} }, |
| 18178 | .block_erase = spi_block_erase_d8, |
| 18179 | }, { |
| 18180 | .eraseblocks = { {1024 * 1024, 1} }, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 18181 | .block_erase = spi_block_erase_c7, |
| 18182 | } |
| 18183 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 18184 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 18185 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 18186 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18187 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18188 | .voltage = {2700, 3600}, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 18189 | }, |
| 18190 | |
| 18191 | { |
| 18192 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18193 | .name = "W25Q128.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 18194 | .bustype = BUS_SPI, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 18195 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18196 | .model_id = WINBOND_NEX_W25Q128_V, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 18197 | .total_size = 16384, |
| 18198 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18199 | /* supports SFDP */ |
| 18200 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 18201 | /* QPI: only FV & JV..M versions */ |
| 18202 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QIO | |
Nico Huber | 3f3c1f3 | 2022-05-28 16:48:26 +0200 | [diff] [blame] | 18203 | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3, |
Edward O'Callaghan | a97e353 | 2022-12-16 15:41:05 +1100 | [diff] [blame] | 18204 | .tested = TEST_OK_PREWB, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 18205 | .probe = probe_spi_rdid, |
| 18206 | .probe_timing = TIMING_ZERO, |
| 18207 | .block_erasers = |
| 18208 | { |
| 18209 | { |
| 18210 | .eraseblocks = { {4 * 1024, 4096} }, |
| 18211 | .block_erase = spi_block_erase_20, |
| 18212 | }, { |
| 18213 | .eraseblocks = { {32 * 1024, 512} }, |
| 18214 | .block_erase = spi_block_erase_52, |
| 18215 | }, { |
| 18216 | .eraseblocks = { {64 * 1024, 256} }, |
| 18217 | .block_erase = spi_block_erase_d8, |
| 18218 | }, { |
| 18219 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 18220 | .block_erase = spi_block_erase_60, |
| 18221 | }, { |
| 18222 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 18223 | .block_erase = spi_block_erase_c7, |
| 18224 | } |
| 18225 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 18226 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 18227 | .unlock = spi_disable_blockprotect, |
| 18228 | .write = spi_chip_write_256, |
| 18229 | .read = spi_chip_read, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18230 | .voltage = {2700, 3600}, |
Sergii Dmytruk | d1af307 | 2021-11-08 00:00:43 +0200 | [diff] [blame] | 18231 | /* FIXME: Older versions (e.g. 25Q128BV) use WRSR_EXT and have no WPS. */ |
| 18232 | .reg_bits = |
| 18233 | { |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 18234 | .qe = {STATUS2, 1, RW}, |
Sergii Dmytruk | d1af307 | 2021-11-08 00:00:43 +0200 | [diff] [blame] | 18235 | .srp = {STATUS1, 7, RW}, |
| 18236 | .srl = {STATUS2, 0, RW}, |
| 18237 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 18238 | .tb = {STATUS1, 5, RW}, |
| 18239 | .sec = {STATUS1, 6, RW}, |
| 18240 | .cmp = {STATUS2, 6, RW}, |
| 18241 | .wps = {STATUS3, 2, RW}, |
| 18242 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 18243 | .wp_write_cfg = spi_wp_write_cfg, |
| 18244 | .wp_read_cfg = spi_wp_read_cfg, |
| 18245 | .wp_get_ranges = spi_wp_get_available_ranges, |
Sergii Dmytruk | d1af307 | 2021-11-08 00:00:43 +0200 | [diff] [blame] | 18246 | .decode_range = decode_range_spi25, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 18247 | .prepare_access = spi_prepare_io, |
| 18248 | .finish_access = spi_finish_io, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18249 | }, |
| 18250 | |
| 18251 | { |
| 18252 | .vendor = "Winbond", |
Patrick Rudolph | 3432349 | 2018-10-04 14:59:40 +0200 | [diff] [blame] | 18253 | .name = "W25Q128.V..M", |
| 18254 | .bustype = BUS_SPI, |
| 18255 | .manufacture_id = WINBOND_NEX_ID, |
| 18256 | .model_id = WINBOND_NEX_W25Q128_V_M, |
| 18257 | .total_size = 16384, |
| 18258 | .page_size = 256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 18259 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QPI_SRP, |
| 18260 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
Sergii Dmytruk | c74eac2 | 2022-10-06 18:17:58 +0300 | [diff] [blame] | 18261 | .tested = TEST_OK_PREWB, |
Patrick Rudolph | 3432349 | 2018-10-04 14:59:40 +0200 | [diff] [blame] | 18262 | .probe = probe_spi_rdid, |
| 18263 | .probe_timing = TIMING_ZERO, |
| 18264 | .block_erasers = |
| 18265 | { |
| 18266 | { |
| 18267 | .eraseblocks = { {4 * 1024, 4096} }, |
| 18268 | .block_erase = spi_block_erase_20, |
| 18269 | }, { |
| 18270 | .eraseblocks = { {32 * 1024, 512} }, |
| 18271 | .block_erase = spi_block_erase_52, |
| 18272 | }, { |
| 18273 | .eraseblocks = { {64 * 1024, 256} }, |
| 18274 | .block_erase = spi_block_erase_d8, |
| 18275 | }, { |
| 18276 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 18277 | .block_erase = spi_block_erase_60, |
| 18278 | }, { |
| 18279 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 18280 | .block_erase = spi_block_erase_c7, |
| 18281 | } |
| 18282 | }, |
Alan Green | a1fc01d | 2019-09-23 17:12:44 +1000 | [diff] [blame] | 18283 | .printlock = spi_prettyprint_status_register_plain, |
Patrick Rudolph | 3432349 | 2018-10-04 14:59:40 +0200 | [diff] [blame] | 18284 | .unlock = spi_disable_blockprotect, |
| 18285 | .write = spi_chip_write_256, |
| 18286 | .read = spi_chip_read, |
| 18287 | .voltage = {2700, 3600}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 18288 | .reg_bits = |
| 18289 | { |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 18290 | .qe = {STATUS2, 1, RW}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 18291 | .srp = {STATUS1, 7, RW}, |
| 18292 | .srl = {STATUS2, 0, RW}, |
| 18293 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 18294 | .tb = {STATUS1, 5, RW}, |
| 18295 | .sec = {STATUS1, 6, RW}, |
| 18296 | .cmp = {STATUS2, 6, RW}, |
| 18297 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 18298 | .wp_write_cfg = spi_wp_write_cfg, |
| 18299 | .wp_read_cfg = spi_wp_read_cfg, |
| 18300 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 18301 | .decode_range = decode_range_spi25, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 18302 | .prepare_access = spi_prepare_io, |
| 18303 | .finish_access = spi_finish_io, |
Patrick Rudolph | 3432349 | 2018-10-04 14:59:40 +0200 | [diff] [blame] | 18304 | }, |
| 18305 | |
| 18306 | { |
| 18307 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18308 | .name = "W25Q128.W", |
| 18309 | .bustype = BUS_SPI, |
| 18310 | .manufacture_id = WINBOND_NEX_ID, |
| 18311 | .model_id = WINBOND_NEX_W25Q128_W, |
| 18312 | .total_size = 16384, |
| 18313 | .page_size = 256, |
| 18314 | /* supports SFDP */ |
| 18315 | /* 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] | 18316 | /* QPI: only FW & JW..M versions */ |
| 18317 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QIO, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18318 | .tested = TEST_OK_PREW, |
| 18319 | .probe = probe_spi_rdid, |
| 18320 | .probe_timing = TIMING_ZERO, |
| 18321 | .block_erasers = |
| 18322 | { |
| 18323 | { |
| 18324 | .eraseblocks = { {4 * 1024, 4096} }, |
| 18325 | .block_erase = spi_block_erase_20, |
| 18326 | }, { |
| 18327 | .eraseblocks = { {32 * 1024, 512} }, |
| 18328 | .block_erase = spi_block_erase_52, |
| 18329 | }, { |
| 18330 | .eraseblocks = { {64 * 1024, 256} }, |
| 18331 | .block_erase = spi_block_erase_d8, |
| 18332 | }, { |
| 18333 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 18334 | .block_erase = spi_block_erase_60, |
| 18335 | }, { |
| 18336 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 18337 | .block_erase = spi_block_erase_c7, |
| 18338 | } |
| 18339 | }, |
| 18340 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18341 | .unlock = spi_disable_blockprotect, |
| 18342 | .write = spi_chip_write_256, |
| 18343 | .read = spi_chip_read, |
| 18344 | .voltage = {1650, 1950}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 18345 | .reg_bits = |
| 18346 | { |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 18347 | .qe = {STATUS2, 1, RW}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 18348 | .srp = {STATUS1, 7, RW}, |
| 18349 | .srl = {STATUS2, 0, RW}, |
| 18350 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 18351 | .tb = {STATUS1, 5, RW}, |
| 18352 | .sec = {STATUS1, 6, RW}, |
| 18353 | .cmp = {STATUS2, 6, RW}, |
| 18354 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 18355 | .wp_write_cfg = spi_wp_write_cfg, |
| 18356 | .wp_read_cfg = spi_wp_read_cfg, |
| 18357 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 18358 | .decode_range = decode_range_spi25, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 18359 | .prepare_access = spi_prepare_io, |
| 18360 | .finish_access = spi_finish_io, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18361 | }, |
| 18362 | |
| 18363 | { |
| 18364 | .vendor = "Winbond", |
Peichao Wang | 1a11949 | 2019-11-11 15:26:41 +0800 | [diff] [blame] | 18365 | .name = "W25Q128.JW.DTR", |
| 18366 | .bustype = BUS_SPI, |
| 18367 | .manufacture_id = WINBOND_NEX_ID, |
| 18368 | .model_id = WINBOND_NEX_W25Q128_DTR, |
| 18369 | .total_size = 16384, |
| 18370 | .page_size = 256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 18371 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QPI_SRP, |
| 18372 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
Peichao Wang | 1a11949 | 2019-11-11 15:26:41 +0800 | [diff] [blame] | 18373 | .tested = TEST_OK_PREW, |
| 18374 | .probe = probe_spi_rdid, |
| 18375 | .probe_timing = TIMING_ZERO, |
| 18376 | .block_erasers = |
| 18377 | { |
| 18378 | { |
| 18379 | .eraseblocks = { {4 * 1024, 4096} }, |
| 18380 | .block_erase = spi_block_erase_20, |
| 18381 | }, { |
| 18382 | .eraseblocks = { {32 * 1024, 512} }, |
| 18383 | .block_erase = spi_block_erase_52, |
| 18384 | }, { |
| 18385 | .eraseblocks = { {64 * 1024, 256} }, |
| 18386 | .block_erase = spi_block_erase_d8, |
| 18387 | }, { |
| 18388 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 18389 | .block_erase = spi_block_erase_60, |
| 18390 | }, { |
| 18391 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 18392 | .block_erase = spi_block_erase_c7, |
| 18393 | } |
| 18394 | }, |
| 18395 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18396 | .unlock = spi_disable_blockprotect, |
| 18397 | .write = spi_chip_write_256, |
| 18398 | .read = spi_chip_read, |
| 18399 | .voltage = {1650, 1950}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 18400 | .reg_bits = |
| 18401 | { |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 18402 | .qe = {STATUS2, 1, RW}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 18403 | .srp = {STATUS1, 7, RW}, |
| 18404 | .srl = {STATUS2, 0, RW}, |
| 18405 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 18406 | .tb = {STATUS1, 5, RW}, |
| 18407 | .sec = {STATUS1, 6, RW}, |
| 18408 | .cmp = {STATUS2, 6, RW}, |
| 18409 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 18410 | .wp_write_cfg = spi_wp_write_cfg, |
| 18411 | .wp_read_cfg = spi_wp_read_cfg, |
| 18412 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 18413 | .decode_range = decode_range_spi25, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 18414 | .prepare_access = spi_prepare_io, |
| 18415 | .finish_access = spi_finish_io, |
Peichao Wang | 1a11949 | 2019-11-11 15:26:41 +0800 | [diff] [blame] | 18416 | }, |
| 18417 | |
| 18418 | { |
| 18419 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18420 | .name = "W25Q16.V", |
| 18421 | .bustype = BUS_SPI, |
| 18422 | .manufacture_id = WINBOND_NEX_ID, |
| 18423 | .model_id = WINBOND_NEX_W25Q16_V, |
| 18424 | .total_size = 2048, |
| 18425 | .page_size = 256, |
| 18426 | /* supports SFDP */ |
| 18427 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 18428 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QIO, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18429 | .tested = TEST_OK_PREW, |
| 18430 | .probe = probe_spi_rdid, |
| 18431 | .probe_timing = TIMING_ZERO, |
| 18432 | .block_erasers = |
| 18433 | { |
| 18434 | { |
| 18435 | .eraseblocks = { {4 * 1024, 512} }, |
| 18436 | .block_erase = spi_block_erase_20, |
| 18437 | }, { |
| 18438 | .eraseblocks = { {32 * 1024, 64} }, |
| 18439 | .block_erase = spi_block_erase_52, |
| 18440 | }, { |
| 18441 | .eraseblocks = { {64 * 1024, 32} }, |
| 18442 | .block_erase = spi_block_erase_d8, |
| 18443 | }, { |
| 18444 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 18445 | .block_erase = spi_block_erase_60, |
| 18446 | }, { |
| 18447 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 18448 | .block_erase = spi_block_erase_c7, |
| 18449 | } |
| 18450 | }, |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 18451 | .reg_bits = |
| 18452 | { |
| 18453 | .qe = {STATUS2, 1, RW}, |
| 18454 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18455 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18456 | .unlock = spi_disable_blockprotect, |
| 18457 | .write = spi_chip_write_256, |
| 18458 | .read = spi_chip_read, |
| 18459 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 18460 | .prepare_access = spi_prepare_io, |
| 18461 | .finish_access = spi_finish_io, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18462 | }, |
| 18463 | |
| 18464 | { |
| 18465 | .vendor = "Winbond", |
| 18466 | .name = "W25Q16.W", |
| 18467 | .bustype = BUS_SPI, |
| 18468 | .manufacture_id = WINBOND_NEX_ID, |
| 18469 | .model_id = WINBOND_NEX_W25Q16_W, |
| 18470 | .total_size = 2048, |
| 18471 | .page_size = 256, |
| 18472 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 18473 | /* QPI: only FW & JW..M versions .qpi_read_params = { 2, 4, 6, 8 } */ |
| 18474 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QIO, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18475 | .tested = TEST_UNTESTED, |
| 18476 | .probe = probe_spi_rdid, |
| 18477 | .probe_timing = TIMING_ZERO, |
| 18478 | .block_erasers = |
| 18479 | { |
| 18480 | { |
| 18481 | .eraseblocks = { {4 * 1024, 512} }, |
| 18482 | .block_erase = spi_block_erase_20, |
| 18483 | }, { |
| 18484 | .eraseblocks = { {32 * 1024, 64} }, |
| 18485 | .block_erase = spi_block_erase_52, |
| 18486 | }, { |
| 18487 | .eraseblocks = { {64 * 1024, 32} }, |
| 18488 | .block_erase = spi_block_erase_d8, |
| 18489 | }, { |
| 18490 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 18491 | .block_erase = spi_block_erase_60, |
| 18492 | }, { |
| 18493 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 18494 | .block_erase = spi_block_erase_c7, |
| 18495 | } |
| 18496 | }, |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 18497 | .reg_bits = |
| 18498 | { |
| 18499 | .qe = {STATUS2, 1, RW}, |
| 18500 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18501 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18502 | .unlock = spi_disable_blockprotect, |
| 18503 | .write = spi_chip_write_256, |
| 18504 | .read = spi_chip_read, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 18505 | .voltage = {1700, 1950}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 18506 | .prepare_access = spi_prepare_io, |
| 18507 | .finish_access = spi_finish_io, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18508 | }, |
| 18509 | |
| 18510 | { |
| 18511 | .vendor = "Winbond", |
| 18512 | .name = "W25Q20.W", |
| 18513 | .bustype = BUS_SPI, |
| 18514 | .manufacture_id = WINBOND_NEX_ID, |
| 18515 | .model_id = WINBOND_NEX_W25Q20_W, |
| 18516 | .total_size = 256, |
| 18517 | .page_size = 256, |
| 18518 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 18519 | /* W25Q20EW: FEATURE_WRSR2 */ |
| 18520 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18521 | .tested = TEST_UNTESTED, |
| 18522 | .probe = probe_spi_rdid, |
| 18523 | .probe_timing = TIMING_ZERO, |
| 18524 | .block_erasers = |
| 18525 | { |
| 18526 | { |
| 18527 | .eraseblocks = { {4 * 1024, 64} }, |
| 18528 | .block_erase = spi_block_erase_20, |
| 18529 | }, { |
| 18530 | .eraseblocks = { {32 * 1024, 8} }, |
| 18531 | .block_erase = spi_block_erase_52, |
| 18532 | }, { |
| 18533 | .eraseblocks = { {64 * 1024, 4} }, |
| 18534 | .block_erase = spi_block_erase_d8, |
| 18535 | }, { |
| 18536 | .eraseblocks = { {256 * 1024, 1} }, |
| 18537 | .block_erase = spi_block_erase_60, |
| 18538 | }, { |
| 18539 | .eraseblocks = { {256 * 1024, 1} }, |
| 18540 | .block_erase = spi_block_erase_c7, |
| 18541 | } |
| 18542 | }, |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 18543 | .reg_bits = |
| 18544 | { |
| 18545 | .qe = {STATUS2, 1, RW}, |
| 18546 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18547 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18548 | .unlock = spi_disable_blockprotect, |
| 18549 | .write = spi_chip_write_256, |
| 18550 | .read = spi_chip_read, |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 18551 | .voltage = {1700, 1950}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 18552 | .prepare_access = spi_prepare_io, |
| 18553 | .finish_access = spi_finish_io, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18554 | }, |
| 18555 | |
| 18556 | { |
| 18557 | .vendor = "Winbond", |
Nico Huber | 5215eab | 2022-05-23 15:13:07 +0200 | [diff] [blame] | 18558 | .name = "W25Q256FV", |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 18559 | .bustype = BUS_SPI, |
| 18560 | .manufacture_id = WINBOND_NEX_ID, |
| 18561 | .model_id = WINBOND_NEX_W25Q256_V, |
| 18562 | .total_size = 32768, |
| 18563 | .page_size = 256, |
| 18564 | /* supports SFDP */ |
| 18565 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 18566 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | |
| 18567 | FEATURE_4BA_ENTER_WREN | FEATURE_4BA_EAR_C5C8 | |
| 18568 | FEATURE_4BA_READ | FEATURE_4BA_FAST_READ | |
| 18569 | FEATURE_QPI_SRP, |
| 18570 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
Angel Pons | 3130cbd | 2018-09-30 19:32:30 +0200 | [diff] [blame] | 18571 | .tested = TEST_OK_PREW, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 18572 | .probe = probe_spi_rdid, |
| 18573 | .probe_timing = TIMING_ZERO, |
| 18574 | .block_erasers = |
| 18575 | { |
| 18576 | { |
| 18577 | .eraseblocks = { {4 * 1024, 8192} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 18578 | .block_erase = spi_block_erase_20, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 18579 | }, { |
| 18580 | .eraseblocks = { {32 * 1024, 1024} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 18581 | .block_erase = spi_block_erase_52, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 18582 | }, { |
| 18583 | .eraseblocks = { {64 * 1024, 512} }, |
Nico Huber | 7a07722 | 2017-10-14 18:18:30 +0200 | [diff] [blame] | 18584 | .block_erase = spi_block_erase_d8, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 18585 | }, { |
| 18586 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 18587 | .block_erase = spi_block_erase_60, |
| 18588 | }, { |
| 18589 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 18590 | .block_erase = spi_block_erase_c7, |
| 18591 | } |
| 18592 | }, |
| 18593 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18594 | .unlock = spi_disable_blockprotect, |
| 18595 | .write = spi_chip_write_256, |
| 18596 | .read = spi_chip_read, |
| 18597 | .voltage = {2700, 3600}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 18598 | .reg_bits = |
| 18599 | { |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 18600 | .qe = {STATUS2, 1, RW}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 18601 | .srp = {STATUS1, 7, RW}, |
| 18602 | .srl = {STATUS2, 0, RW}, |
| 18603 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}}, |
| 18604 | .tb = {STATUS1, 6, RW}, |
| 18605 | .cmp = {STATUS2, 6, RW}, |
| 18606 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 18607 | .wp_write_cfg = spi_wp_write_cfg, |
| 18608 | .wp_read_cfg = spi_wp_read_cfg, |
| 18609 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 18610 | .decode_range = decode_range_spi25, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 18611 | .prepare_access = spi_prepare_io, |
| 18612 | .finish_access = spi_finish_io, |
Boris Baykov | aa6c374 | 2016-06-11 18:29:01 +0200 | [diff] [blame] | 18613 | }, |
| 18614 | |
| 18615 | { |
| 18616 | .vendor = "Winbond", |
Nico Huber | 5215eab | 2022-05-23 15:13:07 +0200 | [diff] [blame] | 18617 | .name = "W25Q256JV_Q", |
| 18618 | .bustype = BUS_SPI, |
| 18619 | .manufacture_id = WINBOND_NEX_ID, |
| 18620 | .model_id = WINBOND_NEX_W25Q256_V, |
| 18621 | .total_size = 32768, |
| 18622 | .page_size = 256, |
| 18623 | /* supports SFDP */ |
| 18624 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 18625 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_4BA | FEATURE_QIO, |
Nico Huber | ddfbbe8 | 2023-12-21 16:31:27 +0100 | [diff] [blame] | 18626 | .tested = TEST_OK_PREW, |
Nico Huber | 5215eab | 2022-05-23 15:13:07 +0200 | [diff] [blame] | 18627 | .probe = probe_spi_rdid, |
| 18628 | .probe_timing = TIMING_ZERO, |
| 18629 | .block_erasers = |
| 18630 | { |
| 18631 | { |
| 18632 | .eraseblocks = { {4 * 1024, 8192} }, |
| 18633 | .block_erase = spi_block_erase_21, |
| 18634 | }, { |
| 18635 | .eraseblocks = { {4 * 1024, 8192} }, |
| 18636 | .block_erase = spi_block_erase_20, |
| 18637 | }, { |
| 18638 | .eraseblocks = { {32 * 1024, 1024} }, |
| 18639 | .block_erase = spi_block_erase_52, |
| 18640 | }, { |
| 18641 | .eraseblocks = { {64 * 1024, 512} }, |
| 18642 | .block_erase = spi_block_erase_dc, |
| 18643 | }, { |
| 18644 | .eraseblocks = { {64 * 1024, 512} }, |
| 18645 | .block_erase = spi_block_erase_d8, |
| 18646 | }, { |
| 18647 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 18648 | .block_erase = spi_block_erase_60, |
| 18649 | }, { |
| 18650 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 18651 | .block_erase = spi_block_erase_c7, |
| 18652 | } |
| 18653 | }, |
| 18654 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18655 | .unlock = spi_disable_blockprotect, |
| 18656 | .write = spi_chip_write_256, |
| 18657 | .read = spi_chip_read, |
| 18658 | .voltage = {2700, 3600}, |
| 18659 | .reg_bits = |
| 18660 | { |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 18661 | .qe = {STATUS2, 1, RW}, |
Nico Huber | 5215eab | 2022-05-23 15:13:07 +0200 | [diff] [blame] | 18662 | .srp = {STATUS1, 7, RW}, |
| 18663 | .srl = {STATUS2, 0, RW}, |
| 18664 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}}, |
| 18665 | .tb = {STATUS1, 6, RW}, |
| 18666 | .cmp = {STATUS2, 6, RW}, |
| 18667 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 18668 | .wp_write_cfg = spi_wp_write_cfg, |
| 18669 | .wp_read_cfg = spi_wp_read_cfg, |
| 18670 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nico Huber | 5215eab | 2022-05-23 15:13:07 +0200 | [diff] [blame] | 18671 | .decode_range = decode_range_spi25, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 18672 | .prepare_access = spi_prepare_io, |
| 18673 | .finish_access = spi_finish_io, |
Nico Huber | 5215eab | 2022-05-23 15:13:07 +0200 | [diff] [blame] | 18674 | }, |
| 18675 | |
| 18676 | { |
| 18677 | .vendor = "Winbond", |
David Hendricks | 4987679 | 2018-10-27 20:19:42 +0000 | [diff] [blame] | 18678 | .name = "W25Q256JV_M", |
| 18679 | .bustype = BUS_SPI, |
| 18680 | .manufacture_id = WINBOND_NEX_ID, |
| 18681 | .model_id = WINBOND_NEX_W25Q256JV_M, |
| 18682 | .total_size = 32768, |
| 18683 | .page_size = 256, |
| 18684 | /* supports SFDP */ |
| 18685 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 18686 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | |
| 18687 | FEATURE_4BA | FEATURE_QPI_SRP, |
| 18688 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
David Hendricks | 4987679 | 2018-10-27 20:19:42 +0000 | [diff] [blame] | 18689 | .tested = TEST_OK_PREW, |
| 18690 | .probe = probe_spi_rdid, |
| 18691 | .probe_timing = TIMING_ZERO, |
| 18692 | .block_erasers = |
| 18693 | { |
| 18694 | { |
| 18695 | .eraseblocks = { {4 * 1024, 8192} }, |
| 18696 | .block_erase = spi_block_erase_21, |
| 18697 | }, { |
| 18698 | .eraseblocks = { {4 * 1024, 8192} }, |
| 18699 | .block_erase = spi_block_erase_20, |
| 18700 | }, { |
| 18701 | .eraseblocks = { {32 * 1024, 1024} }, |
| 18702 | .block_erase = spi_block_erase_52, |
| 18703 | }, { |
| 18704 | .eraseblocks = { {64 * 1024, 512} }, |
| 18705 | .block_erase = spi_block_erase_dc, |
| 18706 | }, { |
| 18707 | .eraseblocks = { {64 * 1024, 512} }, |
| 18708 | .block_erase = spi_block_erase_d8, |
| 18709 | }, { |
| 18710 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 18711 | .block_erase = spi_block_erase_60, |
| 18712 | }, { |
| 18713 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 18714 | .block_erase = spi_block_erase_c7, |
| 18715 | } |
| 18716 | }, |
| 18717 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18718 | .unlock = spi_disable_blockprotect, |
| 18719 | .write = spi_chip_write_256, |
| 18720 | .read = spi_chip_read, |
| 18721 | .voltage = {2700, 3600}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 18722 | .reg_bits = |
| 18723 | { |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 18724 | .qe = {STATUS2, 1, RW}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 18725 | .srp = {STATUS1, 7, RW}, |
| 18726 | .srl = {STATUS2, 0, RW}, |
| 18727 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}}, |
| 18728 | .tb = {STATUS1, 6, RW}, |
| 18729 | .cmp = {STATUS2, 6, RW}, |
| 18730 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 18731 | .wp_write_cfg = spi_wp_write_cfg, |
| 18732 | .wp_read_cfg = spi_wp_read_cfg, |
| 18733 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 18734 | .decode_range = decode_range_spi25, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 18735 | .prepare_access = spi_prepare_io, |
| 18736 | .finish_access = spi_finish_io, |
David Hendricks | 4987679 | 2018-10-27 20:19:42 +0000 | [diff] [blame] | 18737 | }, |
| 18738 | |
| 18739 | { |
| 18740 | .vendor = "Winbond", |
Patrick Rudolph | 8f5bd98 | 2020-08-26 09:15:53 +0200 | [diff] [blame] | 18741 | .name = "W25Q256JW", |
el-coderon | 0120985 | 2020-04-29 12:12:53 +0200 | [diff] [blame] | 18742 | .bustype = BUS_SPI, |
| 18743 | .manufacture_id = WINBOND_NEX_ID, |
| 18744 | .model_id = WINBOND_NEX_W25Q256_W, |
| 18745 | .total_size = 32768, |
| 18746 | .page_size = 256, |
| 18747 | /* supports SFDP */ |
| 18748 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 18749 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_WRSR3 | |
| 18750 | FEATURE_OTP | FEATURE_4BA | FEATURE_QIO, |
el-coderon | 0120985 | 2020-04-29 12:12:53 +0200 | [diff] [blame] | 18751 | .tested = TEST_OK_PREW, |
| 18752 | .probe = probe_spi_rdid, |
| 18753 | .probe_timing = TIMING_ZERO, |
| 18754 | .block_erasers = |
| 18755 | { |
| 18756 | { |
| 18757 | .eraseblocks = { {4 * 1024, 8192} }, |
Patrick Rudolph | 8f5bd98 | 2020-08-26 09:15:53 +0200 | [diff] [blame] | 18758 | .block_erase = spi_block_erase_21, |
| 18759 | }, { |
| 18760 | .eraseblocks = { {4 * 1024, 8192} }, |
el-coderon | 0120985 | 2020-04-29 12:12:53 +0200 | [diff] [blame] | 18761 | .block_erase = spi_block_erase_20, |
| 18762 | }, { |
| 18763 | .eraseblocks = { {32 * 1024, 1024} }, |
| 18764 | .block_erase = spi_block_erase_52, |
| 18765 | }, { |
| 18766 | .eraseblocks = { {64 * 1024, 512} }, |
Patrick Rudolph | 8f5bd98 | 2020-08-26 09:15:53 +0200 | [diff] [blame] | 18767 | .block_erase = spi_block_erase_dc, |
| 18768 | }, { |
| 18769 | .eraseblocks = { {64 * 1024, 512} }, |
el-coderon | 0120985 | 2020-04-29 12:12:53 +0200 | [diff] [blame] | 18770 | .block_erase = spi_block_erase_d8, |
| 18771 | }, { |
| 18772 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 18773 | .block_erase = spi_block_erase_60, |
| 18774 | }, { |
| 18775 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 18776 | .block_erase = spi_block_erase_c7, |
| 18777 | } |
| 18778 | }, |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 18779 | .reg_bits = |
| 18780 | { |
| 18781 | .qe = {STATUS2, 1, RW}, |
| 18782 | }, |
el-coderon | 0120985 | 2020-04-29 12:12:53 +0200 | [diff] [blame] | 18783 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18784 | .unlock = spi_disable_blockprotect, |
| 18785 | .write = spi_chip_write_256, |
| 18786 | .read = spi_chip_read, |
| 18787 | .voltage = {1650, 1950}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 18788 | .prepare_access = spi_prepare_io, |
| 18789 | .finish_access = spi_finish_io, |
el-coderon | 0120985 | 2020-04-29 12:12:53 +0200 | [diff] [blame] | 18790 | }, |
| 18791 | |
| 18792 | { |
| 18793 | .vendor = "Winbond", |
David Hendricks | 3153260 | 2020-08-16 17:14:56 -0700 | [diff] [blame] | 18794 | .name = "W25Q256JW_DTR", |
| 18795 | .bustype = BUS_SPI, |
| 18796 | .manufacture_id = WINBOND_NEX_ID, |
| 18797 | .model_id = WINBOND_NEX_W25Q256_DTR, |
| 18798 | .total_size = 32768, |
| 18799 | .page_size = 256, |
| 18800 | /* supports SFDP */ |
| 18801 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 18802 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_WRSR3 | |
| 18803 | FEATURE_OTP | FEATURE_4BA | FEATURE_QPI_SRP, |
| 18804 | .dummy_cycles = |
| 18805 | { |
| 18806 | .qpi_read_params = { |
| 18807 | 2, /* Datasheet Rev.K says 4 is the default, though. |
| 18808 | Will assume that the text is wrong, if not, |
| 18809 | we'll know why it doesn't work. */ |
| 18810 | 4, 6, 8 |
| 18811 | }, |
| 18812 | }, |
Kapil Porwal | 111c380 | 2022-12-09 19:41:27 +0530 | [diff] [blame] | 18813 | .tested = TEST_OK_PREWB, |
David Hendricks | 3153260 | 2020-08-16 17:14:56 -0700 | [diff] [blame] | 18814 | .probe = probe_spi_rdid, |
| 18815 | .probe_timing = TIMING_ZERO, |
| 18816 | .block_erasers = |
| 18817 | { |
| 18818 | { |
| 18819 | .eraseblocks = { {4 * 1024, 8192} }, |
| 18820 | .block_erase = spi_block_erase_21, |
| 18821 | }, { |
| 18822 | .eraseblocks = { {4 * 1024, 8192} }, |
| 18823 | .block_erase = spi_block_erase_20, |
| 18824 | }, { |
| 18825 | .eraseblocks = { {32 * 1024, 1024} }, |
| 18826 | .block_erase = spi_block_erase_52, |
| 18827 | }, { |
| 18828 | .eraseblocks = { {64 * 1024, 512} }, |
| 18829 | .block_erase = spi_block_erase_dc, |
| 18830 | }, { |
| 18831 | .eraseblocks = { {64 * 1024, 512} }, |
| 18832 | .block_erase = spi_block_erase_d8, |
| 18833 | }, { |
| 18834 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 18835 | .block_erase = spi_block_erase_60, |
| 18836 | }, { |
| 18837 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 18838 | .block_erase = spi_block_erase_c7, |
| 18839 | } |
| 18840 | }, |
| 18841 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18842 | .unlock = spi_disable_blockprotect, |
| 18843 | .write = spi_chip_write_256, |
| 18844 | .read = spi_chip_read, |
| 18845 | .voltage = {1700, 1950}, |
Kapil Porwal | 111c380 | 2022-12-09 19:41:27 +0530 | [diff] [blame] | 18846 | .reg_bits = |
| 18847 | { |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 18848 | .qe = {STATUS2, 1, RW}, |
Kapil Porwal | 111c380 | 2022-12-09 19:41:27 +0530 | [diff] [blame] | 18849 | .srp = {STATUS1, 7, RW}, |
| 18850 | .srl = {STATUS2, 0, RW}, |
| 18851 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}}, |
| 18852 | .tb = {STATUS1, 6, RW}, |
| 18853 | .cmp = {STATUS2, 6, RW}, |
| 18854 | .wps = {STATUS3, 2, RW}, |
| 18855 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 18856 | .wp_write_cfg = spi_wp_write_cfg, |
| 18857 | .wp_read_cfg = spi_wp_read_cfg, |
| 18858 | .wp_get_ranges = spi_wp_get_available_ranges, |
Kapil Porwal | 111c380 | 2022-12-09 19:41:27 +0530 | [diff] [blame] | 18859 | .decode_range = decode_range_spi25, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 18860 | .prepare_access = spi_prepare_io, |
| 18861 | .finish_access = spi_finish_io, |
David Hendricks | 3153260 | 2020-08-16 17:14:56 -0700 | [diff] [blame] | 18862 | }, |
| 18863 | |
| 18864 | { |
| 18865 | .vendor = "Winbond", |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18866 | .name = "W25Q32BV/W25Q32CV/W25Q32DV", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18867 | .bustype = BUS_SPI, |
| 18868 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18869 | .model_id = WINBOND_NEX_W25Q32_V, |
| 18870 | .total_size = 4096, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18871 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18872 | /* supports SFDP */ |
| 18873 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 18874 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18875 | .tested = TEST_OK_PREW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18876 | .probe = probe_spi_rdid, |
| 18877 | .probe_timing = TIMING_ZERO, |
| 18878 | .block_erasers = |
| 18879 | { |
| 18880 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18881 | .eraseblocks = { {4 * 1024, 1024} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18882 | .block_erase = spi_block_erase_20, |
| 18883 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18884 | .eraseblocks = { {32 * 1024, 128} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18885 | .block_erase = spi_block_erase_52, |
| 18886 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18887 | .eraseblocks = { {64 * 1024, 64} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18888 | .block_erase = spi_block_erase_d8, |
| 18889 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18890 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 18891 | .block_erase = spi_block_erase_60, |
| 18892 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18893 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18894 | .block_erase = spi_block_erase_c7, |
| 18895 | } |
| 18896 | }, |
| 18897 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18898 | .unlock = spi_disable_blockprotect, |
| 18899 | .write = spi_chip_write_256, |
| 18900 | .read = spi_chip_read, |
| 18901 | .voltage = {2700, 3600}, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18902 | .reg_bits = |
| 18903 | { |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 18904 | .qe = {STATUS2, 1, RW}, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18905 | .srp = {STATUS1, 7, RW}, |
| 18906 | .srl = {STATUS2, 0, RW}, |
| 18907 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 18908 | .tb = {STATUS1, 5, RW}, |
| 18909 | .sec = {STATUS1, 6, RW}, |
| 18910 | .cmp = {STATUS2, 6, RW}, |
| 18911 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 18912 | .wp_write_cfg = spi_wp_write_cfg, |
| 18913 | .wp_read_cfg = spi_wp_read_cfg, |
| 18914 | .wp_get_ranges = spi_wp_get_available_ranges, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18915 | .decode_range = decode_range_spi25, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 18916 | .prepare_access = spi_prepare_io, |
| 18917 | .finish_access = spi_finish_io, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 18918 | }, |
| 18919 | |
| 18920 | { |
| 18921 | .vendor = "Winbond", |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18922 | .name = "W25Q32FV", |
| 18923 | .bustype = BUS_SPI, |
| 18924 | .manufacture_id = WINBOND_NEX_ID, |
| 18925 | .model_id = WINBOND_NEX_W25Q32_V, |
| 18926 | .total_size = 4096, |
| 18927 | .page_size = 256, |
| 18928 | /* supports SFDP */ |
| 18929 | /* 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] | 18930 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP | |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18931 | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 18932 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18933 | .tested = TEST_OK_PREW, |
| 18934 | .probe = probe_spi_rdid, |
| 18935 | .probe_timing = TIMING_ZERO, |
| 18936 | .block_erasers = |
| 18937 | { |
| 18938 | { |
| 18939 | .eraseblocks = { {4 * 1024, 1024} }, |
| 18940 | .block_erase = spi_block_erase_20, |
| 18941 | }, { |
| 18942 | .eraseblocks = { {32 * 1024, 128} }, |
| 18943 | .block_erase = spi_block_erase_52, |
| 18944 | }, { |
| 18945 | .eraseblocks = { {64 * 1024, 64} }, |
| 18946 | .block_erase = spi_block_erase_d8, |
| 18947 | }, { |
| 18948 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18949 | .block_erase = spi_block_erase_60, |
| 18950 | }, { |
| 18951 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 18952 | .block_erase = spi_block_erase_c7, |
| 18953 | } |
| 18954 | }, |
| 18955 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 18956 | .unlock = spi_disable_blockprotect, |
| 18957 | .write = spi_chip_write_256, |
| 18958 | .read = spi_chip_read, |
| 18959 | .voltage = {2700, 3600}, |
| 18960 | .reg_bits = |
| 18961 | { |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 18962 | .qe = {STATUS2, 1, RW}, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18963 | .srp = {STATUS1, 7, RW}, |
| 18964 | .srl = {STATUS2, 0, RW}, |
| 18965 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 18966 | .tb = {STATUS1, 5, RW}, |
| 18967 | .sec = {STATUS1, 6, RW}, |
| 18968 | .cmp = {STATUS2, 6, RW}, |
| 18969 | .wps = {STATUS3, 2, RW}, |
| 18970 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 18971 | .wp_write_cfg = spi_wp_write_cfg, |
| 18972 | .wp_read_cfg = spi_wp_read_cfg, |
| 18973 | .wp_get_ranges = spi_wp_get_available_ranges, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18974 | .decode_range = decode_range_spi25, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 18975 | .prepare_access = spi_prepare_io, |
| 18976 | .finish_access = spi_finish_io, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18977 | }, |
| 18978 | |
| 18979 | { |
| 18980 | .vendor = "Winbond", |
| 18981 | .name = "W25Q32JV", |
| 18982 | .bustype = BUS_SPI, |
| 18983 | .manufacture_id = WINBOND_NEX_ID, |
| 18984 | .model_id = WINBOND_NEX_W25Q32_V, |
| 18985 | .total_size = 4096, |
| 18986 | .page_size = 256, |
| 18987 | /* supports SFDP */ |
| 18988 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 18989 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QIO | |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 18990 | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3, |
| 18991 | .tested = TEST_OK_PREW, |
| 18992 | .probe = probe_spi_rdid, |
| 18993 | .probe_timing = TIMING_ZERO, |
| 18994 | .block_erasers = |
| 18995 | { |
| 18996 | { |
| 18997 | .eraseblocks = { {4 * 1024, 1024} }, |
| 18998 | .block_erase = spi_block_erase_20, |
| 18999 | }, { |
| 19000 | .eraseblocks = { {32 * 1024, 128} }, |
| 19001 | .block_erase = spi_block_erase_52, |
| 19002 | }, { |
| 19003 | .eraseblocks = { {64 * 1024, 64} }, |
| 19004 | .block_erase = spi_block_erase_d8, |
| 19005 | }, { |
| 19006 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 19007 | .block_erase = spi_block_erase_60, |
| 19008 | }, { |
| 19009 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 19010 | .block_erase = spi_block_erase_c7, |
| 19011 | } |
| 19012 | }, |
| 19013 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19014 | .unlock = spi_disable_blockprotect, |
| 19015 | .write = spi_chip_write_256, |
| 19016 | .read = spi_chip_read, |
| 19017 | .voltage = {2700, 3600}, |
| 19018 | .reg_bits = |
| 19019 | { |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 19020 | .qe = {STATUS2, 1, RW}, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 19021 | .srp = {STATUS1, 7, RW}, |
| 19022 | .srl = {STATUS2, 0, RW}, |
| 19023 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 19024 | .tb = {STATUS1, 5, RW}, |
| 19025 | .sec = {STATUS1, 6, RW}, |
| 19026 | .cmp = {STATUS2, 6, RW}, |
| 19027 | .wps = {STATUS3, 2, RW}, |
| 19028 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 19029 | .wp_write_cfg = spi_wp_write_cfg, |
| 19030 | .wp_read_cfg = spi_wp_read_cfg, |
| 19031 | .wp_get_ranges = spi_wp_get_available_ranges, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 19032 | .decode_range = decode_range_spi25, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 19033 | .prepare_access = spi_prepare_io, |
| 19034 | .finish_access = spi_finish_io, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 19035 | }, |
| 19036 | |
| 19037 | { |
| 19038 | .vendor = "Winbond", |
Angel Pons | 0d4354e | 2024-05-26 16:33:51 +0200 | [diff] [blame] | 19039 | .name = "W25Q32JV-.M", |
| 19040 | .bustype = BUS_SPI, |
| 19041 | .manufacture_id = WINBOND_NEX_ID, |
| 19042 | .model_id = WINBOND_NEX_W25Q32JV, |
| 19043 | .total_size = 4096, |
| 19044 | .page_size = 256, |
| 19045 | /* supports SFDP */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 19046 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP | |
Angel Pons | 0d4354e | 2024-05-26 16:33:51 +0200 | [diff] [blame] | 19047 | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 19048 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
Angel Pons | 0d4354e | 2024-05-26 16:33:51 +0200 | [diff] [blame] | 19049 | .tested = TEST_OK_PREW, |
| 19050 | .probe = probe_spi_rdid, |
| 19051 | .probe_timing = TIMING_ZERO, |
| 19052 | .block_erasers = |
| 19053 | { |
| 19054 | { |
| 19055 | .eraseblocks = { {4 * 1024, 1024} }, |
| 19056 | .block_erase = spi_block_erase_20, |
| 19057 | }, { |
| 19058 | .eraseblocks = { {32 * 1024, 128} }, |
| 19059 | .block_erase = spi_block_erase_52, |
| 19060 | }, { |
| 19061 | .eraseblocks = { {64 * 1024, 64} }, |
| 19062 | .block_erase = spi_block_erase_d8, |
| 19063 | }, { |
| 19064 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 19065 | .block_erase = spi_block_erase_60, |
| 19066 | }, { |
| 19067 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 19068 | .block_erase = spi_block_erase_c7, |
| 19069 | } |
| 19070 | }, |
| 19071 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 19072 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 19073 | .write = spi_chip_write_256, |
| 19074 | .read = spi_chip_read, |
| 19075 | .voltage = {2700, 3600}, |
| 19076 | .reg_bits = |
| 19077 | { |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 19078 | .qe = {STATUS2, 1, RW}, |
Angel Pons | 0d4354e | 2024-05-26 16:33:51 +0200 | [diff] [blame] | 19079 | .srp = {STATUS1, 7, RW}, |
| 19080 | .srl = {STATUS2, 0, RW}, |
| 19081 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 19082 | .tb = {STATUS1, 5, RW}, |
| 19083 | .sec = {STATUS1, 6, RW}, |
| 19084 | .cmp = {STATUS2, 6, RW}, |
| 19085 | .wps = {STATUS3, 2, RW}, |
| 19086 | }, |
| 19087 | .wp_write_cfg = spi_wp_write_cfg, |
| 19088 | .wp_read_cfg = spi_wp_read_cfg, |
| 19089 | .wp_get_ranges = spi_wp_get_available_ranges, |
| 19090 | .decode_range = decode_range_spi25, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 19091 | .prepare_access = spi_prepare_io, |
| 19092 | .finish_access = spi_finish_io, |
Angel Pons | 0d4354e | 2024-05-26 16:33:51 +0200 | [diff] [blame] | 19093 | }, |
| 19094 | |
| 19095 | { |
| 19096 | .vendor = "Winbond", |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 19097 | .name = "W25Q32BW/W25Q32CW/W25Q32DW", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19098 | .bustype = BUS_SPI, |
| 19099 | .manufacture_id = WINBOND_NEX_ID, |
| 19100 | .model_id = WINBOND_NEX_W25Q32_W, |
| 19101 | .total_size = 4096, |
| 19102 | .page_size = 256, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 19103 | /* OTP: 1024B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 19104 | /* QPI: only DW version */ |
| 19105 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19106 | .tested = TEST_OK_PREW, |
| 19107 | .probe = probe_spi_rdid, |
| 19108 | .probe_timing = TIMING_ZERO, |
| 19109 | .block_erasers = |
| 19110 | { |
| 19111 | { |
| 19112 | .eraseblocks = { {4 * 1024, 1024} }, |
| 19113 | .block_erase = spi_block_erase_20, |
| 19114 | }, { |
| 19115 | .eraseblocks = { {32 * 1024, 128} }, |
| 19116 | .block_erase = spi_block_erase_52, |
| 19117 | }, { |
| 19118 | .eraseblocks = { {64 * 1024, 64} }, |
| 19119 | .block_erase = spi_block_erase_d8, |
| 19120 | }, { |
| 19121 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 19122 | .block_erase = spi_block_erase_60, |
| 19123 | }, { |
| 19124 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 19125 | .block_erase = spi_block_erase_c7, |
| 19126 | } |
| 19127 | }, |
| 19128 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19129 | .unlock = spi_disable_blockprotect, |
| 19130 | .write = spi_chip_write_256, |
| 19131 | .read = spi_chip_read, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 19132 | .voltage = {1700, 1950}, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 19133 | .reg_bits = |
| 19134 | { |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 19135 | .qe = {STATUS2, 1, RW}, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 19136 | .srp = {STATUS1, 7, RW}, |
| 19137 | .srl = {STATUS2, 0, RW}, |
| 19138 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 19139 | .tb = {STATUS1, 5, RW}, |
| 19140 | .sec = {STATUS1, 6, RW}, |
| 19141 | .cmp = {STATUS2, 6, RW}, |
| 19142 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 19143 | .wp_write_cfg = spi_wp_write_cfg, |
| 19144 | .wp_read_cfg = spi_wp_read_cfg, |
| 19145 | .wp_get_ranges = spi_wp_get_available_ranges, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 19146 | .decode_range = decode_range_spi25, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 19147 | .prepare_access = spi_prepare_io, |
| 19148 | .finish_access = spi_finish_io, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 19149 | }, |
| 19150 | |
| 19151 | { |
| 19152 | .vendor = "Winbond", |
| 19153 | .name = "W25Q32FW", |
| 19154 | .bustype = BUS_SPI, |
| 19155 | .manufacture_id = WINBOND_NEX_ID, |
| 19156 | .model_id = WINBOND_NEX_W25Q32_W, |
| 19157 | .total_size = 4096, |
| 19158 | .page_size = 256, |
| 19159 | /* OTP: 768B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 19160 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP | |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 19161 | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 19162 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 19163 | .tested = TEST_OK_PREW, |
| 19164 | .probe = probe_spi_rdid, |
| 19165 | .probe_timing = TIMING_ZERO, |
| 19166 | .block_erasers = |
| 19167 | { |
| 19168 | { |
| 19169 | .eraseblocks = { {4 * 1024, 1024} }, |
| 19170 | .block_erase = spi_block_erase_20, |
| 19171 | }, { |
| 19172 | .eraseblocks = { {32 * 1024, 128} }, |
| 19173 | .block_erase = spi_block_erase_52, |
| 19174 | }, { |
| 19175 | .eraseblocks = { {64 * 1024, 64} }, |
| 19176 | .block_erase = spi_block_erase_d8, |
| 19177 | }, { |
| 19178 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 19179 | .block_erase = spi_block_erase_60, |
| 19180 | }, { |
| 19181 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 19182 | .block_erase = spi_block_erase_c7, |
| 19183 | } |
| 19184 | }, |
| 19185 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19186 | .unlock = spi_disable_blockprotect, |
| 19187 | .write = spi_chip_write_256, |
| 19188 | .read = spi_chip_read, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 19189 | .voltage = {1700, 1950}, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 19190 | .reg_bits = |
| 19191 | { |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 19192 | .qe = {STATUS2, 1, RW}, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 19193 | .srp = {STATUS1, 7, RW}, |
| 19194 | .srl = {STATUS2, 0, RW}, |
| 19195 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 19196 | .tb = {STATUS1, 5, RW}, |
| 19197 | .sec = {STATUS1, 6, RW}, |
| 19198 | .cmp = {STATUS2, 6, RW}, |
| 19199 | .wps = {STATUS3, 2, RW}, |
| 19200 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 19201 | .wp_write_cfg = spi_wp_write_cfg, |
| 19202 | .wp_read_cfg = spi_wp_read_cfg, |
| 19203 | .wp_get_ranges = spi_wp_get_available_ranges, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 19204 | .decode_range = decode_range_spi25, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 19205 | .prepare_access = spi_prepare_io, |
| 19206 | .finish_access = spi_finish_io, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 19207 | }, |
| 19208 | |
| 19209 | { |
| 19210 | .vendor = "Winbond", |
| 19211 | .name = "W25Q32JW...Q", |
| 19212 | .bustype = BUS_SPI, |
| 19213 | .manufacture_id = WINBOND_NEX_ID, |
| 19214 | .model_id = WINBOND_NEX_W25Q32_W, |
| 19215 | .total_size = 4096, |
| 19216 | .page_size = 256, |
| 19217 | /* OTP: 768B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 19218 | /* QPI enable 0x38, disable 0xFF */ |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 19219 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QIO | |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 19220 | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3, |
| 19221 | .tested = TEST_OK_PREW, |
| 19222 | .probe = probe_spi_rdid, |
| 19223 | .probe_timing = TIMING_ZERO, |
| 19224 | .block_erasers = |
| 19225 | { |
| 19226 | { |
| 19227 | .eraseblocks = { {4 * 1024, 1024} }, |
| 19228 | .block_erase = spi_block_erase_20, |
| 19229 | }, { |
| 19230 | .eraseblocks = { {32 * 1024, 128} }, |
| 19231 | .block_erase = spi_block_erase_52, |
| 19232 | }, { |
| 19233 | .eraseblocks = { {64 * 1024, 64} }, |
| 19234 | .block_erase = spi_block_erase_d8, |
| 19235 | }, { |
| 19236 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 19237 | .block_erase = spi_block_erase_60, |
| 19238 | }, { |
| 19239 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 19240 | .block_erase = spi_block_erase_c7, |
| 19241 | } |
| 19242 | }, |
| 19243 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19244 | .unlock = spi_disable_blockprotect, |
| 19245 | .write = spi_chip_write_256, |
| 19246 | .read = spi_chip_read, |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 19247 | .voltage = {1700, 1950}, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 19248 | .reg_bits = |
| 19249 | { |
| 19250 | .srp = {STATUS1, 7, RW}, |
| 19251 | .srl = {STATUS2, 0, RW}, |
| 19252 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 19253 | .tb = {STATUS1, 5, RW}, |
| 19254 | .sec = {STATUS1, 6, RW}, |
| 19255 | .cmp = {STATUS2, 6, RW}, |
| 19256 | .wps = {STATUS3, 2, RW}, |
| 19257 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 19258 | .wp_write_cfg = spi_wp_write_cfg, |
| 19259 | .wp_read_cfg = spi_wp_read_cfg, |
| 19260 | .wp_get_ranges = spi_wp_get_available_ranges, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 19261 | .decode_range = decode_range_spi25, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 19262 | .prepare_access = spi_prepare_io, |
| 19263 | .finish_access = spi_finish_io, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 19264 | }, |
| 19265 | |
| 19266 | { |
| 19267 | .vendor = "Winbond", |
Nikolai Artemiev | 6ae79b1 | 2021-05-08 17:31:23 +1000 | [diff] [blame] | 19268 | .name = "W25Q32JW...M", |
| 19269 | .bustype = BUS_SPI, |
| 19270 | .manufacture_id = WINBOND_NEX_ID, |
| 19271 | .model_id = WINBOND_NEX_W25Q32JW_M, |
| 19272 | .total_size = 4096, |
| 19273 | .page_size = 256, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 19274 | /* OTP: 768B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 19275 | /* QPI enable 0x38, disable 0xFF */ |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 19276 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI_SRP | |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 19277 | FEATURE_WRSR2 | FEATURE_WRSR3 | FEATURE_WRSR_EXT2, |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 19278 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
Nikolai Artemiev | 6ae79b1 | 2021-05-08 17:31:23 +1000 | [diff] [blame] | 19279 | .tested = TEST_OK_PREW, |
| 19280 | .probe = probe_spi_rdid, |
| 19281 | .probe_timing = TIMING_ZERO, |
| 19282 | .block_erasers = |
| 19283 | { |
| 19284 | { |
| 19285 | .eraseblocks = { {4 * 1024, 1024} }, |
| 19286 | .block_erase = spi_block_erase_20, |
| 19287 | }, { |
| 19288 | .eraseblocks = { {32 * 1024, 128} }, |
| 19289 | .block_erase = spi_block_erase_52, |
| 19290 | }, { |
| 19291 | .eraseblocks = { {64 * 1024, 64} }, |
| 19292 | .block_erase = spi_block_erase_d8, |
| 19293 | }, { |
| 19294 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 19295 | .block_erase = spi_block_erase_60, |
| 19296 | }, { |
| 19297 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 19298 | .block_erase = spi_block_erase_c7, |
| 19299 | } |
| 19300 | }, |
| 19301 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 19302 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 19303 | .write = spi_chip_write_256, |
| 19304 | .read = spi_chip_read, |
| 19305 | .voltage = {1700, 1950}, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 19306 | .reg_bits = |
| 19307 | { |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 19308 | .qe = {STATUS2, 1, RW}, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 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 | .wps = {STATUS3, 2, RW}, |
| 19316 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 19317 | .wp_write_cfg = spi_wp_write_cfg, |
| 19318 | .wp_read_cfg = spi_wp_read_cfg, |
| 19319 | .wp_get_ranges = spi_wp_get_available_ranges, |
Sergii Dmytruk | b1fb3f7 | 2022-07-25 00:27:37 +0300 | [diff] [blame] | 19320 | .decode_range = decode_range_spi25, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 19321 | .prepare_access = spi_prepare_io, |
| 19322 | .finish_access = spi_finish_io, |
Nikolai Artemiev | 6ae79b1 | 2021-05-08 17:31:23 +1000 | [diff] [blame] | 19323 | }, |
| 19324 | |
| 19325 | { |
| 19326 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19327 | .name = "W25Q40.V", |
| 19328 | .bustype = BUS_SPI, |
| 19329 | .manufacture_id = WINBOND_NEX_ID, |
| 19330 | .model_id = WINBOND_NEX_W25Q40_V, |
| 19331 | .total_size = 512, |
| 19332 | .page_size = 256, |
| 19333 | /* supports SFDP */ |
| 19334 | /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 19335 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19336 | .tested = TEST_OK_PREW, |
| 19337 | .probe = probe_spi_rdid, |
| 19338 | .probe_timing = TIMING_ZERO, |
| 19339 | .block_erasers = |
| 19340 | { |
| 19341 | { |
| 19342 | .eraseblocks = { {4 * 1024, 128} }, |
| 19343 | .block_erase = spi_block_erase_20, |
| 19344 | }, { |
| 19345 | .eraseblocks = { {32 * 1024, 16} }, |
| 19346 | .block_erase = spi_block_erase_52, |
| 19347 | }, { |
| 19348 | .eraseblocks = { {64 * 1024, 8} }, |
| 19349 | .block_erase = spi_block_erase_d8, |
| 19350 | }, { |
| 19351 | .eraseblocks = { {512 * 1024, 1} }, |
| 19352 | .block_erase = spi_block_erase_60, |
| 19353 | }, { |
| 19354 | .eraseblocks = { {512 * 1024, 1} }, |
| 19355 | .block_erase = spi_block_erase_c7, |
| 19356 | } |
| 19357 | }, |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 19358 | .reg_bits = |
| 19359 | { |
| 19360 | .qe = {STATUS2, 1, RW}, |
| 19361 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19362 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19363 | .unlock = spi_disable_blockprotect, |
| 19364 | .write = spi_chip_write_256, /* Multi I/O supported */ |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 19365 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19366 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 19367 | .prepare_access = spi_prepare_io, |
| 19368 | .finish_access = spi_finish_io, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19369 | }, |
| 19370 | |
| 19371 | { |
| 19372 | .vendor = "Winbond", |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 19373 | .name = "W25Q40BW", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 19374 | .bustype = BUS_SPI, |
| 19375 | .manufacture_id = WINBOND_NEX_ID, |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 19376 | .model_id = WINBOND_NEX_W25Q40BW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 19377 | .total_size = 512, |
| 19378 | .page_size = 256, |
| 19379 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 19380 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO, |
Angel Pons | 3164a0c | 2018-09-30 20:26:06 +0200 | [diff] [blame] | 19381 | .tested = TEST_OK_PREW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 19382 | .probe = probe_spi_rdid, |
| 19383 | .probe_timing = TIMING_ZERO, |
| 19384 | .block_erasers = |
| 19385 | { |
| 19386 | { |
| 19387 | .eraseblocks = { {4 * 1024, 128} }, |
| 19388 | .block_erase = spi_block_erase_20, |
| 19389 | }, { |
| 19390 | .eraseblocks = { {32 * 1024, 16} }, |
| 19391 | .block_erase = spi_block_erase_52, |
| 19392 | }, { |
| 19393 | .eraseblocks = { {64 * 1024, 8} }, |
| 19394 | .block_erase = spi_block_erase_d8, |
| 19395 | }, { |
| 19396 | .eraseblocks = { {512 * 1024, 1} }, |
| 19397 | .block_erase = spi_block_erase_60, |
| 19398 | }, { |
| 19399 | .eraseblocks = { {512 * 1024, 1} }, |
| 19400 | .block_erase = spi_block_erase_c7, |
| 19401 | } |
| 19402 | }, |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 19403 | .reg_bits = |
| 19404 | { |
| 19405 | .qe = {STATUS2, 1, RW}, |
| 19406 | }, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 19407 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19408 | .unlock = spi_disable_blockprotect, |
| 19409 | .write = spi_chip_write_256, |
| 19410 | .read = spi_chip_read, |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 19411 | .voltage = {1700, 1950}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 19412 | .prepare_access = spi_prepare_io, |
| 19413 | .finish_access = spi_finish_io, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 19414 | }, |
| 19415 | |
| 19416 | { |
| 19417 | .vendor = "Winbond", |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 19418 | .name = "W25Q40EW", |
| 19419 | .bustype = BUS_SPI, |
| 19420 | .manufacture_id = WINBOND_NEX_ID, |
| 19421 | .model_id = WINBOND_NEX_W25Q40EW, |
| 19422 | .total_size = 512, |
| 19423 | .page_size = 256, |
| 19424 | /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 19425 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | |
| 19426 | FEATURE_OTP | FEATURE_QPI_SRP, |
| 19427 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
Alan Green | 07b8a17 | 2019-09-23 16:47:05 +1000 | [diff] [blame] | 19428 | .tested = TEST_OK_PREW, |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 19429 | .probe = probe_spi_rdid, |
| 19430 | .probe_timing = TIMING_ZERO, |
| 19431 | .block_erasers = |
| 19432 | { |
| 19433 | { |
| 19434 | .eraseblocks = { {4 * 1024, 128} }, |
| 19435 | .block_erase = spi_block_erase_20, |
| 19436 | }, { |
| 19437 | .eraseblocks = { {32 * 1024, 16} }, |
| 19438 | .block_erase = spi_block_erase_52, |
| 19439 | }, { |
| 19440 | .eraseblocks = { {64 * 1024, 8} }, |
| 19441 | .block_erase = spi_block_erase_d8, |
| 19442 | }, { |
| 19443 | .eraseblocks = { {512 * 1024, 1} }, |
| 19444 | .block_erase = spi_block_erase_60, |
| 19445 | }, { |
| 19446 | .eraseblocks = { {512 * 1024, 1} }, |
| 19447 | .block_erase = spi_block_erase_c7, |
| 19448 | } |
| 19449 | }, |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 19450 | .reg_bits = |
| 19451 | { |
| 19452 | .qe = {STATUS2, 1, RW}, |
| 19453 | }, |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 19454 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19455 | .unlock = spi_disable_blockprotect, |
| 19456 | .write = spi_chip_write_256, |
| 19457 | .read = spi_chip_read, |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 19458 | .voltage = {1650, 1950}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 19459 | .prepare_access = spi_prepare_io, |
| 19460 | .finish_access = spi_finish_io, |
Nico Huber | 2568357 | 2018-03-30 13:50:13 +0200 | [diff] [blame] | 19461 | }, |
| 19462 | |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 19463 | { |
| 19464 | .vendor = "Winbond", |
Joel Stanley | 5543961 | 2019-07-27 19:25:35 +0930 | [diff] [blame] | 19465 | .name = "W25Q512JV", |
| 19466 | .bustype = BUS_SPI, |
| 19467 | .manufacture_id = WINBOND_NEX_ID, |
| 19468 | .model_id = WINBOND_NEX_W25Q512JV, |
| 19469 | .total_size = 64 * 1024, |
| 19470 | .page_size = 256, |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 19471 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3 | |
| 19472 | FEATURE_OTP | FEATURE_4BA | FEATURE_QIO, |
Joel Stanley | 5543961 | 2019-07-27 19:25:35 +0930 | [diff] [blame] | 19473 | .tested = TEST_OK_PREW, |
| 19474 | .probe = probe_spi_rdid, |
| 19475 | .probe_timing = TIMING_ZERO, |
| 19476 | .block_erasers = |
| 19477 | { |
| 19478 | { |
| 19479 | .eraseblocks = { {4 * 1024, 16384} }, |
| 19480 | .block_erase = spi_block_erase_21, |
| 19481 | }, { |
| 19482 | .eraseblocks = { {4 * 1024, 16384} }, |
| 19483 | .block_erase = spi_block_erase_20, |
| 19484 | }, { |
| 19485 | .eraseblocks = { {32 * 1024, 2048} }, |
| 19486 | .block_erase = spi_block_erase_52, |
| 19487 | }, { |
| 19488 | .eraseblocks = { {64 * 1024, 1024} }, |
| 19489 | .block_erase = spi_block_erase_dc, |
| 19490 | }, { |
| 19491 | .eraseblocks = { {64 * 1024, 1024} }, |
| 19492 | .block_erase = spi_block_erase_d8, |
| 19493 | }, { |
| 19494 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 19495 | .block_erase = spi_block_erase_60, |
| 19496 | }, { |
| 19497 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 19498 | .block_erase = spi_block_erase_c7, |
| 19499 | } |
| 19500 | }, |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 19501 | .reg_bits = |
| 19502 | { |
| 19503 | .qe = {STATUS2, 1, RW}, |
| 19504 | }, |
Joel Stanley | 5543961 | 2019-07-27 19:25:35 +0930 | [diff] [blame] | 19505 | .printlock = spi_prettyprint_status_register_plain, |
| 19506 | .unlock = spi_disable_blockprotect, |
| 19507 | .write = spi_chip_write_256, |
| 19508 | .read = spi_chip_read, |
| 19509 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 19510 | .prepare_access = spi_prepare_io, |
| 19511 | .finish_access = spi_finish_io, |
Joel Stanley | 5543961 | 2019-07-27 19:25:35 +0930 | [diff] [blame] | 19512 | }, |
| 19513 | |
| 19514 | { |
Felix Singer | 3c9bdb9 | 2022-12-15 23:30:16 +0100 | [diff] [blame] | 19515 | .vendor = "Winbond", |
| 19516 | .name = "W25Q512NW-IM", |
| 19517 | .bustype = BUS_SPI, |
| 19518 | .manufacture_id = WINBOND_NEX_ID, |
| 19519 | .model_id = WINBOND_NEX_W25Q512NW_IM, |
| 19520 | .total_size = 64 * 1024, |
| 19521 | .page_size = 256, |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 19522 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_WRSR3 | |
| 19523 | FEATURE_OTP | FEATURE_4BA | FEATURE_QPI_SRP, |
| 19524 | .dummy_cycles = |
| 19525 | { |
| 19526 | /* Actually has 3 parameter bits, but higher values only help with DTR. */ |
| 19527 | .qpi_read_params = { 2, 4, 6, 8 }, |
| 19528 | }, |
Subrata Banik | f5bffd9 | 2022-12-14 12:30:43 +0530 | [diff] [blame] | 19529 | .tested = TEST_OK_PREWB, |
Felix Singer | 3c9bdb9 | 2022-12-15 23:30:16 +0100 | [diff] [blame] | 19530 | .probe = probe_spi_rdid, |
| 19531 | .probe_timing = TIMING_ZERO, |
| 19532 | .block_erasers = |
Atul Dhudase | 2502dbd | 2021-09-21 10:02:20 +0530 | [diff] [blame] | 19533 | { |
Felix Singer | 3c9bdb9 | 2022-12-15 23:30:16 +0100 | [diff] [blame] | 19534 | { |
| 19535 | .eraseblocks = { {4 * 1024, 16384} }, |
| 19536 | .block_erase = spi_block_erase_21, |
| 19537 | }, { |
| 19538 | .eraseblocks = { {4 * 1024, 16384} }, |
| 19539 | .block_erase = spi_block_erase_20, |
| 19540 | }, { |
| 19541 | .eraseblocks = { {32 * 1024, 2048} }, |
| 19542 | .block_erase = spi_block_erase_52, |
| 19543 | }, { |
| 19544 | .eraseblocks = { {64 * 1024, 1024} }, |
| 19545 | .block_erase = spi_block_erase_dc, |
| 19546 | }, { |
| 19547 | .eraseblocks = { {64 * 1024, 1024} }, |
| 19548 | .block_erase = spi_block_erase_d8, |
| 19549 | }, { |
| 19550 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 19551 | .block_erase = spi_block_erase_60, |
| 19552 | }, { |
| 19553 | .eraseblocks = { {64 * 1024 * 1024, 1} }, |
| 19554 | .block_erase = spi_block_erase_c7, |
| 19555 | } |
| 19556 | }, |
| 19557 | .unlock = spi_disable_blockprotect, |
| 19558 | .write = spi_chip_write_256, |
| 19559 | .read = spi_chip_read, |
| 19560 | .voltage = {1650, 1950}, |
Subrata Banik | f5bffd9 | 2022-12-14 12:30:43 +0530 | [diff] [blame] | 19561 | .reg_bits = |
| 19562 | { |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 19563 | .qe = {STATUS2, 1, RW}, |
Subrata Banik | f5bffd9 | 2022-12-14 12:30:43 +0530 | [diff] [blame] | 19564 | .srp = {STATUS1, 7, RW}, |
| 19565 | .srl = {STATUS2, 0, RW}, |
| 19566 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}}, |
| 19567 | .tb = {STATUS1, 6, RW}, |
| 19568 | .cmp = {STATUS2, 6, RW}, |
| 19569 | .wps = {STATUS3, 2, RW}, |
| 19570 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 19571 | .wp_write_cfg = spi_wp_write_cfg, |
| 19572 | .wp_read_cfg = spi_wp_read_cfg, |
| 19573 | .wp_get_ranges = spi_wp_get_available_ranges, |
Subrata Banik | f5bffd9 | 2022-12-14 12:30:43 +0530 | [diff] [blame] | 19574 | .decode_range = decode_range_spi25, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 19575 | .prepare_access = spi_prepare_io, |
| 19576 | .finish_access = spi_finish_io, |
Atul Dhudase | 2502dbd | 2021-09-21 10:02:20 +0530 | [diff] [blame] | 19577 | }, |
| 19578 | |
| 19579 | { |
Joel Stanley | 5543961 | 2019-07-27 19:25:35 +0930 | [diff] [blame] | 19580 | .vendor = "Winbond", |
Sergii Dmytruk | d1af307 | 2021-11-08 00:00:43 +0200 | [diff] [blame] | 19581 | .name = "W25Q64BV/W25Q64CV/W25Q64FV", |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 19582 | .bustype = BUS_SPI, |
| 19583 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19584 | .model_id = WINBOND_NEX_W25Q64_V, |
| 19585 | .total_size = 8192, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 19586 | .page_size = 256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19587 | /* supports SFDP */ |
| 19588 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 19589 | /* QPI: only FV version */ |
| 19590 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO, |
Sergii Dmytruk | c74eac2 | 2022-10-06 18:17:58 +0300 | [diff] [blame] | 19591 | .tested = TEST_OK_PREWB, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 19592 | .probe = probe_spi_rdid, |
| 19593 | .probe_timing = TIMING_ZERO, |
| 19594 | .block_erasers = |
| 19595 | { |
| 19596 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19597 | .eraseblocks = { {4 * 1024, 2048} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 19598 | .block_erase = spi_block_erase_20, |
| 19599 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19600 | .eraseblocks = { {32 * 1024, 256} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 19601 | .block_erase = spi_block_erase_52, |
| 19602 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19603 | .eraseblocks = { {64 * 1024, 128} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 19604 | .block_erase = spi_block_erase_d8, |
| 19605 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19606 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 19607 | .block_erase = spi_block_erase_60, |
| 19608 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19609 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Stanislav Sedov | f577544 | 2018-03-07 14:16:51 -0800 | [diff] [blame] | 19610 | .block_erase = spi_block_erase_c7, |
| 19611 | } |
| 19612 | }, |
| 19613 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19614 | .unlock = spi_disable_blockprotect, |
| 19615 | .write = spi_chip_write_256, |
| 19616 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19617 | .voltage = {2700, 3600}, |
Sergii Dmytruk | d1af307 | 2021-11-08 00:00:43 +0200 | [diff] [blame] | 19618 | .reg_bits = |
| 19619 | { |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 19620 | .qe = {STATUS2, 1, RW}, |
Sergii Dmytruk | d1af307 | 2021-11-08 00:00:43 +0200 | [diff] [blame] | 19621 | .srp = {STATUS1, 7, RW}, |
| 19622 | .srl = {STATUS2, 0, RW}, |
| 19623 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 19624 | .tb = {STATUS1, 5, RW}, |
| 19625 | .sec = {STATUS1, 6, RW}, |
| 19626 | .cmp = {STATUS2, 6, RW}, |
| 19627 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 19628 | .wp_write_cfg = spi_wp_write_cfg, |
| 19629 | .wp_read_cfg = spi_wp_read_cfg, |
| 19630 | .wp_get_ranges = spi_wp_get_available_ranges, |
Sergii Dmytruk | d1af307 | 2021-11-08 00:00:43 +0200 | [diff] [blame] | 19631 | .decode_range = decode_range_spi25, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 19632 | .prepare_access = spi_prepare_io, |
| 19633 | .finish_access = spi_finish_io, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 19634 | }, |
| 19635 | |
| 19636 | { |
| 19637 | .vendor = "Winbond", |
Sergii Dmytruk | d1af307 | 2021-11-08 00:00:43 +0200 | [diff] [blame] | 19638 | .name = "W25Q64JV-.Q", |
| 19639 | .bustype = BUS_SPI, |
| 19640 | .manufacture_id = WINBOND_NEX_ID, |
| 19641 | .model_id = WINBOND_NEX_W25Q64_V, |
| 19642 | .total_size = 8192, |
| 19643 | .page_size = 256, |
| 19644 | /* supports SFDP */ |
| 19645 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 19646 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QIO | |
Nico Huber | 3f3c1f3 | 2022-05-28 16:48:26 +0200 | [diff] [blame] | 19647 | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3, |
Sergii Dmytruk | d1af307 | 2021-11-08 00:00:43 +0200 | [diff] [blame] | 19648 | .tested = TEST_OK_PREW, |
| 19649 | .probe = probe_spi_rdid, |
| 19650 | .probe_timing = TIMING_ZERO, |
| 19651 | .block_erasers = |
| 19652 | { |
| 19653 | { |
| 19654 | .eraseblocks = { {4 * 1024, 2048} }, |
| 19655 | .block_erase = spi_block_erase_20, |
| 19656 | }, { |
| 19657 | .eraseblocks = { {32 * 1024, 256} }, |
| 19658 | .block_erase = spi_block_erase_52, |
| 19659 | }, { |
| 19660 | .eraseblocks = { {64 * 1024, 128} }, |
| 19661 | .block_erase = spi_block_erase_d8, |
| 19662 | }, { |
| 19663 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 19664 | .block_erase = spi_block_erase_60, |
| 19665 | }, { |
| 19666 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 19667 | .block_erase = spi_block_erase_c7, |
| 19668 | } |
| 19669 | }, |
| 19670 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19671 | .unlock = spi_disable_blockprotect, |
| 19672 | .write = spi_chip_write_256, |
| 19673 | .read = spi_chip_read, |
| 19674 | .voltage = {2700, 3600}, |
| 19675 | .reg_bits = |
| 19676 | { |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 19677 | .qe = {STATUS2, 1, RW}, |
Sergii Dmytruk | d1af307 | 2021-11-08 00:00:43 +0200 | [diff] [blame] | 19678 | .srp = {STATUS1, 7, RW}, |
| 19679 | .srl = {STATUS2, 0, RW}, |
| 19680 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 19681 | .tb = {STATUS1, 5, RW}, |
| 19682 | .sec = {STATUS1, 6, RW}, |
| 19683 | .cmp = {STATUS2, 6, RW}, |
| 19684 | .wps = {STATUS3, 2, RW}, |
| 19685 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 19686 | .wp_write_cfg = spi_wp_write_cfg, |
| 19687 | .wp_read_cfg = spi_wp_read_cfg, |
| 19688 | .wp_get_ranges = spi_wp_get_available_ranges, |
Sergii Dmytruk | d1af307 | 2021-11-08 00:00:43 +0200 | [diff] [blame] | 19689 | .decode_range = decode_range_spi25, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 19690 | .prepare_access = spi_prepare_io, |
| 19691 | .finish_access = spi_finish_io, |
Sergii Dmytruk | d1af307 | 2021-11-08 00:00:43 +0200 | [diff] [blame] | 19692 | }, |
| 19693 | |
| 19694 | { |
| 19695 | .vendor = "Winbond", |
| 19696 | .name = "W25Q64JV-.M", |
Simon Buhrow | 236a38c | 2021-11-05 11:48:30 +0100 | [diff] [blame] | 19697 | .bustype = BUS_SPI, |
| 19698 | .manufacture_id = WINBOND_NEX_ID, |
| 19699 | .model_id = WINBOND_NEX_W25Q64JV, |
| 19700 | .total_size = 8192, |
| 19701 | .page_size = 256, |
| 19702 | /* supports SFDP */ |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 19703 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | FEATURE_WRSR3 | |
| 19704 | FEATURE_OTP | FEATURE_QPI_SRP, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 19705 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
Simon Buhrow | 236a38c | 2021-11-05 11:48:30 +0100 | [diff] [blame] | 19706 | .tested = TEST_OK_PREW, |
| 19707 | .probe = probe_spi_rdid, |
| 19708 | .probe_timing = TIMING_ZERO, |
| 19709 | .block_erasers = |
| 19710 | { |
| 19711 | { |
| 19712 | .eraseblocks = { {4 * 1024, 2048} }, |
| 19713 | .block_erase = spi_block_erase_20, |
| 19714 | }, { |
| 19715 | .eraseblocks = { {32 * 1024, 256} }, |
| 19716 | .block_erase = spi_block_erase_52, |
| 19717 | }, { |
| 19718 | .eraseblocks = { {64 * 1024, 128} }, |
| 19719 | .block_erase = spi_block_erase_d8, |
| 19720 | }, { |
| 19721 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 19722 | .block_erase = spi_block_erase_60, |
| 19723 | }, { |
| 19724 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 19725 | .block_erase = spi_block_erase_c7, |
| 19726 | } |
| 19727 | }, |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 19728 | .reg_bits = |
| 19729 | { |
| 19730 | .qe = {STATUS2, 1, RW}, |
| 19731 | }, |
Simon Buhrow | 236a38c | 2021-11-05 11:48:30 +0100 | [diff] [blame] | 19732 | .printlock = spi_prettyprint_status_register_bp2_tb_bpl, |
| 19733 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 19734 | .write = spi_chip_write_256, |
| 19735 | .read = spi_chip_read, |
| 19736 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 19737 | .prepare_access = spi_prepare_io, |
| 19738 | .finish_access = spi_finish_io, |
Simon Buhrow | 236a38c | 2021-11-05 11:48:30 +0100 | [diff] [blame] | 19739 | }, |
| 19740 | |
| 19741 | { |
| 19742 | .vendor = "Winbond", |
Nico Huber | a358b14 | 2024-04-14 18:29:06 +0200 | [diff] [blame] | 19743 | .name = "W25Q64DW", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 19744 | .bustype = BUS_SPI, |
| 19745 | .manufacture_id = WINBOND_NEX_ID, |
| 19746 | .model_id = WINBOND_NEX_W25Q64_W, |
| 19747 | .total_size = 8192, |
| 19748 | .page_size = 256, |
| 19749 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 19750 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QPI_SRP, |
| 19751 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
Nico Huber | a358b14 | 2024-04-14 18:29:06 +0200 | [diff] [blame] | 19752 | .tested = TEST_OK_PREW, |
| 19753 | .probe = probe_spi_rdid, |
| 19754 | .probe_timing = TIMING_ZERO, |
| 19755 | .block_erasers = |
| 19756 | { |
| 19757 | { |
| 19758 | .eraseblocks = { {4 * 1024, 2048} }, |
| 19759 | .block_erase = spi_block_erase_20, |
| 19760 | }, { |
| 19761 | .eraseblocks = { {32 * 1024, 256} }, |
| 19762 | .block_erase = spi_block_erase_52, |
| 19763 | }, { |
| 19764 | .eraseblocks = { {64 * 1024, 128} }, |
| 19765 | .block_erase = spi_block_erase_d8, |
| 19766 | }, { |
| 19767 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 19768 | .block_erase = spi_block_erase_60, |
| 19769 | }, { |
| 19770 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 19771 | .block_erase = spi_block_erase_c7, |
| 19772 | } |
| 19773 | }, |
| 19774 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19775 | .unlock = spi_disable_blockprotect, |
| 19776 | .write = spi_chip_write_256, |
| 19777 | .read = spi_chip_read, |
| 19778 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 19779 | .reg_bits = |
| 19780 | { |
| 19781 | .srp = {STATUS1, 7, RW}, |
| 19782 | .srl = {STATUS2, 0, RW}, |
| 19783 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 19784 | .tb = {STATUS1, 5, RW}, |
| 19785 | .sec = {STATUS1, 6, RW}, |
| 19786 | .cmp = {STATUS2, 6, RW}, |
| 19787 | }, |
| 19788 | .wp_write_cfg = spi_wp_write_cfg, |
| 19789 | .wp_read_cfg = spi_wp_read_cfg, |
| 19790 | .wp_get_ranges = spi_wp_get_available_ranges, |
| 19791 | .decode_range = decode_range_spi25, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 19792 | .prepare_access = spi_prepare_io, |
| 19793 | .finish_access = spi_finish_io, |
Nico Huber | a358b14 | 2024-04-14 18:29:06 +0200 | [diff] [blame] | 19794 | }, |
| 19795 | |
| 19796 | { |
| 19797 | .vendor = "Winbond", |
| 19798 | .name = "W25Q64FW/W25Q64JW...Q", |
| 19799 | .bustype = BUS_SPI, |
| 19800 | .manufacture_id = WINBOND_NEX_ID, |
| 19801 | .model_id = WINBOND_NEX_W25Q64_W, |
| 19802 | .total_size = 8192, |
| 19803 | .page_size = 256, |
| 19804 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 19805 | /* FEATURE_QPI_SRP (2, 4, 6, 8): only FW version */ |
Nico Huber | a358b14 | 2024-04-14 18:29:06 +0200 | [diff] [blame] | 19806 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_WRSR3 | |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 19807 | FEATURE_OTP | FEATURE_QIO, |
Sergii Dmytruk | c74eac2 | 2022-10-06 18:17:58 +0300 | [diff] [blame] | 19808 | .tested = TEST_OK_PREWB, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 19809 | .probe = probe_spi_rdid, |
| 19810 | .probe_timing = TIMING_ZERO, |
| 19811 | .block_erasers = |
| 19812 | { |
| 19813 | { |
| 19814 | .eraseblocks = { {4 * 1024, 2048} }, |
| 19815 | .block_erase = spi_block_erase_20, |
| 19816 | }, { |
| 19817 | .eraseblocks = { {32 * 1024, 256} }, |
| 19818 | .block_erase = spi_block_erase_52, |
| 19819 | }, { |
| 19820 | .eraseblocks = { {64 * 1024, 128} }, |
| 19821 | .block_erase = spi_block_erase_d8, |
| 19822 | }, { |
| 19823 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 19824 | .block_erase = spi_block_erase_60, |
| 19825 | }, { |
| 19826 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 19827 | .block_erase = spi_block_erase_c7, |
| 19828 | } |
| 19829 | }, |
| 19830 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19831 | .unlock = spi_disable_blockprotect, |
| 19832 | .write = spi_chip_write_256, |
| 19833 | .read = spi_chip_read, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 19834 | .voltage = {1700, 1950}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 19835 | .reg_bits = |
| 19836 | { |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 19837 | .qe = {STATUS2, 1, RW}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 19838 | .srp = {STATUS1, 7, RW}, |
| 19839 | .srl = {STATUS2, 0, RW}, |
| 19840 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 19841 | .tb = {STATUS1, 5, RW}, |
| 19842 | .sec = {STATUS1, 6, RW}, |
| 19843 | .cmp = {STATUS2, 6, RW}, |
| 19844 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 19845 | .wp_write_cfg = spi_wp_write_cfg, |
| 19846 | .wp_read_cfg = spi_wp_read_cfg, |
| 19847 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 19848 | .decode_range = decode_range_spi25, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 19849 | .prepare_access = spi_prepare_io, |
| 19850 | .finish_access = spi_finish_io, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 19851 | }, |
| 19852 | |
| 19853 | { |
| 19854 | .vendor = "Winbond", |
Nikolai Artemiev | 5fa0505 | 2021-05-14 15:26:47 +1000 | [diff] [blame] | 19855 | .name = "W25Q64JW...M", |
Scott Chao | 1bbc501 | 2020-04-08 22:10:50 +0800 | [diff] [blame] | 19856 | .bustype = BUS_SPI, |
| 19857 | .manufacture_id = WINBOND_NEX_ID, |
Nikolai Artemiev | 5fa0505 | 2021-05-14 15:26:47 +1000 | [diff] [blame] | 19858 | .model_id = WINBOND_NEX_W25Q64JW_M, |
Scott Chao | 1bbc501 | 2020-04-08 22:10:50 +0800 | [diff] [blame] | 19859 | .total_size = 8192, |
| 19860 | .page_size = 256, |
| 19861 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 19862 | /* QPI enable 0x38, disable 0xFF */ |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 19863 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_WRSR3 | |
| 19864 | FEATURE_OTP | FEATURE_QPI_SRP, |
| 19865 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
Scott Chao | 1bbc501 | 2020-04-08 22:10:50 +0800 | [diff] [blame] | 19866 | .tested = TEST_OK_PREW, |
| 19867 | .probe = probe_spi_rdid, |
| 19868 | .probe_timing = TIMING_ZERO, |
| 19869 | .block_erasers = |
| 19870 | { |
| 19871 | { |
| 19872 | .eraseblocks = { {4 * 1024, 2048} }, |
| 19873 | .block_erase = spi_block_erase_20, |
| 19874 | }, { |
| 19875 | .eraseblocks = { {32 * 1024, 256} }, |
| 19876 | .block_erase = spi_block_erase_52, |
| 19877 | }, { |
| 19878 | .eraseblocks = { {64 * 1024, 128} }, |
| 19879 | .block_erase = spi_block_erase_d8, |
| 19880 | }, { |
| 19881 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 19882 | .block_erase = spi_block_erase_60, |
| 19883 | }, { |
| 19884 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 19885 | .block_erase = spi_block_erase_c7, |
| 19886 | } |
| 19887 | }, |
| 19888 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19889 | .unlock = spi_disable_blockprotect, |
| 19890 | .write = spi_chip_write_256, |
| 19891 | .read = spi_chip_read, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 19892 | .voltage = {1700, 1950}, |
Evan Benn | 29c8b5d | 2022-09-13 16:01:10 +1000 | [diff] [blame] | 19893 | .reg_bits = |
| 19894 | { |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 19895 | .qe = {STATUS2, 1, RW}, |
Evan Benn | 29c8b5d | 2022-09-13 16:01:10 +1000 | [diff] [blame] | 19896 | .srp = {STATUS1, 7, RW}, |
| 19897 | .srl = {STATUS2, 0, RW}, |
| 19898 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 19899 | .tb = {STATUS1, 5, RW}, |
| 19900 | .sec = {STATUS1, 6, RW}, |
| 19901 | .cmp = {STATUS2, 6, RW}, |
| 19902 | .wps = {STATUS3, 2, RW}, |
| 19903 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 19904 | .wp_write_cfg = spi_wp_write_cfg, |
| 19905 | .wp_read_cfg = spi_wp_read_cfg, |
| 19906 | .wp_get_ranges = spi_wp_get_available_ranges, |
Evan Benn | 29c8b5d | 2022-09-13 16:01:10 +1000 | [diff] [blame] | 19907 | .decode_range = decode_range_spi25, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 19908 | .prepare_access = spi_prepare_io, |
| 19909 | .finish_access = spi_finish_io, |
Scott Chao | 1bbc501 | 2020-04-08 22:10:50 +0800 | [diff] [blame] | 19910 | }, |
| 19911 | |
| 19912 | { |
| 19913 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19914 | .name = "W25Q80.V", |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 19915 | .bustype = BUS_SPI, |
| 19916 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19917 | .model_id = WINBOND_NEX_W25Q80_V, |
| 19918 | .total_size = 1024, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 19919 | .page_size = 256, |
| 19920 | /* supports SFDP */ |
| 19921 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 19922 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO, |
David Hendricks | 48729d3 | 2017-12-08 14:44:07 -0800 | [diff] [blame] | 19923 | .tested = TEST_OK_PREW, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 19924 | .probe = probe_spi_rdid, |
| 19925 | .probe_timing = TIMING_ZERO, |
| 19926 | .block_erasers = |
| 19927 | { |
| 19928 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19929 | .eraseblocks = { {4 * 1024, 256} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 19930 | .block_erase = spi_block_erase_20, |
| 19931 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19932 | .eraseblocks = { {32 * 1024, 32} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 19933 | .block_erase = spi_block_erase_52, |
| 19934 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19935 | .eraseblocks = { {64 * 1024, 16} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 19936 | .block_erase = spi_block_erase_d8, |
| 19937 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19938 | .eraseblocks = { {1024 * 1024, 1} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 19939 | .block_erase = spi_block_erase_60, |
| 19940 | }, { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19941 | .eraseblocks = { {1024 * 1024, 1} }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 19942 | .block_erase = spi_block_erase_c7, |
| 19943 | } |
| 19944 | }, |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 19945 | .reg_bits = |
| 19946 | { |
| 19947 | .qe = {STATUS2, 1, RW}, |
| 19948 | }, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 19949 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19950 | .unlock = spi_disable_blockprotect, |
| 19951 | .write = spi_chip_write_256, |
| 19952 | .read = spi_chip_read, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19953 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 19954 | .prepare_access = spi_prepare_io, |
| 19955 | .finish_access = spi_finish_io, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19956 | }, |
| 19957 | |
| 19958 | { |
| 19959 | .vendor = "Winbond", |
| 19960 | .name = "W25Q80BW", |
| 19961 | .bustype = BUS_SPI, |
| 19962 | .manufacture_id = WINBOND_NEX_ID, |
| 19963 | .model_id = WINBOND_NEX_W25Q80BW, |
| 19964 | .total_size = 1024, |
| 19965 | .page_size = 256, |
| 19966 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 19967 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_OTP | FEATURE_QIO, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19968 | .tested = TEST_OK_PREW, |
| 19969 | .probe = probe_spi_rdid, |
| 19970 | .probe_timing = TIMING_ZERO, |
| 19971 | .block_erasers = |
| 19972 | { |
| 19973 | { |
| 19974 | .eraseblocks = { {4 * 1024, 256} }, |
| 19975 | .block_erase = spi_block_erase_20, |
| 19976 | }, { |
| 19977 | .eraseblocks = { {32 * 1024, 32} }, |
| 19978 | .block_erase = spi_block_erase_52, |
| 19979 | }, { |
| 19980 | .eraseblocks = { {64 * 1024, 16} }, |
| 19981 | .block_erase = spi_block_erase_d8, |
| 19982 | }, { |
| 19983 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 19984 | .block_erase = spi_block_erase_60, |
| 19985 | }, { |
| 19986 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 19987 | .block_erase = spi_block_erase_c7, |
| 19988 | } |
| 19989 | }, |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 19990 | .reg_bits = |
| 19991 | { |
| 19992 | .qe = {STATUS2, 1, RW}, |
| 19993 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 19994 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 19995 | .unlock = spi_disable_blockprotect, |
| 19996 | .write = spi_chip_write_256, |
| 19997 | .read = spi_chip_read, |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 19998 | .voltage = {1700, 1950}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 19999 | .prepare_access = spi_prepare_io, |
| 20000 | .finish_access = spi_finish_io, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 20001 | }, |
| 20002 | |
| 20003 | { |
| 20004 | .vendor = "Winbond", |
| 20005 | .name = "W25Q80EW", |
| 20006 | .bustype = BUS_SPI, |
| 20007 | .manufacture_id = WINBOND_NEX_ID, |
| 20008 | .model_id = WINBOND_NEX_W25Q80EW, |
| 20009 | .total_size = 1024, |
| 20010 | .page_size = 256, |
| 20011 | /* OTP: 3*256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 20012 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR_EXT2 | FEATURE_WRSR2 | |
| 20013 | FEATURE_OTP | FEATURE_QPI_SRP, |
| 20014 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 20015 | .tested = TEST_OK_PREW, |
| 20016 | .probe = probe_spi_rdid, |
| 20017 | .probe_timing = TIMING_ZERO, |
| 20018 | .block_erasers = |
| 20019 | { |
| 20020 | { |
| 20021 | .eraseblocks = { {4 * 1024, 256} }, |
| 20022 | .block_erase = spi_block_erase_20, |
| 20023 | }, { |
| 20024 | .eraseblocks = { {32 * 1024, 32} }, |
| 20025 | .block_erase = spi_block_erase_52, |
| 20026 | }, { |
| 20027 | .eraseblocks = { {64 * 1024, 16} }, |
| 20028 | .block_erase = spi_block_erase_d8, |
| 20029 | }, { |
| 20030 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 20031 | .block_erase = spi_block_erase_60, |
| 20032 | }, { |
| 20033 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 20034 | .block_erase = spi_block_erase_c7, |
| 20035 | } |
| 20036 | }, |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 20037 | .reg_bits = |
| 20038 | { |
| 20039 | .qe = {STATUS2, 1, RW}, |
| 20040 | }, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 20041 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 20042 | .unlock = spi_disable_blockprotect, |
| 20043 | .write = spi_chip_write_256, |
| 20044 | .read = spi_chip_read, |
Nico Huber | 2133f59 | 2024-01-06 18:30:01 +0100 | [diff] [blame] | 20045 | .voltage = {1650, 1950}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 20046 | .prepare_access = spi_prepare_io, |
| 20047 | .finish_access = spi_finish_io, |
Nico Huber | 70eed9f | 2017-04-24 22:19:27 +0200 | [diff] [blame] | 20048 | }, |
| 20049 | |
| 20050 | { |
| 20051 | .vendor = "Winbond", |
Jacob Appelbaum | ebbdc02 | 2019-09-02 09:10:43 -0400 | [diff] [blame] | 20052 | .name = "W25X05", |
| 20053 | .bustype = BUS_SPI, |
| 20054 | .manufacture_id = WINBOND_NEX_ID, |
| 20055 | .model_id = WINBOND_NEX_W25X05, |
| 20056 | .total_size = 64, |
| 20057 | .page_size = 256, |
Nico Huber | a26a3c6 | 2024-04-12 19:28:28 +0200 | [diff] [blame] | 20058 | /* FEATURE_FAST_READ_DIO since W25X05B */ |
| 20059 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ_DOUT, |
Jacob Appelbaum | ebbdc02 | 2019-09-02 09:10:43 -0400 | [diff] [blame] | 20060 | .tested = TEST_OK_PREW, |
| 20061 | .probe = probe_spi_rdid, |
| 20062 | .probe_timing = TIMING_ZERO, |
| 20063 | .block_erasers = |
| 20064 | { |
| 20065 | { |
| 20066 | .eraseblocks = { {4 * 1024, 16} }, |
| 20067 | .block_erase = spi_block_erase_20, |
| 20068 | }, { |
| 20069 | .eraseblocks = { {32 * 1024, 2} }, |
| 20070 | .block_erase = spi_block_erase_52, |
| 20071 | }, { |
| 20072 | .eraseblocks = { {64 * 1024, 1} }, |
| 20073 | .block_erase = spi_block_erase_d8, |
| 20074 | } |
| 20075 | }, |
| 20076 | .printlock = spi_prettyprint_status_register_plain, |
| 20077 | .unlock = spi_disable_blockprotect, |
| 20078 | .write = spi_chip_write_256, |
| 20079 | .read = spi_chip_read, |
| 20080 | .voltage = {2300, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 20081 | .prepare_access = spi_prepare_io, |
| 20082 | .finish_access = spi_finish_io, |
Jacob Appelbaum | ebbdc02 | 2019-09-02 09:10:43 -0400 | [diff] [blame] | 20083 | }, |
| 20084 | |
| 20085 | { |
| 20086 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 20087 | .name = "W25X10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20088 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20089 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 20090 | .model_id = WINBOND_NEX_W25X10, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20091 | .total_size = 128, |
| 20092 | .page_size = 256, |
Nico Huber | a26a3c6 | 2024-04-12 19:28:28 +0200 | [diff] [blame] | 20093 | /* FEATURE_FAST_READ_DIO since W25X10B */ |
| 20094 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ_DOUT, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 20095 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20096 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 20097 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 20098 | .block_erasers = |
| 20099 | { |
| 20100 | { |
| 20101 | .eraseblocks = { {4 * 1024, 32} }, |
| 20102 | .block_erase = spi_block_erase_20, |
| 20103 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 20104 | .eraseblocks = { {64 * 1024, 2} }, |
| 20105 | .block_erase = spi_block_erase_d8, |
| 20106 | }, { |
| 20107 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 20108 | .block_erase = spi_block_erase_c7, |
| 20109 | } |
| 20110 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 20111 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 20112 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 20113 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20114 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 20115 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 20116 | .prepare_access = spi_prepare_io, |
| 20117 | .finish_access = spi_finish_io, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 20118 | }, |
| 20119 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20120 | { |
| 20121 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 20122 | .name = "W25X16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20123 | .bustype = BUS_SPI, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 20124 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 20125 | .model_id = WINBOND_NEX_W25X16, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 20126 | .total_size = 2048, |
| 20127 | .page_size = 256, |
Nico Huber | a26a3c6 | 2024-04-12 19:28:28 +0200 | [diff] [blame] | 20128 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ_DOUT, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 20129 | .tested = TEST_OK_PREW, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 20130 | .probe = probe_spi_rdid, |
| 20131 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 20132 | .block_erasers = |
| 20133 | { |
| 20134 | { |
| 20135 | .eraseblocks = { {4 * 1024, 512} }, |
| 20136 | .block_erase = spi_block_erase_20, |
| 20137 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 20138 | .eraseblocks = { {64 * 1024, 32} }, |
| 20139 | .block_erase = spi_block_erase_d8, |
| 20140 | }, { |
| 20141 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 20142 | .block_erase = spi_block_erase_c7, |
| 20143 | } |
| 20144 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 20145 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 20146 | .unlock = spi_disable_blockprotect, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 20147 | .write = spi_chip_write_256, |
| 20148 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 20149 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 20150 | .prepare_access = spi_prepare_io, |
| 20151 | .finish_access = spi_finish_io, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 20152 | }, |
| 20153 | |
| 20154 | { |
| 20155 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 20156 | .name = "W25X20", |
| 20157 | .bustype = BUS_SPI, |
| 20158 | .manufacture_id = WINBOND_NEX_ID, |
| 20159 | .model_id = WINBOND_NEX_W25X20, |
| 20160 | .total_size = 256, |
| 20161 | .page_size = 256, |
Nico Huber | a26a3c6 | 2024-04-12 19:28:28 +0200 | [diff] [blame] | 20162 | /* FEATURE_FAST_READ_DIO since W25X20B */ |
| 20163 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ_DOUT, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 20164 | .tested = TEST_OK_PREW, |
| 20165 | .probe = probe_spi_rdid, |
| 20166 | .probe_timing = TIMING_ZERO, |
| 20167 | .block_erasers = |
| 20168 | { |
| 20169 | { |
| 20170 | .eraseblocks = { {4 * 1024, 64} }, |
| 20171 | .block_erase = spi_block_erase_20, |
| 20172 | }, { |
| 20173 | .eraseblocks = { {64 * 1024, 4} }, |
| 20174 | .block_erase = spi_block_erase_d8, |
| 20175 | }, { |
| 20176 | .eraseblocks = { {256 * 1024, 1} }, |
| 20177 | .block_erase = spi_block_erase_c7, |
| 20178 | } |
| 20179 | }, |
| 20180 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 20181 | .unlock = spi_disable_blockprotect, |
| 20182 | .write = spi_chip_write_256, |
| 20183 | .read = spi_chip_read, |
| 20184 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 20185 | .prepare_access = spi_prepare_io, |
| 20186 | .finish_access = spi_finish_io, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 20187 | }, |
| 20188 | |
| 20189 | { |
| 20190 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 20191 | .name = "W25X32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20192 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 20193 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 20194 | .model_id = WINBOND_NEX_W25X32, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 20195 | .total_size = 4096, |
| 20196 | .page_size = 256, |
Nico Huber | a26a3c6 | 2024-04-12 19:28:28 +0200 | [diff] [blame] | 20197 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ_DOUT, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 20198 | .tested = TEST_OK_PREW, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 20199 | .probe = probe_spi_rdid, |
| 20200 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 20201 | .block_erasers = |
| 20202 | { |
| 20203 | { |
| 20204 | .eraseblocks = { {4 * 1024, 1024} }, |
| 20205 | .block_erase = spi_block_erase_20, |
| 20206 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 20207 | .eraseblocks = { {64 * 1024, 64} }, |
| 20208 | .block_erase = spi_block_erase_d8, |
| 20209 | }, { |
| 20210 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 20211 | .block_erase = spi_block_erase_c7, |
| 20212 | } |
| 20213 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 20214 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 20215 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 20216 | .write = spi_chip_write_256, |
| 20217 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 20218 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 20219 | .prepare_access = spi_prepare_io, |
| 20220 | .finish_access = spi_finish_io, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 20221 | }, |
| 20222 | |
| 20223 | { |
| 20224 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 20225 | .name = "W25X40", |
| 20226 | .bustype = BUS_SPI, |
| 20227 | .manufacture_id = WINBOND_NEX_ID, |
| 20228 | .model_id = WINBOND_NEX_W25X40, |
| 20229 | .total_size = 512, |
| 20230 | .page_size = 256, |
Nico Huber | a26a3c6 | 2024-04-12 19:28:28 +0200 | [diff] [blame] | 20231 | /* FEATURE_FAST_READ_DIO since W25X40B */ |
| 20232 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ_DOUT, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 20233 | .tested = TEST_OK_PREW, |
| 20234 | .probe = probe_spi_rdid, |
| 20235 | .probe_timing = TIMING_ZERO, |
| 20236 | .block_erasers = |
| 20237 | { |
| 20238 | { |
| 20239 | .eraseblocks = { {4 * 1024, 128} }, |
| 20240 | .block_erase = spi_block_erase_20, |
| 20241 | }, { |
| 20242 | .eraseblocks = { {64 * 1024, 8} }, |
| 20243 | .block_erase = spi_block_erase_d8, |
| 20244 | }, { |
| 20245 | .eraseblocks = { {512 * 1024, 1} }, |
| 20246 | .block_erase = spi_block_erase_c7, |
| 20247 | } |
| 20248 | }, |
| 20249 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 20250 | .unlock = spi_disable_blockprotect, |
| 20251 | .write = spi_chip_write_256, |
| 20252 | .read = spi_chip_read, |
| 20253 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 20254 | .prepare_access = spi_prepare_io, |
| 20255 | .finish_access = spi_finish_io, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 20256 | }, |
| 20257 | |
| 20258 | { |
| 20259 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 20260 | .name = "W25X64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20261 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 20262 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 20263 | .model_id = WINBOND_NEX_W25X64, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 20264 | .total_size = 8192, |
| 20265 | .page_size = 256, |
Nico Huber | a26a3c6 | 2024-04-12 19:28:28 +0200 | [diff] [blame] | 20266 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ_DOUT, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 20267 | .tested = TEST_OK_PREW, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 20268 | .probe = probe_spi_rdid, |
| 20269 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 20270 | .block_erasers = |
| 20271 | { |
| 20272 | { |
| 20273 | .eraseblocks = { {4 * 1024, 2048} }, |
| 20274 | .block_erase = spi_block_erase_20, |
| 20275 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 20276 | .eraseblocks = { {64 * 1024, 128} }, |
| 20277 | .block_erase = spi_block_erase_d8, |
| 20278 | }, { |
| 20279 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 20280 | .block_erase = spi_block_erase_c7, |
| 20281 | } |
| 20282 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 20283 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 20284 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 20285 | .write = spi_chip_write_256, |
| 20286 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 20287 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 20288 | .prepare_access = spi_prepare_io, |
| 20289 | .finish_access = spi_finish_io, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 20290 | }, |
| 20291 | |
| 20292 | { |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 20293 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 20294 | .name = "W25X80", |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 20295 | .bustype = BUS_SPI, |
| 20296 | .manufacture_id = WINBOND_NEX_ID, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 20297 | .model_id = WINBOND_NEX_W25X80, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 20298 | .total_size = 1024, |
| 20299 | .page_size = 256, |
Nico Huber | a26a3c6 | 2024-04-12 19:28:28 +0200 | [diff] [blame] | 20300 | /* FEATURE_FAST_READ_DIO since W25X80B */ |
| 20301 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_FAST_READ_DOUT, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 20302 | .tested = TEST_OK_PREW, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 20303 | .probe = probe_spi_rdid, |
| 20304 | .probe_timing = TIMING_ZERO, |
| 20305 | .block_erasers = |
David Hendricks | c9ee0ed | 2018-02-11 17:40:53 -0800 | [diff] [blame] | 20306 | { |
| 20307 | { |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 20308 | .eraseblocks = { {4 * 1024, 256} }, |
| 20309 | .block_erase = spi_block_erase_20, |
| 20310 | }, { |
David Hendricks | c9ee0ed | 2018-02-11 17:40:53 -0800 | [diff] [blame] | 20311 | .eraseblocks = { {64 * 1024, 16} }, |
| 20312 | .block_erase = spi_block_erase_d8, |
| 20313 | }, { |
| 20314 | .eraseblocks = { {1024 * 1024, 1} }, |
| 20315 | .block_erase = spi_block_erase_c7, |
| 20316 | } |
| 20317 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 20318 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 20319 | .unlock = spi_disable_blockprotect, |
| 20320 | .write = spi_chip_write_256, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 20321 | .read = spi_chip_read, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 20322 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 20323 | .prepare_access = spi_prepare_io, |
| 20324 | .finish_access = spi_finish_io, |
David Hendricks | c9ee0ed | 2018-02-11 17:40:53 -0800 | [diff] [blame] | 20325 | }, |
| 20326 | |
Alan Green | f29ea36 | 2019-06-27 17:14:02 +1000 | [diff] [blame] | 20327 | /* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */ |
| 20328 | { |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 20329 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 20330 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20331 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20332 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 20333 | .model_id = WINBOND_W29C010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20334 | .total_size = 128, |
| 20335 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20336 | .feature_bits = FEATURE_LONG_RESET, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 20337 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20338 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 20339 | .probe_timing = 10, /* used datasheet for the W29C011A */ |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 20340 | .block_erasers = |
| 20341 | { |
| 20342 | { |
| 20343 | .eraseblocks = { {128 * 1024, 1} }, |
| 20344 | .block_erase = erase_chip_block_jedec, |
| 20345 | } |
| 20346 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20347 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 20348 | .read = read_memmapped, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20349 | .prepare_access = prepare_memory_access, |
| 20350 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 20351 | }, |
| 20352 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20353 | { |
| 20354 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 20355 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old", |
| 20356 | .bustype = BUS_PARALLEL, |
| 20357 | .manufacture_id = WINBOND_ID, |
| 20358 | .model_id = WINBOND_W29C010, |
| 20359 | .total_size = 128, |
| 20360 | .page_size = 128, |
| 20361 | .feature_bits = FEATURE_LONG_RESET, |
| 20362 | .tested = TEST_OK_PREW, |
| 20363 | .probe = probe_w29ee011, |
| 20364 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */ |
| 20365 | .block_erasers = |
| 20366 | { |
| 20367 | { |
| 20368 | .eraseblocks = { {128 * 1024, 1} }, |
| 20369 | .block_erase = erase_chip_block_jedec, |
| 20370 | } |
| 20371 | }, |
| 20372 | .write = write_jedec, |
| 20373 | .read = read_memmapped, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20374 | .prepare_access = prepare_memory_access, |
| 20375 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 20376 | }, |
| 20377 | |
| 20378 | { |
| 20379 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 20380 | .name = "W29C020(C)/W29C022", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20381 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20382 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 20383 | .model_id = WINBOND_W29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20384 | .total_size = 256, |
| 20385 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20386 | .feature_bits = FEATURE_LONG_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 20387 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20388 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 20389 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 20390 | .block_erasers = |
| 20391 | { |
| 20392 | { |
| 20393 | .eraseblocks = { {256 * 1024, 1} }, |
| 20394 | .block_erase = erase_chip_block_jedec, |
| 20395 | } |
| 20396 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20397 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 20398 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 20399 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20400 | .prepare_access = prepare_memory_access, |
| 20401 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 20402 | }, |
| 20403 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20404 | { |
| 20405 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 20406 | .name = "W29C040/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20407 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20408 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 20409 | .model_id = WINBOND_W29C040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20410 | .total_size = 512, |
| 20411 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20412 | .feature_bits = FEATURE_LONG_RESET, |
| 20413 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20414 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 20415 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 20416 | .block_erasers = |
| 20417 | { |
| 20418 | { |
| 20419 | .eraseblocks = { {512 * 1024, 1} }, |
| 20420 | .block_erase = erase_chip_block_jedec, |
| 20421 | } |
| 20422 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20423 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 20424 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 20425 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20426 | .prepare_access = prepare_memory_access, |
| 20427 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 20428 | }, |
| 20429 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20430 | { |
| 20431 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 20432 | .name = "W29C512A/W29EE512", |
| 20433 | .bustype = BUS_PARALLEL, |
| 20434 | .manufacture_id = WINBOND_ID, |
| 20435 | .model_id = WINBOND_W29C512A, |
| 20436 | .total_size = 64, |
| 20437 | .page_size = 128, |
| 20438 | .feature_bits = FEATURE_LONG_RESET, |
| 20439 | .tested = TEST_OK_PREW, |
| 20440 | .probe = probe_jedec, |
| 20441 | .probe_timing = 10, |
| 20442 | .block_erasers = |
| 20443 | { |
| 20444 | { |
| 20445 | .eraseblocks = { {64 * 1024, 1} }, |
| 20446 | .block_erase = erase_chip_block_jedec, |
| 20447 | } |
| 20448 | }, |
| 20449 | .write = write_jedec, |
| 20450 | .read = read_memmapped, |
| 20451 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20452 | .prepare_access = prepare_memory_access, |
| 20453 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 20454 | }, |
| 20455 | |
| 20456 | { |
| 20457 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 20458 | .name = "W29GL032CB", |
| 20459 | .bustype = BUS_PARALLEL, |
| 20460 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 20461 | .model_id = WINBOND_W29GL032CB, |
| 20462 | .total_size = 4096, |
| 20463 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 20464 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 20465 | .tested = TEST_UNTESTED, |
| 20466 | .probe = probe_jedec_29gl, |
| 20467 | .probe_timing = TIMING_ZERO, |
| 20468 | .block_erasers = |
| 20469 | { |
| 20470 | { |
| 20471 | .eraseblocks = { |
| 20472 | {8 * 1024, 8}, |
| 20473 | {64 * 1024, 63}, |
| 20474 | }, |
| 20475 | .block_erase = erase_sector_jedec, |
| 20476 | }, { |
| 20477 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 20478 | .block_erase = erase_chip_block_jedec, |
| 20479 | }, |
| 20480 | }, |
| 20481 | .write = write_jedec_1, |
| 20482 | .read = read_memmapped, |
| 20483 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20484 | .prepare_access = prepare_memory_access, |
| 20485 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 20486 | }, |
| 20487 | |
| 20488 | { |
| 20489 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 20490 | .name = "W29GL032CH/L", |
| 20491 | .bustype = BUS_PARALLEL, |
| 20492 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 20493 | .model_id = WINBOND_W29GL032CHL, |
| 20494 | .total_size = 4096, |
| 20495 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 20496 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 20497 | .tested = TEST_UNTESTED, |
| 20498 | .probe = probe_jedec_29gl, |
| 20499 | .probe_timing = TIMING_ZERO, |
| 20500 | .block_erasers = |
| 20501 | { |
| 20502 | { |
| 20503 | .eraseblocks = { {64 * 1024, 64} }, |
| 20504 | .block_erase = erase_sector_jedec, |
| 20505 | }, { |
| 20506 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 20507 | .block_erase = erase_chip_block_jedec, |
| 20508 | }, |
| 20509 | }, |
| 20510 | .write = write_jedec_1, |
| 20511 | .read = read_memmapped, |
| 20512 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20513 | .prepare_access = prepare_memory_access, |
| 20514 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 20515 | }, |
| 20516 | |
| 20517 | { |
| 20518 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 20519 | .name = "W29GL032CT", |
| 20520 | .bustype = BUS_PARALLEL, |
| 20521 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 20522 | .model_id = WINBOND_W29GL032CT, |
| 20523 | .total_size = 4096, |
| 20524 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 20525 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 20526 | .tested = TEST_UNTESTED, |
| 20527 | .probe = probe_jedec_29gl, |
| 20528 | .probe_timing = TIMING_ZERO, |
| 20529 | .block_erasers = |
| 20530 | { |
| 20531 | { |
| 20532 | .eraseblocks = { |
| 20533 | {64 * 1024, 63}, |
| 20534 | {8 * 1024, 8}, |
| 20535 | }, |
| 20536 | .block_erase = erase_sector_jedec, |
| 20537 | }, { |
| 20538 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 20539 | .block_erase = erase_chip_block_jedec, |
| 20540 | }, |
| 20541 | }, |
| 20542 | .write = write_jedec_1, |
| 20543 | .read = read_memmapped, |
| 20544 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20545 | .prepare_access = prepare_memory_access, |
| 20546 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 20547 | }, |
| 20548 | |
| 20549 | { |
| 20550 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 20551 | .name = "W29GL064CB", |
| 20552 | .bustype = BUS_PARALLEL, |
| 20553 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 20554 | .model_id = WINBOND_W29GL064CB, |
| 20555 | .total_size = 8192, |
| 20556 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 20557 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 20558 | .tested = TEST_UNTESTED, |
| 20559 | .probe = probe_jedec_29gl, |
| 20560 | .probe_timing = TIMING_ZERO, |
| 20561 | .block_erasers = |
| 20562 | { |
| 20563 | { |
| 20564 | .eraseblocks = { |
| 20565 | {8 * 1024, 8}, |
| 20566 | {64 * 1024, 127}, |
| 20567 | }, |
| 20568 | .block_erase = erase_sector_jedec, |
| 20569 | }, { |
| 20570 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 20571 | .block_erase = erase_chip_block_jedec, |
| 20572 | }, |
| 20573 | }, |
| 20574 | .write = write_jedec_1, |
| 20575 | .read = read_memmapped, |
| 20576 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20577 | .prepare_access = prepare_memory_access, |
| 20578 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 20579 | }, |
| 20580 | |
| 20581 | { |
| 20582 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 20583 | .name = "W29GL064CH/L", |
| 20584 | .bustype = BUS_PARALLEL, |
| 20585 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 20586 | .model_id = WINBOND_W29GL064CHL, |
| 20587 | .total_size = 8192, |
| 20588 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 20589 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 20590 | .tested = TEST_UNTESTED, |
| 20591 | .probe = probe_jedec_29gl, |
| 20592 | .probe_timing = TIMING_ZERO, |
| 20593 | .block_erasers = |
| 20594 | { |
| 20595 | { |
| 20596 | .eraseblocks = { {64 * 1024, 128} }, |
| 20597 | .block_erase = erase_sector_jedec, |
| 20598 | }, { |
| 20599 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 20600 | .block_erase = erase_chip_block_jedec, |
| 20601 | }, |
| 20602 | }, |
| 20603 | .write = write_jedec_1, |
| 20604 | .read = read_memmapped, |
| 20605 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20606 | .prepare_access = prepare_memory_access, |
| 20607 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 20608 | }, |
| 20609 | |
| 20610 | { |
| 20611 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 20612 | .name = "W29GL064CT", |
| 20613 | .bustype = BUS_PARALLEL, |
| 20614 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 20615 | .model_id = WINBOND_W29GL064CT, |
| 20616 | .total_size = 8192, |
| 20617 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 20618 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 20619 | .tested = TEST_UNTESTED, |
| 20620 | .probe = probe_jedec_29gl, |
| 20621 | .probe_timing = TIMING_ZERO, |
| 20622 | .block_erasers = |
| 20623 | { |
| 20624 | { |
| 20625 | .eraseblocks = { |
| 20626 | {64 * 1024, 127}, |
| 20627 | {8 * 1024, 8}, |
| 20628 | }, |
| 20629 | .block_erase = erase_sector_jedec, |
| 20630 | }, { |
| 20631 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 20632 | .block_erase = erase_chip_block_jedec, |
| 20633 | }, |
| 20634 | }, |
| 20635 | .write = write_jedec_1, |
| 20636 | .read = read_memmapped, |
| 20637 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20638 | .prepare_access = prepare_memory_access, |
| 20639 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 20640 | }, |
| 20641 | |
| 20642 | { |
| 20643 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 20644 | .name = "W29GL128C", |
| 20645 | .bustype = BUS_PARALLEL, |
| 20646 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 20647 | .model_id = WINBOND_W29GL128CHL, |
| 20648 | .total_size = 16384, |
| 20649 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 20650 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 20651 | .tested = TEST_UNTESTED, |
| 20652 | .probe = probe_jedec_29gl, |
| 20653 | .probe_timing = TIMING_ZERO, |
| 20654 | .block_erasers = |
| 20655 | { |
| 20656 | { |
| 20657 | .eraseblocks = { {128 * 1024, 128} }, |
| 20658 | .block_erase = erase_sector_jedec, |
| 20659 | }, { |
| 20660 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 20661 | .block_erase = erase_chip_block_jedec, |
| 20662 | }, |
| 20663 | }, |
| 20664 | .write = write_jedec_1, |
| 20665 | .read = read_memmapped, |
| 20666 | .voltage = {2700, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20667 | .prepare_access = prepare_memory_access, |
| 20668 | .finish_access = finish_memory_access, |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 20669 | }, |
| 20670 | |
| 20671 | { |
| 20672 | .vendor = "Winbond", |
Kyösti Mälkki | c31243e | 2012-10-28 01:50:08 +0000 | [diff] [blame] | 20673 | .name = "W39F010", |
| 20674 | .bustype = BUS_PARALLEL, |
| 20675 | .manufacture_id = WINBOND_ID, |
| 20676 | .model_id = WINBOND_W39F010, |
| 20677 | .total_size = 128, |
| 20678 | .page_size = 4 * 1024, |
| 20679 | .feature_bits = FEATURE_EITHER_RESET, |
| 20680 | .tested = TEST_OK_PREW, |
| 20681 | .probe = probe_jedec, |
| 20682 | .probe_timing = 10, |
| 20683 | .block_erasers = |
| 20684 | { |
| 20685 | { |
| 20686 | .eraseblocks = { {4 * 1024, 32} }, |
| 20687 | .block_erase = erase_block_jedec, |
| 20688 | }, { |
| 20689 | .eraseblocks = { {128 * 1024, 1} }, |
| 20690 | .block_erase = erase_chip_block_jedec, |
| 20691 | } |
| 20692 | }, |
| 20693 | .printlock = printlock_w39f010, |
| 20694 | .write = write_jedec_1, |
| 20695 | .read = read_memmapped, |
| 20696 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20697 | .prepare_access = prepare_memory_access, |
| 20698 | .finish_access = finish_memory_access, |
Kyösti Mälkki | c31243e | 2012-10-28 01:50:08 +0000 | [diff] [blame] | 20699 | }, |
| 20700 | |
| 20701 | { |
| 20702 | .vendor = "Winbond", |
| 20703 | .name = "W39L010", |
| 20704 | .bustype = BUS_PARALLEL, |
| 20705 | .manufacture_id = WINBOND_ID, |
| 20706 | .model_id = WINBOND_W39L010, |
| 20707 | .total_size = 128, |
| 20708 | .page_size = 4 * 1024, |
| 20709 | .feature_bits = FEATURE_EITHER_RESET, |
| 20710 | .tested = TEST_UNTESTED, |
| 20711 | .probe = probe_jedec, |
| 20712 | .probe_timing = 10, |
| 20713 | .block_erasers = |
| 20714 | { |
| 20715 | { |
| 20716 | .eraseblocks = { {4 * 1024, 32} }, |
| 20717 | .block_erase = erase_block_jedec, |
| 20718 | }, { |
| 20719 | .eraseblocks = { {128 * 1024, 1} }, |
| 20720 | .block_erase = erase_chip_block_jedec, |
| 20721 | } |
| 20722 | }, |
| 20723 | .printlock = printlock_w39l010, |
| 20724 | .write = write_jedec_1, |
| 20725 | .read = read_memmapped, |
| 20726 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20727 | .prepare_access = prepare_memory_access, |
| 20728 | .finish_access = finish_memory_access, |
Kyösti Mälkki | c31243e | 2012-10-28 01:50:08 +0000 | [diff] [blame] | 20729 | }, |
| 20730 | |
| 20731 | { |
| 20732 | .vendor = "Winbond", |
| 20733 | .name = "W39L020", |
| 20734 | .bustype = BUS_PARALLEL, |
| 20735 | .manufacture_id = WINBOND_ID, |
| 20736 | .model_id = WINBOND_W39L020, |
| 20737 | .total_size = 256, |
| 20738 | .page_size = 4 * 1024, |
| 20739 | .feature_bits = FEATURE_EITHER_RESET, |
| 20740 | .tested = TEST_UNTESTED, |
| 20741 | .probe = probe_jedec, |
| 20742 | .probe_timing = 10, |
| 20743 | .block_erasers = |
| 20744 | { |
| 20745 | { |
| 20746 | .eraseblocks = { {4 * 1024, 64} }, |
| 20747 | .block_erase = erase_block_jedec, |
| 20748 | }, { |
| 20749 | .eraseblocks = { {64 * 1024, 4} }, |
| 20750 | .block_erase = erase_sector_jedec, |
| 20751 | }, { |
| 20752 | .eraseblocks = { {256 * 1024, 1} }, |
| 20753 | .block_erase = erase_chip_block_jedec, |
| 20754 | } |
| 20755 | }, |
| 20756 | .printlock = printlock_w39l020, |
| 20757 | .write = write_jedec_1, |
| 20758 | .read = read_memmapped, |
| 20759 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20760 | .prepare_access = prepare_memory_access, |
| 20761 | .finish_access = finish_memory_access, |
Kyösti Mälkki | c31243e | 2012-10-28 01:50:08 +0000 | [diff] [blame] | 20762 | }, |
| 20763 | |
| 20764 | { |
| 20765 | .vendor = "Winbond", |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 20766 | .name = "W39L040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20767 | .bustype = BUS_PARALLEL, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 20768 | .manufacture_id = WINBOND_ID, |
| 20769 | .model_id = WINBOND_W39L040, |
| 20770 | .total_size = 512, |
| 20771 | .page_size = 64 * 1024, |
| 20772 | .feature_bits = FEATURE_EITHER_RESET, |
| 20773 | .tested = TEST_OK_PR, |
| 20774 | .probe = probe_jedec, |
| 20775 | .probe_timing = 10, |
| 20776 | .block_erasers = |
| 20777 | { |
| 20778 | { |
| 20779 | .eraseblocks = { {4 * 1024, 128} }, |
| 20780 | .block_erase = erase_block_jedec, |
| 20781 | }, { |
| 20782 | .eraseblocks = { {64 * 1024, 8} }, |
| 20783 | .block_erase = erase_sector_jedec, |
| 20784 | }, { |
| 20785 | .eraseblocks = { {512 * 1024, 1} }, |
| 20786 | .block_erase = erase_chip_block_jedec, |
| 20787 | } |
| 20788 | }, |
| 20789 | .printlock = printlock_w39l040, |
| 20790 | .write = write_jedec_1, |
| 20791 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 20792 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20793 | .prepare_access = prepare_memory_access, |
| 20794 | .finish_access = finish_memory_access, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 20795 | }, |
| 20796 | |
| 20797 | { |
| 20798 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20799 | .name = "W39V040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20800 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20801 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 20802 | .model_id = WINBOND_W39V040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20803 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 20804 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20805 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 20806 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20807 | .probe = probe_jedec, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 20808 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 20809 | .block_erasers = |
| 20810 | { |
| 20811 | { |
| 20812 | .eraseblocks = { {64 * 1024, 8} }, |
| 20813 | .block_erase = erase_sector_jedec, |
| 20814 | }, { |
| 20815 | .eraseblocks = { {512 * 1024, 1} }, |
| 20816 | .block_erase = erase_chip_block_jedec, |
| 20817 | } |
| 20818 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20819 | .printlock = printlock_w39v040a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20820 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 20821 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 20822 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20823 | .prepare_access = prepare_memory_access, |
| 20824 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 20825 | }, |
| 20826 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20827 | { |
| 20828 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20829 | .name = "W39V040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20830 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20831 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 20832 | .model_id = WINBOND_W39V040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20833 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 20834 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20835 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 20836 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20837 | .probe = probe_jedec, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 20838 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 20839 | .block_erasers = |
| 20840 | { |
| 20841 | { |
| 20842 | .eraseblocks = { {64 * 1024, 8} }, |
| 20843 | .block_erase = erase_sector_jedec, |
| 20844 | }, { |
| 20845 | .eraseblocks = { {512 * 1024, 1} }, |
| 20846 | .block_erase = erase_chip_block_jedec, |
| 20847 | } |
| 20848 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20849 | .printlock = printlock_w39v040b, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20850 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 20851 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 20852 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20853 | .prepare_access = prepare_memory_access, |
| 20854 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 20855 | }, |
| 20856 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20857 | { |
| 20858 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20859 | .name = "W39V040C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20860 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20861 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 20862 | .model_id = WINBOND_W39V040C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20863 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 20864 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20865 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 20866 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20867 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20868 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 20869 | .block_erasers = |
| 20870 | { |
| 20871 | { |
| 20872 | .eraseblocks = { {64 * 1024, 8} }, |
| 20873 | .block_erase = erase_sector_jedec, |
| 20874 | }, { |
| 20875 | .eraseblocks = { {512 * 1024, 1} }, |
| 20876 | .block_erase = erase_chip_block_jedec, |
| 20877 | } |
| 20878 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 20879 | .printlock = printlock_w39v040c, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20880 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 20881 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 20882 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20883 | .prepare_access = prepare_memory_access, |
| 20884 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 20885 | }, |
| 20886 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20887 | { |
| 20888 | .vendor = "Winbond", |
| 20889 | .name = "W39V040FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20890 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20891 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 20892 | .model_id = WINBOND_W39V040FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20893 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 20894 | .page_size = 64 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 20895 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 23e10b8 | 2016-01-23 16:16:49 +0000 | [diff] [blame] | 20896 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20897 | .probe = probe_jedec, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 20898 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 20899 | .block_erasers = |
| 20900 | { |
| 20901 | { |
| 20902 | .eraseblocks = { {4 * 1024, 128} }, |
| 20903 | .block_erase = erase_block_jedec, |
| 20904 | }, { |
| 20905 | .eraseblocks = { {64 * 1024, 8} }, |
| 20906 | .block_erase = erase_sector_jedec, |
| 20907 | }, { |
| 20908 | .eraseblocks = { {512 * 1024, 1} }, |
| 20909 | .block_erase = erase_chip_block_jedec, |
| 20910 | } |
| 20911 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20912 | .printlock = printlock_w39v040fa, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 20913 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20914 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 20915 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 20916 | .voltage = {3000, 3600}, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 20917 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20918 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 20919 | }, |
| 20920 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20921 | { |
| 20922 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20923 | .name = "W39V040FB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20924 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20925 | .manufacture_id = WINBOND_ID, |
| 20926 | .model_id = WINBOND_W39V040B, |
| 20927 | .total_size = 512, |
| 20928 | .page_size = 64 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 20929 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 0be072c | 2016-03-13 15:16:30 +0000 | [diff] [blame] | 20930 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20931 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 20932 | .probe_timing = 10, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20933 | .block_erasers = |
| 20934 | { |
| 20935 | { |
| 20936 | .eraseblocks = { {64 * 1024, 8} }, |
| 20937 | .block_erase = erase_sector_jedec, |
| 20938 | }, { |
| 20939 | .eraseblocks = { {512 * 1024, 1} }, |
| 20940 | .block_erase = erase_chip_block_jedec, |
| 20941 | } |
| 20942 | }, |
| 20943 | .printlock = printlock_w39v040fb, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 20944 | .unlock = unlock_regspace2_uniform_64k, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20945 | .write = write_jedec_1, |
| 20946 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 20947 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 20948 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20949 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20950 | }, |
| 20951 | |
| 20952 | { |
| 20953 | .vendor = "Winbond", |
| 20954 | .name = "W39V040FC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20955 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20956 | .manufacture_id = WINBOND_ID, |
| 20957 | .model_id = WINBOND_W39V040C, |
| 20958 | .total_size = 512, |
| 20959 | .page_size = 64 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 20960 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 20961 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20962 | .probe = probe_jedec, |
| 20963 | .probe_timing = 10, |
| 20964 | .block_erasers = |
| 20965 | { |
| 20966 | { |
| 20967 | .eraseblocks = { {64 * 1024, 8} }, |
| 20968 | .block_erase = erase_sector_jedec, |
| 20969 | }, { |
| 20970 | .eraseblocks = { {512 * 1024, 1} }, |
| 20971 | .block_erase = erase_chip_block_jedec, |
| 20972 | } |
| 20973 | }, |
| 20974 | .printlock = printlock_w39v040fc, |
| 20975 | .write = write_jedec_1, |
| 20976 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 20977 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 20978 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 20979 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 20980 | }, |
| 20981 | |
| 20982 | { |
| 20983 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20984 | .name = "W39V080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 20985 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20986 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 20987 | .model_id = WINBOND_W39V080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20988 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 20989 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 20990 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 20991 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 20992 | .probe = probe_jedec, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 20993 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 20994 | .block_erasers = |
| 20995 | { |
| 20996 | { |
| 20997 | .eraseblocks = { {64 * 1024, 16} }, |
| 20998 | .block_erase = erase_sector_jedec, |
| 20999 | }, { |
| 21000 | .eraseblocks = { {1024 * 1024, 1} }, |
| 21001 | .block_erase = erase_chip_block_jedec, |
| 21002 | } |
| 21003 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 21004 | .printlock = printlock_w39v080a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 21005 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 21006 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 21007 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 21008 | .prepare_access = prepare_memory_access, |
| 21009 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 21010 | }, |
| 21011 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21012 | { |
| 21013 | .vendor = "Winbond", |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 21014 | .name = "W39V080FA", |
| 21015 | .bustype = BUS_FWH, |
| 21016 | .manufacture_id = WINBOND_ID, |
| 21017 | .model_id = WINBOND_W39V080FA, |
| 21018 | .total_size = 1024, |
| 21019 | .page_size = 64 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 21020 | .feature_bits = FEATURE_EITHER_RESET, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 21021 | .tested = TEST_OK_PREW, |
| 21022 | .probe = probe_jedec, |
| 21023 | .probe_timing = 10, |
| 21024 | .block_erasers = |
| 21025 | { |
| 21026 | { |
| 21027 | .eraseblocks = { {64 * 1024, 16} }, |
| 21028 | .block_erase = erase_sector_jedec, |
| 21029 | }, { |
| 21030 | .eraseblocks = { {1024 * 1024, 1} }, |
| 21031 | .block_erase = erase_chip_block_jedec, |
| 21032 | } |
| 21033 | }, |
| 21034 | .printlock = printlock_w39v080fa, |
| 21035 | .unlock = unlock_regspace2_uniform_64k, |
| 21036 | .write = write_jedec_1, |
| 21037 | .read = read_memmapped, |
| 21038 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 21039 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 21040 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 21041 | }, |
| 21042 | |
| 21043 | { |
| 21044 | .vendor = "Winbond", |
| 21045 | .name = "W39V080FA (dual mode)", |
| 21046 | .bustype = BUS_FWH, |
| 21047 | .manufacture_id = WINBOND_ID, |
| 21048 | .model_id = WINBOND_W39V080FA_DM, |
| 21049 | .total_size = 512, |
| 21050 | .page_size = 64 * 1024, |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 21051 | .feature_bits = FEATURE_EITHER_RESET, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 21052 | .tested = TEST_UNTESTED, |
| 21053 | .probe = probe_jedec, |
| 21054 | .probe_timing = 10, |
| 21055 | .block_erasers = |
| 21056 | { |
| 21057 | { |
| 21058 | .eraseblocks = { {64 * 1024, 8} }, |
| 21059 | .block_erase = erase_sector_jedec, |
| 21060 | }, { |
| 21061 | .eraseblocks = { {512 * 1024, 1} }, |
| 21062 | .block_erase = erase_chip_block_jedec, |
| 21063 | } |
| 21064 | }, |
| 21065 | .printlock = printlock_w39v080fa_dual, |
| 21066 | .write = write_jedec_1, |
| 21067 | .read = read_memmapped, |
| 21068 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Nico Huber | b197402 | 2023-01-12 13:13:12 +0100 | [diff] [blame] | 21069 | .prepare_access = prepare_memory_register_access, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 21070 | .finish_access = finish_memory_access, |
Alan Green | 1f9cc7d | 2019-07-01 11:10:45 +1000 | [diff] [blame] | 21071 | }, |
| 21072 | |
| 21073 | { |
| 21074 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 21075 | .name = "W49F002U/N", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 21076 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21077 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 21078 | .model_id = WINBOND_W49F002U, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21079 | .total_size = 256, |
| 21080 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 21081 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 21082 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21083 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 21084 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 21085 | .block_erasers = |
| 21086 | { |
| 21087 | { |
| 21088 | .eraseblocks = { |
| 21089 | {128 * 1024, 1}, |
| 21090 | {96 * 1024, 1}, |
| 21091 | {8 * 1024, 2}, |
| 21092 | {16 * 1024, 1}, |
| 21093 | }, |
| 21094 | .block_erase = erase_sector_jedec, |
| 21095 | }, { |
| 21096 | .eraseblocks = { {256 * 1024, 1} }, |
| 21097 | .block_erase = erase_chip_block_jedec, |
| 21098 | } |
| 21099 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 21100 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 21101 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 21102 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 21103 | .prepare_access = prepare_memory_access, |
| 21104 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 21105 | }, |
| 21106 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21107 | { |
| 21108 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 21109 | .name = "W49F020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 21110 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 21111 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 21112 | .model_id = WINBOND_W49F020, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 21113 | .total_size = 256, |
| 21114 | .page_size = 128, |
| 21115 | .feature_bits = FEATURE_EITHER_RESET, |
| 21116 | .tested = TEST_OK_PROBE, |
| 21117 | .probe = probe_jedec, |
| 21118 | .probe_timing = 10, |
| 21119 | .block_erasers = |
| 21120 | { |
| 21121 | { |
| 21122 | .eraseblocks = { {256 * 1024, 1} }, |
| 21123 | .block_erase = erase_chip_block_jedec, |
| 21124 | } |
| 21125 | }, |
| 21126 | .write = write_jedec_1, |
| 21127 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 21128 | .voltage = {4500, 5500}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 21129 | .prepare_access = prepare_memory_access, |
| 21130 | .finish_access = finish_memory_access, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 21131 | }, |
| 21132 | |
| 21133 | { |
| 21134 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21135 | .name = "W49V002A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 21136 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21137 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 21138 | .model_id = WINBOND_W49V002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21139 | .total_size = 256, |
| 21140 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 21141 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 21142 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21143 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 21144 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 21145 | .block_erasers = |
| 21146 | { |
| 21147 | { |
| 21148 | .eraseblocks = { |
| 21149 | {64 * 1024, 3}, |
| 21150 | {32 * 1024, 1}, |
| 21151 | {8 * 1024, 2}, |
| 21152 | {16 * 1024, 1}, |
| 21153 | }, |
| 21154 | .block_erase = erase_sector_jedec, |
| 21155 | }, { |
| 21156 | .eraseblocks = { {256 * 1024, 1} }, |
| 21157 | .block_erase = erase_chip_block_jedec, |
| 21158 | } |
| 21159 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 21160 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 21161 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 21162 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 21163 | .prepare_access = prepare_memory_access, |
| 21164 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 21165 | }, |
| 21166 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21167 | { |
| 21168 | .vendor = "Winbond", |
| 21169 | .name = "W49V002FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 21170 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21171 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 21172 | .model_id = WINBOND_W49V002FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21173 | .total_size = 256, |
| 21174 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 21175 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 21176 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21177 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 21178 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 21179 | .block_erasers = |
| 21180 | { |
| 21181 | { |
| 21182 | .eraseblocks = { |
| 21183 | {64 * 1024, 3}, |
| 21184 | {32 * 1024, 1}, |
| 21185 | {8 * 1024, 2}, |
| 21186 | {16 * 1024, 1}, |
| 21187 | }, |
| 21188 | .block_erase = erase_sector_jedec, |
| 21189 | }, { |
| 21190 | .eraseblocks = { {256 * 1024, 1} }, |
| 21191 | .block_erase = erase_chip_block_jedec, |
| 21192 | } |
| 21193 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 21194 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 21195 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 21196 | .voltage = {3000, 3600}, |
Nico Huber | 9eec407 | 2023-01-12 01:17:30 +0100 | [diff] [blame] | 21197 | .prepare_access = prepare_memory_access, |
| 21198 | .finish_access = finish_memory_access, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 21199 | }, |
| 21200 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21201 | { |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 21202 | .vendor = "XMC", |
| 21203 | .name = "XM25QH128C", |
| 21204 | .bustype = BUS_SPI, |
| 21205 | .manufacture_id = ST_ID, |
| 21206 | .model_id = XMC_XM25QH128C, |
| 21207 | .total_size = 16384, |
| 21208 | .page_size = 256, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 21209 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QPI_SRP, |
| 21210 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 21211 | .tested = TEST_UNTESTED, |
| 21212 | .probe = probe_spi_rdid, |
| 21213 | .probe_timing = TIMING_ZERO, |
| 21214 | .block_erasers = |
| 21215 | { |
| 21216 | { |
| 21217 | .eraseblocks = { {4 * 1024, 4096} }, |
| 21218 | .block_erase = spi_block_erase_20, |
| 21219 | }, { |
| 21220 | .eraseblocks = { {32 * 1024, 512} }, |
| 21221 | .block_erase = spi_block_erase_52, |
| 21222 | }, { |
| 21223 | .eraseblocks = { {64 * 1024, 256} }, |
| 21224 | .block_erase = spi_block_erase_d8, |
| 21225 | }, { |
| 21226 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 21227 | .block_erase = spi_block_erase_60, |
| 21228 | }, { |
| 21229 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 21230 | .block_erase = spi_block_erase_c7, |
| 21231 | } |
| 21232 | }, |
| 21233 | .printlock = spi_prettyprint_status_register_plain, |
| 21234 | .unlock = spi_disable_blockprotect, |
| 21235 | .write = spi_chip_write_256, |
| 21236 | .read = spi_chip_read, |
| 21237 | .voltage = {2700, 3600}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 21238 | .reg_bits = |
| 21239 | { |
Nico Huber | 96786d0 | 2024-01-06 18:30:15 +0100 | [diff] [blame] | 21240 | .qe = {STATUS2, 1, RW}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 21241 | .srp = {STATUS1, 7, RW}, |
| 21242 | .srl = {STATUS2, 0, RW}, |
| 21243 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}}, |
| 21244 | .tb = {STATUS1, 5, RW}, |
| 21245 | .sec = {STATUS1, 6, RW}, |
| 21246 | .cmp = {STATUS2, 6, RW}, |
| 21247 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 21248 | .wp_write_cfg = spi_wp_write_cfg, |
| 21249 | .wp_read_cfg = spi_wp_read_cfg, |
| 21250 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 21251 | .decode_range = decode_range_spi25, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 21252 | .prepare_access = spi_prepare_io, |
| 21253 | .finish_access = spi_finish_io, |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 21254 | }, |
| 21255 | |
| 21256 | { |
| 21257 | .vendor = "XMC", |
| 21258 | .name = "XM25QH256C", |
| 21259 | .bustype = BUS_SPI, |
| 21260 | .manufacture_id = ST_ID, |
| 21261 | .model_id = XMC_XM25QH256C, |
| 21262 | .total_size = 32768, |
| 21263 | .page_size = 256, |
| 21264 | /* supports SFDP */ |
Nico Huber | 96786d0 | 2024-01-06 18:30:15 +0100 | [diff] [blame] | 21265 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | |
| 21266 | FEATURE_4BA_WREN | FEATURE_QPI_SRP, |
| 21267 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 21268 | .tested = TEST_UNTESTED, |
| 21269 | .probe = probe_spi_rdid, |
| 21270 | .probe_timing = TIMING_ZERO, |
| 21271 | .block_erasers = |
| 21272 | { |
| 21273 | { |
| 21274 | .eraseblocks = { {4 * 1024, 8192} }, |
| 21275 | .block_erase = spi_block_erase_21, |
| 21276 | }, { |
| 21277 | .eraseblocks = { {4 * 1024, 8192} }, |
| 21278 | .block_erase = spi_block_erase_20, |
| 21279 | }, { |
| 21280 | .eraseblocks = { {32 * 1024, 1024} }, |
| 21281 | .block_erase = spi_block_erase_52, |
| 21282 | }, { |
| 21283 | .eraseblocks = { {64 * 1024, 512} }, |
| 21284 | .block_erase = spi_block_erase_dc, |
| 21285 | }, { |
| 21286 | .eraseblocks = { {64 * 1024, 512} }, |
| 21287 | .block_erase = spi_block_erase_d8, |
| 21288 | }, { |
| 21289 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 21290 | .block_erase = spi_block_erase_60, |
| 21291 | }, { |
| 21292 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 21293 | .block_erase = spi_block_erase_c7, |
| 21294 | } |
| 21295 | }, |
| 21296 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 21297 | .unlock = spi_disable_blockprotect, |
| 21298 | .write = spi_chip_write_256, |
| 21299 | .read = spi_chip_read, |
| 21300 | .voltage = {2700, 3600}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 21301 | .reg_bits = |
| 21302 | { |
Nico Huber | 96786d0 | 2024-01-06 18:30:15 +0100 | [diff] [blame] | 21303 | .qe = {STATUS2, 1, RW}, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 21304 | .srp = {STATUS1, 7, RW}, |
| 21305 | .srl = {STATUS2, 0, RW}, |
| 21306 | .bp = {{STATUS1, 2, RW}, {STATUS1, 3, RW}, {STATUS1, 4, RW}, {STATUS1, 5, RW}}, |
| 21307 | .tb = {STATUS1, 6, RW}, |
| 21308 | }, |
Nico Huber | aabb3e0 | 2023-01-13 00:22:30 +0100 | [diff] [blame] | 21309 | .wp_write_cfg = spi_wp_write_cfg, |
| 21310 | .wp_read_cfg = spi_wp_read_cfg, |
| 21311 | .wp_get_ranges = spi_wp_get_available_ranges, |
Nikolai Artemiev | d32e18b | 2022-02-15 18:06:55 +1100 | [diff] [blame] | 21312 | .decode_range = decode_range_spi25, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 21313 | .prepare_access = spi_prepare_io, |
| 21314 | .finish_access = spi_finish_io, |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 21315 | }, |
| 21316 | |
| 21317 | { |
| 21318 | .vendor = "XMC", |
| 21319 | .name = "XM25QH64C", |
| 21320 | .bustype = BUS_SPI, |
| 21321 | .manufacture_id = ST_ID, |
| 21322 | .model_id = XMC_XM25QH64C, |
| 21323 | .total_size = 8192, |
| 21324 | .page_size = 256, |
Nico Huber | 96786d0 | 2024-01-06 18:30:15 +0100 | [diff] [blame] | 21325 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QPI_SRP, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 21326 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 21327 | .tested = TEST_UNTESTED, |
| 21328 | .probe = probe_spi_rdid, |
| 21329 | .probe_timing = TIMING_ZERO, |
| 21330 | .block_erasers = |
| 21331 | { |
| 21332 | { |
| 21333 | .eraseblocks = { {4 * 1024, 2048} }, |
| 21334 | .block_erase = spi_block_erase_20, |
| 21335 | }, { |
| 21336 | .eraseblocks = { {32 * 1024, 256} }, |
| 21337 | .block_erase = spi_block_erase_52, |
| 21338 | }, { |
| 21339 | .eraseblocks = { {64 * 1024, 128} }, |
| 21340 | .block_erase = spi_block_erase_d8, |
| 21341 | }, { |
| 21342 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 21343 | .block_erase = spi_block_erase_60, |
| 21344 | }, { |
| 21345 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 21346 | .block_erase = spi_block_erase_c7, |
| 21347 | } |
| 21348 | }, |
Nico Huber | 96786d0 | 2024-01-06 18:30:15 +0100 | [diff] [blame] | 21349 | .reg_bits = |
| 21350 | { |
| 21351 | .qe = {STATUS2, 1, RW}, |
| 21352 | }, |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 21353 | .printlock = spi_prettyprint_status_register_plain, |
| 21354 | .unlock = spi_disable_blockprotect, |
| 21355 | .write = spi_chip_write_256, |
| 21356 | .read = spi_chip_read, |
| 21357 | .voltage = {2700, 3600}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 21358 | .prepare_access = spi_prepare_io, |
| 21359 | .finish_access = spi_finish_io, |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 21360 | }, |
| 21361 | |
| 21362 | { |
| 21363 | .vendor = "XMC", |
| 21364 | .name = "XM25QU128C", |
| 21365 | .bustype = BUS_SPI, |
| 21366 | .manufacture_id = ST_ID, |
| 21367 | .model_id = XMC_XM25QU128C, |
| 21368 | .total_size = 16384, |
| 21369 | .page_size = 256, |
| 21370 | /* supports SFDP */ |
Nico Huber | 96786d0 | 2024-01-06 18:30:15 +0100 | [diff] [blame] | 21371 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QPI_SRP, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 21372 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 21373 | .tested = TEST_UNTESTED, |
| 21374 | .probe = probe_spi_rdid, |
| 21375 | .probe_timing = TIMING_ZERO, |
| 21376 | .block_erasers = |
| 21377 | { |
| 21378 | { |
| 21379 | .eraseblocks = { {4 * 1024, 4096} }, |
| 21380 | .block_erase = spi_block_erase_20, |
| 21381 | }, { |
| 21382 | .eraseblocks = { {32 * 1024, 512} }, |
| 21383 | .block_erase = spi_block_erase_52, |
| 21384 | }, { |
| 21385 | .eraseblocks = { {64 * 1024, 256} }, |
| 21386 | .block_erase = spi_block_erase_d8, |
| 21387 | }, { |
| 21388 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 21389 | .block_erase = spi_block_erase_60, |
| 21390 | }, { |
| 21391 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 21392 | .block_erase = spi_block_erase_c7, |
| 21393 | } |
| 21394 | }, |
Nico Huber | 96786d0 | 2024-01-06 18:30:15 +0100 | [diff] [blame] | 21395 | .reg_bits = |
| 21396 | { |
| 21397 | .qe = {STATUS2, 1, RW}, |
| 21398 | }, |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 21399 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 21400 | .unlock = spi_disable_blockprotect, |
| 21401 | .write = spi_chip_write_256, |
| 21402 | .read = spi_chip_read, |
| 21403 | .voltage = {1650, 1950}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 21404 | .prepare_access = spi_prepare_io, |
| 21405 | .finish_access = spi_finish_io, |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 21406 | }, |
| 21407 | |
| 21408 | { |
| 21409 | .vendor = "XMC", |
| 21410 | .name = "XM25QU256C", |
| 21411 | .bustype = BUS_SPI, |
| 21412 | .manufacture_id = ST_ID, |
| 21413 | .model_id = XMC_XM25QU256C, |
| 21414 | .total_size = 32768, |
| 21415 | .page_size = 256, |
| 21416 | /* supports SFDP */ |
Nico Huber | 96786d0 | 2024-01-06 18:30:15 +0100 | [diff] [blame] | 21417 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | |
| 21418 | FEATURE_4BA_WREN | FEATURE_QPI_SRP, |
| 21419 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 21420 | .tested = TEST_UNTESTED, |
| 21421 | .probe = probe_spi_rdid, |
| 21422 | .probe_timing = TIMING_ZERO, |
| 21423 | .block_erasers = |
| 21424 | { |
| 21425 | { |
| 21426 | .eraseblocks = { {4 * 1024, 8192} }, |
| 21427 | .block_erase = spi_block_erase_21, |
| 21428 | }, { |
| 21429 | .eraseblocks = { {4 * 1024, 8192} }, |
| 21430 | .block_erase = spi_block_erase_20, |
| 21431 | }, { |
| 21432 | .eraseblocks = { {32 * 1024, 1024} }, |
| 21433 | .block_erase = spi_block_erase_52, |
| 21434 | }, { |
| 21435 | .eraseblocks = { {64 * 1024, 512} }, |
| 21436 | .block_erase = spi_block_erase_dc, |
| 21437 | }, { |
| 21438 | .eraseblocks = { {64 * 1024, 512} }, |
| 21439 | .block_erase = spi_block_erase_d8, |
| 21440 | }, { |
| 21441 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 21442 | .block_erase = spi_block_erase_60, |
| 21443 | }, { |
| 21444 | .eraseblocks = { {32 * 1024 * 1024, 1} }, |
| 21445 | .block_erase = spi_block_erase_c7, |
| 21446 | } |
| 21447 | }, |
Nico Huber | 96786d0 | 2024-01-06 18:30:15 +0100 | [diff] [blame] | 21448 | .reg_bits = |
| 21449 | { |
| 21450 | .qe = {STATUS2, 1, RW}, |
| 21451 | }, |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 21452 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 21453 | .unlock = spi_disable_blockprotect, |
| 21454 | .write = spi_chip_write_256, |
| 21455 | .read = spi_chip_read, |
| 21456 | .voltage = {1650, 1950}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 21457 | .prepare_access = spi_prepare_io, |
| 21458 | .finish_access = spi_finish_io, |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 21459 | }, |
| 21460 | |
| 21461 | { |
| 21462 | .vendor = "XMC", |
| 21463 | .name = "XM25QU64C", |
| 21464 | .bustype = BUS_SPI, |
| 21465 | .manufacture_id = ST_ID, |
| 21466 | .model_id = XMC_XM25QU64C, |
| 21467 | .total_size = 8192, |
| 21468 | .page_size = 256, |
Nico Huber | 96786d0 | 2024-01-06 18:30:15 +0100 | [diff] [blame] | 21469 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_WRSR2 | FEATURE_OTP | FEATURE_QPI_SRP, |
Nico Huber | 1412d9f | 2024-01-06 18:25:49 +0100 | [diff] [blame] | 21470 | .dummy_cycles = { .qpi_read_params = { 2, 4, 6, 8 } }, |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 21471 | .tested = TEST_UNTESTED, |
| 21472 | .probe = probe_spi_rdid, |
| 21473 | .probe_timing = TIMING_ZERO, |
| 21474 | .block_erasers = |
| 21475 | { |
| 21476 | { |
| 21477 | .eraseblocks = { {4 * 1024, 2048} }, |
| 21478 | .block_erase = spi_block_erase_20, |
| 21479 | }, { |
| 21480 | .eraseblocks = { {32 * 1024, 256} }, |
| 21481 | .block_erase = spi_block_erase_52, |
| 21482 | }, { |
| 21483 | .eraseblocks = { {64 * 1024, 128} }, |
| 21484 | .block_erase = spi_block_erase_d8, |
| 21485 | }, { |
| 21486 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 21487 | .block_erase = spi_block_erase_60, |
| 21488 | }, { |
| 21489 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 21490 | .block_erase = spi_block_erase_c7, |
| 21491 | } |
| 21492 | }, |
Nico Huber | 96786d0 | 2024-01-06 18:30:15 +0100 | [diff] [blame] | 21493 | .reg_bits = |
| 21494 | { |
| 21495 | .qe = {STATUS2, 1, RW}, |
| 21496 | }, |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 21497 | .printlock = spi_prettyprint_status_register_plain, |
| 21498 | .unlock = spi_disable_blockprotect, |
| 21499 | .write = spi_chip_write_256, |
| 21500 | .read = spi_chip_read, |
| 21501 | .voltage = {1650, 1950}, |
Nico Huber | 930d421 | 2024-05-04 18:59:15 +0200 | [diff] [blame] | 21502 | .prepare_access = spi_prepare_io, |
| 21503 | .finish_access = spi_finish_io, |
luke he | ef88423 | 2020-12-28 18:22:21 +0800 | [diff] [blame] | 21504 | }, |
| 21505 | |
| 21506 | { |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 21507 | .vendor = "Zetta Device", |
| 21508 | .name = "ZD25D20", |
| 21509 | .bustype = BUS_SPI, |
| 21510 | .manufacture_id = ZETTADEVICE_ID, |
| 21511 | .model_id = ZETTADEVICE_ZD25D20, |
| 21512 | .total_size = 256, |
| 21513 | .page_size = 256, |
| 21514 | .feature_bits = FEATURE_WRSR_WREN, |
| 21515 | .tested = TEST_UNTESTED, |
| 21516 | .probe = probe_spi_rdid, |
| 21517 | .probe_timing = TIMING_ZERO, |
| 21518 | .block_erasers = |
David Hendricks | a72d5a9 | 2018-02-11 17:58:44 -0800 | [diff] [blame] | 21519 | { |
| 21520 | { |
| 21521 | .eraseblocks = { {4 * 1024, 64} }, |
| 21522 | .block_erase = spi_block_erase_20, |
| 21523 | }, { |
| 21524 | .eraseblocks = { {32 * 1024, 8} }, |
| 21525 | .block_erase = spi_block_erase_52, |
| 21526 | }, { |
| 21527 | .eraseblocks = { {64 * 1024, 4} }, |
| 21528 | .block_erase = spi_block_erase_d8, |
| 21529 | }, { |
| 21530 | .eraseblocks = { {256 * 1024, 1} }, |
| 21531 | .block_erase = spi_block_erase_60, |
| 21532 | }, { |
| 21533 | .eraseblocks = { {256 * 1024, 1} }, |
| 21534 | .block_erase = spi_block_erase_c7, |
| 21535 | } |
| 21536 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 21537 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 21538 | .unlock = spi_disable_blockprotect, |
| 21539 | .write = spi_chip_write_256, |
| 21540 | .read = spi_chip_read, |
| 21541 | .voltage = {2700, 3600}, |
David Hendricks | a72d5a9 | 2018-02-11 17:58:44 -0800 | [diff] [blame] | 21542 | }, |
| 21543 | |
| 21544 | { |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 21545 | .vendor = "Zetta Device", |
| 21546 | .name = "ZD25D40", |
| 21547 | .bustype = BUS_SPI, |
| 21548 | .manufacture_id = ZETTADEVICE_ID, |
| 21549 | .model_id = ZETTADEVICE_ZD25D40, |
| 21550 | .total_size = 512, |
| 21551 | .page_size = 256, |
| 21552 | .feature_bits = FEATURE_WRSR_WREN, |
| 21553 | .tested = TEST_UNTESTED, |
| 21554 | .probe = probe_spi_rdid, |
| 21555 | .probe_timing = TIMING_ZERO, |
| 21556 | .block_erasers = |
nybash | cbb46e2 | 2018-02-11 17:53:49 -0800 | [diff] [blame] | 21557 | { |
| 21558 | { |
| 21559 | .eraseblocks = { {4 * 1024, 128} }, |
| 21560 | .block_erase = spi_block_erase_20, |
| 21561 | }, { |
| 21562 | .eraseblocks = { {32 * 1024, 16} }, |
| 21563 | .block_erase = spi_block_erase_52, |
| 21564 | }, { |
| 21565 | .eraseblocks = { {64 * 1024, 8} }, |
| 21566 | .block_erase = spi_block_erase_d8, |
| 21567 | }, { |
| 21568 | .eraseblocks = { {512 * 1024, 1} }, |
| 21569 | .block_erase = spi_block_erase_60, |
| 21570 | }, { |
| 21571 | .eraseblocks = { {512 * 1024, 1} }, |
| 21572 | .block_erase = spi_block_erase_c7, |
| 21573 | } |
| 21574 | }, |
Alan Green | fa3fcd3 | 2019-06-27 15:41:50 +1000 | [diff] [blame] | 21575 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 21576 | .unlock = spi_disable_blockprotect, |
| 21577 | .write = spi_chip_write_256, |
| 21578 | .read = spi_chip_read, |
| 21579 | .voltage = {2700, 3600}, |
nybash | cbb46e2 | 2018-02-11 17:53:49 -0800 | [diff] [blame] | 21580 | }, |
| 21581 | |
Stefan Tauner | ac1b4c8 | 2012-02-17 14:51:04 +0000 | [diff] [blame] | 21582 | { |
Alan Green | dd59220 | 2019-08-23 10:11:37 +1000 | [diff] [blame] | 21583 | .vendor = "Unknown", |
| 21584 | .name = "SFDP-capable chip", |
| 21585 | .bustype = BUS_SPI, |
| 21586 | .manufacture_id = GENERIC_MANUF_ID, |
| 21587 | .model_id = SFDP_DEVICE_ID, |
| 21588 | .total_size = 0, /* set by probing function */ |
| 21589 | .page_size = 0, /* set by probing function */ |
| 21590 | .feature_bits = 0, /* set by probing function */ |
| 21591 | /* We present our own "report this" text hence we do not */ |
| 21592 | /* want the default "This flash part has status UNTESTED..." */ |
| 21593 | /* text to be printed. */ |
| 21594 | .tested = TEST_OK_PREW, |
| 21595 | .probe = probe_spi_sfdp, |
| 21596 | .block_erasers = {}, /* set by probing function */ |
| 21597 | .unlock = spi_disable_blockprotect, /* is this safe? */ |
| 21598 | .write = NULL, /* set by probing function */ |
| 21599 | .read = spi_chip_read, |
| 21600 | /* FIXME: some vendor extensions define this */ |
| 21601 | .voltage = {0}, |
| 21602 | }, |
| 21603 | |
| 21604 | { |
Carl-Daniel Hailfinger | 532c717 | 2011-11-04 21:35:26 +0000 | [diff] [blame] | 21605 | .vendor = "Programmer", |
| 21606 | .name = "Opaque flash chip", |
| 21607 | .bustype = BUS_PROG, |
| 21608 | .manufacture_id = PROGMANUF_ID, |
| 21609 | .model_id = PROGDEV_ID, |
| 21610 | .total_size = 0, |
| 21611 | .page_size = 256, |
| 21612 | /* probe is assumed to work, rest will be filled in by probe */ |
| 21613 | .tested = TEST_OK_PROBE, |
| 21614 | .probe = probe_opaque, |
| 21615 | /* eraseblock sizes will be set by the probing function */ |
| 21616 | .block_erasers = |
| 21617 | { |
| 21618 | { |
| 21619 | .block_erase = erase_opaque, |
| 21620 | } |
| 21621 | }, |
| 21622 | .write = write_opaque, |
| 21623 | .read = read_opaque, |
| 21624 | }, |
| 21625 | |
| 21626 | { |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 21627 | .vendor = "AMIC", |
| 21628 | .name = "unknown AMIC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 21629 | .bustype = BUS_SPI, |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 21630 | .manufacture_id = AMIC_ID, |
| 21631 | .model_id = GENERIC_DEVICE_ID, |
| 21632 | .total_size = 0, |
| 21633 | .page_size = 256, |
| 21634 | .tested = TEST_BAD_PREW, |
| 21635 | .probe = probe_spi_rdid4, |
| 21636 | .probe_timing = TIMING_ZERO, |
| 21637 | .write = NULL, |
| 21638 | .read = NULL, |
| 21639 | }, |
| 21640 | |
| 21641 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21642 | .vendor = "Atmel", |
| 21643 | .name = "unknown Atmel SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 21644 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21645 | .manufacture_id = ATMEL_ID, |
| 21646 | .model_id = GENERIC_DEVICE_ID, |
| 21647 | .total_size = 0, |
| 21648 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 21649 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21650 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 21651 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21652 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 21653 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 21654 | }, |
| 21655 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21656 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 21657 | .vendor = "Eon", |
| 21658 | .name = "unknown Eon SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 21659 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21660 | .manufacture_id = EON_ID_NOPREFIX, |
| 21661 | .model_id = GENERIC_DEVICE_ID, |
| 21662 | .total_size = 0, |
| 21663 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 21664 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21665 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 21666 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21667 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 21668 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 21669 | }, |
| 21670 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21671 | { |
| 21672 | .vendor = "Macronix", |
| 21673 | .name = "unknown Macronix SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 21674 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 21675 | .manufacture_id = MACRONIX_ID, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21676 | .model_id = GENERIC_DEVICE_ID, |
| 21677 | .total_size = 0, |
| 21678 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 21679 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21680 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 21681 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21682 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 21683 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 21684 | }, |
| 21685 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21686 | { |
| 21687 | .vendor = "PMC", |
| 21688 | .name = "unknown PMC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 21689 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21690 | .manufacture_id = PMC_ID, |
| 21691 | .model_id = GENERIC_DEVICE_ID, |
| 21692 | .total_size = 0, |
| 21693 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 21694 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21695 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 21696 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21697 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 21698 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 21699 | }, |
| 21700 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21701 | { |
| 21702 | .vendor = "SST", |
| 21703 | .name = "unknown SST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 21704 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21705 | .manufacture_id = SST_ID, |
| 21706 | .model_id = GENERIC_DEVICE_ID, |
| 21707 | .total_size = 0, |
| 21708 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 21709 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21710 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 21711 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21712 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 21713 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 21714 | }, |
| 21715 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21716 | { |
| 21717 | .vendor = "ST", |
| 21718 | .name = "unknown ST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 21719 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21720 | .manufacture_id = ST_ID, |
| 21721 | .model_id = GENERIC_DEVICE_ID, |
| 21722 | .total_size = 0, |
| 21723 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 21724 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21725 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 21726 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 21727 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 21728 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 21729 | }, |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 21730 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 21731 | { |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 21732 | .vendor = "Sanyo", |
| 21733 | .name = "unknown Sanyo SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 21734 | .bustype = BUS_SPI, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 21735 | .manufacture_id = SANYO_ID, |
| 21736 | .model_id = GENERIC_DEVICE_ID, |
| 21737 | .total_size = 0, |
| 21738 | .page_size = 256, |
| 21739 | .tested = TEST_BAD_PREW, |
| 21740 | .probe = probe_spi_rdid, |
| 21741 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 21742 | .write = NULL, |
| 21743 | .read = NULL, |
| 21744 | }, |
| 21745 | |
| 21746 | { |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 21747 | .vendor = "Winbond", |
| 21748 | .name = "unknown Winbond (ex Nexcom) SPI chip", |
| 21749 | .bustype = BUS_SPI, |
| 21750 | .manufacture_id = WINBOND_NEX_ID, |
| 21751 | .model_id = GENERIC_DEVICE_ID, |
| 21752 | .total_size = 0, |
| 21753 | .page_size = 256, |
| 21754 | .tested = TEST_BAD_PREW, |
| 21755 | .probe = probe_spi_rdid, |
| 21756 | .probe_timing = TIMING_ZERO, |
| 21757 | .write = NULL, |
| 21758 | .read = NULL, |
| 21759 | }, |
| 21760 | |
| 21761 | { |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 21762 | .vendor = "Generic", |
| 21763 | .name = "unknown SPI chip (RDID)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 21764 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 21765 | .manufacture_id = GENERIC_MANUF_ID, |
| 21766 | .model_id = GENERIC_DEVICE_ID, |
| 21767 | .total_size = 0, |
| 21768 | .page_size = 256, |
| 21769 | .tested = TEST_BAD_PREW, |
| 21770 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 21771 | .write = NULL, |
| 21772 | }, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 21773 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 21774 | { |
| 21775 | .vendor = "Generic", |
| 21776 | .name = "unknown SPI chip (REMS)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 21777 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 21778 | .manufacture_id = GENERIC_MANUF_ID, |
| 21779 | .model_id = GENERIC_DEVICE_ID, |
| 21780 | .total_size = 0, |
| 21781 | .page_size = 256, |
| 21782 | .tested = TEST_BAD_PREW, |
| 21783 | .probe = probe_spi_rems, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 21784 | .write = NULL, |
| 21785 | }, |
| 21786 | |
Stefan Tauner | 96658be | 2014-05-26 22:05:31 +0000 | [diff] [blame] | 21787 | {0} |
Stephan Guilloux | 72cf565 | 2009-04-21 01:46:07 +0000 | [diff] [blame] | 21788 | }; |
Stefan Tauner | 96658be | 2014-05-26 22:05:31 +0000 | [diff] [blame] | 21789 | |
| 21790 | const unsigned int flashchips_size = ARRAY_SIZE(flashchips); |