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 | * |
Stefan Reinauer | ce53297 | 2007-05-23 17:20:56 +0000 | [diff] [blame] | 20 | * You should have received a copy of the GNU General Public License |
| 21 | * along with this program; if not, write to the Free Software |
Uwe Hermann | d110764 | 2007-08-29 17:52:32 +0000 | [diff] [blame] | 22 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 23 | */ |
| 24 | |
| 25 | #include "flash.h" |
Carl-Daniel Hailfinger | 0845464 | 2009-06-15 14:14:48 +0000 | [diff] [blame] | 26 | #include "flashchips.h" |
Sean Nelson | 14ba668 | 2010-02-26 05:48:29 +0000 | [diff] [blame] | 27 | #include "chipdrivers.h" |
Ollie Lho | 184a404 | 2005-11-26 21:55:36 +0000 | [diff] [blame] | 28 | |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 29 | /** |
Uwe Hermann | a972040 | 2009-05-21 15:55:46 +0000 | [diff] [blame] | 30 | * List of supported flash chips. |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 31 | * |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 32 | * Please keep the list sorted by vendor name and chip family, so that the output of 'flashrom -L' is roughly |
| 33 | * alphabetically sorted. Within families keep them in order of density. |
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", |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 62 | .name = "Am29F010A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 63 | .bustype = BUS_PARALLEL, |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 64 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 65 | .model_id = AMD_AM29F010B, /* Same as Am29F010A */ |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 66 | .total_size = 128, |
| 67 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 68 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 69 | .tested = TEST_OK_PRE, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 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 = { {16 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 76 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 77 | }, { |
| 78 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 79 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 80 | }, |
| 81 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 82 | .write = write_jedec_1, |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 83 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 84 | .voltage = {4500, 5500}, |
Uwe Hermann | a8b3727 | 2009-06-19 15:54:39 +0000 | [diff] [blame] | 85 | }, |
| 86 | |
| 87 | { |
| 88 | .vendor = "AMD", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 89 | .name = "Am29F002(N)BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 90 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 91 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 92 | .model_id = AMD_AM29F002BB, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 93 | .total_size = 256, |
| 94 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 95 | .feature_bits = FEATURE_SHORT_RESET | FEATURE_ADDR_2AA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 96 | .tested = TEST_UNTESTED, |
| 97 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 98 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 99 | .block_erasers = |
| 100 | { |
| 101 | { |
| 102 | .eraseblocks = { |
| 103 | {16 * 1024, 1}, |
| 104 | {8 * 1024, 2}, |
| 105 | {32 * 1024, 1}, |
| 106 | {64 * 1024, 3}, |
| 107 | }, |
| 108 | .block_erase = erase_sector_jedec, |
| 109 | }, { |
| 110 | .eraseblocks = { {256 * 1024, 1} }, |
| 111 | .block_erase = erase_chip_block_jedec, |
| 112 | }, |
| 113 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 114 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 115 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 116 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 117 | }, |
| 118 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 119 | { |
| 120 | .vendor = "AMD", |
| 121 | .name = "Am29F002(N)BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 122 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 123 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 124 | .model_id = AMD_AM29F002BT, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 125 | .total_size = 256, |
| 126 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 127 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_ADDR_2AA, |
| 128 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 129 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 130 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 131 | .block_erasers = |
| 132 | { |
| 133 | { |
| 134 | .eraseblocks = { |
| 135 | {64 * 1024, 3}, |
| 136 | {32 * 1024, 1}, |
| 137 | {8 * 1024, 2}, |
| 138 | {16 * 1024, 1}, |
| 139 | }, |
| 140 | .block_erase = erase_sector_jedec, |
| 141 | }, { |
| 142 | .eraseblocks = { {256 * 1024, 1} }, |
| 143 | .block_erase = erase_chip_block_jedec, |
| 144 | }, |
| 145 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 146 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 147 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 148 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 149 | }, |
| 150 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 151 | { |
| 152 | .vendor = "AMD", |
| 153 | .name = "Am29F016D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 154 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 155 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 156 | .model_id = AMD_AM29F016D, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 157 | .total_size = 2 * 1024, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 158 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 159 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 160 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 161 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 162 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 163 | .block_erasers = |
| 164 | { |
| 165 | { |
| 166 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 167 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 168 | }, { |
| 169 | .eraseblocks = { {2048 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 170 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 171 | }, |
| 172 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 173 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 174 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 175 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 176 | }, |
| 177 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 178 | { |
| 179 | .vendor = "AMD", |
| 180 | .name = "Am29F040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 181 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 182 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 183 | .model_id = AMD_AM29F040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 184 | .total_size = 512, |
| 185 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 186 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 187 | .tested = TEST_UNTESTED, |
| 188 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 189 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 190 | .block_erasers = |
| 191 | { |
| 192 | { |
| 193 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 194 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 195 | }, { |
| 196 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 197 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 198 | }, |
| 199 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 200 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 201 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 202 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 203 | }, |
| 204 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 205 | { |
| 206 | .vendor = "AMD", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 207 | .name = "Am29F080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 208 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | 5bae438 | 2009-06-02 00:38:14 +0000 | [diff] [blame] | 209 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 210 | .model_id = AMD_AM29F080B, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 211 | .total_size = 1024, |
| 212 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 213 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 214 | .tested = TEST_UNTESTED, |
| 215 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 216 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 217 | .block_erasers = |
| 218 | { |
| 219 | { |
| 220 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 221 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 222 | }, { |
| 223 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 224 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 225 | }, |
| 226 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 227 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 228 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 229 | .voltage = {4500, 5500}, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 230 | }, |
| 231 | |
| 232 | { |
| 233 | .vendor = "AMD", |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 234 | .name = "Am29LV001BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 235 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 236 | .manufacture_id = AMD_ID, |
| 237 | .model_id = AMD_AM29LV001BB, |
| 238 | .total_size = 128, |
| 239 | .page_size = 64 * 1024, /* unused */ |
| 240 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 241 | .tested = TEST_OK_PREW, |
| 242 | .probe = probe_jedec, |
| 243 | .probe_timing = TIMING_ZERO, |
| 244 | .block_erasers = |
| 245 | { |
| 246 | { |
| 247 | .eraseblocks = { |
| 248 | {8 * 1024, 1}, |
| 249 | {4 * 1024, 2}, |
| 250 | {16 * 1024, 7}, |
| 251 | }, |
| 252 | .block_erase = erase_sector_jedec, |
| 253 | }, { |
| 254 | .eraseblocks = { {128 * 1024, 1} }, |
| 255 | .block_erase = erase_chip_block_jedec, |
| 256 | }, |
| 257 | }, |
| 258 | .write = write_jedec_1, |
| 259 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 260 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 261 | }, |
| 262 | |
| 263 | { |
| 264 | .vendor = "AMD", |
| 265 | .name = "Am29LV001BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 266 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 267 | .manufacture_id = AMD_ID, |
| 268 | .model_id = AMD_AM29LV001BT, |
| 269 | .total_size = 128, |
| 270 | .page_size = 64 * 1024, /* unused */ |
| 271 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 272 | .tested = TEST_UNTESTED, |
| 273 | .probe = probe_jedec, |
| 274 | .probe_timing = TIMING_ZERO, |
| 275 | .block_erasers = |
| 276 | { |
| 277 | { |
| 278 | .eraseblocks = { |
| 279 | {16 * 1024, 7}, |
| 280 | {4 * 1024, 2}, |
| 281 | {8 * 1024, 1}, |
| 282 | }, |
| 283 | .block_erase = erase_sector_jedec, |
| 284 | }, { |
| 285 | .eraseblocks = { {128 * 1024, 1} }, |
| 286 | .block_erase = erase_chip_block_jedec, |
| 287 | }, |
| 288 | }, |
| 289 | .write = write_jedec_1, |
| 290 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 291 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 292 | }, |
| 293 | |
| 294 | { |
| 295 | .vendor = "AMD", |
| 296 | .name = "Am29LV002BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 297 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 298 | .manufacture_id = AMD_ID, |
| 299 | .model_id = AMD_AM29LV002BB, |
| 300 | .total_size = 256, |
| 301 | .page_size = 64 * 1024, /* unused */ |
| 302 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 303 | .tested = TEST_UNTESTED, |
| 304 | .probe = probe_jedec, |
| 305 | .probe_timing = TIMING_ZERO, |
| 306 | .block_erasers = |
| 307 | { |
| 308 | { |
| 309 | .eraseblocks = { |
| 310 | {16 * 1024, 1}, |
| 311 | {8 * 1024, 2}, |
| 312 | {32 * 1024, 1}, |
| 313 | {64 * 1024, 3}, |
| 314 | }, |
| 315 | .block_erase = erase_sector_jedec, |
| 316 | }, { |
| 317 | .eraseblocks = { {256 * 1024, 1} }, |
| 318 | .block_erase = erase_chip_block_jedec, |
| 319 | }, |
| 320 | }, |
| 321 | .write = write_jedec_1, |
| 322 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 323 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 324 | }, |
| 325 | |
| 326 | { |
| 327 | .vendor = "AMD", |
| 328 | .name = "Am29LV002BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 329 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 330 | .manufacture_id = AMD_ID, |
| 331 | .model_id = AMD_AM29LV002BT, |
| 332 | .total_size = 256, |
| 333 | .page_size = 64 * 1024, /* unused */ |
| 334 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 335 | .tested = TEST_UNTESTED, |
| 336 | .probe = probe_jedec, |
| 337 | .probe_timing = TIMING_ZERO, |
| 338 | .block_erasers = |
| 339 | { |
| 340 | { |
| 341 | .eraseblocks = { |
| 342 | {64 * 1024, 3}, |
| 343 | {32 * 1024, 1}, |
| 344 | {8 * 1024, 2}, |
| 345 | {16 * 1024, 1}, |
| 346 | }, |
| 347 | .block_erase = erase_sector_jedec, |
| 348 | }, { |
| 349 | .eraseblocks = { {256 * 1024, 1} }, |
| 350 | .block_erase = erase_chip_block_jedec, |
| 351 | }, |
| 352 | }, |
| 353 | .write = write_jedec_1, |
| 354 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 355 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -55, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 356 | }, |
| 357 | |
| 358 | { |
| 359 | .vendor = "AMD", |
| 360 | .name = "Am29LV004BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 361 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 362 | .manufacture_id = AMD_ID, |
| 363 | .model_id = AMD_AM29LV004BB, |
| 364 | .total_size = 512, |
| 365 | .page_size = 64 * 1024, /* unused */ |
| 366 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 367 | .tested = TEST_UNTESTED, |
| 368 | .probe = probe_jedec, |
| 369 | .probe_timing = TIMING_ZERO, |
| 370 | .block_erasers = |
| 371 | { |
| 372 | { |
| 373 | .eraseblocks = { |
| 374 | {16 * 1024, 1}, |
| 375 | {8 * 1024, 2}, |
| 376 | {32 * 1024, 1}, |
| 377 | {64 * 1024, 7}, |
| 378 | }, |
| 379 | .block_erase = erase_sector_jedec, |
| 380 | }, { |
| 381 | .eraseblocks = { {512 * 1024, 1} }, |
| 382 | .block_erase = erase_chip_block_jedec, |
| 383 | }, |
| 384 | }, |
| 385 | .write = write_jedec_1, |
| 386 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 387 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 388 | }, |
| 389 | |
| 390 | { |
| 391 | .vendor = "AMD", |
| 392 | .name = "Am29LV004BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 393 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 394 | .manufacture_id = AMD_ID, |
| 395 | .model_id = AMD_AM29LV004BT, |
| 396 | .total_size = 512, |
| 397 | .page_size = 64 * 1024, /* unused */ |
| 398 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 399 | .tested = TEST_UNTESTED, |
| 400 | .probe = probe_jedec, |
| 401 | .probe_timing = TIMING_ZERO, |
| 402 | .block_erasers = |
| 403 | { |
| 404 | { |
| 405 | .eraseblocks = { |
| 406 | {64 * 1024, 7}, |
| 407 | {32 * 1024, 1}, |
| 408 | {8 * 1024, 2}, |
| 409 | {16 * 1024, 1}, |
| 410 | }, |
| 411 | .block_erase = erase_sector_jedec, |
| 412 | }, { |
| 413 | .eraseblocks = { {512 * 1024, 1} }, |
| 414 | .block_erase = erase_chip_block_jedec, |
| 415 | }, |
| 416 | }, |
| 417 | .write = write_jedec_1, |
| 418 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 419 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 420 | }, |
| 421 | |
| 422 | { |
| 423 | .vendor = "AMD", |
| 424 | .name = "Am29LV008BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 425 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 426 | .manufacture_id = AMD_ID, |
| 427 | .model_id = AMD_AM29LV008BB, |
| 428 | .total_size = 1024, |
| 429 | .page_size = 64 * 1024, /* unused */ |
| 430 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Uwe Hermann | 09ebd52 | 2011-08-25 22:54:23 +0000 | [diff] [blame] | 431 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 432 | .probe = probe_jedec, |
| 433 | .probe_timing = TIMING_ZERO, |
| 434 | .block_erasers = |
| 435 | { |
| 436 | { |
| 437 | .eraseblocks = { |
| 438 | {16 * 1024, 1}, |
| 439 | {8 * 1024, 2}, |
| 440 | {32 * 1024, 1}, |
| 441 | {64 * 1024, 15}, |
| 442 | }, |
| 443 | .block_erase = erase_sector_jedec, |
| 444 | }, { |
| 445 | .eraseblocks = { {1024 * 1024, 1} }, |
| 446 | .block_erase = erase_chip_block_jedec, |
| 447 | }, |
| 448 | }, |
| 449 | .write = write_jedec_1, |
| 450 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 451 | .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 452 | }, |
| 453 | |
| 454 | { |
| 455 | .vendor = "AMD", |
| 456 | .name = "Am29LV008BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 457 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 458 | .manufacture_id = AMD_ID, |
| 459 | .model_id = AMD_AM29LV008BT, |
| 460 | .total_size = 1024, |
| 461 | .page_size = 64 * 1024, /* unused */ |
| 462 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 463 | .tested = TEST_UNTESTED, |
| 464 | .probe = probe_jedec, |
| 465 | .probe_timing = TIMING_ZERO, |
| 466 | .block_erasers = |
| 467 | { |
| 468 | { |
| 469 | .eraseblocks = { |
| 470 | {64 * 1024, 15}, |
| 471 | {32 * 1024, 1}, |
| 472 | {8 * 1024, 2}, |
| 473 | {16 * 1024, 1}, |
| 474 | }, |
| 475 | .block_erase = erase_sector_jedec, |
| 476 | }, { |
| 477 | .eraseblocks = { {1024 * 1024, 1} }, |
| 478 | .block_erase = erase_chip_block_jedec, |
| 479 | }, |
| 480 | }, |
| 481 | .write = write_jedec_1, |
| 482 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 483 | .voltage = {3000, 3600} /* 3.0-3.6V for type -70R, others 2.7-3.6V */ |
Carl-Daniel Hailfinger | c753e5b | 2011-02-05 12:11:17 +0000 | [diff] [blame] | 484 | }, |
| 485 | |
| 486 | { |
| 487 | .vendor = "AMD", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 488 | .name = "Am29LV040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 489 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 490 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 491 | .model_id = AMD_AM29LV040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 492 | .total_size = 512, |
| 493 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 494 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 495 | .tested = TEST_OK_PRE, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 496 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 497 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 498 | .block_erasers = |
| 499 | { |
| 500 | { |
| 501 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 502 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 503 | }, { |
| 504 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 505 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 506 | }, |
| 507 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 508 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 509 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 510 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -60R, others 2.7-3.6V*/ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 511 | }, |
| 512 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 513 | { |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 514 | .vendor = "AMD", |
| 515 | .name = "Am29LV081B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 516 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | 5bae438 | 2009-06-02 00:38:14 +0000 | [diff] [blame] | 517 | .manufacture_id = AMD_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 518 | .model_id = AMD_AM29LV080B, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 519 | .total_size = 1024, |
| 520 | .page_size = 64 * 1024, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 521 | .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] | 522 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 523 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 524 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 525 | .block_erasers = |
| 526 | { |
| 527 | { |
| 528 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 529 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 530 | }, { |
| 531 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 532 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 533 | }, |
| 534 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 535 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 536 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 537 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70R, others 2.7-3.6V */ |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 538 | }, |
| 539 | |
| 540 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 541 | .vendor = "AMIC", |
| 542 | .name = "A25L05PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 543 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 544 | .manufacture_id = AMIC_ID, |
| 545 | .model_id = AMIC_A25L05PT, |
| 546 | .total_size = 64, |
| 547 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 548 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 549 | .tested = TEST_UNTESTED, |
| 550 | .probe = probe_spi_rdid4, |
| 551 | .probe_timing = TIMING_ZERO, |
| 552 | .block_erasers = |
| 553 | { |
| 554 | { |
| 555 | .eraseblocks = { |
| 556 | {32 * 1024, 1}, |
| 557 | {16 * 1024, 1}, |
| 558 | {8 * 1024, 1}, |
| 559 | {4 * 1024, 2}, |
| 560 | }, |
| 561 | .block_erase = spi_block_erase_d8, |
| 562 | }, { |
| 563 | .eraseblocks = { {64 * 1024, 1} }, |
| 564 | .block_erase = spi_block_erase_c7, |
| 565 | } |
| 566 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 567 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 568 | .unlock = spi_disable_blockprotect, |
| 569 | .write = spi_chip_write_256, |
| 570 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 571 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 572 | }, |
| 573 | |
| 574 | { |
| 575 | .vendor = "AMIC", |
| 576 | .name = "A25L05PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 577 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 578 | .manufacture_id = AMIC_ID, |
| 579 | .model_id = AMIC_A25L05PU, |
| 580 | .total_size = 64, |
| 581 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 582 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 583 | .tested = TEST_UNTESTED, |
| 584 | .probe = probe_spi_rdid4, |
| 585 | .probe_timing = TIMING_ZERO, |
| 586 | .block_erasers = |
| 587 | { |
| 588 | { |
| 589 | .eraseblocks = { |
| 590 | {4 * 1024, 2}, |
| 591 | {8 * 1024, 1}, |
| 592 | {16 * 1024, 1}, |
| 593 | {32 * 1024, 1}, |
| 594 | }, |
| 595 | .block_erase = spi_block_erase_d8, |
| 596 | }, { |
| 597 | .eraseblocks = { {64 * 1024, 1} }, |
| 598 | .block_erase = spi_block_erase_c7, |
| 599 | } |
| 600 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 601 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 602 | .unlock = spi_disable_blockprotect, |
| 603 | .write = spi_chip_write_256, |
| 604 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 605 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 606 | }, |
| 607 | |
| 608 | { |
| 609 | .vendor = "AMIC", |
| 610 | .name = "A25L10PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 611 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 612 | .manufacture_id = AMIC_ID, |
| 613 | .model_id = AMIC_A25L10PT, |
| 614 | .total_size = 128, |
| 615 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 616 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 617 | .tested = TEST_UNTESTED, |
| 618 | .probe = probe_spi_rdid4, |
| 619 | .probe_timing = TIMING_ZERO, |
| 620 | .block_erasers = |
| 621 | { |
| 622 | { |
| 623 | .eraseblocks = { |
| 624 | {64 * 1024, 1}, |
| 625 | {32 * 1024, 1}, |
| 626 | {16 * 1024, 1}, |
| 627 | {8 * 1024, 1}, |
| 628 | {4 * 1024, 2}, |
| 629 | }, |
| 630 | .block_erase = spi_block_erase_d8, |
| 631 | }, { |
| 632 | .eraseblocks = { {128 * 1024, 1} }, |
| 633 | .block_erase = spi_block_erase_c7, |
| 634 | } |
| 635 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 636 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 637 | .unlock = spi_disable_blockprotect, |
| 638 | .write = spi_chip_write_256, |
| 639 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 640 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 641 | }, |
| 642 | |
| 643 | { |
| 644 | .vendor = "AMIC", |
| 645 | .name = "A25L10PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 646 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 647 | .manufacture_id = AMIC_ID, |
| 648 | .model_id = AMIC_A25L10PU, |
| 649 | .total_size = 128, |
| 650 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 651 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 652 | .tested = TEST_UNTESTED, |
| 653 | .probe = probe_spi_rdid4, |
| 654 | .probe_timing = TIMING_ZERO, |
| 655 | .block_erasers = |
| 656 | { |
| 657 | { |
| 658 | .eraseblocks = { |
| 659 | {4 * 1024, 2}, |
| 660 | {8 * 1024, 1}, |
| 661 | {16 * 1024, 1}, |
| 662 | {32 * 1024, 1}, |
| 663 | {64 * 1024, 1}, |
| 664 | }, |
| 665 | .block_erase = spi_block_erase_d8, |
| 666 | }, { |
| 667 | .eraseblocks = { {128 * 1024, 1} }, |
| 668 | .block_erase = spi_block_erase_c7, |
| 669 | } |
| 670 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 671 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 672 | .unlock = spi_disable_blockprotect, |
| 673 | .write = spi_chip_write_256, |
| 674 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 675 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 676 | }, |
| 677 | |
| 678 | { |
| 679 | .vendor = "AMIC", |
| 680 | .name = "A25L20PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 681 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 682 | .manufacture_id = AMIC_ID, |
| 683 | .model_id = AMIC_A25L20PT, |
| 684 | .total_size = 256, |
| 685 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 686 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 687 | .tested = TEST_UNTESTED, |
| 688 | .probe = probe_spi_rdid4, |
| 689 | .probe_timing = TIMING_ZERO, |
| 690 | .block_erasers = |
| 691 | { |
| 692 | { |
| 693 | .eraseblocks = { |
| 694 | {64 * 1024, 3}, |
| 695 | {32 * 1024, 1}, |
| 696 | {16 * 1024, 1}, |
| 697 | {8 * 1024, 1}, |
| 698 | {4 * 1024, 2}, |
| 699 | }, |
| 700 | .block_erase = spi_block_erase_d8, |
| 701 | }, { |
| 702 | .eraseblocks = { {256 * 1024, 1} }, |
| 703 | .block_erase = spi_block_erase_c7, |
| 704 | } |
| 705 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 706 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 707 | .unlock = spi_disable_blockprotect, |
| 708 | .write = spi_chip_write_256, |
| 709 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 710 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 711 | }, |
| 712 | |
| 713 | { |
| 714 | .vendor = "AMIC", |
| 715 | .name = "A25L20PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 716 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 717 | .manufacture_id = AMIC_ID, |
| 718 | .model_id = AMIC_A25L20PU, |
| 719 | .total_size = 256, |
| 720 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 721 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 722 | .tested = TEST_UNTESTED, |
| 723 | .probe = probe_spi_rdid4, |
| 724 | .probe_timing = TIMING_ZERO, |
| 725 | .block_erasers = |
| 726 | { |
| 727 | { |
| 728 | .eraseblocks = { |
| 729 | {4 * 1024, 2}, |
| 730 | {8 * 1024, 1}, |
| 731 | {16 * 1024, 1}, |
| 732 | {32 * 1024, 1}, |
| 733 | {64 * 1024, 3}, |
| 734 | }, |
| 735 | .block_erase = spi_block_erase_d8, |
| 736 | }, { |
| 737 | .eraseblocks = { {256 * 1024, 1} }, |
| 738 | .block_erase = spi_block_erase_c7, |
| 739 | } |
| 740 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 741 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 742 | .unlock = spi_disable_blockprotect, |
| 743 | .write = spi_chip_write_256, |
| 744 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 745 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 746 | }, |
| 747 | |
| 748 | /* The A25L40P{T,U} chips are distinguished by their |
| 749 | * erase block layouts, but without any distinction in RDID. |
| 750 | * This inexplicable quirk was verified by Rudolf Marek |
| 751 | * and discussed on the flashrom mailing list on 2010-07-12. |
| 752 | */ |
| 753 | { |
| 754 | .vendor = "AMIC", |
| 755 | .name = "A25L40PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 756 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 757 | .manufacture_id = AMIC_ID, |
| 758 | .model_id = AMIC_A25L40PT, |
| 759 | .total_size = 512, |
| 760 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 761 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 762 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 763 | .probe = probe_spi_rdid4, |
| 764 | .probe_timing = TIMING_ZERO, |
| 765 | .block_erasers = |
| 766 | { |
| 767 | { |
| 768 | .eraseblocks = { |
| 769 | {64 * 1024, 7}, |
| 770 | {32 * 1024, 1}, |
| 771 | {16 * 1024, 1}, |
| 772 | {8 * 1024, 1}, |
| 773 | {4 * 1024, 2}, |
| 774 | }, |
| 775 | .block_erase = spi_block_erase_d8, |
| 776 | }, { |
| 777 | .eraseblocks = { {512 * 1024, 1} }, |
| 778 | .block_erase = spi_block_erase_c7, |
| 779 | } |
| 780 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 781 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 782 | .unlock = spi_disable_blockprotect, |
| 783 | .write = spi_chip_write_256, |
| 784 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 785 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 786 | }, |
| 787 | |
| 788 | { |
| 789 | .vendor = "AMIC", |
| 790 | .name = "A25L40PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 791 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 792 | .manufacture_id = AMIC_ID, |
| 793 | .model_id = AMIC_A25L40PU, |
| 794 | .total_size = 512, |
| 795 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 796 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 797 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 798 | .probe = probe_spi_rdid4, |
| 799 | .probe_timing = TIMING_ZERO, |
| 800 | .block_erasers = |
| 801 | { |
| 802 | { |
| 803 | .eraseblocks = { |
| 804 | {4 * 1024, 2}, |
| 805 | {8 * 1024, 1}, |
| 806 | {16 * 1024, 1}, |
| 807 | {32 * 1024, 1}, |
| 808 | {64 * 1024, 7}, |
| 809 | }, |
| 810 | .block_erase = spi_block_erase_d8, |
| 811 | }, { |
| 812 | .eraseblocks = { {512 * 1024, 1} }, |
| 813 | .block_erase = spi_block_erase_c7, |
| 814 | } |
| 815 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 816 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 817 | .unlock = spi_disable_blockprotect, |
| 818 | .write = spi_chip_write_256, |
| 819 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 820 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 821 | }, |
| 822 | |
| 823 | { |
| 824 | .vendor = "AMIC", |
| 825 | .name = "A25L80P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 826 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 827 | .manufacture_id = AMIC_ID, |
| 828 | .model_id = AMIC_A25L80P, |
| 829 | .total_size = 1024, |
| 830 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 831 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 832 | .tested = TEST_OK_PRE, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 833 | .probe = probe_spi_rdid4, |
| 834 | .probe_timing = TIMING_ZERO, |
| 835 | .block_erasers = |
| 836 | { |
| 837 | { |
| 838 | .eraseblocks = { |
| 839 | {4 * 1024, 2}, |
| 840 | {8 * 1024, 1}, |
| 841 | {16 * 1024, 1}, |
| 842 | {32 * 1024, 1}, |
| 843 | {64 * 1024, 15}, |
| 844 | }, |
| 845 | .block_erase = spi_block_erase_d8, |
| 846 | }, { |
| 847 | .eraseblocks = { {1024 * 1024, 1} }, |
| 848 | .block_erase = spi_block_erase_c7, |
| 849 | } |
| 850 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 851 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 852 | .unlock = spi_disable_blockprotect, |
| 853 | .write = spi_chip_write_256, |
| 854 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 855 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 856 | }, |
| 857 | |
| 858 | { |
| 859 | .vendor = "AMIC", |
| 860 | .name = "A25L16PT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 861 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 862 | .manufacture_id = AMIC_ID, |
| 863 | .model_id = AMIC_A25L16PT, |
| 864 | .total_size = 2048, |
| 865 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 866 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 867 | .tested = TEST_UNTESTED, |
| 868 | .probe = probe_spi_rdid4, |
| 869 | .probe_timing = TIMING_ZERO, |
| 870 | .block_erasers = |
| 871 | { |
| 872 | { |
| 873 | .eraseblocks = { |
| 874 | {64 * 1024, 31}, |
| 875 | {32 * 1024, 1}, |
| 876 | {16 * 1024, 1}, |
| 877 | {8 * 1024, 1}, |
| 878 | {4 * 1024, 2}, |
| 879 | }, |
| 880 | .block_erase = spi_block_erase_d8, |
| 881 | }, { |
| 882 | .eraseblocks = { {2048 * 1024, 1} }, |
| 883 | .block_erase = spi_block_erase_60, |
| 884 | }, { |
| 885 | .eraseblocks = { {2048 * 1024, 1} }, |
| 886 | .block_erase = spi_block_erase_c7, |
| 887 | } |
| 888 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 889 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 890 | .unlock = spi_disable_blockprotect, |
| 891 | .write = spi_chip_write_256, |
| 892 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 893 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 894 | }, |
| 895 | |
| 896 | { |
| 897 | .vendor = "AMIC", |
| 898 | .name = "A25L16PU", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 899 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 900 | .manufacture_id = AMIC_ID, |
| 901 | .model_id = AMIC_A25L16PU, |
| 902 | .total_size = 2048, |
| 903 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 904 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 905 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 906 | .probe = probe_spi_rdid4, |
| 907 | .probe_timing = TIMING_ZERO, |
| 908 | .block_erasers = |
| 909 | { |
| 910 | { |
| 911 | .eraseblocks = { |
| 912 | {4 * 1024, 2}, |
| 913 | {8 * 1024, 1}, |
| 914 | {16 * 1024, 1}, |
| 915 | {32 * 1024, 1}, |
| 916 | {64 * 1024, 31}, |
| 917 | }, |
| 918 | .block_erase = spi_block_erase_d8, |
| 919 | }, { |
| 920 | .eraseblocks = { {2048 * 1024, 1} }, |
| 921 | .block_erase = spi_block_erase_60, |
| 922 | }, { |
| 923 | .eraseblocks = { {2048 * 1024, 1} }, |
| 924 | .block_erase = spi_block_erase_c7, |
| 925 | } |
| 926 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 927 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 928 | .unlock = spi_disable_blockprotect, |
| 929 | .write = spi_chip_write_256, |
| 930 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 931 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 932 | }, |
| 933 | |
| 934 | { |
| 935 | .vendor = "AMIC", |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 936 | .name = "A25L512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 937 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 938 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 939 | .model_id = AMIC_A25L512, |
| 940 | .total_size = 64, |
| 941 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 942 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 943 | .tested = TEST_UNTESTED, |
| 944 | .probe = probe_spi_rdid, |
| 945 | .probe_timing = TIMING_ZERO, |
| 946 | .block_erasers = |
| 947 | { |
| 948 | { |
| 949 | .eraseblocks = { { 4 * 1024, 16 } }, |
| 950 | .block_erase = spi_block_erase_20, |
| 951 | }, { |
| 952 | .eraseblocks = { { 64 * 1024, 1 } }, |
| 953 | .block_erase = spi_block_erase_d8, |
| 954 | }, { |
| 955 | .eraseblocks = { { 64 * 1024, 1 } }, |
| 956 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 957 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 958 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 959 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 960 | .unlock = spi_disable_blockprotect, |
| 961 | .write = spi_chip_write_256, |
| 962 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 963 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 964 | }, |
| 965 | |
| 966 | { |
| 967 | .vendor = "AMIC", |
| 968 | .name = "A25L010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 969 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 970 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 971 | .model_id = AMIC_A25L010, |
| 972 | .total_size = 128, |
| 973 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 974 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 975 | .tested = TEST_UNTESTED, |
| 976 | .probe = probe_spi_rdid, |
| 977 | .probe_timing = TIMING_ZERO, |
| 978 | .block_erasers = |
| 979 | { |
| 980 | { |
| 981 | .eraseblocks = { { 4 * 1024, 32 } }, |
| 982 | .block_erase = spi_block_erase_20, |
| 983 | }, { |
| 984 | .eraseblocks = { { 64 * 1024, 2 } }, |
| 985 | .block_erase = spi_block_erase_d8, |
| 986 | }, { |
| 987 | .eraseblocks = { { 128 * 1024, 1 } }, |
| 988 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 989 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 990 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 991 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 992 | .unlock = spi_disable_blockprotect, |
| 993 | .write = spi_chip_write_256, |
| 994 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 995 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 996 | }, |
| 997 | |
| 998 | { |
| 999 | .vendor = "AMIC", |
| 1000 | .name = "A25L020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1001 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1002 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1003 | .model_id = AMIC_A25L020, |
| 1004 | .total_size = 256, |
| 1005 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1006 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1007 | .tested = TEST_UNTESTED, |
| 1008 | .probe = probe_spi_rdid, |
| 1009 | .probe_timing = TIMING_ZERO, |
| 1010 | .block_erasers = |
| 1011 | { |
| 1012 | { |
| 1013 | .eraseblocks = { { 4 * 1024, 64 } }, |
| 1014 | .block_erase = spi_block_erase_20, |
| 1015 | }, { |
| 1016 | .eraseblocks = { { 64 * 1024, 4 } }, |
| 1017 | .block_erase = spi_block_erase_d8, |
| 1018 | }, { |
| 1019 | .eraseblocks = { { 256 * 1024, 1 } }, |
| 1020 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1021 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1022 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1023 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1024 | .unlock = spi_disable_blockprotect, |
| 1025 | .write = spi_chip_write_256, |
| 1026 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1027 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1028 | }, |
| 1029 | |
| 1030 | { |
| 1031 | .vendor = "AMIC", |
| 1032 | .name = "A25L040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1033 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1034 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1035 | .model_id = AMIC_A25L040, |
| 1036 | .total_size = 512, |
| 1037 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1038 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1039 | .tested = TEST_UNTESTED, |
| 1040 | .probe = probe_spi_rdid, |
| 1041 | .probe_timing = TIMING_ZERO, |
| 1042 | .block_erasers = |
| 1043 | { |
| 1044 | { |
| 1045 | .eraseblocks = { { 4 * 1024, 128 } }, |
| 1046 | .block_erase = spi_block_erase_20, |
| 1047 | }, { |
| 1048 | .eraseblocks = { { 64 * 1024, 8 } }, |
| 1049 | .block_erase = spi_block_erase_d8, |
| 1050 | }, { |
| 1051 | .eraseblocks = { { 512 * 1024, 1 } }, |
| 1052 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1053 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1054 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1055 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1056 | .unlock = spi_disable_blockprotect, |
| 1057 | .write = spi_chip_write_256, |
| 1058 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1059 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1060 | }, |
| 1061 | |
| 1062 | { |
| 1063 | .vendor = "AMIC", |
| 1064 | .name = "A25L080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1065 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1066 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1067 | .model_id = AMIC_A25L080, |
| 1068 | .total_size = 1024, |
| 1069 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1070 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1071 | .tested = TEST_UNTESTED, |
| 1072 | .probe = probe_spi_rdid, |
| 1073 | .probe_timing = TIMING_ZERO, |
| 1074 | .block_erasers = |
| 1075 | { |
| 1076 | { |
| 1077 | .eraseblocks = { { 4 * 1024, 256 } }, |
| 1078 | .block_erase = spi_block_erase_20, |
| 1079 | }, { |
| 1080 | .eraseblocks = { { 64 * 1024, 16 } }, |
| 1081 | .block_erase = spi_block_erase_d8, |
| 1082 | }, { |
| 1083 | .eraseblocks = { { 1024 * 1024, 1 } }, |
| 1084 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1085 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1086 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1087 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1088 | .unlock = spi_disable_blockprotect, |
| 1089 | .write = spi_chip_write_256, |
| 1090 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1091 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1092 | }, |
| 1093 | |
| 1094 | { |
| 1095 | .vendor = "AMIC", |
| 1096 | .name = "A25L016", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1097 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1098 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1099 | .model_id = AMIC_A25L016, |
| 1100 | .total_size = 2048, |
| 1101 | .page_size = 256, |
David Hendricks | 6c51cfd | 2010-09-03 03:32:22 +0000 | [diff] [blame] | 1102 | .feature_bits = FEATURE_WRSR_WREN, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1103 | .tested = TEST_UNTESTED, |
| 1104 | .probe = probe_spi_rdid, |
| 1105 | .probe_timing = TIMING_ZERO, |
| 1106 | .block_erasers = |
| 1107 | { |
| 1108 | { |
| 1109 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 1110 | .block_erase = spi_block_erase_20, |
| 1111 | }, { |
| 1112 | .eraseblocks = { { 64 * 1024, 32 } }, |
| 1113 | .block_erase = spi_block_erase_d8, |
| 1114 | }, { |
| 1115 | .eraseblocks = { { 2048 * 1024, 1 } }, |
| 1116 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1117 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1118 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1119 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1120 | .unlock = spi_disable_blockprotect, |
| 1121 | .write = spi_chip_write_256, |
| 1122 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1123 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1124 | }, |
| 1125 | |
| 1126 | { |
| 1127 | .vendor = "AMIC", |
| 1128 | .name = "A25L032", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1129 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1130 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1131 | .model_id = AMIC_A25L032, |
| 1132 | .total_size = 4096, |
| 1133 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1134 | /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */ |
| 1135 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 1136 | .tested = TEST_OK_PREW, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1137 | .probe = probe_spi_rdid, |
| 1138 | .probe_timing = TIMING_ZERO, |
| 1139 | .block_erasers = |
| 1140 | { |
| 1141 | { |
| 1142 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 1143 | .block_erase = spi_block_erase_20, |
| 1144 | }, { |
| 1145 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1146 | .block_erase = spi_block_erase_52, |
| 1147 | }, { |
| 1148 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1149 | .block_erase = spi_block_erase_d8, |
| 1150 | }, { |
| 1151 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1152 | .block_erase = spi_block_erase_60, |
| 1153 | }, { |
| 1154 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1155 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1156 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1157 | }, |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1158 | .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */ |
| 1159 | .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] | 1160 | .write = spi_chip_write_256, |
| 1161 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1162 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1163 | }, |
| 1164 | |
| 1165 | { |
| 1166 | .vendor = "AMIC", |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1167 | .name = "A25LQ16", |
| 1168 | .bustype = BUS_SPI, |
| 1169 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1170 | .model_id = AMIC_A25LQ16, |
| 1171 | .total_size = 2048, |
| 1172 | .page_size = 256, |
| 1173 | /* supports SFDP */ |
| 1174 | /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */ |
| 1175 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1176 | .tested = TEST_UNTESTED, |
| 1177 | .probe = probe_spi_rdid, |
| 1178 | .probe_timing = TIMING_ZERO, |
| 1179 | .block_erasers = { |
| 1180 | { |
| 1181 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 1182 | .block_erase = spi_block_erase_20, |
| 1183 | }, { |
| 1184 | .eraseblocks = { { 64 * 1024, 32 } }, |
| 1185 | .block_erase = spi_block_erase_52, |
| 1186 | }, { |
| 1187 | .eraseblocks = { { 64 * 1024, 32 } }, |
| 1188 | .block_erase = spi_block_erase_d8, |
| 1189 | }, { |
| 1190 | .eraseblocks = { { 2048 * 1024, 1 } }, |
| 1191 | .block_erase = spi_block_erase_60, |
| 1192 | }, { |
| 1193 | .eraseblocks = { { 2048 * 1024, 1 } }, |
| 1194 | .block_erase = spi_block_erase_c7, |
| 1195 | } |
| 1196 | }, |
| 1197 | .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */ |
| 1198 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 1199 | .write = spi_chip_write_256, |
| 1200 | .read = spi_chip_read, |
| 1201 | .voltage = {2700, 3600}, |
| 1202 | }, |
| 1203 | |
| 1204 | { |
| 1205 | .vendor = "AMIC", |
| 1206 | .name = "A25LQ032/A25LQ32A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1207 | .bustype = BUS_SPI, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1208 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1209 | .model_id = AMIC_A25LQ032, |
| 1210 | .total_size = 4096, |
| 1211 | .page_size = 256, |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1212 | /* A25LQ32A supports SFDP */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1213 | /* OTP: 64B total; read 0x4B, 0x48; write 0x42 */ |
| 1214 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1215 | .tested = TEST_UNTESTED, |
| 1216 | .probe = probe_spi_rdid, |
| 1217 | .probe_timing = TIMING_ZERO, |
| 1218 | .block_erasers = |
| 1219 | { |
| 1220 | { |
| 1221 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 1222 | .block_erase = spi_block_erase_20, |
| 1223 | }, { |
| 1224 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1225 | .block_erase = spi_block_erase_52, |
| 1226 | }, { |
| 1227 | .eraseblocks = { { 64 * 1024, 64 } }, |
| 1228 | .block_erase = spi_block_erase_d8, |
| 1229 | }, { |
| 1230 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1231 | .block_erase = spi_block_erase_60, |
| 1232 | }, { |
| 1233 | .eraseblocks = { { 4096 * 1024, 1 } }, |
| 1234 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 1235 | } |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1236 | }, |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1237 | .printlock = spi_prettyprint_status_register_amic_a25l032, /* bit5: T/B, bit6: prot size */ |
| 1238 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 1239 | .write = spi_chip_write_256, |
| 1240 | .read = spi_chip_read, |
| 1241 | .voltage = {2700, 3600}, |
| 1242 | }, |
| 1243 | |
| 1244 | { |
| 1245 | .vendor = "AMIC", |
| 1246 | .name = "A25LQ64", |
| 1247 | .bustype = BUS_SPI, |
| 1248 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1249 | .model_id = AMIC_A25LQ032, |
| 1250 | .total_size = 8192, |
| 1251 | .page_size = 256, |
| 1252 | /* supports SFDP */ |
| 1253 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 1254 | /* QPI enable 0x35, disable 0xF5 */ |
| 1255 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 1256 | .tested = TEST_UNTESTED, |
| 1257 | .probe = probe_spi_rdid, |
| 1258 | .probe_timing = TIMING_ZERO, |
| 1259 | .block_erasers = |
| 1260 | { |
| 1261 | { |
| 1262 | .eraseblocks = { { 4 * 1024, 2048 } }, |
| 1263 | .block_erase = spi_block_erase_20, |
| 1264 | }, { |
| 1265 | .eraseblocks = { { 32 * 1024, 256 } }, |
| 1266 | .block_erase = spi_block_erase_52, |
| 1267 | }, { |
| 1268 | .eraseblocks = { { 64 * 1024, 128 } }, |
| 1269 | .block_erase = spi_block_erase_d8, |
| 1270 | }, { |
| 1271 | .eraseblocks = { { 8192 * 1024, 1 } }, |
| 1272 | .block_erase = spi_block_erase_60, |
| 1273 | }, { |
| 1274 | .eraseblocks = { { 8192 * 1024, 1 } }, |
| 1275 | .block_erase = spi_block_erase_c7, |
| 1276 | } |
| 1277 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 1278 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enhance (sic!) */ |
Nikolay Nikolaev | d07fde6 | 2013-06-28 21:29:21 +0000 | [diff] [blame] | 1279 | .unlock = spi_disable_blockprotect, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1280 | .write = spi_chip_write_256, |
| 1281 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1282 | .voltage = {2700, 3600}, |
Dan Lenski | 1161712 | 2010-07-29 15:00:40 +0000 | [diff] [blame] | 1283 | }, |
| 1284 | |
| 1285 | { |
| 1286 | .vendor = "AMIC", |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1287 | .name = "A29002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1288 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1289 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1290 | .model_id = AMIC_A29002B, |
| 1291 | .total_size = 256, |
| 1292 | .page_size = 64 * 1024, |
| 1293 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 1294 | .tested = TEST_UNTESTED, |
| 1295 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1296 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1297 | .block_erasers = |
| 1298 | { |
| 1299 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1300 | .eraseblocks = { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1301 | {16 * 1024, 1}, |
| 1302 | {8 * 1024, 2}, |
| 1303 | {32 * 1024, 1}, |
| 1304 | {64 * 1024, 3}, |
| 1305 | }, |
| 1306 | .block_erase = erase_sector_jedec, |
| 1307 | }, { |
| 1308 | .eraseblocks = { {256 * 1024, 1} }, |
| 1309 | .block_erase = erase_chip_block_jedec, |
| 1310 | }, |
| 1311 | }, |
| 1312 | .write = write_jedec_1, |
| 1313 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1314 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1315 | }, |
| 1316 | |
| 1317 | { |
| 1318 | .vendor = "AMIC", |
| 1319 | .name = "A29002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1320 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1321 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1322 | .model_id = AMIC_A29002T, |
| 1323 | .total_size = 256, |
| 1324 | .page_size = 64 * 1024, |
| 1325 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 1326 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1327 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1328 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1329 | .block_erasers = |
| 1330 | { |
| 1331 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1332 | .eraseblocks = { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1333 | {64 * 1024, 3}, |
| 1334 | {32 * 1024, 1}, |
| 1335 | {8 * 1024, 2}, |
| 1336 | {16 * 1024, 1}, |
| 1337 | }, |
| 1338 | .block_erase = erase_sector_jedec, |
| 1339 | }, { |
| 1340 | .eraseblocks = { {256 * 1024, 1} }, |
| 1341 | .block_erase = erase_chip_block_jedec, |
| 1342 | }, |
| 1343 | }, |
| 1344 | .write = write_jedec_1, |
| 1345 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1346 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1347 | }, |
| 1348 | |
| 1349 | { |
| 1350 | .vendor = "AMIC", |
| 1351 | .name = "A29040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1352 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1353 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1354 | .model_id = AMIC_A29040B, |
| 1355 | .total_size = 512, |
| 1356 | .page_size = 64 * 1024, |
| 1357 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Corey Osgood | cbd5665 | 2013-09-10 10:42:48 +0000 | [diff] [blame] | 1358 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1359 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 1360 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1361 | .block_erasers = |
| 1362 | { |
| 1363 | { |
| 1364 | .eraseblocks = { {64 * 1024, 8} }, |
| 1365 | .block_erase = erase_sector_jedec, |
| 1366 | }, { |
| 1367 | .eraseblocks = { {512 * 1024, 1} }, |
| 1368 | .block_erase = erase_chip_block_jedec, |
| 1369 | }, |
| 1370 | }, |
| 1371 | .write = write_jedec_1, |
| 1372 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1373 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1374 | }, |
| 1375 | |
| 1376 | { |
| 1377 | .vendor = "AMIC", |
| 1378 | .name = "A49LF040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1379 | .bustype = BUS_LPC, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1380 | .manufacture_id = AMIC_ID_NOPREFIX, |
| 1381 | .model_id = AMIC_A49LF040A, |
| 1382 | .total_size = 512, |
| 1383 | .page_size = 64 * 1024, |
| 1384 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 1385 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1386 | .probe = probe_jedec, |
| 1387 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
| 1388 | .block_erasers = |
| 1389 | { |
| 1390 | { |
| 1391 | .eraseblocks = { {64 * 1024, 8} }, |
| 1392 | .block_erase = erase_block_jedec, |
| 1393 | }, { |
| 1394 | .eraseblocks = { {512 * 1024, 1} }, |
| 1395 | .block_erase = erase_chip_block_jedec, |
| 1396 | } |
| 1397 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 1398 | .unlock = unlock_regspace2_uniform_64k, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1399 | .write = write_jedec_1, |
| 1400 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1401 | .voltage = {3000, 3600}, |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 1402 | }, |
| 1403 | |
| 1404 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1405 | .vendor = "Atmel", |
| 1406 | .name = "AT25DF021", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1407 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1408 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1409 | .model_id = ATMEL_AT25DF021, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1410 | .total_size = 256, |
| 1411 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1412 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1413 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1414 | .tested = TEST_UNTESTED, |
| 1415 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1416 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1417 | .block_erasers = |
| 1418 | { |
| 1419 | { |
| 1420 | .eraseblocks = { {4 * 1024, 64} }, |
| 1421 | .block_erase = spi_block_erase_20, |
| 1422 | }, { |
| 1423 | .eraseblocks = { {32 * 1024, 8} }, |
| 1424 | .block_erase = spi_block_erase_52, |
| 1425 | }, { |
| 1426 | .eraseblocks = { {64 * 1024, 4} }, |
| 1427 | .block_erase = spi_block_erase_d8, |
| 1428 | }, { |
| 1429 | .eraseblocks = { {256 * 1024, 1} }, |
| 1430 | .block_erase = spi_block_erase_60, |
| 1431 | }, { |
| 1432 | .eraseblocks = { {256 * 1024, 1} }, |
| 1433 | .block_erase = spi_block_erase_c7, |
| 1434 | } |
| 1435 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1436 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1437 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1438 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1439 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1440 | .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] | 1441 | }, |
| 1442 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1443 | { |
| 1444 | .vendor = "Atmel", |
| 1445 | .name = "AT25DF041A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1446 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1447 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1448 | .model_id = ATMEL_AT25DF041A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1449 | .total_size = 512, |
| 1450 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1451 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1452 | .tested = TEST_UNTESTED, |
| 1453 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1454 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1455 | .block_erasers = |
| 1456 | { |
| 1457 | { |
| 1458 | .eraseblocks = { {4 * 1024, 128} }, |
| 1459 | .block_erase = spi_block_erase_20, |
| 1460 | }, { |
| 1461 | .eraseblocks = { {32 * 1024, 16} }, |
| 1462 | .block_erase = spi_block_erase_52, |
| 1463 | }, { |
| 1464 | .eraseblocks = { {64 * 1024, 8} }, |
| 1465 | .block_erase = spi_block_erase_d8, |
| 1466 | }, { |
| 1467 | .eraseblocks = { {512 * 1024, 1} }, |
| 1468 | .block_erase = spi_block_erase_60, |
| 1469 | }, { |
| 1470 | .eraseblocks = { {512 * 1024, 1} }, |
| 1471 | .block_erase = spi_block_erase_c7, |
| 1472 | } |
| 1473 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1474 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1475 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1476 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1477 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1478 | .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] | 1479 | }, |
| 1480 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1481 | { |
| 1482 | .vendor = "Atmel", |
| 1483 | .name = "AT25DF081", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1484 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1485 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1486 | .model_id = ATMEL_AT25DF081, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1487 | .total_size = 1024, |
| 1488 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1489 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1490 | .tested = TEST_UNTESTED, |
| 1491 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1492 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1493 | .block_erasers = |
| 1494 | { |
| 1495 | { |
| 1496 | .eraseblocks = { {4 * 1024, 256} }, |
| 1497 | .block_erase = spi_block_erase_20, |
| 1498 | }, { |
| 1499 | .eraseblocks = { {32 * 1024, 32} }, |
| 1500 | .block_erase = spi_block_erase_52, |
| 1501 | }, { |
| 1502 | .eraseblocks = { {64 * 1024, 16} }, |
| 1503 | .block_erase = spi_block_erase_d8, |
| 1504 | }, { |
| 1505 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1506 | .block_erase = spi_block_erase_60, |
| 1507 | }, { |
| 1508 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1509 | .block_erase = spi_block_erase_c7, |
| 1510 | } |
| 1511 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1512 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1513 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1514 | .write = spi_chip_write_256, |
| 1515 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1516 | .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] | 1517 | }, |
| 1518 | |
| 1519 | { |
| 1520 | .vendor = "Atmel", |
| 1521 | .name = "AT25DF081A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1522 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1523 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1524 | .model_id = ATMEL_AT25DF081A, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1525 | .total_size = 1024, |
| 1526 | .page_size = 256, |
| 1527 | .feature_bits = FEATURE_WRSR_WREN, |
| 1528 | .tested = TEST_UNTESTED, |
| 1529 | .probe = probe_spi_rdid, |
| 1530 | .probe_timing = TIMING_ZERO, |
| 1531 | .block_erasers = |
| 1532 | { |
| 1533 | { |
| 1534 | .eraseblocks = { {4 * 1024, 256} }, |
| 1535 | .block_erase = spi_block_erase_20, |
| 1536 | }, { |
| 1537 | .eraseblocks = { {32 * 1024, 32} }, |
| 1538 | .block_erase = spi_block_erase_52, |
| 1539 | }, { |
| 1540 | .eraseblocks = { {64 * 1024, 16} }, |
| 1541 | .block_erase = spi_block_erase_d8, |
| 1542 | }, { |
| 1543 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1544 | .block_erase = spi_block_erase_60, |
| 1545 | }, { |
| 1546 | .eraseblocks = { {1024 * 1024, 1} }, |
| 1547 | .block_erase = spi_block_erase_c7, |
| 1548 | } |
| 1549 | }, |
| 1550 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1551 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1552 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1553 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 1554 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1555 | }, |
| 1556 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1557 | { |
| 1558 | .vendor = "Atmel", |
| 1559 | .name = "AT25DF161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1560 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1561 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1562 | .model_id = ATMEL_AT25DF161, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1563 | .total_size = 2048, |
| 1564 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1565 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 2abab94 | 2012-04-27 20:41:23 +0000 | [diff] [blame] | 1566 | .tested = TEST_OK_PROBE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1567 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1568 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1569 | .block_erasers = |
| 1570 | { |
| 1571 | { |
| 1572 | .eraseblocks = { {4 * 1024, 512} }, |
| 1573 | .block_erase = spi_block_erase_20, |
| 1574 | }, { |
| 1575 | .eraseblocks = { {32 * 1024, 64} }, |
| 1576 | .block_erase = spi_block_erase_52, |
| 1577 | }, { |
| 1578 | .eraseblocks = { {64 * 1024, 32} }, |
| 1579 | .block_erase = spi_block_erase_d8, |
| 1580 | }, { |
| 1581 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1582 | .block_erase = spi_block_erase_60, |
| 1583 | }, { |
| 1584 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1585 | .block_erase = spi_block_erase_c7, |
| 1586 | } |
| 1587 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1588 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1589 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1590 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1591 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1592 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1593 | }, |
| 1594 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1595 | { |
| 1596 | .vendor = "Atmel", |
| 1597 | .name = "AT25DF321", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1598 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1599 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1600 | .model_id = ATMEL_AT25DF321, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1601 | .total_size = 4096, |
| 1602 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1603 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d06d941 | 2011-06-12 19:47:55 +0000 | [diff] [blame] | 1604 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1605 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1606 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1607 | .block_erasers = |
| 1608 | { |
| 1609 | { |
| 1610 | .eraseblocks = { {4 * 1024, 1024} }, |
| 1611 | .block_erase = spi_block_erase_20, |
| 1612 | }, { |
| 1613 | .eraseblocks = { {32 * 1024, 128} }, |
| 1614 | .block_erase = spi_block_erase_52, |
| 1615 | }, { |
| 1616 | .eraseblocks = { {64 * 1024, 64} }, |
| 1617 | .block_erase = spi_block_erase_d8, |
| 1618 | }, { |
| 1619 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1620 | .block_erase = spi_block_erase_60, |
| 1621 | }, { |
| 1622 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1623 | .block_erase = spi_block_erase_c7, |
| 1624 | } |
| 1625 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1626 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1627 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1628 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1629 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1630 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1631 | }, |
| 1632 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1633 | { |
| 1634 | .vendor = "Atmel", |
| 1635 | .name = "AT25DF321A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1636 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1637 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1638 | .model_id = ATMEL_AT25DF321A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1639 | .total_size = 4096, |
| 1640 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1641 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1642 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 1643 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1644 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1645 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1646 | .block_erasers = |
| 1647 | { |
| 1648 | { |
| 1649 | .eraseblocks = { {4 * 1024, 1024} }, |
| 1650 | .block_erase = spi_block_erase_20, |
| 1651 | }, { |
| 1652 | .eraseblocks = { {32 * 1024, 128} }, |
| 1653 | .block_erase = spi_block_erase_52, |
| 1654 | }, { |
| 1655 | .eraseblocks = { {64 * 1024, 64} }, |
| 1656 | .block_erase = spi_block_erase_d8, |
| 1657 | }, { |
| 1658 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1659 | .block_erase = spi_block_erase_60, |
| 1660 | }, { |
| 1661 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 1662 | .block_erase = spi_block_erase_c7, |
| 1663 | } |
| 1664 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1665 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1666 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1667 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1668 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1669 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1670 | }, |
| 1671 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1672 | { |
| 1673 | .vendor = "Atmel", |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 1674 | .name = "AT25DF641(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1675 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1676 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1677 | .model_id = ATMEL_AT25DF641, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1678 | .total_size = 8192, |
| 1679 | .page_size = 256, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1680 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1681 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1682 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1683 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1684 | .block_erasers = |
| 1685 | { |
| 1686 | { |
| 1687 | .eraseblocks = { {4 * 1024, 2048} }, |
| 1688 | .block_erase = spi_block_erase_20, |
| 1689 | }, { |
| 1690 | .eraseblocks = { {32 * 1024, 256} }, |
| 1691 | .block_erase = spi_block_erase_52, |
| 1692 | }, { |
| 1693 | .eraseblocks = { {64 * 1024, 128} }, |
| 1694 | .block_erase = spi_block_erase_d8, |
| 1695 | }, { |
| 1696 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 1697 | .block_erase = spi_block_erase_60, |
| 1698 | }, { |
| 1699 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 1700 | .block_erase = spi_block_erase_c7, |
| 1701 | } |
| 1702 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1703 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1704 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1705 | .write = spi_chip_write_256, |
| 1706 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1707 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1708 | }, |
| 1709 | |
| 1710 | { |
| 1711 | .vendor = "Atmel", |
Stefan Tauner | c9d8b27 | 2014-06-01 13:22:35 +0000 | [diff] [blame] | 1712 | .name = "AT25DL081", |
| 1713 | .bustype = BUS_SPI, |
| 1714 | .manufacture_id = ATMEL_ID, |
| 1715 | .model_id = ATMEL_AT25DF081, |
| 1716 | .total_size = 1024, |
| 1717 | .page_size = 256, |
| 1718 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1719 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1720 | .tested = TEST_UNTESTED, |
| 1721 | .probe = probe_spi_rdid, |
| 1722 | .probe_timing = TIMING_ZERO, |
| 1723 | .block_erasers = |
| 1724 | { |
| 1725 | { |
| 1726 | .eraseblocks = { {4 * 1024, 256} }, |
| 1727 | .block_erase = spi_block_erase_20, |
| 1728 | }, { |
| 1729 | .eraseblocks = { {32 * 1024, 32} }, |
| 1730 | .block_erase = spi_block_erase_52, |
| 1731 | }, { |
| 1732 | .eraseblocks = { {64 * 1024, 16} }, |
| 1733 | .block_erase = spi_block_erase_d8, |
| 1734 | }, { |
| 1735 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 1736 | .block_erase = spi_block_erase_60, |
| 1737 | }, { |
| 1738 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 1739 | .block_erase = spi_block_erase_c7, |
| 1740 | } |
| 1741 | }, |
| 1742 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1743 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
| 1744 | .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */ |
| 1745 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 1746 | .voltage = {1650, 1950}, |
| 1747 | }, |
| 1748 | |
| 1749 | { |
| 1750 | .vendor = "Atmel", |
| 1751 | .name = "AT25DL161", |
| 1752 | .bustype = BUS_SPI, |
| 1753 | .manufacture_id = ATMEL_ID, |
| 1754 | .model_id = ATMEL_AT25DL161, |
| 1755 | .total_size = 2048, |
| 1756 | .page_size = 256, |
| 1757 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1758 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 1759 | .tested = TEST_UNTESTED, |
| 1760 | .probe = probe_spi_rdid, |
| 1761 | .probe_timing = TIMING_ZERO, |
| 1762 | .block_erasers = |
| 1763 | { |
| 1764 | { |
| 1765 | .eraseblocks = { {4 * 1024, 512} }, |
| 1766 | .block_erase = spi_block_erase_20, |
| 1767 | }, { |
| 1768 | .eraseblocks = { {32 * 1024, 64} }, |
| 1769 | .block_erase = spi_block_erase_52, |
| 1770 | }, { |
| 1771 | .eraseblocks = { {64 * 1024, 32} }, |
| 1772 | .block_erase = spi_block_erase_d8, |
| 1773 | }, { |
| 1774 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1775 | .block_erase = spi_block_erase_60, |
| 1776 | }, { |
| 1777 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1778 | .block_erase = spi_block_erase_c7, |
| 1779 | } |
| 1780 | }, |
| 1781 | .printlock = spi_prettyprint_status_register_at25df_sec, |
| 1782 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
| 1783 | .write = spi_chip_write_256, /* Dual I/O (0xA2) supported */ |
| 1784 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 1785 | .voltage = {1650, 1950}, |
| 1786 | }, |
| 1787 | |
| 1788 | { |
| 1789 | .vendor = "Atmel", |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1790 | .name = "AT25DQ161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1791 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1792 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1793 | .model_id = ATMEL_AT25DQ161, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1794 | .total_size = 2048, |
| 1795 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1796 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1797 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1798 | .tested = TEST_UNTESTED, |
| 1799 | .probe = probe_spi_rdid, |
| 1800 | .probe_timing = TIMING_ZERO, |
| 1801 | .block_erasers = |
| 1802 | { |
| 1803 | { |
| 1804 | .eraseblocks = { {4 * 1024, 512} }, |
| 1805 | .block_erase = spi_block_erase_20, |
| 1806 | }, { |
| 1807 | .eraseblocks = { {32 * 1024, 64} }, |
| 1808 | .block_erase = spi_block_erase_52, |
| 1809 | }, { |
| 1810 | .eraseblocks = { {64 * 1024, 32} }, |
| 1811 | .block_erase = spi_block_erase_d8, |
| 1812 | }, { |
| 1813 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1814 | .block_erase = spi_block_erase_60, |
| 1815 | }, { |
| 1816 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1817 | .block_erase = spi_block_erase_c7, |
| 1818 | } |
| 1819 | }, |
| 1820 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1821 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1822 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1823 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1824 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1825 | }, |
| 1826 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1827 | { |
| 1828 | .vendor = "Atmel", |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 1829 | .name = "AT25F512", |
| 1830 | .bustype = BUS_SPI, |
| 1831 | .manufacture_id = ATMEL_ID, |
| 1832 | .model_id = ATMEL_AT25F512, |
| 1833 | .total_size = 64, |
| 1834 | .page_size = 256, |
| 1835 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1836 | .tested = TEST_OK_PREW, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 1837 | .probe = probe_spi_at25f, |
| 1838 | .probe_timing = TIMING_ZERO, |
| 1839 | .block_erasers = |
| 1840 | { |
| 1841 | { |
| 1842 | .eraseblocks = { {32 * 1024, 2} }, |
| 1843 | .block_erase = spi_block_erase_52, |
| 1844 | }, { |
| 1845 | .eraseblocks = { {64 * 1024, 1} }, |
| 1846 | .block_erase = spi_block_erase_62, |
| 1847 | } |
| 1848 | }, |
| 1849 | .printlock = spi_prettyprint_status_register_at25f, |
| 1850 | .unlock = spi_disable_blockprotect_at25f, |
| 1851 | .write = spi_chip_write_256, |
| 1852 | .read = spi_chip_read, |
| 1853 | .voltage = {2700, 3600}, |
| 1854 | }, |
| 1855 | |
| 1856 | { |
| 1857 | .vendor = "Atmel", |
| 1858 | .name = "AT25F512A", |
| 1859 | .bustype = BUS_SPI, |
| 1860 | .manufacture_id = ATMEL_ID, |
| 1861 | .model_id = ATMEL_AT25F512A, |
| 1862 | .total_size = 64, |
| 1863 | .page_size = 128, |
| 1864 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1865 | .tested = TEST_OK_PREW, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 1866 | .probe = probe_spi_at25f, |
| 1867 | .probe_timing = TIMING_ZERO, |
| 1868 | .block_erasers = |
| 1869 | { |
| 1870 | { |
| 1871 | .eraseblocks = { {32 * 1024, 2} }, |
| 1872 | .block_erase = spi_block_erase_52, |
| 1873 | }, { |
| 1874 | .eraseblocks = { {64 * 1024, 1} }, |
| 1875 | .block_erase = spi_block_erase_62, |
| 1876 | } |
| 1877 | }, |
| 1878 | .printlock = spi_prettyprint_status_register_at25f512a, |
| 1879 | /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */ |
| 1880 | .unlock = spi_disable_blockprotect_at25f512a, |
| 1881 | .write = spi_chip_write_256, |
| 1882 | .read = spi_chip_read, |
| 1883 | .voltage = {2700, 3600}, |
| 1884 | }, |
| 1885 | |
| 1886 | { |
| 1887 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1888 | .name = "AT25F512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1889 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1890 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1891 | .model_id = ATMEL_AT25F512B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1892 | .total_size = 64, |
| 1893 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1894 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1895 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1896 | .tested = TEST_UNTESTED, |
| 1897 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1898 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1899 | .block_erasers = |
| 1900 | { |
| 1901 | { |
| 1902 | .eraseblocks = { {4 * 1024, 16} }, |
| 1903 | .block_erase = spi_block_erase_20, |
| 1904 | }, { |
| 1905 | .eraseblocks = { {32 * 1024, 2} }, |
| 1906 | .block_erase = spi_block_erase_52, |
| 1907 | }, { |
| 1908 | .eraseblocks = { {32 * 1024, 2} }, |
| 1909 | .block_erase = spi_block_erase_d8, |
| 1910 | }, { |
| 1911 | .eraseblocks = { {64 * 1024, 1} }, |
| 1912 | .block_erase = spi_block_erase_60, |
| 1913 | }, { |
| 1914 | .eraseblocks = { {64 * 1024, 1} }, |
| 1915 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | 3c0fcd0 | 2012-09-21 12:46:56 +0000 | [diff] [blame] | 1916 | }, { |
| 1917 | .eraseblocks = { {64 * 1024, 1} }, |
| 1918 | .block_erase = spi_block_erase_62, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1919 | } |
| 1920 | }, |
Stefan Tauner | 7bf4ed9 | 2012-08-26 21:04:27 +0000 | [diff] [blame] | 1921 | .printlock = spi_prettyprint_status_register_at25f512b, |
| 1922 | .unlock = spi_disable_blockprotect_at25f512b, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1923 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1924 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1925 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1926 | }, |
| 1927 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1928 | { |
| 1929 | .vendor = "Atmel", |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 1930 | /* The A suffix indicates 33MHz instead of 20MHz clock rate. |
| 1931 | * All other properties seem to be the same.*/ |
| 1932 | .name = "AT25F1024(A)", |
| 1933 | .bustype = BUS_SPI, |
| 1934 | .manufacture_id = ATMEL_ID, |
| 1935 | .model_id = ATMEL_AT25F1024, |
| 1936 | .total_size = 128, |
| 1937 | .page_size = 256, |
| 1938 | .feature_bits = FEATURE_WRSR_WREN, |
| 1939 | .tested = TEST_OK_PREW, |
| 1940 | .probe = probe_spi_at25f, |
| 1941 | .probe_timing = TIMING_ZERO, |
| 1942 | .block_erasers = |
| 1943 | { |
| 1944 | { |
| 1945 | .eraseblocks = { {32 * 1024, 4} }, |
| 1946 | .block_erase = spi_block_erase_52, |
| 1947 | }, { |
| 1948 | .eraseblocks = { {128 * 1024, 1} }, |
| 1949 | .block_erase = spi_block_erase_62, |
| 1950 | } |
| 1951 | }, |
| 1952 | .printlock = spi_prettyprint_status_register_at25f, |
| 1953 | .unlock = spi_disable_blockprotect_at25f, |
| 1954 | .write = spi_chip_write_256, |
| 1955 | .read = spi_chip_read, |
| 1956 | .voltage = {2700, 3600}, |
| 1957 | }, |
| 1958 | |
| 1959 | { |
| 1960 | .vendor = "Atmel", |
| 1961 | .name = "AT25F2048", |
| 1962 | .bustype = BUS_SPI, |
| 1963 | .manufacture_id = ATMEL_ID, |
| 1964 | .model_id = ATMEL_AT25F2048, |
| 1965 | .total_size = 256, |
| 1966 | .page_size = 256, |
| 1967 | .feature_bits = FEATURE_WRSR_WREN, |
| 1968 | .tested = TEST_UNTESTED, |
| 1969 | .probe = probe_spi_at25f, |
| 1970 | .probe_timing = TIMING_ZERO, |
| 1971 | .block_erasers = |
| 1972 | { |
| 1973 | { |
| 1974 | .eraseblocks = { {64 * 1024, 4} }, |
| 1975 | .block_erase = spi_block_erase_52, |
| 1976 | }, { |
| 1977 | .eraseblocks = { {256 * 1024, 1} }, |
| 1978 | .block_erase = spi_block_erase_62, |
| 1979 | } |
| 1980 | }, |
| 1981 | .printlock = spi_prettyprint_status_register_at25f, |
| 1982 | .unlock = spi_disable_blockprotect_at25f, |
| 1983 | .write = spi_chip_write_256, |
| 1984 | .read = spi_chip_read, |
| 1985 | .voltage = {2700, 3600}, |
| 1986 | }, |
| 1987 | |
| 1988 | { |
| 1989 | .vendor = "Atmel", |
| 1990 | .name = "AT25F4096", |
| 1991 | .bustype = BUS_SPI, |
| 1992 | .manufacture_id = ATMEL_ID, |
| 1993 | .model_id = ATMEL_AT25F4096, |
| 1994 | .total_size = 512, |
| 1995 | .page_size = 256, |
| 1996 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 1997 | .tested = TEST_OK_PREW, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 1998 | .probe = probe_spi_at25f, |
| 1999 | .probe_timing = TIMING_ZERO, |
| 2000 | .block_erasers = |
| 2001 | { |
| 2002 | { |
| 2003 | .eraseblocks = { {64 * 1024, 8} }, |
| 2004 | .block_erase = spi_block_erase_52, |
| 2005 | }, { |
| 2006 | .eraseblocks = { {512 * 1024, 1} }, |
| 2007 | .block_erase = spi_block_erase_62, |
| 2008 | } |
| 2009 | }, |
| 2010 | .printlock = spi_prettyprint_status_register_at25f4096, |
Stefan Tauner | 278ba6e | 2013-06-28 21:28:27 +0000 | [diff] [blame] | 2011 | /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */ |
| 2012 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 2013 | .write = spi_chip_write_256, |
| 2014 | .read = spi_chip_read, |
| 2015 | .voltage = {2700, 3600}, |
| 2016 | }, |
| 2017 | |
| 2018 | { |
| 2019 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2020 | .name = "AT25FS010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2021 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2022 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2023 | .model_id = ATMEL_AT25FS010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2024 | .total_size = 128, |
| 2025 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2026 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 2027 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2028 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2029 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2030 | .block_erasers = |
| 2031 | { |
| 2032 | { |
| 2033 | .eraseblocks = { {4 * 1024, 32} }, |
| 2034 | .block_erase = spi_block_erase_20, |
| 2035 | }, { |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 2036 | .eraseblocks = { {4 * 1024, 32} }, |
| 2037 | .block_erase = spi_block_erase_d7, |
| 2038 | }, { |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2039 | .eraseblocks = { {32 * 1024, 4} }, |
| 2040 | .block_erase = spi_block_erase_52, |
| 2041 | }, { |
| 2042 | .eraseblocks = { {32 * 1024, 4} }, |
| 2043 | .block_erase = spi_block_erase_d8, |
| 2044 | }, { |
| 2045 | .eraseblocks = { {128 * 1024, 1} }, |
| 2046 | .block_erase = spi_block_erase_60, |
| 2047 | }, { |
| 2048 | .eraseblocks = { {128 * 1024, 1} }, |
| 2049 | .block_erase = spi_block_erase_c7, |
| 2050 | } |
| 2051 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 2052 | .printlock = spi_prettyprint_status_register_at25fs010, |
| 2053 | .unlock = spi_disable_blockprotect_at25fs010, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2054 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2055 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2056 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2057 | }, |
| 2058 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2059 | { |
| 2060 | .vendor = "Atmel", |
| 2061 | .name = "AT25FS040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2062 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2063 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2064 | .model_id = ATMEL_AT25FS040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2065 | .total_size = 512, |
| 2066 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2067 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2068 | .tested = TEST_UNTESTED, |
| 2069 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2070 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2071 | .block_erasers = |
| 2072 | { |
| 2073 | { |
| 2074 | .eraseblocks = { {4 * 1024, 128} }, |
| 2075 | .block_erase = spi_block_erase_20, |
| 2076 | }, { |
| 2077 | .eraseblocks = { {64 * 1024, 8} }, |
| 2078 | .block_erase = spi_block_erase_52, |
| 2079 | }, { |
| 2080 | .eraseblocks = { {64 * 1024, 8} }, |
| 2081 | .block_erase = spi_block_erase_d8, |
| 2082 | }, { |
| 2083 | .eraseblocks = { {512 * 1024, 1} }, |
| 2084 | .block_erase = spi_block_erase_60, |
| 2085 | }, { |
| 2086 | .eraseblocks = { {512 * 1024, 1} }, |
| 2087 | .block_erase = spi_block_erase_c7, |
| 2088 | } |
| 2089 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 2090 | .printlock = spi_prettyprint_status_register_at25fs040, |
| 2091 | .unlock = spi_disable_blockprotect_at25fs040, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2092 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2093 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2094 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2095 | }, |
| 2096 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2097 | { |
| 2098 | .vendor = "Atmel", |
| 2099 | .name = "AT26DF041", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2100 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2101 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2102 | .model_id = ATMEL_AT26DF041, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2103 | .total_size = 512, |
| 2104 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2105 | /* 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] | 2106 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2107 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2108 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2109 | .block_erasers = |
| 2110 | { |
| 2111 | { |
Stefan Tauner | 94b39b4 | 2012-10-27 00:06:02 +0000 | [diff] [blame] | 2112 | .eraseblocks = { {256, 2048} }, |
| 2113 | .block_erase = spi_block_erase_81, |
| 2114 | }, { |
| 2115 | .eraseblocks = { {2 * 1024, 256} }, |
| 2116 | .block_erase = spi_block_erase_50, |
| 2117 | }, { |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2118 | .eraseblocks = { {4 * 1024, 128} }, |
| 2119 | .block_erase = spi_block_erase_20, |
| 2120 | } |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2121 | }, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2122 | .printlock = spi_prettyprint_status_register_plain, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2123 | /* 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] | 2124 | .write = spi_chip_write_1, |
| 2125 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2126 | .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] | 2127 | }, |
| 2128 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2129 | { |
| 2130 | .vendor = "Atmel", |
| 2131 | .name = "AT26DF081A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2132 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2133 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2134 | .model_id = ATMEL_AT26DF081A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2135 | .total_size = 1024, |
| 2136 | .page_size = 256, |
Mathias Krause | 2c3afa3 | 2011-01-17 07:45:54 +0000 | [diff] [blame] | 2137 | .feature_bits = FEATURE_WRSR_WREN, |
| 2138 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2139 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2140 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2141 | .block_erasers = |
| 2142 | { |
| 2143 | { |
| 2144 | .eraseblocks = { {4 * 1024, 256} }, |
| 2145 | .block_erase = spi_block_erase_20, |
| 2146 | }, { |
| 2147 | .eraseblocks = { {32 * 1024, 32} }, |
| 2148 | .block_erase = spi_block_erase_52, |
| 2149 | }, { |
| 2150 | .eraseblocks = { {64 * 1024, 16} }, |
| 2151 | .block_erase = spi_block_erase_d8, |
| 2152 | }, { |
| 2153 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2154 | .block_erase = spi_block_erase_60, |
| 2155 | }, { |
| 2156 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2157 | .block_erase = spi_block_erase_c7, |
| 2158 | } |
| 2159 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2160 | .printlock = spi_prettyprint_status_register_at26df081a, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2161 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2162 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2163 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2164 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2165 | }, |
| 2166 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2167 | { |
| 2168 | .vendor = "Atmel", |
| 2169 | .name = "AT26DF161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2170 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2171 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2172 | .model_id = ATMEL_AT26DF161, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2173 | .total_size = 2048, |
| 2174 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2175 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 2176 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2177 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2178 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2179 | .block_erasers = |
| 2180 | { |
| 2181 | { |
| 2182 | .eraseblocks = { {4 * 1024, 512} }, |
| 2183 | .block_erase = spi_block_erase_20, |
| 2184 | }, { |
| 2185 | .eraseblocks = { {32 * 1024, 64} }, |
| 2186 | .block_erase = spi_block_erase_52, |
| 2187 | }, { |
| 2188 | .eraseblocks = { {64 * 1024, 32} }, |
| 2189 | .block_erase = spi_block_erase_d8, |
| 2190 | }, { |
| 2191 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2192 | .block_erase = spi_block_erase_60, |
| 2193 | }, { |
| 2194 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2195 | .block_erase = spi_block_erase_c7, |
| 2196 | } |
| 2197 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 2198 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2199 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2200 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2201 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2202 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2203 | }, |
| 2204 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2205 | { |
| 2206 | .vendor = "Atmel", |
| 2207 | .name = "AT26DF161A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2208 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2209 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2210 | .model_id = ATMEL_AT26DF161A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2211 | .total_size = 2048, |
| 2212 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2213 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2214 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2215 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2216 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2217 | .block_erasers = |
| 2218 | { |
| 2219 | { |
| 2220 | .eraseblocks = { {4 * 1024, 512} }, |
| 2221 | .block_erase = spi_block_erase_20, |
| 2222 | }, { |
| 2223 | .eraseblocks = { {32 * 1024, 64} }, |
| 2224 | .block_erase = spi_block_erase_52, |
| 2225 | }, { |
| 2226 | .eraseblocks = { {64 * 1024, 32} }, |
| 2227 | .block_erase = spi_block_erase_d8, |
| 2228 | }, { |
| 2229 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2230 | .block_erase = spi_block_erase_60, |
| 2231 | }, { |
| 2232 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2233 | .block_erase = spi_block_erase_c7, |
| 2234 | } |
| 2235 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2236 | .printlock = spi_prettyprint_status_register_at26df081a, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2237 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2238 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2239 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2240 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2241 | }, |
| 2242 | |
| 2243 | /*The AT26DF321 has the same ID as the AT25DF321. */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2244 | /*{ |
| 2245 | .vendor = "Atmel", |
| 2246 | .name = "AT26DF321", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2247 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2248 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2249 | .model_id = ATMEL_AT26DF321, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2250 | .total_size = 4096, |
| 2251 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2252 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2253 | .tested = TEST_UNTESTED, |
| 2254 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2255 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2256 | .printlock = spi_prettyprint_status_register_at26df081a, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2257 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2258 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2259 | .read = spi_chip_read, |
| 2260 | },*/ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2261 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2262 | { |
| 2263 | .vendor = "Atmel", |
| 2264 | .name = "AT26F004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2265 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2266 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2267 | .model_id = ATMEL_AT26F004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2268 | .total_size = 512, |
| 2269 | .page_size = 256, |
Stefan Tauner | 6455dff | 2014-05-26 00:36:24 +0000 | [diff] [blame] | 2270 | .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD }, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2271 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2272 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2273 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2274 | .block_erasers = |
| 2275 | { |
| 2276 | { |
| 2277 | .eraseblocks = { {4 * 1024, 128} }, |
| 2278 | .block_erase = spi_block_erase_20, |
| 2279 | }, { |
| 2280 | .eraseblocks = { {32 * 1024, 16} }, |
| 2281 | .block_erase = spi_block_erase_52, |
| 2282 | }, { |
| 2283 | .eraseblocks = { {64 * 1024, 8} }, |
| 2284 | .block_erase = spi_block_erase_d8, |
| 2285 | }, { |
| 2286 | .eraseblocks = { {512 * 1024, 1} }, |
| 2287 | .block_erase = spi_block_erase_60, |
| 2288 | }, { |
| 2289 | .eraseblocks = { {512 * 1024, 1} }, |
| 2290 | .block_erase = spi_block_erase_c7, |
| 2291 | } |
| 2292 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2293 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2294 | .write = NULL /* Incompatible Page write */, |
| 2295 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2296 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2297 | }, |
| 2298 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2299 | { |
| 2300 | .vendor = "Atmel", |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2301 | .name = "AT29C512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2302 | .bustype = BUS_PARALLEL, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2303 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2304 | .model_id = ATMEL_AT29C512, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2305 | .total_size = 64, |
| 2306 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2307 | .feature_bits = FEATURE_LONG_RESET, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 2308 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 2309 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 2310 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2311 | .block_erasers = |
| 2312 | { |
| 2313 | { |
| 2314 | .eraseblocks = { {64 * 1024, 1} }, |
| 2315 | .block_erase = erase_chip_block_jedec, |
| 2316 | } |
| 2317 | }, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2318 | .write = write_jedec, |
| 2319 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2320 | .voltage = {4500, 5500}, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2321 | }, |
| 2322 | |
| 2323 | { |
| 2324 | .vendor = "Atmel", |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2325 | .name = "AT29C010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2326 | .bustype = BUS_PARALLEL, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2327 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2328 | .model_id = ATMEL_AT29C010A, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2329 | .total_size = 128, |
| 2330 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2331 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 2332 | .tested = TEST_OK_PRE, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2333 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 2334 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2335 | .block_erasers = |
| 2336 | { |
| 2337 | { |
| 2338 | .eraseblocks = { {128 * 1024, 1} }, |
| 2339 | .block_erase = erase_chip_block_jedec, |
| 2340 | } |
| 2341 | }, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2342 | .write = write_jedec, /* FIXME */ |
| 2343 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2344 | .voltage = {4500, 5500}, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2345 | }, |
| 2346 | |
| 2347 | { |
| 2348 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2349 | .name = "AT29C020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2350 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2351 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2352 | .model_id = ATMEL_AT29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2353 | .total_size = 256, |
| 2354 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2355 | .feature_bits = FEATURE_LONG_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 2356 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2357 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 2358 | .probe_timing = 10000, /* 10ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2359 | .block_erasers = |
| 2360 | { |
| 2361 | { |
| 2362 | .eraseblocks = { {256 * 1024, 1} }, |
| 2363 | .block_erase = erase_chip_block_jedec, |
| 2364 | } |
| 2365 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2366 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2367 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2368 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2369 | }, |
| 2370 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2371 | { |
| 2372 | .vendor = "Atmel", |
| 2373 | .name = "AT29C040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2374 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2375 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2376 | .model_id = ATMEL_AT29C040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2377 | .total_size = 512, |
| 2378 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2379 | .feature_bits = FEATURE_LONG_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2380 | .tested = TEST_UNTESTED, |
| 2381 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 2382 | .probe_timing = 10000, /* 10 ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2383 | .block_erasers = |
| 2384 | { |
| 2385 | { |
| 2386 | .eraseblocks = { {512 * 1024, 1} }, |
| 2387 | .block_erase = erase_chip_block_jedec, |
| 2388 | } |
| 2389 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2390 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2391 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2392 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2393 | }, |
| 2394 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2395 | { |
| 2396 | .vendor = "Atmel", |
| 2397 | .name = "AT45CS1282", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2398 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2399 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2400 | .model_id = ATMEL_AT45CS1282, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2401 | .total_size = 16896 /* No power of two sizes */, |
| 2402 | .page_size = 1056 /* No power of two sizes */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2403 | /* 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] | 2404 | /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */ |
| 2405 | .feature_bits = FEATURE_OTP, |
| 2406 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2407 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2408 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | 1dd5d3a | 2013-08-27 18:02:19 +0000 | [diff] [blame] | 2409 | .block_erasers = |
| 2410 | { |
| 2411 | { |
| 2412 | .eraseblocks = { |
| 2413 | {8 * 1056, 1}, /* sector 0a: opcode 50h */ |
| 2414 | {248 * 1056, 1}, /* sector 0b: opcode 7Ch */ |
| 2415 | {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */ |
| 2416 | }, |
| 2417 | .block_erase = spi_erase_at45cs_sector, |
| 2418 | } |
| 2419 | }, |
| 2420 | .printlock = spi_prettyprint_status_register_plain, |
| 2421 | .gran = write_gran_1056bytes, |
| 2422 | .write = spi_write_at45db, |
| 2423 | .read = spi_read_at45db, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2424 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2425 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2426 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2427 | { |
| 2428 | .vendor = "Atmel", |
| 2429 | .name = "AT45DB011D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2430 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2431 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2432 | .model_id = ATMEL_AT45DB011D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2433 | .total_size = 128 /* or 132, determined from status register */, |
| 2434 | .page_size = 256 /* or 264, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2435 | /* 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] | 2436 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2437 | .feature_bits = FEATURE_OTP, |
| 2438 | .tested = TEST_UNTESTED, |
| 2439 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2440 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2441 | .block_erasers = |
| 2442 | { |
| 2443 | { |
| 2444 | .eraseblocks = { {256, 512} }, |
| 2445 | .block_erase = spi_erase_at45db_page, |
| 2446 | }, { |
| 2447 | .eraseblocks = { {8 * 256, 512/8} }, |
| 2448 | .block_erase = spi_erase_at45db_block, |
| 2449 | }, { |
| 2450 | .eraseblocks = { |
| 2451 | {8 * 256, 1}, |
| 2452 | {120 * 256, 1}, |
| 2453 | {128 * 256, 3}, |
| 2454 | }, |
| 2455 | .block_erase = spi_erase_at45db_sector |
| 2456 | }, { |
| 2457 | .eraseblocks = { {128 * 1024, 1} }, |
| 2458 | .block_erase = spi_erase_at45db_chip, |
| 2459 | } |
| 2460 | }, |
| 2461 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2462 | .printlock = spi_prettyprint_status_register_at45db, |
| 2463 | /* granularity will be set by the probing function. */ |
| 2464 | .write = spi_write_at45db, |
| 2465 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2466 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2467 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2468 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2469 | { |
| 2470 | .vendor = "Atmel", |
| 2471 | .name = "AT45DB021D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2472 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2473 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2474 | .model_id = ATMEL_AT45DB021D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2475 | .total_size = 256 /* or 264, determined from status register */, |
| 2476 | .page_size = 256 /* or 264, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2477 | /* 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] | 2478 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2479 | .feature_bits = FEATURE_OTP, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 2480 | .tested = TEST_OK_PREW, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2481 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2482 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2483 | .block_erasers = |
| 2484 | { |
| 2485 | { |
| 2486 | .eraseblocks = { {256, 1024} }, |
| 2487 | .block_erase = spi_erase_at45db_page, |
| 2488 | }, { |
| 2489 | .eraseblocks = { {8 * 256, 1024/8} }, |
| 2490 | .block_erase = spi_erase_at45db_block, |
| 2491 | }, { |
| 2492 | .eraseblocks = { |
| 2493 | {8 * 256, 1}, |
| 2494 | {120 * 256, 1}, |
| 2495 | {128 * 256, 7}, |
| 2496 | }, |
| 2497 | .block_erase = spi_erase_at45db_sector |
| 2498 | }, { |
| 2499 | .eraseblocks = { {256 * 1024, 1} }, |
| 2500 | .block_erase = spi_erase_at45db_chip, |
| 2501 | } |
| 2502 | }, |
| 2503 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2504 | .printlock = spi_prettyprint_status_register_at45db, |
| 2505 | /* granularity will be set by the probing function. */ |
| 2506 | .write = spi_write_at45db, |
| 2507 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2508 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2509 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2510 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2511 | { |
| 2512 | .vendor = "Atmel", |
| 2513 | .name = "AT45DB041D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2514 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2515 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2516 | .model_id = ATMEL_AT45DB041D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2517 | .total_size = 512 /* or 528, determined from status register */, |
| 2518 | .page_size = 256 /* or 264, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2519 | /* 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] | 2520 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2521 | .feature_bits = FEATURE_OTP, |
| 2522 | .tested = TEST_OK_PREW, |
| 2523 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2524 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2525 | .block_erasers = |
| 2526 | { |
| 2527 | { |
| 2528 | .eraseblocks = { {256, 2048} }, |
| 2529 | .block_erase = spi_erase_at45db_page, |
| 2530 | }, { |
| 2531 | .eraseblocks = { {8 * 256, 2048/8} }, |
| 2532 | .block_erase = spi_erase_at45db_block, |
| 2533 | }, { |
| 2534 | .eraseblocks = { |
| 2535 | {8 * 256, 1}, |
| 2536 | {248 * 256, 1}, |
| 2537 | {256 * 256, 7}, |
| 2538 | }, |
| 2539 | .block_erase = spi_erase_at45db_sector |
| 2540 | }, { |
| 2541 | .eraseblocks = { {512 * 1024, 1} }, |
| 2542 | .block_erase = spi_erase_at45db_chip, |
| 2543 | } |
| 2544 | }, |
| 2545 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2546 | .printlock = spi_prettyprint_status_register_at45db, |
| 2547 | /* granularity will be set by the probing function. */ |
| 2548 | .write = spi_write_at45db, |
| 2549 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 2550 | .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] | 2551 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2552 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2553 | { |
| 2554 | .vendor = "Atmel", |
| 2555 | .name = "AT45DB081D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2556 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2557 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2558 | .model_id = ATMEL_AT45DB081D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2559 | .total_size = 1024 /* or 1056, determined from status register */, |
| 2560 | .page_size = 256 /* or 264, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2561 | /* 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] | 2562 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2563 | .feature_bits = FEATURE_OTP, |
| 2564 | .tested = TEST_UNTESTED, |
| 2565 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2566 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2567 | .block_erasers = |
| 2568 | { |
| 2569 | { |
| 2570 | .eraseblocks = { {256, 4096} }, |
| 2571 | .block_erase = spi_erase_at45db_page, |
| 2572 | }, { |
| 2573 | .eraseblocks = { {8 * 256, 4096/8} }, |
| 2574 | .block_erase = spi_erase_at45db_block, |
| 2575 | }, { |
| 2576 | .eraseblocks = { |
| 2577 | {8 * 256, 1}, |
| 2578 | {248 * 256, 1}, |
| 2579 | {256 * 256, 15}, |
| 2580 | }, |
| 2581 | .block_erase = spi_erase_at45db_sector |
| 2582 | }, { |
| 2583 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2584 | .block_erase = spi_erase_at45db_chip, |
| 2585 | } |
| 2586 | }, |
| 2587 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2588 | .printlock = spi_prettyprint_status_register_at45db, |
| 2589 | /* granularity will be set by the probing function. */ |
| 2590 | .write = spi_write_at45db, |
| 2591 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2592 | .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] | 2593 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2594 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2595 | { |
| 2596 | .vendor = "Atmel", |
| 2597 | .name = "AT45DB161D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2598 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2599 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2600 | .model_id = ATMEL_AT45DB161D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2601 | .total_size = 2048 /* or 2112, determined from status register */, |
| 2602 | .page_size = 512 /* or 528, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2603 | /* 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] | 2604 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2605 | .feature_bits = FEATURE_OTP, |
| 2606 | .tested = TEST_OK_PREW, |
| 2607 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2608 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2609 | .block_erasers = |
| 2610 | { |
| 2611 | { |
| 2612 | .eraseblocks = { {512, 4096} }, |
| 2613 | .block_erase = spi_erase_at45db_page, |
| 2614 | }, { |
| 2615 | .eraseblocks = { {8 * 512, 4096/8} }, |
| 2616 | .block_erase = spi_erase_at45db_block, |
| 2617 | }, { |
| 2618 | .eraseblocks = { |
| 2619 | {8 * 512, 1}, |
| 2620 | {248 * 512, 1}, |
| 2621 | {256 * 512, 15}, |
| 2622 | }, |
| 2623 | .block_erase = spi_erase_at45db_sector |
| 2624 | }, { |
| 2625 | .eraseblocks = { {2048 * 1024, 1} }, |
| 2626 | .block_erase = spi_erase_at45db_chip, |
| 2627 | } |
| 2628 | }, |
| 2629 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2630 | .printlock = spi_prettyprint_status_register_at45db, |
| 2631 | /* granularity will be set by the probing function. */ |
| 2632 | .write = spi_write_at45db, |
| 2633 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2634 | .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] | 2635 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2636 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2637 | { |
| 2638 | .vendor = "Atmel", |
| 2639 | .name = "AT45DB321C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2640 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2641 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2642 | .model_id = ATMEL_AT45DB321C, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2643 | .total_size = 4224 /* No power of two sizes */, |
| 2644 | .page_size = 528 /* No power of two sizes */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2645 | /* 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] | 2646 | /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */ |
| 2647 | .feature_bits = FEATURE_OTP, |
| 2648 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2649 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2650 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | fdc4f7e | 2013-08-27 18:02:12 +0000 | [diff] [blame] | 2651 | .block_erasers = |
| 2652 | { |
| 2653 | { |
| 2654 | .eraseblocks = { {528, 8192} }, |
| 2655 | .block_erase = spi_erase_at45db_page, |
| 2656 | }, { |
| 2657 | .eraseblocks = { {8 * 528, 8192/8} }, |
| 2658 | .block_erase = spi_erase_at45db_block, |
| 2659 | }, /* Although the datasheets describes sectors (which can be write protected) |
| 2660 | * there seems to be no erase functions for them. |
| 2661 | { |
| 2662 | .eraseblocks = { |
| 2663 | {8 * 528, 1}, |
| 2664 | {120 * 528, 1}, |
| 2665 | {128 * 528, 63}, |
| 2666 | }, |
| 2667 | .block_erase = spi_erase_at45db_sector |
| 2668 | }, */ { |
| 2669 | .eraseblocks = { {4224 * 1024, 1} }, |
| 2670 | .block_erase = spi_erase_at45db_chip, |
| 2671 | } |
| 2672 | }, |
| 2673 | .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */ |
| 2674 | .gran = write_gran_528bytes, |
| 2675 | .write = spi_write_at45db, |
| 2676 | .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2677 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2678 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2679 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2680 | { |
| 2681 | .vendor = "Atmel", |
| 2682 | .name = "AT45DB321D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2683 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2684 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2685 | .model_id = ATMEL_AT45DB321D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2686 | .total_size = 4096 /* or 4224, determined from status register */, |
| 2687 | .page_size = 512 /* or 528, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2688 | /* 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] | 2689 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 2690 | .feature_bits = FEATURE_OTP, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2691 | .tested = TEST_UNTESTED, |
| 2692 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2693 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2694 | .block_erasers = |
| 2695 | { |
| 2696 | { |
| 2697 | .eraseblocks = { {512, 8192} }, |
| 2698 | .block_erase = spi_erase_at45db_page, |
| 2699 | }, { |
| 2700 | .eraseblocks = { {8 * 512, 8192/8} }, |
| 2701 | .block_erase = spi_erase_at45db_block, |
| 2702 | }, { |
| 2703 | .eraseblocks = { |
| 2704 | {8 * 512, 1}, |
| 2705 | {120 * 512, 1}, |
| 2706 | {128 * 512, 63}, |
| 2707 | }, |
| 2708 | .block_erase = spi_erase_at45db_sector |
| 2709 | }, { |
| 2710 | .eraseblocks = { {4096 * 1024, 1} }, |
| 2711 | .block_erase = spi_erase_at45db_chip, |
| 2712 | } |
| 2713 | }, |
| 2714 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2715 | .printlock = spi_prettyprint_status_register_at45db, |
| 2716 | /* granularity will be set by the probing function. */ |
| 2717 | .write = spi_write_at45db, |
| 2718 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 2719 | .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */ |
| 2720 | }, |
| 2721 | |
| 2722 | { |
| 2723 | .vendor = "Atmel", |
| 2724 | .name = "AT45DB321E", |
| 2725 | .bustype = BUS_SPI, |
| 2726 | .manufacture_id = ATMEL_ID, |
| 2727 | .model_id = ATMEL_AT45DB321C, |
| 2728 | .total_size = 4096 /* or 4224, determined from status register */, |
| 2729 | .page_size = 512 /* or 528, determined from status register */, |
| 2730 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
| 2731 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2732 | .feature_bits = FEATURE_OTP, |
| 2733 | .tested = TEST_UNTESTED, |
| 2734 | .probe = probe_spi_at45db, |
| 2735 | .probe_timing = TIMING_ZERO, |
| 2736 | .block_erasers = |
| 2737 | { |
| 2738 | { |
| 2739 | .eraseblocks = { {512, 8192} }, |
| 2740 | .block_erase = spi_erase_at45db_page, |
| 2741 | }, { |
| 2742 | .eraseblocks = { {8 * 512, 8192/8} }, |
| 2743 | .block_erase = spi_erase_at45db_block, |
| 2744 | }, { |
| 2745 | .eraseblocks = { |
| 2746 | {8 * 512, 1}, |
| 2747 | {120 * 512, 1}, |
| 2748 | {128 * 512, 63}, |
| 2749 | }, |
| 2750 | .block_erase = spi_erase_at45db_sector |
| 2751 | }, { |
| 2752 | .eraseblocks = { {4096 * 1024, 1} }, |
| 2753 | .block_erase = spi_erase_at45db_chip, |
| 2754 | } |
| 2755 | }, |
| 2756 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2757 | .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */ |
| 2758 | /* granularity will be set by the probing function. */ |
| 2759 | .write = spi_write_at45db, |
| 2760 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 2761 | .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] | 2762 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2763 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2764 | { |
| 2765 | .vendor = "Atmel", |
| 2766 | .name = "AT45DB642D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2767 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2768 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2769 | .model_id = ATMEL_AT45DB642D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2770 | .total_size = 8192 /* or 8448, determined from status register */, |
| 2771 | .page_size = 1024 /* or 1056, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2772 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2773 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2774 | .feature_bits = FEATURE_OTP, |
| 2775 | .tested = TEST_UNTESTED, |
| 2776 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2777 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2778 | .block_erasers = |
| 2779 | { |
| 2780 | { |
| 2781 | .eraseblocks = { {1024, 8192} }, |
| 2782 | .block_erase = spi_erase_at45db_page, |
| 2783 | }, { |
| 2784 | .eraseblocks = { {8 * 1024, 8192/8} }, |
| 2785 | .block_erase = spi_erase_at45db_block, |
| 2786 | }, { |
| 2787 | .eraseblocks = { |
| 2788 | {8 * 1024, 1}, |
| 2789 | {248 * 1024, 1}, |
| 2790 | {256 * 1024, 31}, |
| 2791 | }, |
| 2792 | .block_erase = spi_erase_at45db_sector |
| 2793 | }, { |
| 2794 | .eraseblocks = { {8192 * 1024, 1} }, |
| 2795 | .block_erase = spi_erase_at45db_chip, |
| 2796 | } |
| 2797 | }, |
| 2798 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2799 | .printlock = spi_prettyprint_status_register_at45db, |
| 2800 | /* granularity will be set by the probing function. */ |
| 2801 | .write = spi_write_at45db, |
| 2802 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2803 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2804 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2805 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2806 | { |
| 2807 | .vendor = "Atmel", |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2808 | .name = "AT49BV512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2809 | .bustype = BUS_PARALLEL, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2810 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2811 | .model_id = ATMEL_AT49BV512, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2812 | .total_size = 64, |
| 2813 | .page_size = 64, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2814 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 2815 | .tested = TEST_OK_PREW, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2816 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2817 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2818 | .block_erasers = |
| 2819 | { |
| 2820 | { |
| 2821 | .eraseblocks = { {64 * 1024, 1} }, |
| 2822 | .block_erase = erase_chip_block_jedec, |
| 2823 | } |
| 2824 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2825 | .write = write_jedec_1, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2826 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2827 | .voltage = {2700, 3600}, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2828 | }, |
| 2829 | |
| 2830 | { |
| 2831 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2832 | .name = "AT49F002(N)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2833 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2834 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2835 | .model_id = ATMEL_AT49F002N, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2836 | .total_size = 256, |
| 2837 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2838 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2839 | .tested = TEST_UNTESTED, |
| 2840 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2841 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2842 | .block_erasers = |
| 2843 | { |
| 2844 | { |
| 2845 | .eraseblocks = { |
| 2846 | {16 * 1024, 1}, |
| 2847 | {8 * 1024, 2}, |
| 2848 | {96 * 1024, 1}, |
| 2849 | {128 * 1024, 1}, |
| 2850 | }, |
| 2851 | .block_erase = erase_sector_jedec, |
| 2852 | }, { |
| 2853 | .eraseblocks = { {256 * 1024, 1} }, |
| 2854 | .block_erase = erase_chip_block_jedec, |
| 2855 | } |
| 2856 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2857 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2858 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2859 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2860 | }, |
| 2861 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2862 | { |
| 2863 | .vendor = "Atmel", |
| 2864 | .name = "AT49F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2865 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2866 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2867 | .model_id = ATMEL_AT49F002NT, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2868 | .total_size = 256, |
| 2869 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2870 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 2871 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2872 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2873 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2874 | .block_erasers = |
| 2875 | { |
| 2876 | { |
| 2877 | .eraseblocks = { |
| 2878 | {128 * 1024, 1}, |
| 2879 | {96 * 1024, 1}, |
| 2880 | {8 * 1024, 2}, |
| 2881 | {16 * 1024, 1}, |
| 2882 | }, |
| 2883 | .block_erase = erase_sector_jedec, |
| 2884 | }, { |
| 2885 | .eraseblocks = { {256 * 1024, 1} }, |
| 2886 | .block_erase = erase_chip_block_jedec, |
| 2887 | } |
| 2888 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2889 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2890 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2891 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2892 | }, |
| 2893 | |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 2894 | { |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 2895 | .vendor = "Atmel", |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 2896 | .name = "AT49(H)F010", |
| 2897 | .bustype = BUS_PARALLEL, |
| 2898 | .manufacture_id = ATMEL_ID, |
| 2899 | .model_id = ATMEL_AT49F010, |
| 2900 | .total_size = 128, |
| 2901 | .page_size = 0, /* unused */ |
| 2902 | .feature_bits = FEATURE_EITHER_RESET, |
| 2903 | .tested = TEST_OK_PREW, |
| 2904 | .probe = probe_jedec, |
| 2905 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2906 | .block_erasers = |
| 2907 | { |
| 2908 | { |
| 2909 | .eraseblocks = { {128 * 1024, 1} }, |
| 2910 | .block_erase = erase_chip_block_jedec, |
| 2911 | } |
| 2912 | }, |
| 2913 | .printlock = printlock_at49f, |
| 2914 | .write = write_jedec_1, |
| 2915 | .read = read_memmapped, |
| 2916 | .voltage = {4500, 5500}, |
| 2917 | }, |
| 2918 | |
| 2919 | { |
| 2920 | .vendor = "Atmel", |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 2921 | .name = "AT49F020", |
| 2922 | .bustype = BUS_PARALLEL, |
| 2923 | .manufacture_id = ATMEL_ID, |
| 2924 | .model_id = ATMEL_AT49F020, |
| 2925 | .total_size = 256, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 2926 | .page_size = 0, /* unused */ |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 2927 | .feature_bits = FEATURE_EITHER_RESET, |
| 2928 | .tested = TEST_OK_PRE, |
| 2929 | .probe = probe_jedec, |
| 2930 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2931 | .block_erasers = |
| 2932 | { |
| 2933 | { |
| 2934 | .eraseblocks = { {256 * 1024, 1} }, |
| 2935 | .block_erase = erase_chip_block_jedec, |
| 2936 | } |
| 2937 | /* Chip features an optional permanent write protection |
| 2938 | * of the first 8 kB. The erase function is the same as |
| 2939 | * above, but 00000H to 01FFFH will not be erased. |
| 2940 | * FIXME: add another eraser when partial erasers are |
| 2941 | * supported. |
| 2942 | */ |
| 2943 | }, |
| 2944 | .printlock = printlock_at49f, |
| 2945 | .write = write_jedec_1, |
| 2946 | .read = read_memmapped, |
| 2947 | .voltage = {4500, 5500}, |
| 2948 | }, |
| 2949 | |
| 2950 | { |
| 2951 | .vendor = "Atmel", |
| 2952 | .name = "AT49F040", |
| 2953 | .bustype = BUS_PARALLEL, |
| 2954 | .manufacture_id = ATMEL_ID, |
| 2955 | .model_id = ATMEL_AT49F040, |
| 2956 | .total_size = 512, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 2957 | .page_size = 0, /* unused */ |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 2958 | .feature_bits = FEATURE_EITHER_RESET, |
| 2959 | .tested = TEST_UNTESTED, |
| 2960 | .probe = probe_jedec, |
| 2961 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2962 | .block_erasers = |
| 2963 | { |
| 2964 | { |
| 2965 | .eraseblocks = { {512 * 1024, 1} }, |
| 2966 | .block_erase = erase_chip_block_jedec, |
| 2967 | } |
| 2968 | /* Chip features an optional permanent write protection |
| 2969 | * of the first 16 kB. The erase function is the same as |
| 2970 | * above, but 00000H to 03FFFH will not be erased. |
| 2971 | * FIXME: add another eraser when partial erasers are |
| 2972 | * supported. |
| 2973 | */ |
| 2974 | }, |
| 2975 | .printlock = printlock_at49f, |
| 2976 | .write = write_jedec_1, |
| 2977 | .read = read_memmapped, |
| 2978 | .voltage = {4500, 5500}, |
| 2979 | }, |
| 2980 | |
| 2981 | { |
| 2982 | .vendor = "Atmel", |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 2983 | .name = "AT49F080", |
| 2984 | .bustype = BUS_PARALLEL, |
| 2985 | .manufacture_id = ATMEL_ID, |
| 2986 | .model_id = ATMEL_AT49F080, |
| 2987 | .total_size = 1024, |
| 2988 | .page_size = 0, /* unused */ |
| 2989 | .feature_bits = FEATURE_EITHER_RESET, |
| 2990 | .tested = TEST_UNTESTED, |
| 2991 | .probe = probe_jedec, |
| 2992 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2993 | .block_erasers = |
| 2994 | { |
| 2995 | { |
| 2996 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2997 | .block_erase = erase_chip_block_jedec, |
| 2998 | } |
| 2999 | /* Chip features an optional permanent write protection |
| 3000 | * of the first 16 kB. The erase function is the same as |
| 3001 | * above, but 00000H to 03FFFH will not be erased. |
| 3002 | * FIXME: add another eraser when partial erasers are |
| 3003 | * supported. |
| 3004 | */ |
| 3005 | }, |
| 3006 | .printlock = printlock_at49f, |
| 3007 | .write = write_jedec_1, |
| 3008 | .read = read_memmapped, |
| 3009 | .voltage = {4500, 5500}, |
| 3010 | }, |
| 3011 | |
| 3012 | { |
| 3013 | /* 'top' version of AT49F080. equal in all aspects but the boot block address */ |
| 3014 | .vendor = "Atmel", |
| 3015 | .name = "AT49F080T", |
| 3016 | .bustype = BUS_PARALLEL, |
| 3017 | .manufacture_id = ATMEL_ID, |
| 3018 | .model_id = ATMEL_AT49F080T, |
| 3019 | .total_size = 1024, |
| 3020 | .page_size = 0, /* unused */ |
| 3021 | .feature_bits = FEATURE_EITHER_RESET, |
| 3022 | .tested = TEST_UNTESTED, |
| 3023 | .probe = probe_jedec, |
| 3024 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 3025 | .block_erasers = |
| 3026 | { |
| 3027 | { |
| 3028 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3029 | .block_erase = erase_chip_block_jedec, |
| 3030 | } |
| 3031 | /* Chip features an optional permanent write protection |
| 3032 | * of the first 16 kB. The erase function is the same as |
| 3033 | * above, but FC000H to FFFFFH will not be erased. |
| 3034 | * FIXME: add another eraser when partial erasers are |
| 3035 | * supported. |
| 3036 | */ |
| 3037 | }, |
| 3038 | .printlock = printlock_at49f, |
| 3039 | .write = write_jedec_1, |
| 3040 | .read = read_memmapped, |
| 3041 | .voltage = {4500, 5500}, |
| 3042 | }, |
| 3043 | |
| 3044 | { |
| 3045 | .vendor = "Atmel", |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3046 | .name = "AT49LH002", |
| 3047 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 3048 | .manufacture_id = ATMEL_ID, |
| 3049 | .model_id = ATMEL_AT49LH002, |
| 3050 | .total_size = 256, |
| 3051 | .page_size = 0, /* unused */ |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3052 | .feature_bits = FEATURE_REGISTERMAP, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3053 | .tested = TEST_UNTESTED, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3054 | .probe = probe_82802ab, |
| 3055 | .probe_timing = TIMING_ZERO, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3056 | .block_erasers = |
| 3057 | { |
| 3058 | { |
| 3059 | .eraseblocks = { |
| 3060 | {64 * 1024, 3}, |
| 3061 | {32 * 1024, 1}, |
| 3062 | {8 * 1024, 2}, |
| 3063 | {16 * 1024, 1}, |
| 3064 | }, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3065 | .block_erase = NULL, /* TODO: Implement. */ |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3066 | }, { |
| 3067 | .eraseblocks = { |
| 3068 | {64 * 1024, 4}, |
| 3069 | }, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3070 | .block_erase = erase_block_82802ab, |
| 3071 | }, |
| 3072 | }, |
| 3073 | .printlock = printlock_regspace2_block_eraser_0, |
| 3074 | .unlock = unlock_regspace2_block_eraser_0, |
| 3075 | .write = write_82802ab, |
| 3076 | .read = read_memmapped, |
| 3077 | .voltage = {3000, 3600}, |
| 3078 | }, |
| 3079 | |
| 3080 | { |
| 3081 | .vendor = "Atmel", |
| 3082 | .name = "AT49LH00B4", |
| 3083 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 3084 | .manufacture_id = ATMEL_ID, |
| 3085 | .model_id = ATMEL_AT49LH00B4, |
| 3086 | .total_size = 512, |
| 3087 | .page_size = 0, /* unused */ |
| 3088 | .feature_bits = FEATURE_REGISTERMAP, |
| 3089 | .tested = TEST_UNTESTED, |
| 3090 | .probe = probe_82802ab, |
| 3091 | .probe_timing = TIMING_ZERO, |
| 3092 | .block_erasers = |
| 3093 | { |
| 3094 | { |
| 3095 | .eraseblocks = { |
| 3096 | {8 * 1024, 2}, |
| 3097 | {16 * 1024, 1}, |
| 3098 | {32 * 1024, 1}, |
| 3099 | {64 * 1024, 7}, |
| 3100 | }, |
| 3101 | .block_erase = NULL, /* TODO: Implement. */ |
| 3102 | }, { |
| 3103 | .eraseblocks = { |
| 3104 | {64 * 1024, 8}, |
| 3105 | }, |
| 3106 | .block_erase = erase_block_82802ab, |
| 3107 | }, |
| 3108 | }, |
| 3109 | .printlock = printlock_regspace2_block_eraser_0, |
| 3110 | .unlock = unlock_regspace2_block_eraser_0, |
| 3111 | .write = write_82802ab, |
| 3112 | .read = read_memmapped, |
| 3113 | .voltage = {3000, 3600}, |
| 3114 | }, |
| 3115 | |
| 3116 | { |
| 3117 | .vendor = "Atmel", |
| 3118 | .name = "AT49LH004", |
| 3119 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 3120 | .manufacture_id = ATMEL_ID, |
| 3121 | .model_id = ATMEL_AT49LH004, |
| 3122 | .total_size = 512, |
| 3123 | .page_size = 0, /* unused */ |
| 3124 | .feature_bits = FEATURE_REGISTERMAP, |
| 3125 | .tested = TEST_UNTESTED, |
| 3126 | .probe = probe_82802ab, |
| 3127 | .probe_timing = TIMING_ZERO, |
| 3128 | .block_erasers = |
| 3129 | { |
| 3130 | { |
| 3131 | .eraseblocks = { |
| 3132 | {64 * 1024, 7}, |
| 3133 | {32 * 1024, 1}, |
| 3134 | {8 * 1024, 2}, |
| 3135 | {16 * 1024, 1}, |
| 3136 | }, |
| 3137 | .block_erase = erase_block_82802ab, |
| 3138 | }, { |
| 3139 | .eraseblocks = { |
| 3140 | {64 * 1024, 8}, |
| 3141 | }, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3142 | .block_erase = NULL, /* TODO: Implement. */ |
| 3143 | }, |
| 3144 | }, |
Stefan Tauner | 7de9393 | 2014-08-03 13:05:45 +0000 | [diff] [blame] | 3145 | .printlock = printlock_regspace2_block_eraser_0, |
| 3146 | .unlock = unlock_regspace2_block_eraser_0, |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 3147 | .write = write_82802ab, |
| 3148 | .read = read_memmapped, |
| 3149 | .voltage = {3000, 3600}, |
| 3150 | }, |
| 3151 | |
| 3152 | { |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3153 | .vendor = "Catalyst", |
| 3154 | .name = "CAT28F512", |
| 3155 | .bustype = BUS_PARALLEL, |
| 3156 | .manufacture_id = CATALYST_ID, |
| 3157 | .model_id = CATALYST_CAT28F512, |
| 3158 | .total_size = 64, |
| 3159 | .page_size = 0, /* unused */ |
| 3160 | .feature_bits = 0, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 3161 | .tested = {.probe = OK, .read = OK, .erase = BAD, .write = BAD }, |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3162 | .probe = probe_jedec, /* FIXME! */ |
| 3163 | .probe_timing = TIMING_ZERO, |
| 3164 | .block_erasers = |
| 3165 | { |
| 3166 | { |
| 3167 | .eraseblocks = { {64 * 1024, 1} }, |
| 3168 | .block_erase = NULL, /* TODO */ |
| 3169 | }, |
| 3170 | }, |
| 3171 | .write = NULL, /* TODO */ |
| 3172 | .read = read_memmapped, |
| 3173 | .voltage = {4500, 5500}, |
| 3174 | }, |
| 3175 | |
| 3176 | { |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3177 | .vendor = "Bright", |
| 3178 | .name = "BM29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3179 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3180 | .manufacture_id = BRIGHT_ID, |
| 3181 | .model_id = BRIGHT_BM29F040, |
| 3182 | .total_size = 512, |
| 3183 | .page_size = 64 * 1024, |
| 3184 | .feature_bits = FEATURE_EITHER_RESET, |
| 3185 | .tested = TEST_OK_PR, |
| 3186 | .probe = probe_jedec, |
| 3187 | .probe_timing = TIMING_ZERO, |
| 3188 | .block_erasers = |
| 3189 | { |
| 3190 | { |
| 3191 | .eraseblocks = { {64 * 1024, 8} }, |
| 3192 | .block_erase = erase_sector_jedec, |
| 3193 | }, { |
| 3194 | .eraseblocks = { {512 * 1024, 1} }, |
| 3195 | .block_erase = erase_chip_block_jedec, |
| 3196 | }, |
| 3197 | }, |
| 3198 | .write = write_jedec_1, |
| 3199 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 3200 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3201 | }, |
| 3202 | |
| 3203 | { |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3204 | .vendor = "ESMT", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3205 | .name = "F49B002UA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3206 | .bustype = BUS_PARALLEL, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3207 | .manufacture_id = ESMT_ID, |
| 3208 | .model_id = ESMT_F49B002UA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3209 | .total_size = 256, |
| 3210 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3211 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3212 | .tested = TEST_UNTESTED, |
| 3213 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3214 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3215 | .block_erasers = |
| 3216 | { |
| 3217 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 3218 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3219 | {128 * 1024, 1}, |
| 3220 | {96 * 1024, 1}, |
| 3221 | {8 * 1024, 2}, |
| 3222 | {16 * 1024, 1}, |
| 3223 | }, |
| 3224 | .block_erase = erase_sector_jedec, |
| 3225 | }, { |
| 3226 | .eraseblocks = { {256 * 1024, 1} }, |
| 3227 | .block_erase = erase_chip_block_jedec, |
| 3228 | } |
| 3229 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3230 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3231 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3232 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3233 | }, |
| 3234 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3235 | { |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3236 | .vendor = "ESMT", |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3237 | .name = "F25L008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3238 | .bustype = BUS_SPI, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3239 | .manufacture_id = ESMT_ID, |
| 3240 | .model_id = ESMT_F25L008A, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3241 | .total_size = 1024, |
| 3242 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3243 | .feature_bits = FEATURE_WRSR_EITHER, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 3244 | .tested = TEST_OK_PREW, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3245 | .probe = probe_spi_rdid, |
| 3246 | .probe_timing = TIMING_ZERO, |
| 3247 | .block_erasers = |
| 3248 | { |
| 3249 | { |
| 3250 | .eraseblocks = { {4 * 1024, 256} }, |
| 3251 | .block_erase = spi_block_erase_20, |
| 3252 | }, { |
| 3253 | .eraseblocks = { {64 * 1024, 16} }, |
| 3254 | .block_erase = spi_block_erase_d8, |
| 3255 | }, { |
| 3256 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3257 | .block_erase = spi_block_erase_60, |
| 3258 | }, { |
| 3259 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3260 | .block_erase = spi_block_erase_c7, |
| 3261 | } |
| 3262 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3263 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3264 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 9a795d8 | 2010-07-14 16:19:05 +0000 | [diff] [blame] | 3265 | .write = spi_chip_write_1, |
Michael Karcher | 4497e86 | 2010-07-10 19:34:15 +0000 | [diff] [blame] | 3266 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3267 | .voltage = {2700, 3600}, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3268 | }, |
| 3269 | |
| 3270 | { |
Stefan Tauner | 85f09f7 | 2014-05-27 21:27:14 +0000 | [diff] [blame] | 3271 | .vendor = "ESMT", |
| 3272 | .name = "F25L32PA", |
| 3273 | .bustype = BUS_SPI, |
| 3274 | .manufacture_id = ESMT_ID, |
| 3275 | .model_id = ESMT_F25L32PA, |
| 3276 | .total_size = 4096, |
| 3277 | .page_size = 256, |
| 3278 | .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP, |
| 3279 | .tested = TEST_UNTESTED, |
| 3280 | .probe = probe_spi_rdid, |
| 3281 | .probe_timing = TIMING_ZERO, |
| 3282 | .block_erasers = |
| 3283 | { |
| 3284 | { |
| 3285 | .eraseblocks = { {4 * 1024, 1024} }, |
| 3286 | .block_erase = spi_block_erase_20, |
| 3287 | }, { |
| 3288 | .eraseblocks = { {64 * 1024, 64} }, |
| 3289 | .block_erase = spi_block_erase_d8, |
| 3290 | }, { |
| 3291 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3292 | .block_erase = spi_block_erase_60, |
| 3293 | }, { |
| 3294 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3295 | .block_erase = spi_block_erase_c7, |
| 3296 | } |
| 3297 | }, |
| 3298 | .printlock = spi_prettyprint_status_register_bp2_bpl, |
| 3299 | .unlock = spi_disable_blockprotect, |
| 3300 | .write = spi_chip_write_256, |
| 3301 | .read = spi_chip_read, |
| 3302 | .voltage = {2700, 3600}, |
| 3303 | }, |
| 3304 | |
| 3305 | { |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3306 | .vendor = "Eon", |
| 3307 | .name = "EN25B05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3308 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3309 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3310 | .model_id = EON_EN25B05, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3311 | .total_size = 64, |
| 3312 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3313 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3314 | .tested = TEST_UNTESTED, |
| 3315 | .probe = probe_spi_rdid, |
| 3316 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3317 | .block_erasers = |
| 3318 | { |
| 3319 | { |
| 3320 | .eraseblocks = { |
| 3321 | {4 * 1024, 2}, |
| 3322 | {8 * 1024, 1}, |
| 3323 | {16 * 1024, 1}, |
| 3324 | {32 * 1024, 1}, |
| 3325 | }, |
| 3326 | .block_erase = spi_block_erase_d8, |
| 3327 | }, { |
| 3328 | .eraseblocks = { {64 * 1024, 1} }, |
| 3329 | .block_erase = spi_block_erase_c7, |
| 3330 | } |
| 3331 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3332 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3333 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3334 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame^] | 3335 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3336 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3337 | }, |
| 3338 | |
| 3339 | { |
| 3340 | .vendor = "Eon", |
| 3341 | .name = "EN25B05T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3342 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3343 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3344 | .model_id = EON_EN25B05, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3345 | .total_size = 64, |
| 3346 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3347 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3348 | .tested = TEST_UNTESTED, |
| 3349 | .probe = probe_spi_rdid, |
| 3350 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3351 | .block_erasers = |
| 3352 | { |
| 3353 | { |
| 3354 | .eraseblocks = { |
| 3355 | {32 * 1024, 1}, |
| 3356 | {16 * 1024, 1}, |
| 3357 | {8 * 1024, 1}, |
| 3358 | {4 * 1024, 2}, |
| 3359 | }, |
| 3360 | .block_erase = spi_block_erase_d8, |
| 3361 | }, { |
| 3362 | .eraseblocks = { {64 * 1024, 1} }, |
| 3363 | .block_erase = spi_block_erase_c7, |
| 3364 | } |
| 3365 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3366 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3367 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3368 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame^] | 3369 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3370 | .voltage = {2700, 3600}, |
| 3371 | }, |
| 3372 | |
| 3373 | { |
| 3374 | .vendor = "Eon", |
| 3375 | .name = "EN25P05", |
| 3376 | .bustype = BUS_SPI, |
| 3377 | .manufacture_id = EON_ID_NOPREFIX, |
| 3378 | .model_id = EON_EN25B05, |
| 3379 | .total_size = 64, |
| 3380 | .page_size = 256, |
| 3381 | .feature_bits = FEATURE_WRSR_WREN, |
| 3382 | .tested = TEST_UNTESTED, |
| 3383 | .probe = probe_spi_rdid, |
| 3384 | .probe_timing = TIMING_ZERO, |
| 3385 | .block_erasers = |
| 3386 | { |
| 3387 | { |
| 3388 | .eraseblocks = { |
| 3389 | {32 * 1024, 2} }, |
| 3390 | .block_erase = spi_block_erase_d8, |
| 3391 | }, { |
| 3392 | .eraseblocks = { {64 * 1024, 1} }, |
| 3393 | .block_erase = spi_block_erase_c7, |
| 3394 | } |
| 3395 | }, |
| 3396 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 3397 | .unlock = spi_disable_blockprotect, |
| 3398 | .write = spi_chip_write_256, |
| 3399 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3400 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3401 | }, |
| 3402 | |
| 3403 | { |
| 3404 | .vendor = "Eon", |
| 3405 | .name = "EN25B10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3406 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3407 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3408 | .model_id = EON_EN25B10, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3409 | .total_size = 128, |
| 3410 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3411 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3412 | .tested = TEST_UNTESTED, |
| 3413 | .probe = probe_spi_rdid, |
| 3414 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3415 | .block_erasers = |
| 3416 | { |
| 3417 | { |
| 3418 | .eraseblocks = { |
| 3419 | {4 * 1024, 2}, |
| 3420 | {8 * 1024, 1}, |
| 3421 | {16 * 1024, 1}, |
| 3422 | {32 * 1024, 3}, |
| 3423 | }, |
| 3424 | .block_erase = spi_block_erase_d8, |
| 3425 | }, { |
| 3426 | .eraseblocks = { {128 * 1024, 1} }, |
| 3427 | .block_erase = spi_block_erase_c7, |
| 3428 | } |
| 3429 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3430 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3431 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3432 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame^] | 3433 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3434 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3435 | }, |
| 3436 | |
| 3437 | { |
| 3438 | .vendor = "Eon", |
| 3439 | .name = "EN25B10T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3440 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3441 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3442 | .model_id = EON_EN25B10, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3443 | .total_size = 128, |
| 3444 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3445 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 3446 | .tested = TEST_OK_PREW, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3447 | .probe = probe_spi_rdid, |
| 3448 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3449 | .block_erasers = |
| 3450 | { |
| 3451 | { |
| 3452 | .eraseblocks = { |
| 3453 | {32 * 1024, 3}, |
| 3454 | {16 * 1024, 1}, |
| 3455 | {8 * 1024, 1}, |
| 3456 | {4 * 1024, 2}, |
| 3457 | }, |
| 3458 | .block_erase = spi_block_erase_d8, |
| 3459 | }, { |
| 3460 | .eraseblocks = { {128 * 1024, 1} }, |
| 3461 | .block_erase = spi_block_erase_c7, |
| 3462 | } |
| 3463 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3464 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3465 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3466 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame^] | 3467 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3468 | .voltage = {2700, 3600}, |
| 3469 | }, |
| 3470 | |
| 3471 | { |
| 3472 | .vendor = "Eon", |
| 3473 | .name = "EN25P10", |
| 3474 | .bustype = BUS_SPI, |
| 3475 | .manufacture_id = EON_ID_NOPREFIX, |
| 3476 | .model_id = EON_EN25B10, |
| 3477 | .total_size = 128, |
| 3478 | .page_size = 256, |
| 3479 | .feature_bits = FEATURE_WRSR_WREN, |
| 3480 | .tested = TEST_UNTESTED, |
| 3481 | .probe = probe_spi_rdid, |
| 3482 | .probe_timing = TIMING_ZERO, |
| 3483 | .block_erasers = |
| 3484 | { |
| 3485 | { |
| 3486 | .eraseblocks = { {32 * 1024, 4} }, |
| 3487 | .block_erase = spi_block_erase_d8, |
| 3488 | }, { |
| 3489 | .eraseblocks = { {128 * 1024, 1} }, |
| 3490 | .block_erase = spi_block_erase_c7, |
| 3491 | } |
| 3492 | }, |
| 3493 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 3494 | .unlock = spi_disable_blockprotect, |
| 3495 | .write = spi_chip_write_256, |
| 3496 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3497 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3498 | }, |
| 3499 | |
| 3500 | { |
| 3501 | .vendor = "Eon", |
| 3502 | .name = "EN25B20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3503 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3504 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3505 | .model_id = EON_EN25B20, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3506 | .total_size = 256, |
| 3507 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3508 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3509 | .tested = TEST_UNTESTED, |
| 3510 | .probe = probe_spi_rdid, |
| 3511 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3512 | .block_erasers = |
| 3513 | { |
| 3514 | { |
| 3515 | .eraseblocks = { |
| 3516 | {4 * 1024, 2}, |
| 3517 | {8 * 1024, 1}, |
| 3518 | {16 * 1024, 1}, |
| 3519 | {32 * 1024, 1}, |
| 3520 | {64 * 1024, 3} |
| 3521 | }, |
| 3522 | .block_erase = spi_block_erase_d8, |
| 3523 | }, { |
| 3524 | .eraseblocks = { {256 * 1024, 1} }, |
| 3525 | .block_erase = spi_block_erase_c7, |
| 3526 | } |
| 3527 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3528 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3529 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3530 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame^] | 3531 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3532 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3533 | }, |
| 3534 | |
| 3535 | { |
| 3536 | .vendor = "Eon", |
| 3537 | .name = "EN25B20T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3538 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3539 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3540 | .model_id = EON_EN25B20, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3541 | .total_size = 256, |
| 3542 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3543 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3544 | .tested = TEST_UNTESTED, |
| 3545 | .probe = probe_spi_rdid, |
| 3546 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3547 | .block_erasers = |
| 3548 | { |
| 3549 | { |
| 3550 | .eraseblocks = { |
| 3551 | {64 * 1024, 3}, |
| 3552 | {32 * 1024, 1}, |
| 3553 | {16 * 1024, 1}, |
| 3554 | {8 * 1024, 1}, |
| 3555 | {4 * 1024, 2}, |
| 3556 | }, |
| 3557 | .block_erase = spi_block_erase_d8, |
| 3558 | }, { |
| 3559 | .eraseblocks = { {256 * 1024, 1} }, |
| 3560 | .block_erase = spi_block_erase_c7, |
| 3561 | } |
| 3562 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3563 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3564 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3565 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame^] | 3566 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3567 | .voltage = {2700, 3600}, |
| 3568 | }, |
| 3569 | |
| 3570 | { |
| 3571 | .vendor = "Eon", |
| 3572 | .name = "EN25P20", |
| 3573 | .bustype = BUS_SPI, |
| 3574 | .manufacture_id = EON_ID_NOPREFIX, |
| 3575 | .model_id = EON_EN25B20, |
| 3576 | .total_size = 256, |
| 3577 | .page_size = 256, |
| 3578 | .feature_bits = FEATURE_WRSR_WREN, |
| 3579 | .tested = TEST_UNTESTED, |
| 3580 | .probe = probe_spi_rdid, |
| 3581 | .probe_timing = TIMING_ZERO, |
| 3582 | .block_erasers = |
| 3583 | { |
| 3584 | { |
| 3585 | .eraseblocks = { {64 * 1024, 4} }, |
| 3586 | .block_erase = spi_block_erase_d8, |
| 3587 | }, { |
| 3588 | .eraseblocks = { {256 * 1024, 1} }, |
| 3589 | .block_erase = spi_block_erase_c7, |
| 3590 | } |
| 3591 | }, |
| 3592 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 3593 | .unlock = spi_disable_blockprotect, |
| 3594 | .write = spi_chip_write_256, |
| 3595 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3596 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3597 | }, |
| 3598 | |
| 3599 | { |
| 3600 | .vendor = "Eon", |
| 3601 | .name = "EN25B40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3602 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3603 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3604 | .model_id = EON_EN25B40, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3605 | .total_size = 512, |
| 3606 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3607 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3608 | .tested = TEST_UNTESTED, |
| 3609 | .probe = probe_spi_rdid, |
| 3610 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3611 | .block_erasers = |
| 3612 | { |
| 3613 | { |
| 3614 | .eraseblocks = { |
| 3615 | {4 * 1024, 2}, |
| 3616 | {8 * 1024, 1}, |
| 3617 | {16 * 1024, 1}, |
| 3618 | {32 * 1024, 1}, |
| 3619 | {64 * 1024, 7} |
| 3620 | }, |
| 3621 | .block_erase = spi_block_erase_d8, |
| 3622 | }, { |
| 3623 | .eraseblocks = { {512 * 1024, 1} }, |
| 3624 | .block_erase = spi_block_erase_c7, |
| 3625 | } |
| 3626 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3627 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3628 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3629 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame^] | 3630 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3631 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3632 | }, |
| 3633 | |
| 3634 | { |
| 3635 | .vendor = "Eon", |
| 3636 | .name = "EN25B40T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3637 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3638 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3639 | .model_id = EON_EN25B40, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3640 | .total_size = 512, |
| 3641 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3642 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3643 | .tested = TEST_UNTESTED, |
| 3644 | .probe = probe_spi_rdid, |
| 3645 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3646 | .block_erasers = |
| 3647 | { |
| 3648 | { |
| 3649 | .eraseblocks = { |
| 3650 | {64 * 1024, 7}, |
| 3651 | {32 * 1024, 1}, |
| 3652 | {16 * 1024, 1}, |
| 3653 | {8 * 1024, 1}, |
| 3654 | {4 * 1024, 2}, |
| 3655 | }, |
| 3656 | .block_erase = spi_block_erase_d8, |
| 3657 | }, { |
| 3658 | .eraseblocks = { {512 * 1024, 1} }, |
| 3659 | .block_erase = spi_block_erase_c7, |
| 3660 | } |
| 3661 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3662 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3663 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3664 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame^] | 3665 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3666 | .voltage = {2700, 3600}, |
| 3667 | }, |
| 3668 | |
| 3669 | { |
| 3670 | .vendor = "Eon", |
| 3671 | .name = "EN25P40", |
| 3672 | .bustype = BUS_SPI, |
| 3673 | .manufacture_id = EON_ID_NOPREFIX, |
| 3674 | .model_id = EON_EN25B40, |
| 3675 | .total_size = 512, |
| 3676 | .page_size = 256, |
| 3677 | .feature_bits = FEATURE_WRSR_WREN, |
| 3678 | .tested = TEST_UNTESTED, |
| 3679 | .probe = probe_spi_rdid, |
| 3680 | .probe_timing = TIMING_ZERO, |
| 3681 | .block_erasers = |
| 3682 | { |
| 3683 | { |
| 3684 | .eraseblocks = { {64 * 1024, 8} }, |
| 3685 | .block_erase = spi_block_erase_d8, |
| 3686 | }, { |
| 3687 | .eraseblocks = { {512 * 1024, 1} }, |
| 3688 | .block_erase = spi_block_erase_c7, |
| 3689 | } |
| 3690 | }, |
| 3691 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 3692 | .unlock = spi_disable_blockprotect, |
| 3693 | .write = spi_chip_write_256, |
| 3694 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3695 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3696 | }, |
| 3697 | |
| 3698 | { |
| 3699 | .vendor = "Eon", |
| 3700 | .name = "EN25B80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3701 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3702 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3703 | .model_id = EON_EN25B80, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3704 | .total_size = 1024, |
| 3705 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3706 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3707 | .tested = TEST_UNTESTED, |
| 3708 | .probe = probe_spi_rdid, |
| 3709 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3710 | .block_erasers = |
| 3711 | { |
| 3712 | { |
| 3713 | .eraseblocks = { |
| 3714 | {4 * 1024, 2}, |
| 3715 | {8 * 1024, 1}, |
| 3716 | {16 * 1024, 1}, |
| 3717 | {32 * 1024, 1}, |
| 3718 | {64 * 1024, 15} |
| 3719 | }, |
| 3720 | .block_erase = spi_block_erase_d8, |
| 3721 | }, { |
| 3722 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3723 | .block_erase = spi_block_erase_c7, |
| 3724 | } |
| 3725 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3726 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3727 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3728 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame^] | 3729 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3730 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3731 | }, |
| 3732 | |
| 3733 | { |
| 3734 | .vendor = "Eon", |
| 3735 | .name = "EN25B80T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3736 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3737 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3738 | .model_id = EON_EN25B80, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3739 | .total_size = 1024, |
| 3740 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3741 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3742 | .tested = TEST_UNTESTED, |
| 3743 | .probe = probe_spi_rdid, |
| 3744 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3745 | .block_erasers = |
| 3746 | { |
| 3747 | { |
| 3748 | .eraseblocks = { |
| 3749 | {64 * 1024, 15}, |
| 3750 | {32 * 1024, 1}, |
| 3751 | {16 * 1024, 1}, |
| 3752 | {8 * 1024, 1}, |
| 3753 | {4 * 1024, 2}, |
| 3754 | }, |
| 3755 | .block_erase = spi_block_erase_d8, |
| 3756 | }, { |
| 3757 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3758 | .block_erase = spi_block_erase_c7, |
| 3759 | } |
| 3760 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3761 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3762 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3763 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame^] | 3764 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3765 | .voltage = {2700, 3600}, |
| 3766 | }, |
| 3767 | |
| 3768 | { |
| 3769 | .vendor = "Eon", |
| 3770 | .name = "EN25P80", |
| 3771 | .bustype = BUS_SPI, |
| 3772 | .manufacture_id = EON_ID_NOPREFIX, |
| 3773 | .model_id = EON_EN25B80, |
| 3774 | .total_size = 1024, |
| 3775 | .page_size = 256, |
| 3776 | .feature_bits = FEATURE_WRSR_WREN, |
| 3777 | .tested = TEST_UNTESTED, |
| 3778 | .probe = probe_spi_rdid, |
| 3779 | .probe_timing = TIMING_ZERO, |
| 3780 | .block_erasers = |
| 3781 | { |
| 3782 | { |
| 3783 | .eraseblocks = { {64 * 1024, 16} }, |
| 3784 | .block_erase = spi_block_erase_d8, |
| 3785 | }, { |
| 3786 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3787 | .block_erase = spi_block_erase_c7, |
| 3788 | } |
| 3789 | }, |
| 3790 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 3791 | .unlock = spi_disable_blockprotect, |
| 3792 | .write = spi_chip_write_256, |
| 3793 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3794 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3795 | }, |
| 3796 | |
| 3797 | { |
| 3798 | .vendor = "Eon", |
| 3799 | .name = "EN25B16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3800 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3801 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3802 | .model_id = EON_EN25B16, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3803 | .total_size = 2048, |
| 3804 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3805 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3806 | .tested = TEST_UNTESTED, |
| 3807 | .probe = probe_spi_rdid, |
| 3808 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3809 | .block_erasers = |
| 3810 | { |
| 3811 | { |
| 3812 | .eraseblocks = { |
| 3813 | {4 * 1024, 2}, |
| 3814 | {8 * 1024, 1}, |
| 3815 | {16 * 1024, 1}, |
| 3816 | {32 * 1024, 1}, |
| 3817 | {64 * 1024, 31}, |
| 3818 | }, |
| 3819 | .block_erase = spi_block_erase_d8, |
| 3820 | }, { |
| 3821 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3822 | .block_erase = spi_block_erase_c7, |
| 3823 | } |
| 3824 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3825 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3826 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3827 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame^] | 3828 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3829 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3830 | }, |
| 3831 | |
| 3832 | { |
| 3833 | .vendor = "Eon", |
| 3834 | .name = "EN25B16T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3835 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3836 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3837 | .model_id = EON_EN25B16, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3838 | .total_size = 2048, |
| 3839 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3840 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3841 | .tested = TEST_UNTESTED, |
| 3842 | .probe = probe_spi_rdid, |
| 3843 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3844 | .block_erasers = |
| 3845 | { |
| 3846 | { |
| 3847 | .eraseblocks = { |
| 3848 | {64 * 1024, 31}, |
| 3849 | {32 * 1024, 1}, |
| 3850 | {16 * 1024, 1}, |
| 3851 | {8 * 1024, 1}, |
| 3852 | {4 * 1024, 2}, |
| 3853 | }, |
| 3854 | .block_erase = spi_block_erase_d8, |
| 3855 | }, { |
| 3856 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3857 | .block_erase = spi_block_erase_c7, |
| 3858 | } |
| 3859 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3860 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3861 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3862 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame^] | 3863 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3864 | .voltage = {2700, 3600}, |
| 3865 | }, |
| 3866 | |
| 3867 | { |
| 3868 | .vendor = "Eon", |
| 3869 | .name = "EN25P16", |
| 3870 | .bustype = BUS_SPI, |
| 3871 | .manufacture_id = EON_ID_NOPREFIX, |
| 3872 | .model_id = EON_EN25B16, |
| 3873 | .total_size = 2048, |
| 3874 | .page_size = 256, |
| 3875 | .feature_bits = FEATURE_WRSR_WREN, |
| 3876 | .tested = TEST_UNTESTED, |
| 3877 | .probe = probe_spi_rdid, |
| 3878 | .probe_timing = TIMING_ZERO, |
| 3879 | .block_erasers = |
| 3880 | { |
| 3881 | { |
| 3882 | .eraseblocks = { {64 * 1024, 32} }, |
| 3883 | .block_erase = spi_block_erase_d8, |
| 3884 | }, { |
| 3885 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3886 | .block_erase = spi_block_erase_c7, |
| 3887 | } |
| 3888 | }, |
| 3889 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 3890 | .unlock = spi_disable_blockprotect, |
| 3891 | .write = spi_chip_write_256, |
| 3892 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3893 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3894 | }, |
| 3895 | |
| 3896 | { |
| 3897 | .vendor = "Eon", |
| 3898 | .name = "EN25B32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3899 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3900 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3901 | .model_id = EON_EN25B32, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3902 | .total_size = 4096, |
| 3903 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame^] | 3904 | /* OTP: 512B total; enter 0x3A */ |
| 3905 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3906 | .tested = TEST_UNTESTED, |
| 3907 | .probe = probe_spi_rdid, |
| 3908 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3909 | .block_erasers = |
| 3910 | { |
| 3911 | { |
| 3912 | .eraseblocks = { |
| 3913 | {4 * 1024, 2}, |
| 3914 | {8 * 1024, 1}, |
| 3915 | {16 * 1024, 1}, |
| 3916 | {32 * 1024, 1}, |
| 3917 | {64 * 1024, 63}, |
| 3918 | }, |
| 3919 | .block_erase = spi_block_erase_d8, |
| 3920 | }, { |
| 3921 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3922 | .block_erase = spi_block_erase_c7, |
| 3923 | } |
| 3924 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3925 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3926 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3927 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame^] | 3928 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3929 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3930 | }, |
| 3931 | |
| 3932 | { |
| 3933 | .vendor = "Eon", |
| 3934 | .name = "EN25B32T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3935 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3936 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3937 | .model_id = EON_EN25B32, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3938 | .total_size = 4096, |
| 3939 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame^] | 3940 | /* OTP: 512B total; enter 0x3A */ |
| 3941 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3942 | .tested = TEST_UNTESTED, |
| 3943 | .probe = probe_spi_rdid, |
| 3944 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3945 | .block_erasers = |
| 3946 | { |
| 3947 | { |
| 3948 | .eraseblocks = { |
| 3949 | {64 * 1024, 63}, |
| 3950 | {32 * 1024, 1}, |
| 3951 | {16 * 1024, 1}, |
| 3952 | {8 * 1024, 1}, |
| 3953 | {4 * 1024, 2}, |
| 3954 | }, |
| 3955 | .block_erase = spi_block_erase_d8, |
| 3956 | }, { |
| 3957 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3958 | .block_erase = spi_block_erase_c7, |
| 3959 | } |
| 3960 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3961 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3962 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3963 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame^] | 3964 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 3965 | .voltage = {2700, 3600}, |
| 3966 | }, |
| 3967 | |
| 3968 | { |
| 3969 | .vendor = "Eon", |
| 3970 | .name = "EN25P32", /* Uniform version of EN25B32 */ |
| 3971 | .bustype = BUS_SPI, |
| 3972 | .manufacture_id = EON_ID_NOPREFIX, |
| 3973 | .model_id = EON_EN25B32, |
| 3974 | .total_size = 4096, |
| 3975 | .page_size = 256, |
| 3976 | /* OTP: 512B total; enter 0x3A */ |
| 3977 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 3978 | .tested = TEST_UNTESTED, |
| 3979 | .probe = probe_spi_rdid, |
| 3980 | .probe_timing = TIMING_ZERO, |
| 3981 | .block_erasers = |
| 3982 | { |
| 3983 | { |
| 3984 | .eraseblocks = { {64 * 1024, 64} }, |
| 3985 | .block_erase = spi_block_erase_d8, |
| 3986 | }, { |
| 3987 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3988 | .block_erase = spi_block_erase_c7, |
| 3989 | } |
| 3990 | }, |
| 3991 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 3992 | .unlock = spi_disable_blockprotect, |
| 3993 | .write = spi_chip_write_256, |
| 3994 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3995 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3996 | }, |
| 3997 | |
| 3998 | { |
| 3999 | .vendor = "Eon", |
| 4000 | .name = "EN25B64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4001 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4002 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4003 | .model_id = EON_EN25B64, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4004 | .total_size = 8192, |
| 4005 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame^] | 4006 | /* OTP: 512B total; enter 0x3A */ |
| 4007 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4008 | .tested = TEST_UNTESTED, |
| 4009 | .probe = probe_spi_rdid, |
| 4010 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4011 | .block_erasers = |
| 4012 | { |
| 4013 | { |
| 4014 | .eraseblocks = { |
| 4015 | {4 * 1024, 2}, |
| 4016 | {8 * 1024, 1}, |
| 4017 | {16 * 1024, 1}, |
| 4018 | {32 * 1024, 1}, |
| 4019 | {64 * 1024, 127}, |
| 4020 | }, |
| 4021 | .block_erase = spi_block_erase_d8, |
| 4022 | }, { |
| 4023 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4024 | .block_erase = spi_block_erase_c7, |
| 4025 | } |
| 4026 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4027 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4028 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4029 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame^] | 4030 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4031 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4032 | }, |
| 4033 | |
| 4034 | { |
| 4035 | .vendor = "Eon", |
| 4036 | .name = "EN25B64T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4037 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4038 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4039 | .model_id = EON_EN25B64, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4040 | .total_size = 8192, |
| 4041 | .page_size = 256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame^] | 4042 | /* OTP: 512B total; enter 0x3A */ |
| 4043 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4044 | .tested = TEST_UNTESTED, |
| 4045 | .probe = probe_spi_rdid, |
| 4046 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4047 | .block_erasers = |
| 4048 | { |
| 4049 | { |
| 4050 | .eraseblocks = { |
| 4051 | {64 * 1024, 127}, |
| 4052 | {32 * 1024, 1}, |
| 4053 | {16 * 1024, 1}, |
| 4054 | {8 * 1024, 1}, |
| 4055 | {4 * 1024, 2}, |
| 4056 | }, |
| 4057 | .block_erase = spi_block_erase_d8, |
| 4058 | }, { |
| 4059 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4060 | .block_erase = spi_block_erase_c7, |
| 4061 | } |
| 4062 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4063 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4064 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4065 | .write = spi_chip_write_256, |
Stefan Tauner | b175af5 | 2015-01-24 15:06:27 +0000 | [diff] [blame^] | 4066 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 4067 | .voltage = {2700, 3600}, |
| 4068 | }, |
| 4069 | |
| 4070 | { |
| 4071 | .vendor = "Eon", |
| 4072 | .name = "EN25P64", |
| 4073 | .bustype = BUS_SPI, |
| 4074 | .manufacture_id = EON_ID_NOPREFIX, |
| 4075 | .model_id = EON_EN25B64, |
| 4076 | .total_size = 8192, |
| 4077 | .page_size = 256, |
| 4078 | /* OTP: 512B total; enter 0x3A */ |
| 4079 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4080 | .tested = TEST_UNTESTED, |
| 4081 | .probe = probe_spi_rdid, |
| 4082 | .probe_timing = TIMING_ZERO, |
| 4083 | .block_erasers = |
| 4084 | { |
| 4085 | { |
| 4086 | .eraseblocks = { {64 * 1024, 128} }, |
| 4087 | .block_erase = spi_block_erase_d8, |
| 4088 | }, { |
| 4089 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4090 | .block_erase = spi_block_erase_c7, |
| 4091 | } |
| 4092 | }, |
| 4093 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 4094 | .unlock = spi_disable_blockprotect, |
| 4095 | .write = spi_chip_write_256, |
| 4096 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4097 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4098 | }, |
| 4099 | |
| 4100 | { |
| 4101 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4102 | .name = "EN25F05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4103 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4104 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4105 | .model_id = EON_EN25F05, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4106 | .total_size = 64, |
| 4107 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4108 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 4109 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4110 | .probe = probe_spi_rdid, |
| 4111 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4112 | .block_erasers = |
| 4113 | { |
| 4114 | { |
| 4115 | .eraseblocks = { {4 * 1024, 16} }, |
| 4116 | .block_erase = spi_block_erase_20, |
| 4117 | }, { |
| 4118 | .eraseblocks = { {32 * 1024, 2} }, |
| 4119 | .block_erase = spi_block_erase_d8, |
| 4120 | }, { |
| 4121 | .eraseblocks = { {32 * 1024, 2} }, |
| 4122 | .block_erase = spi_block_erase_52, |
| 4123 | }, { |
| 4124 | .eraseblocks = { {64 * 1024, 1} }, |
| 4125 | .block_erase = spi_block_erase_60, |
| 4126 | }, { |
| 4127 | .eraseblocks = { {64 * 1024, 1} }, |
| 4128 | .block_erase = spi_block_erase_c7, |
| 4129 | } |
| 4130 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4131 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4132 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4133 | .write = spi_chip_write_256, |
| 4134 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4135 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4136 | }, |
| 4137 | |
| 4138 | { |
| 4139 | .vendor = "Eon", |
| 4140 | .name = "EN25F10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4141 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4142 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4143 | .model_id = EON_EN25F10, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4144 | .total_size = 128, |
| 4145 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4146 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4147 | .tested = TEST_UNTESTED, |
| 4148 | .probe = probe_spi_rdid, |
| 4149 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4150 | .block_erasers = |
| 4151 | { |
| 4152 | { |
| 4153 | .eraseblocks = { {4 * 1024, 32} }, |
| 4154 | .block_erase = spi_block_erase_20, |
| 4155 | }, { |
| 4156 | .eraseblocks = { {32 * 1024, 4} }, |
| 4157 | .block_erase = spi_block_erase_d8, |
| 4158 | }, { |
| 4159 | .eraseblocks = { {32 * 1024, 4} }, |
| 4160 | .block_erase = spi_block_erase_52, |
| 4161 | }, { |
| 4162 | .eraseblocks = { {128 * 1024, 1} }, |
| 4163 | .block_erase = spi_block_erase_60, |
| 4164 | }, { |
| 4165 | .eraseblocks = { {128 * 1024, 1} }, |
| 4166 | .block_erase = spi_block_erase_c7, |
| 4167 | } |
| 4168 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4169 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4170 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4171 | .write = spi_chip_write_256, |
| 4172 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4173 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4174 | }, |
| 4175 | |
| 4176 | { |
| 4177 | .vendor = "Eon", |
| 4178 | .name = "EN25F20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4179 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4180 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4181 | .model_id = EON_EN25F20, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4182 | .total_size = 256, |
| 4183 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4184 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4185 | .tested = TEST_UNTESTED, |
| 4186 | .probe = probe_spi_rdid, |
| 4187 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4188 | .block_erasers = |
| 4189 | { |
| 4190 | { |
| 4191 | .eraseblocks = { {4 * 1024, 64} }, |
| 4192 | .block_erase = spi_block_erase_20, |
| 4193 | }, { |
| 4194 | .eraseblocks = { {64 * 1024, 4} }, |
| 4195 | .block_erase = spi_block_erase_d8, |
| 4196 | }, { |
| 4197 | .eraseblocks = { {64 * 1024, 4} }, |
| 4198 | .block_erase = spi_block_erase_52, |
| 4199 | }, { |
| 4200 | .eraseblocks = { {256 * 1024, 1} }, |
| 4201 | .block_erase = spi_block_erase_60, |
| 4202 | }, { |
| 4203 | .eraseblocks = { {256 * 1024, 1} }, |
| 4204 | .block_erase = spi_block_erase_c7, |
| 4205 | } |
| 4206 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4207 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4208 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4209 | .write = spi_chip_write_256, |
| 4210 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4211 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4212 | }, |
| 4213 | |
| 4214 | { |
| 4215 | .vendor = "Eon", |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4216 | .name = "EN25F40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4217 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4218 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4219 | .model_id = EON_EN25F40, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4220 | .total_size = 512, |
| 4221 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4222 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | faaa2b2 | 2009-06-22 10:06:28 +0000 | [diff] [blame] | 4223 | .tested = TEST_OK_PROBE, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4224 | .probe = probe_spi_rdid, |
| 4225 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4226 | .block_erasers = |
| 4227 | { |
| 4228 | { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4229 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4230 | .block_erase = spi_block_erase_20, |
| 4231 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4232 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4233 | .block_erase = spi_block_erase_d8, |
| 4234 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4235 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4236 | .block_erase = spi_block_erase_60, |
| 4237 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4238 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4239 | .block_erase = spi_block_erase_c7, |
| 4240 | }, |
| 4241 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4242 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4243 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4244 | .write = spi_chip_write_256, |
| 4245 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4246 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4247 | }, |
| 4248 | |
| 4249 | { |
| 4250 | .vendor = "Eon", |
| 4251 | .name = "EN25F80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4252 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4253 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4254 | .model_id = EON_EN25F80, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4255 | .total_size = 1024, |
| 4256 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4257 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 4258 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4259 | .probe = probe_spi_rdid, |
| 4260 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4261 | .block_erasers = |
| 4262 | { |
| 4263 | { |
| 4264 | .eraseblocks = { {4 * 1024, 256} }, |
| 4265 | .block_erase = spi_block_erase_20, |
| 4266 | }, { |
| 4267 | .eraseblocks = { {64 * 1024, 16} }, |
| 4268 | .block_erase = spi_block_erase_d8, |
| 4269 | }, { |
| 4270 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4271 | .block_erase = spi_block_erase_60, |
| 4272 | }, { |
| 4273 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4274 | .block_erase = spi_block_erase_c7, |
| 4275 | } |
| 4276 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4277 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4278 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4279 | .write = spi_chip_write_256, |
| 4280 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4281 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4282 | }, |
| 4283 | |
| 4284 | { |
| 4285 | .vendor = "Eon", |
| 4286 | .name = "EN25F16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4287 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4288 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4289 | .model_id = EON_EN25F16, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4290 | .total_size = 2048, |
| 4291 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4292 | .feature_bits = FEATURE_WRSR_WREN, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 4293 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4294 | .probe = probe_spi_rdid, |
| 4295 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4296 | .block_erasers = |
| 4297 | { |
| 4298 | { |
| 4299 | .eraseblocks = { {4 * 1024, 512} }, |
| 4300 | .block_erase = spi_block_erase_20, |
| 4301 | }, { |
| 4302 | .eraseblocks = { {64 * 1024, 32} }, |
| 4303 | .block_erase = spi_block_erase_d8, |
| 4304 | }, { |
| 4305 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4306 | .block_erase = spi_block_erase_60, |
| 4307 | }, { |
| 4308 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4309 | .block_erase = spi_block_erase_c7, |
| 4310 | } |
| 4311 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4312 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4313 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4314 | .write = spi_chip_write_256, |
| 4315 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4316 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 4317 | }, |
| 4318 | |
| 4319 | { |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4320 | .vendor = "Eon", |
| 4321 | .name = "EN25F32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4322 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4323 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4324 | .model_id = EON_EN25F32, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4325 | .total_size = 4096, |
| 4326 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 4327 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4328 | .tested = TEST_UNTESTED, |
| 4329 | .probe = probe_spi_rdid, |
| 4330 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 4331 | .block_erasers = |
| 4332 | { |
| 4333 | { |
| 4334 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4335 | .block_erase = spi_block_erase_20, |
| 4336 | }, { |
| 4337 | .eraseblocks = { {64 * 1024, 64} }, |
| 4338 | .block_erase = spi_block_erase_d8, |
| 4339 | }, { |
| 4340 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4341 | .block_erase = spi_block_erase_60, |
| 4342 | }, { |
| 4343 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4344 | .block_erase = spi_block_erase_c7, |
| 4345 | } |
| 4346 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4347 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 4348 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4349 | .write = spi_chip_write_256, |
| 4350 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4351 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 4352 | }, |
| 4353 | |
| 4354 | { |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4355 | .vendor = "Eon", |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4356 | .name = "EN25F64", |
| 4357 | .bustype = BUS_SPI, |
| 4358 | .manufacture_id = EON_ID_NOPREFIX, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 4359 | .model_id = EON_EN25F64, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4360 | .total_size = 8192, |
| 4361 | .page_size = 256, |
| 4362 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 4363 | .tested = TEST_OK_PREW, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4364 | .probe = probe_spi_rdid, |
| 4365 | .probe_timing = TIMING_ZERO, |
| 4366 | .block_erasers = |
| 4367 | { |
| 4368 | { |
| 4369 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4370 | .block_erase = spi_block_erase_20, |
| 4371 | }, { |
| 4372 | .eraseblocks = { {64 * 1024, 128} }, |
| 4373 | .block_erase = spi_block_erase_d8, |
| 4374 | }, { |
| 4375 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4376 | .block_erase = spi_block_erase_60, |
| 4377 | }, { |
| 4378 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4379 | .block_erase = spi_block_erase_c7, |
| 4380 | } |
| 4381 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4382 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 4383 | .unlock = spi_disable_blockprotect, |
| 4384 | .write = spi_chip_write_256, |
| 4385 | .read = spi_chip_read, |
| 4386 | .voltage = {2700, 3600}, |
| 4387 | }, |
| 4388 | |
| 4389 | { |
| 4390 | .vendor = "Eon", |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4391 | .name = "EN25Q40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4392 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4393 | .manufacture_id = EON_ID_NOPREFIX, |
| 4394 | .model_id = EON_EN25Q40, |
| 4395 | .total_size = 512, |
| 4396 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4397 | /* OTP: 256B total; enter 0x3A */ |
| 4398 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4399 | .tested = TEST_UNTESTED, |
| 4400 | .probe = probe_spi_rdid, |
| 4401 | .probe_timing = TIMING_ZERO, |
| 4402 | .block_erasers = |
| 4403 | { |
| 4404 | { |
| 4405 | .eraseblocks = { {4 * 1024, 128} }, |
| 4406 | .block_erase = spi_block_erase_20, |
| 4407 | }, { |
| 4408 | .eraseblocks = { {64 * 1024, 8} }, |
| 4409 | .block_erase = spi_block_erase_d8, |
| 4410 | }, { |
| 4411 | .eraseblocks = { {512 * 1024, 1} }, |
| 4412 | .block_erase = spi_block_erase_60, |
| 4413 | }, { |
| 4414 | .eraseblocks = { {512 * 1024, 1} }, |
| 4415 | .block_erase = spi_block_erase_c7, |
| 4416 | } |
| 4417 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4418 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4419 | .unlock = spi_disable_blockprotect, |
| 4420 | .write = spi_chip_write_256, |
| 4421 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4422 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4423 | }, |
| 4424 | |
| 4425 | { |
| 4426 | .vendor = "Eon", |
| 4427 | .name = "EN25Q80(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4428 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4429 | .manufacture_id = EON_ID_NOPREFIX, |
| 4430 | .model_id = EON_EN25Q80, |
| 4431 | .total_size = 1024, |
| 4432 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4433 | /* OTP: 256B total; enter 0x3A */ |
| 4434 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4435 | .tested = TEST_UNTESTED, |
| 4436 | .probe = probe_spi_rdid, |
| 4437 | .probe_timing = TIMING_ZERO, |
| 4438 | .block_erasers = |
| 4439 | { |
| 4440 | { |
| 4441 | .eraseblocks = { {4 * 1024, 256} }, |
| 4442 | .block_erase = spi_block_erase_20, |
| 4443 | }, { |
| 4444 | .eraseblocks = { {64 * 1024, 16} }, |
| 4445 | .block_erase = spi_block_erase_d8, |
| 4446 | }, { |
| 4447 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4448 | .block_erase = spi_block_erase_60, |
| 4449 | }, { |
| 4450 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4451 | .block_erase = spi_block_erase_c7, |
| 4452 | } |
| 4453 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4454 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4455 | .unlock = spi_disable_blockprotect, |
| 4456 | .write = spi_chip_write_256, |
| 4457 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4458 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4459 | }, |
| 4460 | |
| 4461 | { |
| 4462 | /* Note: EN25D16 is an evil twin which shares the model ID |
| 4463 | but has different write protection capabilities */ |
| 4464 | .vendor = "Eon", |
| 4465 | .name = "EN25Q16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4466 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4467 | .manufacture_id = EON_ID_NOPREFIX, |
| 4468 | .model_id = EON_EN25Q16, |
| 4469 | .total_size = 2048, |
| 4470 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4471 | /* OTP: D16 512B/Q16 128B total; enter 0x3A */ |
| 4472 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4473 | .tested = TEST_UNTESTED, |
| 4474 | .probe = probe_spi_rdid, |
| 4475 | .probe_timing = TIMING_ZERO, |
| 4476 | .block_erasers = |
| 4477 | { |
| 4478 | { |
| 4479 | .eraseblocks = { {4 * 1024, 512} }, |
| 4480 | .block_erase = spi_block_erase_20, |
| 4481 | }, { |
| 4482 | .eraseblocks = { {64 * 1024, 32} }, |
| 4483 | .block_erase = spi_block_erase_d8, |
| 4484 | }, { |
| 4485 | /* not supported by Q16 version */ |
| 4486 | .eraseblocks = { {64 * 1024, 32} }, |
| 4487 | .block_erase = spi_block_erase_52, |
| 4488 | }, { |
| 4489 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4490 | .block_erase = spi_block_erase_60, |
| 4491 | }, { |
| 4492 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4493 | .block_erase = spi_block_erase_c7, |
| 4494 | } |
| 4495 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4496 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4497 | .unlock = spi_disable_blockprotect, |
| 4498 | .write = spi_chip_write_256, |
| 4499 | .read = spi_chip_read, |
| 4500 | .voltage = {2700, 3600}, |
| 4501 | }, |
| 4502 | |
| 4503 | { |
| 4504 | .vendor = "Eon", |
| 4505 | .name = "EN25Q32(A/B)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4506 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4507 | .manufacture_id = EON_ID_NOPREFIX, |
| 4508 | .model_id = EON_EN25Q32, |
| 4509 | .total_size = 4096, |
| 4510 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4511 | /* OTP: 512B total; enter 0x3A */ |
| 4512 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4513 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4514 | .probe = probe_spi_rdid, |
| 4515 | .probe_timing = TIMING_ZERO, |
| 4516 | .block_erasers = |
| 4517 | { |
| 4518 | { |
| 4519 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4520 | .block_erase = spi_block_erase_20, |
| 4521 | }, { |
| 4522 | .eraseblocks = { {64 * 1024, 64} }, |
| 4523 | .block_erase = spi_block_erase_d8, |
| 4524 | }, { |
| 4525 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4526 | .block_erase = spi_block_erase_60, |
| 4527 | }, { |
| 4528 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4529 | .block_erase = spi_block_erase_c7, |
| 4530 | } |
| 4531 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4532 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4533 | .unlock = spi_disable_blockprotect, |
| 4534 | .write = spi_chip_write_256, |
| 4535 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4536 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4537 | }, |
| 4538 | |
| 4539 | { |
| 4540 | .vendor = "Eon", |
| 4541 | .name = "EN25Q64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4542 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4543 | .manufacture_id = EON_ID_NOPREFIX, |
| 4544 | .model_id = EON_EN25Q64, |
| 4545 | .total_size = 8192, |
| 4546 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4547 | /* OTP: 512B total; enter 0x3A */ |
| 4548 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4549 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4550 | .probe = probe_spi_rdid, |
| 4551 | .probe_timing = TIMING_ZERO, |
| 4552 | .block_erasers = |
| 4553 | { |
| 4554 | { |
| 4555 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4556 | .block_erase = spi_block_erase_20, |
| 4557 | }, { |
| 4558 | .eraseblocks = { {64 * 1024, 128} }, |
| 4559 | .block_erase = spi_block_erase_d8, |
| 4560 | }, { |
| 4561 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4562 | .block_erase = spi_block_erase_60, |
| 4563 | }, { |
| 4564 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4565 | .block_erase = spi_block_erase_c7, |
| 4566 | } |
| 4567 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4568 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4569 | .unlock = spi_disable_blockprotect, |
| 4570 | .write = spi_chip_write_256, |
| 4571 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4572 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4573 | }, |
| 4574 | |
| 4575 | { |
| 4576 | .vendor = "Eon", |
| 4577 | .name = "EN25Q128", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4578 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4579 | .manufacture_id = EON_ID_NOPREFIX, |
| 4580 | .model_id = EON_EN25Q128, |
| 4581 | .total_size = 16384, |
| 4582 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4583 | /* OTP: 512B total; enter 0x3A */ |
| 4584 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4585 | .tested = TEST_UNTESTED, |
| 4586 | .probe = probe_spi_rdid, |
| 4587 | .probe_timing = TIMING_ZERO, |
| 4588 | .block_erasers = |
| 4589 | { |
| 4590 | { |
| 4591 | .eraseblocks = { {4 * 1024, 4096} }, |
| 4592 | .block_erase = spi_block_erase_20, |
| 4593 | }, { |
| 4594 | .eraseblocks = { {64 * 1024, 256} }, |
| 4595 | .block_erase = spi_block_erase_d8, |
| 4596 | }, { |
| 4597 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4598 | .block_erase = spi_block_erase_60, |
| 4599 | }, { |
| 4600 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4601 | .block_erase = spi_block_erase_c7, |
| 4602 | } |
| 4603 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4604 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4605 | .unlock = spi_disable_blockprotect, |
| 4606 | .write = spi_chip_write_256, |
| 4607 | .read = spi_chip_read, |
| 4608 | }, |
| 4609 | |
| 4610 | { |
| 4611 | .vendor = "Eon", |
| 4612 | .name = "EN25QH16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4613 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4614 | .manufacture_id = EON_ID_NOPREFIX, |
| 4615 | .model_id = EON_EN25QH16, |
| 4616 | .total_size = 2048, |
| 4617 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4618 | /* supports SFDP */ |
| 4619 | /* OTP: 512B total; enter 0x3A */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4620 | /* QPI enable 0x38, disable 0xFF */ |
| 4621 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 4622 | .tested = TEST_OK_PR, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4623 | .probe = probe_spi_rdid, |
| 4624 | .probe_timing = TIMING_ZERO, |
| 4625 | .block_erasers = |
| 4626 | { |
| 4627 | { |
| 4628 | .eraseblocks = { {4 * 1024, 512} }, |
| 4629 | .block_erase = spi_block_erase_20, |
| 4630 | }, { |
| 4631 | .eraseblocks = { {64 * 1024, 32} }, |
| 4632 | .block_erase = spi_block_erase_d8, |
| 4633 | }, { |
| 4634 | .eraseblocks = { {1024 * 2048, 1} }, |
| 4635 | .block_erase = spi_block_erase_60, |
| 4636 | }, { |
| 4637 | .eraseblocks = { {1024 * 2048, 1} }, |
| 4638 | .block_erase = spi_block_erase_c7, |
| 4639 | } |
| 4640 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4641 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4642 | .unlock = spi_disable_blockprotect_bp3_srwd, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4643 | .write = spi_chip_write_256, |
| 4644 | .read = spi_chip_read, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 4645 | .voltage = {2700, 3600}, |
| 4646 | }, |
| 4647 | |
| 4648 | { |
| 4649 | .vendor = "Eon", |
| 4650 | .name = "EN25QH32", |
| 4651 | .bustype = BUS_SPI, |
| 4652 | .manufacture_id = EON_ID_NOPREFIX, |
| 4653 | .model_id = EON_EN25QH32, |
| 4654 | .total_size = 4096, |
| 4655 | .page_size = 256, |
| 4656 | /* supports SFDP */ |
| 4657 | /* OTP: 512B total; enter 0x3A */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4658 | /* QPI enable 0x38, disable 0xFF */ |
| 4659 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 4660 | .tested = TEST_UNTESTED, |
| 4661 | .probe = probe_spi_rdid, |
| 4662 | .probe_timing = TIMING_ZERO, |
| 4663 | .block_erasers = |
| 4664 | { |
| 4665 | { |
| 4666 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4667 | .block_erase = spi_block_erase_20, |
| 4668 | }, { |
| 4669 | .eraseblocks = { {64 * 1024, 64} }, |
| 4670 | .block_erase = spi_block_erase_d8, |
| 4671 | }, { |
| 4672 | .eraseblocks = { {1024 * 4096, 1} }, |
| 4673 | .block_erase = spi_block_erase_60, |
| 4674 | }, { |
| 4675 | .eraseblocks = { {1024 * 4096, 1} }, |
| 4676 | .block_erase = spi_block_erase_c7, |
| 4677 | } |
| 4678 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4679 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4680 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4681 | .write = spi_chip_write_256, |
| 4682 | .read = spi_chip_read, |
| 4683 | .voltage = {2700, 3600}, |
| 4684 | }, |
| 4685 | |
| 4686 | { |
| 4687 | .vendor = "Eon", |
| 4688 | .name = "EN25QH64", |
| 4689 | .bustype = BUS_SPI, |
| 4690 | .manufacture_id = EON_ID_NOPREFIX, |
| 4691 | .model_id = EON_EN25QH64, |
| 4692 | .total_size = 8192, |
| 4693 | .page_size = 256, |
| 4694 | /* supports SFDP */ |
| 4695 | /* OTP: 512B total; enter 0x3A */ |
| 4696 | /* QPI enable 0x38, disable 0xFF */ |
| 4697 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 4698 | .tested = TEST_OK_PR, |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4699 | .probe = probe_spi_rdid, |
| 4700 | .probe_timing = TIMING_ZERO, |
| 4701 | .block_erasers = { |
| 4702 | { |
| 4703 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4704 | .block_erase = spi_block_erase_20, |
| 4705 | }, { |
| 4706 | .eraseblocks = { {64 * 1024, 128} }, |
| 4707 | .block_erase = spi_block_erase_d8, |
| 4708 | }, { |
| 4709 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 4710 | .block_erase = spi_block_erase_60, |
| 4711 | }, { |
| 4712 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 4713 | .block_erase = spi_block_erase_c7, |
| 4714 | } |
| 4715 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4716 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4717 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4718 | .write = spi_chip_write_256, |
| 4719 | .read = spi_chip_read, |
| 4720 | .voltage = {2700, 3600}, |
| 4721 | }, |
| 4722 | |
| 4723 | { |
| 4724 | .vendor = "Eon", |
| 4725 | .name = "EN25QH128", |
| 4726 | .bustype = BUS_SPI, |
| 4727 | .manufacture_id = EON_ID_NOPREFIX, |
| 4728 | .model_id = EON_EN25QH128, |
| 4729 | .total_size = 16384, |
| 4730 | .page_size = 256, |
| 4731 | /* supports SFDP */ |
| 4732 | /* OTP: 512B total; enter 0x3A */ |
| 4733 | /* QPI enable 0x38, disable 0xFF */ |
| 4734 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 4735 | .tested = TEST_UNTESTED, |
| 4736 | .probe = probe_spi_rdid, |
| 4737 | .probe_timing = TIMING_ZERO, |
| 4738 | .block_erasers = { |
| 4739 | { |
| 4740 | .eraseblocks = { {4 * 1024, 4096} }, |
| 4741 | .block_erase = spi_block_erase_20, |
| 4742 | }, { |
| 4743 | .eraseblocks = { {64 * 1024, 256} }, |
| 4744 | .block_erase = spi_block_erase_d8, |
| 4745 | }, { |
| 4746 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 4747 | .block_erase = spi_block_erase_60, |
| 4748 | }, { |
| 4749 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 4750 | .block_erase = spi_block_erase_c7, |
| 4751 | } |
| 4752 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4753 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4754 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4755 | .write = spi_chip_write_256, |
| 4756 | .read = spi_chip_read, |
| 4757 | .voltage = {2700, 3600}, |
| 4758 | }, |
| 4759 | |
| 4760 | { |
| 4761 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 4762 | .name = "EN25S10", |
| 4763 | .bustype = BUS_SPI, |
| 4764 | .manufacture_id = EON_ID_NOPREFIX, |
| 4765 | .model_id = EON_EN25S10, |
| 4766 | .total_size = 128, |
| 4767 | .page_size = 256, |
| 4768 | /* OTP: 256B total; enter 0x3A */ |
| 4769 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4770 | .tested = TEST_UNTESTED, |
| 4771 | .probe = probe_spi_rdid, |
| 4772 | .probe_timing = TIMING_ZERO, |
| 4773 | .block_erasers = { |
| 4774 | { |
| 4775 | .eraseblocks = { {4 * 1024, 32} }, |
| 4776 | .block_erase = spi_block_erase_20, |
| 4777 | }, { |
| 4778 | .eraseblocks = { {32 * 1024, 4} }, |
| 4779 | .block_erase = spi_block_erase_52, |
| 4780 | }, { |
| 4781 | .eraseblocks = { {128 * 1024, 1} }, |
| 4782 | .block_erase = spi_block_erase_60, |
| 4783 | }, { |
| 4784 | .eraseblocks = { {128 * 1024, 1} }, |
| 4785 | .block_erase = spi_block_erase_c7, |
| 4786 | } |
| 4787 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4788 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 4789 | .unlock = spi_disable_blockprotect, |
| 4790 | .write = spi_chip_write_256, |
| 4791 | .read = spi_chip_read, |
| 4792 | .voltage = {1650, 1950}, |
| 4793 | }, |
| 4794 | |
| 4795 | { |
| 4796 | .vendor = "Eon", |
| 4797 | .name = "EN25S20", |
| 4798 | .bustype = BUS_SPI, |
| 4799 | .manufacture_id = EON_ID_NOPREFIX, |
| 4800 | .model_id = EON_EN25S20, |
| 4801 | .total_size = 256, |
| 4802 | .page_size = 256, |
| 4803 | /* OTP: 256B total; enter 0x3A */ |
| 4804 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4805 | .tested = TEST_UNTESTED, |
| 4806 | .probe = probe_spi_rdid, |
| 4807 | .probe_timing = TIMING_ZERO, |
| 4808 | .block_erasers = { |
| 4809 | { |
| 4810 | .eraseblocks = { {4 * 1024, 64} }, |
| 4811 | .block_erase = spi_block_erase_20, |
| 4812 | }, { |
| 4813 | .eraseblocks = { {64 * 1024, 4} }, |
| 4814 | .block_erase = spi_block_erase_d8, |
| 4815 | }, { |
| 4816 | .eraseblocks = { {256 * 1024, 1} }, |
| 4817 | .block_erase = spi_block_erase_60, |
| 4818 | }, { |
| 4819 | .eraseblocks = { {256 * 1024, 1} }, |
| 4820 | .block_erase = spi_block_erase_c7, |
| 4821 | } |
| 4822 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4823 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 4824 | .unlock = spi_disable_blockprotect, |
| 4825 | .write = spi_chip_write_256, |
| 4826 | .read = spi_chip_read, |
| 4827 | .voltage = {1650, 1950}, |
| 4828 | }, |
| 4829 | |
| 4830 | { |
| 4831 | .vendor = "Eon", |
| 4832 | .name = "EN25S40", |
| 4833 | .bustype = BUS_SPI, |
| 4834 | .manufacture_id = EON_ID_NOPREFIX, |
| 4835 | .model_id = EON_EN25S40, |
| 4836 | .total_size = 512, |
| 4837 | .page_size = 256, |
| 4838 | /* OTP: 256B total; enter 0x3A */ |
| 4839 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4840 | .tested = TEST_UNTESTED, |
| 4841 | .probe = probe_spi_rdid, |
| 4842 | .probe_timing = TIMING_ZERO, |
| 4843 | .block_erasers = { |
| 4844 | { |
| 4845 | .eraseblocks = { {4 * 1024, 128} }, |
| 4846 | .block_erase = spi_block_erase_20, |
| 4847 | }, { |
| 4848 | .eraseblocks = { {64 * 1024, 8} }, |
| 4849 | .block_erase = spi_block_erase_d8, |
| 4850 | }, { |
| 4851 | .eraseblocks = { {512 * 1024, 1} }, |
| 4852 | .block_erase = spi_block_erase_60, |
| 4853 | }, { |
| 4854 | .eraseblocks = { {512 * 1024, 1} }, |
| 4855 | .block_erase = spi_block_erase_c7, |
| 4856 | } |
| 4857 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4858 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 4859 | .unlock = spi_disable_blockprotect, |
| 4860 | .write = spi_chip_write_256, |
| 4861 | .read = spi_chip_read, |
| 4862 | .voltage = {1650, 1950}, |
| 4863 | }, |
| 4864 | |
| 4865 | { |
| 4866 | .vendor = "Eon", |
| 4867 | .name = "EN25S80", |
| 4868 | .bustype = BUS_SPI, |
| 4869 | .manufacture_id = EON_ID_NOPREFIX, |
| 4870 | .model_id = EON_EN25S80, |
| 4871 | .total_size = 1024, |
| 4872 | .page_size = 256, |
| 4873 | /* OTP: 256B total; enter 0x3A */ |
| 4874 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4875 | .tested = TEST_UNTESTED, |
| 4876 | .probe = probe_spi_rdid, |
| 4877 | .probe_timing = TIMING_ZERO, |
| 4878 | .block_erasers = { |
| 4879 | { |
| 4880 | .eraseblocks = { {4 * 1024, 256} }, |
| 4881 | .block_erase = spi_block_erase_20, |
| 4882 | }, { |
| 4883 | .eraseblocks = { {64 * 1024, 16} }, |
| 4884 | .block_erase = spi_block_erase_d8, |
| 4885 | }, { |
| 4886 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4887 | .block_erase = spi_block_erase_60, |
| 4888 | }, { |
| 4889 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4890 | .block_erase = spi_block_erase_c7, |
| 4891 | } |
| 4892 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4893 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 4894 | .unlock = spi_disable_blockprotect, |
| 4895 | .write = spi_chip_write_256, |
| 4896 | .read = spi_chip_read, |
| 4897 | .voltage = {1650, 1950}, |
| 4898 | }, |
| 4899 | |
| 4900 | { |
| 4901 | .vendor = "Eon", |
| 4902 | .name = "EN25S16", |
| 4903 | .bustype = BUS_SPI, |
| 4904 | .manufacture_id = EON_ID_NOPREFIX, |
| 4905 | .model_id = EON_EN25S16, |
| 4906 | .total_size = 2048, |
| 4907 | .page_size = 256, |
| 4908 | /* OTP: 512B total; enter 0x3A */ |
| 4909 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 4910 | .tested = TEST_UNTESTED, |
| 4911 | .probe = probe_spi_rdid, |
| 4912 | .probe_timing = TIMING_ZERO, |
| 4913 | .block_erasers = { |
| 4914 | { |
| 4915 | .eraseblocks = { {4 * 1024, 512} }, |
| 4916 | .block_erase = spi_block_erase_20, |
| 4917 | }, { |
| 4918 | .eraseblocks = { {64 * 1024, 32} }, |
| 4919 | .block_erase = spi_block_erase_52, |
| 4920 | }, { |
| 4921 | .eraseblocks = { {32 * 1024, 64} }, |
| 4922 | .block_erase = spi_block_erase_d8, |
| 4923 | }, { |
| 4924 | .eraseblocks = { {2048 * 1024, 1} }, |
| 4925 | .block_erase = spi_block_erase_60, |
| 4926 | }, { |
| 4927 | .eraseblocks = { {2048 * 1024, 1} }, |
| 4928 | .block_erase = spi_block_erase_c7, |
| 4929 | } |
| 4930 | }, |
| 4931 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 4932 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4933 | .write = spi_chip_write_256, |
| 4934 | .read = spi_chip_read, |
| 4935 | .voltage = {1650, 1950}, |
| 4936 | }, |
| 4937 | |
| 4938 | { |
| 4939 | .vendor = "Eon", |
| 4940 | .name = "EN25S32", |
| 4941 | .bustype = BUS_SPI, |
| 4942 | .manufacture_id = EON_ID_NOPREFIX, |
| 4943 | .model_id = EON_EN25S32, |
| 4944 | .total_size = 4096, |
| 4945 | .page_size = 256, |
| 4946 | /* OTP: 512B total; enter 0x3A */ |
| 4947 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 4948 | .tested = TEST_UNTESTED, |
| 4949 | .probe = probe_spi_rdid, |
| 4950 | .probe_timing = TIMING_ZERO, |
| 4951 | .block_erasers = { |
| 4952 | { |
| 4953 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4954 | .block_erase = spi_block_erase_20, |
| 4955 | }, { |
| 4956 | .eraseblocks = { {32 * 1024, 128} }, |
| 4957 | .block_erase = spi_block_erase_52, |
| 4958 | }, { |
| 4959 | .eraseblocks = { {64 * 1024, 64} }, |
| 4960 | .block_erase = spi_block_erase_d8, |
| 4961 | }, { |
| 4962 | .eraseblocks = { {4096 * 1024, 1} }, |
| 4963 | .block_erase = spi_block_erase_60, |
| 4964 | }, { |
| 4965 | .eraseblocks = { {4096 * 1024, 1} }, |
| 4966 | .block_erase = spi_block_erase_c7, |
| 4967 | } |
| 4968 | }, |
| 4969 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 4970 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4971 | .write = spi_chip_write_256, |
| 4972 | .read = spi_chip_read, |
| 4973 | .voltage = {1650, 1950}, |
| 4974 | }, |
| 4975 | |
| 4976 | { |
| 4977 | .vendor = "Eon", |
| 4978 | .name = "EN25S64", |
| 4979 | .bustype = BUS_SPI, |
| 4980 | .manufacture_id = EON_ID_NOPREFIX, |
| 4981 | .model_id = EON_EN25S64, |
| 4982 | .total_size = 8192, |
| 4983 | .page_size = 256, |
| 4984 | /* OTP: 512B total; enter 0x3A */ |
| 4985 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 4986 | .tested = TEST_UNTESTED, |
| 4987 | .probe = probe_spi_rdid, |
| 4988 | .probe_timing = TIMING_ZERO, |
| 4989 | .block_erasers = { |
| 4990 | { |
| 4991 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4992 | .block_erase = spi_block_erase_20, |
| 4993 | }, { |
| 4994 | .eraseblocks = { {64 * 1024, 128} }, |
| 4995 | .block_erase = spi_block_erase_d8, |
| 4996 | }, { |
| 4997 | .eraseblocks = { {8192 * 1024, 1} }, |
| 4998 | .block_erase = spi_block_erase_60, |
| 4999 | }, { |
| 5000 | .eraseblocks = { {8192 * 1024, 1} }, |
| 5001 | .block_erase = spi_block_erase_c7, |
| 5002 | } |
| 5003 | }, |
| 5004 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 5005 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 5006 | .write = spi_chip_write_256, |
| 5007 | .read = spi_chip_read, |
| 5008 | .voltage = {1650, 1950}, |
| 5009 | }, |
| 5010 | |
| 5011 | { |
| 5012 | .vendor = "Eon", |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5013 | .name = "EN29F010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5014 | .bustype = BUS_PARALLEL, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5015 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5016 | .model_id = EON_EN29F010, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5017 | .total_size = 128, |
| 5018 | .page_size = 128, |
| 5019 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 5020 | .tested = TEST_OK_PRE, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5021 | .probe = probe_jedec, |
| 5022 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5023 | .block_erasers = |
| 5024 | { |
| 5025 | { |
| 5026 | .eraseblocks = { {16 * 1024, 8} }, |
| 5027 | .block_erase = erase_sector_jedec, |
| 5028 | }, |
| 5029 | { |
| 5030 | .eraseblocks = { {128 * 1024, 1} }, |
| 5031 | .block_erase = erase_chip_block_jedec, |
| 5032 | }, |
| 5033 | }, |
| 5034 | .write = write_jedec_1, |
| 5035 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5036 | .voltage = {4500, 5500}, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 5037 | }, |
| 5038 | |
| 5039 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 5040 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5041 | .name = "EN29F002(A)(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5042 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5043 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5044 | .model_id = EON_EN29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5045 | .total_size = 256, |
| 5046 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5047 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 5048 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5049 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5050 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5051 | .block_erasers = |
| 5052 | { |
| 5053 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5054 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5055 | {16 * 1024, 1}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 5056 | {8 * 1024, 2}, |
| 5057 | {32 * 1024, 1}, |
| 5058 | {64 * 1024, 3}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5059 | }, |
| 5060 | .block_erase = erase_sector_jedec, |
| 5061 | }, { |
| 5062 | .eraseblocks = { {256 * 1024, 1} }, |
| 5063 | .block_erase = erase_chip_block_jedec, |
| 5064 | }, |
| 5065 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 5066 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5067 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5068 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5069 | }, |
| 5070 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5071 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 5072 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5073 | .name = "EN29F002(A)(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5074 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5075 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5076 | .model_id = EON_EN29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5077 | .total_size = 256, |
| 5078 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5079 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 5080 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5081 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5082 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5083 | .block_erasers = |
| 5084 | { |
| 5085 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5086 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5087 | {64 * 1024, 3}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 5088 | {32 * 1024, 1}, |
| 5089 | {8 * 1024, 2}, |
| 5090 | {16 * 1024, 1}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5091 | }, |
| 5092 | .block_erase = erase_sector_jedec, |
| 5093 | }, { |
| 5094 | .eraseblocks = { {256 * 1024, 1} }, |
| 5095 | .block_erase = erase_chip_block_jedec, |
| 5096 | }, |
| 5097 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 5098 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5099 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5100 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5101 | }, |
| 5102 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5103 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5104 | .vendor = "Eon", |
Denis 'GNUtoo' Carikli | b5f9d5c | 2014-12-07 21:57:53 +0000 | [diff] [blame] | 5105 | .name = "EN29LV040(A)", |
| 5106 | .bustype = BUS_PARALLEL, |
| 5107 | .manufacture_id = EON_ID, |
| 5108 | .model_id = EON_EN29LV040, |
| 5109 | .total_size = 512, |
| 5110 | .page_size = 4 * 1024, |
| 5111 | .tested = TEST_OK_PREW, |
| 5112 | .probe = probe_jedec, |
| 5113 | .probe_timing = TIMING_ZERO, |
| 5114 | .block_erasers = |
| 5115 | { |
| 5116 | { |
| 5117 | .eraseblocks = { {64 * 1024, 8} }, |
| 5118 | .block_erase = erase_sector_jedec, |
| 5119 | }, |
| 5120 | { |
| 5121 | .eraseblocks = { {512 * 1024, 1} }, |
| 5122 | .block_erase = erase_chip_block_jedec, |
| 5123 | }, |
| 5124 | }, |
| 5125 | .write = write_jedec_1, |
| 5126 | .read = read_memmapped, |
| 5127 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -45R and 55R, others 2.7-3.6V */ |
| 5128 | }, |
| 5129 | |
| 5130 | { |
| 5131 | .vendor = "Eon", |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5132 | .name = "EN29LV640B", |
| 5133 | .bustype = BUS_PARALLEL, |
| 5134 | .manufacture_id = EON_ID, |
| 5135 | .model_id = EON_EN29LV640B, |
| 5136 | .total_size = 8192, |
| 5137 | .page_size = 8192, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5138 | .feature_bits = FEATURE_ADDR_SHIFTED, |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5139 | .tested = TEST_OK_PREW, |
| 5140 | .probe = probe_en29lv640b, |
| 5141 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5142 | .block_erasers = |
| 5143 | { |
| 5144 | { |
| 5145 | .eraseblocks = { |
| 5146 | {8 * 1024, 8}, |
| 5147 | {64 * 1024, 127}, |
| 5148 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5149 | .block_erase = erase_block_jedec, |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5150 | }, { |
| 5151 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5152 | .block_erase = erase_chip_block_jedec, |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 5153 | }, |
| 5154 | }, |
| 5155 | .write = write_en29lv640b, |
| 5156 | .read = read_memmapped, |
| 5157 | .voltage = {2700, 3600}, |
| 5158 | }, |
| 5159 | |
| 5160 | { |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 5161 | .vendor = "Eon", |
| 5162 | .name = "EN29GL064(A)B", |
| 5163 | .bustype = BUS_PARALLEL, |
| 5164 | .manufacture_id = EON_ID, |
| 5165 | .model_id = EON_EN29GL064B, |
| 5166 | .total_size = 8192, |
| 5167 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5168 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5169 | .tested = TEST_UNTESTED, |
| 5170 | .probe = probe_jedec_29gl, |
| 5171 | .probe_timing = TIMING_ZERO, |
| 5172 | .block_erasers = |
| 5173 | { |
| 5174 | { |
| 5175 | .eraseblocks = { |
| 5176 | {8 * 1024, 8}, |
| 5177 | {64 * 1024, 127}, |
| 5178 | }, |
| 5179 | .block_erase = erase_sector_jedec, |
| 5180 | }, { |
| 5181 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5182 | .block_erase = erase_chip_block_jedec, |
| 5183 | }, |
| 5184 | }, |
| 5185 | .write = write_jedec_1, |
| 5186 | .read = read_memmapped, |
| 5187 | .voltage = {2700, 3600}, |
| 5188 | }, |
| 5189 | |
| 5190 | { |
| 5191 | .vendor = "Eon", |
| 5192 | .name = "EN29GL064(A)T", |
| 5193 | .bustype = BUS_PARALLEL, |
| 5194 | .manufacture_id = EON_ID, |
| 5195 | .model_id = EON_EN29GL064T, |
| 5196 | .total_size = 8192, |
| 5197 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5198 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5199 | .tested = TEST_UNTESTED, |
| 5200 | .probe = probe_jedec_29gl, |
| 5201 | .probe_timing = TIMING_ZERO, |
| 5202 | .block_erasers = |
| 5203 | { |
| 5204 | { |
| 5205 | .eraseblocks = { |
| 5206 | {64 * 1024, 127}, |
| 5207 | {8 * 1024, 8}, |
| 5208 | }, |
| 5209 | .block_erase = erase_sector_jedec, |
| 5210 | }, { |
| 5211 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5212 | .block_erase = erase_chip_block_jedec, |
| 5213 | }, |
| 5214 | }, |
| 5215 | .write = write_jedec_1, |
| 5216 | .read = read_memmapped, |
| 5217 | .voltage = {2700, 3600}, |
| 5218 | }, |
| 5219 | |
| 5220 | { |
| 5221 | .vendor = "Eon", |
| 5222 | .name = "EN29GL064H/L", |
| 5223 | .bustype = BUS_PARALLEL, |
| 5224 | .manufacture_id = EON_ID, |
| 5225 | .model_id = EON_EN29GL064HL, |
| 5226 | .total_size = 8192, |
| 5227 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5228 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5229 | .tested = TEST_UNTESTED, |
| 5230 | .probe = probe_jedec_29gl, |
| 5231 | .probe_timing = TIMING_ZERO, |
| 5232 | .block_erasers = |
| 5233 | { |
| 5234 | { |
| 5235 | .eraseblocks = { {64 * 1024, 128} }, |
| 5236 | .block_erase = erase_sector_jedec, |
| 5237 | }, { |
| 5238 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5239 | .block_erase = erase_chip_block_jedec, |
| 5240 | }, |
| 5241 | }, |
| 5242 | .write = write_jedec_1, |
| 5243 | .read = read_memmapped, |
| 5244 | .voltage = {2700, 3600}, |
| 5245 | }, |
| 5246 | |
| 5247 | { |
| 5248 | .vendor = "Eon", |
| 5249 | .name = "EN29GL128", |
| 5250 | .bustype = BUS_PARALLEL, |
| 5251 | .manufacture_id = EON_ID, |
| 5252 | .model_id = EON_EN29GL128HL, |
| 5253 | .total_size = 16384, |
| 5254 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 5255 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 5256 | .tested = TEST_UNTESTED, |
| 5257 | .probe = probe_jedec_29gl, |
| 5258 | .probe_timing = TIMING_ZERO, |
| 5259 | .block_erasers = |
| 5260 | { |
| 5261 | { |
| 5262 | .eraseblocks = { {128 * 1024, 128} }, |
| 5263 | .block_erase = erase_sector_jedec, |
| 5264 | }, { |
| 5265 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 5266 | .block_erase = erase_chip_block_jedec, |
| 5267 | }, |
| 5268 | }, |
| 5269 | .write = write_jedec_1, |
| 5270 | .read = read_memmapped, |
| 5271 | .voltage = {2700, 3600}, |
| 5272 | }, |
| 5273 | |
| 5274 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5275 | .vendor = "Fujitsu", |
| 5276 | .name = "MBM29F004BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5277 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5278 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5279 | .model_id = FUJITSU_MBM29F004BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5280 | .total_size = 512, |
| 5281 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5282 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5283 | .tested = TEST_UNTESTED, |
| 5284 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5285 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5286 | .block_erasers = |
| 5287 | { |
| 5288 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5289 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5290 | {16 * 1024, 1}, |
| 5291 | {8 * 1024, 2}, |
| 5292 | {32 * 1024, 1}, |
| 5293 | {64 * 1024, 7}, |
| 5294 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5295 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5296 | }, { |
| 5297 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5298 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5299 | }, |
| 5300 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5301 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5302 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5303 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5304 | }, |
| 5305 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5306 | { |
| 5307 | .vendor = "Fujitsu", |
| 5308 | .name = "MBM29F004TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5309 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5310 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5311 | .model_id = FUJITSU_MBM29F004TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5312 | .total_size = 512, |
| 5313 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5314 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5315 | .tested = TEST_UNTESTED, |
| 5316 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5317 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5318 | .block_erasers = |
| 5319 | { |
| 5320 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5321 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5322 | {64 * 1024, 7}, |
| 5323 | {32 * 1024, 1}, |
| 5324 | {8 * 1024, 2}, |
| 5325 | {16 * 1024, 1}, |
| 5326 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5327 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5328 | }, { |
| 5329 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5330 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5331 | }, |
| 5332 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5333 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5334 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5335 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5336 | }, |
| 5337 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5338 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 5339 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5340 | .vendor = "Fujitsu", |
| 5341 | .name = "MBM29F400BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5342 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5343 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5344 | .model_id = FUJITSU_MBM29F400BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5345 | .total_size = 512, |
| 5346 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5347 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 5348 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5349 | .probe = probe_jedec, |
| 5350 | .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] | 5351 | .block_erasers = |
| 5352 | { |
| 5353 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5354 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5355 | {16 * 1024, 1}, |
| 5356 | {8 * 1024, 2}, |
| 5357 | {32 * 1024, 1}, |
| 5358 | {64 * 1024, 7}, |
| 5359 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5360 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5361 | }, { |
| 5362 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5363 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5364 | }, |
| 5365 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5366 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5367 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5368 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5369 | }, |
| 5370 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5371 | { |
| 5372 | .vendor = "Fujitsu", |
| 5373 | .name = "MBM29F400TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5374 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5375 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5376 | .model_id = FUJITSU_MBM29F400TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5377 | .total_size = 512, |
| 5378 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5379 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5380 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5381 | .probe = probe_jedec, |
| 5382 | .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] | 5383 | .block_erasers = |
| 5384 | { |
| 5385 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5386 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5387 | {64 * 1024, 7}, |
| 5388 | {32 * 1024, 1}, |
| 5389 | {8 * 1024, 2}, |
| 5390 | {16 * 1024, 1}, |
| 5391 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5392 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5393 | }, { |
| 5394 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5395 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 5396 | }, |
| 5397 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5398 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5399 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5400 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -55, others 4.5-5.5V */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5401 | }, |
| 5402 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5403 | { |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5404 | .vendor = "Fujitsu", |
| 5405 | .name = "MBM29LV160BE", |
| 5406 | .bustype = BUS_PARALLEL, |
| 5407 | .manufacture_id = FUJITSU_ID, |
| 5408 | .model_id = FUJITSU_MBM29LV160BE, |
| 5409 | .total_size = 2 * 1024, |
| 5410 | .page_size = 0, |
| 5411 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET, |
| 5412 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5413 | .probe = probe_jedec, |
| 5414 | .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] | 5415 | .block_erasers = |
| 5416 | { |
| 5417 | { |
| 5418 | .eraseblocks = { |
| 5419 | {16 * 1024, 1}, |
| 5420 | {8 * 1024, 2}, |
| 5421 | {32 * 1024, 1}, |
| 5422 | {64 * 1024, 31}, |
| 5423 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5424 | .block_erase = erase_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5425 | }, { |
| 5426 | .eraseblocks = { {2048 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5427 | .block_erase = erase_chip_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5428 | }, |
| 5429 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5430 | .write = write_jedec_1, /* Supports a fast mode too */ |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5431 | .read = read_memmapped, |
| 5432 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */ |
| 5433 | }, |
| 5434 | |
| 5435 | { |
| 5436 | .vendor = "Fujitsu", |
| 5437 | .name = "MBM29LV160TE", |
| 5438 | .bustype = BUS_PARALLEL, |
| 5439 | .manufacture_id = FUJITSU_ID, |
| 5440 | .model_id = FUJITSU_MBM29LV160TE, |
| 5441 | .total_size = 2 * 1024, |
| 5442 | .page_size = 0, |
| 5443 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET, |
| 5444 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5445 | .probe = probe_jedec, |
| 5446 | .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] | 5447 | .block_erasers = |
| 5448 | { |
| 5449 | { |
| 5450 | .eraseblocks = { |
| 5451 | {64 * 1024, 31}, |
| 5452 | {32 * 1024, 1}, |
| 5453 | {8 * 1024, 2}, |
| 5454 | {16 * 1024, 1}, |
| 5455 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5456 | .block_erase = erase_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5457 | }, { |
| 5458 | .eraseblocks = { {2048 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5459 | .block_erase = erase_chip_block_jedec, |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5460 | }, |
| 5461 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 5462 | .write = write_jedec_1, /* Supports a fast mode too */ |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 5463 | .read = read_memmapped, |
| 5464 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */ |
| 5465 | }, |
| 5466 | |
| 5467 | { |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5468 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5469 | .name = "GD25LQ32", |
| 5470 | .bustype = BUS_SPI, |
| 5471 | .manufacture_id = GIGADEVICE_ID, |
| 5472 | .model_id = GIGADEVICE_GD25LQ32, |
| 5473 | .total_size = 4096, |
| 5474 | .page_size = 256, |
| 5475 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 5476 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5477 | .tested = TEST_OK_PREW, |
| 5478 | .probe = probe_spi_rdid, |
| 5479 | .probe_timing = TIMING_ZERO, |
| 5480 | .block_erasers = |
| 5481 | { |
| 5482 | { |
| 5483 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5484 | .block_erase = spi_block_erase_20, |
| 5485 | }, { |
| 5486 | .eraseblocks = { {32 * 1024, 128} }, |
| 5487 | .block_erase = spi_block_erase_52, |
| 5488 | }, { |
| 5489 | .eraseblocks = { {64 * 1024, 64} }, |
| 5490 | .block_erase = spi_block_erase_d8, |
| 5491 | }, { |
| 5492 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5493 | .block_erase = spi_block_erase_60, |
| 5494 | }, { |
| 5495 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5496 | .block_erase = spi_block_erase_c7, |
| 5497 | } |
| 5498 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5499 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5500 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5501 | .write = spi_chip_write_256, |
| 5502 | .read = spi_chip_read, |
| 5503 | .voltage = {1700, 1950}, |
| 5504 | }, |
| 5505 | |
| 5506 | { |
| 5507 | .vendor = "GigaDevice", |
| 5508 | .name = "GD25Q512", |
| 5509 | .bustype = BUS_SPI, |
| 5510 | .manufacture_id = GIGADEVICE_ID, |
| 5511 | .model_id = GIGADEVICE_GD25Q512, |
| 5512 | .total_size = 64, |
| 5513 | .page_size = 256, |
| 5514 | .feature_bits = FEATURE_WRSR_WREN, |
| 5515 | .tested = TEST_UNTESTED, |
| 5516 | .probe = probe_spi_rdid, |
| 5517 | .probe_timing = TIMING_ZERO, |
| 5518 | .block_erasers = { |
| 5519 | { |
| 5520 | .eraseblocks = { {4 * 1024, 16} }, |
| 5521 | .block_erase = spi_block_erase_20, |
| 5522 | }, { |
| 5523 | .eraseblocks = { {32 * 1024, 2} }, |
| 5524 | .block_erase = spi_block_erase_52, |
| 5525 | }, { |
| 5526 | .eraseblocks = { {64 * 1024, 1} }, |
| 5527 | .block_erase = spi_block_erase_60, |
| 5528 | }, { |
| 5529 | .eraseblocks = { {64 * 1024, 1} }, |
| 5530 | .block_erase = spi_block_erase_c7, |
| 5531 | } |
| 5532 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5533 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5534 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5535 | .write = spi_chip_write_256, |
| 5536 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5537 | .voltage = {2700, 3600}, |
| 5538 | }, |
| 5539 | |
| 5540 | { |
| 5541 | .vendor = "GigaDevice", |
| 5542 | .name = "GD25Q10", |
| 5543 | .bustype = BUS_SPI, |
| 5544 | .manufacture_id = GIGADEVICE_ID, |
| 5545 | .model_id = GIGADEVICE_GD25Q10, |
| 5546 | .total_size = 128, |
| 5547 | .page_size = 256, |
| 5548 | .feature_bits = FEATURE_WRSR_WREN, |
| 5549 | .tested = TEST_UNTESTED, |
| 5550 | .probe = probe_spi_rdid, |
| 5551 | .probe_timing = TIMING_ZERO, |
| 5552 | .block_erasers = { |
| 5553 | { |
| 5554 | .eraseblocks = { {4 * 1024, 32} }, |
| 5555 | .block_erase = spi_block_erase_20, |
| 5556 | }, { |
| 5557 | .eraseblocks = { {32 * 1024, 4} }, |
| 5558 | .block_erase = spi_block_erase_52, |
| 5559 | }, { |
| 5560 | .eraseblocks = { {64 * 1024, 2} }, |
| 5561 | .block_erase = spi_block_erase_d8, |
| 5562 | }, { |
| 5563 | .eraseblocks = { {128 * 1024, 1} }, |
| 5564 | .block_erase = spi_block_erase_60, |
| 5565 | }, { |
| 5566 | .eraseblocks = { {128 * 1024, 1} }, |
| 5567 | .block_erase = spi_block_erase_c7, |
| 5568 | } |
| 5569 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5570 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5571 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5572 | .write = spi_chip_write_256, |
| 5573 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5574 | .voltage = {2700, 3600}, |
| 5575 | }, |
| 5576 | |
| 5577 | { |
| 5578 | .vendor = "GigaDevice", |
| 5579 | .name = "GD25Q20(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5580 | .bustype = BUS_SPI, |
| 5581 | .manufacture_id = GIGADEVICE_ID, |
| 5582 | .model_id = GIGADEVICE_GD25Q20, |
| 5583 | .total_size = 256, |
| 5584 | .page_size = 256, |
| 5585 | .feature_bits = FEATURE_WRSR_WREN, |
| 5586 | .tested = TEST_UNTESTED, |
| 5587 | .probe = probe_spi_rdid, |
| 5588 | .probe_timing = TIMING_ZERO, |
| 5589 | .block_erasers = |
| 5590 | { |
| 5591 | { |
| 5592 | .eraseblocks = { {4 * 1024, 64} }, |
| 5593 | .block_erase = spi_block_erase_20, |
| 5594 | }, { |
| 5595 | .eraseblocks = { {32 * 1024, 8} }, |
| 5596 | .block_erase = spi_block_erase_52, |
| 5597 | }, { |
| 5598 | .eraseblocks = { {64 * 1024, 4} }, |
| 5599 | .block_erase = spi_block_erase_d8, |
| 5600 | }, { |
| 5601 | .eraseblocks = { {256 * 1024, 1} }, |
| 5602 | .block_erase = spi_block_erase_60, |
| 5603 | }, { |
| 5604 | .eraseblocks = { {256 * 1024, 1} }, |
| 5605 | .block_erase = spi_block_erase_c7, |
| 5606 | } |
| 5607 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5608 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5609 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5610 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5611 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 5612 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5613 | }, |
| 5614 | |
| 5615 | { |
| 5616 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5617 | .name = "GD25Q40(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5618 | .bustype = BUS_SPI, |
| 5619 | .manufacture_id = GIGADEVICE_ID, |
| 5620 | .model_id = GIGADEVICE_GD25Q40, |
| 5621 | .total_size = 512, |
| 5622 | .page_size = 256, |
| 5623 | .feature_bits = FEATURE_WRSR_WREN, |
| 5624 | .tested = TEST_UNTESTED, |
| 5625 | .probe = probe_spi_rdid, |
| 5626 | .probe_timing = TIMING_ZERO, |
| 5627 | .block_erasers = |
| 5628 | { |
| 5629 | { |
| 5630 | .eraseblocks = { {4 * 1024, 128} }, |
| 5631 | .block_erase = spi_block_erase_20, |
| 5632 | }, { |
| 5633 | .eraseblocks = { {32 * 1024, 16} }, |
| 5634 | .block_erase = spi_block_erase_52, |
| 5635 | }, { |
| 5636 | .eraseblocks = { {64 * 1024, 8} }, |
| 5637 | .block_erase = spi_block_erase_d8, |
| 5638 | }, { |
| 5639 | .eraseblocks = { {512 * 1024, 1} }, |
| 5640 | .block_erase = spi_block_erase_60, |
| 5641 | }, { |
| 5642 | .eraseblocks = { {512 * 1024, 1} }, |
| 5643 | .block_erase = spi_block_erase_c7, |
| 5644 | } |
| 5645 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5646 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5647 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5648 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5649 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 5650 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5651 | }, |
| 5652 | |
| 5653 | { |
| 5654 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5655 | .name = "GD25Q80(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5656 | .bustype = BUS_SPI, |
| 5657 | .manufacture_id = GIGADEVICE_ID, |
| 5658 | .model_id = GIGADEVICE_GD25Q80, |
| 5659 | .total_size = 1024, |
| 5660 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5661 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5662 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5663 | .tested = TEST_OK_PREW, |
| 5664 | .probe = probe_spi_rdid, |
| 5665 | .probe_timing = TIMING_ZERO, |
| 5666 | .block_erasers = |
| 5667 | { |
| 5668 | { |
| 5669 | .eraseblocks = { {4 * 1024, 256} }, |
| 5670 | .block_erase = spi_block_erase_20, |
| 5671 | }, { |
| 5672 | .eraseblocks = { {32 * 1024, 32} }, |
| 5673 | .block_erase = spi_block_erase_52, |
| 5674 | }, { |
| 5675 | .eraseblocks = { {64 * 1024, 16} }, |
| 5676 | .block_erase = spi_block_erase_d8, |
| 5677 | }, { |
| 5678 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5679 | .block_erase = spi_block_erase_60, |
| 5680 | }, { |
| 5681 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5682 | .block_erase = spi_block_erase_c7, |
| 5683 | } |
| 5684 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5685 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5686 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5687 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5688 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5689 | .voltage = {2700, 3600}, |
| 5690 | }, |
| 5691 | |
| 5692 | { |
| 5693 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5694 | .name = "GD25Q16(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5695 | .bustype = BUS_SPI, |
| 5696 | .manufacture_id = GIGADEVICE_ID, |
| 5697 | .model_id = GIGADEVICE_GD25Q16, |
| 5698 | .total_size = 2048, |
| 5699 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5700 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (B version only) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5701 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 5702 | .tested = TEST_OK_PREW, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5703 | .probe = probe_spi_rdid, |
| 5704 | .probe_timing = TIMING_ZERO, |
| 5705 | .block_erasers = |
| 5706 | { |
| 5707 | { |
| 5708 | .eraseblocks = { {4 * 1024, 512} }, |
| 5709 | .block_erase = spi_block_erase_20, |
| 5710 | }, { |
| 5711 | .eraseblocks = { {32 * 1024, 64} }, |
| 5712 | .block_erase = spi_block_erase_52, |
| 5713 | }, { |
| 5714 | .eraseblocks = { {64 * 1024, 32} }, |
| 5715 | .block_erase = spi_block_erase_d8, |
| 5716 | }, { |
| 5717 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5718 | .block_erase = spi_block_erase_60, |
| 5719 | }, { |
| 5720 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5721 | .block_erase = spi_block_erase_c7, |
| 5722 | } |
| 5723 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5724 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5725 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5726 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5727 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5728 | .voltage = {2700, 3600}, |
| 5729 | }, |
| 5730 | |
| 5731 | { |
| 5732 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5733 | .name = "GD25Q32(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5734 | .bustype = BUS_SPI, |
| 5735 | .manufacture_id = GIGADEVICE_ID, |
| 5736 | .model_id = GIGADEVICE_GD25Q32, |
| 5737 | .total_size = 4096, |
| 5738 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5739 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5740 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 5741 | .tested = TEST_OK_PREW, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5742 | .probe = probe_spi_rdid, |
| 5743 | .probe_timing = TIMING_ZERO, |
| 5744 | .block_erasers = |
| 5745 | { |
| 5746 | { |
| 5747 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5748 | .block_erase = spi_block_erase_20, |
| 5749 | }, { |
| 5750 | .eraseblocks = { {32 * 1024, 128} }, |
| 5751 | .block_erase = spi_block_erase_52, |
| 5752 | }, { |
| 5753 | .eraseblocks = { {64 * 1024, 64} }, |
| 5754 | .block_erase = spi_block_erase_d8, |
| 5755 | }, { |
| 5756 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5757 | .block_erase = spi_block_erase_60, |
| 5758 | }, { |
| 5759 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5760 | .block_erase = spi_block_erase_c7, |
| 5761 | } |
| 5762 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5763 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5764 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5765 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5766 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5767 | .voltage = {2700, 3600}, |
| 5768 | }, |
| 5769 | |
| 5770 | { |
| 5771 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5772 | .name = "GD25Q64(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5773 | .bustype = BUS_SPI, |
| 5774 | .manufacture_id = GIGADEVICE_ID, |
| 5775 | .model_id = GIGADEVICE_GD25Q64, |
| 5776 | .total_size = 8192, |
| 5777 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5778 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5779 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 5780 | .tested = TEST_OK_PREW, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5781 | .probe = probe_spi_rdid, |
| 5782 | .probe_timing = TIMING_ZERO, |
| 5783 | .block_erasers = |
| 5784 | { |
| 5785 | { |
| 5786 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5787 | .block_erase = spi_block_erase_20, |
| 5788 | }, { |
| 5789 | .eraseblocks = { {32 * 1024, 256} }, |
| 5790 | .block_erase = spi_block_erase_52, |
| 5791 | }, { |
| 5792 | .eraseblocks = { {64 * 1024, 128} }, |
| 5793 | .block_erase = spi_block_erase_d8, |
| 5794 | }, { |
| 5795 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5796 | .block_erase = spi_block_erase_60, |
| 5797 | }, { |
| 5798 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5799 | .block_erase = spi_block_erase_c7, |
| 5800 | } |
| 5801 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5802 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5803 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5804 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5805 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5806 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5807 | }, |
| 5808 | |
| 5809 | { |
| 5810 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5811 | .name = "GD25Q128B", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5812 | .bustype = BUS_SPI, |
| 5813 | .manufacture_id = GIGADEVICE_ID, |
| 5814 | .model_id = GIGADEVICE_GD25Q128, |
| 5815 | .total_size = 16384, |
| 5816 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5817 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5818 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5819 | .tested = TEST_UNTESTED, |
| 5820 | .probe = probe_spi_rdid, |
| 5821 | .probe_timing = TIMING_ZERO, |
| 5822 | .block_erasers = |
| 5823 | { |
| 5824 | { |
| 5825 | .eraseblocks = { {4 * 1024, 4096} }, |
| 5826 | .block_erase = spi_block_erase_20, |
| 5827 | }, { |
| 5828 | .eraseblocks = { {32 * 1024, 512} }, |
| 5829 | .block_erase = spi_block_erase_52, |
| 5830 | }, { |
| 5831 | .eraseblocks = { {64 * 1024, 256} }, |
| 5832 | .block_erase = spi_block_erase_d8, |
| 5833 | }, { |
| 5834 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 5835 | .block_erase = spi_block_erase_60, |
| 5836 | }, { |
| 5837 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 5838 | .block_erase = spi_block_erase_c7, |
| 5839 | } |
| 5840 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5841 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5842 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5843 | .write = spi_chip_write_256, |
| 5844 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5845 | .voltage = {2700, 3600}, |
| 5846 | }, |
| 5847 | |
| 5848 | { |
| 5849 | .vendor = "GigaDevice", |
| 5850 | .name = "GD25T80", |
| 5851 | .bustype = BUS_SPI, |
| 5852 | .manufacture_id = GIGADEVICE_ID, |
| 5853 | .model_id = GIGADEVICE_GD25T80, |
| 5854 | .total_size = 1024, |
| 5855 | .page_size = 256, |
| 5856 | /* OTP: 256B total; enter 0x3A */ |
| 5857 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5858 | .tested = TEST_UNTESTED, |
| 5859 | .probe = probe_spi_rdid, |
| 5860 | .probe_timing = TIMING_ZERO, |
| 5861 | .block_erasers = { |
| 5862 | { |
| 5863 | .eraseblocks = { {4 * 1024, 256} }, |
| 5864 | .block_erase = spi_block_erase_20, |
| 5865 | }, { |
| 5866 | .eraseblocks = { {64 * 1024, 16} }, |
| 5867 | .block_erase = spi_block_erase_52, |
| 5868 | }, { |
| 5869 | .eraseblocks = { {64 * 1024, 16} }, |
| 5870 | .block_erase = spi_block_erase_d8, |
| 5871 | }, { |
| 5872 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5873 | .block_erase = spi_block_erase_60, |
| 5874 | }, { |
| 5875 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5876 | .block_erase = spi_block_erase_c7, |
| 5877 | } |
| 5878 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 5879 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5880 | .unlock = spi_disable_blockprotect, |
| 5881 | .write = spi_chip_write_256, |
| 5882 | .read = spi_chip_read, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5883 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5884 | }, |
| 5885 | |
| 5886 | { |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 5887 | .vendor = "Hyundai", |
| 5888 | .name = "HY29F002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5889 | .bustype = BUS_PARALLEL, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 5890 | .manufacture_id = HYUNDAI_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5891 | .model_id = HYUNDAI_HY29F002T, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 5892 | .total_size = 256, |
| 5893 | .page_size = 256 * 1024, |
| 5894 | .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] | 5895 | .tested = TEST_OK_PRE, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 5896 | .probe = probe_jedec, |
| 5897 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5898 | .block_erasers = |
| 5899 | { |
| 5900 | { |
| 5901 | .eraseblocks = { |
| 5902 | {64 * 1024, 3}, |
| 5903 | {32 * 1024, 1}, |
| 5904 | {8 * 1024, 2}, |
| 5905 | {16 * 1024, 1}, |
| 5906 | }, |
| 5907 | .block_erase = erase_sector_jedec, |
| 5908 | }, { |
| 5909 | .eraseblocks = { {256 * 1024, 1} }, |
| 5910 | .block_erase = erase_chip_block_jedec, |
| 5911 | }, |
| 5912 | }, |
| 5913 | .write = write_jedec_1, |
| 5914 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5915 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */ |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 5916 | }, |
| 5917 | |
| 5918 | { |
| 5919 | .vendor = "Hyundai", |
| 5920 | .name = "HY29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5921 | .bustype = BUS_PARALLEL, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 5922 | .manufacture_id = HYUNDAI_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5923 | .model_id = HYUNDAI_HY29F002B, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 5924 | .total_size = 256, |
| 5925 | .page_size = 256 * 1024, |
| 5926 | .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */ |
| 5927 | .tested = TEST_UNTESTED, |
| 5928 | .probe = probe_jedec, |
| 5929 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5930 | .block_erasers = |
| 5931 | { |
| 5932 | { |
| 5933 | .eraseblocks = { |
| 5934 | {16 * 1024, 1}, |
| 5935 | {8 * 1024, 2}, |
| 5936 | {32 * 1024, 1}, |
| 5937 | {64 * 1024, 3}, |
| 5938 | }, |
| 5939 | .block_erase = erase_sector_jedec, |
| 5940 | }, { |
| 5941 | .eraseblocks = { {256 * 1024, 1} }, |
| 5942 | .block_erase = erase_chip_block_jedec, |
| 5943 | }, |
| 5944 | }, |
| 5945 | .write = write_jedec_1, |
| 5946 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5947 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -45, others 4.5-5.5V */ |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 5948 | }, |
| 5949 | |
| 5950 | { |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 5951 | .vendor = "Hyundai", |
| 5952 | .name = "HY29F040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5953 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 5954 | .manufacture_id = HYUNDAI_ID, |
| 5955 | .model_id = HYUNDAI_HY29F040A, |
| 5956 | .total_size = 512, |
| 5957 | .page_size = 64 * 1024, |
| 5958 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 5959 | .tested = TEST_UNTESTED, |
| 5960 | .probe = probe_jedec, |
| 5961 | .probe_timing = TIMING_ZERO, |
| 5962 | .block_erasers = |
| 5963 | { |
| 5964 | { |
| 5965 | .eraseblocks = { {64 * 1024, 8} }, |
| 5966 | .block_erase = erase_sector_jedec, |
| 5967 | }, { |
| 5968 | .eraseblocks = { {512 * 1024, 1} }, |
| 5969 | .block_erase = erase_chip_block_jedec, |
| 5970 | }, |
| 5971 | }, |
| 5972 | .write = write_jedec_1, |
| 5973 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5974 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 5975 | }, |
| 5976 | |
| 5977 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5978 | .vendor = "Intel", |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 5979 | .name = "25F160S33B8", |
| 5980 | .bustype = BUS_SPI, |
| 5981 | .manufacture_id = INTEL_ID, |
| 5982 | .model_id = INTEL_25F160S33B8, |
| 5983 | .total_size = 2048, |
| 5984 | .page_size = 256, |
| 5985 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 5986 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5987 | .tested = TEST_UNTESTED, |
| 5988 | .probe = probe_spi_rdid, |
| 5989 | .probe_timing = TIMING_ZERO, |
| 5990 | .block_erasers = |
| 5991 | { |
| 5992 | { |
| 5993 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 5994 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 5995 | * have no effect on the memory contents, but sets a flag in the SR. |
| 5996 | .eraseblocks = { |
| 5997 | {8 * 1024, 8}, |
| 5998 | {64 * 1024, 31} // inaccessible |
| 5999 | }, |
| 6000 | .block_erase = spi_block_erase_40, |
| 6001 | }, { */ |
| 6002 | .eraseblocks = { {64 * 1024, 32} }, |
| 6003 | .block_erase = spi_block_erase_d8, |
| 6004 | }, { |
| 6005 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6006 | .block_erase = spi_block_erase_c7, |
| 6007 | } |
| 6008 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 6009 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 6010 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 6011 | .write = spi_chip_write_256, |
| 6012 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 6013 | .voltage = {2700, 3600}, |
| 6014 | }, |
| 6015 | |
| 6016 | { |
| 6017 | .vendor = "Intel", |
| 6018 | .name = "25F160S33T8", |
| 6019 | .bustype = BUS_SPI, |
| 6020 | .manufacture_id = INTEL_ID, |
| 6021 | .model_id = INTEL_25F160S33T8, |
| 6022 | .total_size = 2048, |
| 6023 | .page_size = 256, |
| 6024 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 6025 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6026 | .tested = TEST_UNTESTED, |
| 6027 | .probe = probe_spi_rdid, |
| 6028 | .probe_timing = TIMING_ZERO, |
| 6029 | .block_erasers = |
| 6030 | { |
| 6031 | { |
| 6032 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 6033 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 6034 | * have no effect on the memory contents, but sets a flag in the SR. |
| 6035 | .eraseblocks = { |
| 6036 | {64 * 1024, 31}, // inaccessible |
| 6037 | {8 * 1024, 8} |
| 6038 | }, |
| 6039 | .block_erase = spi_block_erase_40, |
| 6040 | }, { */ |
| 6041 | .eraseblocks = { {64 * 1024, 32} }, |
| 6042 | .block_erase = spi_block_erase_d8, |
| 6043 | }, { |
| 6044 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6045 | .block_erase = spi_block_erase_c7, |
| 6046 | } |
| 6047 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 6048 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 6049 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 6050 | .write = spi_chip_write_256, |
| 6051 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 6052 | .voltage = {2700, 3600}, |
| 6053 | }, |
| 6054 | |
| 6055 | { |
| 6056 | .vendor = "Intel", |
| 6057 | .name = "25F320S33B8", |
| 6058 | .bustype = BUS_SPI, |
| 6059 | .manufacture_id = INTEL_ID, |
| 6060 | .model_id = INTEL_25F320S33B8, |
| 6061 | .total_size = 4096, |
| 6062 | .page_size = 256, |
| 6063 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 6064 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6065 | .tested = TEST_UNTESTED, |
| 6066 | .probe = probe_spi_rdid, |
| 6067 | .probe_timing = TIMING_ZERO, |
| 6068 | .block_erasers = |
| 6069 | { |
| 6070 | { |
| 6071 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 6072 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 6073 | * have no effect on the memory contents, but sets a flag in the SR. |
| 6074 | .eraseblocks = { |
| 6075 | {8 * 1024, 8}, |
| 6076 | {64 * 1024, 63} // inaccessible |
| 6077 | }, |
| 6078 | .block_erase = spi_block_erase_40, |
| 6079 | }, { */ |
| 6080 | .eraseblocks = { {64 * 1024, 64} }, |
| 6081 | .block_erase = spi_block_erase_d8, |
| 6082 | }, { |
| 6083 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6084 | .block_erase = spi_block_erase_c7, |
| 6085 | } |
| 6086 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 6087 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 6088 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 6089 | .write = spi_chip_write_256, |
| 6090 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 6091 | .voltage = {2700, 3600}, |
| 6092 | }, |
| 6093 | |
| 6094 | { |
| 6095 | .vendor = "Intel", |
| 6096 | .name = "25F320S33T8", |
| 6097 | .bustype = BUS_SPI, |
| 6098 | .manufacture_id = INTEL_ID, |
| 6099 | .model_id = INTEL_25F320S33T8, |
| 6100 | .total_size = 4096, |
| 6101 | .page_size = 256, |
| 6102 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 6103 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6104 | .tested = TEST_UNTESTED, |
| 6105 | .probe = probe_spi_rdid, |
| 6106 | .probe_timing = TIMING_ZERO, |
| 6107 | .block_erasers = |
| 6108 | { |
| 6109 | { |
| 6110 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 6111 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 6112 | * have no effect on the memory contents, but sets a flag in the SR. |
| 6113 | .eraseblocks = { |
| 6114 | {64 * 1024, 63}, // inaccessible |
| 6115 | {8 * 1024, 8} |
| 6116 | }, |
| 6117 | .block_erase = spi_block_erase_40, |
| 6118 | }, { */ |
| 6119 | .eraseblocks = { {64 * 1024, 64} }, |
| 6120 | .block_erase = spi_block_erase_d8, |
| 6121 | }, { |
| 6122 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6123 | .block_erase = spi_block_erase_c7, |
| 6124 | } |
| 6125 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 6126 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 6127 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 6128 | .write = spi_chip_write_256, |
| 6129 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 6130 | .voltage = {2700, 3600}, |
| 6131 | }, |
| 6132 | |
| 6133 | { |
| 6134 | .vendor = "Intel", |
| 6135 | .name = "25F640S33B8", |
| 6136 | .bustype = BUS_SPI, |
| 6137 | .manufacture_id = INTEL_ID, |
| 6138 | .model_id = INTEL_25F640S33B8, |
| 6139 | .total_size = 8192, |
| 6140 | .page_size = 256, |
| 6141 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 6142 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6143 | .tested = TEST_UNTESTED, |
| 6144 | .probe = probe_spi_rdid, |
| 6145 | .probe_timing = TIMING_ZERO, |
| 6146 | .block_erasers = |
| 6147 | { |
| 6148 | { |
| 6149 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 6150 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 6151 | * have no effect on the memory contents, but sets a flag in the SR. |
| 6152 | .eraseblocks = { |
| 6153 | {8 * 1024, 8}, |
| 6154 | {64 * 1024, 127} // inaccessible |
| 6155 | }, |
| 6156 | .block_erase = spi_block_erase_40, |
| 6157 | }, { */ |
| 6158 | .eraseblocks = { {64 * 1024, 128} }, |
| 6159 | .block_erase = spi_block_erase_d8, |
| 6160 | }, { |
| 6161 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6162 | .block_erase = spi_block_erase_c7, |
| 6163 | } |
| 6164 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 6165 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 6166 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 6167 | .write = spi_chip_write_256, |
| 6168 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 6169 | .voltage = {2700, 3600}, |
| 6170 | }, |
| 6171 | |
| 6172 | { |
| 6173 | .vendor = "Intel", |
| 6174 | .name = "25F640S33T8", |
| 6175 | .bustype = BUS_SPI, |
| 6176 | .manufacture_id = INTEL_ID, |
| 6177 | .model_id = INTEL_25F640S33T8, |
| 6178 | .total_size = 8192, |
| 6179 | .page_size = 256, |
| 6180 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 6181 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6182 | .tested = TEST_UNTESTED, |
| 6183 | .probe = probe_spi_rdid, |
| 6184 | .probe_timing = TIMING_ZERO, |
| 6185 | .block_erasers = |
| 6186 | { |
| 6187 | { |
| 6188 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 6189 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 6190 | * have no effect on the memory contents, but sets a flag in the SR. |
| 6191 | .eraseblocks = { |
| 6192 | {64 * 1024, 127}, // inaccessible |
| 6193 | {8 * 1024, 8} |
| 6194 | }, |
| 6195 | .block_erase = spi_block_erase_40, |
| 6196 | }, { */ |
| 6197 | .eraseblocks = { {64 * 1024, 128} }, |
| 6198 | .block_erase = spi_block_erase_d8, |
| 6199 | }, { |
| 6200 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6201 | .block_erase = spi_block_erase_c7, |
| 6202 | } |
| 6203 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 6204 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 6205 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 6206 | .write = spi_chip_write_256, |
| 6207 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 6208 | .voltage = {2700, 3600}, |
| 6209 | }, |
| 6210 | |
| 6211 | { |
| 6212 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6213 | .name = "28F001BN/BX-B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6214 | .bustype = BUS_PARALLEL, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6215 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6216 | .model_id = INTEL_28F001B, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6217 | .total_size = 128, |
| 6218 | .page_size = 128 * 1024, /* 8k + 2x4k + 112k */ |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 6219 | .tested = TEST_UNTESTED, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6220 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6221 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6222 | .block_erasers = |
| 6223 | { |
| 6224 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6225 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6226 | {8 * 1024, 1}, |
| 6227 | {4 * 1024, 2}, |
| 6228 | {112 * 1024, 1}, |
| 6229 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6230 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6231 | }, |
| 6232 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 6233 | .write = write_82802ab, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6234 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6235 | .voltage = {4500, 5500}, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6236 | }, |
| 6237 | |
| 6238 | { |
| 6239 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6240 | .name = "28F001BN/BX-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6241 | .bustype = BUS_PARALLEL, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6242 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6243 | .model_id = INTEL_28F001T, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6244 | .total_size = 128, |
| 6245 | .page_size = 128 * 1024, /* 112k + 2x4k + 8k */ |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 6246 | .tested = TEST_OK_PR, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6247 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 6248 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6249 | .block_erasers = |
| 6250 | { |
| 6251 | { |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 6252 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6253 | {112 * 1024, 1}, |
| 6254 | {4 * 1024, 2}, |
| 6255 | {8 * 1024, 1}, |
| 6256 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6257 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6258 | }, |
| 6259 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 6260 | .write = write_82802ab, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6261 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6262 | .voltage = {4500, 5500}, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 6263 | }, |
| 6264 | |
| 6265 | { |
| 6266 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6267 | .name = "28F002BC/BL/BV/BX-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6268 | .bustype = BUS_PARALLEL, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 6269 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6270 | .model_id = INTEL_28F002T, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 6271 | .total_size = 256, |
| 6272 | .page_size = 256 * 1024, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 6273 | .tested = TEST_OK_PRE, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 6274 | .probe = probe_82802ab, |
| 6275 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 6276 | .block_erasers = |
| 6277 | { |
| 6278 | { |
| 6279 | .eraseblocks = { |
| 6280 | {128 * 1024, 1}, |
| 6281 | {96 * 1024, 1}, |
| 6282 | {8 * 1024, 2}, |
| 6283 | {16 * 1024, 1}, |
| 6284 | }, |
| 6285 | .block_erase = erase_block_82802ab, |
| 6286 | }, |
| 6287 | }, |
| 6288 | .write = write_82802ab, |
| 6289 | .read = read_memmapped, |
| 6290 | }, |
| 6291 | |
| 6292 | { |
| 6293 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6294 | .name = "28F008S3/S5/SC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6295 | .bustype = BUS_PARALLEL, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 6296 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6297 | .model_id = INTEL_28F004S3, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 6298 | .total_size = 512, |
| 6299 | .page_size = 256, |
| 6300 | .tested = TEST_UNTESTED, |
| 6301 | .probe = probe_82802ab, |
| 6302 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 6303 | .block_erasers = |
| 6304 | { |
| 6305 | { |
| 6306 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6307 | .block_erase = erase_block_82802ab, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 6308 | }, |
| 6309 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 6310 | .unlock = unlock_28f004s5, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 6311 | .write = write_82802ab, |
| 6312 | .read = read_memmapped, |
| 6313 | }, |
| 6314 | |
| 6315 | { |
| 6316 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6317 | .name = "28F004B5/BE/BV/BX-B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6318 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 6319 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6320 | .model_id = INTEL_28F004B, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 6321 | .total_size = 512, |
| 6322 | .page_size = 128 * 1024, /* maximal block size */ |
| 6323 | .tested = TEST_UNTESTED, |
| 6324 | .probe = probe_82802ab, |
| 6325 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 6326 | .block_erasers = |
| 6327 | { |
| 6328 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6329 | .eraseblocks = { |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 6330 | {16 * 1024, 1}, |
| 6331 | {8 * 1024, 2}, |
| 6332 | {96 * 1024, 1}, |
| 6333 | {128 * 1024, 3}, |
| 6334 | }, |
| 6335 | .block_erase = erase_block_82802ab, |
| 6336 | }, |
| 6337 | }, |
| 6338 | .write = write_82802ab, |
| 6339 | .read = read_memmapped, |
| 6340 | }, |
| 6341 | |
| 6342 | { |
| 6343 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6344 | .name = "28F004B5/BE/BV/BX-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6345 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 6346 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6347 | .model_id = INTEL_28F004T, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 6348 | .total_size = 512, |
| 6349 | .page_size = 128 * 1024, /* maximal block size */ |
| 6350 | .tested = TEST_UNTESTED, |
| 6351 | .probe = probe_82802ab, |
| 6352 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 6353 | .block_erasers = |
| 6354 | { |
| 6355 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6356 | .eraseblocks = { |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 6357 | {128 * 1024, 3}, |
| 6358 | {96 * 1024, 1}, |
| 6359 | {8 * 1024, 2}, |
| 6360 | {16 * 1024, 1}, |
| 6361 | }, |
| 6362 | .block_erase = erase_block_82802ab, |
| 6363 | }, |
| 6364 | }, |
| 6365 | .write = write_82802ab, |
| 6366 | .read = read_memmapped, |
| 6367 | }, |
| 6368 | |
| 6369 | { |
| 6370 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6371 | .name = "28F400BV/BX/CE/CV-B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6372 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 6373 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6374 | .model_id = INTEL_28F400B, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 6375 | .total_size = 512, |
| 6376 | .page_size = 128 * 1024, /* maximal block size */ |
| 6377 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 6378 | .tested = TEST_UNTESTED, |
| 6379 | .probe = probe_82802ab, |
| 6380 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 6381 | .block_erasers = |
| 6382 | { |
| 6383 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6384 | .eraseblocks = { |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 6385 | {16 * 1024, 1}, |
| 6386 | {8 * 1024, 2}, |
| 6387 | {96 * 1024, 1}, |
| 6388 | {128 * 1024, 3}, |
| 6389 | }, |
| 6390 | .block_erase = erase_block_82802ab, |
| 6391 | }, |
| 6392 | }, |
| 6393 | .write = write_82802ab, |
| 6394 | .read = read_memmapped, |
| 6395 | }, |
| 6396 | |
| 6397 | { |
| 6398 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6399 | .name = "28F400BV/BX/CE/CV-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6400 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 6401 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6402 | .model_id = INTEL_28F400T, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 6403 | .total_size = 512, |
| 6404 | .page_size = 128 * 1024, /* maximal block size */ |
| 6405 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 6406 | .tested = TEST_UNTESTED, |
| 6407 | .probe = probe_82802ab, |
| 6408 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 6409 | .block_erasers = |
| 6410 | { |
| 6411 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6412 | .eraseblocks = { |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 6413 | {128 * 1024, 3}, |
| 6414 | {96 * 1024, 1}, |
| 6415 | {8 * 1024, 2}, |
| 6416 | {16 * 1024, 1}, |
| 6417 | }, |
| 6418 | .block_erase = erase_block_82802ab, |
| 6419 | }, |
| 6420 | }, |
| 6421 | .write = write_82802ab, |
| 6422 | .read = read_memmapped, |
| 6423 | }, |
| 6424 | |
| 6425 | { |
| 6426 | .vendor = "Intel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6427 | .name = "82802AB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6428 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6429 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6430 | .model_id = INTEL_82802AB, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6431 | .total_size = 512, |
| 6432 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 6433 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 6434 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6435 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6436 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6437 | .block_erasers = |
| 6438 | { |
| 6439 | { |
| 6440 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6441 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6442 | }, |
| 6443 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 6444 | .unlock = unlock_regspace2_uniform_64k, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6445 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6446 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6447 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6448 | }, |
| 6449 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6450 | { |
| 6451 | .vendor = "Intel", |
| 6452 | .name = "82802AC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6453 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6454 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 6455 | .model_id = INTEL_82802AC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6456 | .total_size = 1024, |
| 6457 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 6458 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6459 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6460 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6461 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6462 | .block_erasers = |
| 6463 | { |
| 6464 | { |
| 6465 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 6466 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6467 | }, |
| 6468 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 6469 | .unlock = unlock_regspace2_uniform_64k, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6470 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6471 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6472 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6473 | }, |
| 6474 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6475 | { |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 6476 | .vendor = "ISSI", |
| 6477 | .name = "IS29GL064B", |
| 6478 | .bustype = BUS_PARALLEL, |
| 6479 | .manufacture_id = ISSI_ID, |
| 6480 | .model_id = ISSI_PMC_IS29GL064B, |
| 6481 | .total_size = 8192, |
| 6482 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 6483 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 6484 | .tested = TEST_UNTESTED, |
| 6485 | .probe = probe_jedec_29gl, |
| 6486 | .probe_timing = TIMING_ZERO, |
| 6487 | .block_erasers = |
| 6488 | { |
| 6489 | { |
| 6490 | .eraseblocks = { |
| 6491 | {8 * 1024, 8}, |
| 6492 | {64 * 1024, 127}, |
| 6493 | }, |
| 6494 | .block_erase = erase_sector_jedec, |
| 6495 | }, { |
| 6496 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6497 | .block_erase = erase_chip_block_jedec, |
| 6498 | }, |
| 6499 | }, |
| 6500 | .write = write_jedec_1, |
| 6501 | .read = read_memmapped, |
| 6502 | .voltage = {2700, 3600}, |
| 6503 | }, |
| 6504 | |
| 6505 | { |
| 6506 | .vendor = "ISSI", |
| 6507 | .name = "IS29GL064T", |
| 6508 | .bustype = BUS_PARALLEL, |
| 6509 | .manufacture_id = ISSI_ID, |
| 6510 | .model_id = ISSI_PMC_IS29GL064T, |
| 6511 | .total_size = 8192, |
| 6512 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 6513 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 6514 | .tested = TEST_UNTESTED, |
| 6515 | .probe = probe_jedec_29gl, |
| 6516 | .probe_timing = TIMING_ZERO, |
| 6517 | .block_erasers = |
| 6518 | { |
| 6519 | { |
| 6520 | .eraseblocks = { |
| 6521 | {64 * 1024, 127}, |
| 6522 | {8 * 1024, 8}, |
| 6523 | }, |
| 6524 | .block_erase = erase_sector_jedec, |
| 6525 | }, { |
| 6526 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6527 | .block_erase = erase_chip_block_jedec, |
| 6528 | }, |
| 6529 | }, |
| 6530 | .write = write_jedec_1, |
| 6531 | .read = read_memmapped, |
| 6532 | .voltage = {2700, 3600}, |
| 6533 | }, |
| 6534 | |
| 6535 | { |
| 6536 | .vendor = "ISSI", |
| 6537 | .name = "IS29GL064H/L", |
| 6538 | .bustype = BUS_PARALLEL, |
| 6539 | .manufacture_id = ISSI_ID, |
| 6540 | .model_id = ISSI_PMC_IS29GL064HL, |
| 6541 | .total_size = 8192, |
| 6542 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 6543 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 6544 | .tested = TEST_UNTESTED, |
| 6545 | .probe = probe_jedec_29gl, |
| 6546 | .probe_timing = TIMING_ZERO, |
| 6547 | .block_erasers = |
| 6548 | { |
| 6549 | { |
| 6550 | .eraseblocks = { {64 * 1024, 128} }, |
| 6551 | .block_erase = erase_sector_jedec, |
| 6552 | }, { |
| 6553 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6554 | .block_erase = erase_chip_block_jedec, |
| 6555 | }, |
| 6556 | }, |
| 6557 | .write = write_jedec_1, |
| 6558 | .read = read_memmapped, |
| 6559 | .voltage = {2700, 3600}, |
| 6560 | }, |
| 6561 | |
| 6562 | { |
| 6563 | .vendor = "ISSI", |
| 6564 | .name = "IS29GL128H/L", |
| 6565 | .bustype = BUS_PARALLEL, |
| 6566 | .manufacture_id = ISSI_ID, |
| 6567 | .model_id = ISSI_PMC_IS29GL128HL, |
| 6568 | .total_size = 16384, |
| 6569 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 6570 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 6571 | .tested = TEST_UNTESTED, |
| 6572 | .probe = probe_jedec_29gl, |
| 6573 | .probe_timing = TIMING_ZERO, |
| 6574 | .block_erasers = |
| 6575 | { |
| 6576 | { |
| 6577 | .eraseblocks = { {128 * 1024, 128} }, |
| 6578 | .block_erase = erase_sector_jedec, |
| 6579 | }, { |
| 6580 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6581 | .block_erase = erase_chip_block_jedec, |
| 6582 | }, |
| 6583 | }, |
| 6584 | .write = write_jedec_1, |
| 6585 | .read = read_memmapped, |
| 6586 | .voltage = {2700, 3600}, |
| 6587 | }, |
| 6588 | |
| 6589 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6590 | .vendor = "Macronix", |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 6591 | .name = "MX23L1654", |
| 6592 | .bustype = BUS_SPI, |
| 6593 | .manufacture_id = MACRONIX_ID, |
| 6594 | .model_id = MACRONIX_MX23L1654, |
| 6595 | .total_size = 2048, |
| 6596 | .page_size = 256, |
| 6597 | .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA}, |
| 6598 | .probe = probe_spi_rdid, |
| 6599 | .probe_timing = TIMING_ZERO, |
| 6600 | .write = NULL, /* MX23L1654 is a mask ROM, so it is read-only */ |
| 6601 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 6602 | .voltage = {3000, 3600}, |
| 6603 | }, |
| 6604 | |
| 6605 | { |
| 6606 | .vendor = "Macronix", |
Michael Coppola | 4e7f36e | 2014-05-03 23:01:18 +0000 | [diff] [blame] | 6607 | .name = "MX23L3254", |
| 6608 | .bustype = BUS_SPI, |
| 6609 | .manufacture_id = MACRONIX_ID, |
| 6610 | .model_id = MACRONIX_MX23L3254, |
| 6611 | .total_size = 4096, |
| 6612 | .page_size = 256, |
Stefan Tauner | 6455dff | 2014-05-26 00:36:24 +0000 | [diff] [blame] | 6613 | .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA}, |
Michael Coppola | 4e7f36e | 2014-05-03 23:01:18 +0000 | [diff] [blame] | 6614 | .probe = probe_spi_rdid, |
| 6615 | .probe_timing = TIMING_ZERO, |
| 6616 | .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */ |
| 6617 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 6618 | .voltage = {3000, 3600}, |
| 6619 | }, |
| 6620 | |
| 6621 | { |
| 6622 | .vendor = "Macronix", |
Michael Coppola | 583ea32 | 2014-08-20 18:56:35 +0000 | [diff] [blame] | 6623 | .name = "MX23L6454", |
| 6624 | .bustype = BUS_SPI, |
| 6625 | .manufacture_id = MACRONIX_ID, |
| 6626 | .model_id = MACRONIX_MX23L6454, |
| 6627 | .total_size = 8192, |
| 6628 | .page_size = 256, |
| 6629 | .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA}, |
| 6630 | .probe = probe_spi_rdid, |
| 6631 | .probe_timing = TIMING_ZERO, |
| 6632 | .write = NULL, /* MX23L6454 is a mask ROM, so it is read-only */ |
| 6633 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 6634 | .voltage = {3000, 3600}, |
| 6635 | }, |
| 6636 | |
| 6637 | { |
| 6638 | .vendor = "Macronix", |
| 6639 | .name = "MX23L12854", |
| 6640 | .bustype = BUS_SPI, |
| 6641 | .manufacture_id = MACRONIX_ID, |
| 6642 | .model_id = MACRONIX_MX23L12854, |
| 6643 | .total_size = 16384, |
| 6644 | .page_size = 256, |
| 6645 | .tested = {.probe = NT, .read = NT, .erase = NA, .write = NA}, |
| 6646 | .probe = probe_spi_rdid, |
| 6647 | .probe_timing = TIMING_ZERO, |
| 6648 | .write = NULL, /* MX23L12854 is a mask ROM, so it is read-only */ |
| 6649 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 6650 | .voltage = {3000, 3600}, |
| 6651 | }, |
| 6652 | |
| 6653 | { |
| 6654 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6655 | .name = "MX25L512(E)/MX25V512(C)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6656 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6657 | .manufacture_id = MACRONIX_ID, |
| 6658 | .model_id = MACRONIX_MX25L512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6659 | .total_size = 64, |
| 6660 | .page_size = 256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6661 | /* MX25L512E supports SFDP */ |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 6662 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 6663 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6664 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6665 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 6666 | .block_erasers = |
| 6667 | { |
| 6668 | { |
| 6669 | .eraseblocks = { {4 * 1024, 16} }, |
| 6670 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6671 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 6672 | .eraseblocks = { {64 * 1024, 1} }, |
| 6673 | .block_erase = spi_block_erase_52, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6674 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 6675 | .eraseblocks = { {64 * 1024, 1} }, |
| 6676 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6677 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 6678 | .eraseblocks = { {64 * 1024, 1} }, |
| 6679 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6680 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 6681 | .eraseblocks = { {64 * 1024, 1} }, |
| 6682 | .block_erase = spi_block_erase_c7, |
| 6683 | }, |
| 6684 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6685 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6686 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6687 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6688 | .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */ |
| 6689 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6690 | }, |
| 6691 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6692 | { |
| 6693 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6694 | .name = "MX25L1005(C)/MX25L1006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6695 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6696 | .manufacture_id = MACRONIX_ID, |
| 6697 | .model_id = MACRONIX_MX25L1005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6698 | .total_size = 128, |
| 6699 | .page_size = 256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6700 | /* MX25L1006E supports SFDP */ |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 6701 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 6702 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6703 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6704 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 6705 | .block_erasers = |
| 6706 | { |
| 6707 | { |
| 6708 | .eraseblocks = { {4 * 1024, 32} }, |
| 6709 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6710 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 6711 | .eraseblocks = { {64 * 1024, 2} }, |
| 6712 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6713 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 6714 | .eraseblocks = { {128 * 1024, 1} }, |
| 6715 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6716 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 6717 | .eraseblocks = { {128 * 1024, 1} }, |
| 6718 | .block_erase = spi_block_erase_c7, |
| 6719 | }, |
| 6720 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6721 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6722 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6723 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6724 | .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L1006E supports dual I/O */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6725 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6726 | }, |
| 6727 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6728 | { |
| 6729 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6730 | .name = "MX25L2005(C)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6731 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6732 | .manufacture_id = MACRONIX_ID, |
| 6733 | .model_id = MACRONIX_MX25L2005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6734 | .total_size = 256, |
| 6735 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 6736 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 6737 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6738 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6739 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6740 | .block_erasers = |
| 6741 | { |
| 6742 | { |
| 6743 | .eraseblocks = { {4 * 1024, 64} }, |
| 6744 | .block_erase = spi_block_erase_20, |
| 6745 | }, { |
| 6746 | .eraseblocks = { {64 * 1024, 4} }, |
| 6747 | .block_erase = spi_block_erase_52, |
| 6748 | }, { |
| 6749 | .eraseblocks = { {64 * 1024, 4} }, |
| 6750 | .block_erase = spi_block_erase_d8, |
| 6751 | }, { |
| 6752 | .eraseblocks = { {256 * 1024, 1} }, |
| 6753 | .block_erase = spi_block_erase_60, |
| 6754 | }, { |
| 6755 | .eraseblocks = { {256 * 1024, 1} }, |
| 6756 | .block_erase = spi_block_erase_c7, |
| 6757 | }, |
| 6758 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6759 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6760 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6761 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6762 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6763 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6764 | }, |
| 6765 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6766 | { |
| 6767 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6768 | .name = "MX25L4005(A/C)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6769 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6770 | .manufacture_id = MACRONIX_ID, |
| 6771 | .model_id = MACRONIX_MX25L4005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6772 | .total_size = 512, |
| 6773 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 6774 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 6775 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6776 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6777 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6778 | .block_erasers = |
| 6779 | { |
| 6780 | { |
| 6781 | .eraseblocks = { {4 * 1024, 128} }, |
| 6782 | .block_erase = spi_block_erase_20, |
| 6783 | }, { |
| 6784 | .eraseblocks = { {64 * 1024, 8} }, |
| 6785 | .block_erase = spi_block_erase_52, |
| 6786 | }, { |
| 6787 | .eraseblocks = { {64 * 1024, 8} }, |
| 6788 | .block_erase = spi_block_erase_d8, |
| 6789 | }, { |
| 6790 | .eraseblocks = { {512 * 1024, 1} }, |
| 6791 | .block_erase = spi_block_erase_60, |
| 6792 | }, { |
| 6793 | .eraseblocks = { {512 * 1024, 1} }, |
| 6794 | .block_erase = spi_block_erase_c7, |
| 6795 | }, |
| 6796 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6797 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6798 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6799 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6800 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6801 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6802 | }, |
| 6803 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6804 | { |
| 6805 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6806 | .name = "MX25L8005/MX25V8005", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6807 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6808 | .manufacture_id = MACRONIX_ID, |
| 6809 | .model_id = MACRONIX_MX25L8005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6810 | .total_size = 1024, |
| 6811 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 6812 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 6813 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6814 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6815 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6816 | .block_erasers = |
| 6817 | { |
| 6818 | { |
| 6819 | .eraseblocks = { {4 * 1024, 256} }, |
| 6820 | .block_erase = spi_block_erase_20, |
| 6821 | }, { |
| 6822 | .eraseblocks = { {64 * 1024, 16} }, |
| 6823 | .block_erase = spi_block_erase_52, |
| 6824 | }, { |
| 6825 | .eraseblocks = { {64 * 1024, 16} }, |
| 6826 | .block_erase = spi_block_erase_d8, |
| 6827 | }, { |
| 6828 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6829 | .block_erase = spi_block_erase_60, |
| 6830 | }, { |
| 6831 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6832 | .block_erase = spi_block_erase_c7, |
| 6833 | }, |
| 6834 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6835 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6836 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6837 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6838 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 6839 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6840 | }, |
| 6841 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6842 | { |
| 6843 | .vendor = "Macronix", |
| 6844 | .name = "MX25L1605", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6845 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6846 | .manufacture_id = MACRONIX_ID, |
| 6847 | .model_id = MACRONIX_MX25L1605, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6848 | .total_size = 2048, |
| 6849 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 6850 | .feature_bits = FEATURE_WRSR_WREN, |
Sven Schnelle | 4bd8a40 | 2011-03-07 10:59:06 +0000 | [diff] [blame] | 6851 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6852 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6853 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6854 | .block_erasers = |
| 6855 | { |
| 6856 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6857 | .eraseblocks = { {64 * 1024, 32} }, |
| 6858 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6859 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6860 | .eraseblocks = { {64 * 1024, 32} }, |
| 6861 | .block_erase = spi_block_erase_d8, |
| 6862 | }, { |
| 6863 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6864 | .block_erase = spi_block_erase_60, |
| 6865 | }, { |
| 6866 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6867 | .block_erase = spi_block_erase_c7, |
| 6868 | }, |
| 6869 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6870 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6871 | .unlock = spi_disable_blockprotect, |
| 6872 | .write = spi_chip_write_256, |
| 6873 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 6874 | .voltage = {2700, 3600}, |
| 6875 | }, |
| 6876 | |
| 6877 | { |
| 6878 | .vendor = "Macronix", |
| 6879 | .name = "MX25L1605A/MX25L1606E", |
| 6880 | .bustype = BUS_SPI, |
| 6881 | .manufacture_id = MACRONIX_ID, |
| 6882 | .model_id = MACRONIX_MX25L1605, |
| 6883 | .total_size = 2048, |
| 6884 | .page_size = 256, |
| 6885 | /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E only) */ |
| 6886 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6887 | .tested = TEST_OK_PREW, |
| 6888 | .probe = probe_spi_rdid, |
| 6889 | .probe_timing = TIMING_ZERO, |
| 6890 | .block_erasers = |
| 6891 | { |
| 6892 | { |
| 6893 | .eraseblocks = { {4 * 1024, 512} }, |
| 6894 | .block_erase = spi_block_erase_20, |
| 6895 | }, { |
| 6896 | .eraseblocks = { {64 * 1024, 32} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6897 | .block_erase = spi_block_erase_52, |
| 6898 | }, { |
| 6899 | .eraseblocks = { {64 * 1024, 32} }, |
| 6900 | .block_erase = spi_block_erase_d8, |
| 6901 | }, { |
| 6902 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6903 | .block_erase = spi_block_erase_60, |
| 6904 | }, { |
| 6905 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6906 | .block_erase = spi_block_erase_c7, |
| 6907 | }, |
| 6908 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6909 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6910 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6911 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6912 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 6913 | .voltage = {2700, 3600}, |
| 6914 | }, |
| 6915 | |
| 6916 | { |
| 6917 | .vendor = "Macronix", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 6918 | .name = "MX25L1605D/MX25L1608D/MX25L1673E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6919 | .bustype = BUS_SPI, |
| 6920 | .manufacture_id = MACRONIX_ID, |
| 6921 | .model_id = MACRONIX_MX25L1605, |
| 6922 | .total_size = 2048, |
| 6923 | .page_size = 256, |
| 6924 | .feature_bits = FEATURE_WRSR_WREN, |
| 6925 | .tested = TEST_OK_PREW, |
| 6926 | .probe = probe_spi_rdid, |
| 6927 | .probe_timing = TIMING_ZERO, |
| 6928 | .block_erasers = |
| 6929 | { |
| 6930 | { |
| 6931 | .eraseblocks = { {4 * 1024, 512} }, |
| 6932 | .block_erase = spi_block_erase_20, |
| 6933 | }, { |
| 6934 | .eraseblocks = { {64 * 1024, 32} }, |
| 6935 | .block_erase = spi_block_erase_d8, |
| 6936 | }, { |
| 6937 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6938 | .block_erase = spi_block_erase_60, |
| 6939 | }, { |
| 6940 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6941 | .block_erase = spi_block_erase_c7, |
| 6942 | }, |
| 6943 | }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 6944 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continuously Program (CP) mode */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6945 | .unlock = spi_disable_blockprotect, |
| 6946 | .write = spi_chip_write_256, |
| 6947 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6948 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6949 | }, |
| 6950 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6951 | { |
| 6952 | .vendor = "Macronix", |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 6953 | .name = "MX25L1635D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6954 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6955 | .manufacture_id = MACRONIX_ID, |
| 6956 | .model_id = MACRONIX_MX25L1635D, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 6957 | .total_size = 2048, |
| 6958 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6959 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 6960 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 6961 | .tested = TEST_UNTESTED, |
| 6962 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6963 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6964 | .block_erasers = |
| 6965 | { |
| 6966 | { |
| 6967 | .eraseblocks = { {4 * 1024, 512} }, |
| 6968 | .block_erase = spi_block_erase_20, |
| 6969 | }, { |
| 6970 | .eraseblocks = { {64 * 1024, 32} }, |
| 6971 | .block_erase = spi_block_erase_d8, |
| 6972 | }, { |
| 6973 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6974 | .block_erase = spi_block_erase_60, |
| 6975 | }, { |
| 6976 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6977 | .block_erase = spi_block_erase_c7, |
| 6978 | } |
| 6979 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6980 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6981 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6982 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6983 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6984 | .voltage = {2700, 3600}, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 6985 | }, |
Stephan Guilloux | fd31550 | 2009-04-20 22:54:13 +0000 | [diff] [blame] | 6986 | |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 6987 | { |
| 6988 | .vendor = "Macronix", |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 6989 | .name = "MX25L1635E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6990 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6991 | .manufacture_id = MACRONIX_ID, |
| 6992 | .model_id = MACRONIX_MX25L1635E, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 6993 | .total_size = 2048, |
| 6994 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6995 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 6996 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 6997 | .tested = TEST_UNTESTED, |
| 6998 | .probe = probe_spi_rdid, |
| 6999 | .probe_timing = TIMING_ZERO, |
| 7000 | .block_erasers = |
| 7001 | { |
| 7002 | { |
| 7003 | .eraseblocks = { {4 * 1024, 512} }, |
| 7004 | .block_erase = spi_block_erase_20, |
| 7005 | }, { |
| 7006 | .eraseblocks = { {64 * 1024, 32} }, |
| 7007 | .block_erase = spi_block_erase_d8, |
| 7008 | }, { |
| 7009 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7010 | .block_erase = spi_block_erase_60, |
| 7011 | }, { |
| 7012 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7013 | .block_erase = spi_block_erase_c7, |
| 7014 | } |
| 7015 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7016 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 7017 | .unlock = spi_disable_blockprotect, |
| 7018 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7019 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 7020 | .voltage = {2700, 3600}, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 7021 | }, |
| 7022 | |
| 7023 | { |
| 7024 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7025 | .name = "MX25L3205(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7026 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7027 | .manufacture_id = MACRONIX_ID, |
| 7028 | .model_id = MACRONIX_MX25L3205, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7029 | .total_size = 4096, |
| 7030 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 7031 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 7032 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7033 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7034 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 7035 | .block_erasers = |
| 7036 | { |
| 7037 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7038 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 7039 | .block_erase = spi_block_erase_20, |
| 7040 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7041 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 7042 | .block_erase = spi_block_erase_d8, |
| 7043 | }, { |
| 7044 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7045 | .block_erase = spi_block_erase_60, |
| 7046 | }, { |
| 7047 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7048 | .block_erase = spi_block_erase_c7, |
| 7049 | }, |
| 7050 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7051 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7052 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7053 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7054 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7055 | .voltage = {2700, 3600}, |
| 7056 | }, |
| 7057 | |
| 7058 | { |
| 7059 | .vendor = "Macronix", |
| 7060 | .name = "MX25L3205D/MX25L3208D", |
| 7061 | .bustype = BUS_SPI, |
| 7062 | .manufacture_id = MACRONIX_ID, |
| 7063 | .model_id = MACRONIX_MX25L3205, |
| 7064 | .total_size = 4096, |
| 7065 | .page_size = 256, |
| 7066 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 7067 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7068 | .tested = TEST_OK_PREW, |
| 7069 | .probe = probe_spi_rdid, |
| 7070 | .probe_timing = TIMING_ZERO, |
| 7071 | .block_erasers = |
| 7072 | { |
| 7073 | { |
| 7074 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7075 | .block_erase = spi_block_erase_20, |
| 7076 | }, { |
| 7077 | .eraseblocks = { {64 * 1024, 64} }, |
| 7078 | .block_erase = spi_block_erase_d8, |
| 7079 | }, { |
| 7080 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7081 | .block_erase = spi_block_erase_60, |
| 7082 | }, { |
| 7083 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7084 | .block_erase = spi_block_erase_c7, |
| 7085 | }, |
| 7086 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7087 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: CP mode */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7088 | .unlock = spi_disable_blockprotect, |
| 7089 | .write = spi_chip_write_256, |
| 7090 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
| 7091 | .voltage = {2700, 3600}, |
| 7092 | }, |
| 7093 | |
| 7094 | { |
| 7095 | .vendor = "Macronix", |
| 7096 | .name = "MX25L3206E", |
| 7097 | .bustype = BUS_SPI, |
| 7098 | .manufacture_id = MACRONIX_ID, |
| 7099 | .model_id = MACRONIX_MX25L3205, |
| 7100 | .total_size = 4096, |
| 7101 | .page_size = 256, |
| 7102 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 7103 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7104 | .tested = TEST_OK_PREW, |
| 7105 | .probe = probe_spi_rdid, |
| 7106 | .probe_timing = TIMING_ZERO, |
| 7107 | .block_erasers = |
| 7108 | { |
| 7109 | { |
| 7110 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7111 | .block_erase = spi_block_erase_20, |
| 7112 | }, { |
| 7113 | .eraseblocks = { {64 * 1024, 64} }, |
| 7114 | .block_erase = spi_block_erase_d8, |
| 7115 | }, { |
| 7116 | .eraseblocks = { {64 * 1024, 64} }, |
| 7117 | .block_erase = spi_block_erase_52, |
| 7118 | }, { |
| 7119 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7120 | .block_erase = spi_block_erase_60, |
| 7121 | }, { |
| 7122 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7123 | .block_erase = spi_block_erase_c7, |
| 7124 | }, |
| 7125 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7126 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7127 | .unlock = spi_disable_blockprotect, |
| 7128 | .write = spi_chip_write_256, |
| 7129 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7130 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7131 | }, |
| 7132 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7133 | { |
| 7134 | .vendor = "Macronix", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7135 | .name = "MX25L3273E", |
| 7136 | .bustype = BUS_SPI, |
| 7137 | .manufacture_id = MACRONIX_ID, |
| 7138 | .model_id = MACRONIX_MX25L3205, |
| 7139 | .total_size = 4096, |
| 7140 | .page_size = 256, |
| 7141 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 7142 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7143 | .tested = TEST_UNTESTED, |
| 7144 | .probe = probe_spi_rdid, |
| 7145 | .probe_timing = TIMING_ZERO, |
| 7146 | .block_erasers = |
| 7147 | { |
| 7148 | { |
| 7149 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7150 | .block_erase = spi_block_erase_20, |
| 7151 | }, { |
| 7152 | .eraseblocks = { {32 * 1024, 128} }, |
| 7153 | .block_erase = spi_block_erase_52, |
| 7154 | }, { |
| 7155 | .eraseblocks = { {64 * 1024, 64} }, |
| 7156 | .block_erase = spi_block_erase_d8, |
| 7157 | }, { |
| 7158 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7159 | .block_erase = spi_block_erase_60, |
| 7160 | }, { |
| 7161 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7162 | .block_erase = spi_block_erase_c7, |
| 7163 | }, |
| 7164 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7165 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7166 | .unlock = spi_disable_blockprotect, |
| 7167 | .write = spi_chip_write_256, |
| 7168 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
| 7169 | .voltage = {2700, 3600}, |
| 7170 | }, |
| 7171 | |
| 7172 | { |
| 7173 | .vendor = "Macronix", |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 7174 | .name = "MX25L3235D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7175 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7176 | .manufacture_id = MACRONIX_ID, |
| 7177 | .model_id = MACRONIX_MX25L3235D, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 7178 | .total_size = 4096, |
| 7179 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7180 | /* OTP: 256B total; enter 0xB1, exit 0xC1 */ |
| 7181 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 7182 | .tested = TEST_UNTESTED, |
| 7183 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7184 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7185 | .block_erasers = |
| 7186 | { |
| 7187 | { |
| 7188 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7189 | .block_erase = spi_block_erase_20, |
| 7190 | }, { |
| 7191 | .eraseblocks = { {64 * 1024, 64} }, |
| 7192 | .block_erase = spi_block_erase_d8, |
| 7193 | }, { |
| 7194 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7195 | .block_erase = spi_block_erase_60, |
| 7196 | }, { |
| 7197 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7198 | .block_erase = spi_block_erase_c7, |
| 7199 | } |
| 7200 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7201 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7202 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7203 | .write = spi_chip_write_256, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 7204 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7205 | .voltage = {2700, 3600}, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 7206 | }, |
| 7207 | |
| 7208 | { |
| 7209 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7210 | .name = "MX25L6405(D)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7211 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7212 | .manufacture_id = MACRONIX_ID, |
| 7213 | .model_id = MACRONIX_MX25L6405, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7214 | .total_size = 8192, |
| 7215 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7216 | /* MX25L6405D has 64B of OTP; enter 0xB1, exit 0xC1 */ |
| 7217 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 7218 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7219 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7220 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7221 | .block_erasers = |
| 7222 | { |
| 7223 | { |
| 7224 | .eraseblocks = { {64 * 1024, 128} }, |
| 7225 | .block_erase = spi_block_erase_20, |
| 7226 | }, { |
| 7227 | .eraseblocks = { {64 * 1024, 128} }, |
| 7228 | .block_erase = spi_block_erase_d8, |
| 7229 | }, { |
| 7230 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7231 | .block_erase = spi_block_erase_60, |
| 7232 | }, { |
| 7233 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7234 | .block_erase = spi_block_erase_c7, |
| 7235 | } |
| 7236 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7237 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 has different meanings */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7238 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7239 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7240 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7241 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7242 | }, |
| 7243 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7244 | { |
| 7245 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7246 | .name = "MX25L6406E/MX25L6436E", |
| 7247 | .bustype = BUS_SPI, |
| 7248 | .manufacture_id = MACRONIX_ID, |
| 7249 | .model_id = MACRONIX_MX25L6405, |
| 7250 | .total_size = 8192, |
| 7251 | .page_size = 256, |
| 7252 | /* OTP: 06E 64B/36E 512B total; enter 0xB1, exit 0xC1 */ |
| 7253 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7254 | .tested = TEST_OK_PREW, |
| 7255 | .probe = probe_spi_rdid, |
| 7256 | .probe_timing = TIMING_ZERO, |
| 7257 | .block_erasers = |
| 7258 | { |
| 7259 | { |
| 7260 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7261 | .block_erase = spi_block_erase_20, |
| 7262 | }, { |
| 7263 | .eraseblocks = { {64 * 1024, 128} }, |
| 7264 | .block_erase = spi_block_erase_d8, |
| 7265 | }, { |
| 7266 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7267 | .block_erase = spi_block_erase_60, |
| 7268 | }, { |
| 7269 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7270 | .block_erase = spi_block_erase_c7, |
| 7271 | } |
| 7272 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7273 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 for 36E is quad enable */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7274 | .unlock = spi_disable_blockprotect, |
| 7275 | .write = spi_chip_write_256, |
| 7276 | .read = spi_chip_read, |
| 7277 | .voltage = {2700, 3600}, |
| 7278 | }, |
| 7279 | |
| 7280 | { |
| 7281 | .vendor = "Macronix", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7282 | .name = "MX25L6445E/MX25L6473E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7283 | .bustype = BUS_SPI, |
| 7284 | .manufacture_id = MACRONIX_ID, |
| 7285 | .model_id = MACRONIX_MX25L6405, |
| 7286 | .total_size = 8192, |
| 7287 | .page_size = 256, |
| 7288 | /* supports SFDP */ |
| 7289 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 7290 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7291 | .tested = TEST_OK_PREW, |
| 7292 | .probe = probe_spi_rdid, |
| 7293 | .probe_timing = TIMING_ZERO, |
| 7294 | .block_erasers = |
| 7295 | { |
| 7296 | { |
| 7297 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7298 | .block_erase = spi_block_erase_20, |
| 7299 | }, { |
| 7300 | .eraseblocks = { {32 * 1024, 256} }, |
| 7301 | .block_erase = spi_block_erase_52, |
| 7302 | }, { |
| 7303 | .eraseblocks = { {64 * 1024, 128} }, |
| 7304 | .block_erase = spi_block_erase_d8, |
| 7305 | }, { |
| 7306 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7307 | .block_erase = spi_block_erase_60, |
| 7308 | }, { |
| 7309 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7310 | .block_erase = spi_block_erase_c7, |
| 7311 | } |
| 7312 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7313 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7314 | .unlock = spi_disable_blockprotect, |
| 7315 | .write = spi_chip_write_256, |
| 7316 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7317 | .voltage = {2700, 3600}, |
| 7318 | }, |
| 7319 | |
| 7320 | { |
| 7321 | .vendor = "Macronix", |
| 7322 | .name = "MX25L12805(D)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7323 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7324 | .manufacture_id = MACRONIX_ID, |
| 7325 | .model_id = MACRONIX_MX25L12805, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 7326 | .total_size = 16384, |
| 7327 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7328 | /* MX25L12805D has 64B of OTP; enter 0xB1, exit 0xC1 */ |
| 7329 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 7330 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 7331 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 7332 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7333 | .block_erasers = |
| 7334 | { |
| 7335 | { |
| 7336 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7337 | .block_erase = spi_block_erase_20, |
| 7338 | }, { |
| 7339 | .eraseblocks = { {64 * 1024, 256} }, |
| 7340 | .block_erase = spi_block_erase_d8, |
| 7341 | }, { |
| 7342 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7343 | .block_erase = spi_block_erase_60, |
| 7344 | }, { |
| 7345 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7346 | .block_erase = spi_block_erase_c7, |
| 7347 | } |
| 7348 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7349 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 7350 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 7351 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 7352 | .read = spi_chip_read, /* MX25L12805D: Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7353 | .voltage = {2700, 3600}, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 7354 | }, |
| 7355 | |
| 7356 | { |
| 7357 | .vendor = "Macronix", |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 7358 | .name = "MX25U1635E", |
| 7359 | .bustype = BUS_SPI, |
| 7360 | .manufacture_id = MACRONIX_ID, |
| 7361 | .model_id = MACRONIX_MX25U1635E, |
| 7362 | .total_size = 2048, |
| 7363 | .page_size = 256, |
| 7364 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 7365 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 7366 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 7367 | .tested = TEST_UNTESTED, |
| 7368 | .probe = probe_spi_rdid, |
| 7369 | .probe_timing = TIMING_ZERO, |
| 7370 | .block_erasers = |
| 7371 | { |
| 7372 | { |
| 7373 | .eraseblocks = { {4 * 1024, 512} }, |
| 7374 | .block_erase = spi_block_erase_20, |
| 7375 | }, { |
| 7376 | .eraseblocks = { {32 * 1024, 64} }, |
| 7377 | .block_erase = spi_block_erase_52, |
| 7378 | }, { |
| 7379 | .eraseblocks = { {64 * 1024, 32} }, |
| 7380 | .block_erase = spi_block_erase_d8, |
| 7381 | }, { |
| 7382 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7383 | .block_erase = spi_block_erase_60, |
| 7384 | }, { |
| 7385 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7386 | .block_erase = spi_block_erase_c7, |
| 7387 | } |
| 7388 | }, |
| 7389 | /* TODO: security register */ |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7390 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 7391 | .unlock = spi_disable_blockprotect, |
| 7392 | .write = spi_chip_write_256, |
| 7393 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7394 | .voltage = {1650, 2000}, |
| 7395 | }, |
| 7396 | |
| 7397 | { |
| 7398 | .vendor = "Macronix", |
| 7399 | .name = "MX25U3235E/F", |
| 7400 | .bustype = BUS_SPI, |
| 7401 | .manufacture_id = MACRONIX_ID, |
| 7402 | .model_id = MACRONIX_MX25U3235E, |
| 7403 | .total_size = 4096, |
| 7404 | .page_size = 256, |
| 7405 | /* F model supports SFDP */ |
| 7406 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 7407 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 7408 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 7409 | .tested = TEST_OK_PREW, |
| 7410 | .probe = probe_spi_rdid, |
| 7411 | .probe_timing = TIMING_ZERO, |
| 7412 | .block_erasers = |
| 7413 | { |
| 7414 | { |
| 7415 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7416 | .block_erase = spi_block_erase_20, |
| 7417 | }, { |
| 7418 | .eraseblocks = { {32 * 1024, 128} }, |
| 7419 | .block_erase = spi_block_erase_52, |
| 7420 | }, { |
| 7421 | .eraseblocks = { {64 * 1024, 64} }, |
| 7422 | .block_erase = spi_block_erase_d8, |
| 7423 | }, { |
| 7424 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7425 | .block_erase = spi_block_erase_60, |
| 7426 | }, { |
| 7427 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7428 | .block_erase = spi_block_erase_c7, |
| 7429 | } |
| 7430 | }, |
| 7431 | /* TODO: security register */ |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7432 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 7433 | .unlock = spi_disable_blockprotect, |
| 7434 | .write = spi_chip_write_256, |
| 7435 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7436 | .voltage = {1650, 2000}, |
| 7437 | }, |
| 7438 | |
| 7439 | { |
| 7440 | .vendor = "Macronix", |
| 7441 | .name = "MX25U6435E/F", |
| 7442 | .bustype = BUS_SPI, |
| 7443 | .manufacture_id = MACRONIX_ID, |
| 7444 | .model_id = MACRONIX_MX25U6435E, |
| 7445 | .total_size = 8192, |
| 7446 | .page_size = 256, |
| 7447 | /* F model supports SFDP */ |
| 7448 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 7449 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 7450 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 7451 | .tested = TEST_UNTESTED, |
| 7452 | .probe = probe_spi_rdid, |
| 7453 | .probe_timing = TIMING_ZERO, |
| 7454 | .block_erasers = |
| 7455 | { |
| 7456 | { |
| 7457 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7458 | .block_erase = spi_block_erase_20, |
| 7459 | }, { |
| 7460 | .eraseblocks = { {32 * 1024, 256} }, |
| 7461 | .block_erase = spi_block_erase_52, |
| 7462 | }, { |
| 7463 | .eraseblocks = { {64 * 1024, 128} }, |
| 7464 | .block_erase = spi_block_erase_d8, |
| 7465 | }, { |
| 7466 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7467 | .block_erase = spi_block_erase_60, |
| 7468 | }, { |
| 7469 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7470 | .block_erase = spi_block_erase_c7, |
| 7471 | } |
| 7472 | }, |
| 7473 | /* TODO: security register */ |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7474 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 7475 | .unlock = spi_disable_blockprotect, |
| 7476 | .write = spi_chip_write_256, |
| 7477 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7478 | .voltage = {1650, 2000}, |
| 7479 | }, |
| 7480 | |
| 7481 | { |
| 7482 | .vendor = "Macronix", |
Martin Roth | 440057a | 2014-07-13 00:05:07 +0000 | [diff] [blame] | 7483 | .name = "MX25U12835F", |
| 7484 | .bustype = BUS_SPI, |
| 7485 | .manufacture_id = MACRONIX_ID, |
| 7486 | .model_id = MACRONIX_MX25U12835E, |
| 7487 | .total_size = 16384, |
| 7488 | .page_size = 256, |
| 7489 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 7490 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 7491 | .tested = TEST_UNTESTED, |
| 7492 | .probe = probe_spi_rdid, |
| 7493 | .probe_timing = TIMING_ZERO, |
| 7494 | .block_erasers = |
| 7495 | { |
| 7496 | { |
| 7497 | .eraseblocks = { {4 * 1024, 4096} }, |
| 7498 | .block_erase = spi_block_erase_20, |
| 7499 | }, { |
| 7500 | .eraseblocks = { {32 * 1024, 512} }, |
| 7501 | .block_erase = spi_block_erase_52, |
| 7502 | }, { |
| 7503 | .eraseblocks = { {64 * 1024, 256} }, |
| 7504 | .block_erase = spi_block_erase_d8, |
| 7505 | }, { |
| 7506 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7507 | .block_erase = spi_block_erase_60, |
| 7508 | }, { |
| 7509 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7510 | .block_erase = spi_block_erase_c7, |
| 7511 | } |
| 7512 | }, |
| 7513 | /* TODO: security register */ |
| 7514 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
| 7515 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 7516 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 7517 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7518 | .voltage = {1650, 2000}, |
| 7519 | }, |
| 7520 | |
| 7521 | { |
Stefan Tauner | a4617f7 | 2015-01-10 15:59:54 +0000 | [diff] [blame] | 7522 | .vendor = "Macronix", |
Stefan Tauner | 40bc96f | 2015-01-10 09:33:14 +0000 | [diff] [blame] | 7523 | .name = "MX25L6495F", |
| 7524 | .bustype = BUS_SPI, |
| 7525 | .manufacture_id = MACRONIX_ID, |
| 7526 | .model_id = MACRONIX_MX25L6495F, |
| 7527 | .total_size = 8192, |
| 7528 | .page_size = 256, |
| 7529 | /* OTP: 1024B total; enter 0xB1, exit 0xC1 */ |
| 7530 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7531 | .tested = TEST_OK_PREW, |
| 7532 | .probe = probe_spi_rdid, |
| 7533 | .probe_timing = TIMING_ZERO, |
| 7534 | .block_erasers = |
| 7535 | { |
| 7536 | { |
| 7537 | .eraseblocks = { {4 * 1024, 2048} }, |
| 7538 | .block_erase = spi_block_erase_20, |
| 7539 | }, { |
| 7540 | .eraseblocks = { {64 * 1024, 128} }, |
| 7541 | .block_erase = spi_block_erase_d8, |
| 7542 | }, { |
| 7543 | .eraseblocks = { {32 * 1024, 256} }, |
| 7544 | .block_erase = spi_block_erase_52, |
| 7545 | }, { |
| 7546 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7547 | .block_erase = spi_block_erase_60, |
| 7548 | }, { |
| 7549 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7550 | .block_erase = spi_block_erase_c7, |
| 7551 | } |
| 7552 | }, |
| 7553 | .unlock = spi_disable_blockprotect, |
| 7554 | .write = spi_chip_write_256, |
| 7555 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7556 | .voltage = {2700, 3600}, |
| 7557 | }, |
| 7558 | |
| 7559 | { |
Martin Roth | 440057a | 2014-07-13 00:05:07 +0000 | [diff] [blame] | 7560 | .vendor = "Macronix", |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 7561 | .name = "MX29F001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7562 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7563 | .manufacture_id = MACRONIX_ID, |
| 7564 | .model_id = MACRONIX_MX29F001B, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 7565 | .total_size = 128, |
| 7566 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7567 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7568 | .tested = TEST_UNTESTED, |
| 7569 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 7570 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7571 | .block_erasers = |
| 7572 | { |
| 7573 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 7574 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7575 | {8 * 1024, 1}, |
| 7576 | {4 * 1024, 2}, |
| 7577 | {8 * 1024, 2}, |
| 7578 | {32 * 1024, 1}, |
| 7579 | {64 * 1024, 1}, |
| 7580 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7581 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7582 | }, { |
| 7583 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7584 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7585 | } |
| 7586 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 7587 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 7588 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7589 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 7590 | }, |
| 7591 | |
| 7592 | { |
| 7593 | .vendor = "Macronix", |
| 7594 | .name = "MX29F001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7595 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7596 | .manufacture_id = MACRONIX_ID, |
| 7597 | .model_id = MACRONIX_MX29F001T, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 7598 | .total_size = 128, |
| 7599 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7600 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stefan Tauner | 74c6ec6 | 2011-05-18 01:31:46 +0000 | [diff] [blame] | 7601 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7602 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 7603 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7604 | .block_erasers = |
| 7605 | { |
| 7606 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 7607 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7608 | {64 * 1024, 1}, |
| 7609 | {32 * 1024, 1}, |
| 7610 | {8 * 1024, 2}, |
| 7611 | {4 * 1024, 2}, |
| 7612 | {8 * 1024, 1}, |
| 7613 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7614 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7615 | }, { |
| 7616 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7617 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7618 | } |
| 7619 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 7620 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 7621 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7622 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 7623 | }, |
| 7624 | |
| 7625 | { |
| 7626 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 7627 | .name = "MX29F002(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7628 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7629 | .manufacture_id = MACRONIX_ID, |
| 7630 | .model_id = MACRONIX_MX29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7631 | .total_size = 256, |
| 7632 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7633 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7634 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7635 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 7636 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 7637 | .block_erasers = |
| 7638 | { |
| 7639 | { |
| 7640 | .eraseblocks = { |
| 7641 | {16 * 1024, 1}, |
| 7642 | {8 * 1024, 2}, |
| 7643 | {32 * 1024, 1}, |
| 7644 | {64 * 1024, 3}, |
| 7645 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7646 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 7647 | }, { |
| 7648 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7649 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 7650 | }, |
| 7651 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 7652 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7653 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7654 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7655 | }, |
| 7656 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7657 | { |
| 7658 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 7659 | .name = "MX29F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7660 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7661 | .manufacture_id = MACRONIX_ID, |
| 7662 | .model_id = MACRONIX_MX29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7663 | .total_size = 256, |
| 7664 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7665 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 7666 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7667 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 7668 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 7669 | .block_erasers = |
| 7670 | { |
| 7671 | { |
| 7672 | .eraseblocks = { |
| 7673 | {64 * 1024, 3}, |
| 7674 | {32 * 1024, 1}, |
| 7675 | {8 * 1024, 2}, |
| 7676 | {16 * 1024, 1}, |
| 7677 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7678 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 7679 | }, { |
| 7680 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7681 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 7682 | }, |
| 7683 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 7684 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 7685 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 7686 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 7687 | }, |
| 7688 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7689 | { |
| 7690 | .vendor = "Macronix", |
Daniele Forsi | 6a18a93 | 2014-07-13 14:53:45 +0000 | [diff] [blame] | 7691 | .name = "MX29F022(N)B", |
| 7692 | .bustype = BUS_PARALLEL, |
| 7693 | .manufacture_id = MACRONIX_ID, |
| 7694 | .model_id = MACRONIX_MX29F022B, |
| 7695 | .total_size = 256, |
| 7696 | .page_size = 0, /* unused */ |
| 7697 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7698 | .tested = TEST_UNTESTED, |
| 7699 | .probe = probe_jedec, |
| 7700 | .probe_timing = TIMING_ZERO, |
| 7701 | .block_erasers = |
| 7702 | { |
| 7703 | { |
| 7704 | .eraseblocks = { |
| 7705 | {16 * 1024, 1}, |
| 7706 | {8 * 1024, 2}, |
| 7707 | {32 * 1024, 1}, |
| 7708 | {64 * 1024, 3}, |
| 7709 | }, |
| 7710 | .block_erase = erase_sector_jedec, |
| 7711 | }, { |
| 7712 | .eraseblocks = { {256 * 1024, 1} }, |
| 7713 | .block_erase = erase_chip_block_jedec, |
| 7714 | } |
| 7715 | }, |
| 7716 | .write = write_jedec_1, |
| 7717 | .read = read_memmapped, |
| 7718 | .voltage = {4500, 5500}, |
| 7719 | }, |
| 7720 | |
| 7721 | { |
| 7722 | .vendor = "Macronix", |
| 7723 | .name = "MX29F022(N)T", |
| 7724 | .bustype = BUS_PARALLEL, |
| 7725 | .manufacture_id = MACRONIX_ID, |
| 7726 | .model_id = MACRONIX_MX29F022T, |
| 7727 | .total_size = 256, |
| 7728 | .page_size = 0, /* unused */ |
| 7729 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7730 | .tested = TEST_OK_PREW, |
| 7731 | .probe = probe_jedec, |
| 7732 | .probe_timing = TIMING_ZERO, |
| 7733 | .block_erasers = |
| 7734 | { |
| 7735 | { |
| 7736 | .eraseblocks = { |
| 7737 | {64 * 1024, 3}, |
| 7738 | {32 * 1024, 1}, |
| 7739 | {8 * 1024, 2}, |
| 7740 | {16 * 1024, 1}, |
| 7741 | }, |
| 7742 | .block_erase = erase_sector_jedec, |
| 7743 | }, { |
| 7744 | .eraseblocks = { {256 * 1024, 1} }, |
| 7745 | .block_erase = erase_chip_block_jedec, |
| 7746 | } |
| 7747 | }, |
| 7748 | .write = write_jedec_1, |
| 7749 | .read = read_memmapped, |
| 7750 | .voltage = {4500, 5500}, |
| 7751 | }, |
| 7752 | |
| 7753 | { |
| 7754 | .vendor = "Macronix", |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 7755 | .name = "MX29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7756 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 7757 | .manufacture_id = MACRONIX_ID, |
| 7758 | .model_id = MACRONIX_MX29F040, |
| 7759 | .total_size = 512, |
| 7760 | .page_size = 64 * 1024, |
| 7761 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7762 | .tested = TEST_UNTESTED, |
| 7763 | .probe = probe_jedec, |
| 7764 | .probe_timing = TIMING_ZERO, |
| 7765 | .block_erasers = |
| 7766 | { |
| 7767 | { |
| 7768 | .eraseblocks = { {64 * 1024, 8} }, |
| 7769 | .block_erase = erase_sector_jedec, |
| 7770 | }, { |
| 7771 | .eraseblocks = { {512 * 1024, 1} }, |
| 7772 | .block_erase = erase_chip_block_jedec, |
| 7773 | }, |
| 7774 | }, |
| 7775 | .write = write_jedec_1, |
| 7776 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 7777 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 7778 | }, |
| 7779 | |
| 7780 | { |
| 7781 | .vendor = "Macronix", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 7782 | .name = "MX29GL320EB", |
| 7783 | .bustype = BUS_PARALLEL, |
| 7784 | .manufacture_id = MACRONIX_ID, |
| 7785 | .model_id = MACRONIX_MX29GL320EB, |
| 7786 | .total_size = 4096, |
| 7787 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7788 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7789 | .tested = TEST_UNTESTED, |
| 7790 | .probe = probe_jedec_29gl, |
| 7791 | .probe_timing = TIMING_ZERO, |
| 7792 | .block_erasers = |
| 7793 | { |
| 7794 | { |
| 7795 | .eraseblocks = { |
| 7796 | {8 * 1024, 8}, |
| 7797 | {64 * 1024, 63}, |
| 7798 | }, |
| 7799 | .block_erase = erase_sector_jedec, |
| 7800 | }, { |
| 7801 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7802 | .block_erase = erase_chip_block_jedec, |
| 7803 | }, |
| 7804 | }, |
| 7805 | .write = write_jedec_1, |
| 7806 | .read = read_memmapped, |
| 7807 | .voltage = {2700, 3600}, |
| 7808 | }, |
| 7809 | |
| 7810 | { |
| 7811 | .vendor = "Macronix", |
| 7812 | .name = "MX29GL320ET", |
| 7813 | .bustype = BUS_PARALLEL, |
| 7814 | .manufacture_id = MACRONIX_ID, |
| 7815 | .model_id = MACRONIX_MX29GL320ET, |
| 7816 | .total_size = 4096, |
| 7817 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7818 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7819 | .tested = TEST_UNTESTED, |
| 7820 | .probe = probe_jedec_29gl, |
| 7821 | .probe_timing = TIMING_ZERO, |
| 7822 | .block_erasers = |
| 7823 | { |
| 7824 | { |
| 7825 | .eraseblocks = { |
| 7826 | {64 * 1024, 63}, |
| 7827 | {8 * 1024, 8}, |
| 7828 | }, |
| 7829 | .block_erase = erase_sector_jedec, |
| 7830 | }, { |
| 7831 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7832 | .block_erase = erase_chip_block_jedec, |
| 7833 | }, |
| 7834 | }, |
| 7835 | .write = write_jedec_1, |
| 7836 | .read = read_memmapped, |
| 7837 | .voltage = {2700, 3600}, |
| 7838 | }, |
| 7839 | |
| 7840 | { |
| 7841 | .vendor = "Macronix", |
| 7842 | .name = "MX29GL320EH/L", |
| 7843 | .bustype = BUS_PARALLEL, |
| 7844 | .manufacture_id = MACRONIX_ID, |
| 7845 | .model_id = MACRONIX_MX29GL320EHL, |
| 7846 | .total_size = 4096, |
| 7847 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7848 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7849 | .tested = TEST_UNTESTED, |
| 7850 | .probe = probe_jedec_29gl, |
| 7851 | .probe_timing = TIMING_ZERO, |
| 7852 | .block_erasers = |
| 7853 | { |
| 7854 | { |
| 7855 | .eraseblocks = { {64 * 1024, 64} }, |
| 7856 | .block_erase = erase_sector_jedec, |
| 7857 | }, { |
| 7858 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7859 | .block_erase = erase_chip_block_jedec, |
| 7860 | }, |
| 7861 | }, |
| 7862 | .write = write_jedec_1, |
| 7863 | .read = read_memmapped, |
| 7864 | .voltage = {2700, 3600}, |
| 7865 | }, |
| 7866 | |
| 7867 | { |
| 7868 | .vendor = "Macronix", |
| 7869 | .name = "MX29GL640EB", |
| 7870 | .bustype = BUS_PARALLEL, |
| 7871 | .manufacture_id = MACRONIX_ID, |
| 7872 | .model_id = MACRONIX_MX29GL640EB, |
| 7873 | .total_size = 8192, |
| 7874 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7875 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7876 | .tested = TEST_UNTESTED, |
| 7877 | .probe = probe_jedec_29gl, |
| 7878 | .probe_timing = TIMING_ZERO, |
| 7879 | .block_erasers = |
| 7880 | { |
| 7881 | { |
| 7882 | .eraseblocks = { |
| 7883 | {8 * 1024, 8}, |
| 7884 | {64 * 1024, 127}, |
| 7885 | }, |
| 7886 | .block_erase = erase_sector_jedec, |
| 7887 | }, { |
| 7888 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7889 | .block_erase = erase_chip_block_jedec, |
| 7890 | }, |
| 7891 | }, |
| 7892 | .write = write_jedec_1, |
| 7893 | .read = read_memmapped, |
| 7894 | .voltage = {2700, 3600}, |
| 7895 | }, |
| 7896 | |
| 7897 | { |
| 7898 | .vendor = "Macronix", |
| 7899 | .name = "MX29GL640ET", |
| 7900 | .bustype = BUS_PARALLEL, |
| 7901 | .manufacture_id = MACRONIX_ID, |
| 7902 | .model_id = MACRONIX_MX29GL640ET, |
| 7903 | .total_size = 8192, |
| 7904 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7905 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7906 | .tested = TEST_UNTESTED, |
| 7907 | .probe = probe_jedec_29gl, |
| 7908 | .probe_timing = TIMING_ZERO, |
| 7909 | .block_erasers = |
| 7910 | { |
| 7911 | { |
| 7912 | .eraseblocks = { |
| 7913 | {64 * 1024, 127}, |
| 7914 | {8 * 1024, 8}, |
| 7915 | }, |
| 7916 | .block_erase = erase_sector_jedec, |
| 7917 | }, { |
| 7918 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7919 | .block_erase = erase_chip_block_jedec, |
| 7920 | }, |
| 7921 | }, |
| 7922 | .write = write_jedec_1, |
| 7923 | .read = read_memmapped, |
| 7924 | .voltage = {2700, 3600}, |
| 7925 | }, |
| 7926 | |
| 7927 | { |
| 7928 | .vendor = "Macronix", |
| 7929 | .name = "MX29GL640EH/L", |
| 7930 | .bustype = BUS_PARALLEL, |
| 7931 | .manufacture_id = MACRONIX_ID, |
| 7932 | .model_id = MACRONIX_MX29GL640EHL, |
| 7933 | .total_size = 8192, |
| 7934 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7935 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7936 | .tested = TEST_UNTESTED, |
| 7937 | .probe = probe_jedec_29gl, |
| 7938 | .probe_timing = TIMING_ZERO, |
| 7939 | .block_erasers = |
| 7940 | { |
| 7941 | { |
| 7942 | .eraseblocks = { {64 * 1024, 128} }, |
| 7943 | .block_erase = erase_sector_jedec, |
| 7944 | }, { |
| 7945 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7946 | .block_erase = erase_chip_block_jedec, |
| 7947 | }, |
| 7948 | }, |
| 7949 | .write = write_jedec_1, |
| 7950 | .read = read_memmapped, |
| 7951 | .voltage = {2700, 3600}, |
| 7952 | }, |
| 7953 | |
| 7954 | { |
| 7955 | .vendor = "Macronix", |
| 7956 | .name = "MX29GL128F", |
| 7957 | .bustype = BUS_PARALLEL, |
| 7958 | .manufacture_id = MACRONIX_ID, |
| 7959 | .model_id = MACRONIX_MX29GL128F, |
| 7960 | .total_size = 16384, |
| 7961 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 7962 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7963 | .tested = TEST_UNTESTED, |
| 7964 | .probe = probe_jedec_29gl, |
| 7965 | .probe_timing = TIMING_ZERO, |
| 7966 | .block_erasers = |
| 7967 | { |
| 7968 | { |
| 7969 | .eraseblocks = { {128 * 1024, 128} }, |
| 7970 | .block_erase = erase_sector_jedec, |
| 7971 | }, { |
| 7972 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7973 | .block_erase = erase_chip_block_jedec, |
| 7974 | }, |
| 7975 | }, |
| 7976 | .write = write_jedec_1, |
| 7977 | .read = read_memmapped, |
| 7978 | .voltage = {2700, 3600}, |
| 7979 | }, |
| 7980 | |
| 7981 | { |
| 7982 | .vendor = "Macronix", |
Carl-Daniel Hailfinger | 350a0c3 | 2009-07-24 13:59:27 +0000 | [diff] [blame] | 7983 | .name = "MX29LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 7984 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 7985 | .manufacture_id = MACRONIX_ID, |
| 7986 | .model_id = MACRONIX_MX29LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 7987 | .total_size = 512, |
| 7988 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7989 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 7990 | .tested = TEST_UNTESTED, |
| 7991 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 7992 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7993 | .block_erasers = |
| 7994 | { |
| 7995 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 7996 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 7997 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 7998 | }, { |
| 7999 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8000 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 8001 | }, |
| 8002 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 8003 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 8004 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8005 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 7de8639 | 2008-12-10 10:32:05 +0000 | [diff] [blame] | 8006 | }, |
| 8007 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8008 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8009 | .vendor = "Micron/Numonyx/ST", |
| 8010 | .name = "M25P05-A", |
| 8011 | .bustype = BUS_SPI, |
| 8012 | .manufacture_id = ST_ID, |
| 8013 | .model_id = ST_M25P05A, |
| 8014 | .total_size = 64, |
| 8015 | .page_size = 256, |
| 8016 | .feature_bits = FEATURE_WRSR_WREN, |
| 8017 | .tested = TEST_OK_PREW, |
| 8018 | .probe = probe_spi_rdid, |
| 8019 | .probe_timing = TIMING_ZERO, |
| 8020 | .block_erasers = |
| 8021 | { |
| 8022 | { |
| 8023 | .eraseblocks = { {32 * 1024, 2} }, |
| 8024 | .block_erase = spi_block_erase_d8, |
| 8025 | }, { |
| 8026 | .eraseblocks = { {64 * 1024, 1} }, |
| 8027 | .block_erase = spi_block_erase_c7, |
| 8028 | } |
| 8029 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8030 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8031 | .unlock = spi_disable_blockprotect, |
| 8032 | .write = spi_chip_write_256, |
| 8033 | .read = spi_chip_read, |
| 8034 | .voltage = {2700, 3600}, |
| 8035 | }, |
| 8036 | |
| 8037 | /* The ST M25P05 is a bit of a problem. It has the same ID as the |
| 8038 | * ST M25P05-A in RES mode, but supports only 128 byte writes instead |
| 8039 | * of 256 byte writes. We rely heavily on the fact that probe_spi_res1 |
| 8040 | * only is successful if RDID does not work. |
| 8041 | */ |
| 8042 | { |
| 8043 | .vendor = "Micron/Numonyx/ST", |
| 8044 | .name = "M25P05", |
| 8045 | .bustype = BUS_SPI, |
| 8046 | .manufacture_id = 0, /* Not used. */ |
| 8047 | .model_id = ST_M25P05_RES, |
| 8048 | .total_size = 64, |
| 8049 | .page_size = 256, |
| 8050 | .feature_bits = FEATURE_WRSR_WREN, |
| 8051 | .tested = TEST_UNTESTED, |
| 8052 | .probe = probe_spi_res1, |
| 8053 | .probe_timing = TIMING_ZERO, |
| 8054 | .block_erasers = |
| 8055 | { |
| 8056 | { |
| 8057 | .eraseblocks = { {32 * 1024, 2} }, |
| 8058 | .block_erase = spi_block_erase_d8, |
| 8059 | }, { |
| 8060 | .eraseblocks = { {64 * 1024, 1} }, |
| 8061 | .block_erase = spi_block_erase_c7, |
| 8062 | } |
| 8063 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8064 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8065 | .unlock = spi_disable_blockprotect, |
| 8066 | .write = spi_chip_write_1, /* 128 */ |
| 8067 | .read = spi_chip_read, |
| 8068 | .voltage = {2700, 3600}, |
| 8069 | }, |
| 8070 | |
| 8071 | { |
| 8072 | .vendor = "Micron/Numonyx/ST", |
| 8073 | .name = "M25P10-A", |
| 8074 | .bustype = BUS_SPI, |
| 8075 | .manufacture_id = ST_ID, |
| 8076 | .model_id = ST_M25P10A, |
| 8077 | .total_size = 128, |
| 8078 | .page_size = 256, |
| 8079 | .feature_bits = FEATURE_WRSR_WREN, |
| 8080 | .tested = TEST_OK_PRE, |
| 8081 | .probe = probe_spi_rdid, |
| 8082 | .probe_timing = TIMING_ZERO, |
| 8083 | .block_erasers = |
| 8084 | { |
| 8085 | { |
| 8086 | .eraseblocks = { {32 * 1024, 4} }, |
| 8087 | .block_erase = spi_block_erase_d8, |
| 8088 | }, { |
| 8089 | .eraseblocks = { {128 * 1024, 1} }, |
| 8090 | .block_erase = spi_block_erase_c7, |
| 8091 | } |
| 8092 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8093 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8094 | .unlock = spi_disable_blockprotect, |
| 8095 | .write = spi_chip_write_256, |
| 8096 | .read = spi_chip_read, |
| 8097 | .voltage = {2700, 3600}, |
| 8098 | }, |
| 8099 | |
| 8100 | /* The ST M25P10 has the same problem as the M25P05. */ |
| 8101 | { |
| 8102 | .vendor = "Micron/Numonyx/ST", |
| 8103 | .name = "M25P10", |
| 8104 | .bustype = BUS_SPI, |
| 8105 | .manufacture_id = 0, /* Not used. */ |
| 8106 | .model_id = ST_M25P10_RES, |
| 8107 | .total_size = 128, |
| 8108 | .page_size = 256, |
| 8109 | .feature_bits = FEATURE_WRSR_WREN, |
| 8110 | .tested = TEST_UNTESTED, |
| 8111 | .probe = probe_spi_res1, |
| 8112 | .probe_timing = TIMING_ZERO, |
| 8113 | .block_erasers = |
| 8114 | { |
| 8115 | { |
| 8116 | .eraseblocks = { {32 * 1024, 4} }, |
| 8117 | .block_erase = spi_block_erase_d8, |
| 8118 | }, { |
| 8119 | .eraseblocks = { {128 * 1024, 1} }, |
| 8120 | .block_erase = spi_block_erase_c7, |
| 8121 | } |
| 8122 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8123 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8124 | .unlock = spi_disable_blockprotect, |
| 8125 | .write = spi_chip_write_1, /* 128 */ |
| 8126 | .read = spi_chip_read, |
| 8127 | .voltage = {2700, 3600}, |
| 8128 | }, |
| 8129 | |
| 8130 | { |
| 8131 | .vendor = "Micron/Numonyx/ST", /* Numonyx */ |
| 8132 | .name = "M25P20", |
| 8133 | .bustype = BUS_SPI, |
| 8134 | .manufacture_id = ST_ID, |
| 8135 | .model_id = ST_M25P20, |
| 8136 | .total_size = 256, |
| 8137 | .page_size = 256, |
| 8138 | .feature_bits = FEATURE_WRSR_WREN, |
| 8139 | .tested = TEST_UNTESTED, |
| 8140 | .probe = probe_spi_rdid, |
| 8141 | .probe_timing = TIMING_ZERO, |
| 8142 | .block_erasers = |
| 8143 | { |
| 8144 | { |
| 8145 | .eraseblocks = { {64 * 1024, 4} }, |
| 8146 | .block_erase = spi_block_erase_d8, |
| 8147 | }, { |
| 8148 | .eraseblocks = { {256 * 1024, 1} }, |
| 8149 | .block_erase = spi_block_erase_c7, |
| 8150 | } |
| 8151 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8152 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8153 | .unlock = spi_disable_blockprotect, |
| 8154 | .write = spi_chip_write_256, |
| 8155 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8156 | .voltage = {2700, 3600}, |
| 8157 | }, |
| 8158 | |
| 8159 | { |
| 8160 | .vendor = "Micron/Numonyx/ST", |
| 8161 | .name = "M25P20-old", |
| 8162 | .bustype = BUS_SPI, |
| 8163 | .manufacture_id = 0, /* Not used. */ |
| 8164 | .model_id = ST_M25P20_RES, |
| 8165 | .total_size = 256, |
| 8166 | .page_size = 256, |
| 8167 | .feature_bits = FEATURE_WRSR_WREN, |
| 8168 | .tested = TEST_OK_PREW, |
| 8169 | .probe = probe_spi_res1, |
| 8170 | .probe_timing = TIMING_ZERO, |
| 8171 | .block_erasers = |
| 8172 | { |
| 8173 | { |
| 8174 | .eraseblocks = { {64 * 1024, 4} }, |
| 8175 | .block_erase = spi_block_erase_d8, |
| 8176 | }, { |
| 8177 | .eraseblocks = { {256 * 1024, 1} }, |
| 8178 | .block_erase = spi_block_erase_c7, |
| 8179 | } |
| 8180 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8181 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8182 | .unlock = spi_disable_blockprotect, |
| 8183 | .write = spi_chip_write_256, |
| 8184 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8185 | .voltage = {2700, 3600}, |
| 8186 | }, |
| 8187 | |
| 8188 | { |
| 8189 | .vendor = "Micron/Numonyx/ST", /* Numonyx */ |
| 8190 | .name = "M25P40", |
| 8191 | .bustype = BUS_SPI, |
| 8192 | .manufacture_id = ST_ID, |
| 8193 | .model_id = ST_M25P40, |
| 8194 | .total_size = 512, |
| 8195 | .page_size = 256, |
| 8196 | .feature_bits = FEATURE_WRSR_WREN, |
| 8197 | .tested = TEST_OK_PREW, |
| 8198 | .probe = probe_spi_rdid, |
| 8199 | .probe_timing = TIMING_ZERO, |
| 8200 | .block_erasers = |
| 8201 | { |
| 8202 | { |
| 8203 | .eraseblocks = { {64 * 1024, 8} }, |
| 8204 | .block_erase = spi_block_erase_d8, |
| 8205 | }, { |
| 8206 | .eraseblocks = { {512 * 1024, 1} }, |
| 8207 | .block_erase = spi_block_erase_c7, |
| 8208 | } |
| 8209 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8210 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8211 | .unlock = spi_disable_blockprotect, |
| 8212 | .write = spi_chip_write_256, |
| 8213 | .read = spi_chip_read, |
| 8214 | .voltage = {2700, 3600}, |
| 8215 | }, |
| 8216 | |
| 8217 | { |
| 8218 | .vendor = "Micron/Numonyx/ST", |
| 8219 | .name = "M25P40-old", |
| 8220 | .bustype = BUS_SPI, |
| 8221 | .manufacture_id = 0, /* Not used. */ |
| 8222 | .model_id = ST_M25P40_RES, |
| 8223 | .total_size = 512, |
| 8224 | .page_size = 256, |
| 8225 | .feature_bits = FEATURE_WRSR_WREN, |
| 8226 | .tested = TEST_UNTESTED, |
| 8227 | .probe = probe_spi_res1, |
| 8228 | .probe_timing = TIMING_ZERO, |
| 8229 | .block_erasers = |
| 8230 | { |
| 8231 | { |
| 8232 | .eraseblocks = { {64 * 1024, 8} }, |
| 8233 | .block_erase = spi_block_erase_d8, |
| 8234 | }, { |
| 8235 | .eraseblocks = { {512 * 1024, 1} }, |
| 8236 | .block_erase = spi_block_erase_c7, |
| 8237 | } |
| 8238 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8239 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8240 | .unlock = spi_disable_blockprotect, |
| 8241 | .write = spi_chip_write_256, |
| 8242 | .read = spi_chip_read, |
| 8243 | }, |
| 8244 | |
| 8245 | { |
| 8246 | .vendor = "Micron/Numonyx/ST", |
| 8247 | .name = "M25P80", |
| 8248 | .bustype = BUS_SPI, |
| 8249 | .manufacture_id = ST_ID, |
| 8250 | .model_id = ST_M25P80, |
| 8251 | .total_size = 1024, |
| 8252 | .page_size = 256, |
| 8253 | .feature_bits = FEATURE_WRSR_WREN, |
| 8254 | .tested = TEST_OK_PREW, |
| 8255 | .probe = probe_spi_rdid, |
| 8256 | .probe_timing = TIMING_ZERO, |
| 8257 | .block_erasers = |
| 8258 | { |
| 8259 | { |
| 8260 | .eraseblocks = { {64 * 1024, 16} }, |
| 8261 | .block_erase = spi_block_erase_d8, |
| 8262 | }, { |
| 8263 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8264 | .block_erase = spi_block_erase_c7, |
| 8265 | } |
| 8266 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8267 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8268 | .unlock = spi_disable_blockprotect, |
| 8269 | .write = spi_chip_write_256, |
| 8270 | .read = spi_chip_read, |
| 8271 | .voltage = {2700, 3600}, |
| 8272 | }, |
| 8273 | |
| 8274 | { |
| 8275 | .vendor = "Micron/Numonyx/ST", |
| 8276 | .name = "M25P16", |
| 8277 | .bustype = BUS_SPI, |
| 8278 | .manufacture_id = ST_ID, |
| 8279 | .model_id = ST_M25P16, |
| 8280 | .total_size = 2048, |
| 8281 | .page_size = 256, |
| 8282 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8283 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8284 | .probe = probe_spi_rdid, |
| 8285 | .probe_timing = TIMING_ZERO, |
| 8286 | .block_erasers = |
| 8287 | { |
| 8288 | { |
| 8289 | .eraseblocks = { {64 * 1024, 32} }, |
| 8290 | .block_erase = spi_block_erase_d8, |
| 8291 | }, { |
| 8292 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8293 | .block_erase = spi_block_erase_c7, |
| 8294 | } |
| 8295 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8296 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8297 | .unlock = spi_disable_blockprotect, |
| 8298 | .write = spi_chip_write_256, |
| 8299 | .read = spi_chip_read, |
| 8300 | .voltage = {2700, 3600}, |
| 8301 | }, |
| 8302 | |
| 8303 | { |
| 8304 | .vendor = "Micron/Numonyx/ST", |
| 8305 | .name = "M25P32", |
| 8306 | .bustype = BUS_SPI, |
| 8307 | .manufacture_id = ST_ID, |
| 8308 | .model_id = ST_M25P32, |
| 8309 | .total_size = 4096, |
| 8310 | .page_size = 256, |
| 8311 | .feature_bits = FEATURE_WRSR_WREN, |
| 8312 | .tested = TEST_OK_PREW, |
| 8313 | .probe = probe_spi_rdid, |
| 8314 | .probe_timing = TIMING_ZERO, |
| 8315 | .block_erasers = |
| 8316 | { |
| 8317 | { |
| 8318 | .eraseblocks = { {64 * 1024, 64} }, |
| 8319 | .block_erase = spi_block_erase_d8, |
| 8320 | }, { |
| 8321 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8322 | .block_erase = spi_block_erase_c7, |
| 8323 | } |
| 8324 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8325 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8326 | .unlock = spi_disable_blockprotect, |
| 8327 | .write = spi_chip_write_256, |
| 8328 | .read = spi_chip_read, |
| 8329 | .voltage = {2700, 3600}, |
| 8330 | }, |
| 8331 | |
| 8332 | { |
| 8333 | .vendor = "Micron/Numonyx/ST", |
| 8334 | .name = "M25P64", |
| 8335 | .bustype = BUS_SPI, |
| 8336 | .manufacture_id = ST_ID, |
| 8337 | .model_id = ST_M25P64, |
| 8338 | .total_size = 8192, |
| 8339 | .page_size = 256, |
| 8340 | .feature_bits = FEATURE_WRSR_WREN, |
| 8341 | .tested = TEST_OK_PREW, |
| 8342 | .probe = probe_spi_rdid, |
| 8343 | .probe_timing = TIMING_ZERO, |
| 8344 | .block_erasers = |
| 8345 | { |
| 8346 | { |
| 8347 | .eraseblocks = { {64 * 1024, 128} }, |
| 8348 | .block_erase = spi_block_erase_d8, |
| 8349 | }, { |
| 8350 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8351 | .block_erase = spi_block_erase_c7, |
| 8352 | } |
| 8353 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8354 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8355 | .unlock = spi_disable_blockprotect, |
| 8356 | .write = spi_chip_write_256, |
| 8357 | .read = spi_chip_read, |
| 8358 | .voltage = {2700, 3600}, |
| 8359 | }, |
| 8360 | |
| 8361 | { |
| 8362 | .vendor = "Micron/Numonyx/ST", |
| 8363 | .name = "M25P128", |
| 8364 | .bustype = BUS_SPI, |
| 8365 | .manufacture_id = ST_ID, |
| 8366 | .model_id = ST_M25P128, |
| 8367 | .total_size = 16384, |
| 8368 | .page_size = 256, |
| 8369 | .feature_bits = FEATURE_WRSR_WREN, |
| 8370 | .tested = TEST_OK_PREW, |
| 8371 | .probe = probe_spi_rdid, |
| 8372 | .probe_timing = TIMING_ZERO, |
| 8373 | .block_erasers = |
| 8374 | { |
| 8375 | { |
| 8376 | .eraseblocks = { {256 * 1024, 64} }, |
| 8377 | .block_erase = spi_block_erase_d8, |
| 8378 | }, { |
| 8379 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 8380 | .block_erase = spi_block_erase_c7, |
| 8381 | } |
| 8382 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8383 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8384 | .unlock = spi_disable_blockprotect, |
| 8385 | .write = spi_chip_write_256, |
| 8386 | .read = spi_chip_read, |
| 8387 | .voltage = {2700, 3600}, |
| 8388 | }, |
| 8389 | |
| 8390 | { |
| 8391 | .vendor = "Micron/Numonyx/ST", |
| 8392 | .name = "M25PE10", |
| 8393 | .bustype = BUS_SPI, |
| 8394 | .manufacture_id = ST_ID, |
| 8395 | .model_id = ST_M25PE10, |
| 8396 | .total_size = 128, |
| 8397 | .page_size = 256, |
| 8398 | .feature_bits = FEATURE_WRSR_WREN, |
| 8399 | .tested = TEST_UNTESTED, |
| 8400 | .probe = probe_spi_rdid, |
| 8401 | .probe_timing = TIMING_ZERO, |
| 8402 | .block_erasers = |
| 8403 | { |
| 8404 | { |
| 8405 | .eraseblocks = { {4 * 1024, 32} }, |
| 8406 | .block_erase = spi_block_erase_20, |
| 8407 | }, { |
| 8408 | .eraseblocks = { {64 * 1024, 2} }, |
| 8409 | .block_erase = spi_block_erase_d8, |
| 8410 | }, { |
| 8411 | .eraseblocks = { {128 * 1024, 1} }, |
| 8412 | .block_erase = spi_block_erase_c7, |
| 8413 | } |
| 8414 | }, |
| 8415 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 8416 | .unlock = spi_disable_blockprotect, |
| 8417 | .write = spi_chip_write_256, |
| 8418 | .read = spi_chip_read, |
| 8419 | .voltage = {2700, 3600}, |
| 8420 | }, |
| 8421 | |
| 8422 | { |
| 8423 | .vendor = "Micron/Numonyx/ST", |
| 8424 | .name = "M25PE20", |
| 8425 | .bustype = BUS_SPI, |
| 8426 | .manufacture_id = ST_ID, |
| 8427 | .model_id = ST_M25PE20, |
| 8428 | .total_size = 256, |
| 8429 | .page_size = 256, |
| 8430 | .feature_bits = FEATURE_WRSR_WREN, |
| 8431 | .tested = TEST_UNTESTED, |
| 8432 | .probe = probe_spi_rdid, |
| 8433 | .probe_timing = TIMING_ZERO, |
| 8434 | .block_erasers = |
| 8435 | { |
| 8436 | { |
| 8437 | .eraseblocks = { {4 * 1024, 64} }, |
| 8438 | .block_erase = spi_block_erase_20, |
| 8439 | }, { |
| 8440 | .eraseblocks = { {64 * 1024, 4} }, |
| 8441 | .block_erase = spi_block_erase_d8, |
| 8442 | }, { |
| 8443 | .eraseblocks = { {256 * 1024, 1} }, |
| 8444 | .block_erase = spi_block_erase_c7, |
| 8445 | } |
| 8446 | }, |
| 8447 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 8448 | .unlock = spi_disable_blockprotect, |
| 8449 | .write = spi_chip_write_256, |
| 8450 | .read = spi_chip_read, |
| 8451 | .voltage = {2700, 3600}, |
| 8452 | }, |
| 8453 | |
| 8454 | { |
| 8455 | .vendor = "Micron/Numonyx/ST", |
| 8456 | .name = "M25PE40", |
| 8457 | .bustype = BUS_SPI, |
| 8458 | .manufacture_id = ST_ID, |
| 8459 | .model_id = ST_M25PE40, |
| 8460 | .total_size = 512, |
| 8461 | .page_size = 256, |
| 8462 | .feature_bits = FEATURE_WRSR_WREN, |
| 8463 | .tested = TEST_UNTESTED, |
| 8464 | .probe = probe_spi_rdid, |
| 8465 | .probe_timing = TIMING_ZERO, |
| 8466 | .block_erasers = |
| 8467 | { |
| 8468 | { |
| 8469 | .eraseblocks = { {4 * 1024, 128} }, |
| 8470 | .block_erase = spi_block_erase_20, |
| 8471 | }, { |
| 8472 | .eraseblocks = { {64 * 1024, 8} }, |
| 8473 | .block_erase = spi_block_erase_d8, |
| 8474 | }, { |
| 8475 | .eraseblocks = { {512 * 1024, 1} }, |
| 8476 | .block_erase = spi_block_erase_c7, |
| 8477 | } |
| 8478 | }, |
| 8479 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 8480 | .unlock = spi_disable_blockprotect, |
| 8481 | .write = spi_chip_write_256, |
| 8482 | .read = spi_chip_read, |
| 8483 | .voltage = {2700, 3600}, |
| 8484 | }, |
| 8485 | |
| 8486 | { |
| 8487 | .vendor = "Micron/Numonyx/ST", |
| 8488 | .name = "M25PE80", |
| 8489 | .bustype = BUS_SPI, |
| 8490 | .manufacture_id = ST_ID, |
| 8491 | .model_id = ST_M25PE80, |
| 8492 | .total_size = 1024, |
| 8493 | .page_size = 256, |
| 8494 | .feature_bits = FEATURE_WRSR_WREN, |
| 8495 | .tested = TEST_OK_PREW, |
| 8496 | .probe = probe_spi_rdid, |
| 8497 | .probe_timing = TIMING_ZERO, |
| 8498 | .block_erasers = |
| 8499 | { |
| 8500 | { |
| 8501 | .eraseblocks = { {4 * 1024, 256} }, |
| 8502 | .block_erase = spi_block_erase_20, |
| 8503 | }, { |
| 8504 | .eraseblocks = { {64 * 1024, 16} }, |
| 8505 | .block_erase = spi_block_erase_d8, |
| 8506 | }, { |
| 8507 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8508 | .block_erase = spi_block_erase_c7, |
| 8509 | } |
| 8510 | }, |
| 8511 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 8512 | .unlock = spi_disable_blockprotect, |
| 8513 | .write = spi_chip_write_256, |
| 8514 | .read = spi_chip_read, |
| 8515 | .voltage = {2700, 3600}, |
| 8516 | }, |
| 8517 | |
| 8518 | { |
| 8519 | .vendor = "Micron/Numonyx/ST", |
| 8520 | .name = "M25PE16", |
| 8521 | .bustype = BUS_SPI, |
| 8522 | .manufacture_id = ST_ID, |
| 8523 | .model_id = ST_M25PE16, |
| 8524 | .total_size = 2048, |
| 8525 | .page_size = 256, |
| 8526 | .feature_bits = FEATURE_WRSR_WREN, |
| 8527 | .tested = TEST_UNTESTED, |
| 8528 | .probe = probe_spi_rdid, |
| 8529 | .probe_timing = TIMING_ZERO, |
| 8530 | .block_erasers = |
| 8531 | { |
| 8532 | { |
| 8533 | .eraseblocks = { {4 * 1024, 512} }, |
| 8534 | .block_erase = spi_block_erase_20, |
| 8535 | }, { |
| 8536 | .eraseblocks = { {64 * 1024, 32} }, |
| 8537 | .block_erase = spi_block_erase_d8, |
| 8538 | }, { |
| 8539 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8540 | .block_erase = spi_block_erase_c7, |
| 8541 | } |
| 8542 | }, |
| 8543 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 8544 | .unlock = spi_disable_blockprotect, |
| 8545 | .write = spi_chip_write_256, |
| 8546 | .read = spi_chip_read, |
| 8547 | .voltage = {2700, 3600}, |
| 8548 | }, |
| 8549 | |
| 8550 | { |
| 8551 | .vendor = "Micron/Numonyx/ST", |
| 8552 | .name = "M25PX80", |
| 8553 | .bustype = BUS_SPI, |
| 8554 | .manufacture_id = ST_ID, |
| 8555 | .model_id = ST_M25PX80, |
| 8556 | .total_size = 1024, |
| 8557 | .page_size = 256, |
| 8558 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 8559 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8560 | .tested = TEST_OK_PREW, |
| 8561 | .probe = probe_spi_rdid, |
| 8562 | .probe_timing = TIMING_ZERO, |
| 8563 | .block_erasers = { |
| 8564 | { |
| 8565 | .eraseblocks = { { 4 * 1024, 256 } }, |
| 8566 | .block_erase = spi_block_erase_20, |
| 8567 | }, { |
| 8568 | .eraseblocks = { {64 * 1024, 16} }, |
| 8569 | .block_erase = spi_block_erase_d8, |
| 8570 | }, { |
| 8571 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8572 | .block_erase = spi_block_erase_c7, |
| 8573 | } |
| 8574 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8575 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8576 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 8577 | .write = spi_chip_write_256, |
| 8578 | .read = spi_chip_read, |
| 8579 | .voltage = {2700, 3600}, |
| 8580 | }, |
| 8581 | |
| 8582 | { |
| 8583 | .vendor = "Micron/Numonyx/ST", |
| 8584 | .name = "M25PX16", |
| 8585 | .bustype = BUS_SPI, |
| 8586 | .manufacture_id = ST_ID, |
| 8587 | .model_id = ST_M25PX16, |
| 8588 | .total_size = 2048, |
| 8589 | .page_size = 256, |
| 8590 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 8591 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8592 | .tested = TEST_OK_PREW, |
| 8593 | .probe = probe_spi_rdid, |
| 8594 | .probe_timing = TIMING_ZERO, |
| 8595 | .block_erasers = |
| 8596 | { |
| 8597 | { |
| 8598 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 8599 | .block_erase = spi_block_erase_20, |
| 8600 | }, { |
| 8601 | .eraseblocks = { {64 * 1024, 32} }, |
| 8602 | .block_erase = spi_block_erase_d8, |
| 8603 | }, { |
| 8604 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8605 | .block_erase = spi_block_erase_c7, |
| 8606 | } |
| 8607 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8608 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8609 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 8610 | .write = spi_chip_write_256, |
| 8611 | .read = spi_chip_read, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8612 | .voltage = {2300, 3600}, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8613 | }, |
| 8614 | |
| 8615 | { |
| 8616 | .vendor = "Micron/Numonyx/ST", |
| 8617 | .name = "M25PX32", |
| 8618 | .bustype = BUS_SPI, |
| 8619 | .manufacture_id = ST_ID, |
| 8620 | .model_id = ST_M25PX32, |
| 8621 | .total_size = 4096, |
| 8622 | .page_size = 256, |
| 8623 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 8624 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8625 | .tested = TEST_OK_PRE, |
| 8626 | .probe = probe_spi_rdid, |
| 8627 | .probe_timing = TIMING_ZERO, |
| 8628 | .block_erasers = |
| 8629 | { |
| 8630 | { |
| 8631 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 8632 | .block_erase = spi_block_erase_20, |
| 8633 | }, { |
| 8634 | .eraseblocks = { {64 * 1024, 64} }, |
| 8635 | .block_erase = spi_block_erase_d8, |
| 8636 | }, { |
| 8637 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8638 | .block_erase = spi_block_erase_c7, |
| 8639 | } |
| 8640 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8641 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8642 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 8643 | .write = spi_chip_write_256, |
| 8644 | .read = spi_chip_read, |
| 8645 | .voltage = {2700, 3600}, |
| 8646 | }, |
| 8647 | |
| 8648 | { |
| 8649 | .vendor = "Micron/Numonyx/ST", |
| 8650 | .name = "M25PX64", |
| 8651 | .bustype = BUS_SPI, |
| 8652 | .manufacture_id = ST_ID, |
| 8653 | .model_id = ST_M25PX64, |
| 8654 | .total_size = 8192, |
| 8655 | .page_size = 256, |
| 8656 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 8657 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8658 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8659 | .probe = probe_spi_rdid, |
| 8660 | .probe_timing = TIMING_ZERO, |
| 8661 | .block_erasers = |
| 8662 | { |
| 8663 | { |
| 8664 | .eraseblocks = { { 4 * 1024, 2048 } }, |
| 8665 | .block_erase = spi_block_erase_20, |
| 8666 | }, { |
| 8667 | .eraseblocks = { {64 * 1024, 128} }, |
| 8668 | .block_erase = spi_block_erase_d8, |
| 8669 | }, { |
| 8670 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8671 | .block_erase = spi_block_erase_c7, |
| 8672 | } |
| 8673 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8674 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8675 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 8676 | .write = spi_chip_write_256, |
| 8677 | .read = spi_chip_read, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8678 | .voltage = {2700, 3600}, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8679 | }, |
| 8680 | |
| 8681 | { |
| 8682 | .vendor = "Micron/Numonyx/ST", |
| 8683 | .name = "M45PE10", |
| 8684 | .bustype = BUS_SPI, |
| 8685 | .manufacture_id = ST_ID, |
| 8686 | .model_id = ST_M45PE10, |
| 8687 | .total_size = 128, |
| 8688 | .page_size = 256, |
| 8689 | .tested = TEST_UNTESTED, |
| 8690 | .probe = probe_spi_rdid, |
| 8691 | .probe_timing = TIMING_ZERO, |
| 8692 | .block_erasers = { |
| 8693 | { |
| 8694 | .eraseblocks = { {256, 512} }, |
| 8695 | .block_erase = spi_block_erase_db, |
| 8696 | }, { |
| 8697 | .eraseblocks = { {64 * 1024, 2} }, |
| 8698 | .block_erase = spi_block_erase_d8, |
| 8699 | } |
| 8700 | }, |
| 8701 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 8702 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 8703 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 8704 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8705 | .voltage = {2700, 3600}, |
| 8706 | }, |
| 8707 | |
| 8708 | { |
| 8709 | .vendor = "Micron/Numonyx/ST", |
| 8710 | .name = "M45PE20", |
| 8711 | .bustype = BUS_SPI, |
| 8712 | .manufacture_id = ST_ID, |
| 8713 | .model_id = ST_M45PE20, |
| 8714 | .total_size = 256, |
| 8715 | .page_size = 256, |
| 8716 | .tested = TEST_UNTESTED, |
| 8717 | .probe = probe_spi_rdid, |
| 8718 | .probe_timing = TIMING_ZERO, |
| 8719 | .block_erasers = { |
| 8720 | { |
| 8721 | .eraseblocks = { {256, 1024} }, |
| 8722 | .block_erase = spi_block_erase_db, |
| 8723 | }, { |
| 8724 | .eraseblocks = { {64 * 1024, 4} }, |
| 8725 | .block_erase = spi_block_erase_d8, |
| 8726 | } |
| 8727 | }, |
| 8728 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 8729 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 8730 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 8731 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8732 | .voltage = {2700, 3600}, |
| 8733 | }, |
| 8734 | |
| 8735 | { |
| 8736 | .vendor = "Micron/Numonyx/ST", |
| 8737 | .name = "M45PE40", |
| 8738 | .bustype = BUS_SPI, |
| 8739 | .manufacture_id = ST_ID, |
| 8740 | .model_id = ST_M45PE40, |
| 8741 | .total_size = 512, |
| 8742 | .page_size = 256, |
| 8743 | .tested = TEST_UNTESTED, |
| 8744 | .probe = probe_spi_rdid, |
| 8745 | .probe_timing = TIMING_ZERO, |
| 8746 | .block_erasers = { |
| 8747 | { |
| 8748 | .eraseblocks = { {256, 2048} }, |
| 8749 | .block_erase = spi_block_erase_db, |
| 8750 | }, { |
| 8751 | .eraseblocks = { {64 * 1024, 8} }, |
| 8752 | .block_erase = spi_block_erase_d8, |
| 8753 | } |
| 8754 | }, |
| 8755 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 8756 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 8757 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 8758 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8759 | .voltage = {2700, 3600}, |
| 8760 | }, |
| 8761 | |
| 8762 | { |
| 8763 | .vendor = "Micron/Numonyx/ST", |
| 8764 | .name = "M45PE80", |
| 8765 | .bustype = BUS_SPI, |
| 8766 | .manufacture_id = ST_ID, |
| 8767 | .model_id = ST_M45PE80, |
| 8768 | .total_size = 1024, |
| 8769 | .page_size = 256, |
| 8770 | .tested = TEST_UNTESTED, |
| 8771 | .probe = probe_spi_rdid, |
| 8772 | .probe_timing = TIMING_ZERO, |
| 8773 | .block_erasers = { |
| 8774 | { |
| 8775 | .eraseblocks = { {256, 4096} }, |
| 8776 | .block_erase = spi_block_erase_db, |
| 8777 | }, { |
| 8778 | .eraseblocks = { {64 * 1024, 16} }, |
| 8779 | .block_erase = spi_block_erase_d8, |
| 8780 | } |
| 8781 | }, |
| 8782 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 8783 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 8784 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 8785 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8786 | .voltage = {2700, 3600}, |
| 8787 | }, |
| 8788 | |
| 8789 | { |
| 8790 | .vendor = "Micron/Numonyx/ST", |
| 8791 | .name = "M45PE16", |
| 8792 | .bustype = BUS_SPI, |
| 8793 | .manufacture_id = ST_ID, |
| 8794 | .model_id = ST_M45PE16, |
| 8795 | .total_size = 2048, |
| 8796 | .page_size = 256, |
| 8797 | .tested = TEST_UNTESTED, |
| 8798 | .probe = probe_spi_rdid, |
| 8799 | .probe_timing = TIMING_ZERO, |
| 8800 | .block_erasers = { |
| 8801 | { |
| 8802 | .eraseblocks = { {256, 8192} }, |
| 8803 | .block_erase = spi_block_erase_db, |
| 8804 | }, { |
| 8805 | .eraseblocks = { {64 * 1024, 32} }, |
| 8806 | .block_erase = spi_block_erase_d8, |
| 8807 | } |
| 8808 | }, |
| 8809 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 8810 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 8811 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 8812 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8813 | .voltage = {2700, 3600}, |
| 8814 | }, |
| 8815 | |
| 8816 | { |
| 8817 | .vendor = "Micron/Numonyx/ST", |
| 8818 | .name = "N25Q016", |
| 8819 | .bustype = BUS_SPI, |
| 8820 | .manufacture_id = ST_ID, |
| 8821 | .model_id = ST_N25Q016__1E, |
| 8822 | .total_size = 2048, |
| 8823 | .page_size = 256, |
| 8824 | /* supports SFDP */ |
| 8825 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 8826 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8827 | .tested = TEST_UNTESTED, |
| 8828 | .probe = probe_spi_rdid, |
| 8829 | .probe_timing = TIMING_ZERO, |
| 8830 | .block_erasers = |
| 8831 | { |
| 8832 | { |
| 8833 | .eraseblocks = { {4 * 1024, 512} }, |
| 8834 | .block_erase = spi_block_erase_20, |
| 8835 | }, { |
| 8836 | .eraseblocks = { {32 * 1024, 64} }, |
| 8837 | .block_erase = spi_block_erase_52, |
| 8838 | }, { |
| 8839 | .eraseblocks = { {64 * 1024, 32} }, |
| 8840 | .block_erase = spi_block_erase_d8, |
| 8841 | }, { |
| 8842 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8843 | .block_erase = spi_block_erase_c7, |
| 8844 | } |
| 8845 | }, |
| 8846 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 8847 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 8848 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 8849 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8850 | .voltage = {1700, 2000}, |
| 8851 | }, |
| 8852 | |
| 8853 | { |
| 8854 | .vendor = "Micron/Numonyx/ST", |
| 8855 | .name = "N25Q032..1E", |
| 8856 | .bustype = BUS_SPI, |
| 8857 | .manufacture_id = ST_ID, |
| 8858 | .model_id = ST_N25Q032__1E, |
| 8859 | .total_size = 4096, |
| 8860 | .page_size = 256, |
| 8861 | /* supports SFDP */ |
| 8862 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 8863 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8864 | .tested = TEST_UNTESTED, |
| 8865 | .probe = probe_spi_rdid, |
| 8866 | .probe_timing = TIMING_ZERO, |
| 8867 | .block_erasers = |
| 8868 | { |
| 8869 | { |
| 8870 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8871 | .block_erase = spi_block_erase_20, |
| 8872 | }, { |
| 8873 | .eraseblocks = { {64 * 1024, 64} }, |
| 8874 | .block_erase = spi_block_erase_d8, |
| 8875 | }, { |
| 8876 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8877 | .block_erase = spi_block_erase_c7, |
| 8878 | } |
| 8879 | }, |
| 8880 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 8881 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 8882 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 8883 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8884 | .voltage = {1700, 2000}, |
| 8885 | }, |
| 8886 | |
| 8887 | { |
| 8888 | .vendor = "Micron/Numonyx/ST", |
| 8889 | .name = "N25Q032..3E", |
| 8890 | .bustype = BUS_SPI, |
| 8891 | .manufacture_id = ST_ID, |
| 8892 | .model_id = ST_N25Q032__3E, |
| 8893 | .total_size = 4096, |
| 8894 | .page_size = 256, |
| 8895 | /* supports SFDP */ |
| 8896 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 8897 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8898 | .tested = TEST_OK_PREW, |
| 8899 | .probe = probe_spi_rdid, |
| 8900 | .probe_timing = TIMING_ZERO, |
| 8901 | .block_erasers = |
| 8902 | { |
| 8903 | { |
| 8904 | .eraseblocks = { {4 * 1024, 1024} }, |
| 8905 | .block_erase = spi_block_erase_20, |
| 8906 | }, { |
| 8907 | .eraseblocks = { {64 * 1024, 64} }, |
| 8908 | .block_erase = spi_block_erase_d8, |
| 8909 | }, { |
| 8910 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 8911 | .block_erase = spi_block_erase_c7, |
| 8912 | } |
| 8913 | }, |
| 8914 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 8915 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 8916 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 8917 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8918 | .voltage = {2700, 3600}, |
| 8919 | }, |
| 8920 | |
| 8921 | { |
| 8922 | .vendor = "Micron/Numonyx/ST", |
| 8923 | .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 8924 | .bustype = BUS_SPI, |
| 8925 | .manufacture_id = ST_ID, |
| 8926 | .model_id = ST_N25Q064__1E, |
| 8927 | .total_size = 8192, |
| 8928 | .page_size = 256, |
| 8929 | /* supports SFDP */ |
| 8930 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 8931 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8932 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8933 | .probe = probe_spi_rdid, |
| 8934 | .probe_timing = TIMING_ZERO, |
| 8935 | .block_erasers = |
| 8936 | { |
| 8937 | { |
| 8938 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 8939 | .block_erase = spi_block_erase_20, |
| 8940 | }, { |
| 8941 | .eraseblocks = { {64 * 1024, 128} }, |
| 8942 | .block_erase = spi_block_erase_d8, |
| 8943 | }, { |
| 8944 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8945 | .block_erase = spi_block_erase_c7, |
| 8946 | } |
| 8947 | }, |
| 8948 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 8949 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 8950 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 8951 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8952 | .voltage = {1700, 2000}, |
| 8953 | }, |
| 8954 | |
| 8955 | { |
| 8956 | .vendor = "Micron/Numonyx/ST", |
| 8957 | .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 8958 | .bustype = BUS_SPI, |
| 8959 | .manufacture_id = ST_ID, |
| 8960 | .model_id = ST_N25Q064__3E, |
| 8961 | .total_size = 8192, |
| 8962 | .page_size = 256, |
| 8963 | /* supports SFDP */ |
| 8964 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 8965 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 8966 | .tested = TEST_OK_PREW, |
| 8967 | .probe = probe_spi_rdid, |
| 8968 | .probe_timing = TIMING_ZERO, |
| 8969 | .block_erasers = |
| 8970 | { |
| 8971 | { |
| 8972 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 8973 | .block_erase = spi_block_erase_20, |
| 8974 | }, { |
| 8975 | .eraseblocks = { {64 * 1024, 128} }, |
| 8976 | .block_erase = spi_block_erase_d8, |
| 8977 | }, { |
| 8978 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 8979 | .block_erase = spi_block_erase_c7, |
| 8980 | } |
| 8981 | }, |
| 8982 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 8983 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 8984 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 8985 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8986 | .voltage = {2700, 3600}, |
| 8987 | }, |
| 8988 | |
| 8989 | { |
| 8990 | .vendor = "Micron/Numonyx/ST", |
| 8991 | .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 8992 | .bustype = BUS_SPI, |
| 8993 | .manufacture_id = ST_ID, |
| 8994 | .model_id = ST_N25Q128__1E, |
| 8995 | .total_size = 16384, |
| 8996 | .page_size = 256, |
| 8997 | /* supports SFDP */ |
| 8998 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 8999 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9000 | .tested = TEST_UNTESTED, |
| 9001 | .probe = probe_spi_rdid, |
| 9002 | .probe_timing = TIMING_ZERO, |
| 9003 | .block_erasers = { |
| 9004 | { |
| 9005 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 9006 | .block_erase = spi_block_erase_20, |
| 9007 | }, { |
| 9008 | .eraseblocks = { {64 * 1024, 256} }, |
| 9009 | .block_erase = spi_block_erase_d8, |
| 9010 | }, { |
| 9011 | .eraseblocks = { {16384 * 1024, 1} }, |
| 9012 | .block_erase = spi_block_erase_c7, |
| 9013 | } |
| 9014 | }, |
| 9015 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 9016 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 9017 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 9018 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9019 | .voltage = {1700, 2000}, |
| 9020 | }, |
| 9021 | |
| 9022 | { |
| 9023 | .vendor = "Micron/Numonyx/ST", |
| 9024 | .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 9025 | .bustype = BUS_SPI, |
| 9026 | .manufacture_id = ST_ID, |
| 9027 | .model_id = ST_N25Q128__3E, |
| 9028 | .total_size = 16384, |
| 9029 | .page_size = 256, |
| 9030 | /* supports SFDP */ |
| 9031 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 9032 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9033 | .tested = TEST_OK_PREW, |
| 9034 | .probe = probe_spi_rdid, |
| 9035 | .probe_timing = TIMING_ZERO, |
| 9036 | .block_erasers = { |
| 9037 | { |
| 9038 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 9039 | .block_erase = spi_block_erase_20, |
| 9040 | }, { |
| 9041 | .eraseblocks = { {64 * 1024, 256} }, |
| 9042 | .block_erase = spi_block_erase_d8, |
| 9043 | }, { |
| 9044 | .eraseblocks = { {16384 * 1024, 1} }, |
| 9045 | .block_erase = spi_block_erase_c7, |
| 9046 | } |
| 9047 | }, |
| 9048 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 9049 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 9050 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 9051 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9052 | .voltage = {2700, 3600}, |
| 9053 | }, |
| 9054 | |
| 9055 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9056 | .vendor = "MoselVitelic", |
| 9057 | .name = "V29C51000B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9058 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9059 | .manufacture_id = SYNCMOS_MVC_ID, |
| 9060 | .model_id = MVC_V29C51000B, |
| 9061 | .total_size = 64, |
| 9062 | .page_size = 512, |
| 9063 | .feature_bits = FEATURE_EITHER_RESET, |
| 9064 | .tested = TEST_UNTESTED, |
| 9065 | .probe = probe_jedec, |
| 9066 | .probe_timing = TIMING_ZERO, |
| 9067 | .block_erasers = |
| 9068 | { |
| 9069 | { |
| 9070 | .eraseblocks = { {512, 128} }, |
| 9071 | .block_erase = erase_sector_jedec, |
| 9072 | }, { |
| 9073 | .eraseblocks = { {64 * 1024, 1} }, |
| 9074 | .block_erase = erase_chip_block_jedec, |
| 9075 | }, |
| 9076 | }, |
| 9077 | .write = write_jedec_1, |
| 9078 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9079 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9080 | }, |
| 9081 | |
| 9082 | { |
| 9083 | .vendor = "MoselVitelic", |
| 9084 | .name = "V29C51000T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9085 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9086 | .manufacture_id = SYNCMOS_MVC_ID, |
| 9087 | .model_id = MVC_V29C51000T, |
| 9088 | .total_size = 64, |
| 9089 | .page_size = 512, |
| 9090 | .feature_bits = FEATURE_EITHER_RESET, |
| 9091 | .tested = TEST_UNTESTED, |
| 9092 | .probe = probe_jedec, |
| 9093 | .probe_timing = TIMING_ZERO, |
| 9094 | .block_erasers = |
| 9095 | { |
| 9096 | { |
| 9097 | .eraseblocks = { {512, 128} }, |
| 9098 | .block_erase = erase_sector_jedec, |
| 9099 | }, { |
| 9100 | .eraseblocks = { {64 * 1024, 1} }, |
| 9101 | .block_erase = erase_chip_block_jedec, |
| 9102 | }, |
| 9103 | }, |
| 9104 | .write = write_jedec_1, |
| 9105 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9106 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9107 | }, |
| 9108 | |
| 9109 | { |
| 9110 | .vendor = "MoselVitelic", |
| 9111 | .name = "V29C51400B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9112 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9113 | .manufacture_id = SYNCMOS_MVC_ID, |
| 9114 | .model_id = MVC_V29C51400B, |
| 9115 | .total_size = 512, |
| 9116 | .page_size = 1024, |
| 9117 | .feature_bits = FEATURE_EITHER_RESET, |
| 9118 | .tested = TEST_UNTESTED, |
| 9119 | .probe = probe_jedec, |
| 9120 | .probe_timing = TIMING_ZERO, |
| 9121 | .block_erasers = |
| 9122 | { |
| 9123 | { |
| 9124 | .eraseblocks = { {1024, 512} }, |
| 9125 | .block_erase = erase_sector_jedec, |
| 9126 | }, { |
| 9127 | .eraseblocks = { {512 * 1024, 1} }, |
| 9128 | .block_erase = erase_chip_block_jedec, |
| 9129 | }, |
| 9130 | }, |
| 9131 | .write = write_jedec_1, |
| 9132 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9133 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9134 | }, |
| 9135 | |
| 9136 | { |
| 9137 | .vendor = "MoselVitelic", |
| 9138 | .name = "V29C51400T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9139 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9140 | .manufacture_id = SYNCMOS_MVC_ID, |
| 9141 | .model_id = MVC_V29C51400T, |
| 9142 | .total_size = 512, |
| 9143 | .page_size = 1024, |
| 9144 | .feature_bits = FEATURE_EITHER_RESET, |
| 9145 | .tested = TEST_UNTESTED, |
| 9146 | .probe = probe_jedec, |
| 9147 | .probe_timing = TIMING_ZERO, |
| 9148 | .block_erasers = |
| 9149 | { |
| 9150 | { |
| 9151 | .eraseblocks = { {1024, 512} }, |
| 9152 | .block_erase = erase_sector_jedec, |
| 9153 | }, { |
| 9154 | .eraseblocks = { {512 * 1024, 1} }, |
| 9155 | .block_erase = erase_chip_block_jedec, |
| 9156 | }, |
| 9157 | }, |
| 9158 | .write = write_jedec_1, |
| 9159 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9160 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9161 | }, |
| 9162 | |
| 9163 | { |
| 9164 | .vendor = "MoselVitelic", |
| 9165 | .name = "V29LC51000", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9166 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9167 | .manufacture_id = SYNCMOS_MVC_ID, |
| 9168 | .model_id = MVC_V29LC51000, |
| 9169 | .total_size = 64, |
| 9170 | .page_size = 512, |
| 9171 | .feature_bits = FEATURE_EITHER_RESET, |
| 9172 | .tested = TEST_UNTESTED, |
| 9173 | .probe = probe_jedec, |
| 9174 | .probe_timing = TIMING_ZERO, |
| 9175 | .block_erasers = |
| 9176 | { |
| 9177 | { |
| 9178 | .eraseblocks = { {512, 128} }, |
| 9179 | .block_erase = erase_sector_jedec, |
| 9180 | }, { |
| 9181 | .eraseblocks = { {64 * 1024, 1} }, |
| 9182 | .block_erase = erase_chip_block_jedec, |
| 9183 | }, |
| 9184 | }, |
| 9185 | .write = write_jedec_1, |
| 9186 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9187 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9188 | }, |
| 9189 | |
| 9190 | { |
| 9191 | .vendor = "MoselVitelic", |
| 9192 | .name = "V29LC51001", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9193 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9194 | .manufacture_id = SYNCMOS_MVC_ID, |
| 9195 | .model_id = MVC_V29LC51001, |
| 9196 | .total_size = 128, |
| 9197 | .page_size = 512, |
| 9198 | .feature_bits = FEATURE_EITHER_RESET, |
| 9199 | .tested = TEST_UNTESTED, |
| 9200 | .probe = probe_jedec, |
| 9201 | .probe_timing = TIMING_ZERO, |
| 9202 | .block_erasers = |
| 9203 | { |
| 9204 | { |
| 9205 | .eraseblocks = { {512, 256} }, |
| 9206 | .block_erase = erase_sector_jedec, |
| 9207 | }, { |
| 9208 | .eraseblocks = { {128 * 1024, 1} }, |
| 9209 | .block_erase = erase_chip_block_jedec, |
| 9210 | }, |
| 9211 | }, |
| 9212 | .write = write_jedec_1, |
| 9213 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9214 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9215 | }, |
| 9216 | |
| 9217 | { |
| 9218 | .vendor = "MoselVitelic", |
| 9219 | .name = "V29LC51002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9220 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9221 | .manufacture_id = SYNCMOS_MVC_ID, |
| 9222 | .model_id = MVC_V29LC51002, |
| 9223 | .total_size = 256, |
| 9224 | .page_size = 512, |
| 9225 | .feature_bits = FEATURE_EITHER_RESET, |
| 9226 | .tested = TEST_UNTESTED, |
| 9227 | .probe = probe_jedec, |
| 9228 | .probe_timing = TIMING_ZERO, |
| 9229 | .block_erasers = |
| 9230 | { |
| 9231 | { |
| 9232 | .eraseblocks = { {512, 512} }, |
| 9233 | .block_erase = erase_sector_jedec, |
| 9234 | }, { |
| 9235 | .eraseblocks = { {256 * 1024, 1} }, |
| 9236 | .block_erase = erase_chip_block_jedec, |
| 9237 | }, |
| 9238 | }, |
| 9239 | .write = write_jedec_1, |
| 9240 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9241 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 9242 | }, |
| 9243 | |
| 9244 | { |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 9245 | .vendor = "Nantronics", |
| 9246 | .name = "N25S10", |
| 9247 | .bustype = BUS_SPI, |
| 9248 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 9249 | .model_id = NANTRONICS_N25S10, |
| 9250 | .total_size = 128, |
| 9251 | .page_size = 256, |
| 9252 | .feature_bits = FEATURE_WRSR_WREN, |
| 9253 | .tested = TEST_UNTESTED, |
| 9254 | .probe = probe_spi_rdid, |
| 9255 | .probe_timing = TIMING_ZERO, |
| 9256 | .block_erasers = |
| 9257 | { |
| 9258 | { |
| 9259 | .eraseblocks = { {4 * 1024, 32} }, |
| 9260 | .block_erase = spi_block_erase_20, |
| 9261 | }, { |
| 9262 | .eraseblocks = { {4 * 1024, 32} }, |
| 9263 | .block_erase = spi_block_erase_d7, |
| 9264 | }, { |
| 9265 | .eraseblocks = { {32 * 1024, 4} }, |
| 9266 | .block_erase = spi_block_erase_52, |
| 9267 | }, { |
| 9268 | .eraseblocks = { {64 * 1024, 2} }, |
| 9269 | .block_erase = spi_block_erase_d8, |
| 9270 | }, { |
| 9271 | .eraseblocks = { {128 * 1024, 1} }, |
| 9272 | .block_erase = spi_block_erase_60, |
| 9273 | }, { |
| 9274 | .eraseblocks = { {128 * 1024, 1} }, |
| 9275 | .block_erase = spi_block_erase_c7, |
| 9276 | } |
| 9277 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9278 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 9279 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9280 | .write = spi_chip_write_256, |
| 9281 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 9282 | .voltage = {2700, 3600}, |
| 9283 | }, |
| 9284 | |
| 9285 | { |
| 9286 | .vendor = "Nantronics", |
| 9287 | .name = "N25S20", |
| 9288 | .bustype = BUS_SPI, |
| 9289 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 9290 | .model_id = NANTRONICS_N25S20, |
| 9291 | .total_size = 256, |
| 9292 | .page_size = 256, |
| 9293 | .feature_bits = FEATURE_WRSR_WREN, |
| 9294 | .tested = TEST_UNTESTED, |
| 9295 | .probe = probe_spi_rdid, |
| 9296 | .probe_timing = TIMING_ZERO, |
| 9297 | .block_erasers = |
| 9298 | { |
| 9299 | { |
| 9300 | .eraseblocks = { {4 * 1024, 64} }, |
| 9301 | .block_erase = spi_block_erase_20, |
| 9302 | }, { |
| 9303 | .eraseblocks = { {4 * 1024, 64} }, |
| 9304 | .block_erase = spi_block_erase_d7, |
| 9305 | }, { |
| 9306 | .eraseblocks = { {32 * 1024, 8} }, |
| 9307 | .block_erase = spi_block_erase_52, |
| 9308 | }, { |
| 9309 | .eraseblocks = { {64 * 1024, 4} }, |
| 9310 | .block_erase = spi_block_erase_d8, |
| 9311 | }, { |
| 9312 | .eraseblocks = { {256 * 1024, 1} }, |
| 9313 | .block_erase = spi_block_erase_60, |
| 9314 | }, { |
| 9315 | .eraseblocks = { {256 * 1024, 1} }, |
| 9316 | .block_erase = spi_block_erase_c7, |
| 9317 | } |
| 9318 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9319 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 9320 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9321 | .write = spi_chip_write_256, |
| 9322 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 9323 | .voltage = {2700, 3600}, |
| 9324 | }, |
| 9325 | |
| 9326 | { |
| 9327 | .vendor = "Nantronics", |
| 9328 | .name = "N25S40", |
| 9329 | .bustype = BUS_SPI, |
| 9330 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 9331 | .model_id = NANTRONICS_N25S40, |
| 9332 | .total_size = 512, |
| 9333 | .page_size = 256, |
| 9334 | .feature_bits = FEATURE_WRSR_WREN, |
| 9335 | .tested = TEST_UNTESTED, |
| 9336 | .probe = probe_spi_rdid, |
| 9337 | .probe_timing = TIMING_ZERO, |
| 9338 | .block_erasers = |
| 9339 | { |
| 9340 | { |
| 9341 | .eraseblocks = { {4 * 1024, 128} }, |
| 9342 | .block_erase = spi_block_erase_20, |
| 9343 | }, { |
| 9344 | .eraseblocks = { {4 * 1024, 128} }, |
| 9345 | .block_erase = spi_block_erase_d7, |
| 9346 | }, { |
| 9347 | .eraseblocks = { {32 * 1024, 16} }, |
| 9348 | .block_erase = spi_block_erase_52, |
| 9349 | }, { |
| 9350 | .eraseblocks = { {64 * 1024, 8} }, |
| 9351 | .block_erase = spi_block_erase_d8, |
| 9352 | }, { |
| 9353 | .eraseblocks = { {512 * 1024, 1} }, |
| 9354 | .block_erase = spi_block_erase_60, |
| 9355 | }, { |
| 9356 | .eraseblocks = { {512 * 1024, 1} }, |
| 9357 | .block_erase = spi_block_erase_c7, |
| 9358 | } |
| 9359 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9360 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 9361 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9362 | .write = spi_chip_write_256, |
| 9363 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 9364 | .voltage = {2700, 3600}, |
| 9365 | }, |
| 9366 | |
| 9367 | { |
| 9368 | .vendor = "Nantronics", |
| 9369 | .name = "N25S80", |
| 9370 | .bustype = BUS_SPI, |
| 9371 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 9372 | .model_id = NANTRONICS_N25S80, |
| 9373 | .total_size = 1024, |
| 9374 | .page_size = 256, |
| 9375 | .feature_bits = FEATURE_WRSR_WREN, |
| 9376 | .tested = TEST_UNTESTED, |
| 9377 | .probe = probe_spi_rdid, |
| 9378 | .probe_timing = TIMING_ZERO, |
| 9379 | .block_erasers = |
| 9380 | { |
| 9381 | { |
| 9382 | .eraseblocks = { {4 * 1024, 256} }, |
| 9383 | .block_erase = spi_block_erase_20, |
| 9384 | }, { |
| 9385 | .eraseblocks = { {32 * 1024, 32} }, |
| 9386 | .block_erase = spi_block_erase_52, |
| 9387 | }, { |
| 9388 | .eraseblocks = { {64 * 1024, 16} }, |
| 9389 | .block_erase = spi_block_erase_d8, |
| 9390 | }, { |
| 9391 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9392 | .block_erase = spi_block_erase_60, |
| 9393 | }, { |
| 9394 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9395 | .block_erase = spi_block_erase_c7, |
| 9396 | } |
| 9397 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9398 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 9399 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9400 | .write = spi_chip_write_256, |
| 9401 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 9402 | .voltage = {2700, 3600}, |
| 9403 | }, |
| 9404 | |
| 9405 | { |
| 9406 | .vendor = "Nantronics", |
| 9407 | .name = "N25S16", |
| 9408 | .bustype = BUS_SPI, |
| 9409 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 9410 | .model_id = NANTRONICS_N25S16, |
| 9411 | .total_size = 2048, |
| 9412 | .page_size = 256, |
| 9413 | .feature_bits = FEATURE_WRSR_WREN, |
| 9414 | .tested = TEST_UNTESTED, |
| 9415 | .probe = probe_spi_rdid, |
| 9416 | .probe_timing = TIMING_ZERO, |
| 9417 | .block_erasers = |
| 9418 | { |
| 9419 | { |
| 9420 | .eraseblocks = { {4 * 1024, 512} }, |
| 9421 | .block_erase = spi_block_erase_20, |
| 9422 | }, { |
| 9423 | .eraseblocks = { {64 * 1024, 32} }, |
| 9424 | .block_erase = spi_block_erase_d8, |
| 9425 | }, { |
| 9426 | .eraseblocks = { {2048 * 1024, 1} }, |
| 9427 | .block_erase = spi_block_erase_60, |
| 9428 | }, { |
| 9429 | .eraseblocks = { {2048 * 1024, 1} }, |
| 9430 | .block_erase = spi_block_erase_c7, |
| 9431 | } |
| 9432 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9433 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 9434 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 9435 | .write = spi_chip_write_256, |
| 9436 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 9437 | .voltage = {2700, 3600}, |
| 9438 | }, |
| 9439 | |
| 9440 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9441 | .vendor = "PMC", |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 9442 | .name = "Pm25LD256C", |
| 9443 | .bustype = BUS_SPI, |
| 9444 | .manufacture_id = PMC_ID, |
| 9445 | .model_id = PMC_PM25LD256C, |
| 9446 | .total_size = 32, |
| 9447 | .page_size = 256, |
| 9448 | .feature_bits = FEATURE_WRSR_WREN, |
| 9449 | .tested = TEST_UNTESTED, |
| 9450 | .probe = probe_spi_rdid, |
| 9451 | .probe_timing = TIMING_ZERO, |
| 9452 | .block_erasers = |
| 9453 | { |
| 9454 | { |
| 9455 | .eraseblocks = { {4 * 1024, 8} }, |
| 9456 | .block_erase = spi_block_erase_20, |
| 9457 | }, { |
| 9458 | .eraseblocks = { {4 * 1024, 8} }, |
| 9459 | .block_erase = spi_block_erase_d7, |
| 9460 | }, { |
| 9461 | .eraseblocks = { {32 * 1024, 1} }, |
| 9462 | .block_erase = spi_block_erase_d8, |
| 9463 | }, { |
| 9464 | .eraseblocks = { {32 * 1024, 1} }, |
| 9465 | .block_erase = spi_block_erase_60, |
| 9466 | }, { |
| 9467 | .eraseblocks = { {32 * 1024, 1} }, |
| 9468 | .block_erase = spi_block_erase_c7, |
| 9469 | } |
| 9470 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9471 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 9472 | .unlock = spi_disable_blockprotect, |
| 9473 | .write = spi_chip_write_256, |
| 9474 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 9475 | .voltage = {2700, 3600}, |
| 9476 | }, |
| 9477 | { |
| 9478 | .vendor = "PMC", |
| 9479 | .name = "Pm25LD512(C)", |
| 9480 | .bustype = BUS_SPI, |
| 9481 | .manufacture_id = PMC_ID, |
| 9482 | .model_id = PMC_PM25LD512, |
| 9483 | .total_size = 64, |
| 9484 | .page_size = 256, |
| 9485 | .feature_bits = FEATURE_WRSR_WREN, |
| 9486 | .tested = TEST_OK_PREW, |
| 9487 | .probe = probe_spi_rdid, |
| 9488 | .probe_timing = TIMING_ZERO, |
| 9489 | .block_erasers = |
| 9490 | { |
| 9491 | { |
| 9492 | .eraseblocks = { {4 * 1024, 16} }, |
| 9493 | .block_erase = spi_block_erase_20, |
| 9494 | }, { |
| 9495 | .eraseblocks = { {4 * 1024, 16} }, |
| 9496 | .block_erase = spi_block_erase_d7, |
| 9497 | }, { |
| 9498 | .eraseblocks = { {32 * 1024, 2} }, |
| 9499 | .block_erase = spi_block_erase_d8, |
| 9500 | }, { |
| 9501 | .eraseblocks = { {64 * 1024, 1} }, |
| 9502 | .block_erase = spi_block_erase_60, |
| 9503 | }, { |
| 9504 | .eraseblocks = { {64 * 1024, 1} }, |
| 9505 | .block_erase = spi_block_erase_c7, |
| 9506 | } |
| 9507 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9508 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 9509 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 9510 | .write = spi_chip_write_256, |
| 9511 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 9512 | .voltage = {2300, 3600}, |
| 9513 | }, |
| 9514 | |
| 9515 | { |
| 9516 | .vendor = "PMC", |
| 9517 | .name = "Pm25LD010(C)", |
| 9518 | .bustype = BUS_SPI, |
| 9519 | .manufacture_id = PMC_ID, |
| 9520 | .model_id = PMC_PM25LD010, |
| 9521 | .total_size = 128, |
| 9522 | .page_size = 256, |
| 9523 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 9524 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 9525 | .probe = probe_spi_rdid, |
| 9526 | .probe_timing = TIMING_ZERO, |
| 9527 | .block_erasers = |
| 9528 | { |
| 9529 | { |
| 9530 | .eraseblocks = { {4 * 1024, 32} }, |
| 9531 | .block_erase = spi_block_erase_20, |
| 9532 | }, { |
| 9533 | .eraseblocks = { {4 * 1024, 32} }, |
| 9534 | .block_erase = spi_block_erase_d7, |
| 9535 | }, { |
| 9536 | .eraseblocks = { {32 * 1024, 4} }, |
| 9537 | .block_erase = spi_block_erase_d8, |
| 9538 | }, { |
| 9539 | .eraseblocks = { {128 * 1024, 1} }, |
| 9540 | .block_erase = spi_block_erase_60, |
| 9541 | }, { |
| 9542 | .eraseblocks = { {128 * 1024, 1} }, |
| 9543 | .block_erase = spi_block_erase_c7, |
| 9544 | } |
| 9545 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9546 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 9547 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 9548 | .write = spi_chip_write_256, |
| 9549 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 9550 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */ |
| 9551 | }, |
| 9552 | |
| 9553 | { |
| 9554 | .vendor = "PMC", |
| 9555 | .name = "Pm25LD020(C)", |
| 9556 | .bustype = BUS_SPI, |
| 9557 | .manufacture_id = PMC_ID, |
| 9558 | .model_id = PMC_PM25LD020, |
| 9559 | .total_size = 256, |
| 9560 | .page_size = 256, |
| 9561 | .feature_bits = FEATURE_WRSR_WREN, |
| 9562 | .tested = TEST_UNTESTED, |
| 9563 | .probe = probe_spi_rdid, |
| 9564 | .probe_timing = TIMING_ZERO, |
| 9565 | .block_erasers = |
| 9566 | { |
| 9567 | { |
| 9568 | .eraseblocks = { {4 * 1024, 64} }, |
| 9569 | .block_erase = spi_block_erase_20, |
| 9570 | }, { |
| 9571 | .eraseblocks = { {4 * 1024, 64} }, |
| 9572 | .block_erase = spi_block_erase_d7, |
| 9573 | }, { |
| 9574 | .eraseblocks = { {64 * 1024, 4} }, |
| 9575 | .block_erase = spi_block_erase_d8, |
| 9576 | }, { |
| 9577 | .eraseblocks = { {256 * 1024, 1} }, |
| 9578 | .block_erase = spi_block_erase_60, |
| 9579 | }, { |
| 9580 | .eraseblocks = { {256 * 1024, 1} }, |
| 9581 | .block_erase = spi_block_erase_c7, |
| 9582 | } |
| 9583 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9584 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 9585 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 9586 | .write = spi_chip_write_256, |
| 9587 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 9588 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */ |
| 9589 | }, |
| 9590 | |
| 9591 | { |
| 9592 | .vendor = "PMC", |
| 9593 | .name = "Pm25LD040(C)", |
| 9594 | .bustype = BUS_SPI, |
| 9595 | .manufacture_id = PMC_ID, |
| 9596 | .model_id = PMC_PM25LV040, |
| 9597 | .total_size = 512, |
| 9598 | .page_size = 256, |
| 9599 | .feature_bits = FEATURE_WRSR_WREN, |
| 9600 | .tested = TEST_UNTESTED, |
| 9601 | .probe = probe_spi_rdid, |
| 9602 | .probe_timing = TIMING_ZERO, |
| 9603 | .block_erasers = |
| 9604 | { |
| 9605 | { |
| 9606 | .eraseblocks = { {4 * 1024, 128} }, |
| 9607 | .block_erase = spi_block_erase_20, |
| 9608 | }, { |
| 9609 | .eraseblocks = { {4 * 1024, 128} }, |
| 9610 | .block_erase = spi_block_erase_d7, |
| 9611 | }, { |
| 9612 | .eraseblocks = { {64 * 1024, 8} }, |
| 9613 | .block_erase = spi_block_erase_d8, |
| 9614 | }, { |
| 9615 | .eraseblocks = { {512 * 1024, 1} }, |
| 9616 | .block_erase = spi_block_erase_60, |
| 9617 | }, { |
| 9618 | .eraseblocks = { {512 * 1024, 1} }, |
| 9619 | .block_erase = spi_block_erase_c7, |
| 9620 | } |
| 9621 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9622 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 9623 | .unlock = spi_disable_blockprotect, |
| 9624 | .write = spi_chip_write_256, |
| 9625 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 9626 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */ |
| 9627 | }, |
| 9628 | |
| 9629 | { |
| 9630 | .vendor = "PMC", |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 9631 | .name = "Pm25LV512(A)", |
| 9632 | .bustype = BUS_SPI, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 9633 | .manufacture_id = PMC_ID_NOPREFIX, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 9634 | .model_id = PMC_PM25LV512, |
| 9635 | .total_size = 64, |
| 9636 | .page_size = 256, |
| 9637 | .feature_bits = FEATURE_WRSR_WREN, |
| 9638 | .tested = TEST_UNTESTED, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 9639 | .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] | 9640 | .probe_timing = TIMING_ZERO, |
| 9641 | .block_erasers = |
| 9642 | { |
| 9643 | { |
| 9644 | .eraseblocks = { {4 * 1024, 16} }, |
| 9645 | .block_erase = spi_block_erase_d7, |
| 9646 | }, { |
| 9647 | .eraseblocks = { {32 * 1024, 2} }, |
| 9648 | .block_erase = spi_block_erase_d8, |
| 9649 | }, { |
| 9650 | .eraseblocks = { {64 * 1024, 1} }, |
| 9651 | .block_erase = spi_block_erase_c7, |
| 9652 | } |
| 9653 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9654 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 9655 | .unlock = spi_disable_blockprotect, |
| 9656 | .write = spi_chip_write_256, |
| 9657 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9658 | .voltage = {2700, 3600}, |
| 9659 | }, |
| 9660 | |
| 9661 | { |
| 9662 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9663 | .name = "Pm25LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9664 | .bustype = BUS_SPI, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 9665 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9666 | .model_id = PMC_PM25LV010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9667 | .total_size = 128, |
| 9668 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9669 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 9670 | .tested = TEST_OK_PREW, |
| 9671 | .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] | 9672 | .probe_timing = TIMING_ZERO, |
| 9673 | .block_erasers = |
| 9674 | { |
| 9675 | { |
| 9676 | .eraseblocks = { {4 * 1024, 32} }, |
| 9677 | .block_erase = spi_block_erase_d7, |
| 9678 | }, { |
| 9679 | .eraseblocks = { {32 * 1024, 4} }, |
| 9680 | .block_erase = spi_block_erase_d8, |
| 9681 | }, { |
| 9682 | .eraseblocks = { {128 * 1024, 1} }, |
| 9683 | .block_erase = spi_block_erase_c7, |
| 9684 | } |
| 9685 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9686 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 9687 | .unlock = spi_disable_blockprotect, |
| 9688 | .write = spi_chip_write_256, |
| 9689 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9690 | .voltage = {2700, 3600}, |
| 9691 | }, |
| 9692 | |
| 9693 | { |
| 9694 | .vendor = "PMC", |
| 9695 | .name = "Pm25LV010A", |
| 9696 | .bustype = BUS_SPI, |
| 9697 | .manufacture_id = PMC_ID, |
| 9698 | .model_id = PMC_PM25LV010, |
| 9699 | .total_size = 128, |
| 9700 | .page_size = 256, |
| 9701 | .feature_bits = FEATURE_WRSR_WREN, |
| 9702 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9703 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9704 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 9705 | .block_erasers = |
| 9706 | { |
| 9707 | { |
| 9708 | .eraseblocks = { {4 * 1024, 32} }, |
| 9709 | .block_erase = spi_block_erase_d7, |
| 9710 | }, { |
| 9711 | .eraseblocks = { {32 * 1024, 4} }, |
| 9712 | .block_erase = spi_block_erase_d8, |
| 9713 | }, { |
| 9714 | .eraseblocks = { {128 * 1024, 1} }, |
| 9715 | .block_erase = spi_block_erase_c7, |
| 9716 | } |
| 9717 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9718 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9719 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9720 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 9721 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 9722 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9723 | }, |
| 9724 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9725 | { |
| 9726 | .vendor = "PMC", |
| 9727 | .name = "Pm25LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9728 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9729 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9730 | .model_id = PMC_PM25LV020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9731 | .total_size = 256, |
| 9732 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9733 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9734 | .tested = TEST_UNTESTED, |
| 9735 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9736 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 9737 | .block_erasers = |
| 9738 | { |
| 9739 | { |
| 9740 | .eraseblocks = { {4 * 1024, 64} }, |
| 9741 | .block_erase = spi_block_erase_d7, |
| 9742 | }, { |
| 9743 | .eraseblocks = { {64 * 1024, 4} }, |
| 9744 | .block_erase = spi_block_erase_d8, |
| 9745 | }, { |
| 9746 | .eraseblocks = { {256 * 1024, 1} }, |
| 9747 | .block_erase = spi_block_erase_c7, |
| 9748 | } |
| 9749 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9750 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9751 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9752 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9753 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9754 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9755 | }, |
| 9756 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9757 | { |
| 9758 | .vendor = "PMC", |
| 9759 | .name = "Pm25LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9760 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9761 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9762 | .model_id = PMC_PM25LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9763 | .total_size = 512, |
| 9764 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9765 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 9766 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9767 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9768 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 9769 | .block_erasers = |
| 9770 | { |
| 9771 | { |
| 9772 | .eraseblocks = { {4 * 1024, 128} }, |
| 9773 | .block_erase = spi_block_erase_d7, |
| 9774 | }, { |
| 9775 | .eraseblocks = { {64 * 1024, 8} }, |
| 9776 | .block_erase = spi_block_erase_d8, |
| 9777 | }, { |
| 9778 | .eraseblocks = { {512 * 1024, 1} }, |
| 9779 | .block_erase = spi_block_erase_c7, |
| 9780 | } |
| 9781 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9782 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9783 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9784 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 9785 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9786 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9787 | }, |
| 9788 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9789 | { |
| 9790 | .vendor = "PMC", |
| 9791 | .name = "Pm25LV080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9792 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9793 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9794 | .model_id = PMC_PM25LV080B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9795 | .total_size = 1024, |
| 9796 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9797 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9798 | .tested = TEST_UNTESTED, |
| 9799 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9800 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 9801 | .block_erasers = |
| 9802 | { |
| 9803 | { |
| 9804 | .eraseblocks = { {4 * 1024, 256} }, |
| 9805 | .block_erase = spi_block_erase_d7, |
| 9806 | }, { |
| 9807 | .eraseblocks = { {4 * 1024, 256} }, |
| 9808 | .block_erase = spi_block_erase_20, |
| 9809 | }, { |
| 9810 | .eraseblocks = { {64 * 1024, 16} }, |
| 9811 | .block_erase = spi_block_erase_d8, |
| 9812 | }, { |
| 9813 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9814 | .block_erase = spi_block_erase_60, |
| 9815 | }, { |
| 9816 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9817 | .block_erase = spi_block_erase_c7, |
| 9818 | } |
| 9819 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9820 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9821 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9822 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 9823 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9824 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9825 | }, |
| 9826 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9827 | { |
| 9828 | .vendor = "PMC", |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 9829 | .name = "Pm25LV016B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9830 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9831 | .manufacture_id = PMC_ID, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 9832 | .model_id = PMC_PM25LV016B, |
| 9833 | .total_size = 2048, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9834 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9835 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9836 | .tested = TEST_UNTESTED, |
| 9837 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9838 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 9839 | .block_erasers = |
| 9840 | { |
| 9841 | { |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 9842 | .eraseblocks = { {4 * 1024, 512} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 9843 | .block_erase = spi_block_erase_d7, |
| 9844 | }, { |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 9845 | .eraseblocks = { {4 * 1024, 512} }, |
| 9846 | .block_erase = spi_block_erase_20, |
| 9847 | }, { |
| 9848 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 9849 | .block_erase = spi_block_erase_d8, |
| 9850 | }, { |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 9851 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9852 | .block_erase = spi_block_erase_60, |
| 9853 | }, { |
| 9854 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 9855 | .block_erase = spi_block_erase_c7, |
| 9856 | } |
| 9857 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9858 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9859 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9860 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 9861 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 9862 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9863 | }, |
| 9864 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9865 | { |
| 9866 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 9867 | .name = "Pm29F002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9868 | .bustype = BUS_PARALLEL, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 9869 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9870 | .model_id = PMC_PM29F002T, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 9871 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 9872 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9873 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 9874 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9875 | .probe = probe_jedec, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 9876 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 9877 | .block_erasers = |
| 9878 | { |
| 9879 | { |
| 9880 | .eraseblocks = { |
| 9881 | {128 * 1024, 1}, |
| 9882 | {96 * 1024, 1}, |
| 9883 | {8 * 1024, 2}, |
| 9884 | {16 * 1024, 1}, |
| 9885 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9886 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 9887 | }, { |
| 9888 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9889 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 9890 | }, |
| 9891 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9892 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 9893 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9894 | .voltage = {4500, 5500}, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 9895 | }, |
| 9896 | |
| 9897 | { |
| 9898 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 9899 | .name = "Pm29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9900 | .bustype = BUS_PARALLEL, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 9901 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9902 | .model_id = PMC_PM29F002B, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 9903 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 9904 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9905 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 9906 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9907 | .probe = probe_jedec, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 9908 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 9909 | .block_erasers = |
| 9910 | { |
| 9911 | { |
| 9912 | .eraseblocks = { |
| 9913 | {16 * 1024, 1}, |
| 9914 | {8 * 1024, 2}, |
| 9915 | {96 * 1024, 1}, |
| 9916 | {128 * 1024, 1}, |
| 9917 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9918 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 9919 | }, { |
| 9920 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9921 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 9922 | }, |
| 9923 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9924 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 9925 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9926 | .voltage = {4500, 5500}, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 9927 | }, |
| 9928 | |
| 9929 | { |
| 9930 | .vendor = "PMC", |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 9931 | .name = "Pm39LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9932 | .bustype = BUS_PARALLEL, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 9933 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9934 | .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] | 9935 | .total_size = 128, |
| 9936 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9937 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 9938 | .tested = TEST_OK_PREW, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 9939 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 9940 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 9941 | .block_erasers = |
| 9942 | { |
| 9943 | { |
| 9944 | .eraseblocks = { {4 * 1024, 32} }, |
| 9945 | .block_erase = erase_sector_jedec, |
| 9946 | }, { |
| 9947 | .eraseblocks = { {64 * 1024, 2} }, |
| 9948 | .block_erase = erase_block_jedec, |
| 9949 | }, { |
| 9950 | .eraseblocks = { {128 * 1024, 1} }, |
| 9951 | .block_erase = erase_chip_block_jedec, |
| 9952 | } |
| 9953 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9954 | .write = write_jedec_1, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 9955 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9956 | .voltage = {2700, 3600}, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 9957 | }, |
| 9958 | |
| 9959 | { |
| 9960 | .vendor = "PMC", |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 9961 | .name = "Pm39LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9962 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 9963 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9964 | .model_id = PMC_PM39LV020, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 9965 | .total_size = 256, |
| 9966 | .page_size = 4096, |
| 9967 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 9968 | .tested = TEST_UNTESTED, |
| 9969 | .probe = probe_jedec, |
| 9970 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 9971 | .block_erasers = |
| 9972 | { |
| 9973 | { |
| 9974 | .eraseblocks = { {4 * 1024, 64} }, |
| 9975 | .block_erase = erase_sector_jedec, |
| 9976 | }, { |
| 9977 | .eraseblocks = { {64 * 1024, 4} }, |
| 9978 | .block_erase = erase_block_jedec, |
| 9979 | }, { |
| 9980 | .eraseblocks = { {256 * 1024, 1} }, |
| 9981 | .block_erase = erase_chip_block_jedec, |
| 9982 | } |
| 9983 | }, |
| 9984 | .write = write_jedec_1, |
| 9985 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9986 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 9987 | }, |
| 9988 | |
| 9989 | { |
| 9990 | .vendor = "PMC", |
| 9991 | .name = "Pm39LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9992 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 9993 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9994 | .model_id = PMC_PM39LV040, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 9995 | .total_size = 512, |
| 9996 | .page_size = 4096, |
| 9997 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 9998 | .tested = TEST_OK_PR, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 9999 | .probe = probe_jedec, |
| 10000 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 10001 | .block_erasers = |
| 10002 | { |
| 10003 | { |
| 10004 | .eraseblocks = { {4 * 1024, 128} }, |
| 10005 | .block_erase = erase_sector_jedec, |
| 10006 | }, { |
| 10007 | .eraseblocks = { {64 * 1024, 8} }, |
| 10008 | .block_erase = erase_block_jedec, |
| 10009 | }, { |
| 10010 | .eraseblocks = { {512 * 1024, 1} }, |
| 10011 | .block_erase = erase_chip_block_jedec, |
| 10012 | } |
| 10013 | }, |
| 10014 | .write = write_jedec_1, |
| 10015 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10016 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 10017 | }, |
Kyösti Mälkki | edab1d2 | 2012-05-20 23:32:33 +0000 | [diff] [blame] | 10018 | |
| 10019 | { |
| 10020 | .vendor = "PMC", |
| 10021 | .name = "Pm39LV512", |
| 10022 | .bustype = BUS_PARALLEL, |
| 10023 | .manufacture_id = PMC_ID_NOPREFIX, |
| 10024 | .model_id = PMC_PM39LV512, |
| 10025 | .total_size = 64, |
| 10026 | .page_size = 4096, |
| 10027 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 10028 | .tested = TEST_OK_PREW, |
| 10029 | .probe = probe_jedec, |
| 10030 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 10031 | .block_erasers = |
| 10032 | { |
| 10033 | { |
| 10034 | .eraseblocks = { {4 * 1024, 16} }, |
| 10035 | .block_erase = erase_sector_jedec, |
| 10036 | }, { |
| 10037 | .eraseblocks = { {64 * 1024, 1} }, |
| 10038 | .block_erase = erase_block_jedec, |
| 10039 | }, { |
| 10040 | .eraseblocks = { {64 * 1024, 1} }, |
| 10041 | .block_erase = erase_chip_block_jedec, |
| 10042 | } |
| 10043 | }, |
| 10044 | .write = write_jedec_1, |
| 10045 | .read = read_memmapped, |
| 10046 | .voltage = {2700, 3600}, |
| 10047 | }, |
| 10048 | |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 10049 | { |
| 10050 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10051 | .name = "Pm49FL002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10052 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10053 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10054 | .model_id = PMC_PM49FL002, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10055 | .total_size = 256, |
| 10056 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10057 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 10058 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 10059 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 10060 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 10061 | .block_erasers = |
| 10062 | { |
| 10063 | { |
| 10064 | .eraseblocks = { {4 * 1024, 64} }, |
| 10065 | .block_erase = erase_sector_jedec, |
| 10066 | }, { |
| 10067 | .eraseblocks = { {16 * 1024, 16} }, |
| 10068 | .block_erase = erase_block_jedec, |
| 10069 | }, { |
| 10070 | .eraseblocks = { {256 * 1024, 1} }, |
| 10071 | .block_erase = erase_chip_block_jedec, |
| 10072 | } |
| 10073 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 10074 | .unlock = unlock_regspace2_uniform_32k, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 10075 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10076 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10077 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10078 | }, |
| 10079 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10080 | { |
| 10081 | .vendor = "PMC", |
| 10082 | .name = "Pm49FL004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10083 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10084 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10085 | .model_id = PMC_PM49FL004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10086 | .total_size = 512, |
| 10087 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10088 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 10089 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 10090 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 10091 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 10092 | .block_erasers = |
| 10093 | { |
| 10094 | { |
| 10095 | .eraseblocks = { {4 * 1024, 128} }, |
| 10096 | .block_erase = erase_sector_jedec, |
| 10097 | }, { |
| 10098 | .eraseblocks = { {64 * 1024, 8} }, |
| 10099 | .block_erase = erase_block_jedec, |
| 10100 | }, { |
| 10101 | .eraseblocks = { {512 * 1024, 1} }, |
| 10102 | .block_erase = erase_chip_block_jedec, |
| 10103 | } |
| 10104 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 10105 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 10106 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10107 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10108 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10109 | }, |
| 10110 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10111 | { |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 10112 | .vendor = "Sanyo", |
Stefan Tauner | a60d408 | 2014-06-04 16:17:03 +0000 | [diff] [blame] | 10113 | .name = "LE25FW106", |
| 10114 | .bustype = BUS_SPI, |
| 10115 | .manufacture_id = SANYO_ID, |
| 10116 | .model_id = SANYO_LE25FW106, |
| 10117 | .total_size = 128, |
| 10118 | .page_size = 256, |
| 10119 | .feature_bits = FEATURE_WRSR_WREN, |
| 10120 | .tested = TEST_OK_PREW, |
| 10121 | .probe = probe_spi_res2, |
| 10122 | .probe_timing = TIMING_ZERO, |
| 10123 | .block_erasers = { |
| 10124 | { |
| 10125 | .eraseblocks = { {2 * 1024, 64} }, |
| 10126 | .block_erase = spi_block_erase_d7, |
| 10127 | }, { |
| 10128 | .eraseblocks = { {32 * 1024, 4} }, |
| 10129 | .block_erase = spi_block_erase_d8, |
| 10130 | }, { |
| 10131 | .eraseblocks = { {128 * 1024, 1} }, |
| 10132 | .block_erase = spi_block_erase_c7, |
| 10133 | } |
| 10134 | }, |
| 10135 | .printlock = spi_prettyprint_status_register_bp1_srwd, /* FIXME: Add ERSER error flag. */ |
| 10136 | .unlock = spi_disable_blockprotect_bp1_srwd, |
| 10137 | .write = spi_chip_write_256, |
| 10138 | .read = spi_chip_read, |
| 10139 | .voltage = {2700, 3600}, |
| 10140 | }, |
| 10141 | |
| 10142 | { |
| 10143 | .vendor = "Sanyo", |
Stefan Tauner | 33491b8 | 2014-05-18 21:36:04 +0000 | [diff] [blame] | 10144 | .name = "LE25FW406A", |
| 10145 | .bustype = BUS_SPI, |
| 10146 | .manufacture_id = SANYO_ID, |
| 10147 | .model_id = SANYO_LE25FW406A, |
| 10148 | .total_size = 512, |
| 10149 | .page_size = 256, |
| 10150 | .feature_bits = FEATURE_WRSR_WREN, |
| 10151 | .tested = TEST_OK_PREW, |
| 10152 | .probe = probe_spi_res2, |
| 10153 | .probe_timing = TIMING_ZERO, |
| 10154 | .block_erasers = { |
| 10155 | { |
| 10156 | .eraseblocks = { {4 * 1024, 128} }, |
| 10157 | .block_erase = spi_block_erase_d7, |
| 10158 | }, { |
| 10159 | .eraseblocks = { {64 * 1024, 8} }, |
| 10160 | .block_erase = spi_block_erase_d8, |
| 10161 | }, { |
| 10162 | .eraseblocks = { {512 * 1024, 1} }, |
| 10163 | .block_erase = spi_block_erase_c7, |
| 10164 | } |
| 10165 | }, |
| 10166 | .printlock = spi_prettyprint_status_register_plain, |
| 10167 | .unlock = spi_disable_blockprotect, |
| 10168 | .write = spi_chip_write_256, |
| 10169 | .read = spi_chip_read, |
| 10170 | .voltage = {2700, 3600}, |
| 10171 | }, |
| 10172 | |
| 10173 | { |
| 10174 | .vendor = "Sanyo", |
Jurij Munda | a1e5374 | 2014-05-14 13:19:50 +0000 | [diff] [blame] | 10175 | .name = "LE25FU406B", |
| 10176 | .bustype = BUS_SPI, |
| 10177 | .manufacture_id = SANYO_ID, |
| 10178 | .model_id = SANYO_LE25FU406B, |
| 10179 | .total_size = 512, |
| 10180 | .page_size = 256, |
| 10181 | .feature_bits = FEATURE_WRSR_WREN, |
| 10182 | .tested = TEST_OK_PREW, |
| 10183 | .probe = probe_spi_res2, |
| 10184 | .probe_timing = TIMING_ZERO, |
| 10185 | .block_erasers = { |
| 10186 | { |
| 10187 | .eraseblocks = { {4 * 1024, 128} }, |
| 10188 | .block_erase = spi_block_erase_d7, |
| 10189 | }, { |
| 10190 | .eraseblocks = { {64 * 1024, 8} }, |
| 10191 | .block_erase = spi_block_erase_d8, |
| 10192 | }, { |
| 10193 | .eraseblocks = { {512 * 1024, 1} }, |
| 10194 | .block_erase = spi_block_erase_c7, |
| 10195 | } |
| 10196 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10197 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Jurij Munda | a1e5374 | 2014-05-14 13:19:50 +0000 | [diff] [blame] | 10198 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 10199 | .write = spi_chip_write_256, |
| 10200 | .read = spi_chip_read, |
| 10201 | .voltage = {2300, 3600}, |
| 10202 | }, |
| 10203 | |
| 10204 | { |
| 10205 | .vendor = "Sanyo", |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 10206 | .name = "LE25FW203A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10207 | .bustype = BUS_SPI, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 10208 | .manufacture_id = SANYO_ID, |
| 10209 | .model_id = SANYO_LE25FW203A, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 10210 | .total_size = 256, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 10211 | .page_size = 256, |
| 10212 | .tested = TEST_UNTESTED, |
| 10213 | .probe = probe_spi_rdid, |
| 10214 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 10215 | .block_erasers = |
| 10216 | { |
| 10217 | { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 10218 | .eraseblocks = { {256, 1024} }, |
| 10219 | .block_erase = spi_block_erase_db, |
| 10220 | }, { |
| 10221 | .eraseblocks = { {64 * 1024, 4} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 10222 | .block_erase = spi_block_erase_d8, |
| 10223 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 10224 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 10225 | .block_erase = spi_block_erase_c7, |
| 10226 | } |
| 10227 | }, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 10228 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 10229 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 10230 | .write = spi_chip_write_256, |
| 10231 | .read = spi_chip_read, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 10232 | .voltage = {2700, 3600}, |
| 10233 | }, |
| 10234 | |
| 10235 | { |
| 10236 | .vendor = "Sanyo", |
| 10237 | .name = "LE25FW403A", |
| 10238 | .bustype = BUS_SPI, |
| 10239 | .manufacture_id = SANYO_ID, |
| 10240 | .model_id = SANYO_LE25FW403A, |
| 10241 | .total_size = 512, |
| 10242 | .page_size = 256, |
| 10243 | .tested = TEST_UNTESTED, |
| 10244 | .probe = probe_spi_rdid, |
| 10245 | .probe_timing = TIMING_ZERO, |
| 10246 | .block_erasers = { |
| 10247 | { |
| 10248 | .eraseblocks = { {256, 2 * 1024} }, |
| 10249 | .block_erase = spi_block_erase_db, |
| 10250 | }, { |
| 10251 | .eraseblocks = { {64 * 1024, 8} }, |
| 10252 | .block_erase = spi_block_erase_d8, |
| 10253 | }, { |
| 10254 | .eraseblocks = { {512 * 1024, 1} }, |
| 10255 | .block_erase = spi_block_erase_c7, |
| 10256 | } |
| 10257 | }, |
| 10258 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 10259 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 10260 | .write = spi_chip_write_256, |
| 10261 | .read = spi_chip_read, |
| 10262 | .voltage = {2700, 3600}, |
| 10263 | }, |
| 10264 | |
| 10265 | { |
| 10266 | .vendor = "Sanyo", |
| 10267 | .name = "LE25FW418A", |
| 10268 | .bustype = BUS_SPI, |
| 10269 | .manufacture_id = SANYO_ID, |
| 10270 | .model_id = SANYO_LE25FW418A, |
| 10271 | .total_size = 512, |
| 10272 | .page_size = 256, |
| 10273 | .feature_bits = FEATURE_WRSR_WREN, |
| 10274 | .tested = TEST_UNTESTED, |
| 10275 | .probe = probe_spi_res2, |
| 10276 | .probe_timing = TIMING_ZERO, |
| 10277 | .block_erasers = { |
| 10278 | { |
| 10279 | .eraseblocks = { {4 * 1024, 128} }, |
| 10280 | .block_erase = spi_block_erase_d7, |
| 10281 | }, { |
| 10282 | .eraseblocks = { {64 * 1024, 8} }, |
| 10283 | .block_erase = spi_block_erase_d8, |
| 10284 | }, { |
| 10285 | .eraseblocks = { {512 * 1024, 1} }, |
| 10286 | .block_erase = spi_block_erase_c7, |
| 10287 | } |
| 10288 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10289 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 10290 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 10291 | .write = spi_chip_write_256, |
| 10292 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 10293 | .voltage = {2700, 3600}, |
| 10294 | }, |
| 10295 | |
| 10296 | { |
| 10297 | .vendor = "Sanyo", |
| 10298 | .name = "LE25FW806", |
| 10299 | .bustype = BUS_SPI, |
| 10300 | .manufacture_id = SANYO_ID, |
| 10301 | .model_id = SANYO_LE25FW806, |
| 10302 | .total_size = 1024, |
| 10303 | .page_size = 256, |
| 10304 | .feature_bits = FEATURE_WRSR_WREN, |
| 10305 | .tested = TEST_UNTESTED, |
| 10306 | .probe = probe_spi_res2, |
| 10307 | .probe_timing = TIMING_ZERO, |
| 10308 | .block_erasers = { |
| 10309 | { |
| 10310 | .eraseblocks = { {4 * 1024, 256} }, |
| 10311 | .block_erase = spi_block_erase_20, |
| 10312 | }, { |
| 10313 | .eraseblocks = { {4 * 1024, 256} }, |
| 10314 | .block_erase = spi_block_erase_d7, |
| 10315 | }, { |
| 10316 | .eraseblocks = { {64 * 1024, 16} }, |
| 10317 | .block_erase = spi_block_erase_d8, |
| 10318 | }, { |
| 10319 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10320 | .block_erase = spi_block_erase_c7, |
| 10321 | } |
| 10322 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10323 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 10324 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 10325 | .write = spi_chip_write_256, |
| 10326 | .read = spi_chip_read, |
| 10327 | .voltage = {2700, 3600}, |
| 10328 | }, |
| 10329 | |
| 10330 | { |
| 10331 | .vendor = "Sanyo", |
| 10332 | .name = "LE25FW808", |
| 10333 | .bustype = BUS_SPI, |
| 10334 | .manufacture_id = SANYO_ID, |
| 10335 | .model_id = SANYO_LE25FW808, |
| 10336 | .total_size = 1024, |
| 10337 | .page_size = 256, |
| 10338 | .feature_bits = FEATURE_WRSR_WREN, |
| 10339 | .tested = TEST_UNTESTED, |
| 10340 | .probe = probe_spi_res2, |
| 10341 | .probe_timing = TIMING_ZERO, |
| 10342 | .block_erasers = { |
| 10343 | { |
| 10344 | .eraseblocks = { {8 * 1024, 128} }, |
| 10345 | .block_erase = spi_block_erase_d7, |
| 10346 | }, { |
| 10347 | .eraseblocks = { {64 * 1024, 16} }, |
| 10348 | .block_erase = spi_block_erase_d8, |
| 10349 | }, { |
| 10350 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10351 | .block_erase = spi_block_erase_c7, |
| 10352 | } |
| 10353 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10354 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 10355 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 10356 | .write = spi_chip_write_256, |
| 10357 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 10358 | .voltage = {2700, 3600}, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 10359 | }, |
| 10360 | |
| 10361 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10362 | .vendor = "Sharp", |
Mattias Mattsson | fca3b01 | 2011-08-25 22:44:11 +0000 | [diff] [blame] | 10363 | .name = "LH28F008BJT-BTLZ1", |
| 10364 | .bustype = BUS_PARALLEL, |
| 10365 | .manufacture_id = SHARP_ID, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 10366 | .model_id = SHARP_LH28F008BJ__PB, |
Mattias Mattsson | fca3b01 | 2011-08-25 22:44:11 +0000 | [diff] [blame] | 10367 | .total_size = 1024, |
| 10368 | .page_size = 64 * 1024, |
| 10369 | .tested = TEST_OK_PREW, |
| 10370 | .probe = probe_82802ab, |
| 10371 | .probe_timing = TIMING_ZERO, |
| 10372 | .block_erasers = |
| 10373 | { |
| 10374 | { |
| 10375 | .eraseblocks = { |
| 10376 | {8 * 1024, 8}, |
| 10377 | {64 * 1024, 15} |
| 10378 | }, |
| 10379 | .block_erase = erase_block_82802ab, |
| 10380 | }, { |
| 10381 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10382 | .block_erase = erase_sector_49lfxxxc, |
| 10383 | } |
| 10384 | }, |
| 10385 | .unlock = unlock_lh28f008bjt, |
| 10386 | .write = write_82802ab, |
| 10387 | .read = read_memmapped, |
| 10388 | .voltage = {2700, 3600}, |
| 10389 | }, |
| 10390 | |
| 10391 | { |
| 10392 | .vendor = "Sharp", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10393 | .name = "LHF00L04", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10394 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10395 | .manufacture_id = SHARP_ID, |
| 10396 | .model_id = SHARP_LHF00L04, |
| 10397 | .total_size = 1024, |
| 10398 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10399 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10400 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10401 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 10402 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 10403 | .block_erasers = |
| 10404 | { |
| 10405 | { |
| 10406 | .eraseblocks = { |
| 10407 | {64 * 1024, 15}, |
| 10408 | {8 * 1024, 8} |
| 10409 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 10410 | .block_erase = erase_block_82802ab, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 10411 | }, { |
| 10412 | .eraseblocks = { |
| 10413 | {1024 * 1024, 1} |
| 10414 | }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10415 | .block_erase = NULL, /* 30 D0, only in A/A mux mode */ |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 10416 | }, |
| 10417 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 10418 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 10419 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10420 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10421 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10422 | }, |
| 10423 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10424 | { |
| 10425 | .vendor = "Spansion", |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 10426 | .name = "S25FL004A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10427 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 10428 | .manufacture_id = SPANSION_ID, |
| 10429 | .model_id = SPANSION_S25FL004A, |
| 10430 | .total_size = 512, |
| 10431 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10432 | .feature_bits = FEATURE_WRSR_WREN, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 10433 | .tested = TEST_UNTESTED, |
| 10434 | .probe = probe_spi_rdid, |
| 10435 | .probe_timing = TIMING_ZERO, |
| 10436 | .block_erasers = |
| 10437 | { |
| 10438 | { |
| 10439 | .eraseblocks = { {64 * 1024, 8} }, |
| 10440 | .block_erase = spi_block_erase_d8, |
| 10441 | }, { |
| 10442 | .eraseblocks = { {512 * 1024, 1} }, |
| 10443 | .block_erase = spi_block_erase_c7, |
| 10444 | } |
| 10445 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10446 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 10447 | .unlock = spi_disable_blockprotect, |
| 10448 | .write = spi_chip_write_256, |
| 10449 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 10450 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 10451 | }, |
| 10452 | |
| 10453 | { |
| 10454 | .vendor = "Spansion", |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 10455 | .name = "S25FL008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10456 | .bustype = BUS_SPI, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 10457 | .manufacture_id = SPANSION_ID, |
| 10458 | .model_id = SPANSION_S25FL008A, |
| 10459 | .total_size = 1024, |
| 10460 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10461 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 10462 | .tested = TEST_OK_PRE, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 10463 | .probe = probe_spi_rdid, |
| 10464 | .probe_timing = TIMING_ZERO, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 10465 | .block_erasers = |
| 10466 | { |
| 10467 | { |
| 10468 | .eraseblocks = { {64 * 1024, 16} }, |
| 10469 | .block_erase = spi_block_erase_d8, |
| 10470 | }, { |
| 10471 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10472 | .block_erase = spi_block_erase_c7, |
| 10473 | } |
| 10474 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10475 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10476 | .unlock = spi_disable_blockprotect, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 10477 | .write = spi_chip_write_256, |
| 10478 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10479 | .voltage = {2700, 3600}, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 10480 | }, |
| 10481 | |
| 10482 | { |
| 10483 | .vendor = "Spansion", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10484 | .name = "S25FL016A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10485 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10486 | .manufacture_id = SPANSION_ID, |
| 10487 | .model_id = SPANSION_S25FL016A, |
| 10488 | .total_size = 2048, |
| 10489 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10490 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 10491 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10492 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10493 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 10494 | .block_erasers = |
| 10495 | { |
| 10496 | { |
| 10497 | .eraseblocks = { {64 * 1024, 32} }, |
| 10498 | .block_erase = spi_block_erase_d8, |
| 10499 | }, { |
| 10500 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10501 | .block_erase = spi_block_erase_c7, |
| 10502 | } |
| 10503 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10504 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10505 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 10506 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10507 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10508 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10509 | }, |
| 10510 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10511 | { |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 10512 | .vendor = "Spansion", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 10513 | .name = "S25FL032A/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10514 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 10515 | .manufacture_id = SPANSION_ID, |
| 10516 | .model_id = SPANSION_S25FL032A, |
| 10517 | .total_size = 4096, |
| 10518 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10519 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 10520 | .tested = TEST_OK_PREW, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 10521 | .probe = probe_spi_rdid, |
| 10522 | .probe_timing = TIMING_ZERO, |
| 10523 | .block_erasers = |
| 10524 | { |
| 10525 | { |
| 10526 | .eraseblocks = { {64 * 1024, 64} }, |
| 10527 | .block_erase = spi_block_erase_d8, |
| 10528 | }, { |
| 10529 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10530 | .block_erase = spi_block_erase_c7, |
| 10531 | } |
| 10532 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10533 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 10534 | .unlock = spi_disable_blockprotect, |
| 10535 | .write = spi_chip_write_256, |
| 10536 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 10537 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 10538 | }, |
| 10539 | |
| 10540 | { |
| 10541 | .vendor = "Spansion", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 10542 | .name = "S25FL064A/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10543 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 10544 | .manufacture_id = SPANSION_ID, |
| 10545 | .model_id = SPANSION_S25FL064A, |
| 10546 | .total_size = 8192, |
| 10547 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10548 | .feature_bits = FEATURE_WRSR_WREN, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 10549 | .tested = TEST_OK_PREW, |
| 10550 | .probe = probe_spi_rdid, |
| 10551 | .probe_timing = TIMING_ZERO, |
| 10552 | .block_erasers = |
| 10553 | { |
| 10554 | { |
| 10555 | .eraseblocks = { {64 * 1024, 128} }, |
| 10556 | .block_erase = spi_block_erase_d8, |
| 10557 | }, { |
| 10558 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10559 | .block_erase = spi_block_erase_c7, |
| 10560 | } |
| 10561 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10562 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 10563 | .unlock = spi_disable_blockprotect, |
| 10564 | .write = spi_chip_write_256, |
| 10565 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 10566 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 10567 | }, |
| 10568 | |
| 10569 | { |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 10570 | .vendor = "Spansion", |
| 10571 | .name = "S25FL204K", |
| 10572 | .bustype = BUS_SPI, |
| 10573 | .manufacture_id = SPANSION_ID, |
| 10574 | .model_id = SPANSION_S25FL204, |
| 10575 | .total_size = 512, |
| 10576 | .page_size = 256, |
| 10577 | .feature_bits = FEATURE_WRSR_WREN, |
| 10578 | .tested = TEST_UNTESTED, |
| 10579 | .probe = probe_spi_rdid, |
| 10580 | .probe_timing = TIMING_ZERO, |
| 10581 | .block_erasers = { |
| 10582 | { |
| 10583 | .eraseblocks = { {4 * 1024, 128} }, |
| 10584 | .block_erase = spi_block_erase_20, |
| 10585 | }, { |
| 10586 | .eraseblocks = { {64 * 1024, 8} }, |
| 10587 | .block_erase = spi_block_erase_d8, |
| 10588 | }, { |
| 10589 | .eraseblocks = { { 512 * 1024, 1} }, |
| 10590 | .block_erase = spi_block_erase_60, |
| 10591 | }, { |
| 10592 | .eraseblocks = { { 512 * 1024, 1} }, |
| 10593 | .block_erase = spi_block_erase_c7, |
| 10594 | } |
| 10595 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10596 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 10597 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 10598 | .write = spi_chip_write_256, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 10599 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 10600 | .voltage = {2700, 3600}, |
| 10601 | }, |
| 10602 | |
| 10603 | { |
| 10604 | .vendor = "Spansion", |
| 10605 | .name = "S25FL208K", |
| 10606 | .bustype = BUS_SPI, |
| 10607 | .manufacture_id = SPANSION_ID, |
| 10608 | .model_id = SPANSION_S25FL208, |
| 10609 | .total_size = 1024, |
| 10610 | .page_size = 256, |
| 10611 | .feature_bits = FEATURE_WRSR_WREN, |
| 10612 | .tested = TEST_UNTESTED, |
| 10613 | .probe = probe_spi_rdid, |
| 10614 | .probe_timing = TIMING_ZERO, |
| 10615 | .block_erasers = { |
| 10616 | { |
| 10617 | .eraseblocks = { {4 * 1024, 256} }, |
| 10618 | .block_erase = spi_block_erase_20, |
| 10619 | }, { |
| 10620 | .eraseblocks = { {64 * 1024, 16} }, |
| 10621 | .block_erase = spi_block_erase_d8, |
| 10622 | }, { |
| 10623 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 10624 | .block_erase = spi_block_erase_60, |
| 10625 | }, { |
| 10626 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 10627 | .block_erase = spi_block_erase_c7, |
| 10628 | } |
| 10629 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10630 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 10631 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 10632 | .write = spi_chip_write_256, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 10633 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 10634 | .voltage = {2700, 3600}, |
| 10635 | }, |
| 10636 | |
| 10637 | { |
| 10638 | .vendor = "Spansion", |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 10639 | .name = "S25FL116K/S25FL216K", /* FIXME: separate them */ |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 10640 | .bustype = BUS_SPI, |
| 10641 | .manufacture_id = SPANSION_ID, |
| 10642 | .model_id = SPANSION_S25FL216, |
| 10643 | .total_size = 2048, |
| 10644 | .page_size = 256, |
| 10645 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */ |
| 10646 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10647 | .tested = TEST_UNTESTED, |
| 10648 | .probe = probe_spi_rdid, |
| 10649 | .probe_timing = TIMING_ZERO, |
| 10650 | .block_erasers = { |
| 10651 | { |
| 10652 | .eraseblocks = { {4 * 1024, 512} }, |
| 10653 | .block_erase = spi_block_erase_20, |
| 10654 | }, { |
| 10655 | .eraseblocks = { {64 * 1024, 32} }, |
| 10656 | .block_erase = spi_block_erase_d8, |
| 10657 | }, { |
| 10658 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 10659 | .block_erase = spi_block_erase_60, |
| 10660 | }, { |
| 10661 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 10662 | .block_erase = spi_block_erase_c7, |
| 10663 | } |
| 10664 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10665 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 10666 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 10667 | .write = spi_chip_write_256, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 10668 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O (0x3B) supported */ |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 10669 | .voltage = {2700, 3600}, |
| 10670 | }, |
| 10671 | |
| 10672 | { |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 10673 | .vendor = "Spansion", |
Nikolay Martynov | 598968a | 2014-05-04 21:44:13 +0000 | [diff] [blame] | 10674 | .name = "S25FL132K", |
| 10675 | .bustype = BUS_SPI, |
| 10676 | .manufacture_id = SPANSION_ID, |
| 10677 | .model_id = SPANSION_S25FL132K, |
| 10678 | .total_size = 4096, |
| 10679 | .page_size = 256, |
| 10680 | /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 10681 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10682 | .tested = TEST_UNTESTED, |
| 10683 | .probe = probe_spi_rdid, |
| 10684 | .probe_timing = TIMING_ZERO, |
| 10685 | .block_erasers = { |
| 10686 | { |
| 10687 | .eraseblocks = { {4 * 1024, 1024} }, |
| 10688 | .block_erase = spi_block_erase_20, |
| 10689 | }, { |
| 10690 | .eraseblocks = { {64 * 1024, 64} }, |
| 10691 | .block_erase = spi_block_erase_d8, |
| 10692 | }, { |
| 10693 | .eraseblocks = { { 4096 * 1024, 1} }, |
| 10694 | .block_erase = spi_block_erase_60, |
| 10695 | }, { |
| 10696 | .eraseblocks = { { 4096 * 1024, 1} }, |
| 10697 | .block_erase = spi_block_erase_c7, |
| 10698 | } |
| 10699 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10700 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */ |
Nikolay Martynov | 598968a | 2014-05-04 21:44:13 +0000 | [diff] [blame] | 10701 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 10702 | .write = spi_chip_write_256, |
| 10703 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10704 | .voltage = {2700, 3600}, |
| 10705 | }, |
| 10706 | |
| 10707 | { |
| 10708 | .vendor = "Spansion", |
| 10709 | .name = "S25FL164K", |
| 10710 | .bustype = BUS_SPI, |
| 10711 | .manufacture_id = SPANSION_ID, |
| 10712 | .model_id = SPANSION_S25FL164K, |
| 10713 | .total_size = 8192, |
| 10714 | .page_size = 256, |
| 10715 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 10716 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10717 | .tested = TEST_OK_PREW, |
| 10718 | .probe = probe_spi_rdid, |
| 10719 | .probe_timing = TIMING_ZERO, |
| 10720 | .block_erasers = { |
| 10721 | { |
| 10722 | .eraseblocks = { {4 * 1024, 2048} }, |
| 10723 | .block_erase = spi_block_erase_20, |
| 10724 | }, { |
| 10725 | .eraseblocks = { {64 * 1024, 128} }, |
| 10726 | .block_erase = spi_block_erase_d8, |
| 10727 | }, { |
| 10728 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 10729 | .block_erase = spi_block_erase_60, |
| 10730 | }, { |
| 10731 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 10732 | .block_erase = spi_block_erase_c7, |
| 10733 | } |
| 10734 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 10735 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */ |
Nikolay Martynov | 598968a | 2014-05-04 21:44:13 +0000 | [diff] [blame] | 10736 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 10737 | .write = spi_chip_write_256, |
| 10738 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10739 | .voltage = {2700, 3600}, |
| 10740 | }, |
| 10741 | |
| 10742 | { |
| 10743 | .vendor = "Spansion", |
Jernej Å krabec | e814a9b | 2014-12-12 00:32:03 +0000 | [diff] [blame] | 10744 | .name = "S25FL127S-64kB", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 10745 | .bustype = BUS_SPI, |
| 10746 | .manufacture_id = SPANSION_ID, |
| 10747 | .model_id = SPANSION_S25FL128, |
| 10748 | .total_size = 16384, |
| 10749 | .page_size = 256, |
| 10750 | /* supports 4B addressing */ |
| 10751 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 10752 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10753 | .tested = TEST_OK_PREW, |
| 10754 | /* FIXME: we should distinguish the configuration on probing time like we do for AT45DB chips */ |
| 10755 | .probe = probe_spi_rdid, |
| 10756 | .probe_timing = TIMING_ZERO, |
| 10757 | .block_erasers = { |
| 10758 | { |
| 10759 | /* This chip supports erasing of 32 so-called "parameter sectors" with |
| 10760 | * opcode 0x20 which may be configured to be on top or bottom of the address |
| 10761 | * space. Trying to access an address outside these 4kB blocks does have no |
| 10762 | * effect on the memory contents, e.g. |
| 10763 | .eraseblocks = { |
| 10764 | {4 * 1024, 32}, |
| 10765 | {64 * 1024, 254} // inaccessible |
| 10766 | }, |
| 10767 | .block_erase = spi_block_erase_20, |
| 10768 | }, { */ |
| 10769 | .eraseblocks = { { 64 * 1024, 256} }, |
| 10770 | .block_erase = spi_block_erase_d8, |
| 10771 | }, { |
| 10772 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 10773 | .block_erase = spi_block_erase_60, |
| 10774 | }, { |
| 10775 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 10776 | .block_erase = spi_block_erase_c7, |
| 10777 | } |
| 10778 | }, |
| 10779 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 10780 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 10781 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10782 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10783 | .voltage = {2700, 3600}, |
| 10784 | }, |
| 10785 | |
| 10786 | { |
| 10787 | .vendor = "Spansion", |
| 10788 | .name = "S25FL127S-256kB", /* uniform 256kB sectors */ |
| 10789 | .bustype = BUS_SPI, |
| 10790 | .manufacture_id = SPANSION_ID, |
| 10791 | .model_id = SPANSION_S25FL128, |
| 10792 | .total_size = 16384, |
| 10793 | .page_size = 512, |
| 10794 | /* supports 4B addressing */ |
| 10795 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 10796 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10797 | .tested = TEST_UNTESTED, |
| 10798 | .probe = probe_spi_rdid, |
| 10799 | .probe_timing = TIMING_ZERO, |
| 10800 | .block_erasers = { |
| 10801 | { |
| 10802 | .eraseblocks = { {256 * 1024, 64} }, |
| 10803 | .block_erase = spi_block_erase_d8, |
| 10804 | }, { |
| 10805 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 10806 | .block_erase = spi_block_erase_60, |
| 10807 | }, { |
| 10808 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 10809 | .block_erase = spi_block_erase_c7, |
| 10810 | } |
| 10811 | }, |
| 10812 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 10813 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 10814 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10815 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10816 | .voltage = {2700, 3600}, |
| 10817 | }, |
| 10818 | |
| 10819 | { |
| 10820 | .vendor = "Spansion", |
Stefan Tauner | 88b1925 | 2014-08-06 14:36:27 +0000 | [diff] [blame] | 10821 | .name = "S25FL128P......0", /* uniform 64 kB sectors */ |
| 10822 | .bustype = BUS_SPI, |
| 10823 | .manufacture_id = SPANSION_ID, |
| 10824 | .model_id = SPANSION_S25FL128, |
| 10825 | .total_size = 16384, |
| 10826 | .page_size = 256, |
| 10827 | .feature_bits = FEATURE_WRSR_WREN, |
| 10828 | .tested = TEST_UNTESTED, |
| 10829 | .probe = probe_spi_rdid, |
| 10830 | .probe_timing = TIMING_ZERO, |
| 10831 | .block_erasers = { |
| 10832 | { |
| 10833 | .eraseblocks = { {64 * 1024, 256} }, |
| 10834 | .block_erase = spi_block_erase_20, |
| 10835 | }, { |
| 10836 | .eraseblocks = { {64 * 1024, 256} }, |
| 10837 | .block_erase = spi_block_erase_d8, |
| 10838 | }, { |
| 10839 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 10840 | .block_erase = spi_block_erase_60, |
| 10841 | }, { |
| 10842 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 10843 | .block_erase = spi_block_erase_c7, |
| 10844 | } |
| 10845 | }, |
| 10846 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
| 10847 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 10848 | .write = spi_chip_write_256, |
| 10849 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10850 | .voltage = {2700, 3600}, |
| 10851 | }, |
| 10852 | |
| 10853 | { |
| 10854 | .vendor = "Spansion", |
| 10855 | .name = "S25FL128P......1", /* uniform 256kB sectors */ |
| 10856 | .bustype = BUS_SPI, |
| 10857 | .manufacture_id = SPANSION_ID, |
| 10858 | .model_id = SPANSION_S25FL128, |
| 10859 | .total_size = 16384, |
| 10860 | .page_size = 256, |
| 10861 | .feature_bits = FEATURE_WRSR_WREN, |
| 10862 | .tested = TEST_UNTESTED, |
| 10863 | .probe = probe_spi_rdid, |
| 10864 | .probe_timing = TIMING_ZERO, |
| 10865 | .block_erasers = { |
| 10866 | { |
| 10867 | .eraseblocks = { {256 * 1024, 64} }, |
| 10868 | .block_erase = spi_block_erase_d8, |
| 10869 | }, { |
| 10870 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 10871 | .block_erase = spi_block_erase_c7, |
| 10872 | } |
| 10873 | }, |
| 10874 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
| 10875 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 10876 | .write = spi_chip_write_256, |
| 10877 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10878 | .voltage = {2700, 3600}, |
| 10879 | }, |
| 10880 | |
| 10881 | { |
| 10882 | .vendor = "Spansion", |
| 10883 | .name = "S25FL128S......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 10884 | .bustype = BUS_SPI, |
| 10885 | .manufacture_id = SPANSION_ID, |
| 10886 | .model_id = SPANSION_S25FL128, |
| 10887 | .total_size = 16384, |
| 10888 | .page_size = 256, |
| 10889 | /* supports 4B addressing */ |
| 10890 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 10891 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10892 | .tested = TEST_UNTESTED, |
| 10893 | .probe = probe_spi_rdid, |
| 10894 | .probe_timing = TIMING_ZERO, |
| 10895 | .block_erasers = { |
| 10896 | { |
Stefan Tauner | 88b1925 | 2014-08-06 14:36:27 +0000 | [diff] [blame] | 10897 | /* This chip supports erasing of the 32 so-called "parameter sectors" with |
| 10898 | * opcode 0x20. Trying to access an address outside these 4kB blocks does |
| 10899 | * have no effect on the memory contents, but sets a flag in the SR. |
| 10900 | .eraseblocks = { |
| 10901 | {4 * 1024, 32}, |
| 10902 | {64 * 1024, 254} // inaccessible |
| 10903 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 10904 | .block_erase = spi_block_erase_20, |
Stefan Tauner | 88b1925 | 2014-08-06 14:36:27 +0000 | [diff] [blame] | 10905 | }, { */ |
| 10906 | .eraseblocks = { { 64 * 1024, 256} }, |
| 10907 | .block_erase = spi_block_erase_d8, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 10908 | }, { |
Stefan Tauner | 88b1925 | 2014-08-06 14:36:27 +0000 | [diff] [blame] | 10909 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 10910 | .block_erase = spi_block_erase_60, |
| 10911 | }, { |
| 10912 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 10913 | .block_erase = spi_block_erase_c7, |
| 10914 | } |
| 10915 | }, |
| 10916 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 10917 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 10918 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10919 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10920 | .voltage = {2700, 3600}, |
| 10921 | }, |
| 10922 | |
| 10923 | { |
| 10924 | .vendor = "Spansion", |
| 10925 | .name = "S25FL128S......1", /* uniform 256 kB sectors */ |
| 10926 | .bustype = BUS_SPI, |
| 10927 | .manufacture_id = SPANSION_ID, |
| 10928 | .model_id = SPANSION_S25FL128, |
| 10929 | .total_size = 16384, |
| 10930 | .page_size = 512, |
| 10931 | /* supports 4B addressing */ |
| 10932 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 10933 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10934 | .tested = TEST_UNTESTED, |
| 10935 | .probe = probe_spi_rdid, |
| 10936 | .probe_timing = TIMING_ZERO, |
| 10937 | .block_erasers = { |
| 10938 | { |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 10939 | .eraseblocks = { {256 * 1024, 64} }, |
| 10940 | .block_erase = spi_block_erase_d8, |
| 10941 | }, { |
| 10942 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 10943 | .block_erase = spi_block_erase_60, |
| 10944 | }, { |
| 10945 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 10946 | .block_erase = spi_block_erase_c7, |
| 10947 | } |
| 10948 | }, |
| 10949 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 10950 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 10951 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 10952 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 10953 | .voltage = {2700, 3600}, |
| 10954 | }, |
| 10955 | |
| 10956 | { |
Stefan Tauner | 88b1925 | 2014-08-06 14:36:27 +0000 | [diff] [blame] | 10957 | .vendor = "Spansion", |
| 10958 | .name = "S25FL129P......0", /* hybrid: 32 (top or bottom) 4 kB sub-sectors + 64 kB sectors */ |
| 10959 | .bustype = BUS_SPI, |
| 10960 | .manufacture_id = SPANSION_ID, |
| 10961 | .model_id = SPANSION_S25FL128, |
| 10962 | .total_size = 16384, |
| 10963 | .page_size = 256, |
| 10964 | /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */ |
| 10965 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 10966 | .tested = TEST_OK_PREW, |
| 10967 | .probe = probe_spi_rdid, |
| 10968 | .probe_timing = TIMING_ZERO, |
| 10969 | .block_erasers = { |
| 10970 | { |
| 10971 | /* FIXME: This chip supports erasing of the 32 so-called "parameter sectors" with |
| 10972 | * opcode 0x20. Trying to access an address outside these 4kB blocks does have no |
| 10973 | * effect on the memory contents, but sets a flag in the SR. |
| 10974 | .eraseblocks = { |
| 10975 | {4 * 1024, 32}, |
| 10976 | {64 * 1024, 254} // inaccessible |
| 10977 | }, |
| 10978 | .block_erase = spi_block_erase_20, |
| 10979 | }, { */ |
| 10980 | /* FIXME: Additionally it also supports erase opcode 40h for the respective 2*4 kB pairs |
| 10981 | .eraseblocks = { |
| 10982 | {8 * 1024, 16}, |
| 10983 | {64 * 1024, 254} // inaccessible |
| 10984 | }, |
| 10985 | .block_erase = spi_block_erase_40, |
| 10986 | }, { */ |
| 10987 | .eraseblocks = { { 64 * 1024, 256} }, |
| 10988 | .block_erase = spi_block_erase_d8, |
| 10989 | }, { |
| 10990 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 10991 | .block_erase = spi_block_erase_60, |
| 10992 | }, { |
| 10993 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 10994 | .block_erase = spi_block_erase_c7, |
| 10995 | } |
| 10996 | }, |
| 10997 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */ |
| 10998 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 10999 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11000 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11001 | .voltage = {2700, 3600}, |
| 11002 | }, |
| 11003 | |
| 11004 | { |
| 11005 | .vendor = "Spansion", |
| 11006 | .name = "S25FL129P......1", /* uniform 256 kB sectors */ |
| 11007 | .bustype = BUS_SPI, |
| 11008 | .manufacture_id = SPANSION_ID, |
| 11009 | .model_id = SPANSION_S25FL128, |
| 11010 | .total_size = 16384, |
| 11011 | .page_size = 512, |
| 11012 | /* OTP: 506B total, 16B reserved; read 0x4B; write 0x42 */ |
| 11013 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 11014 | .tested = TEST_UNTESTED, |
| 11015 | .probe = probe_spi_rdid, |
| 11016 | .probe_timing = TIMING_ZERO, |
| 11017 | .block_erasers = { |
| 11018 | { |
| 11019 | .eraseblocks = { {256 * 1024, 64} }, |
| 11020 | .block_erase = spi_block_erase_d8, |
| 11021 | }, { |
| 11022 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 11023 | .block_erase = spi_block_erase_60, |
| 11024 | }, { |
| 11025 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 11026 | .block_erase = spi_block_erase_c7, |
| 11027 | } |
| 11028 | }, |
| 11029 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: Configuration register */ |
| 11030 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 11031 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 11032 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 11033 | .voltage = {2700, 3600}, |
| 11034 | }, |
| 11035 | |
| 11036 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11037 | .vendor = "SST", |
Idwer Vollering | f3607d1 | 2014-05-07 15:25:04 +0000 | [diff] [blame] | 11038 | .name = "SST25LF020A", |
| 11039 | .bustype = BUS_SPI, |
| 11040 | .manufacture_id = SST_ID, |
| 11041 | .model_id = SST_SST25VF020_REMS, |
| 11042 | .total_size = 256, |
| 11043 | .page_size = 256, |
| 11044 | .feature_bits = FEATURE_WRSR_EWSR, |
| 11045 | .tested = TEST_OK_PREW, |
| 11046 | .probe = probe_spi_rems, |
| 11047 | .probe_timing = TIMING_ZERO, |
| 11048 | .block_erasers = |
| 11049 | { |
| 11050 | { |
| 11051 | .eraseblocks = { {4 * 1024, 64} }, |
| 11052 | .block_erase = spi_block_erase_20, |
| 11053 | }, { |
| 11054 | .eraseblocks = { {32 * 1024, 8} }, |
| 11055 | .block_erase = spi_block_erase_52, |
| 11056 | }, { |
| 11057 | .eraseblocks = { {256 * 1024, 1} }, |
| 11058 | .block_erase = spi_block_erase_60, |
| 11059 | }, |
| 11060 | }, |
| 11061 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 11062 | .unlock = spi_disable_blockprotect, |
| 11063 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 11064 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11065 | .voltage = {2700, 3600}, |
| 11066 | }, |
| 11067 | |
| 11068 | { |
| 11069 | .vendor = "SST", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 11070 | .name = "SST25LF040A", |
| 11071 | .bustype = BUS_SPI, |
| 11072 | .manufacture_id = SST_ID, |
| 11073 | .model_id = SST_SST25VF040_REMS, |
| 11074 | .total_size = 512, |
| 11075 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 11076 | .feature_bits = FEATURE_WRSR_EWSR, |
Uwe Hermann | 4335ec8 | 2011-09-07 20:20:25 +0000 | [diff] [blame] | 11077 | .tested = TEST_OK_PREW, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 11078 | .probe = probe_spi_res2, |
| 11079 | .probe_timing = TIMING_ZERO, |
| 11080 | .block_erasers = |
| 11081 | { |
| 11082 | { |
| 11083 | .eraseblocks = { {4 * 1024, 128} }, |
| 11084 | .block_erase = spi_block_erase_20, |
| 11085 | }, { |
| 11086 | .eraseblocks = { {32 * 1024, 16} }, |
| 11087 | .block_erase = spi_block_erase_52, |
| 11088 | }, { |
| 11089 | .eraseblocks = { {512 * 1024, 1} }, |
| 11090 | .block_erase = spi_block_erase_60, |
| 11091 | }, |
| 11092 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11093 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 11094 | .unlock = spi_disable_blockprotect, |
| 11095 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 11096 | .read = spi_chip_read, |
| 11097 | .voltage = {3000, 3600}, |
| 11098 | }, |
| 11099 | |
| 11100 | { |
| 11101 | .vendor = "SST", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 11102 | .name = "SST25LF080(A)", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 11103 | .bustype = BUS_SPI, |
| 11104 | .manufacture_id = SST_ID, |
| 11105 | .model_id = SST_SST25VF080_REMS, |
| 11106 | .total_size = 1024, |
| 11107 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 11108 | .feature_bits = FEATURE_WRSR_EITHER, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 11109 | .tested = TEST_UNTESTED, |
| 11110 | .probe = probe_spi_res2, |
| 11111 | .probe_timing = TIMING_ZERO, |
| 11112 | .block_erasers = |
| 11113 | { |
| 11114 | { |
| 11115 | .eraseblocks = { {4 * 1024, 256} }, |
| 11116 | .block_erase = spi_block_erase_20, |
| 11117 | }, { |
| 11118 | .eraseblocks = { {32 * 1024, 32} }, |
| 11119 | .block_erase = spi_block_erase_52, |
| 11120 | }, { |
| 11121 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11122 | .block_erase = spi_block_erase_60, |
| 11123 | }, |
| 11124 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11125 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 11126 | .unlock = spi_disable_blockprotect, |
| 11127 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 11128 | .read = spi_chip_read, |
| 11129 | .voltage = {3000, 3600}, |
| 11130 | }, |
| 11131 | |
| 11132 | { |
| 11133 | .vendor = "SST", |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11134 | .name = "SST25VF512(A)", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 11135 | .bustype = BUS_SPI, |
| 11136 | .manufacture_id = SST_ID, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11137 | .model_id = SST_SST25VF512_REMS, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 11138 | .total_size = 64, |
| 11139 | .page_size = 256, |
| 11140 | .feature_bits = FEATURE_WRSR_EWSR, |
| 11141 | .tested = TEST_OK_PREW, |
| 11142 | .probe = probe_spi_rems, |
| 11143 | .probe_timing = TIMING_ZERO, |
| 11144 | .block_erasers = |
| 11145 | { |
| 11146 | { |
| 11147 | .eraseblocks = { {4 * 1024, 16} }, |
| 11148 | .block_erase = spi_block_erase_20, |
| 11149 | }, { |
| 11150 | .eraseblocks = { {32 * 1024, 2} }, |
| 11151 | .block_erase = spi_block_erase_52, |
| 11152 | }, { |
| 11153 | .eraseblocks = { {32 * 1024, 2} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11154 | .block_erase = spi_block_erase_d8, /* Supported by SST25VF512A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 11155 | }, { |
| 11156 | .eraseblocks = { {64 * 1024, 1} }, |
| 11157 | .block_erase = spi_block_erase_60, |
| 11158 | }, { |
| 11159 | .eraseblocks = { {64 * 1024, 1} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11160 | .block_erase = spi_block_erase_c7, /* Supported by SST25VF512A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 11161 | }, |
| 11162 | }, |
| 11163 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 11164 | .unlock = spi_disable_blockprotect, |
| 11165 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11166 | .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF512A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 11167 | .voltage = {2700, 3600}, |
| 11168 | }, |
| 11169 | |
| 11170 | { |
| 11171 | .vendor = "SST", |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11172 | .name = "SST25VF010(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11173 | .bustype = BUS_SPI, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 11174 | .manufacture_id = SST_ID, |
| 11175 | .model_id = SST_SST25VF010_REMS, |
| 11176 | .total_size = 128, |
| 11177 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 11178 | .feature_bits = FEATURE_WRSR_EWSR, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 11179 | .tested = TEST_OK_PREW, |
| 11180 | .probe = probe_spi_rems, |
| 11181 | .probe_timing = TIMING_ZERO, |
| 11182 | .block_erasers = |
| 11183 | { |
| 11184 | { |
| 11185 | .eraseblocks = { {4 * 1024, 32} }, |
| 11186 | .block_erase = spi_block_erase_20, |
| 11187 | }, { |
| 11188 | .eraseblocks = { {32 * 1024, 4} }, |
| 11189 | .block_erase = spi_block_erase_52, |
| 11190 | }, { |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 11191 | .eraseblocks = { {32 * 1024, 4} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11192 | .block_erase = spi_block_erase_d8, /* Supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 11193 | }, { |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 11194 | .eraseblocks = { {128 * 1024, 1} }, |
| 11195 | .block_erase = spi_block_erase_60, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 11196 | }, { |
| 11197 | .eraseblocks = { {128 * 1024, 1} }, |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11198 | .block_erase = spi_block_erase_c7, /* Supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 11199 | }, |
| 11200 | }, |
| 11201 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 11202 | .unlock = spi_disable_blockprotect, |
| 11203 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 11204 | .read = spi_chip_read, /* Fast read (0x0B) supported by SST25VF010A only */ |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 11205 | .voltage = {2700, 3600}, |
| 11206 | }, |
| 11207 | |
| 11208 | { |
| 11209 | .vendor = "SST", |
| 11210 | .name = "SST25VF020", |
| 11211 | .bustype = BUS_SPI, |
| 11212 | .manufacture_id = SST_ID, |
| 11213 | .model_id = SST_SST25VF020_REMS, |
| 11214 | .total_size = 256, |
| 11215 | .page_size = 256, |
| 11216 | .feature_bits = FEATURE_WRSR_EWSR, |
| 11217 | .tested = TEST_UNTESTED, |
| 11218 | .probe = probe_spi_rems, |
| 11219 | .probe_timing = TIMING_ZERO, |
| 11220 | .block_erasers = |
| 11221 | { |
| 11222 | { |
| 11223 | .eraseblocks = { {4 * 1024, 64} }, |
| 11224 | .block_erase = spi_block_erase_20, |
| 11225 | }, { |
| 11226 | .eraseblocks = { {32 * 1024, 8} }, |
| 11227 | .block_erase = spi_block_erase_52, |
| 11228 | }, { |
| 11229 | .eraseblocks = { {256 * 1024, 1} }, |
| 11230 | .block_erase = spi_block_erase_60, |
| 11231 | }, |
| 11232 | }, |
| 11233 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 11234 | .unlock = spi_disable_blockprotect, |
| 11235 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 11236 | .read = spi_chip_read, /* only */ |
| 11237 | .voltage = {2700, 3600}, |
| 11238 | }, |
| 11239 | |
| 11240 | { |
| 11241 | .vendor = "SST", |
| 11242 | .name = "SST25VF020B", |
| 11243 | .bustype = BUS_SPI, |
| 11244 | .manufacture_id = SST_ID, |
| 11245 | .model_id = SST_SST25VF020B, |
| 11246 | .total_size = 256, |
| 11247 | .page_size = 256, |
| 11248 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 11249 | .tested = TEST_OK_PREW, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 11250 | .probe = probe_spi_rdid, |
| 11251 | .probe_timing = TIMING_ZERO, |
| 11252 | .block_erasers = |
| 11253 | { |
| 11254 | { |
| 11255 | .eraseblocks = { {4 * 1024, 64} }, |
| 11256 | .block_erase = spi_block_erase_20, |
| 11257 | }, { |
| 11258 | .eraseblocks = { {32 * 1024, 8} }, |
| 11259 | .block_erase = spi_block_erase_52, |
| 11260 | }, { |
| 11261 | .eraseblocks = { {64 * 1024, 4} }, |
| 11262 | .block_erase = spi_block_erase_d8, |
| 11263 | }, { |
| 11264 | .eraseblocks = { {256 * 1024, 1} }, |
| 11265 | .block_erase = spi_block_erase_60, |
| 11266 | }, { |
| 11267 | .eraseblocks = { {256 * 1024, 1} }, |
| 11268 | .block_erase = spi_block_erase_c7, |
| 11269 | }, |
| 11270 | }, |
| 11271 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */ |
| 11272 | .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */ |
| 11273 | .write = spi_aai_write, /* AAI supported (0xAD) */ |
| 11274 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11275 | .voltage = {2700, 3600}, |
| 11276 | }, |
| 11277 | |
| 11278 | { |
| 11279 | .vendor = "SST", |
| 11280 | .name = "SST25VF040", |
| 11281 | .bustype = BUS_SPI, |
| 11282 | .manufacture_id = SST_ID, |
| 11283 | .model_id = SST_SST25VF040_REMS, |
| 11284 | .total_size = 512, |
| 11285 | .page_size = 256, |
| 11286 | .feature_bits = FEATURE_WRSR_EWSR, |
| 11287 | .tested = TEST_OK_PR, |
| 11288 | .probe = probe_spi_rems, |
| 11289 | .probe_timing = TIMING_ZERO, |
| 11290 | .block_erasers = |
| 11291 | { |
| 11292 | { |
| 11293 | .eraseblocks = { {4 * 1024, 128} }, |
| 11294 | .block_erase = spi_block_erase_20, |
| 11295 | }, { |
| 11296 | .eraseblocks = { {32 * 1024, 16} }, |
| 11297 | .block_erase = spi_block_erase_52, |
| 11298 | }, { |
| 11299 | .eraseblocks = { {512 * 1024, 1} }, |
| 11300 | .block_erase = spi_block_erase_60, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 11301 | }, |
| 11302 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11303 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 11304 | .unlock = spi_disable_blockprotect, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 11305 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 11306 | .read = spi_chip_read, |
| 11307 | .voltage = {2700, 3600}, |
| 11308 | }, |
| 11309 | |
| 11310 | { |
| 11311 | .vendor = "SST", |
| 11312 | .name = "SST25VF040B", |
| 11313 | .bustype = BUS_SPI, |
| 11314 | .manufacture_id = SST_ID, |
| 11315 | .model_id = SST_SST25VF040B, |
| 11316 | .total_size = 512, |
| 11317 | .page_size = 256, |
| 11318 | .feature_bits = FEATURE_WRSR_EWSR, |
| 11319 | .tested = TEST_OK_PREW, |
| 11320 | .probe = probe_spi_rdid, |
| 11321 | .probe_timing = TIMING_ZERO, |
| 11322 | .block_erasers = |
| 11323 | { |
| 11324 | { |
| 11325 | .eraseblocks = { {4 * 1024, 128} }, |
| 11326 | .block_erase = spi_block_erase_20, |
| 11327 | }, { |
| 11328 | .eraseblocks = { {32 * 1024, 16} }, |
| 11329 | .block_erase = spi_block_erase_52, |
| 11330 | }, { |
| 11331 | .eraseblocks = { {64 * 1024, 8} }, |
| 11332 | .block_erase = spi_block_erase_d8, |
| 11333 | }, { |
| 11334 | .eraseblocks = { {512 * 1024, 1} }, |
| 11335 | .block_erase = spi_block_erase_60, |
| 11336 | }, { |
| 11337 | .eraseblocks = { {512 * 1024, 1} }, |
| 11338 | .block_erase = spi_block_erase_c7, |
| 11339 | }, |
| 11340 | }, |
| 11341 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
| 11342 | .unlock = spi_disable_blockprotect, |
| 11343 | .write = spi_aai_write, /* AAI supported (0xAD) */ |
| 11344 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11345 | .voltage = {2700, 3600}, |
| 11346 | }, |
| 11347 | |
| 11348 | { |
| 11349 | .vendor = "SST", |
| 11350 | .name = "SST25VF040B.REMS", |
| 11351 | .bustype = BUS_SPI, |
| 11352 | .manufacture_id = SST_ID, |
| 11353 | .model_id = SST_SST25VF040B_REMS, |
| 11354 | .total_size = 512, |
| 11355 | .page_size = 256, |
| 11356 | .feature_bits = FEATURE_WRSR_EWSR, |
| 11357 | .tested = TEST_OK_PREW, |
| 11358 | .probe = probe_spi_rems, |
| 11359 | .probe_timing = TIMING_ZERO, |
| 11360 | .block_erasers = |
| 11361 | { |
| 11362 | { |
| 11363 | .eraseblocks = { {4 * 1024, 128} }, |
| 11364 | .block_erase = spi_block_erase_20, |
| 11365 | }, { |
| 11366 | .eraseblocks = { {32 * 1024, 16} }, |
| 11367 | .block_erase = spi_block_erase_52, |
| 11368 | }, { |
| 11369 | .eraseblocks = { {64 * 1024, 8} }, |
| 11370 | .block_erase = spi_block_erase_d8, |
| 11371 | }, { |
| 11372 | .eraseblocks = { {512 * 1024, 1} }, |
| 11373 | .block_erase = spi_block_erase_60, |
| 11374 | }, { |
| 11375 | .eraseblocks = { {512 * 1024, 1} }, |
| 11376 | .block_erase = spi_block_erase_c7, |
| 11377 | }, |
| 11378 | }, |
| 11379 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
| 11380 | .unlock = spi_disable_blockprotect, |
| 11381 | .write = spi_aai_write, |
| 11382 | .read = spi_chip_read, |
| 11383 | .voltage = {2700, 3600}, |
| 11384 | }, |
| 11385 | |
| 11386 | { |
| 11387 | .vendor = "SST", |
| 11388 | .name = "SST25VF080B", |
| 11389 | .bustype = BUS_SPI, |
| 11390 | .manufacture_id = SST_ID, |
| 11391 | .model_id = SST_SST25VF080B, |
| 11392 | .total_size = 1024, |
| 11393 | .page_size = 256, |
| 11394 | .feature_bits = FEATURE_WRSR_EWSR, |
| 11395 | .tested = TEST_OK_PREW, |
| 11396 | .probe = probe_spi_rdid, |
| 11397 | .probe_timing = TIMING_ZERO, |
| 11398 | .block_erasers = |
| 11399 | { |
| 11400 | { |
| 11401 | .eraseblocks = { {4 * 1024, 256} }, |
| 11402 | .block_erase = spi_block_erase_20, |
| 11403 | }, { |
| 11404 | .eraseblocks = { {32 * 1024, 32} }, |
| 11405 | .block_erase = spi_block_erase_52, |
| 11406 | }, { |
| 11407 | .eraseblocks = { {64 * 1024, 16} }, |
| 11408 | .block_erase = spi_block_erase_d8, |
| 11409 | }, { |
| 11410 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11411 | .block_erase = spi_block_erase_60, |
| 11412 | }, { |
| 11413 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11414 | .block_erase = spi_block_erase_c7, |
| 11415 | }, |
| 11416 | }, |
| 11417 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
| 11418 | .unlock = spi_disable_blockprotect, |
| 11419 | .write = spi_aai_write, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 11420 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 11421 | .voltage = {2700, 3600}, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 11422 | }, |
| 11423 | |
| 11424 | { |
| 11425 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11426 | .name = "SST25VF016B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11427 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11428 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11429 | .model_id = SST_SST25VF016B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11430 | .total_size = 2048, |
| 11431 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 11432 | .feature_bits = FEATURE_WRSR_EITHER, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 11433 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11434 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 11435 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 11436 | .block_erasers = |
| 11437 | { |
| 11438 | { |
| 11439 | .eraseblocks = { {4 * 1024, 512} }, |
| 11440 | .block_erase = spi_block_erase_20, |
| 11441 | }, { |
| 11442 | .eraseblocks = { {32 * 1024, 64} }, |
| 11443 | .block_erase = spi_block_erase_52, |
| 11444 | }, { |
| 11445 | .eraseblocks = { {64 * 1024, 32} }, |
| 11446 | .block_erase = spi_block_erase_d8, |
| 11447 | }, { |
| 11448 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 11449 | .block_erase = spi_block_erase_60, |
| 11450 | }, { |
| 11451 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 11452 | .block_erase = spi_block_erase_c7, |
| 11453 | }, |
| 11454 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11455 | .printlock = spi_prettyprint_status_register_sst25vf016, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11456 | .unlock = spi_disable_blockprotect, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 11457 | .write = spi_aai_write, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11458 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11459 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11460 | }, |
| 11461 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11462 | { |
| 11463 | .vendor = "SST", |
| 11464 | .name = "SST25VF032B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11465 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11466 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11467 | .model_id = SST_SST25VF032B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11468 | .total_size = 4096, |
| 11469 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 11470 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | fcf6a8c | 2011-05-18 01:32:00 +0000 | [diff] [blame] | 11471 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11472 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 11473 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 11474 | .block_erasers = |
| 11475 | { |
| 11476 | { |
| 11477 | .eraseblocks = { {4 * 1024, 1024} }, |
| 11478 | .block_erase = spi_block_erase_20, |
| 11479 | }, { |
| 11480 | .eraseblocks = { {32 * 1024, 128} }, |
| 11481 | .block_erase = spi_block_erase_52, |
| 11482 | }, { |
| 11483 | .eraseblocks = { {64 * 1024, 64} }, |
| 11484 | .block_erase = spi_block_erase_d8, |
| 11485 | }, { |
| 11486 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 11487 | .block_erase = spi_block_erase_60, |
| 11488 | }, { |
| 11489 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 11490 | .block_erase = spi_block_erase_c7, |
| 11491 | }, |
| 11492 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11493 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 11494 | .unlock = spi_disable_blockprotect, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 11495 | .write = spi_aai_write, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 11496 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11497 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 11498 | }, |
| 11499 | |
| 11500 | { |
| 11501 | .vendor = "SST", |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 11502 | .name = "SST25VF064C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11503 | .bustype = BUS_SPI, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 11504 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11505 | .model_id = SST_SST25VF064C, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 11506 | .total_size = 8192, |
| 11507 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 11508 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 11509 | .tested = TEST_OK_PREW, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 11510 | .probe = probe_spi_rdid, |
| 11511 | .probe_timing = TIMING_ZERO, |
| 11512 | .block_erasers = |
| 11513 | { |
| 11514 | { |
| 11515 | .eraseblocks = { {4 * 1024, 2048} }, |
| 11516 | .block_erase = spi_block_erase_20, |
| 11517 | }, { |
| 11518 | .eraseblocks = { {32 * 1024, 256} }, |
| 11519 | .block_erase = spi_block_erase_52, |
| 11520 | }, { |
| 11521 | .eraseblocks = { {64 * 1024, 128} }, |
| 11522 | .block_erase = spi_block_erase_d8, |
| 11523 | }, { |
| 11524 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 11525 | .block_erase = spi_block_erase_60, |
| 11526 | }, { |
| 11527 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 11528 | .block_erase = spi_block_erase_c7, |
| 11529 | }, |
| 11530 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 11531 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 11532 | .unlock = spi_disable_blockprotect, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 11533 | .write = spi_chip_write_256, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 11534 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11535 | .voltage = {2700, 3600}, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 11536 | }, |
| 11537 | |
| 11538 | { |
| 11539 | .vendor = "SST", |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 11540 | .name = "SST25WF512", |
| 11541 | .bustype = BUS_SPI, |
| 11542 | .manufacture_id = SST_ID, |
| 11543 | .model_id = SST_SST25WF512, |
| 11544 | .total_size = 64, |
| 11545 | .page_size = 256, |
| 11546 | .feature_bits = FEATURE_WRSR_EITHER, |
| 11547 | .tested = TEST_UNTESTED, |
| 11548 | .probe = probe_spi_rdid, |
| 11549 | .probe_timing = TIMING_ZERO, |
| 11550 | .block_erasers = |
| 11551 | { |
| 11552 | { |
| 11553 | .eraseblocks = { {4 * 1024, 16} }, |
| 11554 | .block_erase = spi_block_erase_20, |
| 11555 | }, { |
| 11556 | .eraseblocks = { {32 * 1024, 2} }, |
| 11557 | .block_erase = spi_block_erase_52, |
| 11558 | }, { |
| 11559 | .eraseblocks = { {1024 * 64, 1} }, |
| 11560 | .block_erase = spi_block_erase_60, |
| 11561 | }, { |
| 11562 | .eraseblocks = { {1024 * 64, 1} }, |
| 11563 | .block_erase = spi_block_erase_c7, |
| 11564 | }, |
| 11565 | }, |
Jason Harper | 43ddef0 | 2014-05-04 00:55:24 +0000 | [diff] [blame] | 11566 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 11567 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 11568 | .write = spi_aai_write, |
| 11569 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11570 | .voltage = {1650, 1950}, |
| 11571 | }, |
| 11572 | |
| 11573 | { |
| 11574 | .vendor = "SST", |
| 11575 | .name = "SST25WF010", |
| 11576 | .bustype = BUS_SPI, |
| 11577 | .manufacture_id = SST_ID, |
| 11578 | .model_id = SST_SST25WF010, |
| 11579 | .total_size = 128, |
| 11580 | .page_size = 256, |
| 11581 | .feature_bits = FEATURE_WRSR_EITHER, |
| 11582 | .tested = TEST_UNTESTED, |
| 11583 | .probe = probe_spi_rdid, |
| 11584 | .probe_timing = TIMING_ZERO, |
| 11585 | .block_erasers = |
| 11586 | { |
| 11587 | { |
| 11588 | .eraseblocks = { {4 * 1024, 32} }, |
| 11589 | .block_erase = spi_block_erase_20, |
| 11590 | }, { |
| 11591 | .eraseblocks = { {32 * 1024, 4} }, |
| 11592 | .block_erase = spi_block_erase_52, |
| 11593 | }, { |
| 11594 | .eraseblocks = { {1024 * 128, 1} }, |
| 11595 | .block_erase = spi_block_erase_60, |
| 11596 | }, { |
| 11597 | .eraseblocks = { {1024 * 128, 1} }, |
| 11598 | .block_erase = spi_block_erase_c7, |
| 11599 | }, |
| 11600 | }, |
Jason Harper | 43ddef0 | 2014-05-04 00:55:24 +0000 | [diff] [blame] | 11601 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 11602 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 11603 | .write = spi_aai_write, |
| 11604 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11605 | .voltage = {1650, 1950}, |
| 11606 | }, |
| 11607 | |
| 11608 | { |
| 11609 | .vendor = "SST", |
| 11610 | .name = "SST25WF020", |
| 11611 | .bustype = BUS_SPI, |
| 11612 | .manufacture_id = SST_ID, |
| 11613 | .model_id = SST_SST25WF020, |
| 11614 | .total_size = 256, |
| 11615 | .page_size = 256, |
| 11616 | .feature_bits = FEATURE_WRSR_EITHER, |
| 11617 | .tested = TEST_UNTESTED, |
| 11618 | .probe = probe_spi_rdid, |
| 11619 | .probe_timing = TIMING_ZERO, |
| 11620 | .block_erasers = |
| 11621 | { |
| 11622 | { |
| 11623 | .eraseblocks = { {4 * 1024, 64} }, |
| 11624 | .block_erase = spi_block_erase_20, |
| 11625 | }, { |
| 11626 | .eraseblocks = { {32 * 1024, 8} }, |
| 11627 | .block_erase = spi_block_erase_52, |
| 11628 | }, { |
| 11629 | .eraseblocks = { {64 * 1024, 4} }, |
| 11630 | .block_erase = spi_block_erase_d8, |
| 11631 | }, { |
| 11632 | .eraseblocks = { {1024 * 256, 1} }, |
| 11633 | .block_erase = spi_block_erase_60, |
| 11634 | }, { |
| 11635 | .eraseblocks = { {1024 * 256, 1} }, |
| 11636 | .block_erase = spi_block_erase_c7, |
| 11637 | }, |
| 11638 | }, |
Jason Harper | 43ddef0 | 2014-05-04 00:55:24 +0000 | [diff] [blame] | 11639 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 11640 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 11641 | .write = spi_aai_write, |
| 11642 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11643 | .voltage = {1650, 1950}, |
| 11644 | }, |
| 11645 | |
| 11646 | { |
| 11647 | .vendor = "SST", |
| 11648 | .name = "SST25WF040", |
| 11649 | .bustype = BUS_SPI, |
| 11650 | .manufacture_id = SST_ID, |
| 11651 | .model_id = SST_SST25WF040, |
| 11652 | .total_size = 512, |
| 11653 | .page_size = 256, |
| 11654 | .feature_bits = FEATURE_WRSR_EITHER, |
| 11655 | .tested = TEST_UNTESTED, |
| 11656 | .probe = probe_spi_rdid, |
| 11657 | .probe_timing = TIMING_ZERO, |
| 11658 | .block_erasers = |
| 11659 | { |
| 11660 | { |
| 11661 | .eraseblocks = { {4 * 1024, 128} }, |
| 11662 | .block_erase = spi_block_erase_20, |
| 11663 | }, { |
| 11664 | .eraseblocks = { {32 * 1024, 16} }, |
| 11665 | .block_erase = spi_block_erase_52, |
| 11666 | }, { |
| 11667 | .eraseblocks = { {64 * 1024, 8} }, |
| 11668 | .block_erase = spi_block_erase_d8, |
| 11669 | }, { |
| 11670 | .eraseblocks = { {1024 * 512, 1} }, |
| 11671 | .block_erase = spi_block_erase_60, |
| 11672 | }, { |
| 11673 | .eraseblocks = { {1024 * 512, 1} }, |
| 11674 | .block_erase = spi_block_erase_c7, |
| 11675 | }, |
| 11676 | }, |
Jason Harper | 43ddef0 | 2014-05-04 00:55:24 +0000 | [diff] [blame] | 11677 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 11678 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 11679 | .write = spi_aai_write, |
| 11680 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11681 | .voltage = {1650, 1950}, |
| 11682 | }, |
| 11683 | |
| 11684 | { |
| 11685 | .vendor = "SST", |
| 11686 | .name = "SST25WF080", |
| 11687 | .bustype = BUS_SPI, |
| 11688 | .manufacture_id = SST_ID, |
| 11689 | .model_id = SST_SST25WF080, |
| 11690 | .total_size = 1024, |
| 11691 | .page_size = 256, |
| 11692 | .feature_bits = FEATURE_WRSR_EITHER, |
| 11693 | .tested = TEST_OK_PREW, |
| 11694 | .probe = probe_spi_rdid, |
| 11695 | .probe_timing = TIMING_ZERO, |
| 11696 | .block_erasers = |
| 11697 | { |
| 11698 | { |
| 11699 | .eraseblocks = { {4 * 1024, 256} }, |
| 11700 | .block_erase = spi_block_erase_20, |
| 11701 | }, { |
| 11702 | .eraseblocks = { {32 * 1024, 32} }, |
| 11703 | .block_erase = spi_block_erase_52, |
| 11704 | }, { |
| 11705 | .eraseblocks = { {64 * 1024, 16} }, |
| 11706 | .block_erase = spi_block_erase_d8, |
| 11707 | }, { |
| 11708 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11709 | .block_erase = spi_block_erase_60, |
| 11710 | }, { |
| 11711 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11712 | .block_erase = spi_block_erase_c7, |
| 11713 | }, |
| 11714 | }, |
| 11715 | .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */ |
| 11716 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 11717 | .write = spi_aai_write, |
| 11718 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 11719 | .voltage = {1650, 1950}, |
| 11720 | }, |
| 11721 | |
| 11722 | { |
| 11723 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11724 | .name = "SST28SF040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11725 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11726 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11727 | .model_id = SST_SST28SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11728 | .total_size = 512, |
| 11729 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11730 | .feature_bits = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11731 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11732 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 11733 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11734 | .block_erasers = |
| 11735 | { |
| 11736 | { |
| 11737 | .eraseblocks = { {128, 4096} }, |
| 11738 | .block_erase = erase_sector_28sf040, |
| 11739 | }, { |
| 11740 | .eraseblocks = { {512 * 1024, 1} }, |
| 11741 | .block_erase = erase_chip_28sf040, |
| 11742 | } |
| 11743 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 11744 | .unlock = unprotect_28sf040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11745 | .write = write_28sf040, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11746 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11747 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11748 | }, |
| 11749 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11750 | { |
| 11751 | .vendor = "SST", |
| 11752 | .name = "SST29EE010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11753 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11754 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11755 | .model_id = SST_SST29EE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11756 | .total_size = 128, |
| 11757 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11758 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 11759 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11760 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 11761 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11762 | .block_erasers = |
| 11763 | { |
| 11764 | { |
| 11765 | .eraseblocks = { {128 * 1024, 1} }, |
| 11766 | .block_erase = erase_chip_block_jedec, |
| 11767 | } |
| 11768 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11769 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11770 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11771 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11772 | }, |
| 11773 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11774 | { |
| 11775 | .vendor = "SST", |
| 11776 | .name = "SST29LE010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11777 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11778 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11779 | .model_id = SST_SST29LE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11780 | .total_size = 128, |
| 11781 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11782 | .feature_bits = FEATURE_LONG_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11783 | .tested = TEST_UNTESTED, |
| 11784 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 11785 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11786 | .block_erasers = |
| 11787 | { |
| 11788 | { |
| 11789 | .eraseblocks = { {128 * 1024, 1} }, |
| 11790 | .block_erase = erase_chip_block_jedec, |
| 11791 | } |
| 11792 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11793 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11794 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11795 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11796 | }, |
| 11797 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11798 | { |
| 11799 | .vendor = "SST", |
| 11800 | .name = "SST29EE020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11801 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11802 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11803 | .model_id = SST_SST29EE020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11804 | .total_size = 256, |
| 11805 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11806 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 11807 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11808 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11809 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11810 | .block_erasers = |
| 11811 | { |
| 11812 | { |
| 11813 | .eraseblocks = { {256 * 1024, 1} }, |
| 11814 | .block_erase = erase_chip_block_jedec, |
| 11815 | } |
| 11816 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11817 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11818 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11819 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11820 | }, |
| 11821 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11822 | { |
| 11823 | .vendor = "SST", |
| 11824 | .name = "SST29LE020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11825 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11826 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11827 | .model_id = SST_SST29LE020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11828 | .total_size = 256, |
| 11829 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11830 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 11831 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11832 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 11833 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11834 | .block_erasers = |
| 11835 | { |
| 11836 | { |
| 11837 | .eraseblocks = { {256 * 1024, 1} }, |
| 11838 | .block_erase = erase_chip_block_jedec, |
| 11839 | } |
| 11840 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11841 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11842 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11843 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11844 | }, |
| 11845 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11846 | { |
| 11847 | .vendor = "SST", |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 11848 | .name = "SST39SF512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11849 | .bustype = BUS_PARALLEL, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 11850 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11851 | .model_id = SST_SST39SF512, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 11852 | .total_size = 64, |
| 11853 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11854 | .feature_bits = FEATURE_EITHER_RESET, |
Idwer Vollering | 7913fb4 | 2011-03-07 15:32:58 +0000 | [diff] [blame] | 11855 | .tested = TEST_OK_PREW, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 11856 | .probe = probe_jedec, |
| 11857 | .probe_timing = 1, /* 150 ns */ |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 11858 | .block_erasers = |
| 11859 | { |
| 11860 | { |
| 11861 | .eraseblocks = { {4 * 1024, 16} }, |
| 11862 | .block_erase = erase_sector_jedec, |
| 11863 | }, { |
| 11864 | .eraseblocks = { {64 * 1024, 1} }, |
| 11865 | .block_erase = erase_chip_block_jedec, |
| 11866 | } |
| 11867 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11868 | .write = write_jedec_1, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 11869 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11870 | .voltage = {4500, 5500}, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 11871 | }, |
| 11872 | |
| 11873 | { |
| 11874 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11875 | .name = "SST39SF010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11876 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11877 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11878 | .model_id = SST_SST39SF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11879 | .total_size = 128, |
| 11880 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11881 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 11882 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11883 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 11884 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11885 | .block_erasers = |
| 11886 | { |
| 11887 | { |
| 11888 | .eraseblocks = { {4 * 1024, 32} }, |
| 11889 | .block_erase = erase_sector_jedec, |
| 11890 | }, { |
| 11891 | .eraseblocks = { {128 * 1024, 1} }, |
| 11892 | .block_erase = erase_chip_block_jedec, |
| 11893 | } |
| 11894 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11895 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11896 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11897 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11898 | }, |
| 11899 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11900 | { |
| 11901 | .vendor = "SST", |
| 11902 | .name = "SST39SF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11903 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11904 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11905 | .model_id = SST_SST39SF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11906 | .total_size = 256, |
| 11907 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11908 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 19f46f2 | 2011-06-18 22:56:14 +0000 | [diff] [blame] | 11909 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11910 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 11911 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11912 | .block_erasers = |
| 11913 | { |
| 11914 | { |
| 11915 | .eraseblocks = { {4 * 1024, 64} }, |
| 11916 | .block_erase = erase_sector_jedec, |
| 11917 | }, { |
| 11918 | .eraseblocks = { {256 * 1024, 1} }, |
| 11919 | .block_erase = erase_chip_block_jedec, |
| 11920 | } |
| 11921 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11922 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11923 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11924 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11925 | }, |
| 11926 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11927 | { |
| 11928 | .vendor = "SST", |
| 11929 | .name = "SST39SF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11930 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11931 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11932 | .model_id = SST_SST39SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11933 | .total_size = 512, |
| 11934 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11935 | .feature_bits = FEATURE_EITHER_RESET, |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 11936 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11937 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 11938 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11939 | .block_erasers = |
| 11940 | { |
| 11941 | { |
| 11942 | .eraseblocks = { {4 * 1024, 128} }, |
| 11943 | .block_erase = erase_sector_jedec, |
| 11944 | }, { |
| 11945 | .eraseblocks = { {512 * 1024, 1} }, |
| 11946 | .block_erase = erase_chip_block_jedec, |
| 11947 | } |
| 11948 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11949 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11950 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11951 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11952 | }, |
| 11953 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11954 | { |
| 11955 | .vendor = "SST", |
| 11956 | .name = "SST39VF512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11957 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11958 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11959 | .model_id = SST_SST39VF512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11960 | .total_size = 64, |
| 11961 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11962 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 11963 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11964 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 11965 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11966 | .block_erasers = |
| 11967 | { |
| 11968 | { |
| 11969 | .eraseblocks = { {4 * 1024, 16} }, |
| 11970 | .block_erase = erase_sector_jedec, |
| 11971 | }, { |
| 11972 | .eraseblocks = { {64 * 1024, 1} }, |
| 11973 | .block_erase = erase_chip_block_jedec, |
| 11974 | } |
| 11975 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11976 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11977 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11978 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11979 | }, |
| 11980 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11981 | { |
| 11982 | .vendor = "SST", |
| 11983 | .name = "SST39VF010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11984 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11985 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11986 | .model_id = SST_SST39VF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11987 | .total_size = 128, |
| 11988 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11989 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 11990 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11991 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 11992 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11993 | .block_erasers = |
| 11994 | { |
| 11995 | { |
| 11996 | .eraseblocks = { {4 * 1024, 32} }, |
| 11997 | .block_erase = erase_sector_jedec, |
| 11998 | }, { |
| 11999 | .eraseblocks = { {128 * 1024, 1} }, |
| 12000 | .block_erase = erase_chip_block_jedec, |
| 12001 | } |
| 12002 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12003 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12004 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12005 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12006 | }, |
| 12007 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12008 | { |
| 12009 | .vendor = "SST", |
| 12010 | .name = "SST39VF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12011 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12012 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12013 | .model_id = SST_SST39VF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12014 | .total_size = 256, |
| 12015 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12016 | .feature_bits = FEATURE_EITHER_RESET, |
| 12017 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12018 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 12019 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12020 | .block_erasers = |
| 12021 | { |
| 12022 | { |
| 12023 | .eraseblocks = { {4 * 1024, 64} }, |
| 12024 | .block_erase = erase_sector_jedec, |
| 12025 | }, { |
| 12026 | .eraseblocks = { {256 * 1024, 1} }, |
| 12027 | .block_erase = erase_chip_block_jedec, |
| 12028 | } |
| 12029 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12030 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12031 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12032 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12033 | }, |
| 12034 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12035 | { |
| 12036 | .vendor = "SST", |
| 12037 | .name = "SST39VF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12038 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12039 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12040 | .model_id = SST_SST39VF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12041 | .total_size = 512, |
| 12042 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12043 | .feature_bits = FEATURE_EITHER_RESET, |
| 12044 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12045 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 12046 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12047 | .block_erasers = |
| 12048 | { |
| 12049 | { |
| 12050 | .eraseblocks = { {4 * 1024, 128} }, |
| 12051 | .block_erase = erase_sector_jedec, |
| 12052 | }, { |
| 12053 | .eraseblocks = { {512 * 1024, 1} }, |
| 12054 | .block_erase = erase_chip_block_jedec, |
| 12055 | } |
| 12056 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12057 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12058 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12059 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 90eff15 | 2008-12-08 23:51:45 +0000 | [diff] [blame] | 12060 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12061 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12062 | { |
| 12063 | .vendor = "SST", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 12064 | .name = "SST39VF080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12065 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 12066 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12067 | .model_id = SST_SST39VF080, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 12068 | .total_size = 1024, |
| 12069 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12070 | .feature_bits = FEATURE_EITHER_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 12071 | .tested = TEST_UNTESTED, |
| 12072 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 12073 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12074 | .block_erasers = |
| 12075 | { |
| 12076 | { |
| 12077 | .eraseblocks = { {4 * 1024, 256} }, |
| 12078 | .block_erase = erase_sector_jedec, |
| 12079 | }, { |
| 12080 | .eraseblocks = { {64 * 1024, 16} }, |
| 12081 | .block_erase = erase_block_jedec, |
| 12082 | }, { |
| 12083 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12084 | .block_erase = erase_chip_block_jedec, |
| 12085 | } |
| 12086 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12087 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12088 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12089 | .voltage = {2700, 3600}, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 12090 | }, |
| 12091 | |
| 12092 | { |
| 12093 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12094 | .name = "SST49LF002A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12095 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12096 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12097 | .model_id = SST_SST49LF002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12098 | .total_size = 256, |
| 12099 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12100 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 12101 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12102 | .probe = probe_jedec, |
| 12103 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12104 | .block_erasers = |
| 12105 | { |
| 12106 | { |
| 12107 | .eraseblocks = { {4 * 1024, 64} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 12108 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12109 | }, { |
| 12110 | .eraseblocks = { {16 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 12111 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12112 | }, { |
| 12113 | .eraseblocks = { {256 * 1024, 1} }, |
| 12114 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 12115 | } |
| 12116 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12117 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 12118 | .unlock = unlock_sst_fwhub, |
| 12119 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12120 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12121 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12122 | }, |
| 12123 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12124 | { |
| 12125 | .vendor = "SST", |
| 12126 | .name = "SST49LF003A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12127 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12128 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12129 | .model_id = SST_SST49LF003A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12130 | .total_size = 384, |
| 12131 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12132 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 12133 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12134 | .probe = probe_jedec, |
| 12135 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12136 | .block_erasers = |
| 12137 | { |
| 12138 | { |
| 12139 | .eraseblocks = { {4 * 1024, 96} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 12140 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12141 | }, { |
| 12142 | .eraseblocks = { {64 * 1024, 6} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 12143 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12144 | }, { |
| 12145 | .eraseblocks = { {384 * 1024, 1} }, |
| 12146 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 12147 | } |
| 12148 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12149 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 12150 | .unlock = unlock_sst_fwhub, |
| 12151 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12152 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12153 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12154 | }, |
| 12155 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12156 | { |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 12157 | /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB) |
| 12158 | * and is only honored for 64k block erase, but not 4k sector erase. |
| 12159 | */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12160 | .vendor = "SST", |
| 12161 | .name = "SST49LF004A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12162 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12163 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12164 | .model_id = SST_SST49LF004A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12165 | .total_size = 512, |
| 12166 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12167 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 12168 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12169 | .probe = probe_jedec, |
| 12170 | .probe_timing = 1, /* 150 ns */ |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 12171 | .block_erasers = |
| 12172 | { |
| 12173 | { |
| 12174 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 12175 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 12176 | }, { |
| 12177 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 12178 | .block_erase = erase_block_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 12179 | }, { |
| 12180 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12181 | .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] | 12182 | }, |
| 12183 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12184 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 12185 | .unlock = unlock_sst_fwhub, |
| 12186 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12187 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12188 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12189 | }, |
| 12190 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12191 | { |
| 12192 | .vendor = "SST", |
| 12193 | .name = "SST49LF004C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12194 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12195 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12196 | .model_id = SST_SST49LF004C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12197 | .total_size = 512, |
| 12198 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12199 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12200 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12201 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 12202 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12203 | .block_erasers = |
| 12204 | { |
| 12205 | { |
| 12206 | .eraseblocks = { {4 * 1024, 128} }, |
| 12207 | .block_erase = erase_sector_49lfxxxc, |
| 12208 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 12209 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12210 | {64 * 1024, 7}, |
| 12211 | {32 * 1024, 1}, |
| 12212 | {8 * 1024, 2}, |
| 12213 | {16 * 1024, 1}, |
| 12214 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 12215 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12216 | } |
| 12217 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12218 | .printlock = printlock_regspace2_block_eraser_1, |
| 12219 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 12220 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12221 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12222 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12223 | }, |
| 12224 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12225 | { |
| 12226 | .vendor = "SST", |
| 12227 | .name = "SST49LF008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12228 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12229 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12230 | .model_id = SST_SST49LF008A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12231 | .total_size = 1024, |
| 12232 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12233 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 12234 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12235 | .probe = probe_jedec, |
| 12236 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12237 | .block_erasers = |
| 12238 | { |
| 12239 | { |
| 12240 | .eraseblocks = { {4 * 1024, 256} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 12241 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12242 | }, { |
| 12243 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 12244 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12245 | }, { |
| 12246 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12247 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 12248 | } |
| 12249 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12250 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 12251 | .unlock = unlock_sst_fwhub, |
| 12252 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12253 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12254 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12255 | }, |
| 12256 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12257 | { |
| 12258 | .vendor = "SST", |
| 12259 | .name = "SST49LF008C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12260 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12261 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12262 | .model_id = SST_SST49LF008C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12263 | .total_size = 1024, |
| 12264 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12265 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12266 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12267 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 12268 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12269 | .block_erasers = |
| 12270 | { |
| 12271 | { |
| 12272 | .eraseblocks = { {4 * 1024, 256} }, |
| 12273 | .block_erase = erase_sector_49lfxxxc, |
| 12274 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 12275 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12276 | {64 * 1024, 15}, |
| 12277 | {32 * 1024, 1}, |
| 12278 | {8 * 1024, 2}, |
| 12279 | {16 * 1024, 1}, |
| 12280 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 12281 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12282 | } |
| 12283 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12284 | .printlock = printlock_regspace2_block_eraser_1, |
| 12285 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 12286 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12287 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12288 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12289 | }, |
| 12290 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12291 | { |
| 12292 | .vendor = "SST", |
| 12293 | .name = "SST49LF016C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12294 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12295 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12296 | .model_id = SST_SST49LF016C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12297 | .total_size = 2048, |
| 12298 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12299 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12300 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12301 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 12302 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12303 | .block_erasers = |
| 12304 | { |
| 12305 | { |
| 12306 | .eraseblocks = { {4 * 1024, 512} }, |
| 12307 | .block_erase = erase_sector_49lfxxxc, |
| 12308 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 12309 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12310 | {64 * 1024, 31}, |
| 12311 | {32 * 1024, 1}, |
| 12312 | {8 * 1024, 2}, |
| 12313 | {16 * 1024, 1}, |
| 12314 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 12315 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12316 | } |
| 12317 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12318 | .printlock = printlock_regspace2_block_eraser_1, |
| 12319 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 12320 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12321 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12322 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12323 | }, |
| 12324 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12325 | { |
| 12326 | .vendor = "SST", |
| 12327 | .name = "SST49LF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12328 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12329 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12330 | .model_id = SST_SST49LF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12331 | .total_size = 256, |
| 12332 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12333 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 12334 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12335 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 12336 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12337 | .block_erasers = |
| 12338 | { |
| 12339 | { |
| 12340 | .eraseblocks = { {4 * 1024, 64} }, |
| 12341 | .block_erase = erase_sector_jedec, |
| 12342 | }, { |
| 12343 | .eraseblocks = { {16 * 1024, 16} }, |
| 12344 | .block_erase = erase_block_jedec, |
| 12345 | }, { |
| 12346 | .eraseblocks = { {256 * 1024, 1} }, |
| 12347 | .block_erase = NULL, |
| 12348 | } |
| 12349 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12350 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12351 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12352 | .voltage = {3000, 3600}, |
Sven Schnelle | c208dfb | 2009-01-07 12:35:09 +0000 | [diff] [blame] | 12353 | }, |
| 12354 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12355 | { |
| 12356 | .vendor = "SST", |
| 12357 | .name = "SST49LF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12358 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12359 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12360 | .model_id = SST_SST49LF020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12361 | .total_size = 256, |
Carl-Daniel Hailfinger | da65432 | 2009-07-23 01:44:38 +0000 | [diff] [blame] | 12362 | .page_size = 4 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12363 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 12364 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12365 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 12366 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12367 | .block_erasers = |
| 12368 | { |
| 12369 | { |
| 12370 | .eraseblocks = { {4 * 1024, 64} }, |
| 12371 | .block_erase = erase_sector_jedec, |
| 12372 | }, { |
| 12373 | .eraseblocks = { {16 * 1024, 16} }, |
| 12374 | .block_erase = erase_block_jedec, |
| 12375 | }, { |
| 12376 | .eraseblocks = { {256 * 1024, 1} }, |
| 12377 | .block_erase = NULL, |
| 12378 | } |
| 12379 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12380 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12381 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12382 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12383 | }, |
| 12384 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12385 | { |
| 12386 | .vendor = "SST", |
| 12387 | .name = "SST49LF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12388 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12389 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12390 | .model_id = SST_SST49LF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12391 | .total_size = 512, |
| 12392 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12393 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 12394 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12395 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 12396 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12397 | .block_erasers = |
| 12398 | { |
| 12399 | { |
| 12400 | .eraseblocks = { {4 * 1024, 128} }, |
| 12401 | .block_erase = erase_sector_jedec, |
| 12402 | }, { |
| 12403 | .eraseblocks = { {64 * 1024, 8} }, |
| 12404 | .block_erase = erase_block_jedec, |
| 12405 | }, { |
| 12406 | .eraseblocks = { {512 * 1024, 1} }, |
| 12407 | .block_erase = NULL, |
| 12408 | } |
| 12409 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12410 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12411 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12412 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12413 | }, |
| 12414 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12415 | { |
| 12416 | .vendor = "SST", |
| 12417 | .name = "SST49LF040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12418 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12419 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12420 | .model_id = SST_SST49LF040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12421 | .total_size = 512, |
| 12422 | .page_size = 64 * 1024, |
Joshua Roys | a84b0bd | 2010-08-16 22:12:39 +0000 | [diff] [blame] | 12423 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12424 | .tested = TEST_OK_PR, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12425 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12426 | .probe_timing = 1, /* 150ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12427 | .block_erasers = |
| 12428 | { |
| 12429 | { |
| 12430 | .eraseblocks = { {4 * 1024, 128} }, |
| 12431 | .block_erase = erase_sector_jedec, |
| 12432 | }, { |
| 12433 | .eraseblocks = { {64 * 1024, 8} }, |
| 12434 | .block_erase = erase_block_jedec, |
| 12435 | }, { |
| 12436 | .eraseblocks = { {512 * 1024, 1} }, |
| 12437 | .block_erase = NULL, |
| 12438 | } |
| 12439 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12440 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12441 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12442 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12443 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12444 | }, |
| 12445 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12446 | { |
| 12447 | .vendor = "SST", |
| 12448 | .name = "SST49LF080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12449 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12450 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12451 | .model_id = SST_SST49LF080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12452 | .total_size = 1024, |
| 12453 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12454 | .feature_bits = FEATURE_EITHER_RESET, |
Brandon Dowdy | f07bf32 | 2011-03-06 18:31:11 +0000 | [diff] [blame] | 12455 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12456 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 12457 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12458 | .block_erasers = |
| 12459 | { |
| 12460 | { |
| 12461 | .eraseblocks = { {4 * 1024, 256} }, |
| 12462 | .block_erase = erase_sector_jedec, |
| 12463 | }, { |
| 12464 | .eraseblocks = { {64 * 1024, 16} }, |
| 12465 | .block_erase = erase_block_jedec, |
| 12466 | }, { |
| 12467 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12468 | .block_erase = NULL, |
| 12469 | } |
| 12470 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12471 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12472 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12473 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12474 | }, |
| 12475 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12476 | { |
| 12477 | .vendor = "SST", |
| 12478 | .name = "SST49LF160C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12479 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12480 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 12481 | .model_id = SST_SST49LF160C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12482 | .total_size = 2048, |
| 12483 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12484 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12485 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12486 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 12487 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12488 | .block_erasers = |
| 12489 | { |
| 12490 | { |
| 12491 | .eraseblocks = { {4 * 1024, 512} }, |
| 12492 | .block_erase = erase_sector_49lfxxxc, |
| 12493 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 12494 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12495 | {64 * 1024, 31}, |
| 12496 | {32 * 1024, 1}, |
| 12497 | {8 * 1024, 2}, |
| 12498 | {16 * 1024, 1}, |
| 12499 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 12500 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 12501 | } |
| 12502 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12503 | .printlock = printlock_regspace2_block_eraser_1, |
| 12504 | .unlock = unlock_regspace2_block_eraser_1, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 12505 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12506 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12507 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12508 | }, |
| 12509 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12510 | { |
| 12511 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12512 | .name = "M29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12513 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12514 | .manufacture_id = ST_ID, |
| 12515 | .model_id = ST_M29F002B, |
| 12516 | .total_size = 256, |
| 12517 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12518 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12519 | .tested = TEST_UNTESTED, |
| 12520 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 12521 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 12522 | .block_erasers = |
| 12523 | { |
| 12524 | { |
| 12525 | .eraseblocks = { |
| 12526 | {16 * 1024, 1}, |
| 12527 | {8 * 1024, 2}, |
| 12528 | {32 * 1024, 1}, |
| 12529 | {64 * 1024, 3}, |
| 12530 | }, |
| 12531 | .block_erase = erase_sector_jedec, |
| 12532 | }, { |
| 12533 | .eraseblocks = { {256 * 1024, 1} }, |
| 12534 | .block_erase = erase_chip_block_jedec, |
| 12535 | } |
| 12536 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12537 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12538 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 12539 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12540 | }, |
| 12541 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12542 | { |
| 12543 | .vendor = "ST", |
| 12544 | .name = "M29F002T/NT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12545 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12546 | .manufacture_id = ST_ID, |
| 12547 | .model_id = ST_M29F002T, |
| 12548 | .total_size = 256, |
| 12549 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12550 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 12551 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12552 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 12553 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 12554 | .block_erasers = |
| 12555 | { |
| 12556 | { |
| 12557 | .eraseblocks = { |
| 12558 | {64 * 1024, 3}, |
| 12559 | {32 * 1024, 1}, |
| 12560 | {8 * 1024, 2}, |
| 12561 | {16 * 1024, 1}, |
| 12562 | }, |
| 12563 | .block_erase = erase_sector_jedec, |
| 12564 | }, { |
| 12565 | .eraseblocks = { {256 * 1024, 1} }, |
| 12566 | .block_erase = erase_chip_block_jedec, |
| 12567 | } |
| 12568 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12569 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12570 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 12571 | .voltage = {4750, 5250}, /* 4.75-5.25V for type -X, others 4.5-5.5V */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12572 | }, |
| 12573 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12574 | { |
| 12575 | .vendor = "ST", |
| 12576 | .name = "M29F040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12577 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12578 | .manufacture_id = ST_ID, |
| 12579 | .model_id = ST_M29F040B, |
| 12580 | .total_size = 512, |
| 12581 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12582 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 12583 | .tested = TEST_UNTESTED, |
| 12584 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 12585 | .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 12586 | .block_erasers = |
| 12587 | { |
| 12588 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12589 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12590 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 12591 | }, { |
| 12592 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12593 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 12594 | } |
| 12595 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12596 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12597 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12598 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12599 | }, |
| 12600 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12601 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12602 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12603 | .vendor = "ST", |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 12604 | .name = "M29F400BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12605 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 12606 | .manufacture_id = ST_ID, |
| 12607 | .model_id = ST_M29F400BB, |
| 12608 | .total_size = 512, |
| 12609 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 12610 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 12611 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 12612 | .probe = probe_jedec, |
| 12613 | .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] | 12614 | .block_erasers = |
| 12615 | { |
| 12616 | { |
| 12617 | .eraseblocks = { |
| 12618 | {16 * 1024, 1}, |
| 12619 | {8 * 1024, 2}, |
| 12620 | {32 * 1024, 1}, |
| 12621 | {64 * 1024, 7}, |
| 12622 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 12623 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 12624 | }, { |
| 12625 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 12626 | .block_erase = erase_chip_block_jedec, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 12627 | } |
| 12628 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 12629 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 12630 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12631 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 12632 | }, |
| 12633 | { |
| 12634 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
| 12635 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12636 | .name = "M29F400BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12637 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12638 | .manufacture_id = ST_ID, |
| 12639 | .model_id = ST_M29F400BT, |
| 12640 | .total_size = 512, |
| 12641 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 12642 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12643 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 12644 | .probe = probe_jedec, |
| 12645 | .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] | 12646 | .block_erasers = |
| 12647 | { |
| 12648 | { |
| 12649 | .eraseblocks = { |
| 12650 | {64 * 1024, 7}, |
| 12651 | {32 * 1024, 1}, |
| 12652 | {8 * 1024, 2}, |
| 12653 | {16 * 1024, 1}, |
| 12654 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 12655 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 12656 | }, { |
| 12657 | .eraseblocks = { {512 * 1024, 1} }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 12658 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 12659 | } |
| 12660 | }, |
Carl-Daniel Hailfinger | a8cf362 | 2014-08-08 08:33:01 +0000 | [diff] [blame] | 12661 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12662 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12663 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12664 | }, |
| 12665 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12666 | { |
| 12667 | .vendor = "ST", |
| 12668 | .name = "M29W010B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12669 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12670 | .manufacture_id = ST_ID, |
| 12671 | .model_id = ST_M29W010B, |
| 12672 | .total_size = 128, |
| 12673 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12674 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12675 | .tested = TEST_UNTESTED, |
| 12676 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 12677 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 12678 | .block_erasers = |
| 12679 | { |
| 12680 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12681 | .eraseblocks = { {16 * 1024, 8} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 12682 | .block_erase = erase_sector_jedec, |
| 12683 | }, { |
| 12684 | .eraseblocks = { {128 * 1024, 1} }, |
| 12685 | .block_erase = erase_chip_block_jedec, |
| 12686 | } |
| 12687 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12688 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12689 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12690 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12691 | }, |
| 12692 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12693 | { |
| 12694 | .vendor = "ST", |
| 12695 | .name = "M29W040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12696 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12697 | .manufacture_id = ST_ID, |
| 12698 | .model_id = ST_M29W040B, |
| 12699 | .total_size = 512, |
| 12700 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12701 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12702 | .tested = TEST_UNTESTED, |
| 12703 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 12704 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 12705 | .block_erasers = |
| 12706 | { |
| 12707 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12708 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 12709 | .block_erase = erase_sector_jedec, |
| 12710 | }, { |
| 12711 | .eraseblocks = { {512 * 1024, 1} }, |
| 12712 | .block_erase = erase_chip_block_jedec, |
| 12713 | } |
| 12714 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12715 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12716 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12717 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12718 | }, |
| 12719 | |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 12720 | { |
| 12721 | .vendor = "ST", |
| 12722 | .name = "M29W512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12723 | .bustype = BUS_PARALLEL, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 12724 | .manufacture_id = ST_ID, |
| 12725 | .model_id = ST_M29W512B, |
| 12726 | .total_size = 64, |
| 12727 | .page_size = 64 * 1024, |
| 12728 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 12729 | .tested = TEST_OK_PREW, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 12730 | .probe = probe_jedec, |
| 12731 | .probe_timing = TIMING_ZERO, |
| 12732 | .block_erasers = |
| 12733 | { |
| 12734 | { |
| 12735 | .eraseblocks = { {64 * 1024, 1} }, |
| 12736 | .block_erase = erase_chip_block_jedec, |
| 12737 | } |
| 12738 | }, |
| 12739 | .write = write_jedec_1, |
| 12740 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12741 | .voltage = {2700, 3600}, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 12742 | }, |
Jeffrey A. Kent | ba7c922 | 2010-02-01 05:49:46 +0000 | [diff] [blame] | 12743 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12744 | { |
| 12745 | .vendor = "ST", |
| 12746 | .name = "M50FLW040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12747 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12748 | .manufacture_id = ST_ID, |
| 12749 | .model_id = ST_M50FLW040A, |
| 12750 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 12751 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12752 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12753 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12754 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 12755 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 12756 | .block_erasers = |
| 12757 | { |
| 12758 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 12759 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 12760 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 12761 | {64 * 1024, 5}, /* block */ |
| 12762 | {4 * 1024, 16}, /* sector */ |
| 12763 | {4 * 1024, 16}, /* sector */ |
| 12764 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 12765 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 12766 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12767 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 12768 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 12769 | } |
| 12770 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 12771 | .write = write_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12772 | .unlock = unlock_regspace2_uniform_64k, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12773 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12774 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12775 | }, |
| 12776 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12777 | { |
| 12778 | .vendor = "ST", |
| 12779 | .name = "M50FLW040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12780 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12781 | .manufacture_id = ST_ID, |
| 12782 | .model_id = ST_M50FLW040B, |
| 12783 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 12784 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12785 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12786 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12787 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 12788 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 12789 | .block_erasers = |
| 12790 | { |
| 12791 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 12792 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 12793 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 12794 | {4 * 1024, 16}, /* sector */ |
| 12795 | {64 * 1024, 5}, /* block */ |
| 12796 | {4 * 1024, 16}, /* sector */ |
| 12797 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 12798 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 12799 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12800 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 12801 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 12802 | } |
| 12803 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 12804 | .write = write_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12805 | .unlock = unlock_regspace2_uniform_64k, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12806 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12807 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12808 | }, |
| 12809 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12810 | { |
| 12811 | .vendor = "ST", |
| 12812 | .name = "M50FLW080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12813 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12814 | .manufacture_id = ST_ID, |
| 12815 | .model_id = ST_M50FLW080A, |
| 12816 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 12817 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12818 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12819 | .tested = TEST_OK_PR, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12820 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 12821 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 12822 | .block_erasers = |
| 12823 | { |
| 12824 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 12825 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 12826 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 12827 | {64 * 1024, 13}, /* block */ |
| 12828 | {4 * 1024, 16}, /* sector */ |
| 12829 | {4 * 1024, 16}, /* sector */ |
| 12830 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 12831 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 12832 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12833 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 12834 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 12835 | } |
| 12836 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12837 | .printlock = printlock_regspace2_block_eraser_0, |
| 12838 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 12839 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12840 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12841 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12842 | }, |
| 12843 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12844 | { |
| 12845 | .vendor = "ST", |
| 12846 | .name = "M50FLW080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12847 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12848 | .manufacture_id = ST_ID, |
| 12849 | .model_id = ST_M50FLW080B, |
| 12850 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 12851 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12852 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12853 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12854 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 12855 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 12856 | .block_erasers = |
| 12857 | { |
| 12858 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 12859 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 12860 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 12861 | {4 * 1024, 16}, /* sector */ |
| 12862 | {64 * 1024, 13}, /* block */ |
| 12863 | {4 * 1024, 16}, /* sector */ |
| 12864 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 12865 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 12866 | }, { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12867 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 12868 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 12869 | } |
| 12870 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12871 | .printlock = printlock_regspace2_block_eraser_0, |
| 12872 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 12873 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12874 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12875 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12876 | }, |
| 12877 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12878 | { |
| 12879 | .vendor = "ST", |
| 12880 | .name = "M50FW002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12881 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12882 | .manufacture_id = ST_ID, |
| 12883 | .model_id = ST_M50FW002, |
| 12884 | .total_size = 256, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 12885 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12886 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12887 | .tested = TEST_OK_PR, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12888 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12889 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 12890 | .block_erasers = |
| 12891 | { |
| 12892 | { |
| 12893 | .eraseblocks = { |
| 12894 | {64 * 1024, 3}, |
| 12895 | {32 * 1024, 1}, |
| 12896 | {8 * 1024, 2}, |
| 12897 | {16 * 1024, 1}, |
| 12898 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 12899 | .block_erase = erase_block_82802ab, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12900 | }, { |
| 12901 | .eraseblocks = { {256 * 1024, 1}, }, |
| 12902 | .block_erase = NULL, /* Only in A/A mux mode */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 12903 | } |
| 12904 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12905 | .printlock = printlock_regspace2_block_eraser_0, |
| 12906 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 12907 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12908 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12909 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12910 | }, |
| 12911 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12912 | { |
| 12913 | .vendor = "ST", |
| 12914 | .name = "M50FW016", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12915 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12916 | .manufacture_id = ST_ID, |
| 12917 | .model_id = ST_M50FW016, |
| 12918 | .total_size = 2048, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 12919 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12920 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12921 | .tested = TEST_UNTESTED, |
| 12922 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 12923 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 12924 | .block_erasers = |
| 12925 | { |
| 12926 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12927 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 12928 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 12929 | } |
| 12930 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12931 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 12932 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12933 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12934 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12935 | }, |
| 12936 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12937 | { |
| 12938 | .vendor = "ST", |
| 12939 | .name = "M50FW040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12940 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12941 | .manufacture_id = ST_ID, |
| 12942 | .model_id = ST_M50FW040, |
| 12943 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 12944 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12945 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 12946 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12947 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 12948 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 12949 | .block_erasers = |
| 12950 | { |
| 12951 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12952 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 12953 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 12954 | } |
| 12955 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12956 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 12957 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12958 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12959 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12960 | }, |
| 12961 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12962 | { |
| 12963 | .vendor = "ST", |
| 12964 | .name = "M50FW080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12965 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12966 | .manufacture_id = ST_ID, |
| 12967 | .model_id = ST_M50FW080, |
| 12968 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 12969 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 12970 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12971 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12972 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 12973 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 12974 | .block_erasers = |
| 12975 | { |
| 12976 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 12977 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 12978 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 12979 | } |
| 12980 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 12981 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 12982 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12983 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12984 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12985 | }, |
| 12986 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12987 | { |
| 12988 | .vendor = "ST", |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 12989 | .name = "M50LPW080", |
| 12990 | .bustype = BUS_LPC, /* A/A Mux */ |
| 12991 | .manufacture_id = ST_ID, |
| 12992 | .model_id = ST_M50LPW080, |
| 12993 | .total_size = 1024, |
| 12994 | .page_size = 0, |
| 12995 | .feature_bits = FEATURE_REGISTERMAP, |
| 12996 | .tested = TEST_UNTESTED, |
| 12997 | .probe = probe_82802ab, |
| 12998 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 12999 | .block_erasers = |
| 13000 | { |
| 13001 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 13002 | .eraseblocks = { {64 * 1024, 16} }, |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 13003 | .block_erase = erase_block_82802ab, |
| 13004 | } |
| 13005 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13006 | .unlock = unlock_regspace2_uniform_64k, |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 13007 | .write = write_82802ab, |
| 13008 | .read = read_memmapped, |
| 13009 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
| 13010 | }, |
| 13011 | |
| 13012 | { |
| 13013 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13014 | .name = "M50LPW116", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13015 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13016 | .manufacture_id = ST_ID, |
| 13017 | .model_id = ST_M50LPW116, |
| 13018 | .total_size = 2048, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 13019 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 13020 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13021 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13022 | .probe = probe_82802ab, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13023 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13024 | .block_erasers = |
| 13025 | { |
| 13026 | { |
| 13027 | .eraseblocks = { |
| 13028 | {4 * 1024, 16}, |
| 13029 | {64 * 1024, 30}, |
| 13030 | {32 * 1024, 1}, |
| 13031 | {8 * 1024, 2}, |
| 13032 | {16 * 1024, 1}, |
| 13033 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 13034 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13035 | } |
| 13036 | }, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 13037 | .printlock = printlock_regspace2_block_eraser_0, |
| 13038 | .unlock = unlock_regspace2_block_eraser_0, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 13039 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13040 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13041 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13042 | }, |
| 13043 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13044 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13045 | .vendor = "SyncMOS/MoselVitelic", |
| 13046 | .name = "{F,S,V}29C51001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13047 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13048 | .manufacture_id = SYNCMOS_MVC_ID, |
| 13049 | .model_id = SM_MVC_29C51001B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13050 | .total_size = 128, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13051 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13052 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13053 | .tested = TEST_UNTESTED, |
| 13054 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13055 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13056 | .block_erasers = |
| 13057 | { |
| 13058 | { |
| 13059 | .eraseblocks = { {512, 256} }, |
| 13060 | .block_erase = erase_sector_jedec, |
| 13061 | }, { |
| 13062 | .eraseblocks = { {128 * 1024, 1} }, |
| 13063 | .block_erase = erase_chip_block_jedec, |
| 13064 | }, |
| 13065 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13066 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13067 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13068 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13069 | }, |
| 13070 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13071 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13072 | .vendor = "SyncMOS/MoselVitelic", |
| 13073 | .name = "{F,S,V}29C51001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13074 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13075 | .manufacture_id = SYNCMOS_MVC_ID, |
| 13076 | .model_id = SM_MVC_29C51001T, |
| 13077 | .total_size = 128, |
| 13078 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13079 | .feature_bits = FEATURE_EITHER_RESET, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13080 | .tested = TEST_UNTESTED, |
| 13081 | .probe = probe_jedec, |
| 13082 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 13083 | .block_erasers = |
| 13084 | { |
| 13085 | { |
| 13086 | .eraseblocks = { {512, 256} }, |
| 13087 | .block_erase = erase_sector_jedec, |
| 13088 | }, { |
| 13089 | .eraseblocks = { {128 * 1024, 1} }, |
| 13090 | .block_erase = erase_chip_block_jedec, |
| 13091 | }, |
| 13092 | }, |
| 13093 | .write = write_jedec_1, |
| 13094 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13095 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13096 | }, |
| 13097 | |
| 13098 | { |
| 13099 | .vendor = "SyncMOS/MoselVitelic", |
| 13100 | .name = "{F,S,V}29C51002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13101 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13102 | .manufacture_id = SYNCMOS_MVC_ID, |
| 13103 | .model_id = SM_MVC_29C51002B, |
| 13104 | .total_size = 256, |
| 13105 | .page_size = 512, |
| 13106 | .feature_bits = FEATURE_EITHER_RESET, |
| 13107 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13108 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13109 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13110 | .block_erasers = |
| 13111 | { |
| 13112 | { |
| 13113 | .eraseblocks = { {512, 512} }, |
| 13114 | .block_erase = erase_sector_jedec, |
| 13115 | }, { |
| 13116 | .eraseblocks = { {256 * 1024, 1} }, |
| 13117 | .block_erase = erase_chip_block_jedec, |
| 13118 | }, |
| 13119 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13120 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13121 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13122 | }, |
| 13123 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13124 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13125 | .vendor = "SyncMOS/MoselVitelic", |
| 13126 | .name = "{F,S,V}29C51002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13127 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13128 | .manufacture_id = SYNCMOS_MVC_ID, |
| 13129 | .model_id = SM_MVC_29C51002T, |
| 13130 | .total_size = 256, |
| 13131 | .page_size = 512, |
| 13132 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 13133 | .tested = TEST_OK_PREW, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13134 | .probe = probe_jedec, |
| 13135 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 13136 | .block_erasers = |
| 13137 | { |
| 13138 | { |
| 13139 | .eraseblocks = { {512, 512} }, |
| 13140 | .block_erase = erase_sector_jedec, |
| 13141 | }, { |
| 13142 | .eraseblocks = { {256 * 1024, 1} }, |
| 13143 | .block_erase = erase_chip_block_jedec, |
| 13144 | }, |
| 13145 | }, |
| 13146 | .write = write_jedec_1, |
| 13147 | .read = read_memmapped, |
| 13148 | }, |
| 13149 | |
| 13150 | { |
| 13151 | .vendor = "SyncMOS/MoselVitelic", |
| 13152 | .name = "{F,S,V}29C51004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13153 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13154 | .manufacture_id = SYNCMOS_MVC_ID, |
| 13155 | .model_id = SM_MVC_29C51004B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13156 | .total_size = 512, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13157 | .page_size = 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13158 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13159 | .tested = TEST_UNTESTED, |
| 13160 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13161 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13162 | .block_erasers = |
| 13163 | { |
| 13164 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13165 | .eraseblocks = { {1024, 512} }, |
| 13166 | .block_erase = erase_sector_jedec, |
| 13167 | }, { |
| 13168 | .eraseblocks = { {512 * 1024, 1} }, |
| 13169 | .block_erase = erase_chip_block_jedec, |
| 13170 | }, |
| 13171 | }, |
| 13172 | .write = write_jedec_1, |
| 13173 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13174 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13175 | }, |
| 13176 | |
| 13177 | { |
| 13178 | .vendor = "SyncMOS/MoselVitelic", |
| 13179 | .name = "{F,S,V}29C51004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13180 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13181 | .manufacture_id = SYNCMOS_MVC_ID, |
| 13182 | .model_id = SM_MVC_29C51004T, |
| 13183 | .total_size = 512, |
| 13184 | .page_size = 1024, |
| 13185 | .feature_bits = FEATURE_EITHER_RESET, |
| 13186 | .tested = TEST_UNTESTED, |
| 13187 | .probe = probe_jedec, |
| 13188 | .probe_timing = TIMING_ZERO, |
| 13189 | .block_erasers = |
| 13190 | { |
| 13191 | { |
| 13192 | .eraseblocks = { {1024, 512} }, |
| 13193 | .block_erase = erase_sector_jedec, |
| 13194 | }, { |
| 13195 | .eraseblocks = { {512 * 1024, 1} }, |
| 13196 | .block_erase = erase_chip_block_jedec, |
| 13197 | }, |
| 13198 | }, |
| 13199 | .write = write_jedec_1, |
| 13200 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13201 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13202 | }, |
| 13203 | |
| 13204 | { |
| 13205 | .vendor = "SyncMOS/MoselVitelic", |
| 13206 | .name = "{S,V}29C31004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13207 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13208 | .manufacture_id = SYNCMOS_MVC_ID, |
| 13209 | .model_id = SM_MVC_29C31004B, |
| 13210 | .total_size = 512, |
| 13211 | .page_size = 1024, |
| 13212 | .feature_bits = FEATURE_EITHER_RESET, |
| 13213 | .tested = TEST_UNTESTED, |
| 13214 | .probe = probe_jedec, |
| 13215 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 13216 | .block_erasers = |
| 13217 | { |
| 13218 | { |
| 13219 | .eraseblocks = { {1024, 512} }, |
| 13220 | .block_erase = erase_sector_jedec, |
| 13221 | }, { |
| 13222 | .eraseblocks = { {512 * 1024, 1} }, |
| 13223 | .block_erase = erase_chip_block_jedec, |
| 13224 | }, |
| 13225 | }, |
| 13226 | .write = write_jedec_1, |
| 13227 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13228 | .voltage = {3000, 3600}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13229 | }, |
| 13230 | |
| 13231 | { |
| 13232 | .vendor = "SyncMOS/MoselVitelic", |
| 13233 | .name = "{S,V}29C31004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13234 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 13235 | .manufacture_id = SYNCMOS_MVC_ID, |
| 13236 | .model_id = SM_MVC_29C31004T, |
| 13237 | .total_size = 512, |
| 13238 | .page_size = 1024, |
| 13239 | .feature_bits = FEATURE_EITHER_RESET, |
| 13240 | .tested = TEST_UNTESTED, |
| 13241 | .probe = probe_jedec, |
| 13242 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 13243 | .block_erasers = |
| 13244 | { |
| 13245 | { |
| 13246 | .eraseblocks = { {1024, 512} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13247 | .block_erase = erase_sector_jedec, |
| 13248 | }, { |
| 13249 | .eraseblocks = { {512 * 1024, 1} }, |
| 13250 | .block_erase = erase_chip_block_jedec, |
| 13251 | }, |
| 13252 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13253 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13254 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13255 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13256 | }, |
| 13257 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13258 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 13259 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 13260 | .name = "TMS29F002RB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13261 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 13262 | .manufacture_id = TI_OLD_ID, |
| 13263 | .model_id = TI_TMS29F002RB, |
| 13264 | .total_size = 256, |
| 13265 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13266 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 13267 | .tested = TEST_UNTESTED, |
| 13268 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13269 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13270 | .block_erasers = |
| 13271 | { |
| 13272 | { |
| 13273 | .eraseblocks = { |
| 13274 | {16 * 1024, 1}, |
| 13275 | {8 * 1024, 2}, |
| 13276 | {32 * 1024, 1}, |
| 13277 | {64 * 1024, 3}, |
| 13278 | }, |
| 13279 | .block_erase = erase_sector_jedec, |
| 13280 | }, { |
| 13281 | .eraseblocks = { {256 * 1024, 1} }, |
| 13282 | .block_erase = erase_chip_block_jedec, |
| 13283 | }, |
| 13284 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13285 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 13286 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13287 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 13288 | }, |
| 13289 | |
| 13290 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 13291 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 13292 | .name = "TMS29F002RT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13293 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 13294 | .manufacture_id = TI_OLD_ID, |
| 13295 | .model_id = TI_TMS29F002RT, |
| 13296 | .total_size = 256, |
| 13297 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13298 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 13299 | .tested = TEST_UNTESTED, |
| 13300 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13301 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 13302 | .block_erasers = |
| 13303 | { |
| 13304 | { |
| 13305 | .eraseblocks = { |
| 13306 | {64 * 1024, 3}, |
| 13307 | {32 * 1024, 1}, |
| 13308 | {8 * 1024, 2}, |
| 13309 | {16 * 1024, 1}, |
| 13310 | }, |
| 13311 | .block_erase = erase_sector_jedec, |
| 13312 | }, { |
| 13313 | .eraseblocks = { {256 * 1024, 1} }, |
| 13314 | .block_erase = erase_chip_block_jedec, |
| 13315 | }, |
| 13316 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13317 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 13318 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13319 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 13320 | }, |
| 13321 | |
| 13322 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13323 | .vendor = "Winbond", |
Stefan Tauner | 5e27b0b | 2014-09-09 23:03:32 +0000 | [diff] [blame] | 13324 | .name = "W25Q40.V", |
| 13325 | .bustype = BUS_SPI, |
| 13326 | .manufacture_id = WINBOND_NEX_ID, |
| 13327 | .model_id = WINBOND_NEX_W25Q40_V, |
| 13328 | .total_size = 512, |
| 13329 | .page_size = 256, |
| 13330 | /* supports SFDP */ |
| 13331 | /* OTP: 756B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 13332 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 13333 | .tested = TEST_OK_PR, |
| 13334 | .probe = probe_spi_rdid, |
| 13335 | .probe_timing = TIMING_ZERO, |
| 13336 | .block_erasers = |
| 13337 | { |
| 13338 | { |
| 13339 | .eraseblocks = { {4 * 1024, 128} }, |
| 13340 | .block_erase = spi_block_erase_20, |
| 13341 | }, { |
| 13342 | .eraseblocks = { {32 * 1024, 16} }, |
| 13343 | .block_erase = spi_block_erase_52, |
| 13344 | }, { |
| 13345 | .eraseblocks = { {64 * 1024, 8} }, |
| 13346 | .block_erase = spi_block_erase_d8, |
| 13347 | }, { |
| 13348 | .eraseblocks = { {512 * 1024, 1} }, |
| 13349 | .block_erase = spi_block_erase_60, |
| 13350 | }, { |
| 13351 | .eraseblocks = { {512 * 1024, 1} }, |
| 13352 | .block_erase = spi_block_erase_c7, |
| 13353 | } |
| 13354 | }, |
| 13355 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 13356 | .unlock = spi_disable_blockprotect, |
| 13357 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 13358 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 13359 | .voltage = {2700, 3600}, |
| 13360 | }, |
| 13361 | |
| 13362 | { |
| 13363 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 13364 | .name = "W25Q80.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13365 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 13366 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 13367 | .model_id = WINBOND_NEX_W25Q80_V, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 13368 | .total_size = 1024, |
| 13369 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 13370 | /* supports SFDP */ |
| 13371 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 13372 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 13373 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 13374 | .probe = probe_spi_rdid, |
| 13375 | .probe_timing = TIMING_ZERO, |
| 13376 | .block_erasers = |
| 13377 | { |
| 13378 | { |
| 13379 | .eraseblocks = { {4 * 1024, 256} }, |
| 13380 | .block_erase = spi_block_erase_20, |
| 13381 | }, { |
| 13382 | .eraseblocks = { {32 * 1024, 32} }, |
| 13383 | .block_erase = spi_block_erase_52, |
| 13384 | }, { |
| 13385 | .eraseblocks = { {64 * 1024, 16} }, |
| 13386 | .block_erase = spi_block_erase_d8, |
| 13387 | }, { |
| 13388 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13389 | .block_erase = spi_block_erase_60, |
| 13390 | }, { |
| 13391 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13392 | .block_erase = spi_block_erase_c7, |
| 13393 | } |
| 13394 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 13395 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 13396 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 13397 | .write = spi_chip_write_256, |
| 13398 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13399 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 13400 | }, |
| 13401 | |
| 13402 | { |
| 13403 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 13404 | .name = "W25Q16.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13405 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 13406 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 13407 | .model_id = WINBOND_NEX_W25Q16_V, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 13408 | .total_size = 2048, |
| 13409 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 13410 | /* supports SFDP */ |
| 13411 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 13412 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 13413 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 13414 | .probe = probe_spi_rdid, |
| 13415 | .probe_timing = TIMING_ZERO, |
| 13416 | .block_erasers = |
| 13417 | { |
| 13418 | { |
| 13419 | .eraseblocks = { {4 * 1024, 512} }, |
| 13420 | .block_erase = spi_block_erase_20, |
| 13421 | }, { |
| 13422 | .eraseblocks = { {32 * 1024, 64} }, |
| 13423 | .block_erase = spi_block_erase_52, |
| 13424 | }, { |
| 13425 | .eraseblocks = { {64 * 1024, 32} }, |
| 13426 | .block_erase = spi_block_erase_d8, |
| 13427 | }, { |
| 13428 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 13429 | .block_erase = spi_block_erase_60, |
| 13430 | }, { |
| 13431 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 13432 | .block_erase = spi_block_erase_c7, |
| 13433 | } |
| 13434 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 13435 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 13436 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 13437 | .write = spi_chip_write_256, |
| 13438 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13439 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 13440 | }, |
| 13441 | |
| 13442 | { |
| 13443 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 13444 | .name = "W25Q32.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13445 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 13446 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 13447 | .model_id = WINBOND_NEX_W25Q32_V, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 13448 | .total_size = 4096, |
| 13449 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 13450 | /* supports SFDP */ |
| 13451 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 13452 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 13453 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 13454 | .probe = probe_spi_rdid, |
| 13455 | .probe_timing = TIMING_ZERO, |
| 13456 | .block_erasers = |
| 13457 | { |
| 13458 | { |
| 13459 | .eraseblocks = { {4 * 1024, 1024} }, |
| 13460 | .block_erase = spi_block_erase_20, |
| 13461 | }, { |
| 13462 | .eraseblocks = { {32 * 1024, 128} }, |
| 13463 | .block_erase = spi_block_erase_52, |
| 13464 | }, { |
| 13465 | .eraseblocks = { {64 * 1024, 64} }, |
| 13466 | .block_erase = spi_block_erase_d8, |
| 13467 | }, { |
| 13468 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 13469 | .block_erase = spi_block_erase_60, |
| 13470 | }, { |
| 13471 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 13472 | .block_erase = spi_block_erase_c7, |
| 13473 | } |
| 13474 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 13475 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 13476 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 13477 | .write = spi_chip_write_256, |
| 13478 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13479 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 13480 | }, |
| 13481 | |
| 13482 | { |
| 13483 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 13484 | .name = "W25Q64.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13485 | .bustype = BUS_SPI, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 13486 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 13487 | .model_id = WINBOND_NEX_W25Q64_V, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 13488 | .total_size = 8192, |
| 13489 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 13490 | /* supports SFDP */ |
| 13491 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 13492 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 13493 | .tested = TEST_OK_PREW, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 13494 | .probe = probe_spi_rdid, |
| 13495 | .probe_timing = TIMING_ZERO, |
| 13496 | .block_erasers = |
| 13497 | { |
| 13498 | { |
| 13499 | .eraseblocks = { {4 * 1024, 2048} }, |
| 13500 | .block_erase = spi_block_erase_20, |
| 13501 | }, { |
| 13502 | .eraseblocks = { {32 * 1024, 256} }, |
| 13503 | .block_erase = spi_block_erase_52, |
| 13504 | }, { |
| 13505 | .eraseblocks = { {64 * 1024, 128} }, |
| 13506 | .block_erase = spi_block_erase_d8, |
| 13507 | }, { |
| 13508 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 13509 | .block_erase = spi_block_erase_60, |
| 13510 | }, { |
| 13511 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 13512 | .block_erase = spi_block_erase_c7, |
| 13513 | } |
| 13514 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 13515 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 13516 | .unlock = spi_disable_blockprotect, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 13517 | .write = spi_chip_write_256, |
| 13518 | .read = spi_chip_read, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 13519 | .voltage = {2700, 3600}, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 13520 | }, |
| 13521 | |
| 13522 | { |
| 13523 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 13524 | .name = "W25Q128.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13525 | .bustype = BUS_SPI, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 13526 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 13527 | .model_id = WINBOND_NEX_W25Q128_V, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 13528 | .total_size = 16384, |
| 13529 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 13530 | /* supports SFDP */ |
| 13531 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 13532 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13533 | .tested = TEST_OK_PREW, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 13534 | .probe = probe_spi_rdid, |
| 13535 | .probe_timing = TIMING_ZERO, |
| 13536 | .block_erasers = |
| 13537 | { |
| 13538 | { |
| 13539 | .eraseblocks = { {4 * 1024, 4096} }, |
| 13540 | .block_erase = spi_block_erase_20, |
| 13541 | }, { |
| 13542 | .eraseblocks = { {32 * 1024, 512} }, |
| 13543 | .block_erase = spi_block_erase_52, |
| 13544 | }, { |
| 13545 | .eraseblocks = { {64 * 1024, 256} }, |
| 13546 | .block_erase = spi_block_erase_d8, |
| 13547 | }, { |
| 13548 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 13549 | .block_erase = spi_block_erase_60, |
| 13550 | }, { |
| 13551 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 13552 | .block_erase = spi_block_erase_c7, |
| 13553 | } |
| 13554 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 13555 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 13556 | .unlock = spi_disable_blockprotect, |
| 13557 | .write = spi_chip_write_256, |
| 13558 | .read = spi_chip_read, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 13559 | .voltage = {2700, 3600}, |
| 13560 | }, |
| 13561 | |
| 13562 | { |
| 13563 | .vendor = "Winbond", |
| 13564 | .name = "W25Q20.W", |
| 13565 | .bustype = BUS_SPI, |
| 13566 | .manufacture_id = WINBOND_NEX_ID, |
| 13567 | .model_id = WINBOND_NEX_W25Q20_W, |
| 13568 | .total_size = 256, |
| 13569 | .page_size = 256, |
| 13570 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 13571 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 13572 | .tested = TEST_UNTESTED, |
| 13573 | .probe = probe_spi_rdid, |
| 13574 | .probe_timing = TIMING_ZERO, |
| 13575 | .block_erasers = |
| 13576 | { |
| 13577 | { |
| 13578 | .eraseblocks = { {4 * 1024, 64} }, |
| 13579 | .block_erase = spi_block_erase_20, |
| 13580 | }, { |
| 13581 | .eraseblocks = { {32 * 1024, 8} }, |
| 13582 | .block_erase = spi_block_erase_52, |
| 13583 | }, { |
| 13584 | .eraseblocks = { {64 * 1024, 4} }, |
| 13585 | .block_erase = spi_block_erase_d8, |
| 13586 | }, { |
| 13587 | .eraseblocks = { {256 * 1024, 1} }, |
| 13588 | .block_erase = spi_block_erase_60, |
| 13589 | }, { |
| 13590 | .eraseblocks = { {256 * 1024, 1} }, |
| 13591 | .block_erase = spi_block_erase_c7, |
| 13592 | } |
| 13593 | }, |
| 13594 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 13595 | .unlock = spi_disable_blockprotect, |
| 13596 | .write = spi_chip_write_256, |
| 13597 | .read = spi_chip_read, |
| 13598 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 13599 | }, |
| 13600 | |
| 13601 | { |
| 13602 | .vendor = "Winbond", |
| 13603 | .name = "W25Q40.W", |
| 13604 | .bustype = BUS_SPI, |
| 13605 | .manufacture_id = WINBOND_NEX_ID, |
| 13606 | .model_id = WINBOND_NEX_W25Q40_W, |
| 13607 | .total_size = 512, |
| 13608 | .page_size = 256, |
| 13609 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 13610 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 13611 | .tested = TEST_UNTESTED, |
| 13612 | .probe = probe_spi_rdid, |
| 13613 | .probe_timing = TIMING_ZERO, |
| 13614 | .block_erasers = |
| 13615 | { |
| 13616 | { |
| 13617 | .eraseblocks = { {4 * 1024, 128} }, |
| 13618 | .block_erase = spi_block_erase_20, |
| 13619 | }, { |
| 13620 | .eraseblocks = { {32 * 1024, 16} }, |
| 13621 | .block_erase = spi_block_erase_52, |
| 13622 | }, { |
| 13623 | .eraseblocks = { {64 * 1024, 8} }, |
| 13624 | .block_erase = spi_block_erase_d8, |
| 13625 | }, { |
| 13626 | .eraseblocks = { {512 * 1024, 1} }, |
| 13627 | .block_erase = spi_block_erase_60, |
| 13628 | }, { |
| 13629 | .eraseblocks = { {512 * 1024, 1} }, |
| 13630 | .block_erase = spi_block_erase_c7, |
| 13631 | } |
| 13632 | }, |
| 13633 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 13634 | .unlock = spi_disable_blockprotect, |
| 13635 | .write = spi_chip_write_256, |
| 13636 | .read = spi_chip_read, |
| 13637 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 13638 | }, |
| 13639 | |
| 13640 | { |
| 13641 | .vendor = "Winbond", |
| 13642 | .name = "W25Q80.W", |
| 13643 | .bustype = BUS_SPI, |
| 13644 | .manufacture_id = WINBOND_NEX_ID, |
| 13645 | .model_id = WINBOND_NEX_W25Q80_W, |
| 13646 | .total_size = 1024, |
| 13647 | .page_size = 256, |
| 13648 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 13649 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 13650 | .tested = TEST_UNTESTED, |
| 13651 | .probe = probe_spi_rdid, |
| 13652 | .probe_timing = TIMING_ZERO, |
| 13653 | .block_erasers = |
| 13654 | { |
| 13655 | { |
| 13656 | .eraseblocks = { {4 * 1024, 256} }, |
| 13657 | .block_erase = spi_block_erase_20, |
| 13658 | }, { |
| 13659 | .eraseblocks = { {32 * 1024, 32} }, |
| 13660 | .block_erase = spi_block_erase_52, |
| 13661 | }, { |
| 13662 | .eraseblocks = { {64 * 1024, 16} }, |
| 13663 | .block_erase = spi_block_erase_d8, |
| 13664 | }, { |
| 13665 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 13666 | .block_erase = spi_block_erase_60, |
| 13667 | }, { |
| 13668 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 13669 | .block_erase = spi_block_erase_c7, |
| 13670 | } |
| 13671 | }, |
| 13672 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 13673 | .unlock = spi_disable_blockprotect, |
| 13674 | .write = spi_chip_write_256, |
| 13675 | .read = spi_chip_read, |
| 13676 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 13677 | }, |
| 13678 | |
| 13679 | { |
| 13680 | .vendor = "Winbond", |
| 13681 | .name = "W25Q16.W", |
| 13682 | .bustype = BUS_SPI, |
| 13683 | .manufacture_id = WINBOND_NEX_ID, |
| 13684 | .model_id = WINBOND_NEX_W25Q16_W, |
| 13685 | .total_size = 2048, |
| 13686 | .page_size = 256, |
| 13687 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 13688 | /* QPI enable 0x38, disable 0xFF */ |
| 13689 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 13690 | .tested = TEST_UNTESTED, |
| 13691 | .probe = probe_spi_rdid, |
| 13692 | .probe_timing = TIMING_ZERO, |
| 13693 | .block_erasers = |
| 13694 | { |
| 13695 | { |
| 13696 | .eraseblocks = { {4 * 1024, 512} }, |
| 13697 | .block_erase = spi_block_erase_20, |
| 13698 | }, { |
| 13699 | .eraseblocks = { {32 * 1024, 64} }, |
| 13700 | .block_erase = spi_block_erase_52, |
| 13701 | }, { |
| 13702 | .eraseblocks = { {64 * 1024, 32} }, |
| 13703 | .block_erase = spi_block_erase_d8, |
| 13704 | }, { |
| 13705 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 13706 | .block_erase = spi_block_erase_60, |
| 13707 | }, { |
| 13708 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 13709 | .block_erase = spi_block_erase_c7, |
| 13710 | } |
| 13711 | }, |
| 13712 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 13713 | .unlock = spi_disable_blockprotect, |
| 13714 | .write = spi_chip_write_256, |
| 13715 | .read = spi_chip_read, |
| 13716 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 13717 | }, |
| 13718 | |
| 13719 | { |
| 13720 | .vendor = "Winbond", |
| 13721 | .name = "W25Q32.W", |
| 13722 | .bustype = BUS_SPI, |
| 13723 | .manufacture_id = WINBOND_NEX_ID, |
| 13724 | .model_id = WINBOND_NEX_W25Q32_W, |
| 13725 | .total_size = 4096, |
| 13726 | .page_size = 256, |
| 13727 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 13728 | /* QPI enable 0x38, disable 0xFF */ |
| 13729 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 13730 | .tested = TEST_OK_PREW, |
| 13731 | .probe = probe_spi_rdid, |
| 13732 | .probe_timing = TIMING_ZERO, |
| 13733 | .block_erasers = |
| 13734 | { |
| 13735 | { |
| 13736 | .eraseblocks = { {4 * 1024, 1024} }, |
| 13737 | .block_erase = spi_block_erase_20, |
| 13738 | }, { |
| 13739 | .eraseblocks = { {32 * 1024, 128} }, |
| 13740 | .block_erase = spi_block_erase_52, |
| 13741 | }, { |
| 13742 | .eraseblocks = { {64 * 1024, 64} }, |
| 13743 | .block_erase = spi_block_erase_d8, |
| 13744 | }, { |
| 13745 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 13746 | .block_erase = spi_block_erase_60, |
| 13747 | }, { |
| 13748 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 13749 | .block_erase = spi_block_erase_c7, |
| 13750 | } |
| 13751 | }, |
| 13752 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 13753 | .unlock = spi_disable_blockprotect, |
| 13754 | .write = spi_chip_write_256, |
| 13755 | .read = spi_chip_read, |
| 13756 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 13757 | }, |
| 13758 | |
| 13759 | { |
| 13760 | .vendor = "Winbond", |
| 13761 | .name = "W25Q64.W", |
| 13762 | .bustype = BUS_SPI, |
| 13763 | .manufacture_id = WINBOND_NEX_ID, |
| 13764 | .model_id = WINBOND_NEX_W25Q64_W, |
| 13765 | .total_size = 8192, |
| 13766 | .page_size = 256, |
| 13767 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 13768 | /* QPI enable 0x38, disable 0xFF */ |
| 13769 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13770 | .tested = TEST_OK_PREW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 13771 | .probe = probe_spi_rdid, |
| 13772 | .probe_timing = TIMING_ZERO, |
| 13773 | .block_erasers = |
| 13774 | { |
| 13775 | { |
| 13776 | .eraseblocks = { {4 * 1024, 2048} }, |
| 13777 | .block_erase = spi_block_erase_20, |
| 13778 | }, { |
| 13779 | .eraseblocks = { {32 * 1024, 256} }, |
| 13780 | .block_erase = spi_block_erase_52, |
| 13781 | }, { |
| 13782 | .eraseblocks = { {64 * 1024, 128} }, |
| 13783 | .block_erase = spi_block_erase_d8, |
| 13784 | }, { |
| 13785 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 13786 | .block_erase = spi_block_erase_60, |
| 13787 | }, { |
| 13788 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 13789 | .block_erase = spi_block_erase_c7, |
| 13790 | } |
| 13791 | }, |
| 13792 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 13793 | .unlock = spi_disable_blockprotect, |
| 13794 | .write = spi_chip_write_256, |
| 13795 | .read = spi_chip_read, |
| 13796 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 13797 | }, |
| 13798 | |
| 13799 | { |
| 13800 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 13801 | .name = "W25X10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13802 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13803 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 13804 | .model_id = WINBOND_NEX_W25X10, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13805 | .total_size = 128, |
| 13806 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 13807 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 13808 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13809 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13810 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 13811 | .block_erasers = |
| 13812 | { |
| 13813 | { |
| 13814 | .eraseblocks = { {4 * 1024, 32} }, |
| 13815 | .block_erase = spi_block_erase_20, |
| 13816 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 13817 | .eraseblocks = { {64 * 1024, 2} }, |
| 13818 | .block_erase = spi_block_erase_d8, |
| 13819 | }, { |
| 13820 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 13821 | .block_erase = spi_block_erase_c7, |
| 13822 | } |
| 13823 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 13824 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 13825 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 13826 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13827 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13828 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13829 | }, |
| 13830 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13831 | { |
| 13832 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 13833 | .name = "W25X20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13834 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13835 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 13836 | .model_id = WINBOND_NEX_W25X20, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13837 | .total_size = 256, |
| 13838 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 13839 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13840 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13841 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13842 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 13843 | .block_erasers = |
| 13844 | { |
| 13845 | { |
| 13846 | .eraseblocks = { {4 * 1024, 64} }, |
| 13847 | .block_erase = spi_block_erase_20, |
| 13848 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 13849 | .eraseblocks = { {64 * 1024, 4} }, |
| 13850 | .block_erase = spi_block_erase_d8, |
| 13851 | }, { |
| 13852 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 13853 | .block_erase = spi_block_erase_c7, |
| 13854 | } |
| 13855 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 13856 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 13857 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 13858 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13859 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13860 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13861 | }, |
| 13862 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13863 | { |
| 13864 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 13865 | .name = "W25X40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13866 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13867 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 13868 | .model_id = WINBOND_NEX_W25X40, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13869 | .total_size = 512, |
| 13870 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 13871 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 13872 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13873 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13874 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 13875 | .block_erasers = |
| 13876 | { |
| 13877 | { |
| 13878 | .eraseblocks = { {4 * 1024, 128} }, |
| 13879 | .block_erase = spi_block_erase_20, |
| 13880 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 13881 | .eraseblocks = { {64 * 1024, 8} }, |
| 13882 | .block_erase = spi_block_erase_d8, |
| 13883 | }, { |
| 13884 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 13885 | .block_erase = spi_block_erase_c7, |
| 13886 | } |
| 13887 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 13888 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 13889 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 13890 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13891 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13892 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13893 | }, |
| 13894 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13895 | { |
| 13896 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 13897 | .name = "W25X80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13898 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13899 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 13900 | .model_id = WINBOND_NEX_W25X80, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13901 | .total_size = 1024, |
| 13902 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 13903 | .feature_bits = FEATURE_WRSR_WREN, |
Yul Rottmann | 6d6ab74 | 2011-03-05 16:31:57 +0000 | [diff] [blame] | 13904 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13905 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13906 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 13907 | .block_erasers = |
| 13908 | { |
| 13909 | { |
| 13910 | .eraseblocks = { {4 * 1024, 256} }, |
| 13911 | .block_erase = spi_block_erase_20, |
| 13912 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 13913 | .eraseblocks = { {64 * 1024, 16} }, |
| 13914 | .block_erase = spi_block_erase_d8, |
| 13915 | }, { |
| 13916 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 13917 | .block_erase = spi_block_erase_c7, |
| 13918 | } |
| 13919 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 13920 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 13921 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 13922 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13923 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13924 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13925 | }, |
| 13926 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13927 | { |
| 13928 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 13929 | .name = "W25X16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13930 | .bustype = BUS_SPI, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 13931 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 13932 | .model_id = WINBOND_NEX_W25X16, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 13933 | .total_size = 2048, |
| 13934 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 13935 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 13936 | .tested = TEST_OK_PREW, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 13937 | .probe = probe_spi_rdid, |
| 13938 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 13939 | .block_erasers = |
| 13940 | { |
| 13941 | { |
| 13942 | .eraseblocks = { {4 * 1024, 512} }, |
| 13943 | .block_erase = spi_block_erase_20, |
| 13944 | }, { |
| 13945 | .eraseblocks = { {32 * 1024, 64} }, |
| 13946 | .block_erase = spi_block_erase_52, |
| 13947 | }, { |
| 13948 | .eraseblocks = { {64 * 1024, 32} }, |
| 13949 | .block_erase = spi_block_erase_d8, |
| 13950 | }, { |
| 13951 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 13952 | .block_erase = spi_block_erase_60, |
| 13953 | }, { |
| 13954 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 13955 | .block_erase = spi_block_erase_c7, |
| 13956 | } |
| 13957 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 13958 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 13959 | .unlock = spi_disable_blockprotect, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 13960 | .write = spi_chip_write_256, |
| 13961 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13962 | .voltage = {2700, 3600}, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 13963 | }, |
| 13964 | |
| 13965 | { |
| 13966 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 13967 | .name = "W25X32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13968 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 13969 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 13970 | .model_id = WINBOND_NEX_W25X32, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 13971 | .total_size = 4096, |
| 13972 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 13973 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 13974 | .tested = TEST_OK_PREW, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 13975 | .probe = probe_spi_rdid, |
| 13976 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 13977 | .block_erasers = |
| 13978 | { |
| 13979 | { |
| 13980 | .eraseblocks = { {4 * 1024, 1024} }, |
| 13981 | .block_erase = spi_block_erase_20, |
| 13982 | }, { |
| 13983 | .eraseblocks = { {32 * 1024, 128} }, |
| 13984 | .block_erase = spi_block_erase_52, |
| 13985 | }, { |
| 13986 | .eraseblocks = { {64 * 1024, 64} }, |
| 13987 | .block_erase = spi_block_erase_d8, |
| 13988 | }, { |
| 13989 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 13990 | .block_erase = spi_block_erase_60, |
| 13991 | }, { |
| 13992 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 13993 | .block_erase = spi_block_erase_c7, |
| 13994 | } |
| 13995 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 13996 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 13997 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 13998 | .write = spi_chip_write_256, |
| 13999 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14000 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 14001 | }, |
| 14002 | |
| 14003 | { |
| 14004 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 14005 | .name = "W25X64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14006 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 14007 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 14008 | .model_id = WINBOND_NEX_W25X64, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 14009 | .total_size = 8192, |
| 14010 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 14011 | .feature_bits = FEATURE_WRSR_WREN, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 14012 | .tested = TEST_OK_PROBE, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 14013 | .probe = probe_spi_rdid, |
| 14014 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 14015 | .block_erasers = |
| 14016 | { |
| 14017 | { |
| 14018 | .eraseblocks = { {4 * 1024, 2048} }, |
| 14019 | .block_erase = spi_block_erase_20, |
| 14020 | }, { |
| 14021 | .eraseblocks = { {32 * 1024, 256} }, |
| 14022 | .block_erase = spi_block_erase_52, |
| 14023 | }, { |
| 14024 | .eraseblocks = { {64 * 1024, 128} }, |
| 14025 | .block_erase = spi_block_erase_d8, |
| 14026 | }, { |
| 14027 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 14028 | .block_erase = spi_block_erase_60, |
| 14029 | }, { |
| 14030 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 14031 | .block_erase = spi_block_erase_c7, |
| 14032 | } |
| 14033 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 14034 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 14035 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 14036 | .write = spi_chip_write_256, |
| 14037 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14038 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 14039 | }, |
| 14040 | |
| 14041 | { |
| 14042 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 14043 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14044 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 14045 | .manufacture_id = WINBOND_ID, |
| 14046 | .model_id = WINBOND_W29C010, |
| 14047 | .total_size = 128, |
| 14048 | .page_size = 128, |
| 14049 | .feature_bits = FEATURE_LONG_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 14050 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 14051 | .probe = probe_w29ee011, |
| 14052 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */ |
| 14053 | .block_erasers = |
| 14054 | { |
| 14055 | { |
| 14056 | .eraseblocks = { {128 * 1024, 1} }, |
| 14057 | .block_erase = erase_chip_block_jedec, |
| 14058 | } |
| 14059 | }, |
| 14060 | .write = write_jedec, |
| 14061 | .read = read_memmapped, |
| 14062 | }, |
| 14063 | |
| 14064 | {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */ |
| 14065 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 14066 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14067 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14068 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 14069 | .model_id = WINBOND_W29C010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14070 | .total_size = 128, |
| 14071 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14072 | .feature_bits = FEATURE_LONG_RESET, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 14073 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14074 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14075 | .probe_timing = 10, /* used datasheet for the W29C011A */ |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 14076 | .block_erasers = |
| 14077 | { |
| 14078 | { |
| 14079 | .eraseblocks = { {128 * 1024, 1} }, |
| 14080 | .block_erase = erase_chip_block_jedec, |
| 14081 | } |
| 14082 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14083 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14084 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14085 | }, |
| 14086 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14087 | { |
| 14088 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 14089 | .name = "W29C020(C)/W29C022", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14090 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14091 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 14092 | .model_id = WINBOND_W29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14093 | .total_size = 256, |
| 14094 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14095 | .feature_bits = FEATURE_LONG_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 14096 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14097 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 14098 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 14099 | .block_erasers = |
| 14100 | { |
| 14101 | { |
| 14102 | .eraseblocks = { {256 * 1024, 1} }, |
| 14103 | .block_erase = erase_chip_block_jedec, |
| 14104 | } |
| 14105 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14106 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14107 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14108 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14109 | }, |
| 14110 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14111 | { |
| 14112 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 14113 | .name = "W29C040/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14114 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14115 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 14116 | .model_id = WINBOND_W29C040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14117 | .total_size = 512, |
| 14118 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14119 | .feature_bits = FEATURE_LONG_RESET, |
| 14120 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14121 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14122 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 14123 | .block_erasers = |
| 14124 | { |
| 14125 | { |
| 14126 | .eraseblocks = { {512 * 1024, 1} }, |
| 14127 | .block_erase = erase_chip_block_jedec, |
| 14128 | } |
| 14129 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14130 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14131 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14132 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14133 | }, |
| 14134 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14135 | { |
| 14136 | .vendor = "Winbond", |
Stefan Tauner | 03a9c3c | 2014-08-03 14:15:14 +0000 | [diff] [blame] | 14137 | .name = "W29GL032CB", |
| 14138 | .bustype = BUS_PARALLEL, |
| 14139 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 14140 | .model_id = WINBOND_W29GL032CB, |
| 14141 | .total_size = 4096, |
| 14142 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 14143 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 14144 | .tested = TEST_UNTESTED, |
| 14145 | .probe = probe_jedec_29gl, |
| 14146 | .probe_timing = TIMING_ZERO, |
| 14147 | .block_erasers = |
| 14148 | { |
| 14149 | { |
| 14150 | .eraseblocks = { |
| 14151 | {8 * 1024, 8}, |
| 14152 | {64 * 1024, 63}, |
| 14153 | }, |
| 14154 | .block_erase = erase_sector_jedec, |
| 14155 | }, { |
| 14156 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 14157 | .block_erase = erase_chip_block_jedec, |
| 14158 | }, |
| 14159 | }, |
| 14160 | .write = write_jedec_1, |
| 14161 | .read = read_memmapped, |
| 14162 | .voltage = {2700, 3600}, |
| 14163 | }, |
| 14164 | |
| 14165 | { |
| 14166 | .vendor = "Winbond", |
| 14167 | .name = "W29GL032CT", |
| 14168 | .bustype = BUS_PARALLEL, |
| 14169 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 14170 | .model_id = WINBOND_W29GL032CT, |
| 14171 | .total_size = 4096, |
| 14172 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 14173 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 14174 | .tested = TEST_UNTESTED, |
| 14175 | .probe = probe_jedec_29gl, |
| 14176 | .probe_timing = TIMING_ZERO, |
| 14177 | .block_erasers = |
| 14178 | { |
| 14179 | { |
| 14180 | .eraseblocks = { |
| 14181 | {64 * 1024, 63}, |
| 14182 | {8 * 1024, 8}, |
| 14183 | }, |
| 14184 | .block_erase = erase_sector_jedec, |
| 14185 | }, { |
| 14186 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 14187 | .block_erase = erase_chip_block_jedec, |
| 14188 | }, |
| 14189 | }, |
| 14190 | .write = write_jedec_1, |
| 14191 | .read = read_memmapped, |
| 14192 | .voltage = {2700, 3600}, |
| 14193 | }, |
| 14194 | |
| 14195 | { |
| 14196 | .vendor = "Winbond", |
| 14197 | .name = "W29GL032CH/L", |
| 14198 | .bustype = BUS_PARALLEL, |
| 14199 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 14200 | .model_id = WINBOND_W29GL032CHL, |
| 14201 | .total_size = 4096, |
| 14202 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 14203 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 14204 | .tested = TEST_UNTESTED, |
| 14205 | .probe = probe_jedec_29gl, |
| 14206 | .probe_timing = TIMING_ZERO, |
| 14207 | .block_erasers = |
| 14208 | { |
| 14209 | { |
| 14210 | .eraseblocks = { {64 * 1024, 64} }, |
| 14211 | .block_erase = erase_sector_jedec, |
| 14212 | }, { |
| 14213 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 14214 | .block_erase = erase_chip_block_jedec, |
| 14215 | }, |
| 14216 | }, |
| 14217 | .write = write_jedec_1, |
| 14218 | .read = read_memmapped, |
| 14219 | .voltage = {2700, 3600}, |
| 14220 | }, |
| 14221 | |
| 14222 | { |
| 14223 | .vendor = "Winbond", |
| 14224 | .name = "W29GL064CB", |
| 14225 | .bustype = BUS_PARALLEL, |
| 14226 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 14227 | .model_id = WINBOND_W29GL064CB, |
| 14228 | .total_size = 8192, |
| 14229 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 14230 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 14231 | .tested = TEST_UNTESTED, |
| 14232 | .probe = probe_jedec_29gl, |
| 14233 | .probe_timing = TIMING_ZERO, |
| 14234 | .block_erasers = |
| 14235 | { |
| 14236 | { |
| 14237 | .eraseblocks = { |
| 14238 | {8 * 1024, 8}, |
| 14239 | {64 * 1024, 127}, |
| 14240 | }, |
| 14241 | .block_erase = erase_sector_jedec, |
| 14242 | }, { |
| 14243 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 14244 | .block_erase = erase_chip_block_jedec, |
| 14245 | }, |
| 14246 | }, |
| 14247 | .write = write_jedec_1, |
| 14248 | .read = read_memmapped, |
| 14249 | .voltage = {2700, 3600}, |
| 14250 | }, |
| 14251 | |
| 14252 | { |
| 14253 | .vendor = "Winbond", |
| 14254 | .name = "W29GL064CT", |
| 14255 | .bustype = BUS_PARALLEL, |
| 14256 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 14257 | .model_id = WINBOND_W29GL064CT, |
| 14258 | .total_size = 8192, |
| 14259 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 14260 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 14261 | .tested = TEST_UNTESTED, |
| 14262 | .probe = probe_jedec_29gl, |
| 14263 | .probe_timing = TIMING_ZERO, |
| 14264 | .block_erasers = |
| 14265 | { |
| 14266 | { |
| 14267 | .eraseblocks = { |
| 14268 | {64 * 1024, 127}, |
| 14269 | {8 * 1024, 8}, |
| 14270 | }, |
| 14271 | .block_erase = erase_sector_jedec, |
| 14272 | }, { |
| 14273 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 14274 | .block_erase = erase_chip_block_jedec, |
| 14275 | }, |
| 14276 | }, |
| 14277 | .write = write_jedec_1, |
| 14278 | .read = read_memmapped, |
| 14279 | .voltage = {2700, 3600}, |
| 14280 | }, |
| 14281 | |
| 14282 | { |
| 14283 | .vendor = "Winbond", |
| 14284 | .name = "W29GL064CH/L", |
| 14285 | .bustype = BUS_PARALLEL, |
| 14286 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 14287 | .model_id = WINBOND_W29GL064CHL, |
| 14288 | .total_size = 8192, |
| 14289 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 14290 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 14291 | .tested = TEST_UNTESTED, |
| 14292 | .probe = probe_jedec_29gl, |
| 14293 | .probe_timing = TIMING_ZERO, |
| 14294 | .block_erasers = |
| 14295 | { |
| 14296 | { |
| 14297 | .eraseblocks = { {64 * 1024, 128} }, |
| 14298 | .block_erase = erase_sector_jedec, |
| 14299 | }, { |
| 14300 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 14301 | .block_erase = erase_chip_block_jedec, |
| 14302 | }, |
| 14303 | }, |
| 14304 | .write = write_jedec_1, |
| 14305 | .read = read_memmapped, |
| 14306 | .voltage = {2700, 3600}, |
| 14307 | }, |
| 14308 | |
| 14309 | { |
| 14310 | .vendor = "Winbond", |
| 14311 | .name = "W29GL128C", |
| 14312 | .bustype = BUS_PARALLEL, |
| 14313 | .manufacture_id = AMD_ID, /* WTF: "Industry Standard compatible Manufacturer ID code of 01h" */ |
| 14314 | .model_id = WINBOND_W29GL128CHL, |
| 14315 | .total_size = 16384, |
| 14316 | .page_size = 128 * 1024, /* actual page size is 16 */ |
| 14317 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 14318 | .tested = TEST_UNTESTED, |
| 14319 | .probe = probe_jedec_29gl, |
| 14320 | .probe_timing = TIMING_ZERO, |
| 14321 | .block_erasers = |
| 14322 | { |
| 14323 | { |
| 14324 | .eraseblocks = { {128 * 1024, 128} }, |
| 14325 | .block_erase = erase_sector_jedec, |
| 14326 | }, { |
| 14327 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 14328 | .block_erase = erase_chip_block_jedec, |
| 14329 | }, |
| 14330 | }, |
| 14331 | .write = write_jedec_1, |
| 14332 | .read = read_memmapped, |
| 14333 | .voltage = {2700, 3600}, |
| 14334 | }, |
| 14335 | |
| 14336 | { |
| 14337 | .vendor = "Winbond", |
Kyösti Mälkki | c31243e | 2012-10-28 01:50:08 +0000 | [diff] [blame] | 14338 | .name = "W39F010", |
| 14339 | .bustype = BUS_PARALLEL, |
| 14340 | .manufacture_id = WINBOND_ID, |
| 14341 | .model_id = WINBOND_W39F010, |
| 14342 | .total_size = 128, |
| 14343 | .page_size = 4 * 1024, |
| 14344 | .feature_bits = FEATURE_EITHER_RESET, |
| 14345 | .tested = TEST_OK_PREW, |
| 14346 | .probe = probe_jedec, |
| 14347 | .probe_timing = 10, |
| 14348 | .block_erasers = |
| 14349 | { |
| 14350 | { |
| 14351 | .eraseblocks = { {4 * 1024, 32} }, |
| 14352 | .block_erase = erase_block_jedec, |
| 14353 | }, { |
| 14354 | .eraseblocks = { {128 * 1024, 1} }, |
| 14355 | .block_erase = erase_chip_block_jedec, |
| 14356 | } |
| 14357 | }, |
| 14358 | .printlock = printlock_w39f010, |
| 14359 | .write = write_jedec_1, |
| 14360 | .read = read_memmapped, |
| 14361 | .voltage = {4500, 5500}, |
| 14362 | }, |
| 14363 | |
| 14364 | { |
| 14365 | .vendor = "Winbond", |
| 14366 | .name = "W39L010", |
| 14367 | .bustype = BUS_PARALLEL, |
| 14368 | .manufacture_id = WINBOND_ID, |
| 14369 | .model_id = WINBOND_W39L010, |
| 14370 | .total_size = 128, |
| 14371 | .page_size = 4 * 1024, |
| 14372 | .feature_bits = FEATURE_EITHER_RESET, |
| 14373 | .tested = TEST_UNTESTED, |
| 14374 | .probe = probe_jedec, |
| 14375 | .probe_timing = 10, |
| 14376 | .block_erasers = |
| 14377 | { |
| 14378 | { |
| 14379 | .eraseblocks = { {4 * 1024, 32} }, |
| 14380 | .block_erase = erase_block_jedec, |
| 14381 | }, { |
| 14382 | .eraseblocks = { {128 * 1024, 1} }, |
| 14383 | .block_erase = erase_chip_block_jedec, |
| 14384 | } |
| 14385 | }, |
| 14386 | .printlock = printlock_w39l010, |
| 14387 | .write = write_jedec_1, |
| 14388 | .read = read_memmapped, |
| 14389 | .voltage = {3000, 3600}, |
| 14390 | }, |
| 14391 | |
| 14392 | { |
| 14393 | .vendor = "Winbond", |
| 14394 | .name = "W39L020", |
| 14395 | .bustype = BUS_PARALLEL, |
| 14396 | .manufacture_id = WINBOND_ID, |
| 14397 | .model_id = WINBOND_W39L020, |
| 14398 | .total_size = 256, |
| 14399 | .page_size = 4 * 1024, |
| 14400 | .feature_bits = FEATURE_EITHER_RESET, |
| 14401 | .tested = TEST_UNTESTED, |
| 14402 | .probe = probe_jedec, |
| 14403 | .probe_timing = 10, |
| 14404 | .block_erasers = |
| 14405 | { |
| 14406 | { |
| 14407 | .eraseblocks = { {4 * 1024, 64} }, |
| 14408 | .block_erase = erase_block_jedec, |
| 14409 | }, { |
| 14410 | .eraseblocks = { {64 * 1024, 4} }, |
| 14411 | .block_erase = erase_sector_jedec, |
| 14412 | }, { |
| 14413 | .eraseblocks = { {256 * 1024, 1} }, |
| 14414 | .block_erase = erase_chip_block_jedec, |
| 14415 | } |
| 14416 | }, |
| 14417 | .printlock = printlock_w39l020, |
| 14418 | .write = write_jedec_1, |
| 14419 | .read = read_memmapped, |
| 14420 | .voltage = {3000, 3600}, |
| 14421 | }, |
| 14422 | |
| 14423 | { |
| 14424 | .vendor = "Winbond", |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 14425 | .name = "W39L040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14426 | .bustype = BUS_PARALLEL, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 14427 | .manufacture_id = WINBOND_ID, |
| 14428 | .model_id = WINBOND_W39L040, |
| 14429 | .total_size = 512, |
| 14430 | .page_size = 64 * 1024, |
| 14431 | .feature_bits = FEATURE_EITHER_RESET, |
| 14432 | .tested = TEST_OK_PR, |
| 14433 | .probe = probe_jedec, |
| 14434 | .probe_timing = 10, |
| 14435 | .block_erasers = |
| 14436 | { |
| 14437 | { |
| 14438 | .eraseblocks = { {4 * 1024, 128} }, |
| 14439 | .block_erase = erase_block_jedec, |
| 14440 | }, { |
| 14441 | .eraseblocks = { {64 * 1024, 8} }, |
| 14442 | .block_erase = erase_sector_jedec, |
| 14443 | }, { |
| 14444 | .eraseblocks = { {512 * 1024, 1} }, |
| 14445 | .block_erase = erase_chip_block_jedec, |
| 14446 | } |
| 14447 | }, |
| 14448 | .printlock = printlock_w39l040, |
| 14449 | .write = write_jedec_1, |
| 14450 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 14451 | .voltage = {3000, 3600}, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 14452 | }, |
| 14453 | |
| 14454 | { |
| 14455 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14456 | .name = "W39V040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14457 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14458 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 14459 | .model_id = WINBOND_W39V040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14460 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 14461 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14462 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 14463 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14464 | .probe = probe_jedec, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 14465 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 14466 | .block_erasers = |
| 14467 | { |
| 14468 | { |
| 14469 | .eraseblocks = { {64 * 1024, 8} }, |
| 14470 | .block_erase = erase_sector_jedec, |
| 14471 | }, { |
| 14472 | .eraseblocks = { {512 * 1024, 1} }, |
| 14473 | .block_erase = erase_chip_block_jedec, |
| 14474 | } |
| 14475 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 14476 | .printlock = printlock_w39v040a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14477 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14478 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14479 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14480 | }, |
| 14481 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14482 | { |
| 14483 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 14484 | .name = "W39V040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14485 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14486 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 14487 | .model_id = WINBOND_W39V040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14488 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 14489 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14490 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 14491 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14492 | .probe = probe_jedec, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 14493 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 14494 | .block_erasers = |
| 14495 | { |
| 14496 | { |
| 14497 | .eraseblocks = { {64 * 1024, 8} }, |
| 14498 | .block_erase = erase_sector_jedec, |
| 14499 | }, { |
| 14500 | .eraseblocks = { {512 * 1024, 1} }, |
| 14501 | .block_erase = erase_chip_block_jedec, |
| 14502 | } |
| 14503 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 14504 | .printlock = printlock_w39v040b, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14505 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14506 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14507 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14508 | }, |
| 14509 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14510 | { |
| 14511 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 14512 | .name = "W39V040C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14513 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14514 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 14515 | .model_id = WINBOND_W39V040C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14516 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 14517 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14518 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 14519 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14520 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 14521 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 14522 | .block_erasers = |
| 14523 | { |
| 14524 | { |
| 14525 | .eraseblocks = { {64 * 1024, 8} }, |
| 14526 | .block_erase = erase_sector_jedec, |
| 14527 | }, { |
| 14528 | .eraseblocks = { {512 * 1024, 1} }, |
| 14529 | .block_erase = erase_chip_block_jedec, |
| 14530 | } |
| 14531 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 14532 | .printlock = printlock_w39v040c, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14533 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14534 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14535 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14536 | }, |
| 14537 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14538 | { |
| 14539 | .vendor = "Winbond", |
| 14540 | .name = "W39V040FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14541 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14542 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 14543 | .model_id = WINBOND_W39V040FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14544 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 14545 | .page_size = 64 * 1024, |
Michael Karcher | c9b6341 | 2010-05-30 16:55:18 +0000 | [diff] [blame] | 14546 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14547 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14548 | .probe = probe_jedec, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 14549 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 14550 | .block_erasers = |
| 14551 | { |
| 14552 | { |
| 14553 | .eraseblocks = { {4 * 1024, 128} }, |
| 14554 | .block_erase = erase_block_jedec, |
| 14555 | }, { |
| 14556 | .eraseblocks = { {64 * 1024, 8} }, |
| 14557 | .block_erase = erase_sector_jedec, |
| 14558 | }, { |
| 14559 | .eraseblocks = { {512 * 1024, 1} }, |
| 14560 | .block_erase = erase_chip_block_jedec, |
| 14561 | } |
| 14562 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 14563 | .printlock = printlock_w39v040fa, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14564 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14565 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14566 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14567 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14568 | }, |
| 14569 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14570 | { |
| 14571 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 14572 | .name = "W39V040FB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14573 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 14574 | .manufacture_id = WINBOND_ID, |
| 14575 | .model_id = WINBOND_W39V040B, |
| 14576 | .total_size = 512, |
| 14577 | .page_size = 64 * 1024, |
| 14578 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14579 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 14580 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 14581 | .probe_timing = 10, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 14582 | .block_erasers = |
| 14583 | { |
| 14584 | { |
| 14585 | .eraseblocks = { {64 * 1024, 8} }, |
| 14586 | .block_erase = erase_sector_jedec, |
| 14587 | }, { |
| 14588 | .eraseblocks = { {512 * 1024, 1} }, |
| 14589 | .block_erase = erase_chip_block_jedec, |
| 14590 | } |
| 14591 | }, |
| 14592 | .printlock = printlock_w39v040fb, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14593 | .unlock = unlock_regspace2_uniform_64k, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 14594 | .write = write_jedec_1, |
| 14595 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 14596 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 14597 | }, |
| 14598 | |
| 14599 | { |
| 14600 | .vendor = "Winbond", |
| 14601 | .name = "W39V040FC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14602 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 14603 | .manufacture_id = WINBOND_ID, |
| 14604 | .model_id = WINBOND_W39V040C, |
| 14605 | .total_size = 512, |
| 14606 | .page_size = 64 * 1024, |
| 14607 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 14608 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 14609 | .probe = probe_jedec, |
| 14610 | .probe_timing = 10, |
| 14611 | .block_erasers = |
| 14612 | { |
| 14613 | { |
| 14614 | .eraseblocks = { {64 * 1024, 8} }, |
| 14615 | .block_erase = erase_sector_jedec, |
| 14616 | }, { |
| 14617 | .eraseblocks = { {512 * 1024, 1} }, |
| 14618 | .block_erase = erase_chip_block_jedec, |
| 14619 | } |
| 14620 | }, |
| 14621 | .printlock = printlock_w39v040fc, |
| 14622 | .write = write_jedec_1, |
| 14623 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 14624 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 14625 | }, |
| 14626 | |
| 14627 | { |
| 14628 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14629 | .name = "W39V080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14630 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14631 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 14632 | .model_id = WINBOND_W39V080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14633 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 14634 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14635 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 14636 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14637 | .probe = probe_jedec, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 14638 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 14639 | .block_erasers = |
| 14640 | { |
| 14641 | { |
| 14642 | .eraseblocks = { {64 * 1024, 16} }, |
| 14643 | .block_erase = erase_sector_jedec, |
| 14644 | }, { |
| 14645 | .eraseblocks = { {1024 * 1024, 1} }, |
| 14646 | .block_erase = erase_chip_block_jedec, |
| 14647 | } |
| 14648 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 14649 | .printlock = printlock_w39v080a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14650 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14651 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14652 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14653 | }, |
| 14654 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14655 | { |
| 14656 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 14657 | .name = "W49F002U/N", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14658 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14659 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 14660 | .model_id = WINBOND_W49F002U, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14661 | .total_size = 256, |
| 14662 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14663 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 14664 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14665 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14666 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 14667 | .block_erasers = |
| 14668 | { |
| 14669 | { |
| 14670 | .eraseblocks = { |
| 14671 | {128 * 1024, 1}, |
| 14672 | {96 * 1024, 1}, |
| 14673 | {8 * 1024, 2}, |
| 14674 | {16 * 1024, 1}, |
| 14675 | }, |
| 14676 | .block_erase = erase_sector_jedec, |
| 14677 | }, { |
| 14678 | .eraseblocks = { {256 * 1024, 1} }, |
| 14679 | .block_erase = erase_chip_block_jedec, |
| 14680 | } |
| 14681 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14682 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14683 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14684 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14685 | }, |
| 14686 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14687 | { |
| 14688 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 14689 | .name = "W49F020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14690 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 14691 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 14692 | .model_id = WINBOND_W49F020, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 14693 | .total_size = 256, |
| 14694 | .page_size = 128, |
| 14695 | .feature_bits = FEATURE_EITHER_RESET, |
| 14696 | .tested = TEST_OK_PROBE, |
| 14697 | .probe = probe_jedec, |
| 14698 | .probe_timing = 10, |
| 14699 | .block_erasers = |
| 14700 | { |
| 14701 | { |
| 14702 | .eraseblocks = { {256 * 1024, 1} }, |
| 14703 | .block_erase = erase_chip_block_jedec, |
| 14704 | } |
| 14705 | }, |
| 14706 | .write = write_jedec_1, |
| 14707 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14708 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 14709 | }, |
| 14710 | |
| 14711 | { |
| 14712 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14713 | .name = "W49V002A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14714 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14715 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 14716 | .model_id = WINBOND_W49V002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14717 | .total_size = 256, |
| 14718 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14719 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 14720 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14721 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 14722 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 14723 | .block_erasers = |
| 14724 | { |
| 14725 | { |
| 14726 | .eraseblocks = { |
| 14727 | {64 * 1024, 3}, |
| 14728 | {32 * 1024, 1}, |
| 14729 | {8 * 1024, 2}, |
| 14730 | {16 * 1024, 1}, |
| 14731 | }, |
| 14732 | .block_erase = erase_sector_jedec, |
| 14733 | }, { |
| 14734 | .eraseblocks = { {256 * 1024, 1} }, |
| 14735 | .block_erase = erase_chip_block_jedec, |
| 14736 | } |
| 14737 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14738 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14739 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14740 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14741 | }, |
| 14742 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14743 | { |
| 14744 | .vendor = "Winbond", |
| 14745 | .name = "W49V002FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14746 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14747 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 14748 | .model_id = WINBOND_W49V002FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14749 | .total_size = 256, |
| 14750 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14751 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 14752 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14753 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 14754 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 14755 | .block_erasers = |
| 14756 | { |
| 14757 | { |
| 14758 | .eraseblocks = { |
| 14759 | {64 * 1024, 3}, |
| 14760 | {32 * 1024, 1}, |
| 14761 | {8 * 1024, 2}, |
| 14762 | {16 * 1024, 1}, |
| 14763 | }, |
| 14764 | .block_erase = erase_sector_jedec, |
| 14765 | }, { |
| 14766 | .eraseblocks = { {256 * 1024, 1} }, |
| 14767 | .block_erase = erase_chip_block_jedec, |
| 14768 | } |
| 14769 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14770 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14771 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 14772 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14773 | }, |
| 14774 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14775 | { |
| 14776 | .vendor = "Winbond", |
| 14777 | .name = "W39V080FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14778 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14779 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 14780 | .model_id = WINBOND_W39V080FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14781 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 14782 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14783 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14784 | .tested = TEST_OK_PR, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 14785 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 14786 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 14787 | .block_erasers = |
| 14788 | { |
| 14789 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14790 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 14791 | .block_erase = erase_sector_jedec, |
| 14792 | }, { |
| 14793 | .eraseblocks = { {1024 * 1024, 1} }, |
| 14794 | .block_erase = erase_chip_block_jedec, |
| 14795 | } |
| 14796 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 14797 | .printlock = printlock_w39v080fa, |
Carl-Daniel Hailfinger | ef3ac8a | 2014-08-03 13:05:34 +0000 | [diff] [blame] | 14798 | .unlock = unlock_regspace2_uniform_64k, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14799 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14800 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 14801 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14802 | }, |
| 14803 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14804 | { |
| 14805 | .vendor = "Winbond", |
| 14806 | .name = "W39V080FA (dual mode)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14807 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14808 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 14809 | .model_id = WINBOND_W39V080FA_DM, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14810 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 14811 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14812 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14813 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 14814 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 14815 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 14816 | .block_erasers = |
| 14817 | { |
| 14818 | { |
Stefan Tauner | 6697f71 | 2014-08-06 15:09:15 +0000 | [diff] [blame] | 14819 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 14820 | .block_erase = erase_sector_jedec, |
| 14821 | }, { |
| 14822 | .eraseblocks = { {512 * 1024, 1} }, |
| 14823 | .block_erase = erase_chip_block_jedec, |
| 14824 | } |
| 14825 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 14826 | .printlock = printlock_w39v080fa_dual, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 14827 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14828 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 14829 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14830 | }, |
Stefan Tauner | ac1b4c8 | 2012-02-17 14:51:04 +0000 | [diff] [blame] | 14831 | |
| 14832 | { |
| 14833 | .vendor = "Unknown", |
| 14834 | .name = "SFDP-capable chip", |
| 14835 | .bustype = BUS_SPI, |
| 14836 | .manufacture_id = GENERIC_MANUF_ID, |
| 14837 | .model_id = SFDP_DEVICE_ID, |
| 14838 | /* We present our own "report this" text hence we do not |
| 14839 | * want the default "This flash part has status UNTESTED..." |
| 14840 | * text to be printed. */ |
| 14841 | .tested = TEST_OK_PREW, |
| 14842 | .probe = probe_spi_sfdp, |
| 14843 | .unlock = spi_disable_blockprotect, /* is this safe? */ |
| 14844 | .read = spi_chip_read, |
| 14845 | /* FIXME: some vendor extensions define this */ |
Carl-Daniel Hailfinger | 1c6d2ff | 2012-08-27 00:44:42 +0000 | [diff] [blame] | 14846 | .voltage = {0}, |
Stefan Tauner | ac1b4c8 | 2012-02-17 14:51:04 +0000 | [diff] [blame] | 14847 | /* Everything below will be set by the probing function. */ |
| 14848 | .write = NULL, |
| 14849 | .total_size = 0, |
| 14850 | .page_size = 0, |
| 14851 | .feature_bits = 0, |
| 14852 | .block_erasers = {}, |
| 14853 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14854 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14855 | { |
Carl-Daniel Hailfinger | 532c717 | 2011-11-04 21:35:26 +0000 | [diff] [blame] | 14856 | .vendor = "Programmer", |
| 14857 | .name = "Opaque flash chip", |
| 14858 | .bustype = BUS_PROG, |
| 14859 | .manufacture_id = PROGMANUF_ID, |
| 14860 | .model_id = PROGDEV_ID, |
| 14861 | .total_size = 0, |
| 14862 | .page_size = 256, |
| 14863 | /* probe is assumed to work, rest will be filled in by probe */ |
| 14864 | .tested = TEST_OK_PROBE, |
| 14865 | .probe = probe_opaque, |
| 14866 | /* eraseblock sizes will be set by the probing function */ |
| 14867 | .block_erasers = |
| 14868 | { |
| 14869 | { |
| 14870 | .block_erase = erase_opaque, |
| 14871 | } |
| 14872 | }, |
| 14873 | .write = write_opaque, |
| 14874 | .read = read_opaque, |
| 14875 | }, |
| 14876 | |
| 14877 | { |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 14878 | .vendor = "AMIC", |
| 14879 | .name = "unknown AMIC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14880 | .bustype = BUS_SPI, |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 14881 | .manufacture_id = AMIC_ID, |
| 14882 | .model_id = GENERIC_DEVICE_ID, |
| 14883 | .total_size = 0, |
| 14884 | .page_size = 256, |
| 14885 | .tested = TEST_BAD_PREW, |
| 14886 | .probe = probe_spi_rdid4, |
| 14887 | .probe_timing = TIMING_ZERO, |
| 14888 | .write = NULL, |
| 14889 | .read = NULL, |
| 14890 | }, |
| 14891 | |
| 14892 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14893 | .vendor = "Atmel", |
| 14894 | .name = "unknown Atmel SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14895 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14896 | .manufacture_id = ATMEL_ID, |
| 14897 | .model_id = GENERIC_DEVICE_ID, |
| 14898 | .total_size = 0, |
| 14899 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 14900 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14901 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 14902 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14903 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14904 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14905 | }, |
| 14906 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14907 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 14908 | .vendor = "Eon", |
| 14909 | .name = "unknown Eon SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14910 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14911 | .manufacture_id = EON_ID_NOPREFIX, |
| 14912 | .model_id = GENERIC_DEVICE_ID, |
| 14913 | .total_size = 0, |
| 14914 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 14915 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14916 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 14917 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14918 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14919 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14920 | }, |
| 14921 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14922 | { |
| 14923 | .vendor = "Macronix", |
| 14924 | .name = "unknown Macronix SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14925 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 14926 | .manufacture_id = MACRONIX_ID, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14927 | .model_id = GENERIC_DEVICE_ID, |
| 14928 | .total_size = 0, |
| 14929 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 14930 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14931 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 14932 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14933 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14934 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14935 | }, |
| 14936 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14937 | { |
| 14938 | .vendor = "PMC", |
| 14939 | .name = "unknown PMC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14940 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14941 | .manufacture_id = PMC_ID, |
| 14942 | .model_id = GENERIC_DEVICE_ID, |
| 14943 | .total_size = 0, |
| 14944 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 14945 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14946 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 14947 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14948 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14949 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14950 | }, |
| 14951 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14952 | { |
| 14953 | .vendor = "SST", |
| 14954 | .name = "unknown SST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14955 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14956 | .manufacture_id = SST_ID, |
| 14957 | .model_id = GENERIC_DEVICE_ID, |
| 14958 | .total_size = 0, |
| 14959 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 14960 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14961 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 14962 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14963 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14964 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14965 | }, |
| 14966 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14967 | { |
| 14968 | .vendor = "ST", |
| 14969 | .name = "unknown ST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14970 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14971 | .manufacture_id = ST_ID, |
| 14972 | .model_id = GENERIC_DEVICE_ID, |
| 14973 | .total_size = 0, |
| 14974 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 14975 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14976 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 14977 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 14978 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 14979 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 14980 | }, |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 14981 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 14982 | { |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 14983 | .vendor = "Sanyo", |
| 14984 | .name = "unknown Sanyo SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 14985 | .bustype = BUS_SPI, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 14986 | .manufacture_id = SANYO_ID, |
| 14987 | .model_id = GENERIC_DEVICE_ID, |
| 14988 | .total_size = 0, |
| 14989 | .page_size = 256, |
| 14990 | .tested = TEST_BAD_PREW, |
| 14991 | .probe = probe_spi_rdid, |
| 14992 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 14993 | .write = NULL, |
| 14994 | .read = NULL, |
| 14995 | }, |
| 14996 | |
| 14997 | { |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 14998 | .vendor = "Winbond", |
| 14999 | .name = "unknown Winbond (ex Nexcom) SPI chip", |
| 15000 | .bustype = BUS_SPI, |
| 15001 | .manufacture_id = WINBOND_NEX_ID, |
| 15002 | .model_id = GENERIC_DEVICE_ID, |
| 15003 | .total_size = 0, |
| 15004 | .page_size = 256, |
| 15005 | .tested = TEST_BAD_PREW, |
| 15006 | .probe = probe_spi_rdid, |
| 15007 | .probe_timing = TIMING_ZERO, |
| 15008 | .write = NULL, |
| 15009 | .read = NULL, |
| 15010 | }, |
| 15011 | |
| 15012 | { |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 15013 | .vendor = "Generic", |
| 15014 | .name = "unknown SPI chip (RDID)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15015 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 15016 | .manufacture_id = GENERIC_MANUF_ID, |
| 15017 | .model_id = GENERIC_DEVICE_ID, |
| 15018 | .total_size = 0, |
| 15019 | .page_size = 256, |
| 15020 | .tested = TEST_BAD_PREW, |
| 15021 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 15022 | .write = NULL, |
| 15023 | }, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 15024 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 15025 | { |
| 15026 | .vendor = "Generic", |
| 15027 | .name = "unknown SPI chip (REMS)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 15028 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 15029 | .manufacture_id = GENERIC_MANUF_ID, |
| 15030 | .model_id = GENERIC_DEVICE_ID, |
| 15031 | .total_size = 0, |
| 15032 | .page_size = 256, |
| 15033 | .tested = TEST_BAD_PREW, |
| 15034 | .probe = probe_spi_rems, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 15035 | .write = NULL, |
| 15036 | }, |
| 15037 | |
Stefan Tauner | 96658be | 2014-05-26 22:05:31 +0000 | [diff] [blame] | 15038 | {0} |
Stephan Guilloux | 72cf565 | 2009-04-21 01:46:07 +0000 | [diff] [blame] | 15039 | }; |
Stefan Tauner | 96658be | 2014-05-26 22:05:31 +0000 | [diff] [blame] | 15040 | |
| 15041 | const unsigned int flashchips_size = ARRAY_SIZE(flashchips); |