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, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 1385 | .tested = TEST_OK_PREW, |
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 | }, |
| 1398 | .unlock = unlock_49fl00x, |
| 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", |
| 1712 | .name = "AT25DQ161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1713 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1714 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1715 | .model_id = ATMEL_AT25DQ161, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1716 | .total_size = 2048, |
| 1717 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1718 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1719 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1720 | .tested = TEST_UNTESTED, |
| 1721 | .probe = probe_spi_rdid, |
| 1722 | .probe_timing = TIMING_ZERO, |
| 1723 | .block_erasers = |
| 1724 | { |
| 1725 | { |
| 1726 | .eraseblocks = { {4 * 1024, 512} }, |
| 1727 | .block_erase = spi_block_erase_20, |
| 1728 | }, { |
| 1729 | .eraseblocks = { {32 * 1024, 64} }, |
| 1730 | .block_erase = spi_block_erase_52, |
| 1731 | }, { |
| 1732 | .eraseblocks = { {64 * 1024, 32} }, |
| 1733 | .block_erase = spi_block_erase_d8, |
| 1734 | }, { |
| 1735 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1736 | .block_erase = spi_block_erase_60, |
| 1737 | }, { |
| 1738 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 1739 | .block_erase = spi_block_erase_c7, |
| 1740 | } |
| 1741 | }, |
| 1742 | .printlock = spi_prettyprint_status_register_at25df_sec, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 1743 | .unlock = spi_disable_blockprotect_at2x_global_unprotect_sec, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1744 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1745 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1746 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1747 | }, |
| 1748 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1749 | { |
| 1750 | .vendor = "Atmel", |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 1751 | .name = "AT25F512", |
| 1752 | .bustype = BUS_SPI, |
| 1753 | .manufacture_id = ATMEL_ID, |
| 1754 | .model_id = ATMEL_AT25F512, |
| 1755 | .total_size = 64, |
| 1756 | .page_size = 256, |
| 1757 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1758 | .tested = TEST_OK_PREW, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 1759 | .probe = probe_spi_at25f, |
| 1760 | .probe_timing = TIMING_ZERO, |
| 1761 | .block_erasers = |
| 1762 | { |
| 1763 | { |
| 1764 | .eraseblocks = { {32 * 1024, 2} }, |
| 1765 | .block_erase = spi_block_erase_52, |
| 1766 | }, { |
| 1767 | .eraseblocks = { {64 * 1024, 1} }, |
| 1768 | .block_erase = spi_block_erase_62, |
| 1769 | } |
| 1770 | }, |
| 1771 | .printlock = spi_prettyprint_status_register_at25f, |
| 1772 | .unlock = spi_disable_blockprotect_at25f, |
| 1773 | .write = spi_chip_write_256, |
| 1774 | .read = spi_chip_read, |
| 1775 | .voltage = {2700, 3600}, |
| 1776 | }, |
| 1777 | |
| 1778 | { |
| 1779 | .vendor = "Atmel", |
| 1780 | .name = "AT25F512A", |
| 1781 | .bustype = BUS_SPI, |
| 1782 | .manufacture_id = ATMEL_ID, |
| 1783 | .model_id = ATMEL_AT25F512A, |
| 1784 | .total_size = 64, |
| 1785 | .page_size = 128, |
| 1786 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 1787 | .tested = TEST_OK_PREW, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 1788 | .probe = probe_spi_at25f, |
| 1789 | .probe_timing = TIMING_ZERO, |
| 1790 | .block_erasers = |
| 1791 | { |
| 1792 | { |
| 1793 | .eraseblocks = { {32 * 1024, 2} }, |
| 1794 | .block_erase = spi_block_erase_52, |
| 1795 | }, { |
| 1796 | .eraseblocks = { {64 * 1024, 1} }, |
| 1797 | .block_erase = spi_block_erase_62, |
| 1798 | } |
| 1799 | }, |
| 1800 | .printlock = spi_prettyprint_status_register_at25f512a, |
| 1801 | /* FIXME: It is not correct to use this one, because the BP1 bit is N/A. */ |
| 1802 | .unlock = spi_disable_blockprotect_at25f512a, |
| 1803 | .write = spi_chip_write_256, |
| 1804 | .read = spi_chip_read, |
| 1805 | .voltage = {2700, 3600}, |
| 1806 | }, |
| 1807 | |
| 1808 | { |
| 1809 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1810 | .name = "AT25F512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1811 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1812 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1813 | .model_id = ATMEL_AT25F512B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1814 | .total_size = 64, |
| 1815 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 1816 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 1817 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1818 | .tested = TEST_UNTESTED, |
| 1819 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1820 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1821 | .block_erasers = |
| 1822 | { |
| 1823 | { |
| 1824 | .eraseblocks = { {4 * 1024, 16} }, |
| 1825 | .block_erase = spi_block_erase_20, |
| 1826 | }, { |
| 1827 | .eraseblocks = { {32 * 1024, 2} }, |
| 1828 | .block_erase = spi_block_erase_52, |
| 1829 | }, { |
| 1830 | .eraseblocks = { {32 * 1024, 2} }, |
| 1831 | .block_erase = spi_block_erase_d8, |
| 1832 | }, { |
| 1833 | .eraseblocks = { {64 * 1024, 1} }, |
| 1834 | .block_erase = spi_block_erase_60, |
| 1835 | }, { |
| 1836 | .eraseblocks = { {64 * 1024, 1} }, |
| 1837 | .block_erase = spi_block_erase_c7, |
Stefan Tauner | 3c0fcd0 | 2012-09-21 12:46:56 +0000 | [diff] [blame] | 1838 | }, { |
| 1839 | .eraseblocks = { {64 * 1024, 1} }, |
| 1840 | .block_erase = spi_block_erase_62, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1841 | } |
| 1842 | }, |
Stefan Tauner | 7bf4ed9 | 2012-08-26 21:04:27 +0000 | [diff] [blame] | 1843 | .printlock = spi_prettyprint_status_register_at25f512b, |
| 1844 | .unlock = spi_disable_blockprotect_at25f512b, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1845 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1846 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1847 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1848 | }, |
| 1849 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1850 | { |
| 1851 | .vendor = "Atmel", |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 1852 | /* The A suffix indicates 33MHz instead of 20MHz clock rate. |
| 1853 | * All other properties seem to be the same.*/ |
| 1854 | .name = "AT25F1024(A)", |
| 1855 | .bustype = BUS_SPI, |
| 1856 | .manufacture_id = ATMEL_ID, |
| 1857 | .model_id = ATMEL_AT25F1024, |
| 1858 | .total_size = 128, |
| 1859 | .page_size = 256, |
| 1860 | .feature_bits = FEATURE_WRSR_WREN, |
| 1861 | .tested = TEST_OK_PREW, |
| 1862 | .probe = probe_spi_at25f, |
| 1863 | .probe_timing = TIMING_ZERO, |
| 1864 | .block_erasers = |
| 1865 | { |
| 1866 | { |
| 1867 | .eraseblocks = { {32 * 1024, 4} }, |
| 1868 | .block_erase = spi_block_erase_52, |
| 1869 | }, { |
| 1870 | .eraseblocks = { {128 * 1024, 1} }, |
| 1871 | .block_erase = spi_block_erase_62, |
| 1872 | } |
| 1873 | }, |
| 1874 | .printlock = spi_prettyprint_status_register_at25f, |
| 1875 | .unlock = spi_disable_blockprotect_at25f, |
| 1876 | .write = spi_chip_write_256, |
| 1877 | .read = spi_chip_read, |
| 1878 | .voltage = {2700, 3600}, |
| 1879 | }, |
| 1880 | |
| 1881 | { |
| 1882 | .vendor = "Atmel", |
| 1883 | .name = "AT25F2048", |
| 1884 | .bustype = BUS_SPI, |
| 1885 | .manufacture_id = ATMEL_ID, |
| 1886 | .model_id = ATMEL_AT25F2048, |
| 1887 | .total_size = 256, |
| 1888 | .page_size = 256, |
| 1889 | .feature_bits = FEATURE_WRSR_WREN, |
| 1890 | .tested = TEST_UNTESTED, |
| 1891 | .probe = probe_spi_at25f, |
| 1892 | .probe_timing = TIMING_ZERO, |
| 1893 | .block_erasers = |
| 1894 | { |
| 1895 | { |
| 1896 | .eraseblocks = { {64 * 1024, 4} }, |
| 1897 | .block_erase = spi_block_erase_52, |
| 1898 | }, { |
| 1899 | .eraseblocks = { {256 * 1024, 1} }, |
| 1900 | .block_erase = spi_block_erase_62, |
| 1901 | } |
| 1902 | }, |
| 1903 | .printlock = spi_prettyprint_status_register_at25f, |
| 1904 | .unlock = spi_disable_blockprotect_at25f, |
| 1905 | .write = spi_chip_write_256, |
| 1906 | .read = spi_chip_read, |
| 1907 | .voltage = {2700, 3600}, |
| 1908 | }, |
| 1909 | |
| 1910 | { |
| 1911 | .vendor = "Atmel", |
| 1912 | .name = "AT25F4096", |
| 1913 | .bustype = BUS_SPI, |
| 1914 | .manufacture_id = ATMEL_ID, |
| 1915 | .model_id = ATMEL_AT25F4096, |
| 1916 | .total_size = 512, |
| 1917 | .page_size = 256, |
| 1918 | .feature_bits = FEATURE_WRSR_WREN, |
| 1919 | .tested = TEST_UNTESTED, |
| 1920 | .probe = probe_spi_at25f, |
| 1921 | .probe_timing = TIMING_ZERO, |
| 1922 | .block_erasers = |
| 1923 | { |
| 1924 | { |
| 1925 | .eraseblocks = { {64 * 1024, 8} }, |
| 1926 | .block_erase = spi_block_erase_52, |
| 1927 | }, { |
| 1928 | .eraseblocks = { {512 * 1024, 1} }, |
| 1929 | .block_erase = spi_block_erase_62, |
| 1930 | } |
| 1931 | }, |
| 1932 | .printlock = spi_prettyprint_status_register_at25f4096, |
Stefan Tauner | 278ba6e | 2013-06-28 21:28:27 +0000 | [diff] [blame] | 1933 | /* "Bits 5-6 are 0s when device is not in an internal write cycle." Better leave them alone: */ |
| 1934 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Stefan Tauner | 57794ac | 2012-12-29 15:04:20 +0000 | [diff] [blame] | 1935 | .write = spi_chip_write_256, |
| 1936 | .read = spi_chip_read, |
| 1937 | .voltage = {2700, 3600}, |
| 1938 | }, |
| 1939 | |
| 1940 | { |
| 1941 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1942 | .name = "AT25FS010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1943 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1944 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1945 | .model_id = ATMEL_AT25FS010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1946 | .total_size = 128, |
| 1947 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1948 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 1949 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1950 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1951 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1952 | .block_erasers = |
| 1953 | { |
| 1954 | { |
| 1955 | .eraseblocks = { {4 * 1024, 32} }, |
| 1956 | .block_erase = spi_block_erase_20, |
| 1957 | }, { |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1958 | .eraseblocks = { {4 * 1024, 32} }, |
| 1959 | .block_erase = spi_block_erase_d7, |
| 1960 | }, { |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1961 | .eraseblocks = { {32 * 1024, 4} }, |
| 1962 | .block_erase = spi_block_erase_52, |
| 1963 | }, { |
| 1964 | .eraseblocks = { {32 * 1024, 4} }, |
| 1965 | .block_erase = spi_block_erase_d8, |
| 1966 | }, { |
| 1967 | .eraseblocks = { {128 * 1024, 1} }, |
| 1968 | .block_erase = spi_block_erase_60, |
| 1969 | }, { |
| 1970 | .eraseblocks = { {128 * 1024, 1} }, |
| 1971 | .block_erase = spi_block_erase_c7, |
| 1972 | } |
| 1973 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 1974 | .printlock = spi_prettyprint_status_register_at25fs010, |
| 1975 | .unlock = spi_disable_blockprotect_at25fs010, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 1976 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1977 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 1978 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 1979 | }, |
| 1980 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1981 | { |
| 1982 | .vendor = "Atmel", |
| 1983 | .name = "AT25FS040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 1984 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1985 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 1986 | .model_id = ATMEL_AT25FS040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1987 | .total_size = 512, |
| 1988 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 1989 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 1990 | .tested = TEST_UNTESTED, |
| 1991 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 1992 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 1993 | .block_erasers = |
| 1994 | { |
| 1995 | { |
| 1996 | .eraseblocks = { {4 * 1024, 128} }, |
| 1997 | .block_erase = spi_block_erase_20, |
| 1998 | }, { |
| 1999 | .eraseblocks = { {64 * 1024, 8} }, |
| 2000 | .block_erase = spi_block_erase_52, |
| 2001 | }, { |
| 2002 | .eraseblocks = { {64 * 1024, 8} }, |
| 2003 | .block_erase = spi_block_erase_d8, |
| 2004 | }, { |
| 2005 | .eraseblocks = { {512 * 1024, 1} }, |
| 2006 | .block_erase = spi_block_erase_60, |
| 2007 | }, { |
| 2008 | .eraseblocks = { {512 * 1024, 1} }, |
| 2009 | .block_erase = spi_block_erase_c7, |
| 2010 | } |
| 2011 | }, |
Carl-Daniel Hailfinger | fd7075a | 2010-07-29 13:09:18 +0000 | [diff] [blame] | 2012 | .printlock = spi_prettyprint_status_register_at25fs040, |
| 2013 | .unlock = spi_disable_blockprotect_at25fs040, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2014 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2015 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2016 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2017 | }, |
| 2018 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2019 | { |
| 2020 | .vendor = "Atmel", |
| 2021 | .name = "AT26DF041", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2022 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2023 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2024 | .model_id = ATMEL_AT26DF041, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2025 | .total_size = 512, |
| 2026 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2027 | /* 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] | 2028 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2029 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2030 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2031 | .block_erasers = |
| 2032 | { |
| 2033 | { |
Stefan Tauner | 94b39b4 | 2012-10-27 00:06:02 +0000 | [diff] [blame] | 2034 | .eraseblocks = { {256, 2048} }, |
| 2035 | .block_erase = spi_block_erase_81, |
| 2036 | }, { |
| 2037 | .eraseblocks = { {2 * 1024, 256} }, |
| 2038 | .block_erase = spi_block_erase_50, |
| 2039 | }, { |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2040 | .eraseblocks = { {4 * 1024, 128} }, |
| 2041 | .block_erase = spi_block_erase_20, |
| 2042 | } |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2043 | }, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2044 | .printlock = spi_prettyprint_status_register_plain, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2045 | /* 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] | 2046 | .write = spi_chip_write_1, |
| 2047 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2048 | .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] | 2049 | }, |
| 2050 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2051 | { |
| 2052 | .vendor = "Atmel", |
| 2053 | .name = "AT26DF081A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2054 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2055 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2056 | .model_id = ATMEL_AT26DF081A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2057 | .total_size = 1024, |
| 2058 | .page_size = 256, |
Mathias Krause | 2c3afa3 | 2011-01-17 07:45:54 +0000 | [diff] [blame] | 2059 | .feature_bits = FEATURE_WRSR_WREN, |
| 2060 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2061 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2062 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2063 | .block_erasers = |
| 2064 | { |
| 2065 | { |
| 2066 | .eraseblocks = { {4 * 1024, 256} }, |
| 2067 | .block_erase = spi_block_erase_20, |
| 2068 | }, { |
| 2069 | .eraseblocks = { {32 * 1024, 32} }, |
| 2070 | .block_erase = spi_block_erase_52, |
| 2071 | }, { |
| 2072 | .eraseblocks = { {64 * 1024, 16} }, |
| 2073 | .block_erase = spi_block_erase_d8, |
| 2074 | }, { |
| 2075 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2076 | .block_erase = spi_block_erase_60, |
| 2077 | }, { |
| 2078 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2079 | .block_erase = spi_block_erase_c7, |
| 2080 | } |
| 2081 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2082 | .printlock = spi_prettyprint_status_register_at26df081a, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2083 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2084 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2085 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2086 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2087 | }, |
| 2088 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2089 | { |
| 2090 | .vendor = "Atmel", |
| 2091 | .name = "AT26DF161", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2092 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2093 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2094 | .model_id = ATMEL_AT26DF161, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2095 | .total_size = 2048, |
| 2096 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2097 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 2098 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2099 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2100 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2101 | .block_erasers = |
| 2102 | { |
| 2103 | { |
| 2104 | .eraseblocks = { {4 * 1024, 512} }, |
| 2105 | .block_erase = spi_block_erase_20, |
| 2106 | }, { |
| 2107 | .eraseblocks = { {32 * 1024, 64} }, |
| 2108 | .block_erase = spi_block_erase_52, |
| 2109 | }, { |
| 2110 | .eraseblocks = { {64 * 1024, 32} }, |
| 2111 | .block_erase = spi_block_erase_d8, |
| 2112 | }, { |
| 2113 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2114 | .block_erase = spi_block_erase_60, |
| 2115 | }, { |
| 2116 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2117 | .block_erase = spi_block_erase_c7, |
| 2118 | } |
| 2119 | }, |
Carl-Daniel Hailfinger | 7a3bd8f | 2011-05-19 00:06:06 +0000 | [diff] [blame] | 2120 | .printlock = spi_prettyprint_status_register_at25df, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2121 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2122 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2123 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2124 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2125 | }, |
| 2126 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2127 | { |
| 2128 | .vendor = "Atmel", |
| 2129 | .name = "AT26DF161A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2130 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2131 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2132 | .model_id = ATMEL_AT26DF161A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2133 | .total_size = 2048, |
| 2134 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2135 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2136 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2137 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2138 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2139 | .block_erasers = |
| 2140 | { |
| 2141 | { |
| 2142 | .eraseblocks = { {4 * 1024, 512} }, |
| 2143 | .block_erase = spi_block_erase_20, |
| 2144 | }, { |
| 2145 | .eraseblocks = { {32 * 1024, 64} }, |
| 2146 | .block_erase = spi_block_erase_52, |
| 2147 | }, { |
| 2148 | .eraseblocks = { {64 * 1024, 32} }, |
| 2149 | .block_erase = spi_block_erase_d8, |
| 2150 | }, { |
| 2151 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2152 | .block_erase = spi_block_erase_60, |
| 2153 | }, { |
| 2154 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 2155 | .block_erase = spi_block_erase_c7, |
| 2156 | } |
| 2157 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2158 | .printlock = spi_prettyprint_status_register_at26df081a, |
Stefan Tauner | cecb2c5 | 2013-06-20 22:55:41 +0000 | [diff] [blame] | 2159 | .unlock = spi_disable_blockprotect_at2x_global_unprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2160 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2161 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2162 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2163 | }, |
| 2164 | |
| 2165 | /*The AT26DF321 has the same ID as the AT25DF321. */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2166 | /*{ |
| 2167 | .vendor = "Atmel", |
| 2168 | .name = "AT26DF321", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2169 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2170 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2171 | .model_id = ATMEL_AT26DF321, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2172 | .total_size = 4096, |
| 2173 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2174 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2175 | .tested = TEST_UNTESTED, |
| 2176 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2177 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2178 | .printlock = spi_prettyprint_status_register_at26df081a, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 2179 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 2180 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2181 | .read = spi_chip_read, |
| 2182 | },*/ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2183 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2184 | { |
| 2185 | .vendor = "Atmel", |
| 2186 | .name = "AT26F004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2187 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2188 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2189 | .model_id = ATMEL_AT26F004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2190 | .total_size = 512, |
| 2191 | .page_size = 256, |
Stefan Tauner | 6455dff | 2014-05-26 00:36:24 +0000 | [diff] [blame] | 2192 | .tested = {.probe = NT, .read = NT, .erase = NT, .write = BAD }, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2193 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2194 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2195 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2196 | .block_erasers = |
| 2197 | { |
| 2198 | { |
| 2199 | .eraseblocks = { {4 * 1024, 128} }, |
| 2200 | .block_erase = spi_block_erase_20, |
| 2201 | }, { |
| 2202 | .eraseblocks = { {32 * 1024, 16} }, |
| 2203 | .block_erase = spi_block_erase_52, |
| 2204 | }, { |
| 2205 | .eraseblocks = { {64 * 1024, 8} }, |
| 2206 | .block_erase = spi_block_erase_d8, |
| 2207 | }, { |
| 2208 | .eraseblocks = { {512 * 1024, 1} }, |
| 2209 | .block_erase = spi_block_erase_60, |
| 2210 | }, { |
| 2211 | .eraseblocks = { {512 * 1024, 1} }, |
| 2212 | .block_erase = spi_block_erase_c7, |
| 2213 | } |
| 2214 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 2215 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2216 | .write = NULL /* Incompatible Page write */, |
| 2217 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2218 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2219 | }, |
| 2220 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2221 | { |
| 2222 | .vendor = "Atmel", |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2223 | .name = "AT29C512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2224 | .bustype = BUS_PARALLEL, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2225 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2226 | .model_id = ATMEL_AT29C512, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2227 | .total_size = 64, |
| 2228 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2229 | .feature_bits = FEATURE_LONG_RESET, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 2230 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 2231 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 2232 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2233 | .block_erasers = |
| 2234 | { |
| 2235 | { |
| 2236 | .eraseblocks = { {64 * 1024, 1} }, |
| 2237 | .block_erase = erase_chip_block_jedec, |
| 2238 | } |
| 2239 | }, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2240 | .write = write_jedec, |
| 2241 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2242 | .voltage = {4500, 5500}, |
Maciej Pijanka | bc2bbd2 | 2009-06-02 16:45:59 +0000 | [diff] [blame] | 2243 | }, |
| 2244 | |
| 2245 | { |
| 2246 | .vendor = "Atmel", |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2247 | .name = "AT29C010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2248 | .bustype = BUS_PARALLEL, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2249 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2250 | .model_id = ATMEL_AT29C010A, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2251 | .total_size = 128, |
| 2252 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2253 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 2254 | .tested = TEST_OK_PRE, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2255 | .probe = probe_jedec, |
Maciej Pijanka | c6e1111 | 2009-06-03 14:46:22 +0000 | [diff] [blame] | 2256 | .probe_timing = 10000, /* 10mS, Enter=Exec */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2257 | .block_erasers = |
| 2258 | { |
| 2259 | { |
| 2260 | .eraseblocks = { {128 * 1024, 1} }, |
| 2261 | .block_erase = erase_chip_block_jedec, |
| 2262 | } |
| 2263 | }, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2264 | .write = write_jedec, /* FIXME */ |
| 2265 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2266 | .voltage = {4500, 5500}, |
Uwe Hermann | 8403ccb | 2009-05-16 21:39:19 +0000 | [diff] [blame] | 2267 | }, |
| 2268 | |
| 2269 | { |
| 2270 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2271 | .name = "AT29C020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2272 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2273 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2274 | .model_id = ATMEL_AT29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2275 | .total_size = 256, |
| 2276 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2277 | .feature_bits = FEATURE_LONG_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 2278 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2279 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 2280 | .probe_timing = 10000, /* 10ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2281 | .block_erasers = |
| 2282 | { |
| 2283 | { |
| 2284 | .eraseblocks = { {256 * 1024, 1} }, |
| 2285 | .block_erase = erase_chip_block_jedec, |
| 2286 | } |
| 2287 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2288 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2289 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2290 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2291 | }, |
| 2292 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2293 | { |
| 2294 | .vendor = "Atmel", |
| 2295 | .name = "AT29C040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2296 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2297 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2298 | .model_id = ATMEL_AT29C040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2299 | .total_size = 512, |
| 2300 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2301 | .feature_bits = FEATURE_LONG_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2302 | .tested = TEST_UNTESTED, |
| 2303 | .probe = probe_jedec, |
Mateusz Murawski | 8b2f46b | 2009-06-12 21:29:36 +0000 | [diff] [blame] | 2304 | .probe_timing = 10000, /* 10 ms */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2305 | .block_erasers = |
| 2306 | { |
| 2307 | { |
| 2308 | .eraseblocks = { {512 * 1024, 1} }, |
| 2309 | .block_erase = erase_chip_block_jedec, |
| 2310 | } |
| 2311 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2312 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2313 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2314 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2315 | }, |
| 2316 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2317 | { |
| 2318 | .vendor = "Atmel", |
| 2319 | .name = "AT45CS1282", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2320 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2321 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2322 | .model_id = ATMEL_AT45CS1282, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2323 | .total_size = 16896 /* No power of two sizes */, |
| 2324 | .page_size = 1056 /* No power of two sizes */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2325 | /* 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] | 2326 | /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */ |
| 2327 | .feature_bits = FEATURE_OTP, |
| 2328 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2329 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2330 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | 1dd5d3a | 2013-08-27 18:02:19 +0000 | [diff] [blame] | 2331 | .block_erasers = |
| 2332 | { |
| 2333 | { |
| 2334 | .eraseblocks = { |
| 2335 | {8 * 1056, 1}, /* sector 0a: opcode 50h */ |
| 2336 | {248 * 1056, 1}, /* sector 0b: opcode 7Ch */ |
| 2337 | {256 * 1056, 63}, /* sectors 1 - 63: opcode 7Ch */ |
| 2338 | }, |
| 2339 | .block_erase = spi_erase_at45cs_sector, |
| 2340 | } |
| 2341 | }, |
| 2342 | .printlock = spi_prettyprint_status_register_plain, |
| 2343 | .gran = write_gran_1056bytes, |
| 2344 | .write = spi_write_at45db, |
| 2345 | .read = spi_read_at45db, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2346 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2347 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2348 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2349 | { |
| 2350 | .vendor = "Atmel", |
| 2351 | .name = "AT45DB011D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2352 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2353 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2354 | .model_id = ATMEL_AT45DB011D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2355 | .total_size = 128 /* or 132, determined from status register */, |
| 2356 | .page_size = 256 /* or 264, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2357 | /* 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] | 2358 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2359 | .feature_bits = FEATURE_OTP, |
| 2360 | .tested = TEST_UNTESTED, |
| 2361 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2362 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2363 | .block_erasers = |
| 2364 | { |
| 2365 | { |
| 2366 | .eraseblocks = { {256, 512} }, |
| 2367 | .block_erase = spi_erase_at45db_page, |
| 2368 | }, { |
| 2369 | .eraseblocks = { {8 * 256, 512/8} }, |
| 2370 | .block_erase = spi_erase_at45db_block, |
| 2371 | }, { |
| 2372 | .eraseblocks = { |
| 2373 | {8 * 256, 1}, |
| 2374 | {120 * 256, 1}, |
| 2375 | {128 * 256, 3}, |
| 2376 | }, |
| 2377 | .block_erase = spi_erase_at45db_sector |
| 2378 | }, { |
| 2379 | .eraseblocks = { {128 * 1024, 1} }, |
| 2380 | .block_erase = spi_erase_at45db_chip, |
| 2381 | } |
| 2382 | }, |
| 2383 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2384 | .printlock = spi_prettyprint_status_register_at45db, |
| 2385 | /* granularity will be set by the probing function. */ |
| 2386 | .write = spi_write_at45db, |
| 2387 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2388 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2389 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2390 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2391 | { |
| 2392 | .vendor = "Atmel", |
| 2393 | .name = "AT45DB021D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2394 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2395 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2396 | .model_id = ATMEL_AT45DB021D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2397 | .total_size = 256 /* or 264, determined from status register */, |
| 2398 | .page_size = 256 /* or 264, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2399 | /* 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] | 2400 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2401 | .feature_bits = FEATURE_OTP, |
| 2402 | .tested = TEST_UNTESTED, |
| 2403 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2404 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2405 | .block_erasers = |
| 2406 | { |
| 2407 | { |
| 2408 | .eraseblocks = { {256, 1024} }, |
| 2409 | .block_erase = spi_erase_at45db_page, |
| 2410 | }, { |
| 2411 | .eraseblocks = { {8 * 256, 1024/8} }, |
| 2412 | .block_erase = spi_erase_at45db_block, |
| 2413 | }, { |
| 2414 | .eraseblocks = { |
| 2415 | {8 * 256, 1}, |
| 2416 | {120 * 256, 1}, |
| 2417 | {128 * 256, 7}, |
| 2418 | }, |
| 2419 | .block_erase = spi_erase_at45db_sector |
| 2420 | }, { |
| 2421 | .eraseblocks = { {256 * 1024, 1} }, |
| 2422 | .block_erase = spi_erase_at45db_chip, |
| 2423 | } |
| 2424 | }, |
| 2425 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2426 | .printlock = spi_prettyprint_status_register_at45db, |
| 2427 | /* granularity will be set by the probing function. */ |
| 2428 | .write = spi_write_at45db, |
| 2429 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2430 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2431 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2432 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2433 | { |
| 2434 | .vendor = "Atmel", |
| 2435 | .name = "AT45DB041D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2436 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2437 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2438 | .model_id = ATMEL_AT45DB041D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2439 | .total_size = 512 /* or 528, determined from status register */, |
| 2440 | .page_size = 256 /* or 264, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2441 | /* 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] | 2442 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2443 | .feature_bits = FEATURE_OTP, |
| 2444 | .tested = TEST_OK_PREW, |
| 2445 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2446 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2447 | .block_erasers = |
| 2448 | { |
| 2449 | { |
| 2450 | .eraseblocks = { {256, 2048} }, |
| 2451 | .block_erase = spi_erase_at45db_page, |
| 2452 | }, { |
| 2453 | .eraseblocks = { {8 * 256, 2048/8} }, |
| 2454 | .block_erase = spi_erase_at45db_block, |
| 2455 | }, { |
| 2456 | .eraseblocks = { |
| 2457 | {8 * 256, 1}, |
| 2458 | {248 * 256, 1}, |
| 2459 | {256 * 256, 7}, |
| 2460 | }, |
| 2461 | .block_erase = spi_erase_at45db_sector |
| 2462 | }, { |
| 2463 | .eraseblocks = { {512 * 1024, 1} }, |
| 2464 | .block_erase = spi_erase_at45db_chip, |
| 2465 | } |
| 2466 | }, |
| 2467 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2468 | .printlock = spi_prettyprint_status_register_at45db, |
| 2469 | /* granularity will be set by the probing function. */ |
| 2470 | .write = spi_write_at45db, |
| 2471 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 2472 | .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] | 2473 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2474 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2475 | { |
| 2476 | .vendor = "Atmel", |
| 2477 | .name = "AT45DB081D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2478 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2479 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2480 | .model_id = ATMEL_AT45DB081D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2481 | .total_size = 1024 /* or 1056, determined from status register */, |
| 2482 | .page_size = 256 /* or 264, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2483 | /* 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] | 2484 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2485 | .feature_bits = FEATURE_OTP, |
| 2486 | .tested = TEST_UNTESTED, |
| 2487 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2488 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2489 | .block_erasers = |
| 2490 | { |
| 2491 | { |
| 2492 | .eraseblocks = { {256, 4096} }, |
| 2493 | .block_erase = spi_erase_at45db_page, |
| 2494 | }, { |
| 2495 | .eraseblocks = { {8 * 256, 4096/8} }, |
| 2496 | .block_erase = spi_erase_at45db_block, |
| 2497 | }, { |
| 2498 | .eraseblocks = { |
| 2499 | {8 * 256, 1}, |
| 2500 | {248 * 256, 1}, |
| 2501 | {256 * 256, 15}, |
| 2502 | }, |
| 2503 | .block_erase = spi_erase_at45db_sector |
| 2504 | }, { |
| 2505 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2506 | .block_erase = spi_erase_at45db_chip, |
| 2507 | } |
| 2508 | }, |
| 2509 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2510 | .printlock = spi_prettyprint_status_register_at45db, |
| 2511 | /* granularity will be set by the probing function. */ |
| 2512 | .write = spi_write_at45db, |
| 2513 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2514 | .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] | 2515 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2516 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2517 | { |
| 2518 | .vendor = "Atmel", |
| 2519 | .name = "AT45DB161D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2520 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2521 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2522 | .model_id = ATMEL_AT45DB161D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2523 | .total_size = 2048 /* or 2112, determined from status register */, |
| 2524 | .page_size = 512 /* or 528, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2525 | /* 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] | 2526 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2527 | .feature_bits = FEATURE_OTP, |
| 2528 | .tested = TEST_OK_PREW, |
| 2529 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2530 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2531 | .block_erasers = |
| 2532 | { |
| 2533 | { |
| 2534 | .eraseblocks = { {512, 4096} }, |
| 2535 | .block_erase = spi_erase_at45db_page, |
| 2536 | }, { |
| 2537 | .eraseblocks = { {8 * 512, 4096/8} }, |
| 2538 | .block_erase = spi_erase_at45db_block, |
| 2539 | }, { |
| 2540 | .eraseblocks = { |
| 2541 | {8 * 512, 1}, |
| 2542 | {248 * 512, 1}, |
| 2543 | {256 * 512, 15}, |
| 2544 | }, |
| 2545 | .block_erase = spi_erase_at45db_sector |
| 2546 | }, { |
| 2547 | .eraseblocks = { {2048 * 1024, 1} }, |
| 2548 | .block_erase = spi_erase_at45db_chip, |
| 2549 | } |
| 2550 | }, |
| 2551 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2552 | .printlock = spi_prettyprint_status_register_at45db, |
| 2553 | /* granularity will be set by the probing function. */ |
| 2554 | .write = spi_write_at45db, |
| 2555 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 2556 | .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] | 2557 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2558 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2559 | { |
| 2560 | .vendor = "Atmel", |
| 2561 | .name = "AT45DB321C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2562 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2563 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2564 | .model_id = ATMEL_AT45DB321C, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2565 | .total_size = 4224 /* No power of two sizes */, |
| 2566 | .page_size = 528 /* No power of two sizes */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2567 | /* 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] | 2568 | /* OTP: 128B total, 64B pre-programmed; read 0x77 (4 dummy bytes); write 0x9A (via buffer) */ |
| 2569 | .feature_bits = FEATURE_OTP, |
| 2570 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2571 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2572 | .probe_timing = TIMING_ZERO, |
Stefan Tauner | fdc4f7e | 2013-08-27 18:02:12 +0000 | [diff] [blame] | 2573 | .block_erasers = |
| 2574 | { |
| 2575 | { |
| 2576 | .eraseblocks = { {528, 8192} }, |
| 2577 | .block_erase = spi_erase_at45db_page, |
| 2578 | }, { |
| 2579 | .eraseblocks = { {8 * 528, 8192/8} }, |
| 2580 | .block_erase = spi_erase_at45db_block, |
| 2581 | }, /* Although the datasheets describes sectors (which can be write protected) |
| 2582 | * there seems to be no erase functions for them. |
| 2583 | { |
| 2584 | .eraseblocks = { |
| 2585 | {8 * 528, 1}, |
| 2586 | {120 * 528, 1}, |
| 2587 | {128 * 528, 63}, |
| 2588 | }, |
| 2589 | .block_erase = spi_erase_at45db_sector |
| 2590 | }, */ { |
| 2591 | .eraseblocks = { {4224 * 1024, 1} }, |
| 2592 | .block_erase = spi_erase_at45db_chip, |
| 2593 | } |
| 2594 | }, |
| 2595 | .printlock = spi_prettyprint_status_register_at45db, /* Bit 0 is undefined, no lockdown */ |
| 2596 | .gran = write_gran_528bytes, |
| 2597 | .write = spi_write_at45db, |
| 2598 | .read = spi_read_at45db_e8, /* 3 address and 4 dummy bytes */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2599 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2600 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2601 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2602 | { |
| 2603 | .vendor = "Atmel", |
| 2604 | .name = "AT45DB321D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2605 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2606 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2607 | .model_id = ATMEL_AT45DB321D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2608 | .total_size = 4096 /* or 4224, determined from status register */, |
| 2609 | .page_size = 512 /* or 528, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2610 | /* 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] | 2611 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 2612 | .feature_bits = FEATURE_OTP, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2613 | .tested = TEST_UNTESTED, |
| 2614 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2615 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2616 | .block_erasers = |
| 2617 | { |
| 2618 | { |
| 2619 | .eraseblocks = { {512, 8192} }, |
| 2620 | .block_erase = spi_erase_at45db_page, |
| 2621 | }, { |
| 2622 | .eraseblocks = { {8 * 512, 8192/8} }, |
| 2623 | .block_erase = spi_erase_at45db_block, |
| 2624 | }, { |
| 2625 | .eraseblocks = { |
| 2626 | {8 * 512, 1}, |
| 2627 | {120 * 512, 1}, |
| 2628 | {128 * 512, 63}, |
| 2629 | }, |
| 2630 | .block_erase = spi_erase_at45db_sector |
| 2631 | }, { |
| 2632 | .eraseblocks = { {4096 * 1024, 1} }, |
| 2633 | .block_erase = spi_erase_at45db_chip, |
| 2634 | } |
| 2635 | }, |
| 2636 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2637 | .printlock = spi_prettyprint_status_register_at45db, |
| 2638 | /* granularity will be set by the probing function. */ |
| 2639 | .write = spi_write_at45db, |
| 2640 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 2641 | .voltage = {2700, 3600}, /* 2.5-3.6V & 2.7-3.6V models available */ |
| 2642 | }, |
| 2643 | |
| 2644 | { |
| 2645 | .vendor = "Atmel", |
| 2646 | .name = "AT45DB321E", |
| 2647 | .bustype = BUS_SPI, |
| 2648 | .manufacture_id = ATMEL_ID, |
| 2649 | .model_id = ATMEL_AT45DB321C, |
| 2650 | .total_size = 4096 /* or 4224, determined from status register */, |
| 2651 | .page_size = 512 /* or 528, determined from status register */, |
| 2652 | /* does not support EWSR nor WREN and has no writable status register bits whatsoever */ |
| 2653 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2654 | .feature_bits = FEATURE_OTP, |
| 2655 | .tested = TEST_UNTESTED, |
| 2656 | .probe = probe_spi_at45db, |
| 2657 | .probe_timing = TIMING_ZERO, |
| 2658 | .block_erasers = |
| 2659 | { |
| 2660 | { |
| 2661 | .eraseblocks = { {512, 8192} }, |
| 2662 | .block_erase = spi_erase_at45db_page, |
| 2663 | }, { |
| 2664 | .eraseblocks = { {8 * 512, 8192/8} }, |
| 2665 | .block_erase = spi_erase_at45db_block, |
| 2666 | }, { |
| 2667 | .eraseblocks = { |
| 2668 | {8 * 512, 1}, |
| 2669 | {120 * 512, 1}, |
| 2670 | {128 * 512, 63}, |
| 2671 | }, |
| 2672 | .block_erase = spi_erase_at45db_sector |
| 2673 | }, { |
| 2674 | .eraseblocks = { {4096 * 1024, 1} }, |
| 2675 | .block_erase = spi_erase_at45db_chip, |
| 2676 | } |
| 2677 | }, |
| 2678 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2679 | .printlock = spi_prettyprint_status_register_at45db, /* has a 2nd status register */ |
| 2680 | /* granularity will be set by the probing function. */ |
| 2681 | .write = spi_write_at45db, |
| 2682 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
| 2683 | .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] | 2684 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2685 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2686 | { |
| 2687 | .vendor = "Atmel", |
| 2688 | .name = "AT45DB642D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2689 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2690 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2691 | .model_id = ATMEL_AT45DB642D, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2692 | .total_size = 8192 /* or 8448, determined from status register */, |
| 2693 | .page_size = 1024 /* or 1056, determined from status register */, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 2694 | /* 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] | 2695 | /* OTP: 128B total, 64B pre-programmed; read 0x77; write 0x9B */ |
| 2696 | .feature_bits = FEATURE_OTP, |
| 2697 | .tested = TEST_UNTESTED, |
| 2698 | .probe = probe_spi_at45db, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 2699 | .probe_timing = TIMING_ZERO, |
Aidan Thornton | db4e87d | 2013-08-27 18:01:53 +0000 | [diff] [blame] | 2700 | .block_erasers = |
| 2701 | { |
| 2702 | { |
| 2703 | .eraseblocks = { {1024, 8192} }, |
| 2704 | .block_erase = spi_erase_at45db_page, |
| 2705 | }, { |
| 2706 | .eraseblocks = { {8 * 1024, 8192/8} }, |
| 2707 | .block_erase = spi_erase_at45db_block, |
| 2708 | }, { |
| 2709 | .eraseblocks = { |
| 2710 | {8 * 1024, 1}, |
| 2711 | {248 * 1024, 1}, |
| 2712 | {256 * 1024, 31}, |
| 2713 | }, |
| 2714 | .block_erase = spi_erase_at45db_sector |
| 2715 | }, { |
| 2716 | .eraseblocks = { {8192 * 1024, 1} }, |
| 2717 | .block_erase = spi_erase_at45db_chip, |
| 2718 | } |
| 2719 | }, |
| 2720 | .unlock = spi_disable_blockprotect_at45db, /* Impossible if locked down or #WP is low */ |
| 2721 | .printlock = spi_prettyprint_status_register_at45db, |
| 2722 | /* granularity will be set by the probing function. */ |
| 2723 | .write = spi_write_at45db, |
| 2724 | .read = spi_read_at45db, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2725 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 66afb36 | 2009-03-19 12:18:13 +0000 | [diff] [blame] | 2726 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2727 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2728 | { |
| 2729 | .vendor = "Atmel", |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2730 | .name = "AT49BV512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2731 | .bustype = BUS_PARALLEL, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2732 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2733 | .model_id = ATMEL_AT49BV512, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2734 | .total_size = 64, |
| 2735 | .page_size = 64, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2736 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 2737 | .tested = TEST_OK_PREW, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2738 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2739 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2740 | .block_erasers = |
| 2741 | { |
| 2742 | { |
| 2743 | .eraseblocks = { {64 * 1024, 1} }, |
| 2744 | .block_erase = erase_chip_block_jedec, |
| 2745 | } |
| 2746 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2747 | .write = write_jedec_1, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2748 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2749 | .voltage = {2700, 3600}, |
Uwe Hermann | b4dcb71 | 2009-05-13 11:36:06 +0000 | [diff] [blame] | 2750 | }, |
| 2751 | |
| 2752 | { |
| 2753 | .vendor = "Atmel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2754 | .name = "AT49F002(N)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2755 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2756 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2757 | .model_id = ATMEL_AT49F002N, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2758 | .total_size = 256, |
| 2759 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2760 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2761 | .tested = TEST_UNTESTED, |
| 2762 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2763 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2764 | .block_erasers = |
| 2765 | { |
| 2766 | { |
| 2767 | .eraseblocks = { |
| 2768 | {16 * 1024, 1}, |
| 2769 | {8 * 1024, 2}, |
| 2770 | {96 * 1024, 1}, |
| 2771 | {128 * 1024, 1}, |
| 2772 | }, |
| 2773 | .block_erase = erase_sector_jedec, |
| 2774 | }, { |
| 2775 | .eraseblocks = { {256 * 1024, 1} }, |
| 2776 | .block_erase = erase_chip_block_jedec, |
| 2777 | } |
| 2778 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2779 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2780 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2781 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2782 | }, |
| 2783 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2784 | { |
| 2785 | .vendor = "Atmel", |
| 2786 | .name = "AT49F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 2787 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2788 | .manufacture_id = ATMEL_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 2789 | .model_id = ATMEL_AT49F002NT, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2790 | .total_size = 256, |
| 2791 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2792 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 2793 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 2794 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 2795 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 8918729 | 2009-12-23 12:02:55 +0000 | [diff] [blame] | 2796 | .block_erasers = |
| 2797 | { |
| 2798 | { |
| 2799 | .eraseblocks = { |
| 2800 | {128 * 1024, 1}, |
| 2801 | {96 * 1024, 1}, |
| 2802 | {8 * 1024, 2}, |
| 2803 | {16 * 1024, 1}, |
| 2804 | }, |
| 2805 | .block_erase = erase_sector_jedec, |
| 2806 | }, { |
| 2807 | .eraseblocks = { {256 * 1024, 1} }, |
| 2808 | .block_erase = erase_chip_block_jedec, |
| 2809 | } |
| 2810 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 2811 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 2812 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 2813 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 2814 | }, |
| 2815 | |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 2816 | { |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 2817 | .vendor = "Atmel", |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 2818 | .name = "AT49(H)F010", |
| 2819 | .bustype = BUS_PARALLEL, |
| 2820 | .manufacture_id = ATMEL_ID, |
| 2821 | .model_id = ATMEL_AT49F010, |
| 2822 | .total_size = 128, |
| 2823 | .page_size = 0, /* unused */ |
| 2824 | .feature_bits = FEATURE_EITHER_RESET, |
| 2825 | .tested = TEST_OK_PREW, |
| 2826 | .probe = probe_jedec, |
| 2827 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2828 | .block_erasers = |
| 2829 | { |
| 2830 | { |
| 2831 | .eraseblocks = { {128 * 1024, 1} }, |
| 2832 | .block_erase = erase_chip_block_jedec, |
| 2833 | } |
| 2834 | }, |
| 2835 | .printlock = printlock_at49f, |
| 2836 | .write = write_jedec_1, |
| 2837 | .read = read_memmapped, |
| 2838 | .voltage = {4500, 5500}, |
| 2839 | }, |
| 2840 | |
| 2841 | { |
| 2842 | .vendor = "Atmel", |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 2843 | .name = "AT49F020", |
| 2844 | .bustype = BUS_PARALLEL, |
| 2845 | .manufacture_id = ATMEL_ID, |
| 2846 | .model_id = ATMEL_AT49F020, |
| 2847 | .total_size = 256, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 2848 | .page_size = 0, /* unused */ |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 2849 | .feature_bits = FEATURE_EITHER_RESET, |
| 2850 | .tested = TEST_OK_PRE, |
| 2851 | .probe = probe_jedec, |
| 2852 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2853 | .block_erasers = |
| 2854 | { |
| 2855 | { |
| 2856 | .eraseblocks = { {256 * 1024, 1} }, |
| 2857 | .block_erase = erase_chip_block_jedec, |
| 2858 | } |
| 2859 | /* Chip features an optional permanent write protection |
| 2860 | * of the first 8 kB. The erase function is the same as |
| 2861 | * above, but 00000H to 01FFFH will not be erased. |
| 2862 | * FIXME: add another eraser when partial erasers are |
| 2863 | * supported. |
| 2864 | */ |
| 2865 | }, |
| 2866 | .printlock = printlock_at49f, |
| 2867 | .write = write_jedec_1, |
| 2868 | .read = read_memmapped, |
| 2869 | .voltage = {4500, 5500}, |
| 2870 | }, |
| 2871 | |
| 2872 | { |
| 2873 | .vendor = "Atmel", |
| 2874 | .name = "AT49F040", |
| 2875 | .bustype = BUS_PARALLEL, |
| 2876 | .manufacture_id = ATMEL_ID, |
| 2877 | .model_id = ATMEL_AT49F040, |
| 2878 | .total_size = 512, |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 2879 | .page_size = 0, /* unused */ |
David Borg | f5a30f6 | 2012-04-15 13:16:32 +0000 | [diff] [blame] | 2880 | .feature_bits = FEATURE_EITHER_RESET, |
| 2881 | .tested = TEST_UNTESTED, |
| 2882 | .probe = probe_jedec, |
| 2883 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2884 | .block_erasers = |
| 2885 | { |
| 2886 | { |
| 2887 | .eraseblocks = { {512 * 1024, 1} }, |
| 2888 | .block_erase = erase_chip_block_jedec, |
| 2889 | } |
| 2890 | /* Chip features an optional permanent write protection |
| 2891 | * of the first 16 kB. The erase function is the same as |
| 2892 | * above, but 00000H to 03FFFH will not be erased. |
| 2893 | * FIXME: add another eraser when partial erasers are |
| 2894 | * supported. |
| 2895 | */ |
| 2896 | }, |
| 2897 | .printlock = printlock_at49f, |
| 2898 | .write = write_jedec_1, |
| 2899 | .read = read_memmapped, |
| 2900 | .voltage = {4500, 5500}, |
| 2901 | }, |
| 2902 | |
| 2903 | { |
| 2904 | .vendor = "Atmel", |
Andrew Morgan | 8dd97f9 | 2012-08-13 23:43:46 +0000 | [diff] [blame] | 2905 | .name = "AT49F080", |
| 2906 | .bustype = BUS_PARALLEL, |
| 2907 | .manufacture_id = ATMEL_ID, |
| 2908 | .model_id = ATMEL_AT49F080, |
| 2909 | .total_size = 1024, |
| 2910 | .page_size = 0, /* unused */ |
| 2911 | .feature_bits = FEATURE_EITHER_RESET, |
| 2912 | .tested = TEST_UNTESTED, |
| 2913 | .probe = probe_jedec, |
| 2914 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2915 | .block_erasers = |
| 2916 | { |
| 2917 | { |
| 2918 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2919 | .block_erase = erase_chip_block_jedec, |
| 2920 | } |
| 2921 | /* Chip features an optional permanent write protection |
| 2922 | * of the first 16 kB. The erase function is the same as |
| 2923 | * above, but 00000H to 03FFFH will not be erased. |
| 2924 | * FIXME: add another eraser when partial erasers are |
| 2925 | * supported. |
| 2926 | */ |
| 2927 | }, |
| 2928 | .printlock = printlock_at49f, |
| 2929 | .write = write_jedec_1, |
| 2930 | .read = read_memmapped, |
| 2931 | .voltage = {4500, 5500}, |
| 2932 | }, |
| 2933 | |
| 2934 | { |
| 2935 | /* 'top' version of AT49F080. equal in all aspects but the boot block address */ |
| 2936 | .vendor = "Atmel", |
| 2937 | .name = "AT49F080T", |
| 2938 | .bustype = BUS_PARALLEL, |
| 2939 | .manufacture_id = ATMEL_ID, |
| 2940 | .model_id = ATMEL_AT49F080T, |
| 2941 | .total_size = 1024, |
| 2942 | .page_size = 0, /* unused */ |
| 2943 | .feature_bits = FEATURE_EITHER_RESET, |
| 2944 | .tested = TEST_UNTESTED, |
| 2945 | .probe = probe_jedec, |
| 2946 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 2947 | .block_erasers = |
| 2948 | { |
| 2949 | { |
| 2950 | .eraseblocks = { {1024 * 1024, 1} }, |
| 2951 | .block_erase = erase_chip_block_jedec, |
| 2952 | } |
| 2953 | /* Chip features an optional permanent write protection |
| 2954 | * of the first 16 kB. The erase function is the same as |
| 2955 | * above, but FC000H to FFFFFH will not be erased. |
| 2956 | * FIXME: add another eraser when partial erasers are |
| 2957 | * supported. |
| 2958 | */ |
| 2959 | }, |
| 2960 | .printlock = printlock_at49f, |
| 2961 | .write = write_jedec_1, |
| 2962 | .read = read_memmapped, |
| 2963 | .voltage = {4500, 5500}, |
| 2964 | }, |
| 2965 | |
| 2966 | { |
| 2967 | .vendor = "Atmel", |
Uwe Hermann | c74e977 | 2011-09-08 19:55:18 +0000 | [diff] [blame] | 2968 | .name = "AT49LH002", |
| 2969 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
| 2970 | .manufacture_id = ATMEL_ID, |
| 2971 | .model_id = ATMEL_AT49LH002, |
| 2972 | .total_size = 256, |
| 2973 | .page_size = 0, /* unused */ |
| 2974 | .feature_bits = FEATURE_REGISTERMAP, /* TODO: LPC OK too? */ |
| 2975 | .tested = TEST_UNTESTED, |
| 2976 | .probe = probe_82802ab, /* TODO: 0xff cmd not documented? */ |
| 2977 | .probe_timing = TIMING_FIXME, |
| 2978 | .block_erasers = |
| 2979 | { |
| 2980 | { |
| 2981 | .eraseblocks = { |
| 2982 | {64 * 1024, 3}, |
| 2983 | {32 * 1024, 1}, |
| 2984 | {8 * 1024, 2}, |
| 2985 | {16 * 1024, 1}, |
| 2986 | }, |
| 2987 | .block_erase = erase_block_82802ab, |
| 2988 | }, { |
| 2989 | .eraseblocks = { |
| 2990 | {64 * 1024, 4}, |
| 2991 | }, |
| 2992 | .block_erase = NULL, /* TODO: Implement. */ |
| 2993 | }, |
| 2994 | }, |
| 2995 | .printlock = NULL, /* TODO */ |
| 2996 | .unlock = NULL, /* unlock_82802ab() not correct(?) */ |
| 2997 | .write = write_82802ab, |
| 2998 | .read = read_memmapped, |
| 2999 | .voltage = {3000, 3600}, |
| 3000 | }, |
| 3001 | |
| 3002 | { |
Andrew Morgan | ca08146 | 2011-09-13 22:05:44 +0000 | [diff] [blame] | 3003 | .vendor = "Catalyst", |
| 3004 | .name = "CAT28F512", |
| 3005 | .bustype = BUS_PARALLEL, |
| 3006 | .manufacture_id = CATALYST_ID, |
| 3007 | .model_id = CATALYST_CAT28F512, |
| 3008 | .total_size = 64, |
| 3009 | .page_size = 0, /* unused */ |
| 3010 | .feature_bits = 0, |
| 3011 | .tested = TEST_OK_PR, |
| 3012 | .probe = probe_jedec, /* FIXME! */ |
| 3013 | .probe_timing = TIMING_ZERO, |
| 3014 | .block_erasers = |
| 3015 | { |
| 3016 | { |
| 3017 | .eraseblocks = { {64 * 1024, 1} }, |
| 3018 | .block_erase = NULL, /* TODO */ |
| 3019 | }, |
| 3020 | }, |
| 3021 | .write = NULL, /* TODO */ |
| 3022 | .read = read_memmapped, |
| 3023 | .voltage = {4500, 5500}, |
| 3024 | }, |
| 3025 | |
| 3026 | { |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3027 | .vendor = "Bright", |
| 3028 | .name = "BM29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3029 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3030 | .manufacture_id = BRIGHT_ID, |
| 3031 | .model_id = BRIGHT_BM29F040, |
| 3032 | .total_size = 512, |
| 3033 | .page_size = 64 * 1024, |
| 3034 | .feature_bits = FEATURE_EITHER_RESET, |
| 3035 | .tested = TEST_OK_PR, |
| 3036 | .probe = probe_jedec, |
| 3037 | .probe_timing = TIMING_ZERO, |
| 3038 | .block_erasers = |
| 3039 | { |
| 3040 | { |
| 3041 | .eraseblocks = { {64 * 1024, 8} }, |
| 3042 | .block_erase = erase_sector_jedec, |
| 3043 | }, { |
| 3044 | .eraseblocks = { {512 * 1024, 1} }, |
| 3045 | .block_erase = erase_chip_block_jedec, |
| 3046 | }, |
| 3047 | }, |
| 3048 | .write = write_jedec_1, |
| 3049 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 3050 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 3051 | }, |
| 3052 | |
| 3053 | { |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3054 | .vendor = "ESMT", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3055 | .name = "F49B002UA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3056 | .bustype = BUS_PARALLEL, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3057 | .manufacture_id = ESMT_ID, |
| 3058 | .model_id = ESMT_F49B002UA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3059 | .total_size = 256, |
| 3060 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3061 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3062 | .tested = TEST_UNTESTED, |
| 3063 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 3064 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3065 | .block_erasers = |
| 3066 | { |
| 3067 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 3068 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3069 | {128 * 1024, 1}, |
| 3070 | {96 * 1024, 1}, |
| 3071 | {8 * 1024, 2}, |
| 3072 | {16 * 1024, 1}, |
| 3073 | }, |
| 3074 | .block_erase = erase_sector_jedec, |
| 3075 | }, { |
| 3076 | .eraseblocks = { {256 * 1024, 1} }, |
| 3077 | .block_erase = erase_chip_block_jedec, |
| 3078 | } |
| 3079 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 3080 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 3081 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3082 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 3083 | }, |
| 3084 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 3085 | { |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3086 | .vendor = "ESMT", |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3087 | .name = "F25L008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3088 | .bustype = BUS_SPI, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 3089 | .manufacture_id = ESMT_ID, |
| 3090 | .model_id = ESMT_F25L008A, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3091 | .total_size = 1024, |
| 3092 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3093 | .feature_bits = FEATURE_WRSR_EITHER, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 3094 | .tested = TEST_OK_PREW, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3095 | .probe = probe_spi_rdid, |
| 3096 | .probe_timing = TIMING_ZERO, |
| 3097 | .block_erasers = |
| 3098 | { |
| 3099 | { |
| 3100 | .eraseblocks = { {4 * 1024, 256} }, |
| 3101 | .block_erase = spi_block_erase_20, |
| 3102 | }, { |
| 3103 | .eraseblocks = { {64 * 1024, 16} }, |
| 3104 | .block_erase = spi_block_erase_d8, |
| 3105 | }, { |
| 3106 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3107 | .block_erase = spi_block_erase_60, |
| 3108 | }, { |
| 3109 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3110 | .block_erase = spi_block_erase_c7, |
| 3111 | } |
| 3112 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3113 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3114 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 9a795d8 | 2010-07-14 16:19:05 +0000 | [diff] [blame] | 3115 | .write = spi_chip_write_1, |
Michael Karcher | 4497e86 | 2010-07-10 19:34:15 +0000 | [diff] [blame] | 3116 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3117 | .voltage = {2700, 3600}, |
Michael Karcher | 80a59ea | 2010-06-19 22:06:35 +0000 | [diff] [blame] | 3118 | }, |
| 3119 | |
| 3120 | { |
Stefan Tauner | 85f09f7 | 2014-05-27 21:27:14 +0000 | [diff] [blame] | 3121 | .vendor = "ESMT", |
| 3122 | .name = "F25L32PA", |
| 3123 | .bustype = BUS_SPI, |
| 3124 | .manufacture_id = ESMT_ID, |
| 3125 | .model_id = ESMT_F25L32PA, |
| 3126 | .total_size = 4096, |
| 3127 | .page_size = 256, |
| 3128 | .feature_bits = FEATURE_WRSR_EITHER | FEATURE_OTP, |
| 3129 | .tested = TEST_UNTESTED, |
| 3130 | .probe = probe_spi_rdid, |
| 3131 | .probe_timing = TIMING_ZERO, |
| 3132 | .block_erasers = |
| 3133 | { |
| 3134 | { |
| 3135 | .eraseblocks = { {4 * 1024, 1024} }, |
| 3136 | .block_erase = spi_block_erase_20, |
| 3137 | }, { |
| 3138 | .eraseblocks = { {64 * 1024, 64} }, |
| 3139 | .block_erase = spi_block_erase_d8, |
| 3140 | }, { |
| 3141 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3142 | .block_erase = spi_block_erase_60, |
| 3143 | }, { |
| 3144 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3145 | .block_erase = spi_block_erase_c7, |
| 3146 | } |
| 3147 | }, |
| 3148 | .printlock = spi_prettyprint_status_register_bp2_bpl, |
| 3149 | .unlock = spi_disable_blockprotect, |
| 3150 | .write = spi_chip_write_256, |
| 3151 | .read = spi_chip_read, |
| 3152 | .voltage = {2700, 3600}, |
| 3153 | }, |
| 3154 | |
| 3155 | { |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3156 | .vendor = "Eon", |
| 3157 | .name = "EN25B05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3158 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3159 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3160 | .model_id = EON_EN25B05, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3161 | .total_size = 64, |
| 3162 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3163 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3164 | .tested = TEST_UNTESTED, |
| 3165 | .probe = probe_spi_rdid, |
| 3166 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3167 | .block_erasers = |
| 3168 | { |
| 3169 | { |
| 3170 | .eraseblocks = { |
| 3171 | {4 * 1024, 2}, |
| 3172 | {8 * 1024, 1}, |
| 3173 | {16 * 1024, 1}, |
| 3174 | {32 * 1024, 1}, |
| 3175 | }, |
| 3176 | .block_erase = spi_block_erase_d8, |
| 3177 | }, { |
| 3178 | .eraseblocks = { {64 * 1024, 1} }, |
| 3179 | .block_erase = spi_block_erase_c7, |
| 3180 | } |
| 3181 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3182 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3183 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3184 | .write = spi_chip_write_256, |
| 3185 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3186 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3187 | }, |
| 3188 | |
| 3189 | { |
| 3190 | .vendor = "Eon", |
| 3191 | .name = "EN25B05T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3192 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3193 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3194 | .model_id = EON_EN25B05, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3195 | .total_size = 64, |
| 3196 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3197 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3198 | .tested = TEST_UNTESTED, |
| 3199 | .probe = probe_spi_rdid, |
| 3200 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3201 | .block_erasers = |
| 3202 | { |
| 3203 | { |
| 3204 | .eraseblocks = { |
| 3205 | {32 * 1024, 1}, |
| 3206 | {16 * 1024, 1}, |
| 3207 | {8 * 1024, 1}, |
| 3208 | {4 * 1024, 2}, |
| 3209 | }, |
| 3210 | .block_erase = spi_block_erase_d8, |
| 3211 | }, { |
| 3212 | .eraseblocks = { {64 * 1024, 1} }, |
| 3213 | .block_erase = spi_block_erase_c7, |
| 3214 | } |
| 3215 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3216 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3217 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3218 | .write = spi_chip_write_256, |
| 3219 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3220 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3221 | }, |
| 3222 | |
| 3223 | { |
| 3224 | .vendor = "Eon", |
| 3225 | .name = "EN25B10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3226 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3227 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3228 | .model_id = EON_EN25B10, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3229 | .total_size = 128, |
| 3230 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3231 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3232 | .tested = TEST_UNTESTED, |
| 3233 | .probe = probe_spi_rdid, |
| 3234 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3235 | .block_erasers = |
| 3236 | { |
| 3237 | { |
| 3238 | .eraseblocks = { |
| 3239 | {4 * 1024, 2}, |
| 3240 | {8 * 1024, 1}, |
| 3241 | {16 * 1024, 1}, |
| 3242 | {32 * 1024, 3}, |
| 3243 | }, |
| 3244 | .block_erase = spi_block_erase_d8, |
| 3245 | }, { |
| 3246 | .eraseblocks = { {128 * 1024, 1} }, |
| 3247 | .block_erase = spi_block_erase_c7, |
| 3248 | } |
| 3249 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3250 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3251 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3252 | .write = spi_chip_write_256, |
| 3253 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3254 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3255 | }, |
| 3256 | |
| 3257 | { |
| 3258 | .vendor = "Eon", |
| 3259 | .name = "EN25B10T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3260 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3261 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3262 | .model_id = EON_EN25B10, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3263 | .total_size = 128, |
| 3264 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3265 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 3266 | .tested = TEST_OK_PREW, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3267 | .probe = probe_spi_rdid, |
| 3268 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3269 | .block_erasers = |
| 3270 | { |
| 3271 | { |
| 3272 | .eraseblocks = { |
| 3273 | {32 * 1024, 3}, |
| 3274 | {16 * 1024, 1}, |
| 3275 | {8 * 1024, 1}, |
| 3276 | {4 * 1024, 2}, |
| 3277 | }, |
| 3278 | .block_erase = spi_block_erase_d8, |
| 3279 | }, { |
| 3280 | .eraseblocks = { {128 * 1024, 1} }, |
| 3281 | .block_erase = spi_block_erase_c7, |
| 3282 | } |
| 3283 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3284 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3285 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3286 | .write = spi_chip_write_256, |
| 3287 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3288 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3289 | }, |
| 3290 | |
| 3291 | { |
| 3292 | .vendor = "Eon", |
| 3293 | .name = "EN25B20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3294 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3295 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3296 | .model_id = EON_EN25B20, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3297 | .total_size = 256, |
| 3298 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3299 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3300 | .tested = TEST_UNTESTED, |
| 3301 | .probe = probe_spi_rdid, |
| 3302 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3303 | .block_erasers = |
| 3304 | { |
| 3305 | { |
| 3306 | .eraseblocks = { |
| 3307 | {4 * 1024, 2}, |
| 3308 | {8 * 1024, 1}, |
| 3309 | {16 * 1024, 1}, |
| 3310 | {32 * 1024, 1}, |
| 3311 | {64 * 1024, 3} |
| 3312 | }, |
| 3313 | .block_erase = spi_block_erase_d8, |
| 3314 | }, { |
| 3315 | .eraseblocks = { {256 * 1024, 1} }, |
| 3316 | .block_erase = spi_block_erase_c7, |
| 3317 | } |
| 3318 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3319 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3320 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3321 | .write = spi_chip_write_256, |
| 3322 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3323 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3324 | }, |
| 3325 | |
| 3326 | { |
| 3327 | .vendor = "Eon", |
| 3328 | .name = "EN25B20T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3329 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3330 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3331 | .model_id = EON_EN25B20, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3332 | .total_size = 256, |
| 3333 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3334 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3335 | .tested = TEST_UNTESTED, |
| 3336 | .probe = probe_spi_rdid, |
| 3337 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3338 | .block_erasers = |
| 3339 | { |
| 3340 | { |
| 3341 | .eraseblocks = { |
| 3342 | {64 * 1024, 3}, |
| 3343 | {32 * 1024, 1}, |
| 3344 | {16 * 1024, 1}, |
| 3345 | {8 * 1024, 1}, |
| 3346 | {4 * 1024, 2}, |
| 3347 | }, |
| 3348 | .block_erase = spi_block_erase_d8, |
| 3349 | }, { |
| 3350 | .eraseblocks = { {256 * 1024, 1} }, |
| 3351 | .block_erase = spi_block_erase_c7, |
| 3352 | } |
| 3353 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3354 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3355 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3356 | .write = spi_chip_write_256, |
| 3357 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3358 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3359 | }, |
| 3360 | |
| 3361 | { |
| 3362 | .vendor = "Eon", |
| 3363 | .name = "EN25B40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3364 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3365 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3366 | .model_id = EON_EN25B40, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3367 | .total_size = 512, |
| 3368 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3369 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3370 | .tested = TEST_UNTESTED, |
| 3371 | .probe = probe_spi_rdid, |
| 3372 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3373 | .block_erasers = |
| 3374 | { |
| 3375 | { |
| 3376 | .eraseblocks = { |
| 3377 | {4 * 1024, 2}, |
| 3378 | {8 * 1024, 1}, |
| 3379 | {16 * 1024, 1}, |
| 3380 | {32 * 1024, 1}, |
| 3381 | {64 * 1024, 7} |
| 3382 | }, |
| 3383 | .block_erase = spi_block_erase_d8, |
| 3384 | }, { |
| 3385 | .eraseblocks = { {512 * 1024, 1} }, |
| 3386 | .block_erase = spi_block_erase_c7, |
| 3387 | } |
| 3388 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3389 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3390 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3391 | .write = spi_chip_write_256, |
| 3392 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3393 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3394 | }, |
| 3395 | |
| 3396 | { |
| 3397 | .vendor = "Eon", |
| 3398 | .name = "EN25B40T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3399 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3400 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3401 | .model_id = EON_EN25B40, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3402 | .total_size = 512, |
| 3403 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3404 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3405 | .tested = TEST_UNTESTED, |
| 3406 | .probe = probe_spi_rdid, |
| 3407 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3408 | .block_erasers = |
| 3409 | { |
| 3410 | { |
| 3411 | .eraseblocks = { |
| 3412 | {64 * 1024, 7}, |
| 3413 | {32 * 1024, 1}, |
| 3414 | {16 * 1024, 1}, |
| 3415 | {8 * 1024, 1}, |
| 3416 | {4 * 1024, 2}, |
| 3417 | }, |
| 3418 | .block_erase = spi_block_erase_d8, |
| 3419 | }, { |
| 3420 | .eraseblocks = { {512 * 1024, 1} }, |
| 3421 | .block_erase = spi_block_erase_c7, |
| 3422 | } |
| 3423 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3424 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3425 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3426 | .write = spi_chip_write_256, |
| 3427 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3428 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3429 | }, |
| 3430 | |
| 3431 | { |
| 3432 | .vendor = "Eon", |
| 3433 | .name = "EN25B80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3434 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3435 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3436 | .model_id = EON_EN25B80, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3437 | .total_size = 1024, |
| 3438 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3439 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3440 | .tested = TEST_UNTESTED, |
| 3441 | .probe = probe_spi_rdid, |
| 3442 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3443 | .block_erasers = |
| 3444 | { |
| 3445 | { |
| 3446 | .eraseblocks = { |
| 3447 | {4 * 1024, 2}, |
| 3448 | {8 * 1024, 1}, |
| 3449 | {16 * 1024, 1}, |
| 3450 | {32 * 1024, 1}, |
| 3451 | {64 * 1024, 15} |
| 3452 | }, |
| 3453 | .block_erase = spi_block_erase_d8, |
| 3454 | }, { |
| 3455 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3456 | .block_erase = spi_block_erase_c7, |
| 3457 | } |
| 3458 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3459 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3460 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3461 | .write = spi_chip_write_256, |
| 3462 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3463 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3464 | }, |
| 3465 | |
| 3466 | { |
| 3467 | .vendor = "Eon", |
| 3468 | .name = "EN25B80T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3469 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3470 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3471 | .model_id = EON_EN25B80, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3472 | .total_size = 1024, |
| 3473 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3474 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3475 | .tested = TEST_UNTESTED, |
| 3476 | .probe = probe_spi_rdid, |
| 3477 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3478 | .block_erasers = |
| 3479 | { |
| 3480 | { |
| 3481 | .eraseblocks = { |
| 3482 | {64 * 1024, 15}, |
| 3483 | {32 * 1024, 1}, |
| 3484 | {16 * 1024, 1}, |
| 3485 | {8 * 1024, 1}, |
| 3486 | {4 * 1024, 2}, |
| 3487 | }, |
| 3488 | .block_erase = spi_block_erase_d8, |
| 3489 | }, { |
| 3490 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3491 | .block_erase = spi_block_erase_c7, |
| 3492 | } |
| 3493 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3494 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3495 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3496 | .write = spi_chip_write_256, |
| 3497 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3498 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3499 | }, |
| 3500 | |
| 3501 | { |
| 3502 | .vendor = "Eon", |
| 3503 | .name = "EN25B16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3504 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3505 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3506 | .model_id = EON_EN25B16, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3507 | .total_size = 2048, |
| 3508 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3509 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3510 | .tested = TEST_UNTESTED, |
| 3511 | .probe = probe_spi_rdid, |
| 3512 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3513 | .block_erasers = |
| 3514 | { |
| 3515 | { |
| 3516 | .eraseblocks = { |
| 3517 | {4 * 1024, 2}, |
| 3518 | {8 * 1024, 1}, |
| 3519 | {16 * 1024, 1}, |
| 3520 | {32 * 1024, 1}, |
| 3521 | {64 * 1024, 31}, |
| 3522 | }, |
| 3523 | .block_erase = spi_block_erase_d8, |
| 3524 | }, { |
| 3525 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3526 | .block_erase = spi_block_erase_c7, |
| 3527 | } |
| 3528 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3529 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3530 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3531 | .write = spi_chip_write_256, |
| 3532 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3533 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3534 | }, |
| 3535 | |
| 3536 | { |
| 3537 | .vendor = "Eon", |
| 3538 | .name = "EN25B16T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3539 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3540 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3541 | .model_id = EON_EN25B16, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3542 | .total_size = 2048, |
| 3543 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3544 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3545 | .tested = TEST_UNTESTED, |
| 3546 | .probe = probe_spi_rdid, |
| 3547 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3548 | .block_erasers = |
| 3549 | { |
| 3550 | { |
| 3551 | .eraseblocks = { |
| 3552 | {64 * 1024, 31}, |
| 3553 | {32 * 1024, 1}, |
| 3554 | {16 * 1024, 1}, |
| 3555 | {8 * 1024, 1}, |
| 3556 | {4 * 1024, 2}, |
| 3557 | }, |
| 3558 | .block_erase = spi_block_erase_d8, |
| 3559 | }, { |
| 3560 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3561 | .block_erase = spi_block_erase_c7, |
| 3562 | } |
| 3563 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3564 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3565 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3566 | .write = spi_chip_write_256, |
| 3567 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3568 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3569 | }, |
| 3570 | |
| 3571 | { |
| 3572 | .vendor = "Eon", |
| 3573 | .name = "EN25B32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3574 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3575 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3576 | .model_id = EON_EN25B32, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3577 | .total_size = 4096, |
| 3578 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3579 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3580 | .tested = TEST_UNTESTED, |
| 3581 | .probe = probe_spi_rdid, |
| 3582 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3583 | .block_erasers = |
| 3584 | { |
| 3585 | { |
| 3586 | .eraseblocks = { |
| 3587 | {4 * 1024, 2}, |
| 3588 | {8 * 1024, 1}, |
| 3589 | {16 * 1024, 1}, |
| 3590 | {32 * 1024, 1}, |
| 3591 | {64 * 1024, 63}, |
| 3592 | }, |
| 3593 | .block_erase = spi_block_erase_d8, |
| 3594 | }, { |
| 3595 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3596 | .block_erase = spi_block_erase_c7, |
| 3597 | } |
| 3598 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3599 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3600 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3601 | .write = spi_chip_write_256, |
| 3602 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3603 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3604 | }, |
| 3605 | |
| 3606 | { |
| 3607 | .vendor = "Eon", |
| 3608 | .name = "EN25B32T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3609 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3610 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3611 | .model_id = EON_EN25B32, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3612 | .total_size = 4096, |
| 3613 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3614 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3615 | .tested = TEST_UNTESTED, |
| 3616 | .probe = probe_spi_rdid, |
| 3617 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3618 | .block_erasers = |
| 3619 | { |
| 3620 | { |
| 3621 | .eraseblocks = { |
| 3622 | {64 * 1024, 63}, |
| 3623 | {32 * 1024, 1}, |
| 3624 | {16 * 1024, 1}, |
| 3625 | {8 * 1024, 1}, |
| 3626 | {4 * 1024, 2}, |
| 3627 | }, |
| 3628 | .block_erase = spi_block_erase_d8, |
| 3629 | }, { |
| 3630 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3631 | .block_erase = spi_block_erase_c7, |
| 3632 | } |
| 3633 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3634 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3635 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3636 | .write = spi_chip_write_256, |
| 3637 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3638 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3639 | }, |
| 3640 | |
| 3641 | { |
| 3642 | .vendor = "Eon", |
| 3643 | .name = "EN25B64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3644 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3645 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3646 | .model_id = EON_EN25B64, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3647 | .total_size = 8192, |
| 3648 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3649 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3650 | .tested = TEST_UNTESTED, |
| 3651 | .probe = probe_spi_rdid, |
| 3652 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3653 | .block_erasers = |
| 3654 | { |
| 3655 | { |
| 3656 | .eraseblocks = { |
| 3657 | {4 * 1024, 2}, |
| 3658 | {8 * 1024, 1}, |
| 3659 | {16 * 1024, 1}, |
| 3660 | {32 * 1024, 1}, |
| 3661 | {64 * 1024, 127}, |
| 3662 | }, |
| 3663 | .block_erase = spi_block_erase_d8, |
| 3664 | }, { |
| 3665 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 3666 | .block_erase = spi_block_erase_c7, |
| 3667 | } |
| 3668 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3669 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3670 | .unlock = spi_disable_blockprotect, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3671 | .write = spi_chip_write_256, |
| 3672 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3673 | .voltage = {2700, 3600}, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3674 | }, |
| 3675 | |
| 3676 | { |
| 3677 | .vendor = "Eon", |
| 3678 | .name = "EN25B64T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3679 | .bustype = BUS_SPI, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3680 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3681 | .model_id = EON_EN25B64, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3682 | .total_size = 8192, |
| 3683 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 3684 | .feature_bits = FEATURE_WRSR_WREN, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3685 | .tested = TEST_UNTESTED, |
| 3686 | .probe = probe_spi_rdid, |
| 3687 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3688 | .block_erasers = |
| 3689 | { |
| 3690 | { |
| 3691 | .eraseblocks = { |
| 3692 | {64 * 1024, 127}, |
| 3693 | {32 * 1024, 1}, |
| 3694 | {16 * 1024, 1}, |
| 3695 | {8 * 1024, 1}, |
| 3696 | {4 * 1024, 2}, |
| 3697 | }, |
| 3698 | .block_erase = spi_block_erase_d8, |
| 3699 | }, { |
| 3700 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 3701 | .block_erase = spi_block_erase_c7, |
| 3702 | } |
| 3703 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3704 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3705 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3706 | .write = spi_chip_write_256, |
| 3707 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3708 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3709 | }, |
| 3710 | |
| 3711 | { |
| 3712 | .vendor = "Eon", |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3713 | .name = "EN25F05", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3714 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3715 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3716 | .model_id = EON_EN25F05, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3717 | .total_size = 64, |
| 3718 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3719 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 3720 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3721 | .probe = probe_spi_rdid, |
| 3722 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3723 | .block_erasers = |
| 3724 | { |
| 3725 | { |
| 3726 | .eraseblocks = { {4 * 1024, 16} }, |
| 3727 | .block_erase = spi_block_erase_20, |
| 3728 | }, { |
| 3729 | .eraseblocks = { {32 * 1024, 2} }, |
| 3730 | .block_erase = spi_block_erase_d8, |
| 3731 | }, { |
| 3732 | .eraseblocks = { {32 * 1024, 2} }, |
| 3733 | .block_erase = spi_block_erase_52, |
| 3734 | }, { |
| 3735 | .eraseblocks = { {64 * 1024, 1} }, |
| 3736 | .block_erase = spi_block_erase_60, |
| 3737 | }, { |
| 3738 | .eraseblocks = { {64 * 1024, 1} }, |
| 3739 | .block_erase = spi_block_erase_c7, |
| 3740 | } |
| 3741 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3742 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3743 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3744 | .write = spi_chip_write_256, |
| 3745 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3746 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3747 | }, |
| 3748 | |
| 3749 | { |
| 3750 | .vendor = "Eon", |
| 3751 | .name = "EN25F10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3752 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3753 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3754 | .model_id = EON_EN25F10, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3755 | .total_size = 128, |
| 3756 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3757 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3758 | .tested = TEST_UNTESTED, |
| 3759 | .probe = probe_spi_rdid, |
| 3760 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3761 | .block_erasers = |
| 3762 | { |
| 3763 | { |
| 3764 | .eraseblocks = { {4 * 1024, 32} }, |
| 3765 | .block_erase = spi_block_erase_20, |
| 3766 | }, { |
| 3767 | .eraseblocks = { {32 * 1024, 4} }, |
| 3768 | .block_erase = spi_block_erase_d8, |
| 3769 | }, { |
| 3770 | .eraseblocks = { {32 * 1024, 4} }, |
| 3771 | .block_erase = spi_block_erase_52, |
| 3772 | }, { |
| 3773 | .eraseblocks = { {128 * 1024, 1} }, |
| 3774 | .block_erase = spi_block_erase_60, |
| 3775 | }, { |
| 3776 | .eraseblocks = { {128 * 1024, 1} }, |
| 3777 | .block_erase = spi_block_erase_c7, |
| 3778 | } |
| 3779 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3780 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3781 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3782 | .write = spi_chip_write_256, |
| 3783 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3784 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3785 | }, |
| 3786 | |
| 3787 | { |
| 3788 | .vendor = "Eon", |
| 3789 | .name = "EN25F20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3790 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3791 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3792 | .model_id = EON_EN25F20, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3793 | .total_size = 256, |
| 3794 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3795 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3796 | .tested = TEST_UNTESTED, |
| 3797 | .probe = probe_spi_rdid, |
| 3798 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3799 | .block_erasers = |
| 3800 | { |
| 3801 | { |
| 3802 | .eraseblocks = { {4 * 1024, 64} }, |
| 3803 | .block_erase = spi_block_erase_20, |
| 3804 | }, { |
| 3805 | .eraseblocks = { {64 * 1024, 4} }, |
| 3806 | .block_erase = spi_block_erase_d8, |
| 3807 | }, { |
| 3808 | .eraseblocks = { {64 * 1024, 4} }, |
| 3809 | .block_erase = spi_block_erase_52, |
| 3810 | }, { |
| 3811 | .eraseblocks = { {256 * 1024, 1} }, |
| 3812 | .block_erase = spi_block_erase_60, |
| 3813 | }, { |
| 3814 | .eraseblocks = { {256 * 1024, 1} }, |
| 3815 | .block_erase = spi_block_erase_c7, |
| 3816 | } |
| 3817 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3818 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3819 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3820 | .write = spi_chip_write_256, |
| 3821 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3822 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3823 | }, |
| 3824 | |
| 3825 | { |
| 3826 | .vendor = "Eon", |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3827 | .name = "EN25F40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3828 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3829 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3830 | .model_id = EON_EN25F40, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3831 | .total_size = 512, |
| 3832 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3833 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | faaa2b2 | 2009-06-22 10:06:28 +0000 | [diff] [blame] | 3834 | .tested = TEST_OK_PROBE, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3835 | .probe = probe_spi_rdid, |
| 3836 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3837 | .block_erasers = |
| 3838 | { |
| 3839 | { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3840 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3841 | .block_erase = spi_block_erase_20, |
| 3842 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3843 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3844 | .block_erase = spi_block_erase_d8, |
| 3845 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3846 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3847 | .block_erase = spi_block_erase_60, |
| 3848 | }, { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3849 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 3850 | .block_erase = spi_block_erase_c7, |
| 3851 | }, |
| 3852 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3853 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3854 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3855 | .write = spi_chip_write_256, |
| 3856 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3857 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3858 | }, |
| 3859 | |
| 3860 | { |
| 3861 | .vendor = "Eon", |
| 3862 | .name = "EN25F80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3863 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3864 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3865 | .model_id = EON_EN25F80, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3866 | .total_size = 1024, |
| 3867 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3868 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 3869 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3870 | .probe = probe_spi_rdid, |
| 3871 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3872 | .block_erasers = |
| 3873 | { |
| 3874 | { |
| 3875 | .eraseblocks = { {4 * 1024, 256} }, |
| 3876 | .block_erase = spi_block_erase_20, |
| 3877 | }, { |
| 3878 | .eraseblocks = { {64 * 1024, 16} }, |
| 3879 | .block_erase = spi_block_erase_d8, |
| 3880 | }, { |
| 3881 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3882 | .block_erase = spi_block_erase_60, |
| 3883 | }, { |
| 3884 | .eraseblocks = { {1024 * 1024, 1} }, |
| 3885 | .block_erase = spi_block_erase_c7, |
| 3886 | } |
| 3887 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3888 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3889 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3890 | .write = spi_chip_write_256, |
| 3891 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3892 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3893 | }, |
| 3894 | |
| 3895 | { |
| 3896 | .vendor = "Eon", |
| 3897 | .name = "EN25F16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3898 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3899 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3900 | .model_id = EON_EN25F16, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3901 | .total_size = 2048, |
| 3902 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3903 | .feature_bits = FEATURE_WRSR_WREN, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 3904 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3905 | .probe = probe_spi_rdid, |
| 3906 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3907 | .block_erasers = |
| 3908 | { |
| 3909 | { |
| 3910 | .eraseblocks = { {4 * 1024, 512} }, |
| 3911 | .block_erase = spi_block_erase_20, |
| 3912 | }, { |
| 3913 | .eraseblocks = { {64 * 1024, 32} }, |
| 3914 | .block_erase = spi_block_erase_d8, |
| 3915 | }, { |
| 3916 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3917 | .block_erase = spi_block_erase_60, |
| 3918 | }, { |
| 3919 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 3920 | .block_erase = spi_block_erase_c7, |
| 3921 | } |
| 3922 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3923 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3924 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3925 | .write = spi_chip_write_256, |
| 3926 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3927 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 80243c9 | 2009-06-05 20:53:07 +0000 | [diff] [blame] | 3928 | }, |
| 3929 | |
| 3930 | { |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3931 | .vendor = "Eon", |
| 3932 | .name = "EN25F32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 3933 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3934 | .manufacture_id = EON_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 3935 | .model_id = EON_EN25F32, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3936 | .total_size = 4096, |
| 3937 | .page_size = 256, |
David Hendricks | d6c5dfc | 2010-09-03 03:18:26 +0000 | [diff] [blame] | 3938 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3939 | .tested = TEST_UNTESTED, |
| 3940 | .probe = probe_spi_rdid, |
| 3941 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 3942 | .block_erasers = |
| 3943 | { |
| 3944 | { |
| 3945 | .eraseblocks = { {4 * 1024, 1024} }, |
| 3946 | .block_erase = spi_block_erase_20, |
| 3947 | }, { |
| 3948 | .eraseblocks = { {64 * 1024, 64} }, |
| 3949 | .block_erase = spi_block_erase_d8, |
| 3950 | }, { |
| 3951 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3952 | .block_erase = spi_block_erase_60, |
| 3953 | }, { |
| 3954 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 3955 | .block_erase = spi_block_erase_c7, |
| 3956 | } |
| 3957 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3958 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 3959 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3960 | .write = spi_chip_write_256, |
| 3961 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 3962 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | a0a6ae9 | 2009-06-15 12:10:57 +0000 | [diff] [blame] | 3963 | }, |
| 3964 | |
| 3965 | { |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 3966 | .vendor = "Eon", |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 3967 | .name = "EN25F64", |
| 3968 | .bustype = BUS_SPI, |
| 3969 | .manufacture_id = EON_ID_NOPREFIX, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 3970 | .model_id = EON_EN25F64, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 3971 | .total_size = 8192, |
| 3972 | .page_size = 256, |
| 3973 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 3974 | .tested = TEST_OK_PREW, |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 3975 | .probe = probe_spi_rdid, |
| 3976 | .probe_timing = TIMING_ZERO, |
| 3977 | .block_erasers = |
| 3978 | { |
| 3979 | { |
| 3980 | .eraseblocks = { {4 * 1024, 2048} }, |
| 3981 | .block_erase = spi_block_erase_20, |
| 3982 | }, { |
| 3983 | .eraseblocks = { {64 * 1024, 128} }, |
| 3984 | .block_erase = spi_block_erase_d8, |
| 3985 | }, { |
| 3986 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 3987 | .block_erase = spi_block_erase_60, |
| 3988 | }, { |
| 3989 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 3990 | .block_erase = spi_block_erase_c7, |
| 3991 | } |
| 3992 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 3993 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Stefan Tauner | d932fd0 | 2012-09-06 17:37:16 +0000 | [diff] [blame] | 3994 | .unlock = spi_disable_blockprotect, |
| 3995 | .write = spi_chip_write_256, |
| 3996 | .read = spi_chip_read, |
| 3997 | .voltage = {2700, 3600}, |
| 3998 | }, |
| 3999 | |
| 4000 | { |
| 4001 | .vendor = "Eon", |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4002 | .name = "EN25Q40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4003 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4004 | .manufacture_id = EON_ID_NOPREFIX, |
| 4005 | .model_id = EON_EN25Q40, |
| 4006 | .total_size = 512, |
| 4007 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4008 | /* OTP: 256B total; enter 0x3A */ |
| 4009 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4010 | .tested = TEST_UNTESTED, |
| 4011 | .probe = probe_spi_rdid, |
| 4012 | .probe_timing = TIMING_ZERO, |
| 4013 | .block_erasers = |
| 4014 | { |
| 4015 | { |
| 4016 | .eraseblocks = { {4 * 1024, 128} }, |
| 4017 | .block_erase = spi_block_erase_20, |
| 4018 | }, { |
| 4019 | .eraseblocks = { {64 * 1024, 8} }, |
| 4020 | .block_erase = spi_block_erase_d8, |
| 4021 | }, { |
| 4022 | .eraseblocks = { {512 * 1024, 1} }, |
| 4023 | .block_erase = spi_block_erase_60, |
| 4024 | }, { |
| 4025 | .eraseblocks = { {512 * 1024, 1} }, |
| 4026 | .block_erase = spi_block_erase_c7, |
| 4027 | } |
| 4028 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4029 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4030 | .unlock = spi_disable_blockprotect, |
| 4031 | .write = spi_chip_write_256, |
| 4032 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4033 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4034 | }, |
| 4035 | |
| 4036 | { |
| 4037 | .vendor = "Eon", |
| 4038 | .name = "EN25Q80(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4039 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4040 | .manufacture_id = EON_ID_NOPREFIX, |
| 4041 | .model_id = EON_EN25Q80, |
| 4042 | .total_size = 1024, |
| 4043 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4044 | /* OTP: 256B total; enter 0x3A */ |
| 4045 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4046 | .tested = TEST_UNTESTED, |
| 4047 | .probe = probe_spi_rdid, |
| 4048 | .probe_timing = TIMING_ZERO, |
| 4049 | .block_erasers = |
| 4050 | { |
| 4051 | { |
| 4052 | .eraseblocks = { {4 * 1024, 256} }, |
| 4053 | .block_erase = spi_block_erase_20, |
| 4054 | }, { |
| 4055 | .eraseblocks = { {64 * 1024, 16} }, |
| 4056 | .block_erase = spi_block_erase_d8, |
| 4057 | }, { |
| 4058 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4059 | .block_erase = spi_block_erase_60, |
| 4060 | }, { |
| 4061 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4062 | .block_erase = spi_block_erase_c7, |
| 4063 | } |
| 4064 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4065 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4066 | .unlock = spi_disable_blockprotect, |
| 4067 | .write = spi_chip_write_256, |
| 4068 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4069 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4070 | }, |
| 4071 | |
| 4072 | { |
| 4073 | /* Note: EN25D16 is an evil twin which shares the model ID |
| 4074 | but has different write protection capabilities */ |
| 4075 | .vendor = "Eon", |
| 4076 | .name = "EN25Q16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4077 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4078 | .manufacture_id = EON_ID_NOPREFIX, |
| 4079 | .model_id = EON_EN25Q16, |
| 4080 | .total_size = 2048, |
| 4081 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4082 | /* OTP: D16 512B/Q16 128B total; enter 0x3A */ |
| 4083 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4084 | .tested = TEST_UNTESTED, |
| 4085 | .probe = probe_spi_rdid, |
| 4086 | .probe_timing = TIMING_ZERO, |
| 4087 | .block_erasers = |
| 4088 | { |
| 4089 | { |
| 4090 | .eraseblocks = { {4 * 1024, 512} }, |
| 4091 | .block_erase = spi_block_erase_20, |
| 4092 | }, { |
| 4093 | .eraseblocks = { {64 * 1024, 32} }, |
| 4094 | .block_erase = spi_block_erase_d8, |
| 4095 | }, { |
| 4096 | /* not supported by Q16 version */ |
| 4097 | .eraseblocks = { {64 * 1024, 32} }, |
| 4098 | .block_erase = spi_block_erase_52, |
| 4099 | }, { |
| 4100 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4101 | .block_erase = spi_block_erase_60, |
| 4102 | }, { |
| 4103 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 4104 | .block_erase = spi_block_erase_c7, |
| 4105 | } |
| 4106 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4107 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4108 | .unlock = spi_disable_blockprotect, |
| 4109 | .write = spi_chip_write_256, |
| 4110 | .read = spi_chip_read, |
| 4111 | .voltage = {2700, 3600}, |
| 4112 | }, |
| 4113 | |
| 4114 | { |
| 4115 | .vendor = "Eon", |
| 4116 | .name = "EN25Q32(A/B)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4117 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4118 | .manufacture_id = EON_ID_NOPREFIX, |
| 4119 | .model_id = EON_EN25Q32, |
| 4120 | .total_size = 4096, |
| 4121 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4122 | /* OTP: 512B total; enter 0x3A */ |
| 4123 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4124 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4125 | .probe = probe_spi_rdid, |
| 4126 | .probe_timing = TIMING_ZERO, |
| 4127 | .block_erasers = |
| 4128 | { |
| 4129 | { |
| 4130 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4131 | .block_erase = spi_block_erase_20, |
| 4132 | }, { |
| 4133 | .eraseblocks = { {64 * 1024, 64} }, |
| 4134 | .block_erase = spi_block_erase_d8, |
| 4135 | }, { |
| 4136 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4137 | .block_erase = spi_block_erase_60, |
| 4138 | }, { |
| 4139 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4140 | .block_erase = spi_block_erase_c7, |
| 4141 | } |
| 4142 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4143 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4144 | .unlock = spi_disable_blockprotect, |
| 4145 | .write = spi_chip_write_256, |
| 4146 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4147 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4148 | }, |
| 4149 | |
| 4150 | { |
| 4151 | .vendor = "Eon", |
| 4152 | .name = "EN25Q64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4153 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4154 | .manufacture_id = EON_ID_NOPREFIX, |
| 4155 | .model_id = EON_EN25Q64, |
| 4156 | .total_size = 8192, |
| 4157 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4158 | /* OTP: 512B total; enter 0x3A */ |
| 4159 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 4160 | .tested = TEST_OK_PREW, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4161 | .probe = probe_spi_rdid, |
| 4162 | .probe_timing = TIMING_ZERO, |
| 4163 | .block_erasers = |
| 4164 | { |
| 4165 | { |
| 4166 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4167 | .block_erase = spi_block_erase_20, |
| 4168 | }, { |
| 4169 | .eraseblocks = { {64 * 1024, 128} }, |
| 4170 | .block_erase = spi_block_erase_d8, |
| 4171 | }, { |
| 4172 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4173 | .block_erase = spi_block_erase_60, |
| 4174 | }, { |
| 4175 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4176 | .block_erase = spi_block_erase_c7, |
| 4177 | } |
| 4178 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4179 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4180 | .unlock = spi_disable_blockprotect, |
| 4181 | .write = spi_chip_write_256, |
| 4182 | .read = spi_chip_read, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 4183 | .voltage = {2700, 3600}, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4184 | }, |
| 4185 | |
| 4186 | { |
| 4187 | .vendor = "Eon", |
| 4188 | .name = "EN25Q128", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4189 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4190 | .manufacture_id = EON_ID_NOPREFIX, |
| 4191 | .model_id = EON_EN25Q128, |
| 4192 | .total_size = 16384, |
| 4193 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4194 | /* OTP: 512B total; enter 0x3A */ |
| 4195 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4196 | .tested = TEST_UNTESTED, |
| 4197 | .probe = probe_spi_rdid, |
| 4198 | .probe_timing = TIMING_ZERO, |
| 4199 | .block_erasers = |
| 4200 | { |
| 4201 | { |
| 4202 | .eraseblocks = { {4 * 1024, 4096} }, |
| 4203 | .block_erase = spi_block_erase_20, |
| 4204 | }, { |
| 4205 | .eraseblocks = { {64 * 1024, 256} }, |
| 4206 | .block_erase = spi_block_erase_d8, |
| 4207 | }, { |
| 4208 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4209 | .block_erase = spi_block_erase_60, |
| 4210 | }, { |
| 4211 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 4212 | .block_erase = spi_block_erase_c7, |
| 4213 | } |
| 4214 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 4215 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4216 | .unlock = spi_disable_blockprotect, |
| 4217 | .write = spi_chip_write_256, |
| 4218 | .read = spi_chip_read, |
| 4219 | }, |
| 4220 | |
| 4221 | { |
| 4222 | .vendor = "Eon", |
| 4223 | .name = "EN25QH16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4224 | .bustype = BUS_SPI, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4225 | .manufacture_id = EON_ID_NOPREFIX, |
| 4226 | .model_id = EON_EN25QH16, |
| 4227 | .total_size = 2048, |
| 4228 | .page_size = 256, |
Daniel Lenski | 65922a3 | 2012-02-15 23:40:23 +0000 | [diff] [blame] | 4229 | /* supports SFDP */ |
| 4230 | /* OTP: 512B total; enter 0x3A */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4231 | /* QPI enable 0x38, disable 0xFF */ |
| 4232 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 4233 | .tested = TEST_OK_PR, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4234 | .probe = probe_spi_rdid, |
| 4235 | .probe_timing = TIMING_ZERO, |
| 4236 | .block_erasers = |
| 4237 | { |
| 4238 | { |
| 4239 | .eraseblocks = { {4 * 1024, 512} }, |
| 4240 | .block_erase = spi_block_erase_20, |
| 4241 | }, { |
| 4242 | .eraseblocks = { {64 * 1024, 32} }, |
| 4243 | .block_erase = spi_block_erase_d8, |
| 4244 | }, { |
| 4245 | .eraseblocks = { {1024 * 2048, 1} }, |
| 4246 | .block_erase = spi_block_erase_60, |
| 4247 | }, { |
| 4248 | .eraseblocks = { {1024 * 2048, 1} }, |
| 4249 | .block_erase = spi_block_erase_c7, |
| 4250 | } |
| 4251 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4252 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4253 | .unlock = spi_disable_blockprotect_bp3_srwd, |
David Hendricks | 6d71530 | 2011-07-24 22:21:57 +0000 | [diff] [blame] | 4254 | .write = spi_chip_write_256, |
| 4255 | .read = spi_chip_read, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 4256 | .voltage = {2700, 3600}, |
| 4257 | }, |
| 4258 | |
| 4259 | { |
| 4260 | .vendor = "Eon", |
| 4261 | .name = "EN25QH32", |
| 4262 | .bustype = BUS_SPI, |
| 4263 | .manufacture_id = EON_ID_NOPREFIX, |
| 4264 | .model_id = EON_EN25QH32, |
| 4265 | .total_size = 4096, |
| 4266 | .page_size = 256, |
| 4267 | /* supports SFDP */ |
| 4268 | /* OTP: 512B total; enter 0x3A */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4269 | /* QPI enable 0x38, disable 0xFF */ |
| 4270 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 2cef916 | 2012-05-14 01:51:46 +0000 | [diff] [blame] | 4271 | .tested = TEST_UNTESTED, |
| 4272 | .probe = probe_spi_rdid, |
| 4273 | .probe_timing = TIMING_ZERO, |
| 4274 | .block_erasers = |
| 4275 | { |
| 4276 | { |
| 4277 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4278 | .block_erase = spi_block_erase_20, |
| 4279 | }, { |
| 4280 | .eraseblocks = { {64 * 1024, 64} }, |
| 4281 | .block_erase = spi_block_erase_d8, |
| 4282 | }, { |
| 4283 | .eraseblocks = { {1024 * 4096, 1} }, |
| 4284 | .block_erase = spi_block_erase_60, |
| 4285 | }, { |
| 4286 | .eraseblocks = { {1024 * 4096, 1} }, |
| 4287 | .block_erase = spi_block_erase_c7, |
| 4288 | } |
| 4289 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4290 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4291 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4292 | .write = spi_chip_write_256, |
| 4293 | .read = spi_chip_read, |
| 4294 | .voltage = {2700, 3600}, |
| 4295 | }, |
| 4296 | |
| 4297 | { |
| 4298 | .vendor = "Eon", |
| 4299 | .name = "EN25QH64", |
| 4300 | .bustype = BUS_SPI, |
| 4301 | .manufacture_id = EON_ID_NOPREFIX, |
| 4302 | .model_id = EON_EN25QH64, |
| 4303 | .total_size = 8192, |
| 4304 | .page_size = 256, |
| 4305 | /* supports SFDP */ |
| 4306 | /* OTP: 512B total; enter 0x3A */ |
| 4307 | /* QPI enable 0x38, disable 0xFF */ |
| 4308 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 4309 | .tested = TEST_OK_PR, |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4310 | .probe = probe_spi_rdid, |
| 4311 | .probe_timing = TIMING_ZERO, |
| 4312 | .block_erasers = { |
| 4313 | { |
| 4314 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4315 | .block_erase = spi_block_erase_20, |
| 4316 | }, { |
| 4317 | .eraseblocks = { {64 * 1024, 128} }, |
| 4318 | .block_erase = spi_block_erase_d8, |
| 4319 | }, { |
| 4320 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 4321 | .block_erase = spi_block_erase_60, |
| 4322 | }, { |
| 4323 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 4324 | .block_erase = spi_block_erase_c7, |
| 4325 | } |
| 4326 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4327 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4328 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4329 | .write = spi_chip_write_256, |
| 4330 | .read = spi_chip_read, |
| 4331 | .voltage = {2700, 3600}, |
| 4332 | }, |
| 4333 | |
| 4334 | { |
| 4335 | .vendor = "Eon", |
| 4336 | .name = "EN25QH128", |
| 4337 | .bustype = BUS_SPI, |
| 4338 | .manufacture_id = EON_ID_NOPREFIX, |
| 4339 | .model_id = EON_EN25QH128, |
| 4340 | .total_size = 16384, |
| 4341 | .page_size = 256, |
| 4342 | /* supports SFDP */ |
| 4343 | /* OTP: 512B total; enter 0x3A */ |
| 4344 | /* QPI enable 0x38, disable 0xFF */ |
| 4345 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 4346 | .tested = TEST_UNTESTED, |
| 4347 | .probe = probe_spi_rdid, |
| 4348 | .probe_timing = TIMING_ZERO, |
| 4349 | .block_erasers = { |
| 4350 | { |
| 4351 | .eraseblocks = { {4 * 1024, 4096} }, |
| 4352 | .block_erase = spi_block_erase_20, |
| 4353 | }, { |
| 4354 | .eraseblocks = { {64 * 1024, 256} }, |
| 4355 | .block_erase = spi_block_erase_d8, |
| 4356 | }, { |
| 4357 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 4358 | .block_erase = spi_block_erase_60, |
| 4359 | }, { |
| 4360 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 4361 | .block_erase = spi_block_erase_c7, |
| 4362 | } |
| 4363 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4364 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Nikolay Nikolaev | c08542b | 2013-06-28 21:29:14 +0000 | [diff] [blame] | 4365 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4366 | .write = spi_chip_write_256, |
| 4367 | .read = spi_chip_read, |
| 4368 | .voltage = {2700, 3600}, |
| 4369 | }, |
| 4370 | |
| 4371 | { |
| 4372 | .vendor = "Eon", |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 4373 | .name = "EN25S10", |
| 4374 | .bustype = BUS_SPI, |
| 4375 | .manufacture_id = EON_ID_NOPREFIX, |
| 4376 | .model_id = EON_EN25S10, |
| 4377 | .total_size = 128, |
| 4378 | .page_size = 256, |
| 4379 | /* OTP: 256B total; enter 0x3A */ |
| 4380 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4381 | .tested = TEST_UNTESTED, |
| 4382 | .probe = probe_spi_rdid, |
| 4383 | .probe_timing = TIMING_ZERO, |
| 4384 | .block_erasers = { |
| 4385 | { |
| 4386 | .eraseblocks = { {4 * 1024, 32} }, |
| 4387 | .block_erase = spi_block_erase_20, |
| 4388 | }, { |
| 4389 | .eraseblocks = { {32 * 1024, 4} }, |
| 4390 | .block_erase = spi_block_erase_52, |
| 4391 | }, { |
| 4392 | .eraseblocks = { {128 * 1024, 1} }, |
| 4393 | .block_erase = spi_block_erase_60, |
| 4394 | }, { |
| 4395 | .eraseblocks = { {128 * 1024, 1} }, |
| 4396 | .block_erase = spi_block_erase_c7, |
| 4397 | } |
| 4398 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4399 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 4400 | .unlock = spi_disable_blockprotect, |
| 4401 | .write = spi_chip_write_256, |
| 4402 | .read = spi_chip_read, |
| 4403 | .voltage = {1650, 1950}, |
| 4404 | }, |
| 4405 | |
| 4406 | { |
| 4407 | .vendor = "Eon", |
| 4408 | .name = "EN25S20", |
| 4409 | .bustype = BUS_SPI, |
| 4410 | .manufacture_id = EON_ID_NOPREFIX, |
| 4411 | .model_id = EON_EN25S20, |
| 4412 | .total_size = 256, |
| 4413 | .page_size = 256, |
| 4414 | /* OTP: 256B total; enter 0x3A */ |
| 4415 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4416 | .tested = TEST_UNTESTED, |
| 4417 | .probe = probe_spi_rdid, |
| 4418 | .probe_timing = TIMING_ZERO, |
| 4419 | .block_erasers = { |
| 4420 | { |
| 4421 | .eraseblocks = { {4 * 1024, 64} }, |
| 4422 | .block_erase = spi_block_erase_20, |
| 4423 | }, { |
| 4424 | .eraseblocks = { {64 * 1024, 4} }, |
| 4425 | .block_erase = spi_block_erase_d8, |
| 4426 | }, { |
| 4427 | .eraseblocks = { {256 * 1024, 1} }, |
| 4428 | .block_erase = spi_block_erase_60, |
| 4429 | }, { |
| 4430 | .eraseblocks = { {256 * 1024, 1} }, |
| 4431 | .block_erase = spi_block_erase_c7, |
| 4432 | } |
| 4433 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4434 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 4435 | .unlock = spi_disable_blockprotect, |
| 4436 | .write = spi_chip_write_256, |
| 4437 | .read = spi_chip_read, |
| 4438 | .voltage = {1650, 1950}, |
| 4439 | }, |
| 4440 | |
| 4441 | { |
| 4442 | .vendor = "Eon", |
| 4443 | .name = "EN25S40", |
| 4444 | .bustype = BUS_SPI, |
| 4445 | .manufacture_id = EON_ID_NOPREFIX, |
| 4446 | .model_id = EON_EN25S40, |
| 4447 | .total_size = 512, |
| 4448 | .page_size = 256, |
| 4449 | /* OTP: 256B total; enter 0x3A */ |
| 4450 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4451 | .tested = TEST_UNTESTED, |
| 4452 | .probe = probe_spi_rdid, |
| 4453 | .probe_timing = TIMING_ZERO, |
| 4454 | .block_erasers = { |
| 4455 | { |
| 4456 | .eraseblocks = { {4 * 1024, 128} }, |
| 4457 | .block_erase = spi_block_erase_20, |
| 4458 | }, { |
| 4459 | .eraseblocks = { {64 * 1024, 8} }, |
| 4460 | .block_erase = spi_block_erase_d8, |
| 4461 | }, { |
| 4462 | .eraseblocks = { {512 * 1024, 1} }, |
| 4463 | .block_erase = spi_block_erase_60, |
| 4464 | }, { |
| 4465 | .eraseblocks = { {512 * 1024, 1} }, |
| 4466 | .block_erase = spi_block_erase_c7, |
| 4467 | } |
| 4468 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4469 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 4470 | .unlock = spi_disable_blockprotect, |
| 4471 | .write = spi_chip_write_256, |
| 4472 | .read = spi_chip_read, |
| 4473 | .voltage = {1650, 1950}, |
| 4474 | }, |
| 4475 | |
| 4476 | { |
| 4477 | .vendor = "Eon", |
| 4478 | .name = "EN25S80", |
| 4479 | .bustype = BUS_SPI, |
| 4480 | .manufacture_id = EON_ID_NOPREFIX, |
| 4481 | .model_id = EON_EN25S80, |
| 4482 | .total_size = 1024, |
| 4483 | .page_size = 256, |
| 4484 | /* OTP: 256B total; enter 0x3A */ |
| 4485 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4486 | .tested = TEST_UNTESTED, |
| 4487 | .probe = probe_spi_rdid, |
| 4488 | .probe_timing = TIMING_ZERO, |
| 4489 | .block_erasers = { |
| 4490 | { |
| 4491 | .eraseblocks = { {4 * 1024, 256} }, |
| 4492 | .block_erase = spi_block_erase_20, |
| 4493 | }, { |
| 4494 | .eraseblocks = { {64 * 1024, 16} }, |
| 4495 | .block_erase = spi_block_erase_d8, |
| 4496 | }, { |
| 4497 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4498 | .block_erase = spi_block_erase_60, |
| 4499 | }, { |
| 4500 | .eraseblocks = { {1024 * 1024, 1} }, |
| 4501 | .block_erase = spi_block_erase_c7, |
| 4502 | } |
| 4503 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4504 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | d0e3ea1 | 2013-06-28 21:29:08 +0000 | [diff] [blame] | 4505 | .unlock = spi_disable_blockprotect, |
| 4506 | .write = spi_chip_write_256, |
| 4507 | .read = spi_chip_read, |
| 4508 | .voltage = {1650, 1950}, |
| 4509 | }, |
| 4510 | |
| 4511 | { |
| 4512 | .vendor = "Eon", |
| 4513 | .name = "EN25S16", |
| 4514 | .bustype = BUS_SPI, |
| 4515 | .manufacture_id = EON_ID_NOPREFIX, |
| 4516 | .model_id = EON_EN25S16, |
| 4517 | .total_size = 2048, |
| 4518 | .page_size = 256, |
| 4519 | /* OTP: 512B total; enter 0x3A */ |
| 4520 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 4521 | .tested = TEST_UNTESTED, |
| 4522 | .probe = probe_spi_rdid, |
| 4523 | .probe_timing = TIMING_ZERO, |
| 4524 | .block_erasers = { |
| 4525 | { |
| 4526 | .eraseblocks = { {4 * 1024, 512} }, |
| 4527 | .block_erase = spi_block_erase_20, |
| 4528 | }, { |
| 4529 | .eraseblocks = { {64 * 1024, 32} }, |
| 4530 | .block_erase = spi_block_erase_52, |
| 4531 | }, { |
| 4532 | .eraseblocks = { {32 * 1024, 64} }, |
| 4533 | .block_erase = spi_block_erase_d8, |
| 4534 | }, { |
| 4535 | .eraseblocks = { {2048 * 1024, 1} }, |
| 4536 | .block_erase = spi_block_erase_60, |
| 4537 | }, { |
| 4538 | .eraseblocks = { {2048 * 1024, 1} }, |
| 4539 | .block_erase = spi_block_erase_c7, |
| 4540 | } |
| 4541 | }, |
| 4542 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 4543 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4544 | .write = spi_chip_write_256, |
| 4545 | .read = spi_chip_read, |
| 4546 | .voltage = {1650, 1950}, |
| 4547 | }, |
| 4548 | |
| 4549 | { |
| 4550 | .vendor = "Eon", |
| 4551 | .name = "EN25S32", |
| 4552 | .bustype = BUS_SPI, |
| 4553 | .manufacture_id = EON_ID_NOPREFIX, |
| 4554 | .model_id = EON_EN25S32, |
| 4555 | .total_size = 4096, |
| 4556 | .page_size = 256, |
| 4557 | /* OTP: 512B total; enter 0x3A */ |
| 4558 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 4559 | .tested = TEST_UNTESTED, |
| 4560 | .probe = probe_spi_rdid, |
| 4561 | .probe_timing = TIMING_ZERO, |
| 4562 | .block_erasers = { |
| 4563 | { |
| 4564 | .eraseblocks = { {4 * 1024, 1024} }, |
| 4565 | .block_erase = spi_block_erase_20, |
| 4566 | }, { |
| 4567 | .eraseblocks = { {32 * 1024, 128} }, |
| 4568 | .block_erase = spi_block_erase_52, |
| 4569 | }, { |
| 4570 | .eraseblocks = { {64 * 1024, 64} }, |
| 4571 | .block_erase = spi_block_erase_d8, |
| 4572 | }, { |
| 4573 | .eraseblocks = { {4096 * 1024, 1} }, |
| 4574 | .block_erase = spi_block_erase_60, |
| 4575 | }, { |
| 4576 | .eraseblocks = { {4096 * 1024, 1} }, |
| 4577 | .block_erase = spi_block_erase_c7, |
| 4578 | } |
| 4579 | }, |
| 4580 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 4581 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4582 | .write = spi_chip_write_256, |
| 4583 | .read = spi_chip_read, |
| 4584 | .voltage = {1650, 1950}, |
| 4585 | }, |
| 4586 | |
| 4587 | { |
| 4588 | .vendor = "Eon", |
| 4589 | .name = "EN25S64", |
| 4590 | .bustype = BUS_SPI, |
| 4591 | .manufacture_id = EON_ID_NOPREFIX, |
| 4592 | .model_id = EON_EN25S64, |
| 4593 | .total_size = 8192, |
| 4594 | .page_size = 256, |
| 4595 | /* OTP: 512B total; enter 0x3A */ |
| 4596 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 4597 | .tested = TEST_UNTESTED, |
| 4598 | .probe = probe_spi_rdid, |
| 4599 | .probe_timing = TIMING_ZERO, |
| 4600 | .block_erasers = { |
| 4601 | { |
| 4602 | .eraseblocks = { {4 * 1024, 2048} }, |
| 4603 | .block_erase = spi_block_erase_20, |
| 4604 | }, { |
| 4605 | .eraseblocks = { {64 * 1024, 128} }, |
| 4606 | .block_erase = spi_block_erase_d8, |
| 4607 | }, { |
| 4608 | .eraseblocks = { {8192 * 1024, 1} }, |
| 4609 | .block_erase = spi_block_erase_60, |
| 4610 | }, { |
| 4611 | .eraseblocks = { {8192 * 1024, 1} }, |
| 4612 | .block_erase = spi_block_erase_c7, |
| 4613 | } |
| 4614 | }, |
| 4615 | .printlock = spi_prettyprint_status_register_en25s_wp, |
| 4616 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 4617 | .write = spi_chip_write_256, |
| 4618 | .read = spi_chip_read, |
| 4619 | .voltage = {1650, 1950}, |
| 4620 | }, |
| 4621 | |
| 4622 | { |
| 4623 | .vendor = "Eon", |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4624 | .name = "EN29F010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4625 | .bustype = BUS_PARALLEL, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4626 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4627 | .model_id = EON_EN29F010, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4628 | .total_size = 128, |
| 4629 | .page_size = 128, |
| 4630 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 4631 | .tested = TEST_OK_PRE, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4632 | .probe = probe_jedec, |
| 4633 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 4634 | .block_erasers = |
| 4635 | { |
| 4636 | { |
| 4637 | .eraseblocks = { {16 * 1024, 8} }, |
| 4638 | .block_erase = erase_sector_jedec, |
| 4639 | }, |
| 4640 | { |
| 4641 | .eraseblocks = { {128 * 1024, 1} }, |
| 4642 | .block_erase = erase_chip_block_jedec, |
| 4643 | }, |
| 4644 | }, |
| 4645 | .write = write_jedec_1, |
| 4646 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4647 | .voltage = {4500, 5500}, |
Russ Dill | 3cd5a12 | 2010-03-05 08:44:11 +0000 | [diff] [blame] | 4648 | }, |
| 4649 | |
| 4650 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 4651 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4652 | .name = "EN29F002(A)(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4653 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4654 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4655 | .model_id = EON_EN29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4656 | .total_size = 256, |
| 4657 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4658 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 4659 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4660 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 4661 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4662 | .block_erasers = |
| 4663 | { |
| 4664 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 4665 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4666 | {16 * 1024, 1}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 4667 | {8 * 1024, 2}, |
| 4668 | {32 * 1024, 1}, |
| 4669 | {64 * 1024, 3}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4670 | }, |
| 4671 | .block_erase = erase_sector_jedec, |
| 4672 | }, { |
| 4673 | .eraseblocks = { {256 * 1024, 1} }, |
| 4674 | .block_erase = erase_chip_block_jedec, |
| 4675 | }, |
| 4676 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 4677 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4678 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4679 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4680 | }, |
| 4681 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4682 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 4683 | .vendor = "Eon", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4684 | .name = "EN29F002(A)(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4685 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4686 | .manufacture_id = EON_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4687 | .model_id = EON_EN29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4688 | .total_size = 256, |
| 4689 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4690 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 4691 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4692 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 4693 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4694 | .block_erasers = |
| 4695 | { |
| 4696 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 4697 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4698 | {64 * 1024, 3}, |
Michael Karcher | e3cb0a1 | 2010-03-13 23:47:09 +0000 | [diff] [blame] | 4699 | {32 * 1024, 1}, |
| 4700 | {8 * 1024, 2}, |
| 4701 | {16 * 1024, 1}, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4702 | }, |
| 4703 | .block_erase = erase_sector_jedec, |
| 4704 | }, { |
| 4705 | .eraseblocks = { {256 * 1024, 1} }, |
| 4706 | .block_erase = erase_chip_block_jedec, |
| 4707 | }, |
| 4708 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 4709 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4710 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4711 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4712 | }, |
| 4713 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4714 | { |
Rudolf Marek | 47eff6b | 2012-04-14 22:51:40 +0000 | [diff] [blame] | 4715 | .vendor = "Eon", |
| 4716 | .name = "EN29LV640B", |
| 4717 | .bustype = BUS_PARALLEL, |
| 4718 | .manufacture_id = EON_ID, |
| 4719 | .model_id = EON_EN29LV640B, |
| 4720 | .total_size = 8192, |
| 4721 | .page_size = 8192, |
| 4722 | .feature_bits = 0, |
| 4723 | .tested = TEST_OK_PREW, |
| 4724 | .probe = probe_en29lv640b, |
| 4725 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 4726 | .block_erasers = |
| 4727 | { |
| 4728 | { |
| 4729 | .eraseblocks = { |
| 4730 | {8 * 1024, 8}, |
| 4731 | {64 * 1024, 127}, |
| 4732 | }, |
| 4733 | .block_erase = block_erase_en29lv640b, |
| 4734 | }, { |
| 4735 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 4736 | .block_erase = block_erase_chip_en29lv640b, |
| 4737 | }, |
| 4738 | }, |
| 4739 | .write = write_en29lv640b, |
| 4740 | .read = read_memmapped, |
| 4741 | .voltage = {2700, 3600}, |
| 4742 | }, |
| 4743 | |
| 4744 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4745 | .vendor = "Fujitsu", |
| 4746 | .name = "MBM29F004BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4747 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4748 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4749 | .model_id = FUJITSU_MBM29F004BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4750 | .total_size = 512, |
| 4751 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4752 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4753 | .tested = TEST_UNTESTED, |
| 4754 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 4755 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4756 | .block_erasers = |
| 4757 | { |
| 4758 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 4759 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4760 | {16 * 1024, 1}, |
| 4761 | {8 * 1024, 2}, |
| 4762 | {32 * 1024, 1}, |
| 4763 | {64 * 1024, 7}, |
| 4764 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4765 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4766 | }, { |
| 4767 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4768 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4769 | }, |
| 4770 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4771 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4772 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4773 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4774 | }, |
| 4775 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4776 | { |
| 4777 | .vendor = "Fujitsu", |
| 4778 | .name = "MBM29F004TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4779 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4780 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4781 | .model_id = FUJITSU_MBM29F004TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4782 | .total_size = 512, |
| 4783 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4784 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4785 | .tested = TEST_UNTESTED, |
| 4786 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 4787 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4788 | .block_erasers = |
| 4789 | { |
| 4790 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 4791 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4792 | {64 * 1024, 7}, |
| 4793 | {32 * 1024, 1}, |
| 4794 | {8 * 1024, 2}, |
| 4795 | {16 * 1024, 1}, |
| 4796 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4797 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4798 | }, { |
| 4799 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4800 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4801 | }, |
| 4802 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4803 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4804 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 4805 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 4806 | }, |
| 4807 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4808 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4809 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4810 | .vendor = "Fujitsu", |
| 4811 | .name = "MBM29F400BC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4812 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4813 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4814 | .model_id = FUJITSU_MBM29F400BC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4815 | .total_size = 512, |
| 4816 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4817 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 4818 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4819 | .probe = probe_m29f400bt, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 4820 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4821 | .block_erasers = |
| 4822 | { |
| 4823 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 4824 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4825 | {16 * 1024, 1}, |
| 4826 | {8 * 1024, 2}, |
| 4827 | {32 * 1024, 1}, |
| 4828 | {64 * 1024, 7}, |
| 4829 | }, |
| 4830 | .block_erase = block_erase_m29f400bt, |
| 4831 | }, { |
| 4832 | .eraseblocks = { {512 * 1024, 1} }, |
| 4833 | .block_erase = block_erase_chip_m29f400bt, |
| 4834 | }, |
| 4835 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 4836 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4837 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 4838 | .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] | 4839 | }, |
| 4840 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4841 | { |
| 4842 | .vendor = "Fujitsu", |
| 4843 | .name = "MBM29F400TC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 4844 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4845 | .manufacture_id = FUJITSU_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 4846 | .model_id = FUJITSU_MBM29F400TC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4847 | .total_size = 512, |
| 4848 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 4849 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4850 | .tested = TEST_UNTESTED, |
| 4851 | .probe = probe_m29f400bt, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 4852 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */ |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4853 | .block_erasers = |
| 4854 | { |
| 4855 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 4856 | .eraseblocks = { |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 4857 | {64 * 1024, 7}, |
| 4858 | {32 * 1024, 1}, |
| 4859 | {8 * 1024, 2}, |
| 4860 | {16 * 1024, 1}, |
| 4861 | }, |
| 4862 | .block_erase = block_erase_m29f400bt, |
| 4863 | }, { |
| 4864 | .eraseblocks = { {512 * 1024, 1} }, |
| 4865 | .block_erase = block_erase_chip_m29f400bt, |
| 4866 | }, |
| 4867 | }, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 4868 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 4869 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 4870 | .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] | 4871 | }, |
| 4872 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 4873 | { |
Stefan Tauner | 6db8bad | 2013-08-25 13:31:43 +0000 | [diff] [blame] | 4874 | .vendor = "Fujitsu", |
| 4875 | .name = "MBM29LV160BE", |
| 4876 | .bustype = BUS_PARALLEL, |
| 4877 | .manufacture_id = FUJITSU_ID, |
| 4878 | .model_id = FUJITSU_MBM29LV160BE, |
| 4879 | .total_size = 2 * 1024, |
| 4880 | .page_size = 0, |
| 4881 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET, |
| 4882 | .tested = TEST_UNTESTED, |
| 4883 | .probe = probe_m29f400bt, |
| 4884 | .probe_timing = TIMING_IGNORED, |
| 4885 | .block_erasers = |
| 4886 | { |
| 4887 | { |
| 4888 | .eraseblocks = { |
| 4889 | {16 * 1024, 1}, |
| 4890 | {8 * 1024, 2}, |
| 4891 | {32 * 1024, 1}, |
| 4892 | {64 * 1024, 31}, |
| 4893 | }, |
| 4894 | .block_erase = block_erase_m29f400bt, |
| 4895 | }, { |
| 4896 | .eraseblocks = { {2048 * 1024, 1} }, |
| 4897 | .block_erase = block_erase_chip_m29f400bt, |
| 4898 | }, |
| 4899 | }, |
| 4900 | .write = write_m29f400bt, /* Supports a fast mode too */ |
| 4901 | .read = read_memmapped, |
| 4902 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */ |
| 4903 | }, |
| 4904 | |
| 4905 | { |
| 4906 | .vendor = "Fujitsu", |
| 4907 | .name = "MBM29LV160TE", |
| 4908 | .bustype = BUS_PARALLEL, |
| 4909 | .manufacture_id = FUJITSU_ID, |
| 4910 | .model_id = FUJITSU_MBM29LV160TE, |
| 4911 | .total_size = 2 * 1024, |
| 4912 | .page_size = 0, |
| 4913 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_SHORT_RESET, |
| 4914 | .tested = TEST_UNTESTED, |
| 4915 | .probe = probe_m29f400bt, |
| 4916 | .probe_timing = TIMING_IGNORED, |
| 4917 | .block_erasers = |
| 4918 | { |
| 4919 | { |
| 4920 | .eraseblocks = { |
| 4921 | {64 * 1024, 31}, |
| 4922 | {32 * 1024, 1}, |
| 4923 | {8 * 1024, 2}, |
| 4924 | {16 * 1024, 1}, |
| 4925 | }, |
| 4926 | .block_erase = block_erase_m29f400bt, |
| 4927 | }, { |
| 4928 | .eraseblocks = { {2048 * 1024, 1} }, |
| 4929 | .block_erase = block_erase_chip_m29f400bt, |
| 4930 | }, |
| 4931 | }, |
| 4932 | .write = write_m29f400bt, /* Supports a fast mode too */ |
| 4933 | .read = read_memmapped, |
| 4934 | .voltage = {3000, 3600}, /* 3.0-3.6V for type -70, others 2.7-3.6V */ |
| 4935 | }, |
| 4936 | |
| 4937 | { |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 4938 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 4939 | .name = "GD25LQ32", |
| 4940 | .bustype = BUS_SPI, |
| 4941 | .manufacture_id = GIGADEVICE_ID, |
| 4942 | .model_id = GIGADEVICE_GD25LQ32, |
| 4943 | .total_size = 4096, |
| 4944 | .page_size = 256, |
| 4945 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 4946 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 4947 | .tested = TEST_OK_PREW, |
| 4948 | .probe = probe_spi_rdid, |
| 4949 | .probe_timing = TIMING_ZERO, |
| 4950 | .block_erasers = |
| 4951 | { |
| 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 = { {4 * 1024 * 1024, 1} }, |
| 4963 | .block_erase = spi_block_erase_60, |
| 4964 | }, { |
| 4965 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 4966 | .block_erase = spi_block_erase_c7, |
| 4967 | } |
| 4968 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 4969 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 4970 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 4971 | .write = spi_chip_write_256, |
| 4972 | .read = spi_chip_read, |
| 4973 | .voltage = {1700, 1950}, |
| 4974 | }, |
| 4975 | |
| 4976 | { |
| 4977 | .vendor = "GigaDevice", |
| 4978 | .name = "GD25Q512", |
| 4979 | .bustype = BUS_SPI, |
| 4980 | .manufacture_id = GIGADEVICE_ID, |
| 4981 | .model_id = GIGADEVICE_GD25Q512, |
| 4982 | .total_size = 64, |
| 4983 | .page_size = 256, |
| 4984 | .feature_bits = FEATURE_WRSR_WREN, |
| 4985 | .tested = TEST_UNTESTED, |
| 4986 | .probe = probe_spi_rdid, |
| 4987 | .probe_timing = TIMING_ZERO, |
| 4988 | .block_erasers = { |
| 4989 | { |
| 4990 | .eraseblocks = { {4 * 1024, 16} }, |
| 4991 | .block_erase = spi_block_erase_20, |
| 4992 | }, { |
| 4993 | .eraseblocks = { {32 * 1024, 2} }, |
| 4994 | .block_erase = spi_block_erase_52, |
| 4995 | }, { |
| 4996 | .eraseblocks = { {64 * 1024, 1} }, |
| 4997 | .block_erase = spi_block_erase_60, |
| 4998 | }, { |
| 4999 | .eraseblocks = { {64 * 1024, 1} }, |
| 5000 | .block_erase = spi_block_erase_c7, |
| 5001 | } |
| 5002 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5003 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5004 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5005 | .write = spi_chip_write_256, |
| 5006 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5007 | .voltage = {2700, 3600}, |
| 5008 | }, |
| 5009 | |
| 5010 | { |
| 5011 | .vendor = "GigaDevice", |
| 5012 | .name = "GD25Q10", |
| 5013 | .bustype = BUS_SPI, |
| 5014 | .manufacture_id = GIGADEVICE_ID, |
| 5015 | .model_id = GIGADEVICE_GD25Q10, |
| 5016 | .total_size = 128, |
| 5017 | .page_size = 256, |
| 5018 | .feature_bits = FEATURE_WRSR_WREN, |
| 5019 | .tested = TEST_UNTESTED, |
| 5020 | .probe = probe_spi_rdid, |
| 5021 | .probe_timing = TIMING_ZERO, |
| 5022 | .block_erasers = { |
| 5023 | { |
| 5024 | .eraseblocks = { {4 * 1024, 32} }, |
| 5025 | .block_erase = spi_block_erase_20, |
| 5026 | }, { |
| 5027 | .eraseblocks = { {32 * 1024, 4} }, |
| 5028 | .block_erase = spi_block_erase_52, |
| 5029 | }, { |
| 5030 | .eraseblocks = { {64 * 1024, 2} }, |
| 5031 | .block_erase = spi_block_erase_d8, |
| 5032 | }, { |
| 5033 | .eraseblocks = { {128 * 1024, 1} }, |
| 5034 | .block_erase = spi_block_erase_60, |
| 5035 | }, { |
| 5036 | .eraseblocks = { {128 * 1024, 1} }, |
| 5037 | .block_erase = spi_block_erase_c7, |
| 5038 | } |
| 5039 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5040 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5041 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5042 | .write = spi_chip_write_256, |
| 5043 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5044 | .voltage = {2700, 3600}, |
| 5045 | }, |
| 5046 | |
| 5047 | { |
| 5048 | .vendor = "GigaDevice", |
| 5049 | .name = "GD25Q20(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5050 | .bustype = BUS_SPI, |
| 5051 | .manufacture_id = GIGADEVICE_ID, |
| 5052 | .model_id = GIGADEVICE_GD25Q20, |
| 5053 | .total_size = 256, |
| 5054 | .page_size = 256, |
| 5055 | .feature_bits = FEATURE_WRSR_WREN, |
| 5056 | .tested = TEST_UNTESTED, |
| 5057 | .probe = probe_spi_rdid, |
| 5058 | .probe_timing = TIMING_ZERO, |
| 5059 | .block_erasers = |
| 5060 | { |
| 5061 | { |
| 5062 | .eraseblocks = { {4 * 1024, 64} }, |
| 5063 | .block_erase = spi_block_erase_20, |
| 5064 | }, { |
| 5065 | .eraseblocks = { {32 * 1024, 8} }, |
| 5066 | .block_erase = spi_block_erase_52, |
| 5067 | }, { |
| 5068 | .eraseblocks = { {64 * 1024, 4} }, |
| 5069 | .block_erase = spi_block_erase_d8, |
| 5070 | }, { |
| 5071 | .eraseblocks = { {256 * 1024, 1} }, |
| 5072 | .block_erase = spi_block_erase_60, |
| 5073 | }, { |
| 5074 | .eraseblocks = { {256 * 1024, 1} }, |
| 5075 | .block_erase = spi_block_erase_c7, |
| 5076 | } |
| 5077 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5078 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5079 | .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] | 5080 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5081 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 5082 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5083 | }, |
| 5084 | |
| 5085 | { |
| 5086 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5087 | .name = "GD25Q40(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5088 | .bustype = BUS_SPI, |
| 5089 | .manufacture_id = GIGADEVICE_ID, |
| 5090 | .model_id = GIGADEVICE_GD25Q40, |
| 5091 | .total_size = 512, |
| 5092 | .page_size = 256, |
| 5093 | .feature_bits = FEATURE_WRSR_WREN, |
| 5094 | .tested = TEST_UNTESTED, |
| 5095 | .probe = probe_spi_rdid, |
| 5096 | .probe_timing = TIMING_ZERO, |
| 5097 | .block_erasers = |
| 5098 | { |
| 5099 | { |
| 5100 | .eraseblocks = { {4 * 1024, 128} }, |
| 5101 | .block_erase = spi_block_erase_20, |
| 5102 | }, { |
| 5103 | .eraseblocks = { {32 * 1024, 16} }, |
| 5104 | .block_erase = spi_block_erase_52, |
| 5105 | }, { |
| 5106 | .eraseblocks = { {64 * 1024, 8} }, |
| 5107 | .block_erase = spi_block_erase_d8, |
| 5108 | }, { |
| 5109 | .eraseblocks = { {512 * 1024, 1} }, |
| 5110 | .block_erase = spi_block_erase_60, |
| 5111 | }, { |
| 5112 | .eraseblocks = { {512 * 1024, 1} }, |
| 5113 | .block_erase = spi_block_erase_c7, |
| 5114 | } |
| 5115 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5116 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5117 | .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] | 5118 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5119 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 5120 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5121 | }, |
| 5122 | |
| 5123 | { |
| 5124 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5125 | .name = "GD25Q80(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5126 | .bustype = BUS_SPI, |
| 5127 | .manufacture_id = GIGADEVICE_ID, |
| 5128 | .model_id = GIGADEVICE_GD25Q80, |
| 5129 | .total_size = 1024, |
| 5130 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5131 | /* 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] | 5132 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5133 | .tested = TEST_OK_PREW, |
| 5134 | .probe = probe_spi_rdid, |
| 5135 | .probe_timing = TIMING_ZERO, |
| 5136 | .block_erasers = |
| 5137 | { |
| 5138 | { |
| 5139 | .eraseblocks = { {4 * 1024, 256} }, |
| 5140 | .block_erase = spi_block_erase_20, |
| 5141 | }, { |
| 5142 | .eraseblocks = { {32 * 1024, 32} }, |
| 5143 | .block_erase = spi_block_erase_52, |
| 5144 | }, { |
| 5145 | .eraseblocks = { {64 * 1024, 16} }, |
| 5146 | .block_erase = spi_block_erase_d8, |
| 5147 | }, { |
| 5148 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5149 | .block_erase = spi_block_erase_60, |
| 5150 | }, { |
| 5151 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5152 | .block_erase = spi_block_erase_c7, |
| 5153 | } |
| 5154 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5155 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5156 | .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] | 5157 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5158 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5159 | .voltage = {2700, 3600}, |
| 5160 | }, |
| 5161 | |
| 5162 | { |
| 5163 | .vendor = "GigaDevice", |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5164 | .name = "GD25Q16(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5165 | .bustype = BUS_SPI, |
| 5166 | .manufacture_id = GIGADEVICE_ID, |
| 5167 | .model_id = GIGADEVICE_GD25Q16, |
| 5168 | .total_size = 2048, |
| 5169 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5170 | /* 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] | 5171 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5172 | .tested = TEST_UNTESTED, |
| 5173 | .probe = probe_spi_rdid, |
| 5174 | .probe_timing = TIMING_ZERO, |
| 5175 | .block_erasers = |
| 5176 | { |
| 5177 | { |
| 5178 | .eraseblocks = { {4 * 1024, 512} }, |
| 5179 | .block_erase = spi_block_erase_20, |
| 5180 | }, { |
| 5181 | .eraseblocks = { {32 * 1024, 64} }, |
| 5182 | .block_erase = spi_block_erase_52, |
| 5183 | }, { |
| 5184 | .eraseblocks = { {64 * 1024, 32} }, |
| 5185 | .block_erase = spi_block_erase_d8, |
| 5186 | }, { |
| 5187 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5188 | .block_erase = spi_block_erase_60, |
| 5189 | }, { |
| 5190 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5191 | .block_erase = spi_block_erase_c7, |
| 5192 | } |
| 5193 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5194 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5195 | .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] | 5196 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5197 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5198 | .voltage = {2700, 3600}, |
| 5199 | }, |
| 5200 | |
| 5201 | { |
| 5202 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5203 | .name = "GD25Q32(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5204 | .bustype = BUS_SPI, |
| 5205 | .manufacture_id = GIGADEVICE_ID, |
| 5206 | .model_id = GIGADEVICE_GD25Q32, |
| 5207 | .total_size = 4096, |
| 5208 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5209 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5210 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 5211 | .tested = TEST_OK_PREW, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5212 | .probe = probe_spi_rdid, |
| 5213 | .probe_timing = TIMING_ZERO, |
| 5214 | .block_erasers = |
| 5215 | { |
| 5216 | { |
| 5217 | .eraseblocks = { {4 * 1024, 1024} }, |
| 5218 | .block_erase = spi_block_erase_20, |
| 5219 | }, { |
| 5220 | .eraseblocks = { {32 * 1024, 128} }, |
| 5221 | .block_erase = spi_block_erase_52, |
| 5222 | }, { |
| 5223 | .eraseblocks = { {64 * 1024, 64} }, |
| 5224 | .block_erase = spi_block_erase_d8, |
| 5225 | }, { |
| 5226 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5227 | .block_erase = spi_block_erase_60, |
| 5228 | }, { |
| 5229 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5230 | .block_erase = spi_block_erase_c7, |
| 5231 | } |
| 5232 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5233 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5234 | .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] | 5235 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5236 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5237 | .voltage = {2700, 3600}, |
| 5238 | }, |
| 5239 | |
| 5240 | { |
| 5241 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5242 | .name = "GD25Q64(B)", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5243 | .bustype = BUS_SPI, |
| 5244 | .manufacture_id = GIGADEVICE_ID, |
| 5245 | .model_id = GIGADEVICE_GD25Q64, |
| 5246 | .total_size = 8192, |
| 5247 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5248 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5249 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 5250 | .tested = TEST_OK_PREW, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5251 | .probe = probe_spi_rdid, |
| 5252 | .probe_timing = TIMING_ZERO, |
| 5253 | .block_erasers = |
| 5254 | { |
| 5255 | { |
| 5256 | .eraseblocks = { {4 * 1024, 2048} }, |
| 5257 | .block_erase = spi_block_erase_20, |
| 5258 | }, { |
| 5259 | .eraseblocks = { {32 * 1024, 256} }, |
| 5260 | .block_erase = spi_block_erase_52, |
| 5261 | }, { |
| 5262 | .eraseblocks = { {64 * 1024, 128} }, |
| 5263 | .block_erase = spi_block_erase_d8, |
| 5264 | }, { |
| 5265 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5266 | .block_erase = spi_block_erase_60, |
| 5267 | }, { |
| 5268 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5269 | .block_erase = spi_block_erase_c7, |
| 5270 | } |
| 5271 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5272 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5273 | .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] | 5274 | .write = spi_chip_write_256, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5275 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5276 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5277 | }, |
| 5278 | |
| 5279 | { |
| 5280 | .vendor = "GigaDevice", |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5281 | .name = "GD25Q128B", |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5282 | .bustype = BUS_SPI, |
| 5283 | .manufacture_id = GIGADEVICE_ID, |
| 5284 | .model_id = GIGADEVICE_GD25Q128, |
| 5285 | .total_size = 16384, |
| 5286 | .page_size = 256, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5287 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5288 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5289 | .tested = TEST_UNTESTED, |
| 5290 | .probe = probe_spi_rdid, |
| 5291 | .probe_timing = TIMING_ZERO, |
| 5292 | .block_erasers = |
| 5293 | { |
| 5294 | { |
| 5295 | .eraseblocks = { {4 * 1024, 4096} }, |
| 5296 | .block_erase = spi_block_erase_20, |
| 5297 | }, { |
| 5298 | .eraseblocks = { {32 * 1024, 512} }, |
| 5299 | .block_erase = spi_block_erase_52, |
| 5300 | }, { |
| 5301 | .eraseblocks = { {64 * 1024, 256} }, |
| 5302 | .block_erase = spi_block_erase_d8, |
| 5303 | }, { |
| 5304 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 5305 | .block_erase = spi_block_erase_60, |
| 5306 | }, { |
| 5307 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 5308 | .block_erase = spi_block_erase_c7, |
| 5309 | } |
| 5310 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5311 | .printlock = spi_prettyprint_status_register_bp4_srwd, |
Nikolay Nikolaev | 3f3390b | 2013-06-28 21:28:56 +0000 | [diff] [blame] | 5312 | .unlock = spi_disable_blockprotect_bp4_srwd, /* TODO: 2nd status reg (read with 0x35) */ |
| 5313 | .write = spi_chip_write_256, |
| 5314 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 5315 | .voltage = {2700, 3600}, |
| 5316 | }, |
| 5317 | |
| 5318 | { |
| 5319 | .vendor = "GigaDevice", |
| 5320 | .name = "GD25T80", |
| 5321 | .bustype = BUS_SPI, |
| 5322 | .manufacture_id = GIGADEVICE_ID, |
| 5323 | .model_id = GIGADEVICE_GD25T80, |
| 5324 | .total_size = 1024, |
| 5325 | .page_size = 256, |
| 5326 | /* OTP: 256B total; enter 0x3A */ |
| 5327 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5328 | .tested = TEST_UNTESTED, |
| 5329 | .probe = probe_spi_rdid, |
| 5330 | .probe_timing = TIMING_ZERO, |
| 5331 | .block_erasers = { |
| 5332 | { |
| 5333 | .eraseblocks = { {4 * 1024, 256} }, |
| 5334 | .block_erase = spi_block_erase_20, |
| 5335 | }, { |
| 5336 | .eraseblocks = { {64 * 1024, 16} }, |
| 5337 | .block_erase = spi_block_erase_52, |
| 5338 | }, { |
| 5339 | .eraseblocks = { {64 * 1024, 16} }, |
| 5340 | .block_erase = spi_block_erase_d8, |
| 5341 | }, { |
| 5342 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5343 | .block_erase = spi_block_erase_60, |
| 5344 | }, { |
| 5345 | .eraseblocks = { {1024 * 1024, 1} }, |
| 5346 | .block_erase = spi_block_erase_c7, |
| 5347 | } |
| 5348 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 5349 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5350 | .unlock = spi_disable_blockprotect, |
| 5351 | .write = spi_chip_write_256, |
| 5352 | .read = spi_chip_read, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 5353 | .voltage = {2700, 3600}, |
Justin Chevrier | 1525b2a | 2012-04-14 21:59:23 +0000 | [diff] [blame] | 5354 | }, |
| 5355 | |
| 5356 | { |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 5357 | .vendor = "Hyundai", |
| 5358 | .name = "HY29F002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5359 | .bustype = BUS_PARALLEL, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 5360 | .manufacture_id = HYUNDAI_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5361 | .model_id = HYUNDAI_HY29F002T, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 5362 | .total_size = 256, |
| 5363 | .page_size = 256 * 1024, |
| 5364 | .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] | 5365 | .tested = TEST_OK_PRE, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 5366 | .probe = probe_jedec, |
| 5367 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5368 | .block_erasers = |
| 5369 | { |
| 5370 | { |
| 5371 | .eraseblocks = { |
| 5372 | {64 * 1024, 3}, |
| 5373 | {32 * 1024, 1}, |
| 5374 | {8 * 1024, 2}, |
| 5375 | {16 * 1024, 1}, |
| 5376 | }, |
| 5377 | .block_erase = erase_sector_jedec, |
| 5378 | }, { |
| 5379 | .eraseblocks = { {256 * 1024, 1} }, |
| 5380 | .block_erase = erase_chip_block_jedec, |
| 5381 | }, |
| 5382 | }, |
| 5383 | .write = write_jedec_1, |
| 5384 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5385 | .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] | 5386 | }, |
| 5387 | |
| 5388 | { |
| 5389 | .vendor = "Hyundai", |
| 5390 | .name = "HY29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5391 | .bustype = BUS_PARALLEL, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 5392 | .manufacture_id = HYUNDAI_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5393 | .model_id = HYUNDAI_HY29F002B, |
David Borg | c96a8bd | 2010-06-21 16:12:22 +0000 | [diff] [blame] | 5394 | .total_size = 256, |
| 5395 | .page_size = 256 * 1024, |
| 5396 | .feature_bits = FEATURE_EITHER_RESET, /* Some revisions may need FEATURE_ADDR_2AA */ |
| 5397 | .tested = TEST_UNTESTED, |
| 5398 | .probe = probe_jedec, |
| 5399 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5400 | .block_erasers = |
| 5401 | { |
| 5402 | { |
| 5403 | .eraseblocks = { |
| 5404 | {16 * 1024, 1}, |
| 5405 | {8 * 1024, 2}, |
| 5406 | {32 * 1024, 1}, |
| 5407 | {64 * 1024, 3}, |
| 5408 | }, |
| 5409 | .block_erase = erase_sector_jedec, |
| 5410 | }, { |
| 5411 | .eraseblocks = { {256 * 1024, 1} }, |
| 5412 | .block_erase = erase_chip_block_jedec, |
| 5413 | }, |
| 5414 | }, |
| 5415 | .write = write_jedec_1, |
| 5416 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5417 | .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] | 5418 | }, |
| 5419 | |
| 5420 | { |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 5421 | .vendor = "Hyundai", |
| 5422 | .name = "HY29F040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5423 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 5424 | .manufacture_id = HYUNDAI_ID, |
| 5425 | .model_id = HYUNDAI_HY29F040A, |
| 5426 | .total_size = 512, |
| 5427 | .page_size = 64 * 1024, |
| 5428 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 5429 | .tested = TEST_UNTESTED, |
| 5430 | .probe = probe_jedec, |
| 5431 | .probe_timing = TIMING_ZERO, |
| 5432 | .block_erasers = |
| 5433 | { |
| 5434 | { |
| 5435 | .eraseblocks = { {64 * 1024, 8} }, |
| 5436 | .block_erase = erase_sector_jedec, |
| 5437 | }, { |
| 5438 | .eraseblocks = { {512 * 1024, 1} }, |
| 5439 | .block_erase = erase_chip_block_jedec, |
| 5440 | }, |
| 5441 | }, |
| 5442 | .write = write_jedec_1, |
| 5443 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 5444 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 5445 | }, |
| 5446 | |
| 5447 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5448 | .vendor = "Intel", |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 5449 | .name = "25F160S33B8", |
| 5450 | .bustype = BUS_SPI, |
| 5451 | .manufacture_id = INTEL_ID, |
| 5452 | .model_id = INTEL_25F160S33B8, |
| 5453 | .total_size = 2048, |
| 5454 | .page_size = 256, |
| 5455 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 5456 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5457 | .tested = TEST_UNTESTED, |
| 5458 | .probe = probe_spi_rdid, |
| 5459 | .probe_timing = TIMING_ZERO, |
| 5460 | .block_erasers = |
| 5461 | { |
| 5462 | { |
| 5463 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 5464 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 5465 | * have no effect on the memory contents, but sets a flag in the SR. |
| 5466 | .eraseblocks = { |
| 5467 | {8 * 1024, 8}, |
| 5468 | {64 * 1024, 31} // inaccessible |
| 5469 | }, |
| 5470 | .block_erase = spi_block_erase_40, |
| 5471 | }, { */ |
| 5472 | .eraseblocks = { {64 * 1024, 32} }, |
| 5473 | .block_erase = spi_block_erase_d8, |
| 5474 | }, { |
| 5475 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5476 | .block_erase = spi_block_erase_c7, |
| 5477 | } |
| 5478 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 5479 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 5480 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 5481 | .write = spi_chip_write_256, |
| 5482 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 5483 | .voltage = {2700, 3600}, |
| 5484 | }, |
| 5485 | |
| 5486 | { |
| 5487 | .vendor = "Intel", |
| 5488 | .name = "25F160S33T8", |
| 5489 | .bustype = BUS_SPI, |
| 5490 | .manufacture_id = INTEL_ID, |
| 5491 | .model_id = INTEL_25F160S33T8, |
| 5492 | .total_size = 2048, |
| 5493 | .page_size = 256, |
| 5494 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 5495 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5496 | .tested = TEST_UNTESTED, |
| 5497 | .probe = probe_spi_rdid, |
| 5498 | .probe_timing = TIMING_ZERO, |
| 5499 | .block_erasers = |
| 5500 | { |
| 5501 | { |
| 5502 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 5503 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 5504 | * have no effect on the memory contents, but sets a flag in the SR. |
| 5505 | .eraseblocks = { |
| 5506 | {64 * 1024, 31}, // inaccessible |
| 5507 | {8 * 1024, 8} |
| 5508 | }, |
| 5509 | .block_erase = spi_block_erase_40, |
| 5510 | }, { */ |
| 5511 | .eraseblocks = { {64 * 1024, 32} }, |
| 5512 | .block_erase = spi_block_erase_d8, |
| 5513 | }, { |
| 5514 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 5515 | .block_erase = spi_block_erase_c7, |
| 5516 | } |
| 5517 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 5518 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 5519 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 5520 | .write = spi_chip_write_256, |
| 5521 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 5522 | .voltage = {2700, 3600}, |
| 5523 | }, |
| 5524 | |
| 5525 | { |
| 5526 | .vendor = "Intel", |
| 5527 | .name = "25F320S33B8", |
| 5528 | .bustype = BUS_SPI, |
| 5529 | .manufacture_id = INTEL_ID, |
| 5530 | .model_id = INTEL_25F320S33B8, |
| 5531 | .total_size = 4096, |
| 5532 | .page_size = 256, |
| 5533 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 5534 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5535 | .tested = TEST_UNTESTED, |
| 5536 | .probe = probe_spi_rdid, |
| 5537 | .probe_timing = TIMING_ZERO, |
| 5538 | .block_erasers = |
| 5539 | { |
| 5540 | { |
| 5541 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 5542 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 5543 | * have no effect on the memory contents, but sets a flag in the SR. |
| 5544 | .eraseblocks = { |
| 5545 | {8 * 1024, 8}, |
| 5546 | {64 * 1024, 63} // inaccessible |
| 5547 | }, |
| 5548 | .block_erase = spi_block_erase_40, |
| 5549 | }, { */ |
| 5550 | .eraseblocks = { {64 * 1024, 64} }, |
| 5551 | .block_erase = spi_block_erase_d8, |
| 5552 | }, { |
| 5553 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5554 | .block_erase = spi_block_erase_c7, |
| 5555 | } |
| 5556 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 5557 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 5558 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 5559 | .write = spi_chip_write_256, |
| 5560 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 5561 | .voltage = {2700, 3600}, |
| 5562 | }, |
| 5563 | |
| 5564 | { |
| 5565 | .vendor = "Intel", |
| 5566 | .name = "25F320S33T8", |
| 5567 | .bustype = BUS_SPI, |
| 5568 | .manufacture_id = INTEL_ID, |
| 5569 | .model_id = INTEL_25F320S33T8, |
| 5570 | .total_size = 4096, |
| 5571 | .page_size = 256, |
| 5572 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 5573 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5574 | .tested = TEST_UNTESTED, |
| 5575 | .probe = probe_spi_rdid, |
| 5576 | .probe_timing = TIMING_ZERO, |
| 5577 | .block_erasers = |
| 5578 | { |
| 5579 | { |
| 5580 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 5581 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 5582 | * have no effect on the memory contents, but sets a flag in the SR. |
| 5583 | .eraseblocks = { |
| 5584 | {64 * 1024, 63}, // inaccessible |
| 5585 | {8 * 1024, 8} |
| 5586 | }, |
| 5587 | .block_erase = spi_block_erase_40, |
| 5588 | }, { */ |
| 5589 | .eraseblocks = { {64 * 1024, 64} }, |
| 5590 | .block_erase = spi_block_erase_d8, |
| 5591 | }, { |
| 5592 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 5593 | .block_erase = spi_block_erase_c7, |
| 5594 | } |
| 5595 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 5596 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 5597 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 5598 | .write = spi_chip_write_256, |
| 5599 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 5600 | .voltage = {2700, 3600}, |
| 5601 | }, |
| 5602 | |
| 5603 | { |
| 5604 | .vendor = "Intel", |
| 5605 | .name = "25F640S33B8", |
| 5606 | .bustype = BUS_SPI, |
| 5607 | .manufacture_id = INTEL_ID, |
| 5608 | .model_id = INTEL_25F640S33B8, |
| 5609 | .total_size = 8192, |
| 5610 | .page_size = 256, |
| 5611 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 5612 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5613 | .tested = TEST_UNTESTED, |
| 5614 | .probe = probe_spi_rdid, |
| 5615 | .probe_timing = TIMING_ZERO, |
| 5616 | .block_erasers = |
| 5617 | { |
| 5618 | { |
| 5619 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 5620 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 5621 | * have no effect on the memory contents, but sets a flag in the SR. |
| 5622 | .eraseblocks = { |
| 5623 | {8 * 1024, 8}, |
| 5624 | {64 * 1024, 127} // inaccessible |
| 5625 | }, |
| 5626 | .block_erase = spi_block_erase_40, |
| 5627 | }, { */ |
| 5628 | .eraseblocks = { {64 * 1024, 128} }, |
| 5629 | .block_erase = spi_block_erase_d8, |
| 5630 | }, { |
| 5631 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5632 | .block_erase = spi_block_erase_c7, |
| 5633 | } |
| 5634 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 5635 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 5636 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 5637 | .write = spi_chip_write_256, |
| 5638 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 5639 | .voltage = {2700, 3600}, |
| 5640 | }, |
| 5641 | |
| 5642 | { |
| 5643 | .vendor = "Intel", |
| 5644 | .name = "25F640S33T8", |
| 5645 | .bustype = BUS_SPI, |
| 5646 | .manufacture_id = INTEL_ID, |
| 5647 | .model_id = INTEL_25F640S33T8, |
| 5648 | .total_size = 8192, |
| 5649 | .page_size = 256, |
| 5650 | /* OTP: 506B total (2x 8B, 30x 16B, 1x 10B); read 0x4B; write 0x42 */ |
| 5651 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 5652 | .tested = TEST_UNTESTED, |
| 5653 | .probe = probe_spi_rdid, |
| 5654 | .probe_timing = TIMING_ZERO, |
| 5655 | .block_erasers = |
| 5656 | { |
| 5657 | { |
| 5658 | /* This chip supports erasing of the 8 so-called "parameter blocks" with |
| 5659 | * opcode 0x40. Trying to access an address outside these 8 8kB blocks does |
| 5660 | * have no effect on the memory contents, but sets a flag in the SR. |
| 5661 | .eraseblocks = { |
| 5662 | {64 * 1024, 127}, // inaccessible |
| 5663 | {8 * 1024, 8} |
| 5664 | }, |
| 5665 | .block_erase = spi_block_erase_40, |
| 5666 | }, { */ |
| 5667 | .eraseblocks = { {64 * 1024, 128} }, |
| 5668 | .block_erase = spi_block_erase_d8, |
| 5669 | }, { |
| 5670 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 5671 | .block_erase = spi_block_erase_c7, |
| 5672 | } |
| 5673 | }, |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 5674 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, |
| 5675 | .unlock = spi_disable_blockprotect_bp2_ep_srwd, |
Stefan Tauner | 54aaa4a | 2012-12-29 15:04:12 +0000 | [diff] [blame] | 5676 | .write = spi_chip_write_256, |
| 5677 | .read = spi_chip_read, /* also fast read 0x0B */ |
| 5678 | .voltage = {2700, 3600}, |
| 5679 | }, |
| 5680 | |
| 5681 | { |
| 5682 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5683 | .name = "28F001BN/BX-B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5684 | .bustype = BUS_PARALLEL, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5685 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5686 | .model_id = INTEL_28F001B, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5687 | .total_size = 128, |
| 5688 | .page_size = 128 * 1024, /* 8k + 2x4k + 112k */ |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 5689 | .tested = TEST_UNTESTED, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5690 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5691 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5692 | .block_erasers = |
| 5693 | { |
| 5694 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5695 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5696 | {8 * 1024, 1}, |
| 5697 | {4 * 1024, 2}, |
| 5698 | {112 * 1024, 1}, |
| 5699 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5700 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5701 | }, |
| 5702 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 5703 | .write = write_82802ab, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5704 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5705 | .voltage = {4500, 5500}, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5706 | }, |
| 5707 | |
| 5708 | { |
| 5709 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5710 | .name = "28F001BN/BX-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5711 | .bustype = BUS_PARALLEL, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5712 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5713 | .model_id = INTEL_28F001T, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5714 | .total_size = 128, |
| 5715 | .page_size = 128 * 1024, /* 112k + 2x4k + 8k */ |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 5716 | .tested = TEST_OK_PR, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5717 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 5718 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5719 | .block_erasers = |
| 5720 | { |
| 5721 | { |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 5722 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5723 | {112 * 1024, 1}, |
| 5724 | {4 * 1024, 2}, |
| 5725 | {8 * 1024, 1}, |
| 5726 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5727 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5728 | }, |
| 5729 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 5730 | .write = write_82802ab, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5731 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5732 | .voltage = {4500, 5500}, |
Urja Rannikko | ebd7b83 | 2009-05-29 12:55:31 +0000 | [diff] [blame] | 5733 | }, |
| 5734 | |
| 5735 | { |
| 5736 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5737 | .name = "28F002BC/BL/BV/BX-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5738 | .bustype = BUS_PARALLEL, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 5739 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5740 | .model_id = INTEL_28F002T, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 5741 | .total_size = 256, |
| 5742 | .page_size = 256 * 1024, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 5743 | .tested = TEST_OK_PRE, |
Joshua Roys | d97c0e0 | 2010-07-22 15:20:43 +0000 | [diff] [blame] | 5744 | .probe = probe_82802ab, |
| 5745 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5746 | .block_erasers = |
| 5747 | { |
| 5748 | { |
| 5749 | .eraseblocks = { |
| 5750 | {128 * 1024, 1}, |
| 5751 | {96 * 1024, 1}, |
| 5752 | {8 * 1024, 2}, |
| 5753 | {16 * 1024, 1}, |
| 5754 | }, |
| 5755 | .block_erase = erase_block_82802ab, |
| 5756 | }, |
| 5757 | }, |
| 5758 | .write = write_82802ab, |
| 5759 | .read = read_memmapped, |
| 5760 | }, |
| 5761 | |
| 5762 | { |
| 5763 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5764 | .name = "28F008S3/S5/SC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5765 | .bustype = BUS_PARALLEL, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 5766 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5767 | .model_id = INTEL_28F004S3, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 5768 | .total_size = 512, |
| 5769 | .page_size = 256, |
| 5770 | .tested = TEST_UNTESTED, |
| 5771 | .probe = probe_82802ab, |
| 5772 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 5773 | .block_erasers = |
| 5774 | { |
| 5775 | { |
| 5776 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5777 | .block_erase = erase_block_82802ab, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 5778 | }, |
| 5779 | }, |
Sean Nelson | dee4a83 | 2010-03-22 04:39:31 +0000 | [diff] [blame] | 5780 | .unlock = unlock_28f004s5, |
Sean Nelson | f5ae4d4 | 2010-02-13 18:41:53 +0000 | [diff] [blame] | 5781 | .write = write_82802ab, |
| 5782 | .read = read_memmapped, |
| 5783 | }, |
| 5784 | |
| 5785 | { |
| 5786 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5787 | .name = "28F004B5/BE/BV/BX-B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5788 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5789 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5790 | .model_id = INTEL_28F004B, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5791 | .total_size = 512, |
| 5792 | .page_size = 128 * 1024, /* maximal block size */ |
| 5793 | .tested = TEST_UNTESTED, |
| 5794 | .probe = probe_82802ab, |
| 5795 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5796 | .block_erasers = |
| 5797 | { |
| 5798 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5799 | .eraseblocks = { |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5800 | {16 * 1024, 1}, |
| 5801 | {8 * 1024, 2}, |
| 5802 | {96 * 1024, 1}, |
| 5803 | {128 * 1024, 3}, |
| 5804 | }, |
| 5805 | .block_erase = erase_block_82802ab, |
| 5806 | }, |
| 5807 | }, |
| 5808 | .write = write_82802ab, |
| 5809 | .read = read_memmapped, |
| 5810 | }, |
| 5811 | |
| 5812 | { |
| 5813 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5814 | .name = "28F004B5/BE/BV/BX-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5815 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5816 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5817 | .model_id = INTEL_28F004T, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5818 | .total_size = 512, |
| 5819 | .page_size = 128 * 1024, /* maximal block size */ |
| 5820 | .tested = TEST_UNTESTED, |
| 5821 | .probe = probe_82802ab, |
| 5822 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5823 | .block_erasers = |
| 5824 | { |
| 5825 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5826 | .eraseblocks = { |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5827 | {128 * 1024, 3}, |
| 5828 | {96 * 1024, 1}, |
| 5829 | {8 * 1024, 2}, |
| 5830 | {16 * 1024, 1}, |
| 5831 | }, |
| 5832 | .block_erase = erase_block_82802ab, |
| 5833 | }, |
| 5834 | }, |
| 5835 | .write = write_82802ab, |
| 5836 | .read = read_memmapped, |
| 5837 | }, |
| 5838 | |
| 5839 | { |
| 5840 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5841 | .name = "28F400BV/BX/CE/CV-B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5842 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5843 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5844 | .model_id = INTEL_28F400B, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5845 | .total_size = 512, |
| 5846 | .page_size = 128 * 1024, /* maximal block size */ |
| 5847 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 5848 | .tested = TEST_UNTESTED, |
| 5849 | .probe = probe_82802ab, |
| 5850 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5851 | .block_erasers = |
| 5852 | { |
| 5853 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5854 | .eraseblocks = { |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5855 | {16 * 1024, 1}, |
| 5856 | {8 * 1024, 2}, |
| 5857 | {96 * 1024, 1}, |
| 5858 | {128 * 1024, 3}, |
| 5859 | }, |
| 5860 | .block_erase = erase_block_82802ab, |
| 5861 | }, |
| 5862 | }, |
| 5863 | .write = write_82802ab, |
| 5864 | .read = read_memmapped, |
| 5865 | }, |
| 5866 | |
| 5867 | { |
| 5868 | .vendor = "Intel", |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5869 | .name = "28F400BV/BX/CE/CV-T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5870 | .bustype = BUS_PARALLEL, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5871 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5872 | .model_id = INTEL_28F400T, |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5873 | .total_size = 512, |
| 5874 | .page_size = 128 * 1024, /* maximal block size */ |
| 5875 | .feature_bits = FEATURE_ADDR_SHIFTED, |
| 5876 | .tested = TEST_UNTESTED, |
| 5877 | .probe = probe_82802ab, |
| 5878 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 5879 | .block_erasers = |
| 5880 | { |
| 5881 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 5882 | .eraseblocks = { |
Michael Karcher | ad0010a | 2010-04-03 10:27:08 +0000 | [diff] [blame] | 5883 | {128 * 1024, 3}, |
| 5884 | {96 * 1024, 1}, |
| 5885 | {8 * 1024, 2}, |
| 5886 | {16 * 1024, 1}, |
| 5887 | }, |
| 5888 | .block_erase = erase_block_82802ab, |
| 5889 | }, |
| 5890 | }, |
| 5891 | .write = write_82802ab, |
| 5892 | .read = read_memmapped, |
| 5893 | }, |
| 5894 | |
| 5895 | { |
| 5896 | .vendor = "Intel", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5897 | .name = "82802AB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5898 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5899 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5900 | .model_id = INTEL_82802AB, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5901 | .total_size = 512, |
| 5902 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5903 | .feature_bits = FEATURE_REGISTERMAP, |
Stefan Tauner | d06d941 | 2011-06-12 19:47:55 +0000 | [diff] [blame] | 5904 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5905 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5906 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5907 | .block_erasers = |
| 5908 | { |
| 5909 | { |
| 5910 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5911 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5912 | }, |
| 5913 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5914 | .unlock = unlock_82802ab, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5915 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5916 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5917 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5918 | }, |
| 5919 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5920 | { |
| 5921 | .vendor = "Intel", |
| 5922 | .name = "82802AC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5923 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5924 | .manufacture_id = INTEL_ID, |
Mattias Mattsson | cbee4a7 | 2010-10-05 20:28:36 +0000 | [diff] [blame] | 5925 | .model_id = INTEL_82802AC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5926 | .total_size = 1024, |
| 5927 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 5928 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5929 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5930 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5931 | .probe_timing = TIMING_IGNORED, /* routine does not use probe_timing (82802ab.c) */ |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5932 | .block_erasers = |
| 5933 | { |
| 5934 | { |
| 5935 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5936 | .block_erase = erase_block_82802ab, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 5937 | }, |
| 5938 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 5939 | .unlock = unlock_82802ab, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5940 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 5941 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 5942 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5943 | }, |
| 5944 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5945 | { |
| 5946 | .vendor = "Macronix", |
Michael Coppola | 4e7f36e | 2014-05-03 23:01:18 +0000 | [diff] [blame] | 5947 | .name = "MX23L3254", |
| 5948 | .bustype = BUS_SPI, |
| 5949 | .manufacture_id = MACRONIX_ID, |
| 5950 | .model_id = MACRONIX_MX23L3254, |
| 5951 | .total_size = 4096, |
| 5952 | .page_size = 256, |
Stefan Tauner | 6455dff | 2014-05-26 00:36:24 +0000 | [diff] [blame] | 5953 | .tested = {.probe = OK, .read = OK, .erase = NA, .write = NA}, |
Michael Coppola | 4e7f36e | 2014-05-03 23:01:18 +0000 | [diff] [blame] | 5954 | .probe = probe_spi_rdid, |
| 5955 | .probe_timing = TIMING_ZERO, |
| 5956 | .write = NULL, /* MX23L3254 is a mask ROM, so it is read-only */ |
| 5957 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 5958 | .voltage = {3000, 3600}, |
| 5959 | }, |
| 5960 | |
| 5961 | { |
| 5962 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5963 | .name = "MX25L512(E)/MX25V512(C)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 5964 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 5965 | .manufacture_id = MACRONIX_ID, |
| 5966 | .model_id = MACRONIX_MX25L512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5967 | .total_size = 64, |
| 5968 | .page_size = 256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5969 | /* MX25L512E supports SFDP */ |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 5970 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 5971 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 5972 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 5973 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5974 | .block_erasers = |
| 5975 | { |
| 5976 | { |
| 5977 | .eraseblocks = { {4 * 1024, 16} }, |
| 5978 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5979 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5980 | .eraseblocks = { {64 * 1024, 1} }, |
| 5981 | .block_erase = spi_block_erase_52, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5982 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5983 | .eraseblocks = { {64 * 1024, 1} }, |
| 5984 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5985 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5986 | .eraseblocks = { {64 * 1024, 1} }, |
| 5987 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 5988 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 5989 | .eraseblocks = { {64 * 1024, 1} }, |
| 5990 | .block_erase = spi_block_erase_c7, |
| 5991 | }, |
| 5992 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 5993 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 5994 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 5995 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 5996 | .read = spi_chip_read, /* Fast read (0x0B) supported, MX25L512E supports dual I/O */ |
| 5997 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V512(C) */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 5998 | }, |
| 5999 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6000 | { |
| 6001 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6002 | .name = "MX25L1005(C)/MX25L1006E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6003 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6004 | .manufacture_id = MACRONIX_ID, |
| 6005 | .model_id = MACRONIX_MX25L1005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6006 | .total_size = 128, |
| 6007 | .page_size = 256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6008 | /* MX25L1006E supports SFDP */ |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 6009 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 6010 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6011 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6012 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 6013 | .block_erasers = |
| 6014 | { |
| 6015 | { |
| 6016 | .eraseblocks = { {4 * 1024, 32} }, |
| 6017 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6018 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 6019 | .eraseblocks = { {64 * 1024, 2} }, |
| 6020 | .block_erase = spi_block_erase_d8, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6021 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 6022 | .eraseblocks = { {128 * 1024, 1} }, |
| 6023 | .block_erase = spi_block_erase_60, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6024 | }, { |
Carl-Daniel Hailfinger | f38431a | 2009-09-05 02:30:58 +0000 | [diff] [blame] | 6025 | .eraseblocks = { {128 * 1024, 1} }, |
| 6026 | .block_erase = spi_block_erase_c7, |
| 6027 | }, |
| 6028 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6029 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6030 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6031 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6032 | .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] | 6033 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6034 | }, |
| 6035 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6036 | { |
| 6037 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6038 | .name = "MX25L2005(C)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6039 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6040 | .manufacture_id = MACRONIX_ID, |
| 6041 | .model_id = MACRONIX_MX25L2005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6042 | .total_size = 256, |
| 6043 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 6044 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 6045 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6046 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6047 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6048 | .block_erasers = |
| 6049 | { |
| 6050 | { |
| 6051 | .eraseblocks = { {4 * 1024, 64} }, |
| 6052 | .block_erase = spi_block_erase_20, |
| 6053 | }, { |
| 6054 | .eraseblocks = { {64 * 1024, 4} }, |
| 6055 | .block_erase = spi_block_erase_52, |
| 6056 | }, { |
| 6057 | .eraseblocks = { {64 * 1024, 4} }, |
| 6058 | .block_erase = spi_block_erase_d8, |
| 6059 | }, { |
| 6060 | .eraseblocks = { {256 * 1024, 1} }, |
| 6061 | .block_erase = spi_block_erase_60, |
| 6062 | }, { |
| 6063 | .eraseblocks = { {256 * 1024, 1} }, |
| 6064 | .block_erase = spi_block_erase_c7, |
| 6065 | }, |
| 6066 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6067 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6068 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6069 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6070 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6071 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6072 | }, |
| 6073 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6074 | { |
| 6075 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6076 | .name = "MX25L4005(A/C)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6077 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6078 | .manufacture_id = MACRONIX_ID, |
| 6079 | .model_id = MACRONIX_MX25L4005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6080 | .total_size = 512, |
| 6081 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 6082 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 6083 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6084 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6085 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6086 | .block_erasers = |
| 6087 | { |
| 6088 | { |
| 6089 | .eraseblocks = { {4 * 1024, 128} }, |
| 6090 | .block_erase = spi_block_erase_20, |
| 6091 | }, { |
| 6092 | .eraseblocks = { {64 * 1024, 8} }, |
| 6093 | .block_erase = spi_block_erase_52, |
| 6094 | }, { |
| 6095 | .eraseblocks = { {64 * 1024, 8} }, |
| 6096 | .block_erase = spi_block_erase_d8, |
| 6097 | }, { |
| 6098 | .eraseblocks = { {512 * 1024, 1} }, |
| 6099 | .block_erase = spi_block_erase_60, |
| 6100 | }, { |
| 6101 | .eraseblocks = { {512 * 1024, 1} }, |
| 6102 | .block_erase = spi_block_erase_c7, |
| 6103 | }, |
| 6104 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6105 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6106 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6107 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6108 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6109 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6110 | }, |
| 6111 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6112 | { |
| 6113 | .vendor = "Macronix", |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6114 | .name = "MX25L8005/MX25V8005", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6115 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6116 | .manufacture_id = MACRONIX_ID, |
| 6117 | .model_id = MACRONIX_MX25L8005, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6118 | .total_size = 1024, |
| 6119 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 6120 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 6121 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6122 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6123 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6124 | .block_erasers = |
| 6125 | { |
| 6126 | { |
| 6127 | .eraseblocks = { {4 * 1024, 256} }, |
| 6128 | .block_erase = spi_block_erase_20, |
| 6129 | }, { |
| 6130 | .eraseblocks = { {64 * 1024, 16} }, |
| 6131 | .block_erase = spi_block_erase_52, |
| 6132 | }, { |
| 6133 | .eraseblocks = { {64 * 1024, 16} }, |
| 6134 | .block_erase = spi_block_erase_d8, |
| 6135 | }, { |
| 6136 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6137 | .block_erase = spi_block_erase_60, |
| 6138 | }, { |
| 6139 | .eraseblocks = { {1024 * 1024, 1} }, |
| 6140 | .block_erase = spi_block_erase_c7, |
| 6141 | }, |
| 6142 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6143 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6144 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6145 | .write = spi_chip_write_256, |
Stefan Tauner | f656e80 | 2013-02-02 15:35:44 +0000 | [diff] [blame] | 6146 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 6147 | .voltage = {2700, 3600}, /* 2.35-3.6V for MX25V8005 */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6148 | }, |
| 6149 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6150 | { |
| 6151 | .vendor = "Macronix", |
| 6152 | .name = "MX25L1605", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6153 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6154 | .manufacture_id = MACRONIX_ID, |
| 6155 | .model_id = MACRONIX_MX25L1605, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6156 | .total_size = 2048, |
| 6157 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 6158 | .feature_bits = FEATURE_WRSR_WREN, |
Sven Schnelle | 4bd8a40 | 2011-03-07 10:59:06 +0000 | [diff] [blame] | 6159 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6160 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6161 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6162 | .block_erasers = |
| 6163 | { |
| 6164 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6165 | .eraseblocks = { {64 * 1024, 32} }, |
| 6166 | .block_erase = spi_block_erase_20, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6167 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6168 | .eraseblocks = { {64 * 1024, 32} }, |
| 6169 | .block_erase = spi_block_erase_d8, |
| 6170 | }, { |
| 6171 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6172 | .block_erase = spi_block_erase_60, |
| 6173 | }, { |
| 6174 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6175 | .block_erase = spi_block_erase_c7, |
| 6176 | }, |
| 6177 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6178 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6179 | .unlock = spi_disable_blockprotect, |
| 6180 | .write = spi_chip_write_256, |
| 6181 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 6182 | .voltage = {2700, 3600}, |
| 6183 | }, |
| 6184 | |
| 6185 | { |
| 6186 | .vendor = "Macronix", |
| 6187 | .name = "MX25L1605A/MX25L1606E", |
| 6188 | .bustype = BUS_SPI, |
| 6189 | .manufacture_id = MACRONIX_ID, |
| 6190 | .model_id = MACRONIX_MX25L1605, |
| 6191 | .total_size = 2048, |
| 6192 | .page_size = 256, |
| 6193 | /* OTP: 64B total; enter 0xB1, exit 0xC1 (MX25L1606E only) */ |
| 6194 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6195 | .tested = TEST_OK_PREW, |
| 6196 | .probe = probe_spi_rdid, |
| 6197 | .probe_timing = TIMING_ZERO, |
| 6198 | .block_erasers = |
| 6199 | { |
| 6200 | { |
| 6201 | .eraseblocks = { {4 * 1024, 512} }, |
| 6202 | .block_erase = spi_block_erase_20, |
| 6203 | }, { |
| 6204 | .eraseblocks = { {64 * 1024, 32} }, |
Carl-Daniel Hailfinger | 4010712 | 2009-10-01 13:15:01 +0000 | [diff] [blame] | 6205 | .block_erase = spi_block_erase_52, |
| 6206 | }, { |
| 6207 | .eraseblocks = { {64 * 1024, 32} }, |
| 6208 | .block_erase = spi_block_erase_d8, |
| 6209 | }, { |
| 6210 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6211 | .block_erase = spi_block_erase_60, |
| 6212 | }, { |
| 6213 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6214 | .block_erase = spi_block_erase_c7, |
| 6215 | }, |
| 6216 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6217 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* MX25L1605A bp2 only */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6218 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6219 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6220 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 6221 | .voltage = {2700, 3600}, |
| 6222 | }, |
| 6223 | |
| 6224 | { |
| 6225 | .vendor = "Macronix", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 6226 | .name = "MX25L1605D/MX25L1608D/MX25L1673E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6227 | .bustype = BUS_SPI, |
| 6228 | .manufacture_id = MACRONIX_ID, |
| 6229 | .model_id = MACRONIX_MX25L1605, |
| 6230 | .total_size = 2048, |
| 6231 | .page_size = 256, |
| 6232 | .feature_bits = FEATURE_WRSR_WREN, |
| 6233 | .tested = TEST_OK_PREW, |
| 6234 | .probe = probe_spi_rdid, |
| 6235 | .probe_timing = TIMING_ZERO, |
| 6236 | .block_erasers = |
| 6237 | { |
| 6238 | { |
| 6239 | .eraseblocks = { {4 * 1024, 512} }, |
| 6240 | .block_erase = spi_block_erase_20, |
| 6241 | }, { |
| 6242 | .eraseblocks = { {64 * 1024, 32} }, |
| 6243 | .block_erase = spi_block_erase_d8, |
| 6244 | }, { |
| 6245 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6246 | .block_erase = spi_block_erase_60, |
| 6247 | }, { |
| 6248 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6249 | .block_erase = spi_block_erase_c7, |
| 6250 | }, |
| 6251 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6252 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: Continously Program (CP) mode */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6253 | .unlock = spi_disable_blockprotect, |
| 6254 | .write = spi_chip_write_256, |
| 6255 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6256 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6257 | }, |
| 6258 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6259 | { |
| 6260 | .vendor = "Macronix", |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 6261 | .name = "MX25L1635D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6262 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6263 | .manufacture_id = MACRONIX_ID, |
| 6264 | .model_id = MACRONIX_MX25L1635D, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 6265 | .total_size = 2048, |
| 6266 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6267 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 6268 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 6269 | .tested = TEST_UNTESTED, |
| 6270 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6271 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6272 | .block_erasers = |
| 6273 | { |
| 6274 | { |
| 6275 | .eraseblocks = { {4 * 1024, 512} }, |
| 6276 | .block_erase = spi_block_erase_20, |
| 6277 | }, { |
| 6278 | .eraseblocks = { {64 * 1024, 32} }, |
| 6279 | .block_erase = spi_block_erase_d8, |
| 6280 | }, { |
| 6281 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6282 | .block_erase = spi_block_erase_60, |
| 6283 | }, { |
| 6284 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6285 | .block_erase = spi_block_erase_c7, |
| 6286 | } |
| 6287 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6288 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6289 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6290 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6291 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6292 | .voltage = {2700, 3600}, |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 6293 | }, |
Stephan Guilloux | fd31550 | 2009-04-20 22:54:13 +0000 | [diff] [blame] | 6294 | |
Stephan Guilloux | f5c7090 | 2009-04-19 23:04:00 +0000 | [diff] [blame] | 6295 | { |
| 6296 | .vendor = "Macronix", |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 6297 | .name = "MX25L1635E", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6298 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6299 | .manufacture_id = MACRONIX_ID, |
| 6300 | .model_id = MACRONIX_MX25L1635E, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 6301 | .total_size = 2048, |
| 6302 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6303 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 6304 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 6305 | .tested = TEST_UNTESTED, |
| 6306 | .probe = probe_spi_rdid, |
| 6307 | .probe_timing = TIMING_ZERO, |
| 6308 | .block_erasers = |
| 6309 | { |
| 6310 | { |
| 6311 | .eraseblocks = { {4 * 1024, 512} }, |
| 6312 | .block_erase = spi_block_erase_20, |
| 6313 | }, { |
| 6314 | .eraseblocks = { {64 * 1024, 32} }, |
| 6315 | .block_erase = spi_block_erase_d8, |
| 6316 | }, { |
| 6317 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6318 | .block_erase = spi_block_erase_60, |
| 6319 | }, { |
| 6320 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6321 | .block_erase = spi_block_erase_c7, |
| 6322 | } |
| 6323 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6324 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 6325 | .unlock = spi_disable_blockprotect, |
| 6326 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6327 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6328 | .voltage = {2700, 3600}, |
Stephan Guilloux | 3611b80 | 2010-09-13 19:59:28 +0000 | [diff] [blame] | 6329 | }, |
| 6330 | |
| 6331 | { |
| 6332 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6333 | .name = "MX25L3205(A)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6334 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6335 | .manufacture_id = MACRONIX_ID, |
| 6336 | .model_id = MACRONIX_MX25L3205, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6337 | .total_size = 4096, |
| 6338 | .page_size = 256, |
David Hendricks | 67db2eb | 2010-09-03 03:35:48 +0000 | [diff] [blame] | 6339 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 6340 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6341 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6342 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6343 | .block_erasers = |
| 6344 | { |
| 6345 | { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6346 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6347 | .block_erase = spi_block_erase_20, |
| 6348 | }, { |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6349 | .eraseblocks = { {64 * 1024, 64} }, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6350 | .block_erase = spi_block_erase_d8, |
| 6351 | }, { |
| 6352 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6353 | .block_erase = spi_block_erase_60, |
| 6354 | }, { |
| 6355 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6356 | .block_erase = spi_block_erase_c7, |
| 6357 | }, |
| 6358 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6359 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit6: error flag */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6360 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6361 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6362 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 6363 | .voltage = {2700, 3600}, |
| 6364 | }, |
| 6365 | |
| 6366 | { |
| 6367 | .vendor = "Macronix", |
| 6368 | .name = "MX25L3205D/MX25L3208D", |
| 6369 | .bustype = BUS_SPI, |
| 6370 | .manufacture_id = MACRONIX_ID, |
| 6371 | .model_id = MACRONIX_MX25L3205, |
| 6372 | .total_size = 4096, |
| 6373 | .page_size = 256, |
| 6374 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 6375 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6376 | .tested = TEST_OK_PREW, |
| 6377 | .probe = probe_spi_rdid, |
| 6378 | .probe_timing = TIMING_ZERO, |
| 6379 | .block_erasers = |
| 6380 | { |
| 6381 | { |
| 6382 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6383 | .block_erase = spi_block_erase_20, |
| 6384 | }, { |
| 6385 | .eraseblocks = { {64 * 1024, 64} }, |
| 6386 | .block_erase = spi_block_erase_d8, |
| 6387 | }, { |
| 6388 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6389 | .block_erase = spi_block_erase_60, |
| 6390 | }, { |
| 6391 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6392 | .block_erase = spi_block_erase_c7, |
| 6393 | }, |
| 6394 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6395 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6: CP mode */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6396 | .unlock = spi_disable_blockprotect, |
| 6397 | .write = spi_chip_write_256, |
| 6398 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
| 6399 | .voltage = {2700, 3600}, |
| 6400 | }, |
| 6401 | |
| 6402 | { |
| 6403 | .vendor = "Macronix", |
| 6404 | .name = "MX25L3206E", |
| 6405 | .bustype = BUS_SPI, |
| 6406 | .manufacture_id = MACRONIX_ID, |
| 6407 | .model_id = MACRONIX_MX25L3205, |
| 6408 | .total_size = 4096, |
| 6409 | .page_size = 256, |
| 6410 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 6411 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6412 | .tested = TEST_OK_PREW, |
| 6413 | .probe = probe_spi_rdid, |
| 6414 | .probe_timing = TIMING_ZERO, |
| 6415 | .block_erasers = |
| 6416 | { |
| 6417 | { |
| 6418 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6419 | .block_erase = spi_block_erase_20, |
| 6420 | }, { |
| 6421 | .eraseblocks = { {64 * 1024, 64} }, |
| 6422 | .block_erase = spi_block_erase_d8, |
| 6423 | }, { |
| 6424 | .eraseblocks = { {64 * 1024, 64} }, |
| 6425 | .block_erase = spi_block_erase_52, |
| 6426 | }, { |
| 6427 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6428 | .block_erase = spi_block_erase_60, |
| 6429 | }, { |
| 6430 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6431 | .block_erase = spi_block_erase_c7, |
| 6432 | }, |
| 6433 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6434 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6435 | .unlock = spi_disable_blockprotect, |
| 6436 | .write = spi_chip_write_256, |
| 6437 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6438 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6439 | }, |
| 6440 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6441 | { |
| 6442 | .vendor = "Macronix", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 6443 | .name = "MX25L3273E", |
| 6444 | .bustype = BUS_SPI, |
| 6445 | .manufacture_id = MACRONIX_ID, |
| 6446 | .model_id = MACRONIX_MX25L3205, |
| 6447 | .total_size = 4096, |
| 6448 | .page_size = 256, |
| 6449 | /* OTP: 64B total; enter 0xB1, exit 0xC1 */ |
| 6450 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6451 | .tested = TEST_UNTESTED, |
| 6452 | .probe = probe_spi_rdid, |
| 6453 | .probe_timing = TIMING_ZERO, |
| 6454 | .block_erasers = |
| 6455 | { |
| 6456 | { |
| 6457 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6458 | .block_erase = spi_block_erase_20, |
| 6459 | }, { |
| 6460 | .eraseblocks = { {32 * 1024, 128} }, |
| 6461 | .block_erase = spi_block_erase_52, |
| 6462 | }, { |
| 6463 | .eraseblocks = { {64 * 1024, 64} }, |
| 6464 | .block_erase = spi_block_erase_d8, |
| 6465 | }, { |
| 6466 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6467 | .block_erase = spi_block_erase_60, |
| 6468 | }, { |
| 6469 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6470 | .block_erase = spi_block_erase_c7, |
| 6471 | }, |
| 6472 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6473 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 6474 | .unlock = spi_disable_blockprotect, |
| 6475 | .write = spi_chip_write_256, |
| 6476 | .read = spi_chip_read, /* Fast read (0x0B) and dual I/O supported */ |
| 6477 | .voltage = {2700, 3600}, |
| 6478 | }, |
| 6479 | |
| 6480 | { |
| 6481 | .vendor = "Macronix", |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 6482 | .name = "MX25L3235D", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6483 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6484 | .manufacture_id = MACRONIX_ID, |
| 6485 | .model_id = MACRONIX_MX25L3235D, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 6486 | .total_size = 4096, |
| 6487 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6488 | /* OTP: 256B total; enter 0xB1, exit 0xC1 */ |
| 6489 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 6490 | .tested = TEST_UNTESTED, |
| 6491 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6492 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6493 | .block_erasers = |
| 6494 | { |
| 6495 | { |
| 6496 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6497 | .block_erase = spi_block_erase_20, |
| 6498 | }, { |
| 6499 | .eraseblocks = { {64 * 1024, 64} }, |
| 6500 | .block_erase = spi_block_erase_d8, |
| 6501 | }, { |
| 6502 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6503 | .block_erase = spi_block_erase_60, |
| 6504 | }, { |
| 6505 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6506 | .block_erase = spi_block_erase_c7, |
| 6507 | } |
| 6508 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6509 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6510 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6511 | .write = spi_chip_write_256, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 6512 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6513 | .voltage = {2700, 3600}, |
Stephan Guilloux | 70ea9a3 | 2009-04-23 22:51:56 +0000 | [diff] [blame] | 6514 | }, |
| 6515 | |
| 6516 | { |
| 6517 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6518 | .name = "MX25L6405(D)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6519 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6520 | .manufacture_id = MACRONIX_ID, |
| 6521 | .model_id = MACRONIX_MX25L6405, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6522 | .total_size = 8192, |
| 6523 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6524 | /* MX25L6405D has 64B of OTP; enter 0xB1, exit 0xC1 */ |
| 6525 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 6526 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6527 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6528 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6529 | .block_erasers = |
| 6530 | { |
| 6531 | { |
| 6532 | .eraseblocks = { {64 * 1024, 128} }, |
| 6533 | .block_erase = spi_block_erase_20, |
| 6534 | }, { |
| 6535 | .eraseblocks = { {64 * 1024, 128} }, |
| 6536 | .block_erase = spi_block_erase_d8, |
| 6537 | }, { |
| 6538 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6539 | .block_erase = spi_block_erase_60, |
| 6540 | }, { |
| 6541 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6542 | .block_erase = spi_block_erase_c7, |
| 6543 | } |
| 6544 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6545 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 has different meanings */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6546 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6547 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6548 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6549 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6550 | }, |
| 6551 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6552 | { |
| 6553 | .vendor = "Macronix", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6554 | .name = "MX25L6406E/MX25L6436E", |
| 6555 | .bustype = BUS_SPI, |
| 6556 | .manufacture_id = MACRONIX_ID, |
| 6557 | .model_id = MACRONIX_MX25L6405, |
| 6558 | .total_size = 8192, |
| 6559 | .page_size = 256, |
| 6560 | /* OTP: 06E 64B/36E 512B total; enter 0xB1, exit 0xC1 */ |
| 6561 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6562 | .tested = TEST_OK_PREW, |
| 6563 | .probe = probe_spi_rdid, |
| 6564 | .probe_timing = TIMING_ZERO, |
| 6565 | .block_erasers = |
| 6566 | { |
| 6567 | { |
| 6568 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6569 | .block_erase = spi_block_erase_20, |
| 6570 | }, { |
| 6571 | .eraseblocks = { {64 * 1024, 128} }, |
| 6572 | .block_erase = spi_block_erase_d8, |
| 6573 | }, { |
| 6574 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6575 | .block_erase = spi_block_erase_60, |
| 6576 | }, { |
| 6577 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6578 | .block_erase = spi_block_erase_c7, |
| 6579 | } |
| 6580 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6581 | .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] | 6582 | .unlock = spi_disable_blockprotect, |
| 6583 | .write = spi_chip_write_256, |
| 6584 | .read = spi_chip_read, |
| 6585 | .voltage = {2700, 3600}, |
| 6586 | }, |
| 6587 | |
| 6588 | { |
| 6589 | .vendor = "Macronix", |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 6590 | .name = "MX25L6445E/MX25L6473E", |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6591 | .bustype = BUS_SPI, |
| 6592 | .manufacture_id = MACRONIX_ID, |
| 6593 | .model_id = MACRONIX_MX25L6405, |
| 6594 | .total_size = 8192, |
| 6595 | .page_size = 256, |
| 6596 | /* supports SFDP */ |
| 6597 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 6598 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 6599 | .tested = TEST_OK_PREW, |
| 6600 | .probe = probe_spi_rdid, |
| 6601 | .probe_timing = TIMING_ZERO, |
| 6602 | .block_erasers = |
| 6603 | { |
| 6604 | { |
| 6605 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6606 | .block_erase = spi_block_erase_20, |
| 6607 | }, { |
| 6608 | .eraseblocks = { {32 * 1024, 256} }, |
| 6609 | .block_erase = spi_block_erase_52, |
| 6610 | }, { |
| 6611 | .eraseblocks = { {64 * 1024, 128} }, |
| 6612 | .block_erase = spi_block_erase_d8, |
| 6613 | }, { |
| 6614 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6615 | .block_erase = spi_block_erase_60, |
| 6616 | }, { |
| 6617 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6618 | .block_erase = spi_block_erase_c7, |
| 6619 | } |
| 6620 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6621 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6622 | .unlock = spi_disable_blockprotect, |
| 6623 | .write = spi_chip_write_256, |
| 6624 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6625 | .voltage = {2700, 3600}, |
| 6626 | }, |
| 6627 | |
| 6628 | { |
| 6629 | .vendor = "Macronix", |
| 6630 | .name = "MX25L12805(D)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6631 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6632 | .manufacture_id = MACRONIX_ID, |
| 6633 | .model_id = MACRONIX_MX25L12805, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 6634 | .total_size = 16384, |
| 6635 | .page_size = 256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6636 | /* MX25L12805D has 64B of OTP; enter 0xB1, exit 0xC1 */ |
| 6637 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6638 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 6639 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 6640 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6641 | .block_erasers = |
| 6642 | { |
| 6643 | { |
| 6644 | .eraseblocks = { {4 * 1024, 4096} }, |
| 6645 | .block_erase = spi_block_erase_20, |
| 6646 | }, { |
| 6647 | .eraseblocks = { {64 * 1024, 256} }, |
| 6648 | .block_erase = spi_block_erase_d8, |
| 6649 | }, { |
| 6650 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6651 | .block_erase = spi_block_erase_60, |
| 6652 | }, { |
| 6653 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 6654 | .block_erase = spi_block_erase_c7, |
| 6655 | } |
| 6656 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6657 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 6658 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 6659 | .write = spi_chip_write_256, |
Stefan Tauner | 226037d | 2013-03-16 01:22:12 +0000 | [diff] [blame] | 6660 | .read = spi_chip_read, /* MX25L12805D: Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6661 | .voltage = {2700, 3600}, |
Stephan Guilloux | 2f132fe | 2009-04-21 01:47:16 +0000 | [diff] [blame] | 6662 | }, |
| 6663 | |
| 6664 | { |
| 6665 | .vendor = "Macronix", |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 6666 | .name = "MX25U1635E", |
| 6667 | .bustype = BUS_SPI, |
| 6668 | .manufacture_id = MACRONIX_ID, |
| 6669 | .model_id = MACRONIX_MX25U1635E, |
| 6670 | .total_size = 2048, |
| 6671 | .page_size = 256, |
| 6672 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 6673 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 6674 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6675 | .tested = TEST_UNTESTED, |
| 6676 | .probe = probe_spi_rdid, |
| 6677 | .probe_timing = TIMING_ZERO, |
| 6678 | .block_erasers = |
| 6679 | { |
| 6680 | { |
| 6681 | .eraseblocks = { {4 * 1024, 512} }, |
| 6682 | .block_erase = spi_block_erase_20, |
| 6683 | }, { |
| 6684 | .eraseblocks = { {32 * 1024, 64} }, |
| 6685 | .block_erase = spi_block_erase_52, |
| 6686 | }, { |
| 6687 | .eraseblocks = { {64 * 1024, 32} }, |
| 6688 | .block_erase = spi_block_erase_d8, |
| 6689 | }, { |
| 6690 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6691 | .block_erase = spi_block_erase_60, |
| 6692 | }, { |
| 6693 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 6694 | .block_erase = spi_block_erase_c7, |
| 6695 | } |
| 6696 | }, |
| 6697 | /* TODO: security register */ |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6698 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 6699 | .unlock = spi_disable_blockprotect, |
| 6700 | .write = spi_chip_write_256, |
| 6701 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6702 | .voltage = {1650, 2000}, |
| 6703 | }, |
| 6704 | |
| 6705 | { |
| 6706 | .vendor = "Macronix", |
| 6707 | .name = "MX25U3235E/F", |
| 6708 | .bustype = BUS_SPI, |
| 6709 | .manufacture_id = MACRONIX_ID, |
| 6710 | .model_id = MACRONIX_MX25U3235E, |
| 6711 | .total_size = 4096, |
| 6712 | .page_size = 256, |
| 6713 | /* F model supports SFDP */ |
| 6714 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 6715 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 6716 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6717 | .tested = TEST_OK_PREW, |
| 6718 | .probe = probe_spi_rdid, |
| 6719 | .probe_timing = TIMING_ZERO, |
| 6720 | .block_erasers = |
| 6721 | { |
| 6722 | { |
| 6723 | .eraseblocks = { {4 * 1024, 1024} }, |
| 6724 | .block_erase = spi_block_erase_20, |
| 6725 | }, { |
| 6726 | .eraseblocks = { {32 * 1024, 128} }, |
| 6727 | .block_erase = spi_block_erase_52, |
| 6728 | }, { |
| 6729 | .eraseblocks = { {64 * 1024, 64} }, |
| 6730 | .block_erase = spi_block_erase_d8, |
| 6731 | }, { |
| 6732 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6733 | .block_erase = spi_block_erase_60, |
| 6734 | }, { |
| 6735 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 6736 | .block_erase = spi_block_erase_c7, |
| 6737 | } |
| 6738 | }, |
| 6739 | /* TODO: security register */ |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6740 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 6741 | .unlock = spi_disable_blockprotect, |
| 6742 | .write = spi_chip_write_256, |
| 6743 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6744 | .voltage = {1650, 2000}, |
| 6745 | }, |
| 6746 | |
| 6747 | { |
| 6748 | .vendor = "Macronix", |
| 6749 | .name = "MX25U6435E/F", |
| 6750 | .bustype = BUS_SPI, |
| 6751 | .manufacture_id = MACRONIX_ID, |
| 6752 | .model_id = MACRONIX_MX25U6435E, |
| 6753 | .total_size = 8192, |
| 6754 | .page_size = 256, |
| 6755 | /* F model supports SFDP */ |
| 6756 | /* OTP: 512B total; enter 0xB1, exit 0xC1 */ |
| 6757 | /* QPI enable 0x35, disable 0xF5 (0xFF et al. work too) */ |
| 6758 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 6759 | .tested = TEST_UNTESTED, |
| 6760 | .probe = probe_spi_rdid, |
| 6761 | .probe_timing = TIMING_ZERO, |
| 6762 | .block_erasers = |
| 6763 | { |
| 6764 | { |
| 6765 | .eraseblocks = { {4 * 1024, 2048} }, |
| 6766 | .block_erase = spi_block_erase_20, |
| 6767 | }, { |
| 6768 | .eraseblocks = { {32 * 1024, 256} }, |
| 6769 | .block_erase = spi_block_erase_52, |
| 6770 | }, { |
| 6771 | .eraseblocks = { {64 * 1024, 128} }, |
| 6772 | .block_erase = spi_block_erase_d8, |
| 6773 | }, { |
| 6774 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6775 | .block_erase = spi_block_erase_60, |
| 6776 | }, { |
| 6777 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 6778 | .block_erase = spi_block_erase_c7, |
| 6779 | } |
| 6780 | }, |
| 6781 | /* TODO: security register */ |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6782 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* bit6 is quad enable */ |
Vincent Palatin | f800f55 | 2013-03-15 02:03:16 +0000 | [diff] [blame] | 6783 | .unlock = spi_disable_blockprotect, |
| 6784 | .write = spi_chip_write_256, |
| 6785 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 6786 | .voltage = {1650, 2000}, |
| 6787 | }, |
| 6788 | |
| 6789 | { |
| 6790 | .vendor = "Macronix", |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6791 | .name = "MX29F001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6792 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6793 | .manufacture_id = MACRONIX_ID, |
| 6794 | .model_id = MACRONIX_MX29F001B, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6795 | .total_size = 128, |
| 6796 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6797 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 6798 | .tested = TEST_UNTESTED, |
| 6799 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 6800 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6801 | .block_erasers = |
| 6802 | { |
| 6803 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6804 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6805 | {8 * 1024, 1}, |
| 6806 | {4 * 1024, 2}, |
| 6807 | {8 * 1024, 2}, |
| 6808 | {32 * 1024, 1}, |
| 6809 | {64 * 1024, 1}, |
| 6810 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6811 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6812 | }, { |
| 6813 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6814 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6815 | } |
| 6816 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 6817 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6818 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6819 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6820 | }, |
| 6821 | |
| 6822 | { |
| 6823 | .vendor = "Macronix", |
| 6824 | .name = "MX29F001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6825 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6826 | .manufacture_id = MACRONIX_ID, |
| 6827 | .model_id = MACRONIX_MX29F001T, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6828 | .total_size = 128, |
| 6829 | .page_size = 32 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6830 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stefan Tauner | 74c6ec6 | 2011-05-18 01:31:46 +0000 | [diff] [blame] | 6831 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6832 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 6833 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6834 | .block_erasers = |
| 6835 | { |
| 6836 | { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 6837 | .eraseblocks = { |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6838 | {64 * 1024, 1}, |
| 6839 | {32 * 1024, 1}, |
| 6840 | {8 * 1024, 2}, |
| 6841 | {4 * 1024, 2}, |
| 6842 | {8 * 1024, 1}, |
| 6843 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6844 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6845 | }, { |
| 6846 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6847 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6848 | } |
| 6849 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 6850 | .write = write_jedec_1, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6851 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6852 | .voltage = {4500, 5500}, |
Mark Panajotovic | 502a913 | 2009-08-24 01:42:24 +0000 | [diff] [blame] | 6853 | }, |
| 6854 | |
| 6855 | { |
| 6856 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 6857 | .name = "MX29F002(N)B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6858 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6859 | .manufacture_id = MACRONIX_ID, |
| 6860 | .model_id = MACRONIX_MX29F002B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6861 | .total_size = 256, |
| 6862 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6863 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6864 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6865 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 6866 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6867 | .block_erasers = |
| 6868 | { |
| 6869 | { |
| 6870 | .eraseblocks = { |
| 6871 | {16 * 1024, 1}, |
| 6872 | {8 * 1024, 2}, |
| 6873 | {32 * 1024, 1}, |
| 6874 | {64 * 1024, 3}, |
| 6875 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6876 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6877 | }, { |
| 6878 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6879 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6880 | }, |
| 6881 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 6882 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6883 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6884 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6885 | }, |
| 6886 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6887 | { |
| 6888 | .vendor = "Macronix", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 6889 | .name = "MX29F002(N)T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6890 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6891 | .manufacture_id = MACRONIX_ID, |
| 6892 | .model_id = MACRONIX_MX29F002T, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6893 | .total_size = 256, |
| 6894 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6895 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 6896 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6897 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 6898 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6899 | .block_erasers = |
| 6900 | { |
| 6901 | { |
| 6902 | .eraseblocks = { |
| 6903 | {64 * 1024, 3}, |
| 6904 | {32 * 1024, 1}, |
| 6905 | {8 * 1024, 2}, |
| 6906 | {16 * 1024, 1}, |
| 6907 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6908 | .block_erase = erase_sector_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6909 | }, { |
| 6910 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6911 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 6b11ad2 | 2009-12-23 17:05:59 +0000 | [diff] [blame] | 6912 | }, |
| 6913 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 6914 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6915 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6916 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 6917 | }, |
| 6918 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6919 | { |
| 6920 | .vendor = "Macronix", |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6921 | .name = "MX29F040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6922 | .bustype = BUS_PARALLEL, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6923 | .manufacture_id = MACRONIX_ID, |
| 6924 | .model_id = MACRONIX_MX29F040, |
| 6925 | .total_size = 512, |
| 6926 | .page_size = 64 * 1024, |
| 6927 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 6928 | .tested = TEST_UNTESTED, |
| 6929 | .probe = probe_jedec, |
| 6930 | .probe_timing = TIMING_ZERO, |
| 6931 | .block_erasers = |
| 6932 | { |
| 6933 | { |
| 6934 | .eraseblocks = { {64 * 1024, 8} }, |
| 6935 | .block_erase = erase_sector_jedec, |
| 6936 | }, { |
| 6937 | .eraseblocks = { {512 * 1024, 1} }, |
| 6938 | .block_erase = erase_chip_block_jedec, |
| 6939 | }, |
| 6940 | }, |
| 6941 | .write = write_jedec_1, |
| 6942 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 6943 | .voltage = {4500, 5500}, |
Joshua Roys | f1324e0 | 2010-09-16 00:51:51 +0000 | [diff] [blame] | 6944 | }, |
| 6945 | |
| 6946 | { |
| 6947 | .vendor = "Macronix", |
Carl-Daniel Hailfinger | 350a0c3 | 2009-07-24 13:59:27 +0000 | [diff] [blame] | 6948 | .name = "MX29LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 6949 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 6950 | .manufacture_id = MACRONIX_ID, |
| 6951 | .model_id = MACRONIX_MX29LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6952 | .total_size = 512, |
| 6953 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6954 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_SHORT_RESET, |
| 6955 | .tested = TEST_UNTESTED, |
| 6956 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 6957 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6958 | .block_erasers = |
| 6959 | { |
| 6960 | { |
| 6961 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6962 | .block_erase = erase_sector_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6963 | }, { |
| 6964 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 6965 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 5459637 | 2010-01-09 05:30:14 +0000 | [diff] [blame] | 6966 | }, |
| 6967 | }, |
Michael Karcher | 1c296ca | 2009-11-27 17:49:42 +0000 | [diff] [blame] | 6968 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 6969 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 6970 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 7de8639 | 2008-12-10 10:32:05 +0000 | [diff] [blame] | 6971 | }, |
| 6972 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 6973 | { |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 6974 | .vendor = "Micron/Numonyx/ST", |
| 6975 | .name = "M25P05-A", |
| 6976 | .bustype = BUS_SPI, |
| 6977 | .manufacture_id = ST_ID, |
| 6978 | .model_id = ST_M25P05A, |
| 6979 | .total_size = 64, |
| 6980 | .page_size = 256, |
| 6981 | .feature_bits = FEATURE_WRSR_WREN, |
| 6982 | .tested = TEST_OK_PREW, |
| 6983 | .probe = probe_spi_rdid, |
| 6984 | .probe_timing = TIMING_ZERO, |
| 6985 | .block_erasers = |
| 6986 | { |
| 6987 | { |
| 6988 | .eraseblocks = { {32 * 1024, 2} }, |
| 6989 | .block_erase = spi_block_erase_d8, |
| 6990 | }, { |
| 6991 | .eraseblocks = { {64 * 1024, 1} }, |
| 6992 | .block_erase = spi_block_erase_c7, |
| 6993 | } |
| 6994 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 6995 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 6996 | .unlock = spi_disable_blockprotect, |
| 6997 | .write = spi_chip_write_256, |
| 6998 | .read = spi_chip_read, |
| 6999 | .voltage = {2700, 3600}, |
| 7000 | }, |
| 7001 | |
| 7002 | /* The ST M25P05 is a bit of a problem. It has the same ID as the |
| 7003 | * ST M25P05-A in RES mode, but supports only 128 byte writes instead |
| 7004 | * of 256 byte writes. We rely heavily on the fact that probe_spi_res1 |
| 7005 | * only is successful if RDID does not work. |
| 7006 | */ |
| 7007 | { |
| 7008 | .vendor = "Micron/Numonyx/ST", |
| 7009 | .name = "M25P05", |
| 7010 | .bustype = BUS_SPI, |
| 7011 | .manufacture_id = 0, /* Not used. */ |
| 7012 | .model_id = ST_M25P05_RES, |
| 7013 | .total_size = 64, |
| 7014 | .page_size = 256, |
| 7015 | .feature_bits = FEATURE_WRSR_WREN, |
| 7016 | .tested = TEST_UNTESTED, |
| 7017 | .probe = probe_spi_res1, |
| 7018 | .probe_timing = TIMING_ZERO, |
| 7019 | .block_erasers = |
| 7020 | { |
| 7021 | { |
| 7022 | .eraseblocks = { {32 * 1024, 2} }, |
| 7023 | .block_erase = spi_block_erase_d8, |
| 7024 | }, { |
| 7025 | .eraseblocks = { {64 * 1024, 1} }, |
| 7026 | .block_erase = spi_block_erase_c7, |
| 7027 | } |
| 7028 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7029 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7030 | .unlock = spi_disable_blockprotect, |
| 7031 | .write = spi_chip_write_1, /* 128 */ |
| 7032 | .read = spi_chip_read, |
| 7033 | .voltage = {2700, 3600}, |
| 7034 | }, |
| 7035 | |
| 7036 | { |
| 7037 | .vendor = "Micron/Numonyx/ST", |
| 7038 | .name = "M25P10-A", |
| 7039 | .bustype = BUS_SPI, |
| 7040 | .manufacture_id = ST_ID, |
| 7041 | .model_id = ST_M25P10A, |
| 7042 | .total_size = 128, |
| 7043 | .page_size = 256, |
| 7044 | .feature_bits = FEATURE_WRSR_WREN, |
| 7045 | .tested = TEST_OK_PRE, |
| 7046 | .probe = probe_spi_rdid, |
| 7047 | .probe_timing = TIMING_ZERO, |
| 7048 | .block_erasers = |
| 7049 | { |
| 7050 | { |
| 7051 | .eraseblocks = { {32 * 1024, 4} }, |
| 7052 | .block_erase = spi_block_erase_d8, |
| 7053 | }, { |
| 7054 | .eraseblocks = { {128 * 1024, 1} }, |
| 7055 | .block_erase = spi_block_erase_c7, |
| 7056 | } |
| 7057 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7058 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7059 | .unlock = spi_disable_blockprotect, |
| 7060 | .write = spi_chip_write_256, |
| 7061 | .read = spi_chip_read, |
| 7062 | .voltage = {2700, 3600}, |
| 7063 | }, |
| 7064 | |
| 7065 | /* The ST M25P10 has the same problem as the M25P05. */ |
| 7066 | { |
| 7067 | .vendor = "Micron/Numonyx/ST", |
| 7068 | .name = "M25P10", |
| 7069 | .bustype = BUS_SPI, |
| 7070 | .manufacture_id = 0, /* Not used. */ |
| 7071 | .model_id = ST_M25P10_RES, |
| 7072 | .total_size = 128, |
| 7073 | .page_size = 256, |
| 7074 | .feature_bits = FEATURE_WRSR_WREN, |
| 7075 | .tested = TEST_UNTESTED, |
| 7076 | .probe = probe_spi_res1, |
| 7077 | .probe_timing = TIMING_ZERO, |
| 7078 | .block_erasers = |
| 7079 | { |
| 7080 | { |
| 7081 | .eraseblocks = { {32 * 1024, 4} }, |
| 7082 | .block_erase = spi_block_erase_d8, |
| 7083 | }, { |
| 7084 | .eraseblocks = { {128 * 1024, 1} }, |
| 7085 | .block_erase = spi_block_erase_c7, |
| 7086 | } |
| 7087 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7088 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7089 | .unlock = spi_disable_blockprotect, |
| 7090 | .write = spi_chip_write_1, /* 128 */ |
| 7091 | .read = spi_chip_read, |
| 7092 | .voltage = {2700, 3600}, |
| 7093 | }, |
| 7094 | |
| 7095 | { |
| 7096 | .vendor = "Micron/Numonyx/ST", /* Numonyx */ |
| 7097 | .name = "M25P20", |
| 7098 | .bustype = BUS_SPI, |
| 7099 | .manufacture_id = ST_ID, |
| 7100 | .model_id = ST_M25P20, |
| 7101 | .total_size = 256, |
| 7102 | .page_size = 256, |
| 7103 | .feature_bits = FEATURE_WRSR_WREN, |
| 7104 | .tested = TEST_UNTESTED, |
| 7105 | .probe = probe_spi_rdid, |
| 7106 | .probe_timing = TIMING_ZERO, |
| 7107 | .block_erasers = |
| 7108 | { |
| 7109 | { |
| 7110 | .eraseblocks = { {64 * 1024, 4} }, |
| 7111 | .block_erase = spi_block_erase_d8, |
| 7112 | }, { |
| 7113 | .eraseblocks = { {256 * 1024, 1} }, |
| 7114 | .block_erase = spi_block_erase_c7, |
| 7115 | } |
| 7116 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7117 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7118 | .unlock = spi_disable_blockprotect, |
| 7119 | .write = spi_chip_write_256, |
| 7120 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7121 | .voltage = {2700, 3600}, |
| 7122 | }, |
| 7123 | |
| 7124 | { |
| 7125 | .vendor = "Micron/Numonyx/ST", |
| 7126 | .name = "M25P20-old", |
| 7127 | .bustype = BUS_SPI, |
| 7128 | .manufacture_id = 0, /* Not used. */ |
| 7129 | .model_id = ST_M25P20_RES, |
| 7130 | .total_size = 256, |
| 7131 | .page_size = 256, |
| 7132 | .feature_bits = FEATURE_WRSR_WREN, |
| 7133 | .tested = TEST_OK_PREW, |
| 7134 | .probe = probe_spi_res1, |
| 7135 | .probe_timing = TIMING_ZERO, |
| 7136 | .block_erasers = |
| 7137 | { |
| 7138 | { |
| 7139 | .eraseblocks = { {64 * 1024, 4} }, |
| 7140 | .block_erase = spi_block_erase_d8, |
| 7141 | }, { |
| 7142 | .eraseblocks = { {256 * 1024, 1} }, |
| 7143 | .block_erase = spi_block_erase_c7, |
| 7144 | } |
| 7145 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7146 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7147 | .unlock = spi_disable_blockprotect, |
| 7148 | .write = spi_chip_write_256, |
| 7149 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7150 | .voltage = {2700, 3600}, |
| 7151 | }, |
| 7152 | |
| 7153 | { |
| 7154 | .vendor = "Micron/Numonyx/ST", /* Numonyx */ |
| 7155 | .name = "M25P40", |
| 7156 | .bustype = BUS_SPI, |
| 7157 | .manufacture_id = ST_ID, |
| 7158 | .model_id = ST_M25P40, |
| 7159 | .total_size = 512, |
| 7160 | .page_size = 256, |
| 7161 | .feature_bits = FEATURE_WRSR_WREN, |
| 7162 | .tested = TEST_OK_PREW, |
| 7163 | .probe = probe_spi_rdid, |
| 7164 | .probe_timing = TIMING_ZERO, |
| 7165 | .block_erasers = |
| 7166 | { |
| 7167 | { |
| 7168 | .eraseblocks = { {64 * 1024, 8} }, |
| 7169 | .block_erase = spi_block_erase_d8, |
| 7170 | }, { |
| 7171 | .eraseblocks = { {512 * 1024, 1} }, |
| 7172 | .block_erase = spi_block_erase_c7, |
| 7173 | } |
| 7174 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7175 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7176 | .unlock = spi_disable_blockprotect, |
| 7177 | .write = spi_chip_write_256, |
| 7178 | .read = spi_chip_read, |
| 7179 | .voltage = {2700, 3600}, |
| 7180 | }, |
| 7181 | |
| 7182 | { |
| 7183 | .vendor = "Micron/Numonyx/ST", |
| 7184 | .name = "M25P40-old", |
| 7185 | .bustype = BUS_SPI, |
| 7186 | .manufacture_id = 0, /* Not used. */ |
| 7187 | .model_id = ST_M25P40_RES, |
| 7188 | .total_size = 512, |
| 7189 | .page_size = 256, |
| 7190 | .feature_bits = FEATURE_WRSR_WREN, |
| 7191 | .tested = TEST_UNTESTED, |
| 7192 | .probe = probe_spi_res1, |
| 7193 | .probe_timing = TIMING_ZERO, |
| 7194 | .block_erasers = |
| 7195 | { |
| 7196 | { |
| 7197 | .eraseblocks = { {64 * 1024, 8} }, |
| 7198 | .block_erase = spi_block_erase_d8, |
| 7199 | }, { |
| 7200 | .eraseblocks = { {512 * 1024, 1} }, |
| 7201 | .block_erase = spi_block_erase_c7, |
| 7202 | } |
| 7203 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7204 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7205 | .unlock = spi_disable_blockprotect, |
| 7206 | .write = spi_chip_write_256, |
| 7207 | .read = spi_chip_read, |
| 7208 | }, |
| 7209 | |
| 7210 | { |
| 7211 | .vendor = "Micron/Numonyx/ST", |
| 7212 | .name = "M25P80", |
| 7213 | .bustype = BUS_SPI, |
| 7214 | .manufacture_id = ST_ID, |
| 7215 | .model_id = ST_M25P80, |
| 7216 | .total_size = 1024, |
| 7217 | .page_size = 256, |
| 7218 | .feature_bits = FEATURE_WRSR_WREN, |
| 7219 | .tested = TEST_OK_PREW, |
| 7220 | .probe = probe_spi_rdid, |
| 7221 | .probe_timing = TIMING_ZERO, |
| 7222 | .block_erasers = |
| 7223 | { |
| 7224 | { |
| 7225 | .eraseblocks = { {64 * 1024, 16} }, |
| 7226 | .block_erase = spi_block_erase_d8, |
| 7227 | }, { |
| 7228 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7229 | .block_erase = spi_block_erase_c7, |
| 7230 | } |
| 7231 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7232 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7233 | .unlock = spi_disable_blockprotect, |
| 7234 | .write = spi_chip_write_256, |
| 7235 | .read = spi_chip_read, |
| 7236 | .voltage = {2700, 3600}, |
| 7237 | }, |
| 7238 | |
| 7239 | { |
| 7240 | .vendor = "Micron/Numonyx/ST", |
| 7241 | .name = "M25P16", |
| 7242 | .bustype = BUS_SPI, |
| 7243 | .manufacture_id = ST_ID, |
| 7244 | .model_id = ST_M25P16, |
| 7245 | .total_size = 2048, |
| 7246 | .page_size = 256, |
| 7247 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7248 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7249 | .probe = probe_spi_rdid, |
| 7250 | .probe_timing = TIMING_ZERO, |
| 7251 | .block_erasers = |
| 7252 | { |
| 7253 | { |
| 7254 | .eraseblocks = { {64 * 1024, 32} }, |
| 7255 | .block_erase = spi_block_erase_d8, |
| 7256 | }, { |
| 7257 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7258 | .block_erase = spi_block_erase_c7, |
| 7259 | } |
| 7260 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7261 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7262 | .unlock = spi_disable_blockprotect, |
| 7263 | .write = spi_chip_write_256, |
| 7264 | .read = spi_chip_read, |
| 7265 | .voltage = {2700, 3600}, |
| 7266 | }, |
| 7267 | |
| 7268 | { |
| 7269 | .vendor = "Micron/Numonyx/ST", |
| 7270 | .name = "M25P32", |
| 7271 | .bustype = BUS_SPI, |
| 7272 | .manufacture_id = ST_ID, |
| 7273 | .model_id = ST_M25P32, |
| 7274 | .total_size = 4096, |
| 7275 | .page_size = 256, |
| 7276 | .feature_bits = FEATURE_WRSR_WREN, |
| 7277 | .tested = TEST_OK_PREW, |
| 7278 | .probe = probe_spi_rdid, |
| 7279 | .probe_timing = TIMING_ZERO, |
| 7280 | .block_erasers = |
| 7281 | { |
| 7282 | { |
| 7283 | .eraseblocks = { {64 * 1024, 64} }, |
| 7284 | .block_erase = spi_block_erase_d8, |
| 7285 | }, { |
| 7286 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7287 | .block_erase = spi_block_erase_c7, |
| 7288 | } |
| 7289 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7290 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7291 | .unlock = spi_disable_blockprotect, |
| 7292 | .write = spi_chip_write_256, |
| 7293 | .read = spi_chip_read, |
| 7294 | .voltage = {2700, 3600}, |
| 7295 | }, |
| 7296 | |
| 7297 | { |
| 7298 | .vendor = "Micron/Numonyx/ST", |
| 7299 | .name = "M25P64", |
| 7300 | .bustype = BUS_SPI, |
| 7301 | .manufacture_id = ST_ID, |
| 7302 | .model_id = ST_M25P64, |
| 7303 | .total_size = 8192, |
| 7304 | .page_size = 256, |
| 7305 | .feature_bits = FEATURE_WRSR_WREN, |
| 7306 | .tested = TEST_OK_PREW, |
| 7307 | .probe = probe_spi_rdid, |
| 7308 | .probe_timing = TIMING_ZERO, |
| 7309 | .block_erasers = |
| 7310 | { |
| 7311 | { |
| 7312 | .eraseblocks = { {64 * 1024, 128} }, |
| 7313 | .block_erase = spi_block_erase_d8, |
| 7314 | }, { |
| 7315 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7316 | .block_erase = spi_block_erase_c7, |
| 7317 | } |
| 7318 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7319 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7320 | .unlock = spi_disable_blockprotect, |
| 7321 | .write = spi_chip_write_256, |
| 7322 | .read = spi_chip_read, |
| 7323 | .voltage = {2700, 3600}, |
| 7324 | }, |
| 7325 | |
| 7326 | { |
| 7327 | .vendor = "Micron/Numonyx/ST", |
| 7328 | .name = "M25P128", |
| 7329 | .bustype = BUS_SPI, |
| 7330 | .manufacture_id = ST_ID, |
| 7331 | .model_id = ST_M25P128, |
| 7332 | .total_size = 16384, |
| 7333 | .page_size = 256, |
| 7334 | .feature_bits = FEATURE_WRSR_WREN, |
| 7335 | .tested = TEST_OK_PREW, |
| 7336 | .probe = probe_spi_rdid, |
| 7337 | .probe_timing = TIMING_ZERO, |
| 7338 | .block_erasers = |
| 7339 | { |
| 7340 | { |
| 7341 | .eraseblocks = { {256 * 1024, 64} }, |
| 7342 | .block_erase = spi_block_erase_d8, |
| 7343 | }, { |
| 7344 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 7345 | .block_erase = spi_block_erase_c7, |
| 7346 | } |
| 7347 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7348 | .printlock = spi_prettyprint_status_register_bp3_srwd, /* TODO: check */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7349 | .unlock = spi_disable_blockprotect, |
| 7350 | .write = spi_chip_write_256, |
| 7351 | .read = spi_chip_read, |
| 7352 | .voltage = {2700, 3600}, |
| 7353 | }, |
| 7354 | |
| 7355 | { |
| 7356 | .vendor = "Micron/Numonyx/ST", |
| 7357 | .name = "M25PE10", |
| 7358 | .bustype = BUS_SPI, |
| 7359 | .manufacture_id = ST_ID, |
| 7360 | .model_id = ST_M25PE10, |
| 7361 | .total_size = 128, |
| 7362 | .page_size = 256, |
| 7363 | .feature_bits = FEATURE_WRSR_WREN, |
| 7364 | .tested = TEST_UNTESTED, |
| 7365 | .probe = probe_spi_rdid, |
| 7366 | .probe_timing = TIMING_ZERO, |
| 7367 | .block_erasers = |
| 7368 | { |
| 7369 | { |
| 7370 | .eraseblocks = { {4 * 1024, 32} }, |
| 7371 | .block_erase = spi_block_erase_20, |
| 7372 | }, { |
| 7373 | .eraseblocks = { {64 * 1024, 2} }, |
| 7374 | .block_erase = spi_block_erase_d8, |
| 7375 | }, { |
| 7376 | .eraseblocks = { {128 * 1024, 1} }, |
| 7377 | .block_erase = spi_block_erase_c7, |
| 7378 | } |
| 7379 | }, |
| 7380 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 7381 | .unlock = spi_disable_blockprotect, |
| 7382 | .write = spi_chip_write_256, |
| 7383 | .read = spi_chip_read, |
| 7384 | .voltage = {2700, 3600}, |
| 7385 | }, |
| 7386 | |
| 7387 | { |
| 7388 | .vendor = "Micron/Numonyx/ST", |
| 7389 | .name = "M25PE20", |
| 7390 | .bustype = BUS_SPI, |
| 7391 | .manufacture_id = ST_ID, |
| 7392 | .model_id = ST_M25PE20, |
| 7393 | .total_size = 256, |
| 7394 | .page_size = 256, |
| 7395 | .feature_bits = FEATURE_WRSR_WREN, |
| 7396 | .tested = TEST_UNTESTED, |
| 7397 | .probe = probe_spi_rdid, |
| 7398 | .probe_timing = TIMING_ZERO, |
| 7399 | .block_erasers = |
| 7400 | { |
| 7401 | { |
| 7402 | .eraseblocks = { {4 * 1024, 64} }, |
| 7403 | .block_erase = spi_block_erase_20, |
| 7404 | }, { |
| 7405 | .eraseblocks = { {64 * 1024, 4} }, |
| 7406 | .block_erase = spi_block_erase_d8, |
| 7407 | }, { |
| 7408 | .eraseblocks = { {256 * 1024, 1} }, |
| 7409 | .block_erase = spi_block_erase_c7, |
| 7410 | } |
| 7411 | }, |
| 7412 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 7413 | .unlock = spi_disable_blockprotect, |
| 7414 | .write = spi_chip_write_256, |
| 7415 | .read = spi_chip_read, |
| 7416 | .voltage = {2700, 3600}, |
| 7417 | }, |
| 7418 | |
| 7419 | { |
| 7420 | .vendor = "Micron/Numonyx/ST", |
| 7421 | .name = "M25PE40", |
| 7422 | .bustype = BUS_SPI, |
| 7423 | .manufacture_id = ST_ID, |
| 7424 | .model_id = ST_M25PE40, |
| 7425 | .total_size = 512, |
| 7426 | .page_size = 256, |
| 7427 | .feature_bits = FEATURE_WRSR_WREN, |
| 7428 | .tested = TEST_UNTESTED, |
| 7429 | .probe = probe_spi_rdid, |
| 7430 | .probe_timing = TIMING_ZERO, |
| 7431 | .block_erasers = |
| 7432 | { |
| 7433 | { |
| 7434 | .eraseblocks = { {4 * 1024, 128} }, |
| 7435 | .block_erase = spi_block_erase_20, |
| 7436 | }, { |
| 7437 | .eraseblocks = { {64 * 1024, 8} }, |
| 7438 | .block_erase = spi_block_erase_d8, |
| 7439 | }, { |
| 7440 | .eraseblocks = { {512 * 1024, 1} }, |
| 7441 | .block_erase = spi_block_erase_c7, |
| 7442 | } |
| 7443 | }, |
| 7444 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 7445 | .unlock = spi_disable_blockprotect, |
| 7446 | .write = spi_chip_write_256, |
| 7447 | .read = spi_chip_read, |
| 7448 | .voltage = {2700, 3600}, |
| 7449 | }, |
| 7450 | |
| 7451 | { |
| 7452 | .vendor = "Micron/Numonyx/ST", |
| 7453 | .name = "M25PE80", |
| 7454 | .bustype = BUS_SPI, |
| 7455 | .manufacture_id = ST_ID, |
| 7456 | .model_id = ST_M25PE80, |
| 7457 | .total_size = 1024, |
| 7458 | .page_size = 256, |
| 7459 | .feature_bits = FEATURE_WRSR_WREN, |
| 7460 | .tested = TEST_OK_PREW, |
| 7461 | .probe = probe_spi_rdid, |
| 7462 | .probe_timing = TIMING_ZERO, |
| 7463 | .block_erasers = |
| 7464 | { |
| 7465 | { |
| 7466 | .eraseblocks = { {4 * 1024, 256} }, |
| 7467 | .block_erase = spi_block_erase_20, |
| 7468 | }, { |
| 7469 | .eraseblocks = { {64 * 1024, 16} }, |
| 7470 | .block_erase = spi_block_erase_d8, |
| 7471 | }, { |
| 7472 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7473 | .block_erase = spi_block_erase_c7, |
| 7474 | } |
| 7475 | }, |
| 7476 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 7477 | .unlock = spi_disable_blockprotect, |
| 7478 | .write = spi_chip_write_256, |
| 7479 | .read = spi_chip_read, |
| 7480 | .voltage = {2700, 3600}, |
| 7481 | }, |
| 7482 | |
| 7483 | { |
| 7484 | .vendor = "Micron/Numonyx/ST", |
| 7485 | .name = "M25PE16", |
| 7486 | .bustype = BUS_SPI, |
| 7487 | .manufacture_id = ST_ID, |
| 7488 | .model_id = ST_M25PE16, |
| 7489 | .total_size = 2048, |
| 7490 | .page_size = 256, |
| 7491 | .feature_bits = FEATURE_WRSR_WREN, |
| 7492 | .tested = TEST_UNTESTED, |
| 7493 | .probe = probe_spi_rdid, |
| 7494 | .probe_timing = TIMING_ZERO, |
| 7495 | .block_erasers = |
| 7496 | { |
| 7497 | { |
| 7498 | .eraseblocks = { {4 * 1024, 512} }, |
| 7499 | .block_erase = spi_block_erase_20, |
| 7500 | }, { |
| 7501 | .eraseblocks = { {64 * 1024, 32} }, |
| 7502 | .block_erase = spi_block_erase_d8, |
| 7503 | }, { |
| 7504 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7505 | .block_erase = spi_block_erase_c7, |
| 7506 | } |
| 7507 | }, |
| 7508 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 7509 | .unlock = spi_disable_blockprotect, |
| 7510 | .write = spi_chip_write_256, |
| 7511 | .read = spi_chip_read, |
| 7512 | .voltage = {2700, 3600}, |
| 7513 | }, |
| 7514 | |
| 7515 | { |
| 7516 | .vendor = "Micron/Numonyx/ST", |
| 7517 | .name = "M25PX80", |
| 7518 | .bustype = BUS_SPI, |
| 7519 | .manufacture_id = ST_ID, |
| 7520 | .model_id = ST_M25PX80, |
| 7521 | .total_size = 1024, |
| 7522 | .page_size = 256, |
| 7523 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7524 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7525 | .tested = TEST_OK_PREW, |
| 7526 | .probe = probe_spi_rdid, |
| 7527 | .probe_timing = TIMING_ZERO, |
| 7528 | .block_erasers = { |
| 7529 | { |
| 7530 | .eraseblocks = { { 4 * 1024, 256 } }, |
| 7531 | .block_erase = spi_block_erase_20, |
| 7532 | }, { |
| 7533 | .eraseblocks = { {64 * 1024, 16} }, |
| 7534 | .block_erase = spi_block_erase_d8, |
| 7535 | }, { |
| 7536 | .eraseblocks = { {1024 * 1024, 1} }, |
| 7537 | .block_erase = spi_block_erase_c7, |
| 7538 | } |
| 7539 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7540 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7541 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 7542 | .write = spi_chip_write_256, |
| 7543 | .read = spi_chip_read, |
| 7544 | .voltage = {2700, 3600}, |
| 7545 | }, |
| 7546 | |
| 7547 | { |
| 7548 | .vendor = "Micron/Numonyx/ST", |
| 7549 | .name = "M25PX16", |
| 7550 | .bustype = BUS_SPI, |
| 7551 | .manufacture_id = ST_ID, |
| 7552 | .model_id = ST_M25PX16, |
| 7553 | .total_size = 2048, |
| 7554 | .page_size = 256, |
| 7555 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 7556 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7557 | .tested = TEST_OK_PREW, |
| 7558 | .probe = probe_spi_rdid, |
| 7559 | .probe_timing = TIMING_ZERO, |
| 7560 | .block_erasers = |
| 7561 | { |
| 7562 | { |
| 7563 | .eraseblocks = { { 4 * 1024, 512 } }, |
| 7564 | .block_erase = spi_block_erase_20, |
| 7565 | }, { |
| 7566 | .eraseblocks = { {64 * 1024, 32} }, |
| 7567 | .block_erase = spi_block_erase_d8, |
| 7568 | }, { |
| 7569 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7570 | .block_erase = spi_block_erase_c7, |
| 7571 | } |
| 7572 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7573 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7574 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 7575 | .write = spi_chip_write_256, |
| 7576 | .read = spi_chip_read, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7577 | .voltage = {2300, 3600}, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7578 | }, |
| 7579 | |
| 7580 | { |
| 7581 | .vendor = "Micron/Numonyx/ST", |
| 7582 | .name = "M25PX32", |
| 7583 | .bustype = BUS_SPI, |
| 7584 | .manufacture_id = ST_ID, |
| 7585 | .model_id = ST_M25PX32, |
| 7586 | .total_size = 4096, |
| 7587 | .page_size = 256, |
| 7588 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 7589 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7590 | .tested = TEST_OK_PRE, |
| 7591 | .probe = probe_spi_rdid, |
| 7592 | .probe_timing = TIMING_ZERO, |
| 7593 | .block_erasers = |
| 7594 | { |
| 7595 | { |
| 7596 | .eraseblocks = { { 4 * 1024, 1024 } }, |
| 7597 | .block_erase = spi_block_erase_20, |
| 7598 | }, { |
| 7599 | .eraseblocks = { {64 * 1024, 64} }, |
| 7600 | .block_erase = spi_block_erase_d8, |
| 7601 | }, { |
| 7602 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7603 | .block_erase = spi_block_erase_c7, |
| 7604 | } |
| 7605 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7606 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7607 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 7608 | .write = spi_chip_write_256, |
| 7609 | .read = spi_chip_read, |
| 7610 | .voltage = {2700, 3600}, |
| 7611 | }, |
| 7612 | |
| 7613 | { |
| 7614 | .vendor = "Micron/Numonyx/ST", |
| 7615 | .name = "M25PX64", |
| 7616 | .bustype = BUS_SPI, |
| 7617 | .manufacture_id = ST_ID, |
| 7618 | .model_id = ST_M25PX64, |
| 7619 | .total_size = 8192, |
| 7620 | .page_size = 256, |
| 7621 | /* OTP: 64B total; read 0x4B; write 0x42 */ |
| 7622 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7623 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7624 | .probe = probe_spi_rdid, |
| 7625 | .probe_timing = TIMING_ZERO, |
| 7626 | .block_erasers = |
| 7627 | { |
| 7628 | { |
| 7629 | .eraseblocks = { { 4 * 1024, 2048 } }, |
| 7630 | .block_erase = spi_block_erase_20, |
| 7631 | }, { |
| 7632 | .eraseblocks = { {64 * 1024, 128} }, |
| 7633 | .block_erase = spi_block_erase_d8, |
| 7634 | }, { |
| 7635 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7636 | .block_erase = spi_block_erase_c7, |
| 7637 | } |
| 7638 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 7639 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* bit5: T/B */ |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7640 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: per 64kB sector lock registers */ |
| 7641 | .write = spi_chip_write_256, |
| 7642 | .read = spi_chip_read, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7643 | .voltage = {2700, 3600}, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7644 | }, |
| 7645 | |
| 7646 | { |
| 7647 | .vendor = "Micron/Numonyx/ST", |
| 7648 | .name = "M45PE10", |
| 7649 | .bustype = BUS_SPI, |
| 7650 | .manufacture_id = ST_ID, |
| 7651 | .model_id = ST_M45PE10, |
| 7652 | .total_size = 128, |
| 7653 | .page_size = 256, |
| 7654 | .tested = TEST_UNTESTED, |
| 7655 | .probe = probe_spi_rdid, |
| 7656 | .probe_timing = TIMING_ZERO, |
| 7657 | .block_erasers = { |
| 7658 | { |
| 7659 | .eraseblocks = { {256, 512} }, |
| 7660 | .block_erase = spi_block_erase_db, |
| 7661 | }, { |
| 7662 | .eraseblocks = { {64 * 1024, 2} }, |
| 7663 | .block_erase = spi_block_erase_d8, |
| 7664 | } |
| 7665 | }, |
| 7666 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 7667 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 7668 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 7669 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7670 | .voltage = {2700, 3600}, |
| 7671 | }, |
| 7672 | |
| 7673 | { |
| 7674 | .vendor = "Micron/Numonyx/ST", |
| 7675 | .name = "M45PE20", |
| 7676 | .bustype = BUS_SPI, |
| 7677 | .manufacture_id = ST_ID, |
| 7678 | .model_id = ST_M45PE20, |
| 7679 | .total_size = 256, |
| 7680 | .page_size = 256, |
| 7681 | .tested = TEST_UNTESTED, |
| 7682 | .probe = probe_spi_rdid, |
| 7683 | .probe_timing = TIMING_ZERO, |
| 7684 | .block_erasers = { |
| 7685 | { |
| 7686 | .eraseblocks = { {256, 1024} }, |
| 7687 | .block_erase = spi_block_erase_db, |
| 7688 | }, { |
| 7689 | .eraseblocks = { {64 * 1024, 4} }, |
| 7690 | .block_erase = spi_block_erase_d8, |
| 7691 | } |
| 7692 | }, |
| 7693 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 7694 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 7695 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 7696 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7697 | .voltage = {2700, 3600}, |
| 7698 | }, |
| 7699 | |
| 7700 | { |
| 7701 | .vendor = "Micron/Numonyx/ST", |
| 7702 | .name = "M45PE40", |
| 7703 | .bustype = BUS_SPI, |
| 7704 | .manufacture_id = ST_ID, |
| 7705 | .model_id = ST_M45PE40, |
| 7706 | .total_size = 512, |
| 7707 | .page_size = 256, |
| 7708 | .tested = TEST_UNTESTED, |
| 7709 | .probe = probe_spi_rdid, |
| 7710 | .probe_timing = TIMING_ZERO, |
| 7711 | .block_erasers = { |
| 7712 | { |
| 7713 | .eraseblocks = { {256, 2048} }, |
| 7714 | .block_erase = spi_block_erase_db, |
| 7715 | }, { |
| 7716 | .eraseblocks = { {64 * 1024, 8} }, |
| 7717 | .block_erase = spi_block_erase_d8, |
| 7718 | } |
| 7719 | }, |
| 7720 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 7721 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 7722 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 7723 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7724 | .voltage = {2700, 3600}, |
| 7725 | }, |
| 7726 | |
| 7727 | { |
| 7728 | .vendor = "Micron/Numonyx/ST", |
| 7729 | .name = "M45PE80", |
| 7730 | .bustype = BUS_SPI, |
| 7731 | .manufacture_id = ST_ID, |
| 7732 | .model_id = ST_M45PE80, |
| 7733 | .total_size = 1024, |
| 7734 | .page_size = 256, |
| 7735 | .tested = TEST_UNTESTED, |
| 7736 | .probe = probe_spi_rdid, |
| 7737 | .probe_timing = TIMING_ZERO, |
| 7738 | .block_erasers = { |
| 7739 | { |
| 7740 | .eraseblocks = { {256, 4096} }, |
| 7741 | .block_erase = spi_block_erase_db, |
| 7742 | }, { |
| 7743 | .eraseblocks = { {64 * 1024, 16} }, |
| 7744 | .block_erase = spi_block_erase_d8, |
| 7745 | } |
| 7746 | }, |
| 7747 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 7748 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 7749 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 7750 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7751 | .voltage = {2700, 3600}, |
| 7752 | }, |
| 7753 | |
| 7754 | { |
| 7755 | .vendor = "Micron/Numonyx/ST", |
| 7756 | .name = "M45PE16", |
| 7757 | .bustype = BUS_SPI, |
| 7758 | .manufacture_id = ST_ID, |
| 7759 | .model_id = ST_M45PE16, |
| 7760 | .total_size = 2048, |
| 7761 | .page_size = 256, |
| 7762 | .tested = TEST_UNTESTED, |
| 7763 | .probe = probe_spi_rdid, |
| 7764 | .probe_timing = TIMING_ZERO, |
| 7765 | .block_erasers = { |
| 7766 | { |
| 7767 | .eraseblocks = { {256, 8192} }, |
| 7768 | .block_erase = spi_block_erase_db, |
| 7769 | }, { |
| 7770 | .eraseblocks = { {64 * 1024, 32} }, |
| 7771 | .block_erase = spi_block_erase_d8, |
| 7772 | } |
| 7773 | }, |
| 7774 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 7775 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 7776 | .write = spi_chip_write_256, /* Page write (similar to PP but allows 0->1 changes) */ |
| 7777 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 7778 | .voltage = {2700, 3600}, |
| 7779 | }, |
| 7780 | |
| 7781 | { |
| 7782 | .vendor = "Micron/Numonyx/ST", |
| 7783 | .name = "N25Q016", |
| 7784 | .bustype = BUS_SPI, |
| 7785 | .manufacture_id = ST_ID, |
| 7786 | .model_id = ST_N25Q016__1E, |
| 7787 | .total_size = 2048, |
| 7788 | .page_size = 256, |
| 7789 | /* supports SFDP */ |
| 7790 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7791 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7792 | .tested = TEST_UNTESTED, |
| 7793 | .probe = probe_spi_rdid, |
| 7794 | .probe_timing = TIMING_ZERO, |
| 7795 | .block_erasers = |
| 7796 | { |
| 7797 | { |
| 7798 | .eraseblocks = { {4 * 1024, 512} }, |
| 7799 | .block_erase = spi_block_erase_20, |
| 7800 | }, { |
| 7801 | .eraseblocks = { {32 * 1024, 64} }, |
| 7802 | .block_erase = spi_block_erase_52, |
| 7803 | }, { |
| 7804 | .eraseblocks = { {64 * 1024, 32} }, |
| 7805 | .block_erase = spi_block_erase_d8, |
| 7806 | }, { |
| 7807 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 7808 | .block_erase = spi_block_erase_c7, |
| 7809 | } |
| 7810 | }, |
| 7811 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 7812 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 7813 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 7814 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7815 | .voltage = {1700, 2000}, |
| 7816 | }, |
| 7817 | |
| 7818 | { |
| 7819 | .vendor = "Micron/Numonyx/ST", |
| 7820 | .name = "N25Q032..1E", |
| 7821 | .bustype = BUS_SPI, |
| 7822 | .manufacture_id = ST_ID, |
| 7823 | .model_id = ST_N25Q032__1E, |
| 7824 | .total_size = 4096, |
| 7825 | .page_size = 256, |
| 7826 | /* supports SFDP */ |
| 7827 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7828 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7829 | .tested = TEST_UNTESTED, |
| 7830 | .probe = probe_spi_rdid, |
| 7831 | .probe_timing = TIMING_ZERO, |
| 7832 | .block_erasers = |
| 7833 | { |
| 7834 | { |
| 7835 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7836 | .block_erase = spi_block_erase_20, |
| 7837 | }, { |
| 7838 | .eraseblocks = { {64 * 1024, 64} }, |
| 7839 | .block_erase = spi_block_erase_d8, |
| 7840 | }, { |
| 7841 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7842 | .block_erase = spi_block_erase_c7, |
| 7843 | } |
| 7844 | }, |
| 7845 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 7846 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 7847 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 7848 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7849 | .voltage = {1700, 2000}, |
| 7850 | }, |
| 7851 | |
| 7852 | { |
| 7853 | .vendor = "Micron/Numonyx/ST", |
| 7854 | .name = "N25Q032..3E", |
| 7855 | .bustype = BUS_SPI, |
| 7856 | .manufacture_id = ST_ID, |
| 7857 | .model_id = ST_N25Q032__3E, |
| 7858 | .total_size = 4096, |
| 7859 | .page_size = 256, |
| 7860 | /* supports SFDP */ |
| 7861 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7862 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7863 | .tested = TEST_OK_PREW, |
| 7864 | .probe = probe_spi_rdid, |
| 7865 | .probe_timing = TIMING_ZERO, |
| 7866 | .block_erasers = |
| 7867 | { |
| 7868 | { |
| 7869 | .eraseblocks = { {4 * 1024, 1024} }, |
| 7870 | .block_erase = spi_block_erase_20, |
| 7871 | }, { |
| 7872 | .eraseblocks = { {64 * 1024, 64} }, |
| 7873 | .block_erase = spi_block_erase_d8, |
| 7874 | }, { |
| 7875 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 7876 | .block_erase = spi_block_erase_c7, |
| 7877 | } |
| 7878 | }, |
| 7879 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 7880 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 7881 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 7882 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7883 | .voltage = {2700, 3600}, |
| 7884 | }, |
| 7885 | |
| 7886 | { |
| 7887 | .vendor = "Micron/Numonyx/ST", |
| 7888 | .name = "N25Q064..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 7889 | .bustype = BUS_SPI, |
| 7890 | .manufacture_id = ST_ID, |
| 7891 | .model_id = ST_N25Q064__1E, |
| 7892 | .total_size = 8192, |
| 7893 | .page_size = 256, |
| 7894 | /* supports SFDP */ |
| 7895 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7896 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 7897 | .tested = TEST_OK_PREW, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 7898 | .probe = probe_spi_rdid, |
| 7899 | .probe_timing = TIMING_ZERO, |
| 7900 | .block_erasers = |
| 7901 | { |
| 7902 | { |
| 7903 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 7904 | .block_erase = spi_block_erase_20, |
| 7905 | }, { |
| 7906 | .eraseblocks = { {64 * 1024, 128} }, |
| 7907 | .block_erase = spi_block_erase_d8, |
| 7908 | }, { |
| 7909 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7910 | .block_erase = spi_block_erase_c7, |
| 7911 | } |
| 7912 | }, |
| 7913 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 7914 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 7915 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 7916 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7917 | .voltage = {1700, 2000}, |
| 7918 | }, |
| 7919 | |
| 7920 | { |
| 7921 | .vendor = "Micron/Numonyx/ST", |
| 7922 | .name = "N25Q064..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 7923 | .bustype = BUS_SPI, |
| 7924 | .manufacture_id = ST_ID, |
| 7925 | .model_id = ST_N25Q064__3E, |
| 7926 | .total_size = 8192, |
| 7927 | .page_size = 256, |
| 7928 | /* supports SFDP */ |
| 7929 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7930 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7931 | .tested = TEST_OK_PREW, |
| 7932 | .probe = probe_spi_rdid, |
| 7933 | .probe_timing = TIMING_ZERO, |
| 7934 | .block_erasers = |
| 7935 | { |
| 7936 | { |
| 7937 | .eraseblocks = { {4 * 1024, 2048 } }, |
| 7938 | .block_erase = spi_block_erase_20, |
| 7939 | }, { |
| 7940 | .eraseblocks = { {64 * 1024, 128} }, |
| 7941 | .block_erase = spi_block_erase_d8, |
| 7942 | }, { |
| 7943 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 7944 | .block_erase = spi_block_erase_c7, |
| 7945 | } |
| 7946 | }, |
| 7947 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 7948 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 7949 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 7950 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7951 | .voltage = {2700, 3600}, |
| 7952 | }, |
| 7953 | |
| 7954 | { |
| 7955 | .vendor = "Micron/Numonyx/ST", |
| 7956 | .name = "N25Q128..1E", /* ..1E = 1.8V, uniform 64KB/4KB blocks/sectors */ |
| 7957 | .bustype = BUS_SPI, |
| 7958 | .manufacture_id = ST_ID, |
| 7959 | .model_id = ST_N25Q128__1E, |
| 7960 | .total_size = 16384, |
| 7961 | .page_size = 256, |
| 7962 | /* supports SFDP */ |
| 7963 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7964 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7965 | .tested = TEST_UNTESTED, |
| 7966 | .probe = probe_spi_rdid, |
| 7967 | .probe_timing = TIMING_ZERO, |
| 7968 | .block_erasers = { |
| 7969 | { |
| 7970 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 7971 | .block_erase = spi_block_erase_20, |
| 7972 | }, { |
| 7973 | .eraseblocks = { {64 * 1024, 256} }, |
| 7974 | .block_erase = spi_block_erase_d8, |
| 7975 | }, { |
| 7976 | .eraseblocks = { {16384 * 1024, 1} }, |
| 7977 | .block_erase = spi_block_erase_c7, |
| 7978 | } |
| 7979 | }, |
| 7980 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 7981 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 7982 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 7983 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 7984 | .voltage = {1700, 2000}, |
| 7985 | }, |
| 7986 | |
| 7987 | { |
| 7988 | .vendor = "Micron/Numonyx/ST", |
| 7989 | .name = "N25Q128..3E", /* ..3E = 3V, uniform 64KB/4KB blocks/sectors */ |
| 7990 | .bustype = BUS_SPI, |
| 7991 | .manufacture_id = ST_ID, |
| 7992 | .model_id = ST_N25Q128__3E, |
| 7993 | .total_size = 16384, |
| 7994 | .page_size = 256, |
| 7995 | /* supports SFDP */ |
| 7996 | /* OTP: 64B total; read 0x4B, write 0x42 */ |
| 7997 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 7998 | .tested = TEST_OK_PREW, |
| 7999 | .probe = probe_spi_rdid, |
| 8000 | .probe_timing = TIMING_ZERO, |
| 8001 | .block_erasers = { |
| 8002 | { |
| 8003 | .eraseblocks = { {4 * 1024, 4096 } }, |
| 8004 | .block_erase = spi_block_erase_20, |
| 8005 | }, { |
| 8006 | .eraseblocks = { {64 * 1024, 256} }, |
| 8007 | .block_erase = spi_block_erase_d8, |
| 8008 | }, { |
| 8009 | .eraseblocks = { {16384 * 1024, 1} }, |
| 8010 | .block_erase = spi_block_erase_c7, |
| 8011 | } |
| 8012 | }, |
| 8013 | .printlock = spi_prettyprint_status_register_n25q, /* TODO: config, lock, flag regs */ |
| 8014 | .unlock = spi_disable_blockprotect_n25q, /* TODO: per 64kB sector lock registers */ |
| 8015 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 8016 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 8017 | .voltage = {2700, 3600}, |
| 8018 | }, |
| 8019 | |
| 8020 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8021 | .vendor = "MoselVitelic", |
| 8022 | .name = "V29C51000B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8023 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8024 | .manufacture_id = SYNCMOS_MVC_ID, |
| 8025 | .model_id = MVC_V29C51000B, |
| 8026 | .total_size = 64, |
| 8027 | .page_size = 512, |
| 8028 | .feature_bits = FEATURE_EITHER_RESET, |
| 8029 | .tested = TEST_UNTESTED, |
| 8030 | .probe = probe_jedec, |
| 8031 | .probe_timing = TIMING_ZERO, |
| 8032 | .block_erasers = |
| 8033 | { |
| 8034 | { |
| 8035 | .eraseblocks = { {512, 128} }, |
| 8036 | .block_erase = erase_sector_jedec, |
| 8037 | }, { |
| 8038 | .eraseblocks = { {64 * 1024, 1} }, |
| 8039 | .block_erase = erase_chip_block_jedec, |
| 8040 | }, |
| 8041 | }, |
| 8042 | .write = write_jedec_1, |
| 8043 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8044 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8045 | }, |
| 8046 | |
| 8047 | { |
| 8048 | .vendor = "MoselVitelic", |
| 8049 | .name = "V29C51000T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8050 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8051 | .manufacture_id = SYNCMOS_MVC_ID, |
| 8052 | .model_id = MVC_V29C51000T, |
| 8053 | .total_size = 64, |
| 8054 | .page_size = 512, |
| 8055 | .feature_bits = FEATURE_EITHER_RESET, |
| 8056 | .tested = TEST_UNTESTED, |
| 8057 | .probe = probe_jedec, |
| 8058 | .probe_timing = TIMING_ZERO, |
| 8059 | .block_erasers = |
| 8060 | { |
| 8061 | { |
| 8062 | .eraseblocks = { {512, 128} }, |
| 8063 | .block_erase = erase_sector_jedec, |
| 8064 | }, { |
| 8065 | .eraseblocks = { {64 * 1024, 1} }, |
| 8066 | .block_erase = erase_chip_block_jedec, |
| 8067 | }, |
| 8068 | }, |
| 8069 | .write = write_jedec_1, |
| 8070 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8071 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8072 | }, |
| 8073 | |
| 8074 | { |
| 8075 | .vendor = "MoselVitelic", |
| 8076 | .name = "V29C51400B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8077 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8078 | .manufacture_id = SYNCMOS_MVC_ID, |
| 8079 | .model_id = MVC_V29C51400B, |
| 8080 | .total_size = 512, |
| 8081 | .page_size = 1024, |
| 8082 | .feature_bits = FEATURE_EITHER_RESET, |
| 8083 | .tested = TEST_UNTESTED, |
| 8084 | .probe = probe_jedec, |
| 8085 | .probe_timing = TIMING_ZERO, |
| 8086 | .block_erasers = |
| 8087 | { |
| 8088 | { |
| 8089 | .eraseblocks = { {1024, 512} }, |
| 8090 | .block_erase = erase_sector_jedec, |
| 8091 | }, { |
| 8092 | .eraseblocks = { {512 * 1024, 1} }, |
| 8093 | .block_erase = erase_chip_block_jedec, |
| 8094 | }, |
| 8095 | }, |
| 8096 | .write = write_jedec_1, |
| 8097 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8098 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8099 | }, |
| 8100 | |
| 8101 | { |
| 8102 | .vendor = "MoselVitelic", |
| 8103 | .name = "V29C51400T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8104 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8105 | .manufacture_id = SYNCMOS_MVC_ID, |
| 8106 | .model_id = MVC_V29C51400T, |
| 8107 | .total_size = 512, |
| 8108 | .page_size = 1024, |
| 8109 | .feature_bits = FEATURE_EITHER_RESET, |
| 8110 | .tested = TEST_UNTESTED, |
| 8111 | .probe = probe_jedec, |
| 8112 | .probe_timing = TIMING_ZERO, |
| 8113 | .block_erasers = |
| 8114 | { |
| 8115 | { |
| 8116 | .eraseblocks = { {1024, 512} }, |
| 8117 | .block_erase = erase_sector_jedec, |
| 8118 | }, { |
| 8119 | .eraseblocks = { {512 * 1024, 1} }, |
| 8120 | .block_erase = erase_chip_block_jedec, |
| 8121 | }, |
| 8122 | }, |
| 8123 | .write = write_jedec_1, |
| 8124 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8125 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8126 | }, |
| 8127 | |
| 8128 | { |
| 8129 | .vendor = "MoselVitelic", |
| 8130 | .name = "V29LC51000", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8131 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8132 | .manufacture_id = SYNCMOS_MVC_ID, |
| 8133 | .model_id = MVC_V29LC51000, |
| 8134 | .total_size = 64, |
| 8135 | .page_size = 512, |
| 8136 | .feature_bits = FEATURE_EITHER_RESET, |
| 8137 | .tested = TEST_UNTESTED, |
| 8138 | .probe = probe_jedec, |
| 8139 | .probe_timing = TIMING_ZERO, |
| 8140 | .block_erasers = |
| 8141 | { |
| 8142 | { |
| 8143 | .eraseblocks = { {512, 128} }, |
| 8144 | .block_erase = erase_sector_jedec, |
| 8145 | }, { |
| 8146 | .eraseblocks = { {64 * 1024, 1} }, |
| 8147 | .block_erase = erase_chip_block_jedec, |
| 8148 | }, |
| 8149 | }, |
| 8150 | .write = write_jedec_1, |
| 8151 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8152 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8153 | }, |
| 8154 | |
| 8155 | { |
| 8156 | .vendor = "MoselVitelic", |
| 8157 | .name = "V29LC51001", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8158 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8159 | .manufacture_id = SYNCMOS_MVC_ID, |
| 8160 | .model_id = MVC_V29LC51001, |
| 8161 | .total_size = 128, |
| 8162 | .page_size = 512, |
| 8163 | .feature_bits = FEATURE_EITHER_RESET, |
| 8164 | .tested = TEST_UNTESTED, |
| 8165 | .probe = probe_jedec, |
| 8166 | .probe_timing = TIMING_ZERO, |
| 8167 | .block_erasers = |
| 8168 | { |
| 8169 | { |
| 8170 | .eraseblocks = { {512, 256} }, |
| 8171 | .block_erase = erase_sector_jedec, |
| 8172 | }, { |
| 8173 | .eraseblocks = { {128 * 1024, 1} }, |
| 8174 | .block_erase = erase_chip_block_jedec, |
| 8175 | }, |
| 8176 | }, |
| 8177 | .write = write_jedec_1, |
| 8178 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8179 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8180 | }, |
| 8181 | |
| 8182 | { |
| 8183 | .vendor = "MoselVitelic", |
| 8184 | .name = "V29LC51002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8185 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8186 | .manufacture_id = SYNCMOS_MVC_ID, |
| 8187 | .model_id = MVC_V29LC51002, |
| 8188 | .total_size = 256, |
| 8189 | .page_size = 512, |
| 8190 | .feature_bits = FEATURE_EITHER_RESET, |
| 8191 | .tested = TEST_UNTESTED, |
| 8192 | .probe = probe_jedec, |
| 8193 | .probe_timing = TIMING_ZERO, |
| 8194 | .block_erasers = |
| 8195 | { |
| 8196 | { |
| 8197 | .eraseblocks = { {512, 512} }, |
| 8198 | .block_erase = erase_sector_jedec, |
| 8199 | }, { |
| 8200 | .eraseblocks = { {256 * 1024, 1} }, |
| 8201 | .block_erase = erase_chip_block_jedec, |
| 8202 | }, |
| 8203 | }, |
| 8204 | .write = write_jedec_1, |
| 8205 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8206 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 8207 | }, |
| 8208 | |
| 8209 | { |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 8210 | .vendor = "Nantronics", |
| 8211 | .name = "N25S10", |
| 8212 | .bustype = BUS_SPI, |
| 8213 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 8214 | .model_id = NANTRONICS_N25S10, |
| 8215 | .total_size = 128, |
| 8216 | .page_size = 256, |
| 8217 | .feature_bits = FEATURE_WRSR_WREN, |
| 8218 | .tested = TEST_UNTESTED, |
| 8219 | .probe = probe_spi_rdid, |
| 8220 | .probe_timing = TIMING_ZERO, |
| 8221 | .block_erasers = |
| 8222 | { |
| 8223 | { |
| 8224 | .eraseblocks = { {4 * 1024, 32} }, |
| 8225 | .block_erase = spi_block_erase_20, |
| 8226 | }, { |
| 8227 | .eraseblocks = { {4 * 1024, 32} }, |
| 8228 | .block_erase = spi_block_erase_d7, |
| 8229 | }, { |
| 8230 | .eraseblocks = { {32 * 1024, 4} }, |
| 8231 | .block_erase = spi_block_erase_52, |
| 8232 | }, { |
| 8233 | .eraseblocks = { {64 * 1024, 2} }, |
| 8234 | .block_erase = spi_block_erase_d8, |
| 8235 | }, { |
| 8236 | .eraseblocks = { {128 * 1024, 1} }, |
| 8237 | .block_erase = spi_block_erase_60, |
| 8238 | }, { |
| 8239 | .eraseblocks = { {128 * 1024, 1} }, |
| 8240 | .block_erase = spi_block_erase_c7, |
| 8241 | } |
| 8242 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8243 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 8244 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8245 | .write = spi_chip_write_256, |
| 8246 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 8247 | .voltage = {2700, 3600}, |
| 8248 | }, |
| 8249 | |
| 8250 | { |
| 8251 | .vendor = "Nantronics", |
| 8252 | .name = "N25S20", |
| 8253 | .bustype = BUS_SPI, |
| 8254 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 8255 | .model_id = NANTRONICS_N25S20, |
| 8256 | .total_size = 256, |
| 8257 | .page_size = 256, |
| 8258 | .feature_bits = FEATURE_WRSR_WREN, |
| 8259 | .tested = TEST_UNTESTED, |
| 8260 | .probe = probe_spi_rdid, |
| 8261 | .probe_timing = TIMING_ZERO, |
| 8262 | .block_erasers = |
| 8263 | { |
| 8264 | { |
| 8265 | .eraseblocks = { {4 * 1024, 64} }, |
| 8266 | .block_erase = spi_block_erase_20, |
| 8267 | }, { |
| 8268 | .eraseblocks = { {4 * 1024, 64} }, |
| 8269 | .block_erase = spi_block_erase_d7, |
| 8270 | }, { |
| 8271 | .eraseblocks = { {32 * 1024, 8} }, |
| 8272 | .block_erase = spi_block_erase_52, |
| 8273 | }, { |
| 8274 | .eraseblocks = { {64 * 1024, 4} }, |
| 8275 | .block_erase = spi_block_erase_d8, |
| 8276 | }, { |
| 8277 | .eraseblocks = { {256 * 1024, 1} }, |
| 8278 | .block_erase = spi_block_erase_60, |
| 8279 | }, { |
| 8280 | .eraseblocks = { {256 * 1024, 1} }, |
| 8281 | .block_erase = spi_block_erase_c7, |
| 8282 | } |
| 8283 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8284 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 8285 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8286 | .write = spi_chip_write_256, |
| 8287 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 8288 | .voltage = {2700, 3600}, |
| 8289 | }, |
| 8290 | |
| 8291 | { |
| 8292 | .vendor = "Nantronics", |
| 8293 | .name = "N25S40", |
| 8294 | .bustype = BUS_SPI, |
| 8295 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 8296 | .model_id = NANTRONICS_N25S40, |
| 8297 | .total_size = 512, |
| 8298 | .page_size = 256, |
| 8299 | .feature_bits = FEATURE_WRSR_WREN, |
| 8300 | .tested = TEST_UNTESTED, |
| 8301 | .probe = probe_spi_rdid, |
| 8302 | .probe_timing = TIMING_ZERO, |
| 8303 | .block_erasers = |
| 8304 | { |
| 8305 | { |
| 8306 | .eraseblocks = { {4 * 1024, 128} }, |
| 8307 | .block_erase = spi_block_erase_20, |
| 8308 | }, { |
| 8309 | .eraseblocks = { {4 * 1024, 128} }, |
| 8310 | .block_erase = spi_block_erase_d7, |
| 8311 | }, { |
| 8312 | .eraseblocks = { {32 * 1024, 16} }, |
| 8313 | .block_erase = spi_block_erase_52, |
| 8314 | }, { |
| 8315 | .eraseblocks = { {64 * 1024, 8} }, |
| 8316 | .block_erase = spi_block_erase_d8, |
| 8317 | }, { |
| 8318 | .eraseblocks = { {512 * 1024, 1} }, |
| 8319 | .block_erase = spi_block_erase_60, |
| 8320 | }, { |
| 8321 | .eraseblocks = { {512 * 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, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 8326 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8327 | .write = spi_chip_write_256, |
| 8328 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 8329 | .voltage = {2700, 3600}, |
| 8330 | }, |
| 8331 | |
| 8332 | { |
| 8333 | .vendor = "Nantronics", |
| 8334 | .name = "N25S80", |
| 8335 | .bustype = BUS_SPI, |
| 8336 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 8337 | .model_id = NANTRONICS_N25S80, |
| 8338 | .total_size = 1024, |
| 8339 | .page_size = 256, |
| 8340 | .feature_bits = FEATURE_WRSR_WREN, |
| 8341 | .tested = TEST_UNTESTED, |
| 8342 | .probe = probe_spi_rdid, |
| 8343 | .probe_timing = TIMING_ZERO, |
| 8344 | .block_erasers = |
| 8345 | { |
| 8346 | { |
| 8347 | .eraseblocks = { {4 * 1024, 256} }, |
| 8348 | .block_erase = spi_block_erase_20, |
| 8349 | }, { |
| 8350 | .eraseblocks = { {32 * 1024, 32} }, |
| 8351 | .block_erase = spi_block_erase_52, |
| 8352 | }, { |
| 8353 | .eraseblocks = { {64 * 1024, 16} }, |
| 8354 | .block_erase = spi_block_erase_d8, |
| 8355 | }, { |
| 8356 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8357 | .block_erase = spi_block_erase_60, |
| 8358 | }, { |
| 8359 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8360 | .block_erase = spi_block_erase_c7, |
| 8361 | } |
| 8362 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8363 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 8364 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8365 | .write = spi_chip_write_256, |
| 8366 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 8367 | .voltage = {2700, 3600}, |
| 8368 | }, |
| 8369 | |
| 8370 | { |
| 8371 | .vendor = "Nantronics", |
| 8372 | .name = "N25S16", |
| 8373 | .bustype = BUS_SPI, |
| 8374 | .manufacture_id = NANTRONICS_ID_NOPREFIX, |
| 8375 | .model_id = NANTRONICS_N25S16, |
| 8376 | .total_size = 2048, |
| 8377 | .page_size = 256, |
| 8378 | .feature_bits = FEATURE_WRSR_WREN, |
| 8379 | .tested = TEST_UNTESTED, |
| 8380 | .probe = probe_spi_rdid, |
| 8381 | .probe_timing = TIMING_ZERO, |
| 8382 | .block_erasers = |
| 8383 | { |
| 8384 | { |
| 8385 | .eraseblocks = { {4 * 1024, 512} }, |
| 8386 | .block_erase = spi_block_erase_20, |
| 8387 | }, { |
| 8388 | .eraseblocks = { {64 * 1024, 32} }, |
| 8389 | .block_erase = spi_block_erase_d8, |
| 8390 | }, { |
| 8391 | .eraseblocks = { {2048 * 1024, 1} }, |
| 8392 | .block_erase = spi_block_erase_60, |
| 8393 | }, { |
| 8394 | .eraseblocks = { {2048 * 1024, 1} }, |
| 8395 | .block_erase = spi_block_erase_c7, |
| 8396 | } |
| 8397 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8398 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Stefan Tauner | b6b00e9 | 2013-06-28 21:28:43 +0000 | [diff] [blame] | 8399 | .unlock = spi_disable_blockprotect_bp3_srwd, |
| 8400 | .write = spi_chip_write_256, |
| 8401 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O read (0x3B) supported */ |
| 8402 | .voltage = {2700, 3600}, |
| 8403 | }, |
| 8404 | |
| 8405 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8406 | .vendor = "PMC", |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 8407 | .name = "Pm25LD256C", |
| 8408 | .bustype = BUS_SPI, |
| 8409 | .manufacture_id = PMC_ID, |
| 8410 | .model_id = PMC_PM25LD256C, |
| 8411 | .total_size = 32, |
| 8412 | .page_size = 256, |
| 8413 | .feature_bits = FEATURE_WRSR_WREN, |
| 8414 | .tested = TEST_UNTESTED, |
| 8415 | .probe = probe_spi_rdid, |
| 8416 | .probe_timing = TIMING_ZERO, |
| 8417 | .block_erasers = |
| 8418 | { |
| 8419 | { |
| 8420 | .eraseblocks = { {4 * 1024, 8} }, |
| 8421 | .block_erase = spi_block_erase_20, |
| 8422 | }, { |
| 8423 | .eraseblocks = { {4 * 1024, 8} }, |
| 8424 | .block_erase = spi_block_erase_d7, |
| 8425 | }, { |
| 8426 | .eraseblocks = { {32 * 1024, 1} }, |
| 8427 | .block_erase = spi_block_erase_d8, |
| 8428 | }, { |
| 8429 | .eraseblocks = { {32 * 1024, 1} }, |
| 8430 | .block_erase = spi_block_erase_60, |
| 8431 | }, { |
| 8432 | .eraseblocks = { {32 * 1024, 1} }, |
| 8433 | .block_erase = spi_block_erase_c7, |
| 8434 | } |
| 8435 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8436 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 8437 | .unlock = spi_disable_blockprotect, |
| 8438 | .write = spi_chip_write_256, |
| 8439 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 8440 | .voltage = {2700, 3600}, |
| 8441 | }, |
| 8442 | { |
| 8443 | .vendor = "PMC", |
| 8444 | .name = "Pm25LD512(C)", |
| 8445 | .bustype = BUS_SPI, |
| 8446 | .manufacture_id = PMC_ID, |
| 8447 | .model_id = PMC_PM25LD512, |
| 8448 | .total_size = 64, |
| 8449 | .page_size = 256, |
| 8450 | .feature_bits = FEATURE_WRSR_WREN, |
| 8451 | .tested = TEST_OK_PREW, |
| 8452 | .probe = probe_spi_rdid, |
| 8453 | .probe_timing = TIMING_ZERO, |
| 8454 | .block_erasers = |
| 8455 | { |
| 8456 | { |
| 8457 | .eraseblocks = { {4 * 1024, 16} }, |
| 8458 | .block_erase = spi_block_erase_20, |
| 8459 | }, { |
| 8460 | .eraseblocks = { {4 * 1024, 16} }, |
| 8461 | .block_erase = spi_block_erase_d7, |
| 8462 | }, { |
| 8463 | .eraseblocks = { {32 * 1024, 2} }, |
| 8464 | .block_erase = spi_block_erase_d8, |
| 8465 | }, { |
| 8466 | .eraseblocks = { {64 * 1024, 1} }, |
| 8467 | .block_erase = spi_block_erase_60, |
| 8468 | }, { |
| 8469 | .eraseblocks = { {64 * 1024, 1} }, |
| 8470 | .block_erase = spi_block_erase_c7, |
| 8471 | } |
| 8472 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8473 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 8474 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 8475 | .write = spi_chip_write_256, |
| 8476 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 8477 | .voltage = {2300, 3600}, |
| 8478 | }, |
| 8479 | |
| 8480 | { |
| 8481 | .vendor = "PMC", |
| 8482 | .name = "Pm25LD010(C)", |
| 8483 | .bustype = BUS_SPI, |
| 8484 | .manufacture_id = PMC_ID, |
| 8485 | .model_id = PMC_PM25LD010, |
| 8486 | .total_size = 128, |
| 8487 | .page_size = 256, |
| 8488 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 8489 | .tested = TEST_OK_PREW, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 8490 | .probe = probe_spi_rdid, |
| 8491 | .probe_timing = TIMING_ZERO, |
| 8492 | .block_erasers = |
| 8493 | { |
| 8494 | { |
| 8495 | .eraseblocks = { {4 * 1024, 32} }, |
| 8496 | .block_erase = spi_block_erase_20, |
| 8497 | }, { |
| 8498 | .eraseblocks = { {4 * 1024, 32} }, |
| 8499 | .block_erase = spi_block_erase_d7, |
| 8500 | }, { |
| 8501 | .eraseblocks = { {32 * 1024, 4} }, |
| 8502 | .block_erase = spi_block_erase_d8, |
| 8503 | }, { |
| 8504 | .eraseblocks = { {128 * 1024, 1} }, |
| 8505 | .block_erase = spi_block_erase_60, |
| 8506 | }, { |
| 8507 | .eraseblocks = { {128 * 1024, 1} }, |
| 8508 | .block_erase = spi_block_erase_c7, |
| 8509 | } |
| 8510 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8511 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 8512 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 8513 | .write = spi_chip_write_256, |
| 8514 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 8515 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD010 */ |
| 8516 | }, |
| 8517 | |
| 8518 | { |
| 8519 | .vendor = "PMC", |
| 8520 | .name = "Pm25LD020(C)", |
| 8521 | .bustype = BUS_SPI, |
| 8522 | .manufacture_id = PMC_ID, |
| 8523 | .model_id = PMC_PM25LD020, |
| 8524 | .total_size = 256, |
| 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, 64} }, |
| 8534 | .block_erase = spi_block_erase_20, |
| 8535 | }, { |
| 8536 | .eraseblocks = { {4 * 1024, 64} }, |
| 8537 | .block_erase = spi_block_erase_d7, |
| 8538 | }, { |
| 8539 | .eraseblocks = { {64 * 1024, 4} }, |
| 8540 | .block_erase = spi_block_erase_d8, |
| 8541 | }, { |
| 8542 | .eraseblocks = { {256 * 1024, 1} }, |
| 8543 | .block_erase = spi_block_erase_60, |
| 8544 | }, { |
| 8545 | .eraseblocks = { {256 * 1024, 1} }, |
| 8546 | .block_erase = spi_block_erase_c7, |
| 8547 | } |
| 8548 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8549 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 8550 | .unlock = spi_disable_blockprotect, /* FIXME: C version supports "Safe Guard" */ |
| 8551 | .write = spi_chip_write_256, |
| 8552 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 8553 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD020 */ |
| 8554 | }, |
| 8555 | |
| 8556 | { |
| 8557 | .vendor = "PMC", |
| 8558 | .name = "Pm25LD040(C)", |
| 8559 | .bustype = BUS_SPI, |
| 8560 | .manufacture_id = PMC_ID, |
| 8561 | .model_id = PMC_PM25LV040, |
| 8562 | .total_size = 512, |
| 8563 | .page_size = 256, |
| 8564 | .feature_bits = FEATURE_WRSR_WREN, |
| 8565 | .tested = TEST_UNTESTED, |
| 8566 | .probe = probe_spi_rdid, |
| 8567 | .probe_timing = TIMING_ZERO, |
| 8568 | .block_erasers = |
| 8569 | { |
| 8570 | { |
| 8571 | .eraseblocks = { {4 * 1024, 128} }, |
| 8572 | .block_erase = spi_block_erase_20, |
| 8573 | }, { |
| 8574 | .eraseblocks = { {4 * 1024, 128} }, |
| 8575 | .block_erase = spi_block_erase_d7, |
| 8576 | }, { |
| 8577 | .eraseblocks = { {64 * 1024, 8} }, |
| 8578 | .block_erase = spi_block_erase_d8, |
| 8579 | }, { |
| 8580 | .eraseblocks = { {512 * 1024, 1} }, |
| 8581 | .block_erase = spi_block_erase_60, |
| 8582 | }, { |
| 8583 | .eraseblocks = { {512 * 1024, 1} }, |
| 8584 | .block_erase = spi_block_erase_c7, |
| 8585 | } |
| 8586 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8587 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Stefan Tauner | f445161 | 2013-04-19 01:59:15 +0000 | [diff] [blame] | 8588 | .unlock = spi_disable_blockprotect, |
| 8589 | .write = spi_chip_write_256, |
| 8590 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O supported */ |
| 8591 | .voltage = {2700, 3600}, /* 2.3-3.6V for Pm25LD040 */ |
| 8592 | }, |
| 8593 | |
| 8594 | { |
| 8595 | .vendor = "PMC", |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8596 | .name = "Pm25LV512(A)", |
| 8597 | .bustype = BUS_SPI, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 8598 | .manufacture_id = PMC_ID_NOPREFIX, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8599 | .model_id = PMC_PM25LV512, |
| 8600 | .total_size = 64, |
| 8601 | .page_size = 256, |
| 8602 | .feature_bits = FEATURE_WRSR_WREN, |
| 8603 | .tested = TEST_UNTESTED, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 8604 | .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] | 8605 | .probe_timing = TIMING_ZERO, |
| 8606 | .block_erasers = |
| 8607 | { |
| 8608 | { |
| 8609 | .eraseblocks = { {4 * 1024, 16} }, |
| 8610 | .block_erase = spi_block_erase_d7, |
| 8611 | }, { |
| 8612 | .eraseblocks = { {32 * 1024, 2} }, |
| 8613 | .block_erase = spi_block_erase_d8, |
| 8614 | }, { |
| 8615 | .eraseblocks = { {64 * 1024, 1} }, |
| 8616 | .block_erase = spi_block_erase_c7, |
| 8617 | } |
| 8618 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8619 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8620 | .unlock = spi_disable_blockprotect, |
| 8621 | .write = spi_chip_write_256, |
| 8622 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8623 | .voltage = {2700, 3600}, |
| 8624 | }, |
| 8625 | |
| 8626 | { |
| 8627 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8628 | .name = "Pm25LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8629 | .bustype = BUS_SPI, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 8630 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8631 | .model_id = PMC_PM25LV010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8632 | .total_size = 128, |
| 8633 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8634 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | becda74 | 2014-05-30 19:34:00 +0000 | [diff] [blame] | 8635 | .tested = TEST_OK_PREW, |
| 8636 | .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] | 8637 | .probe_timing = TIMING_ZERO, |
| 8638 | .block_erasers = |
| 8639 | { |
| 8640 | { |
| 8641 | .eraseblocks = { {4 * 1024, 32} }, |
| 8642 | .block_erase = spi_block_erase_d7, |
| 8643 | }, { |
| 8644 | .eraseblocks = { {32 * 1024, 4} }, |
| 8645 | .block_erase = spi_block_erase_d8, |
| 8646 | }, { |
| 8647 | .eraseblocks = { {128 * 1024, 1} }, |
| 8648 | .block_erase = spi_block_erase_c7, |
| 8649 | } |
| 8650 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8651 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8652 | .unlock = spi_disable_blockprotect, |
| 8653 | .write = spi_chip_write_256, |
| 8654 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 8655 | .voltage = {2700, 3600}, |
| 8656 | }, |
| 8657 | |
| 8658 | { |
| 8659 | .vendor = "PMC", |
| 8660 | .name = "Pm25LV010A", |
| 8661 | .bustype = BUS_SPI, |
| 8662 | .manufacture_id = PMC_ID, |
| 8663 | .model_id = PMC_PM25LV010, |
| 8664 | .total_size = 128, |
| 8665 | .page_size = 256, |
| 8666 | .feature_bits = FEATURE_WRSR_WREN, |
| 8667 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8668 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8669 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8670 | .block_erasers = |
| 8671 | { |
| 8672 | { |
| 8673 | .eraseblocks = { {4 * 1024, 32} }, |
| 8674 | .block_erase = spi_block_erase_d7, |
| 8675 | }, { |
| 8676 | .eraseblocks = { {32 * 1024, 4} }, |
| 8677 | .block_erase = spi_block_erase_d8, |
| 8678 | }, { |
| 8679 | .eraseblocks = { {128 * 1024, 1} }, |
| 8680 | .block_erase = spi_block_erase_c7, |
| 8681 | } |
| 8682 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8683 | .printlock = spi_prettyprint_status_register_bp1_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8684 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8685 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8686 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 8687 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8688 | }, |
| 8689 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8690 | { |
| 8691 | .vendor = "PMC", |
| 8692 | .name = "Pm25LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8693 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8694 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8695 | .model_id = PMC_PM25LV020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8696 | .total_size = 256, |
| 8697 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8698 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8699 | .tested = TEST_UNTESTED, |
| 8700 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8701 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8702 | .block_erasers = |
| 8703 | { |
| 8704 | { |
| 8705 | .eraseblocks = { {4 * 1024, 64} }, |
| 8706 | .block_erase = spi_block_erase_d7, |
| 8707 | }, { |
| 8708 | .eraseblocks = { {64 * 1024, 4} }, |
| 8709 | .block_erase = spi_block_erase_d8, |
| 8710 | }, { |
| 8711 | .eraseblocks = { {256 * 1024, 1} }, |
| 8712 | .block_erase = spi_block_erase_c7, |
| 8713 | } |
| 8714 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8715 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8716 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8717 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8718 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8719 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8720 | }, |
| 8721 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8722 | { |
| 8723 | .vendor = "PMC", |
| 8724 | .name = "Pm25LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8725 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8726 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8727 | .model_id = PMC_PM25LV040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8728 | .total_size = 512, |
| 8729 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8730 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 8731 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8732 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8733 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8734 | .block_erasers = |
| 8735 | { |
| 8736 | { |
| 8737 | .eraseblocks = { {4 * 1024, 128} }, |
| 8738 | .block_erase = spi_block_erase_d7, |
| 8739 | }, { |
| 8740 | .eraseblocks = { {64 * 1024, 8} }, |
| 8741 | .block_erase = spi_block_erase_d8, |
| 8742 | }, { |
| 8743 | .eraseblocks = { {512 * 1024, 1} }, |
| 8744 | .block_erase = spi_block_erase_c7, |
| 8745 | } |
| 8746 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8747 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8748 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8749 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8750 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8751 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8752 | }, |
| 8753 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8754 | { |
| 8755 | .vendor = "PMC", |
| 8756 | .name = "Pm25LV080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8757 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8758 | .manufacture_id = PMC_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8759 | .model_id = PMC_PM25LV080B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8760 | .total_size = 1024, |
| 8761 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8762 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8763 | .tested = TEST_UNTESTED, |
| 8764 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8765 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8766 | .block_erasers = |
| 8767 | { |
| 8768 | { |
| 8769 | .eraseblocks = { {4 * 1024, 256} }, |
| 8770 | .block_erase = spi_block_erase_d7, |
| 8771 | }, { |
| 8772 | .eraseblocks = { {4 * 1024, 256} }, |
| 8773 | .block_erase = spi_block_erase_20, |
| 8774 | }, { |
| 8775 | .eraseblocks = { {64 * 1024, 16} }, |
| 8776 | .block_erase = spi_block_erase_d8, |
| 8777 | }, { |
| 8778 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8779 | .block_erase = spi_block_erase_60, |
| 8780 | }, { |
| 8781 | .eraseblocks = { {1024 * 1024, 1} }, |
| 8782 | .block_erase = spi_block_erase_c7, |
| 8783 | } |
| 8784 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8785 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8786 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8787 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8788 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8789 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8790 | }, |
| 8791 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8792 | { |
| 8793 | .vendor = "PMC", |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8794 | .name = "Pm25LV016B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8795 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8796 | .manufacture_id = PMC_ID, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8797 | .model_id = PMC_PM25LV016B, |
| 8798 | .total_size = 2048, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8799 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 8800 | .feature_bits = FEATURE_WRSR_WREN, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8801 | .tested = TEST_UNTESTED, |
| 8802 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 8803 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8804 | .block_erasers = |
| 8805 | { |
| 8806 | { |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8807 | .eraseblocks = { {4 * 1024, 512} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8808 | .block_erase = spi_block_erase_d7, |
| 8809 | }, { |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8810 | .eraseblocks = { {4 * 1024, 512} }, |
| 8811 | .block_erase = spi_block_erase_20, |
| 8812 | }, { |
| 8813 | .eraseblocks = { {64 * 1024, 32} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8814 | .block_erase = spi_block_erase_d8, |
| 8815 | }, { |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8816 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 8817 | .block_erase = spi_block_erase_60, |
| 8818 | }, { |
| 8819 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8820 | .block_erase = spi_block_erase_c7, |
| 8821 | } |
| 8822 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 8823 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 8824 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 8825 | .write = spi_chip_write_256, |
Stefan Tauner | 3f5e35d | 2013-04-19 01:58:33 +0000 | [diff] [blame] | 8826 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 8827 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 8828 | }, |
| 8829 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 8830 | { |
| 8831 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8832 | .name = "Pm29F002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8833 | .bustype = BUS_PARALLEL, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8834 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8835 | .model_id = PMC_PM29F002T, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8836 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8837 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8838 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 8839 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8840 | .probe = probe_jedec, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 8841 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8842 | .block_erasers = |
| 8843 | { |
| 8844 | { |
| 8845 | .eraseblocks = { |
| 8846 | {128 * 1024, 1}, |
| 8847 | {96 * 1024, 1}, |
| 8848 | {8 * 1024, 2}, |
| 8849 | {16 * 1024, 1}, |
| 8850 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8851 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8852 | }, { |
| 8853 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8854 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8855 | }, |
| 8856 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8857 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8858 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8859 | .voltage = {4500, 5500}, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8860 | }, |
| 8861 | |
| 8862 | { |
| 8863 | .vendor = "PMC", |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8864 | .name = "Pm29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8865 | .bustype = BUS_PARALLEL, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8866 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8867 | .model_id = PMC_PM29F002B, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8868 | .total_size = 256, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8869 | .page_size = 8 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8870 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8871 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8872 | .probe = probe_jedec, |
Stefan Tauner | 1aa80b0 | 2013-07-25 22:58:51 +0000 | [diff] [blame] | 8873 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8874 | .block_erasers = |
| 8875 | { |
| 8876 | { |
| 8877 | .eraseblocks = { |
| 8878 | {16 * 1024, 1}, |
| 8879 | {8 * 1024, 2}, |
| 8880 | {96 * 1024, 1}, |
| 8881 | {128 * 1024, 1}, |
| 8882 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8883 | .block_erase = erase_sector_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8884 | }, { |
| 8885 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8886 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 8887 | }, |
| 8888 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8889 | .write = write_jedec_1, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8890 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8891 | .voltage = {4500, 5500}, |
Uwe Hermann | f983d9f | 2009-06-14 21:53:26 +0000 | [diff] [blame] | 8892 | }, |
| 8893 | |
| 8894 | { |
| 8895 | .vendor = "PMC", |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 8896 | .name = "Pm39LV010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8897 | .bustype = BUS_PARALLEL, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 8898 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8899 | .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] | 8900 | .total_size = 128, |
| 8901 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8902 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 8903 | .tested = TEST_OK_PREW, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 8904 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 8905 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 8906 | .block_erasers = |
| 8907 | { |
| 8908 | { |
| 8909 | .eraseblocks = { {4 * 1024, 32} }, |
| 8910 | .block_erase = erase_sector_jedec, |
| 8911 | }, { |
| 8912 | .eraseblocks = { {64 * 1024, 2} }, |
| 8913 | .block_erase = erase_block_jedec, |
| 8914 | }, { |
| 8915 | .eraseblocks = { {128 * 1024, 1} }, |
| 8916 | .block_erase = erase_chip_block_jedec, |
| 8917 | } |
| 8918 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 8919 | .write = write_jedec_1, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 8920 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8921 | .voltage = {2700, 3600}, |
Rudolf Marek | 50fdf3b | 2009-05-17 17:02:07 +0000 | [diff] [blame] | 8922 | }, |
| 8923 | |
| 8924 | { |
| 8925 | .vendor = "PMC", |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 8926 | .name = "Pm39LV020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8927 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 8928 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8929 | .model_id = PMC_PM39LV020, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 8930 | .total_size = 256, |
| 8931 | .page_size = 4096, |
| 8932 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 8933 | .tested = TEST_UNTESTED, |
| 8934 | .probe = probe_jedec, |
| 8935 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8936 | .block_erasers = |
| 8937 | { |
| 8938 | { |
| 8939 | .eraseblocks = { {4 * 1024, 64} }, |
| 8940 | .block_erase = erase_sector_jedec, |
| 8941 | }, { |
| 8942 | .eraseblocks = { {64 * 1024, 4} }, |
| 8943 | .block_erase = erase_block_jedec, |
| 8944 | }, { |
| 8945 | .eraseblocks = { {256 * 1024, 1} }, |
| 8946 | .block_erase = erase_chip_block_jedec, |
| 8947 | } |
| 8948 | }, |
| 8949 | .write = write_jedec_1, |
| 8950 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8951 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 8952 | }, |
| 8953 | |
| 8954 | { |
| 8955 | .vendor = "PMC", |
| 8956 | .name = "Pm39LV040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 8957 | .bustype = BUS_PARALLEL, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 8958 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 8959 | .model_id = PMC_PM39LV040, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 8960 | .total_size = 512, |
| 8961 | .page_size = 4096, |
| 8962 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 8963 | .tested = TEST_OK_PR, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 8964 | .probe = probe_jedec, |
| 8965 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8966 | .block_erasers = |
| 8967 | { |
| 8968 | { |
| 8969 | .eraseblocks = { {4 * 1024, 128} }, |
| 8970 | .block_erase = erase_sector_jedec, |
| 8971 | }, { |
| 8972 | .eraseblocks = { {64 * 1024, 8} }, |
| 8973 | .block_erase = erase_block_jedec, |
| 8974 | }, { |
| 8975 | .eraseblocks = { {512 * 1024, 1} }, |
| 8976 | .block_erase = erase_chip_block_jedec, |
| 8977 | } |
| 8978 | }, |
| 8979 | .write = write_jedec_1, |
| 8980 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 8981 | .voltage = {2700, 3600}, |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 8982 | }, |
Kyösti Mälkki | edab1d2 | 2012-05-20 23:32:33 +0000 | [diff] [blame] | 8983 | |
| 8984 | { |
| 8985 | .vendor = "PMC", |
| 8986 | .name = "Pm39LV512", |
| 8987 | .bustype = BUS_PARALLEL, |
| 8988 | .manufacture_id = PMC_ID_NOPREFIX, |
| 8989 | .model_id = PMC_PM39LV512, |
| 8990 | .total_size = 64, |
| 8991 | .page_size = 4096, |
| 8992 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 8993 | .tested = TEST_OK_PREW, |
| 8994 | .probe = probe_jedec, |
| 8995 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 8996 | .block_erasers = |
| 8997 | { |
| 8998 | { |
| 8999 | .eraseblocks = { {4 * 1024, 16} }, |
| 9000 | .block_erase = erase_sector_jedec, |
| 9001 | }, { |
| 9002 | .eraseblocks = { {64 * 1024, 1} }, |
| 9003 | .block_erase = erase_block_jedec, |
| 9004 | }, { |
| 9005 | .eraseblocks = { {64 * 1024, 1} }, |
| 9006 | .block_erase = erase_chip_block_jedec, |
| 9007 | } |
| 9008 | }, |
| 9009 | .write = write_jedec_1, |
| 9010 | .read = read_memmapped, |
| 9011 | .voltage = {2700, 3600}, |
| 9012 | }, |
| 9013 | |
Anders Juel Jensen | dfdc56f | 2010-03-27 23:25:14 +0000 | [diff] [blame] | 9014 | { |
| 9015 | .vendor = "PMC", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9016 | .name = "Pm49FL002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9017 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9018 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9019 | .model_id = PMC_PM49FL002, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9020 | .total_size = 256, |
| 9021 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9022 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | d06d941 | 2011-06-12 19:47:55 +0000 | [diff] [blame] | 9023 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 9024 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 9025 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 9026 | .block_erasers = |
| 9027 | { |
| 9028 | { |
| 9029 | .eraseblocks = { {4 * 1024, 64} }, |
| 9030 | .block_erase = erase_sector_jedec, |
| 9031 | }, { |
| 9032 | .eraseblocks = { {16 * 1024, 16} }, |
| 9033 | .block_erase = erase_block_jedec, |
| 9034 | }, { |
| 9035 | .eraseblocks = { {256 * 1024, 1} }, |
| 9036 | .block_erase = erase_chip_block_jedec, |
| 9037 | } |
| 9038 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 9039 | .unlock = unlock_49fl00x, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 9040 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9041 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9042 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9043 | }, |
| 9044 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9045 | { |
| 9046 | .vendor = "PMC", |
| 9047 | .name = "Pm49FL004", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9048 | .bustype = BUS_LPC | BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9049 | .manufacture_id = PMC_ID_NOPREFIX, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 9050 | .model_id = PMC_PM49FL004, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9051 | .total_size = 512, |
| 9052 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 9053 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 9054 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 9055 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 9056 | .probe_timing = TIMING_ZERO, /* routine is wrapper to probe_jedec (pm49fl00x.c) */ |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 9057 | .block_erasers = |
| 9058 | { |
| 9059 | { |
| 9060 | .eraseblocks = { {4 * 1024, 128} }, |
| 9061 | .block_erase = erase_sector_jedec, |
| 9062 | }, { |
| 9063 | .eraseblocks = { {64 * 1024, 8} }, |
| 9064 | .block_erase = erase_block_jedec, |
| 9065 | }, { |
| 9066 | .eraseblocks = { {512 * 1024, 1} }, |
| 9067 | .block_erase = erase_chip_block_jedec, |
| 9068 | } |
| 9069 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 9070 | .unlock = unlock_49fl00x, |
Sean Nelson | 3617234 | 2010-02-27 18:01:15 +0000 | [diff] [blame] | 9071 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9072 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9073 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9074 | }, |
| 9075 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9076 | { |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 9077 | .vendor = "Sanyo", |
Stefan Tauner | 33491b8 | 2014-05-18 21:36:04 +0000 | [diff] [blame] | 9078 | .name = "LE25FW406A", |
| 9079 | .bustype = BUS_SPI, |
| 9080 | .manufacture_id = SANYO_ID, |
| 9081 | .model_id = SANYO_LE25FW406A, |
| 9082 | .total_size = 512, |
| 9083 | .page_size = 256, |
| 9084 | .feature_bits = FEATURE_WRSR_WREN, |
| 9085 | .tested = TEST_OK_PREW, |
| 9086 | .probe = probe_spi_res2, |
| 9087 | .probe_timing = TIMING_ZERO, |
| 9088 | .block_erasers = { |
| 9089 | { |
| 9090 | .eraseblocks = { {4 * 1024, 128} }, |
| 9091 | .block_erase = spi_block_erase_d7, |
| 9092 | }, { |
| 9093 | .eraseblocks = { {64 * 1024, 8} }, |
| 9094 | .block_erase = spi_block_erase_d8, |
| 9095 | }, { |
| 9096 | .eraseblocks = { {512 * 1024, 1} }, |
| 9097 | .block_erase = spi_block_erase_c7, |
| 9098 | } |
| 9099 | }, |
| 9100 | .printlock = spi_prettyprint_status_register_plain, |
| 9101 | .unlock = spi_disable_blockprotect, |
| 9102 | .write = spi_chip_write_256, |
| 9103 | .read = spi_chip_read, |
| 9104 | .voltage = {2700, 3600}, |
| 9105 | }, |
| 9106 | |
| 9107 | { |
| 9108 | .vendor = "Sanyo", |
Jurij Munda | a1e5374 | 2014-05-14 13:19:50 +0000 | [diff] [blame] | 9109 | .name = "LE25FU406B", |
| 9110 | .bustype = BUS_SPI, |
| 9111 | .manufacture_id = SANYO_ID, |
| 9112 | .model_id = SANYO_LE25FU406B, |
| 9113 | .total_size = 512, |
| 9114 | .page_size = 256, |
| 9115 | .feature_bits = FEATURE_WRSR_WREN, |
| 9116 | .tested = TEST_OK_PREW, |
| 9117 | .probe = probe_spi_res2, |
| 9118 | .probe_timing = TIMING_ZERO, |
| 9119 | .block_erasers = { |
| 9120 | { |
| 9121 | .eraseblocks = { {4 * 1024, 128} }, |
| 9122 | .block_erase = spi_block_erase_d7, |
| 9123 | }, { |
| 9124 | .eraseblocks = { {64 * 1024, 8} }, |
| 9125 | .block_erase = spi_block_erase_d8, |
| 9126 | }, { |
| 9127 | .eraseblocks = { {512 * 1024, 1} }, |
| 9128 | .block_erase = spi_block_erase_c7, |
| 9129 | } |
| 9130 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9131 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Jurij Munda | a1e5374 | 2014-05-14 13:19:50 +0000 | [diff] [blame] | 9132 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 9133 | .write = spi_chip_write_256, |
| 9134 | .read = spi_chip_read, |
| 9135 | .voltage = {2300, 3600}, |
| 9136 | }, |
| 9137 | |
| 9138 | { |
| 9139 | .vendor = "Sanyo", |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 9140 | .name = "LE25FW203A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9141 | .bustype = BUS_SPI, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 9142 | .manufacture_id = SANYO_ID, |
| 9143 | .model_id = SANYO_LE25FW203A, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 9144 | .total_size = 256, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 9145 | .page_size = 256, |
| 9146 | .tested = TEST_UNTESTED, |
| 9147 | .probe = probe_spi_rdid, |
| 9148 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 9149 | .block_erasers = |
| 9150 | { |
| 9151 | { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 9152 | .eraseblocks = { {256, 1024} }, |
| 9153 | .block_erase = spi_block_erase_db, |
| 9154 | }, { |
| 9155 | .eraseblocks = { {64 * 1024, 4} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 9156 | .block_erase = spi_block_erase_d8, |
| 9157 | }, { |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 9158 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 9159 | .block_erase = spi_block_erase_c7, |
| 9160 | } |
| 9161 | }, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 9162 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 9163 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 9164 | .write = spi_chip_write_256, |
| 9165 | .read = spi_chip_read, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 9166 | .voltage = {2700, 3600}, |
| 9167 | }, |
| 9168 | |
| 9169 | { |
| 9170 | .vendor = "Sanyo", |
| 9171 | .name = "LE25FW403A", |
| 9172 | .bustype = BUS_SPI, |
| 9173 | .manufacture_id = SANYO_ID, |
| 9174 | .model_id = SANYO_LE25FW403A, |
| 9175 | .total_size = 512, |
| 9176 | .page_size = 256, |
| 9177 | .tested = TEST_UNTESTED, |
| 9178 | .probe = probe_spi_rdid, |
| 9179 | .probe_timing = TIMING_ZERO, |
| 9180 | .block_erasers = { |
| 9181 | { |
| 9182 | .eraseblocks = { {256, 2 * 1024} }, |
| 9183 | .block_erase = spi_block_erase_db, |
| 9184 | }, { |
| 9185 | .eraseblocks = { {64 * 1024, 8} }, |
| 9186 | .block_erase = spi_block_erase_d8, |
| 9187 | }, { |
| 9188 | .eraseblocks = { {512 * 1024, 1} }, |
| 9189 | .block_erase = spi_block_erase_c7, |
| 9190 | } |
| 9191 | }, |
| 9192 | .printlock = spi_prettyprint_status_register_default_welwip, |
| 9193 | .unlock = NULL, /* #WP pin write-protects lower 64kB. */ |
| 9194 | .write = spi_chip_write_256, |
| 9195 | .read = spi_chip_read, |
| 9196 | .voltage = {2700, 3600}, |
| 9197 | }, |
| 9198 | |
| 9199 | { |
| 9200 | .vendor = "Sanyo", |
| 9201 | .name = "LE25FW418A", |
| 9202 | .bustype = BUS_SPI, |
| 9203 | .manufacture_id = SANYO_ID, |
| 9204 | .model_id = SANYO_LE25FW418A, |
| 9205 | .total_size = 512, |
| 9206 | .page_size = 256, |
| 9207 | .feature_bits = FEATURE_WRSR_WREN, |
| 9208 | .tested = TEST_UNTESTED, |
| 9209 | .probe = probe_spi_res2, |
| 9210 | .probe_timing = TIMING_ZERO, |
| 9211 | .block_erasers = { |
| 9212 | { |
| 9213 | .eraseblocks = { {4 * 1024, 128} }, |
| 9214 | .block_erase = spi_block_erase_d7, |
| 9215 | }, { |
| 9216 | .eraseblocks = { {64 * 1024, 8} }, |
| 9217 | .block_erase = spi_block_erase_d8, |
| 9218 | }, { |
| 9219 | .eraseblocks = { {512 * 1024, 1} }, |
| 9220 | .block_erase = spi_block_erase_c7, |
| 9221 | } |
| 9222 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9223 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 9224 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 9225 | .write = spi_chip_write_256, |
| 9226 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 9227 | .voltage = {2700, 3600}, |
| 9228 | }, |
| 9229 | |
| 9230 | { |
| 9231 | .vendor = "Sanyo", |
| 9232 | .name = "LE25FW806", |
| 9233 | .bustype = BUS_SPI, |
| 9234 | .manufacture_id = SANYO_ID, |
| 9235 | .model_id = SANYO_LE25FW806, |
| 9236 | .total_size = 1024, |
| 9237 | .page_size = 256, |
| 9238 | .feature_bits = FEATURE_WRSR_WREN, |
| 9239 | .tested = TEST_UNTESTED, |
| 9240 | .probe = probe_spi_res2, |
| 9241 | .probe_timing = TIMING_ZERO, |
| 9242 | .block_erasers = { |
| 9243 | { |
| 9244 | .eraseblocks = { {4 * 1024, 256} }, |
| 9245 | .block_erase = spi_block_erase_20, |
| 9246 | }, { |
| 9247 | .eraseblocks = { {4 * 1024, 256} }, |
| 9248 | .block_erase = spi_block_erase_d7, |
| 9249 | }, { |
| 9250 | .eraseblocks = { {64 * 1024, 16} }, |
| 9251 | .block_erase = spi_block_erase_d8, |
| 9252 | }, { |
| 9253 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9254 | .block_erase = spi_block_erase_c7, |
| 9255 | } |
| 9256 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9257 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 9258 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 9259 | .write = spi_chip_write_256, |
| 9260 | .read = spi_chip_read, |
| 9261 | .voltage = {2700, 3600}, |
| 9262 | }, |
| 9263 | |
| 9264 | { |
| 9265 | .vendor = "Sanyo", |
| 9266 | .name = "LE25FW808", |
| 9267 | .bustype = BUS_SPI, |
| 9268 | .manufacture_id = SANYO_ID, |
| 9269 | .model_id = SANYO_LE25FW808, |
| 9270 | .total_size = 1024, |
| 9271 | .page_size = 256, |
| 9272 | .feature_bits = FEATURE_WRSR_WREN, |
| 9273 | .tested = TEST_UNTESTED, |
| 9274 | .probe = probe_spi_res2, |
| 9275 | .probe_timing = TIMING_ZERO, |
| 9276 | .block_erasers = { |
| 9277 | { |
| 9278 | .eraseblocks = { {8 * 1024, 128} }, |
| 9279 | .block_erase = spi_block_erase_d7, |
| 9280 | }, { |
| 9281 | .eraseblocks = { {64 * 1024, 16} }, |
| 9282 | .block_erase = spi_block_erase_d8, |
| 9283 | }, { |
| 9284 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9285 | .block_erase = spi_block_erase_c7, |
| 9286 | } |
| 9287 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9288 | .printlock = spi_prettyprint_status_register_bp2_srwd, |
Nikolay Nikolaev | 384de8e | 2013-06-28 21:28:49 +0000 | [diff] [blame] | 9289 | .unlock = spi_disable_blockprotect, /* #WP pin write-protects SRWP bit. */ |
| 9290 | .write = spi_chip_write_256, |
| 9291 | .read = spi_chip_read, /* some quad-read supported ("HD_READ mode") */ |
| 9292 | .voltage = {2700, 3600}, |
Sean Nelson | d70b09c | 2009-11-24 02:11:08 +0000 | [diff] [blame] | 9293 | }, |
| 9294 | |
| 9295 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9296 | .vendor = "Sharp", |
Mattias Mattsson | fca3b01 | 2011-08-25 22:44:11 +0000 | [diff] [blame] | 9297 | .name = "LH28F008BJT-BTLZ1", |
| 9298 | .bustype = BUS_PARALLEL, |
| 9299 | .manufacture_id = SHARP_ID, |
Stefan Tauner | 352e50b | 2013-02-22 15:58:45 +0000 | [diff] [blame] | 9300 | .model_id = SHARP_LH28F008BJ__PB, |
Mattias Mattsson | fca3b01 | 2011-08-25 22:44:11 +0000 | [diff] [blame] | 9301 | .total_size = 1024, |
| 9302 | .page_size = 64 * 1024, |
| 9303 | .tested = TEST_OK_PREW, |
| 9304 | .probe = probe_82802ab, |
| 9305 | .probe_timing = TIMING_ZERO, |
| 9306 | .block_erasers = |
| 9307 | { |
| 9308 | { |
| 9309 | .eraseblocks = { |
| 9310 | {8 * 1024, 8}, |
| 9311 | {64 * 1024, 15} |
| 9312 | }, |
| 9313 | .block_erase = erase_block_82802ab, |
| 9314 | }, { |
| 9315 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9316 | .block_erase = erase_sector_49lfxxxc, |
| 9317 | } |
| 9318 | }, |
| 9319 | .unlock = unlock_lh28f008bjt, |
| 9320 | .write = write_82802ab, |
| 9321 | .read = read_memmapped, |
| 9322 | .voltage = {2700, 3600}, |
| 9323 | }, |
| 9324 | |
| 9325 | { |
| 9326 | .vendor = "Sharp", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9327 | .name = "LHF00L04", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9328 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9329 | .manufacture_id = SHARP_ID, |
| 9330 | .model_id = SHARP_LHF00L04, |
| 9331 | .total_size = 1024, |
| 9332 | .page_size = 64 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9333 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9334 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 9335 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 9336 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 9337 | .block_erasers = |
| 9338 | { |
| 9339 | { |
| 9340 | .eraseblocks = { |
| 9341 | {64 * 1024, 15}, |
| 9342 | {8 * 1024, 8} |
| 9343 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 9344 | .block_erase = erase_block_82802ab, |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 9345 | }, { |
| 9346 | .eraseblocks = { |
| 9347 | {1024 * 1024, 1} |
| 9348 | }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 9349 | .block_erase = NULL, /* 30 D0, only in A/A mux mode */ |
Carl-Daniel Hailfinger | aca1dce | 2010-01-07 21:23:45 +0000 | [diff] [blame] | 9350 | }, |
| 9351 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 9352 | .unlock = unlock_82802ab, |
| 9353 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 9354 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9355 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9356 | }, |
| 9357 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9358 | { |
| 9359 | .vendor = "Spansion", |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9360 | .name = "S25FL004A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9361 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9362 | .manufacture_id = SPANSION_ID, |
| 9363 | .model_id = SPANSION_S25FL004A, |
| 9364 | .total_size = 512, |
| 9365 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9366 | .feature_bits = FEATURE_WRSR_WREN, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9367 | .tested = TEST_UNTESTED, |
| 9368 | .probe = probe_spi_rdid, |
| 9369 | .probe_timing = TIMING_ZERO, |
| 9370 | .block_erasers = |
| 9371 | { |
| 9372 | { |
| 9373 | .eraseblocks = { {64 * 1024, 8} }, |
| 9374 | .block_erase = spi_block_erase_d8, |
| 9375 | }, { |
| 9376 | .eraseblocks = { {512 * 1024, 1} }, |
| 9377 | .block_erase = spi_block_erase_c7, |
| 9378 | } |
| 9379 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9380 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9381 | .unlock = spi_disable_blockprotect, |
| 9382 | .write = spi_chip_write_256, |
| 9383 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 9384 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9385 | }, |
| 9386 | |
| 9387 | { |
| 9388 | .vendor = "Spansion", |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 9389 | .name = "S25FL008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9390 | .bustype = BUS_SPI, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 9391 | .manufacture_id = SPANSION_ID, |
| 9392 | .model_id = SPANSION_S25FL008A, |
| 9393 | .total_size = 1024, |
| 9394 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9395 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 9396 | .tested = TEST_OK_PRE, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 9397 | .probe = probe_spi_rdid, |
| 9398 | .probe_timing = TIMING_ZERO, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 9399 | .block_erasers = |
| 9400 | { |
| 9401 | { |
| 9402 | .eraseblocks = { {64 * 1024, 16} }, |
| 9403 | .block_erase = spi_block_erase_d8, |
| 9404 | }, { |
| 9405 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9406 | .block_erase = spi_block_erase_c7, |
| 9407 | } |
| 9408 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9409 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9410 | .unlock = spi_disable_blockprotect, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 9411 | .write = spi_chip_write_256, |
| 9412 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9413 | .voltage = {2700, 3600}, |
Michael Karcher | 23ff460 | 2010-01-12 23:29:30 +0000 | [diff] [blame] | 9414 | }, |
| 9415 | |
| 9416 | { |
| 9417 | .vendor = "Spansion", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9418 | .name = "S25FL016A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9419 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9420 | .manufacture_id = SPANSION_ID, |
| 9421 | .model_id = SPANSION_S25FL016A, |
| 9422 | .total_size = 2048, |
| 9423 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9424 | .feature_bits = FEATURE_WRSR_WREN, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 9425 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9426 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 9427 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 5643c07 | 2010-01-19 03:23:07 +0000 | [diff] [blame] | 9428 | .block_erasers = |
| 9429 | { |
| 9430 | { |
| 9431 | .eraseblocks = { {64 * 1024, 32} }, |
| 9432 | .block_erase = spi_block_erase_d8, |
| 9433 | }, { |
| 9434 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 9435 | .block_erase = spi_block_erase_c7, |
| 9436 | } |
| 9437 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9438 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 9439 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 9440 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9441 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 9442 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 9443 | }, |
| 9444 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9445 | { |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9446 | .vendor = "Spansion", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 9447 | .name = "S25FL032A/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9448 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9449 | .manufacture_id = SPANSION_ID, |
| 9450 | .model_id = SPANSION_S25FL032A, |
| 9451 | .total_size = 4096, |
| 9452 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9453 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 9454 | .tested = TEST_OK_PREW, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9455 | .probe = probe_spi_rdid, |
| 9456 | .probe_timing = TIMING_ZERO, |
| 9457 | .block_erasers = |
| 9458 | { |
| 9459 | { |
| 9460 | .eraseblocks = { {64 * 1024, 64} }, |
| 9461 | .block_erase = spi_block_erase_d8, |
| 9462 | }, { |
| 9463 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 9464 | .block_erase = spi_block_erase_c7, |
| 9465 | } |
| 9466 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9467 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9468 | .unlock = spi_disable_blockprotect, |
| 9469 | .write = spi_chip_write_256, |
| 9470 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 9471 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9472 | }, |
| 9473 | |
| 9474 | { |
| 9475 | .vendor = "Spansion", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 9476 | .name = "S25FL064A/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9477 | .bustype = BUS_SPI, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9478 | .manufacture_id = SPANSION_ID, |
| 9479 | .model_id = SPANSION_S25FL064A, |
| 9480 | .total_size = 8192, |
| 9481 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9482 | .feature_bits = FEATURE_WRSR_WREN, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9483 | .tested = TEST_OK_PREW, |
| 9484 | .probe = probe_spi_rdid, |
| 9485 | .probe_timing = TIMING_ZERO, |
| 9486 | .block_erasers = |
| 9487 | { |
| 9488 | { |
| 9489 | .eraseblocks = { {64 * 1024, 128} }, |
| 9490 | .block_erase = spi_block_erase_d8, |
| 9491 | }, { |
| 9492 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 9493 | .block_erase = spi_block_erase_c7, |
| 9494 | } |
| 9495 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9496 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9497 | .unlock = spi_disable_blockprotect, |
| 9498 | .write = spi_chip_write_256, |
| 9499 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 9500 | .voltage = {2700, 3600}, |
Rudy Host | f4e5777 | 2010-11-29 00:37:49 +0000 | [diff] [blame] | 9501 | }, |
| 9502 | |
| 9503 | { |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 9504 | .vendor = "Spansion", |
| 9505 | .name = "S25FL204K", |
| 9506 | .bustype = BUS_SPI, |
| 9507 | .manufacture_id = SPANSION_ID, |
| 9508 | .model_id = SPANSION_S25FL204, |
| 9509 | .total_size = 512, |
| 9510 | .page_size = 256, |
| 9511 | .feature_bits = FEATURE_WRSR_WREN, |
| 9512 | .tested = TEST_UNTESTED, |
| 9513 | .probe = probe_spi_rdid, |
| 9514 | .probe_timing = TIMING_ZERO, |
| 9515 | .block_erasers = { |
| 9516 | { |
| 9517 | .eraseblocks = { {4 * 1024, 128} }, |
| 9518 | .block_erase = spi_block_erase_20, |
| 9519 | }, { |
| 9520 | .eraseblocks = { {64 * 1024, 8} }, |
| 9521 | .block_erase = spi_block_erase_d8, |
| 9522 | }, { |
| 9523 | .eraseblocks = { { 512 * 1024, 1} }, |
| 9524 | .block_erase = spi_block_erase_60, |
| 9525 | }, { |
| 9526 | .eraseblocks = { { 512 * 1024, 1} }, |
| 9527 | .block_erase = spi_block_erase_c7, |
| 9528 | } |
| 9529 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9530 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 9531 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 9532 | .write = spi_chip_write_256, |
| 9533 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 9534 | .voltage = {2700, 3600}, |
| 9535 | }, |
| 9536 | |
| 9537 | { |
| 9538 | .vendor = "Spansion", |
| 9539 | .name = "S25FL208K", |
| 9540 | .bustype = BUS_SPI, |
| 9541 | .manufacture_id = SPANSION_ID, |
| 9542 | .model_id = SPANSION_S25FL208, |
| 9543 | .total_size = 1024, |
| 9544 | .page_size = 256, |
| 9545 | .feature_bits = FEATURE_WRSR_WREN, |
| 9546 | .tested = TEST_UNTESTED, |
| 9547 | .probe = probe_spi_rdid, |
| 9548 | .probe_timing = TIMING_ZERO, |
| 9549 | .block_erasers = { |
| 9550 | { |
| 9551 | .eraseblocks = { {4 * 1024, 256} }, |
| 9552 | .block_erase = spi_block_erase_20, |
| 9553 | }, { |
| 9554 | .eraseblocks = { {64 * 1024, 16} }, |
| 9555 | .block_erase = spi_block_erase_d8, |
| 9556 | }, { |
| 9557 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 9558 | .block_erase = spi_block_erase_60, |
| 9559 | }, { |
| 9560 | .eraseblocks = { { 1024 * 1024, 1} }, |
| 9561 | .block_erase = spi_block_erase_c7, |
| 9562 | } |
| 9563 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9564 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 9565 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 9566 | .write = spi_chip_write_256, |
| 9567 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 9568 | .voltage = {2700, 3600}, |
| 9569 | }, |
| 9570 | |
| 9571 | { |
| 9572 | .vendor = "Spansion", |
| 9573 | .name = "S25FL116K/S25FL216K", |
| 9574 | .bustype = BUS_SPI, |
| 9575 | .manufacture_id = SPANSION_ID, |
| 9576 | .model_id = SPANSION_S25FL216, |
| 9577 | .total_size = 2048, |
| 9578 | .page_size = 256, |
| 9579 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 (S25FL116K only) */ |
| 9580 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9581 | .tested = TEST_UNTESTED, |
| 9582 | .probe = probe_spi_rdid, |
| 9583 | .probe_timing = TIMING_ZERO, |
| 9584 | .block_erasers = { |
| 9585 | { |
| 9586 | .eraseblocks = { {4 * 1024, 512} }, |
| 9587 | .block_erase = spi_block_erase_20, |
| 9588 | }, { |
| 9589 | .eraseblocks = { {64 * 1024, 32} }, |
| 9590 | .block_erase = spi_block_erase_d8, |
| 9591 | }, { |
| 9592 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 9593 | .block_erase = spi_block_erase_60, |
| 9594 | }, { |
| 9595 | .eraseblocks = { { 2048 * 1024, 1} }, |
| 9596 | .block_erase = spi_block_erase_c7, |
| 9597 | } |
| 9598 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9599 | .printlock = spi_prettyprint_status_register_bp3_srwd, |
Nikolay Nikolaev | 0ec2f7e | 2013-06-28 21:29:36 +0000 | [diff] [blame] | 9600 | .unlock = spi_disable_blockprotect_bp3_srwd, /* #WP pin write-protects SRWP bit. */ |
| 9601 | .write = spi_chip_write_256, |
| 9602 | .read = spi_chip_read, /* Fast read (0x0B), dual I/O (0x3B) supported */ |
| 9603 | .voltage = {2700, 3600}, |
| 9604 | }, |
| 9605 | |
| 9606 | { |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 9607 | .vendor = "Spansion", |
Nikolay Martynov | 598968a | 2014-05-04 21:44:13 +0000 | [diff] [blame] | 9608 | .name = "S25FL132K", |
| 9609 | .bustype = BUS_SPI, |
| 9610 | .manufacture_id = SPANSION_ID, |
| 9611 | .model_id = SPANSION_S25FL132K, |
| 9612 | .total_size = 4096, |
| 9613 | .page_size = 256, |
| 9614 | /* OTP: 768B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 9615 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9616 | .tested = TEST_UNTESTED, |
| 9617 | .probe = probe_spi_rdid, |
| 9618 | .probe_timing = TIMING_ZERO, |
| 9619 | .block_erasers = { |
| 9620 | { |
| 9621 | .eraseblocks = { {4 * 1024, 1024} }, |
| 9622 | .block_erase = spi_block_erase_20, |
| 9623 | }, { |
| 9624 | .eraseblocks = { {64 * 1024, 64} }, |
| 9625 | .block_erase = spi_block_erase_d8, |
| 9626 | }, { |
| 9627 | .eraseblocks = { { 4096 * 1024, 1} }, |
| 9628 | .block_erase = spi_block_erase_60, |
| 9629 | }, { |
| 9630 | .eraseblocks = { { 4096 * 1024, 1} }, |
| 9631 | .block_erase = spi_block_erase_c7, |
| 9632 | } |
| 9633 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9634 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */ |
Nikolay Martynov | 598968a | 2014-05-04 21:44:13 +0000 | [diff] [blame] | 9635 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 9636 | .write = spi_chip_write_256, |
| 9637 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9638 | .voltage = {2700, 3600}, |
| 9639 | }, |
| 9640 | |
| 9641 | { |
| 9642 | .vendor = "Spansion", |
| 9643 | .name = "S25FL164K", |
| 9644 | .bustype = BUS_SPI, |
| 9645 | .manufacture_id = SPANSION_ID, |
| 9646 | .model_id = SPANSION_S25FL164K, |
| 9647 | .total_size = 8192, |
| 9648 | .page_size = 256, |
| 9649 | /* OTP: 1024B total, 256B reserved; read 0x48; write 0x42, erase 0x44 */ |
| 9650 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9651 | .tested = TEST_OK_PREW, |
| 9652 | .probe = probe_spi_rdid, |
| 9653 | .probe_timing = TIMING_ZERO, |
| 9654 | .block_erasers = { |
| 9655 | { |
| 9656 | .eraseblocks = { {4 * 1024, 2048} }, |
| 9657 | .block_erase = spi_block_erase_20, |
| 9658 | }, { |
| 9659 | .eraseblocks = { {64 * 1024, 128} }, |
| 9660 | .block_erase = spi_block_erase_d8, |
| 9661 | }, { |
| 9662 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 9663 | .block_erase = spi_block_erase_60, |
| 9664 | }, { |
| 9665 | .eraseblocks = { { 8192 * 1024, 1} }, |
| 9666 | .block_erase = spi_block_erase_c7, |
| 9667 | } |
| 9668 | }, |
Stefan Tauner | 12f3d51 | 2014-05-27 21:27:27 +0000 | [diff] [blame] | 9669 | .printlock = spi_prettyprint_status_register_bp2_srwd, /* TODO: improve */ |
Nikolay Martynov | 598968a | 2014-05-04 21:44:13 +0000 | [diff] [blame] | 9670 | .unlock = spi_disable_blockprotect_bp2_srwd, /* #WP pin write-protects SRWP bit. */ |
| 9671 | .write = spi_chip_write_256, |
| 9672 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9673 | .voltage = {2700, 3600}, |
| 9674 | }, |
| 9675 | |
| 9676 | { |
| 9677 | .vendor = "Spansion", |
Nikolay Nikolaev | c80c4a3 | 2013-06-28 21:29:44 +0000 | [diff] [blame] | 9678 | .name = "S25FL128S......0", /* uniform 256kB sectors */ |
| 9679 | .bustype = BUS_SPI, |
| 9680 | .manufacture_id = SPANSION_ID, |
| 9681 | .model_id = SPANSION_S25FL128, |
| 9682 | .total_size = 16384, |
| 9683 | .page_size = 256, |
| 9684 | /* supports 4B addressing */ |
| 9685 | /* OTP: 1024B total, 32B reserved; read 0x4B; write 0x42 */ |
| 9686 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 9687 | .tested = TEST_UNTESTED, |
| 9688 | .probe = probe_spi_rdid, |
| 9689 | .probe_timing = TIMING_ZERO, |
| 9690 | .block_erasers = { |
| 9691 | { |
| 9692 | .eraseblocks = { {4 * 1024, 4096} }, |
| 9693 | .block_erase = spi_block_erase_20, |
| 9694 | }, { |
| 9695 | .eraseblocks = { {256 * 1024, 64} }, |
| 9696 | .block_erase = spi_block_erase_d8, |
| 9697 | }, { |
| 9698 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 9699 | .block_erase = spi_block_erase_60, |
| 9700 | }, { |
| 9701 | .eraseblocks = { { 16384 * 1024, 1} }, |
| 9702 | .block_erase = spi_block_erase_c7, |
| 9703 | } |
| 9704 | }, |
| 9705 | .printlock = spi_prettyprint_status_register_bp2_ep_srwd, /* TODO: SR2 and many others */ |
| 9706 | .unlock = spi_disable_blockprotect_bp2_srwd, /* TODO: various other locks */ |
| 9707 | .write = spi_chip_write_256, /* Multi I/O supported */ |
| 9708 | .read = spi_chip_read, /* Fast read (0x0B) and multi I/O supported */ |
| 9709 | .voltage = {2700, 3600}, |
| 9710 | }, |
| 9711 | |
| 9712 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 9713 | .vendor = "SST", |
Idwer Vollering | f3607d1 | 2014-05-07 15:25:04 +0000 | [diff] [blame] | 9714 | .name = "SST25LF020A", |
| 9715 | .bustype = BUS_SPI, |
| 9716 | .manufacture_id = SST_ID, |
| 9717 | .model_id = SST_SST25VF020_REMS, |
| 9718 | .total_size = 256, |
| 9719 | .page_size = 256, |
| 9720 | .feature_bits = FEATURE_WRSR_EWSR, |
| 9721 | .tested = TEST_OK_PREW, |
| 9722 | .probe = probe_spi_rems, |
| 9723 | .probe_timing = TIMING_ZERO, |
| 9724 | .block_erasers = |
| 9725 | { |
| 9726 | { |
| 9727 | .eraseblocks = { {4 * 1024, 64} }, |
| 9728 | .block_erase = spi_block_erase_20, |
| 9729 | }, { |
| 9730 | .eraseblocks = { {32 * 1024, 8} }, |
| 9731 | .block_erase = spi_block_erase_52, |
| 9732 | }, { |
| 9733 | .eraseblocks = { {256 * 1024, 1} }, |
| 9734 | .block_erase = spi_block_erase_60, |
| 9735 | }, |
| 9736 | }, |
| 9737 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 9738 | .unlock = spi_disable_blockprotect, |
| 9739 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 9740 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9741 | .voltage = {2700, 3600}, |
| 9742 | }, |
| 9743 | |
| 9744 | { |
| 9745 | .vendor = "SST", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 9746 | .name = "SST25LF040A", |
| 9747 | .bustype = BUS_SPI, |
| 9748 | .manufacture_id = SST_ID, |
| 9749 | .model_id = SST_SST25VF040_REMS, |
| 9750 | .total_size = 512, |
| 9751 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9752 | .feature_bits = FEATURE_WRSR_EWSR, |
Uwe Hermann | 4335ec8 | 2011-09-07 20:20:25 +0000 | [diff] [blame] | 9753 | .tested = TEST_OK_PREW, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 9754 | .probe = probe_spi_res2, |
| 9755 | .probe_timing = TIMING_ZERO, |
| 9756 | .block_erasers = |
| 9757 | { |
| 9758 | { |
| 9759 | .eraseblocks = { {4 * 1024, 128} }, |
| 9760 | .block_erase = spi_block_erase_20, |
| 9761 | }, { |
| 9762 | .eraseblocks = { {32 * 1024, 16} }, |
| 9763 | .block_erase = spi_block_erase_52, |
| 9764 | }, { |
| 9765 | .eraseblocks = { {512 * 1024, 1} }, |
| 9766 | .block_erase = spi_block_erase_60, |
| 9767 | }, |
| 9768 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9769 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 9770 | .unlock = spi_disable_blockprotect, |
| 9771 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 9772 | .read = spi_chip_read, |
| 9773 | .voltage = {3000, 3600}, |
| 9774 | }, |
| 9775 | |
| 9776 | { |
| 9777 | .vendor = "SST", |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 9778 | .name = "SST25LF080(A)", |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 9779 | .bustype = BUS_SPI, |
| 9780 | .manufacture_id = SST_ID, |
| 9781 | .model_id = SST_SST25VF080_REMS, |
| 9782 | .total_size = 1024, |
| 9783 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 9784 | .feature_bits = FEATURE_WRSR_EITHER, |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 9785 | .tested = TEST_UNTESTED, |
| 9786 | .probe = probe_spi_res2, |
| 9787 | .probe_timing = TIMING_ZERO, |
| 9788 | .block_erasers = |
| 9789 | { |
| 9790 | { |
| 9791 | .eraseblocks = { {4 * 1024, 256} }, |
| 9792 | .block_erase = spi_block_erase_20, |
| 9793 | }, { |
| 9794 | .eraseblocks = { {32 * 1024, 32} }, |
| 9795 | .block_erase = spi_block_erase_52, |
| 9796 | }, { |
| 9797 | .eraseblocks = { {1024 * 1024, 1} }, |
| 9798 | .block_erase = spi_block_erase_60, |
| 9799 | }, |
| 9800 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9801 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Zeus Castro | 33670ba | 2011-08-17 09:50:11 +0000 | [diff] [blame] | 9802 | .unlock = spi_disable_blockprotect, |
| 9803 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 9804 | .read = spi_chip_read, |
| 9805 | .voltage = {3000, 3600}, |
| 9806 | }, |
| 9807 | |
| 9808 | { |
| 9809 | .vendor = "SST", |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 9810 | .name = "SST25VF512A", |
| 9811 | .bustype = BUS_SPI, |
| 9812 | .manufacture_id = SST_ID, |
| 9813 | .model_id = SST_SST25VF512A_REMS, |
| 9814 | .total_size = 64, |
| 9815 | .page_size = 256, |
| 9816 | .feature_bits = FEATURE_WRSR_EWSR, |
| 9817 | .tested = TEST_OK_PREW, |
| 9818 | .probe = probe_spi_rems, |
| 9819 | .probe_timing = TIMING_ZERO, |
| 9820 | .block_erasers = |
| 9821 | { |
| 9822 | { |
| 9823 | .eraseblocks = { {4 * 1024, 16} }, |
| 9824 | .block_erase = spi_block_erase_20, |
| 9825 | }, { |
| 9826 | .eraseblocks = { {32 * 1024, 2} }, |
| 9827 | .block_erase = spi_block_erase_52, |
| 9828 | }, { |
| 9829 | .eraseblocks = { {32 * 1024, 2} }, |
| 9830 | .block_erase = spi_block_erase_d8, |
| 9831 | }, { |
| 9832 | .eraseblocks = { {64 * 1024, 1} }, |
| 9833 | .block_erase = spi_block_erase_60, |
| 9834 | }, { |
| 9835 | .eraseblocks = { {64 * 1024, 1} }, |
| 9836 | .block_erase = spi_block_erase_c7, |
| 9837 | }, |
| 9838 | }, |
| 9839 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 9840 | .unlock = spi_disable_blockprotect, |
| 9841 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 9842 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9843 | .voltage = {2700, 3600}, |
| 9844 | }, |
| 9845 | |
| 9846 | { |
| 9847 | .vendor = "SST", |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 9848 | .name = "SST25VF010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 9849 | .bustype = BUS_SPI, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 9850 | .manufacture_id = SST_ID, |
| 9851 | .model_id = SST_SST25VF010_REMS, |
| 9852 | .total_size = 128, |
| 9853 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 9854 | .feature_bits = FEATURE_WRSR_EWSR, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 9855 | .tested = TEST_OK_PREW, |
| 9856 | .probe = probe_spi_rems, |
| 9857 | .probe_timing = TIMING_ZERO, |
| 9858 | .block_erasers = |
| 9859 | { |
| 9860 | { |
| 9861 | .eraseblocks = { {4 * 1024, 32} }, |
| 9862 | .block_erase = spi_block_erase_20, |
| 9863 | }, { |
| 9864 | .eraseblocks = { {32 * 1024, 4} }, |
| 9865 | .block_erase = spi_block_erase_52, |
| 9866 | }, { |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 9867 | .eraseblocks = { {32 * 1024, 4} }, |
| 9868 | .block_erase = spi_block_erase_d8, |
| 9869 | }, { |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 9870 | .eraseblocks = { {128 * 1024, 1} }, |
| 9871 | .block_erase = spi_block_erase_60, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 9872 | }, { |
| 9873 | .eraseblocks = { {128 * 1024, 1} }, |
| 9874 | .block_erase = spi_block_erase_c7, |
| 9875 | }, |
| 9876 | }, |
| 9877 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 9878 | .unlock = spi_disable_blockprotect, |
| 9879 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 9880 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9881 | .voltage = {2700, 3600}, |
| 9882 | }, |
| 9883 | |
| 9884 | { |
| 9885 | .vendor = "SST", |
| 9886 | .name = "SST25VF020", |
| 9887 | .bustype = BUS_SPI, |
| 9888 | .manufacture_id = SST_ID, |
| 9889 | .model_id = SST_SST25VF020_REMS, |
| 9890 | .total_size = 256, |
| 9891 | .page_size = 256, |
| 9892 | .feature_bits = FEATURE_WRSR_EWSR, |
| 9893 | .tested = TEST_UNTESTED, |
| 9894 | .probe = probe_spi_rems, |
| 9895 | .probe_timing = TIMING_ZERO, |
| 9896 | .block_erasers = |
| 9897 | { |
| 9898 | { |
| 9899 | .eraseblocks = { {4 * 1024, 64} }, |
| 9900 | .block_erase = spi_block_erase_20, |
| 9901 | }, { |
| 9902 | .eraseblocks = { {32 * 1024, 8} }, |
| 9903 | .block_erase = spi_block_erase_52, |
| 9904 | }, { |
| 9905 | .eraseblocks = { {256 * 1024, 1} }, |
| 9906 | .block_erase = spi_block_erase_60, |
| 9907 | }, |
| 9908 | }, |
| 9909 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 */ |
| 9910 | .unlock = spi_disable_blockprotect, |
| 9911 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 9912 | .read = spi_chip_read, /* only */ |
| 9913 | .voltage = {2700, 3600}, |
| 9914 | }, |
| 9915 | |
| 9916 | { |
| 9917 | .vendor = "SST", |
| 9918 | .name = "SST25VF020B", |
| 9919 | .bustype = BUS_SPI, |
| 9920 | .manufacture_id = SST_ID, |
| 9921 | .model_id = SST_SST25VF020B, |
| 9922 | .total_size = 256, |
| 9923 | .page_size = 256, |
| 9924 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 9925 | .tested = TEST_OK_PREW, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 9926 | .probe = probe_spi_rdid, |
| 9927 | .probe_timing = TIMING_ZERO, |
| 9928 | .block_erasers = |
| 9929 | { |
| 9930 | { |
| 9931 | .eraseblocks = { {4 * 1024, 64} }, |
| 9932 | .block_erase = spi_block_erase_20, |
| 9933 | }, { |
| 9934 | .eraseblocks = { {32 * 1024, 8} }, |
| 9935 | .block_erase = spi_block_erase_52, |
| 9936 | }, { |
| 9937 | .eraseblocks = { {64 * 1024, 4} }, |
| 9938 | .block_erase = spi_block_erase_d8, |
| 9939 | }, { |
| 9940 | .eraseblocks = { {256 * 1024, 1} }, |
| 9941 | .block_erase = spi_block_erase_60, |
| 9942 | }, { |
| 9943 | .eraseblocks = { {256 * 1024, 1} }, |
| 9944 | .block_erase = spi_block_erase_c7, |
| 9945 | }, |
| 9946 | }, |
| 9947 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: No BP2 & 3 and 2nd SR */ |
| 9948 | .unlock = spi_disable_blockprotect, /* FIXME: 2nd SR */ |
| 9949 | .write = spi_aai_write, /* AAI supported (0xAD) */ |
| 9950 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 9951 | .voltage = {2700, 3600}, |
| 9952 | }, |
| 9953 | |
| 9954 | { |
| 9955 | .vendor = "SST", |
| 9956 | .name = "SST25VF040", |
| 9957 | .bustype = BUS_SPI, |
| 9958 | .manufacture_id = SST_ID, |
| 9959 | .model_id = SST_SST25VF040_REMS, |
| 9960 | .total_size = 512, |
| 9961 | .page_size = 256, |
| 9962 | .feature_bits = FEATURE_WRSR_EWSR, |
| 9963 | .tested = TEST_OK_PR, |
| 9964 | .probe = probe_spi_rems, |
| 9965 | .probe_timing = TIMING_ZERO, |
| 9966 | .block_erasers = |
| 9967 | { |
| 9968 | { |
| 9969 | .eraseblocks = { {4 * 1024, 128} }, |
| 9970 | .block_erase = spi_block_erase_20, |
| 9971 | }, { |
| 9972 | .eraseblocks = { {32 * 1024, 16} }, |
| 9973 | .block_erase = spi_block_erase_52, |
| 9974 | }, { |
| 9975 | .eraseblocks = { {512 * 1024, 1} }, |
| 9976 | .block_erase = spi_block_erase_60, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 9977 | }, |
| 9978 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 9979 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 9980 | .unlock = spi_disable_blockprotect, |
Cory Henderson | 370f582 | 2013-10-19 23:09:16 +0000 | [diff] [blame] | 9981 | .write = spi_chip_write_1, /* AAI supported, but opcode is 0xAF */ |
| 9982 | .read = spi_chip_read, |
| 9983 | .voltage = {2700, 3600}, |
| 9984 | }, |
| 9985 | |
| 9986 | { |
| 9987 | .vendor = "SST", |
| 9988 | .name = "SST25VF040B", |
| 9989 | .bustype = BUS_SPI, |
| 9990 | .manufacture_id = SST_ID, |
| 9991 | .model_id = SST_SST25VF040B, |
| 9992 | .total_size = 512, |
| 9993 | .page_size = 256, |
| 9994 | .feature_bits = FEATURE_WRSR_EWSR, |
| 9995 | .tested = TEST_OK_PREW, |
| 9996 | .probe = probe_spi_rdid, |
| 9997 | .probe_timing = TIMING_ZERO, |
| 9998 | .block_erasers = |
| 9999 | { |
| 10000 | { |
| 10001 | .eraseblocks = { {4 * 1024, 128} }, |
| 10002 | .block_erase = spi_block_erase_20, |
| 10003 | }, { |
| 10004 | .eraseblocks = { {32 * 1024, 16} }, |
| 10005 | .block_erase = spi_block_erase_52, |
| 10006 | }, { |
| 10007 | .eraseblocks = { {64 * 1024, 8} }, |
| 10008 | .block_erase = spi_block_erase_d8, |
| 10009 | }, { |
| 10010 | .eraseblocks = { {512 * 1024, 1} }, |
| 10011 | .block_erase = spi_block_erase_60, |
| 10012 | }, { |
| 10013 | .eraseblocks = { {512 * 1024, 1} }, |
| 10014 | .block_erase = spi_block_erase_c7, |
| 10015 | }, |
| 10016 | }, |
| 10017 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
| 10018 | .unlock = spi_disable_blockprotect, |
| 10019 | .write = spi_aai_write, /* AAI supported (0xAD) */ |
| 10020 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10021 | .voltage = {2700, 3600}, |
| 10022 | }, |
| 10023 | |
| 10024 | { |
| 10025 | .vendor = "SST", |
| 10026 | .name = "SST25VF040B.REMS", |
| 10027 | .bustype = BUS_SPI, |
| 10028 | .manufacture_id = SST_ID, |
| 10029 | .model_id = SST_SST25VF040B_REMS, |
| 10030 | .total_size = 512, |
| 10031 | .page_size = 256, |
| 10032 | .feature_bits = FEATURE_WRSR_EWSR, |
| 10033 | .tested = TEST_OK_PREW, |
| 10034 | .probe = probe_spi_rems, |
| 10035 | .probe_timing = TIMING_ZERO, |
| 10036 | .block_erasers = |
| 10037 | { |
| 10038 | { |
| 10039 | .eraseblocks = { {4 * 1024, 128} }, |
| 10040 | .block_erase = spi_block_erase_20, |
| 10041 | }, { |
| 10042 | .eraseblocks = { {32 * 1024, 16} }, |
| 10043 | .block_erase = spi_block_erase_52, |
| 10044 | }, { |
| 10045 | .eraseblocks = { {64 * 1024, 8} }, |
| 10046 | .block_erase = spi_block_erase_d8, |
| 10047 | }, { |
| 10048 | .eraseblocks = { {512 * 1024, 1} }, |
| 10049 | .block_erase = spi_block_erase_60, |
| 10050 | }, { |
| 10051 | .eraseblocks = { {512 * 1024, 1} }, |
| 10052 | .block_erase = spi_block_erase_c7, |
| 10053 | }, |
| 10054 | }, |
| 10055 | .printlock = spi_prettyprint_status_register_sst25vf040b, |
| 10056 | .unlock = spi_disable_blockprotect, |
| 10057 | .write = spi_aai_write, |
| 10058 | .read = spi_chip_read, |
| 10059 | .voltage = {2700, 3600}, |
| 10060 | }, |
| 10061 | |
| 10062 | { |
| 10063 | .vendor = "SST", |
| 10064 | .name = "SST25VF080B", |
| 10065 | .bustype = BUS_SPI, |
| 10066 | .manufacture_id = SST_ID, |
| 10067 | .model_id = SST_SST25VF080B, |
| 10068 | .total_size = 1024, |
| 10069 | .page_size = 256, |
| 10070 | .feature_bits = FEATURE_WRSR_EWSR, |
| 10071 | .tested = TEST_OK_PREW, |
| 10072 | .probe = probe_spi_rdid, |
| 10073 | .probe_timing = TIMING_ZERO, |
| 10074 | .block_erasers = |
| 10075 | { |
| 10076 | { |
| 10077 | .eraseblocks = { {4 * 1024, 256} }, |
| 10078 | .block_erase = spi_block_erase_20, |
| 10079 | }, { |
| 10080 | .eraseblocks = { {32 * 1024, 32} }, |
| 10081 | .block_erase = spi_block_erase_52, |
| 10082 | }, { |
| 10083 | .eraseblocks = { {64 * 1024, 16} }, |
| 10084 | .block_erase = spi_block_erase_d8, |
| 10085 | }, { |
| 10086 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10087 | .block_erase = spi_block_erase_60, |
| 10088 | }, { |
| 10089 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10090 | .block_erase = spi_block_erase_c7, |
| 10091 | }, |
| 10092 | }, |
| 10093 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
| 10094 | .unlock = spi_disable_blockprotect, |
| 10095 | .write = spi_aai_write, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 10096 | .read = spi_chip_read, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 10097 | .voltage = {2700, 3600}, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 10098 | }, |
| 10099 | |
| 10100 | { |
| 10101 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10102 | .name = "SST25VF016B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10103 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10104 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10105 | .model_id = SST_SST25VF016B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10106 | .total_size = 2048, |
| 10107 | .page_size = 256, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 10108 | .feature_bits = FEATURE_WRSR_EITHER, |
Mark Marshall | 90021f2 | 2010-12-03 14:48:11 +0000 | [diff] [blame] | 10109 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10110 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10111 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 10112 | .block_erasers = |
| 10113 | { |
| 10114 | { |
| 10115 | .eraseblocks = { {4 * 1024, 512} }, |
| 10116 | .block_erase = spi_block_erase_20, |
| 10117 | }, { |
| 10118 | .eraseblocks = { {32 * 1024, 64} }, |
| 10119 | .block_erase = spi_block_erase_52, |
| 10120 | }, { |
| 10121 | .eraseblocks = { {64 * 1024, 32} }, |
| 10122 | .block_erase = spi_block_erase_d8, |
| 10123 | }, { |
| 10124 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10125 | .block_erase = spi_block_erase_60, |
| 10126 | }, { |
| 10127 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 10128 | .block_erase = spi_block_erase_c7, |
| 10129 | }, |
| 10130 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10131 | .printlock = spi_prettyprint_status_register_sst25vf016, |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10132 | .unlock = spi_disable_blockprotect, |
Joshua Roys | 87955bf | 2011-08-01 18:39:28 +0000 | [diff] [blame] | 10133 | .write = spi_aai_write, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10134 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10135 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10136 | }, |
| 10137 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10138 | { |
| 10139 | .vendor = "SST", |
| 10140 | .name = "SST25VF032B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10141 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10142 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10143 | .model_id = SST_SST25VF032B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10144 | .total_size = 4096, |
| 10145 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10146 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | fcf6a8c | 2011-05-18 01:32:00 +0000 | [diff] [blame] | 10147 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10148 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 10149 | .probe_timing = TIMING_ZERO, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 10150 | .block_erasers = |
| 10151 | { |
| 10152 | { |
| 10153 | .eraseblocks = { {4 * 1024, 1024} }, |
| 10154 | .block_erase = spi_block_erase_20, |
| 10155 | }, { |
| 10156 | .eraseblocks = { {32 * 1024, 128} }, |
| 10157 | .block_erase = spi_block_erase_52, |
| 10158 | }, { |
| 10159 | .eraseblocks = { {64 * 1024, 64} }, |
| 10160 | .block_erase = spi_block_erase_d8, |
| 10161 | }, { |
| 10162 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10163 | .block_erase = spi_block_erase_60, |
| 10164 | }, { |
| 10165 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 10166 | .block_erase = spi_block_erase_c7, |
| 10167 | }, |
| 10168 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10169 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 10170 | .unlock = spi_disable_blockprotect, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 10171 | .write = spi_aai_write, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 10172 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10173 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | bbfeb70 | 2009-12-23 12:16:47 +0000 | [diff] [blame] | 10174 | }, |
| 10175 | |
| 10176 | { |
| 10177 | .vendor = "SST", |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 10178 | .name = "SST25VF064C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10179 | .bustype = BUS_SPI, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 10180 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10181 | .model_id = SST_SST25VF064C, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 10182 | .total_size = 8192, |
| 10183 | .page_size = 256, |
Steven Zakulec | 3603a28 | 2012-05-02 20:07:57 +0000 | [diff] [blame] | 10184 | .feature_bits = FEATURE_WRSR_EWSR, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 10185 | .tested = TEST_OK_PREW, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 10186 | .probe = probe_spi_rdid, |
| 10187 | .probe_timing = TIMING_ZERO, |
| 10188 | .block_erasers = |
| 10189 | { |
| 10190 | { |
| 10191 | .eraseblocks = { {4 * 1024, 2048} }, |
| 10192 | .block_erase = spi_block_erase_20, |
| 10193 | }, { |
| 10194 | .eraseblocks = { {32 * 1024, 256} }, |
| 10195 | .block_erase = spi_block_erase_52, |
| 10196 | }, { |
| 10197 | .eraseblocks = { {64 * 1024, 128} }, |
| 10198 | .block_erase = spi_block_erase_d8, |
| 10199 | }, { |
| 10200 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10201 | .block_erase = spi_block_erase_60, |
| 10202 | }, { |
| 10203 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 10204 | .block_erase = spi_block_erase_c7, |
| 10205 | }, |
| 10206 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 10207 | .printlock = spi_prettyprint_status_register_sst25, /* TODO: check */ |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 10208 | .unlock = spi_disable_blockprotect, |
Helge Wagner | 1db7a44 | 2010-10-05 22:29:08 +0000 | [diff] [blame] | 10209 | .write = spi_chip_write_256, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 10210 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10211 | .voltage = {2700, 3600}, |
Ed Swierk | 86f4e6d | 2010-07-21 15:02:22 +0000 | [diff] [blame] | 10212 | }, |
| 10213 | |
| 10214 | { |
| 10215 | .vendor = "SST", |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 10216 | .name = "SST25WF512", |
| 10217 | .bustype = BUS_SPI, |
| 10218 | .manufacture_id = SST_ID, |
| 10219 | .model_id = SST_SST25WF512, |
| 10220 | .total_size = 64, |
| 10221 | .page_size = 256, |
| 10222 | .feature_bits = FEATURE_WRSR_EITHER, |
| 10223 | .tested = TEST_UNTESTED, |
| 10224 | .probe = probe_spi_rdid, |
| 10225 | .probe_timing = TIMING_ZERO, |
| 10226 | .block_erasers = |
| 10227 | { |
| 10228 | { |
| 10229 | .eraseblocks = { {4 * 1024, 16} }, |
| 10230 | .block_erase = spi_block_erase_20, |
| 10231 | }, { |
| 10232 | .eraseblocks = { {32 * 1024, 2} }, |
| 10233 | .block_erase = spi_block_erase_52, |
| 10234 | }, { |
| 10235 | .eraseblocks = { {1024 * 64, 1} }, |
| 10236 | .block_erase = spi_block_erase_60, |
| 10237 | }, { |
| 10238 | .eraseblocks = { {1024 * 64, 1} }, |
| 10239 | .block_erase = spi_block_erase_c7, |
| 10240 | }, |
| 10241 | }, |
Jason Harper | 43ddef0 | 2014-05-04 00:55:24 +0000 | [diff] [blame] | 10242 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 10243 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 10244 | .write = spi_aai_write, |
| 10245 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10246 | .voltage = {1650, 1950}, |
| 10247 | }, |
| 10248 | |
| 10249 | { |
| 10250 | .vendor = "SST", |
| 10251 | .name = "SST25WF010", |
| 10252 | .bustype = BUS_SPI, |
| 10253 | .manufacture_id = SST_ID, |
| 10254 | .model_id = SST_SST25WF010, |
| 10255 | .total_size = 128, |
| 10256 | .page_size = 256, |
| 10257 | .feature_bits = FEATURE_WRSR_EITHER, |
| 10258 | .tested = TEST_UNTESTED, |
| 10259 | .probe = probe_spi_rdid, |
| 10260 | .probe_timing = TIMING_ZERO, |
| 10261 | .block_erasers = |
| 10262 | { |
| 10263 | { |
| 10264 | .eraseblocks = { {4 * 1024, 32} }, |
| 10265 | .block_erase = spi_block_erase_20, |
| 10266 | }, { |
| 10267 | .eraseblocks = { {32 * 1024, 4} }, |
| 10268 | .block_erase = spi_block_erase_52, |
| 10269 | }, { |
| 10270 | .eraseblocks = { {1024 * 128, 1} }, |
| 10271 | .block_erase = spi_block_erase_60, |
| 10272 | }, { |
| 10273 | .eraseblocks = { {1024 * 128, 1} }, |
| 10274 | .block_erase = spi_block_erase_c7, |
| 10275 | }, |
| 10276 | }, |
Jason Harper | 43ddef0 | 2014-05-04 00:55:24 +0000 | [diff] [blame] | 10277 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 10278 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 10279 | .write = spi_aai_write, |
| 10280 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10281 | .voltage = {1650, 1950}, |
| 10282 | }, |
| 10283 | |
| 10284 | { |
| 10285 | .vendor = "SST", |
| 10286 | .name = "SST25WF020", |
| 10287 | .bustype = BUS_SPI, |
| 10288 | .manufacture_id = SST_ID, |
| 10289 | .model_id = SST_SST25WF020, |
| 10290 | .total_size = 256, |
| 10291 | .page_size = 256, |
| 10292 | .feature_bits = FEATURE_WRSR_EITHER, |
| 10293 | .tested = TEST_UNTESTED, |
| 10294 | .probe = probe_spi_rdid, |
| 10295 | .probe_timing = TIMING_ZERO, |
| 10296 | .block_erasers = |
| 10297 | { |
| 10298 | { |
| 10299 | .eraseblocks = { {4 * 1024, 64} }, |
| 10300 | .block_erase = spi_block_erase_20, |
| 10301 | }, { |
| 10302 | .eraseblocks = { {32 * 1024, 8} }, |
| 10303 | .block_erase = spi_block_erase_52, |
| 10304 | }, { |
| 10305 | .eraseblocks = { {64 * 1024, 4} }, |
| 10306 | .block_erase = spi_block_erase_d8, |
| 10307 | }, { |
| 10308 | .eraseblocks = { {1024 * 256, 1} }, |
| 10309 | .block_erase = spi_block_erase_60, |
| 10310 | }, { |
| 10311 | .eraseblocks = { {1024 * 256, 1} }, |
| 10312 | .block_erase = spi_block_erase_c7, |
| 10313 | }, |
| 10314 | }, |
Jason Harper | 43ddef0 | 2014-05-04 00:55:24 +0000 | [diff] [blame] | 10315 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 10316 | .unlock = spi_disable_blockprotect_bp2_srwd, |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 10317 | .write = spi_aai_write, |
| 10318 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10319 | .voltage = {1650, 1950}, |
| 10320 | }, |
| 10321 | |
| 10322 | { |
| 10323 | .vendor = "SST", |
| 10324 | .name = "SST25WF040", |
| 10325 | .bustype = BUS_SPI, |
| 10326 | .manufacture_id = SST_ID, |
| 10327 | .model_id = SST_SST25WF040, |
| 10328 | .total_size = 512, |
| 10329 | .page_size = 256, |
| 10330 | .feature_bits = FEATURE_WRSR_EITHER, |
| 10331 | .tested = TEST_UNTESTED, |
| 10332 | .probe = probe_spi_rdid, |
| 10333 | .probe_timing = TIMING_ZERO, |
| 10334 | .block_erasers = |
| 10335 | { |
| 10336 | { |
| 10337 | .eraseblocks = { {4 * 1024, 128} }, |
| 10338 | .block_erase = spi_block_erase_20, |
| 10339 | }, { |
| 10340 | .eraseblocks = { {32 * 1024, 16} }, |
| 10341 | .block_erase = spi_block_erase_52, |
| 10342 | }, { |
| 10343 | .eraseblocks = { {64 * 1024, 8} }, |
| 10344 | .block_erase = spi_block_erase_d8, |
| 10345 | }, { |
| 10346 | .eraseblocks = { {1024 * 512, 1} }, |
| 10347 | .block_erase = spi_block_erase_60, |
| 10348 | }, { |
| 10349 | .eraseblocks = { {1024 * 512, 1} }, |
| 10350 | .block_erase = spi_block_erase_c7, |
| 10351 | }, |
| 10352 | }, |
Jason Harper | 43ddef0 | 2014-05-04 00:55:24 +0000 | [diff] [blame] | 10353 | .printlock = spi_prettyprint_status_register_sst25, /* FIXME: does not have a BP3 */ |
| 10354 | .unlock = spi_disable_blockprotect_bp2_srwd, |
| 10355 | .write = spi_aai_write, |
| 10356 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10357 | .voltage = {1650, 1950}, |
| 10358 | }, |
| 10359 | |
| 10360 | { |
| 10361 | .vendor = "SST", |
| 10362 | .name = "SST25WF080", |
| 10363 | .bustype = BUS_SPI, |
| 10364 | .manufacture_id = SST_ID, |
| 10365 | .model_id = SST_SST25WF080, |
| 10366 | .total_size = 1024, |
| 10367 | .page_size = 256, |
| 10368 | .feature_bits = FEATURE_WRSR_EITHER, |
| 10369 | .tested = TEST_OK_PREW, |
| 10370 | .probe = probe_spi_rdid, |
| 10371 | .probe_timing = TIMING_ZERO, |
| 10372 | .block_erasers = |
| 10373 | { |
| 10374 | { |
| 10375 | .eraseblocks = { {4 * 1024, 256} }, |
| 10376 | .block_erase = spi_block_erase_20, |
| 10377 | }, { |
| 10378 | .eraseblocks = { {32 * 1024, 32} }, |
| 10379 | .block_erase = spi_block_erase_52, |
| 10380 | }, { |
| 10381 | .eraseblocks = { {64 * 1024, 16} }, |
| 10382 | .block_erase = spi_block_erase_d8, |
| 10383 | }, { |
| 10384 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10385 | .block_erase = spi_block_erase_60, |
| 10386 | }, { |
| 10387 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10388 | .block_erase = spi_block_erase_c7, |
| 10389 | }, |
| 10390 | }, |
| 10391 | .printlock = spi_prettyprint_status_register_sst25, /* *does* have a BP3 but it is useless */ |
| 10392 | .unlock = spi_disable_blockprotect_bp3_srwd, |
Stefan Tauner | 9e349e4 | 2012-10-01 22:45:08 +0000 | [diff] [blame] | 10393 | .write = spi_aai_write, |
| 10394 | .read = spi_chip_read, /* Fast read (0x0B) supported */ |
| 10395 | .voltage = {1650, 1950}, |
| 10396 | }, |
| 10397 | |
| 10398 | { |
| 10399 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10400 | .name = "SST28SF040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10401 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10402 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10403 | .model_id = SST_SST28SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10404 | .total_size = 512, |
| 10405 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10406 | .feature_bits = 0, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10407 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10408 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 10409 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst28sf040.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10410 | .block_erasers = |
| 10411 | { |
| 10412 | { |
| 10413 | .eraseblocks = { {128, 4096} }, |
| 10414 | .block_erase = erase_sector_28sf040, |
| 10415 | }, { |
| 10416 | .eraseblocks = { {512 * 1024, 1} }, |
| 10417 | .block_erase = erase_chip_28sf040, |
| 10418 | } |
| 10419 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 10420 | .unlock = unprotect_28sf040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10421 | .write = write_28sf040, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10422 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10423 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10424 | }, |
| 10425 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10426 | { |
| 10427 | .vendor = "SST", |
| 10428 | .name = "SST29EE010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10429 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10430 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10431 | .model_id = SST_SST29EE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10432 | .total_size = 128, |
| 10433 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10434 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 10435 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10436 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 10437 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10438 | .block_erasers = |
| 10439 | { |
| 10440 | { |
| 10441 | .eraseblocks = { {128 * 1024, 1} }, |
| 10442 | .block_erase = erase_chip_block_jedec, |
| 10443 | } |
| 10444 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10445 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10446 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10447 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10448 | }, |
| 10449 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10450 | { |
| 10451 | .vendor = "SST", |
| 10452 | .name = "SST29LE010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10453 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10454 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10455 | .model_id = SST_SST29LE010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10456 | .total_size = 128, |
| 10457 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10458 | .feature_bits = FEATURE_LONG_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10459 | .tested = TEST_UNTESTED, |
| 10460 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 10461 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10462 | .block_erasers = |
| 10463 | { |
| 10464 | { |
| 10465 | .eraseblocks = { {128 * 1024, 1} }, |
| 10466 | .block_erase = erase_chip_block_jedec, |
| 10467 | } |
| 10468 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10469 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10470 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10471 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10472 | }, |
| 10473 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10474 | { |
| 10475 | .vendor = "SST", |
| 10476 | .name = "SST29EE020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10477 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10478 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10479 | .model_id = SST_SST29EE020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10480 | .total_size = 256, |
| 10481 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10482 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 10483 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10484 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 10485 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10486 | .block_erasers = |
| 10487 | { |
| 10488 | { |
| 10489 | .eraseblocks = { {256 * 1024, 1} }, |
| 10490 | .block_erase = erase_chip_block_jedec, |
| 10491 | } |
| 10492 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10493 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10494 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10495 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10496 | }, |
| 10497 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10498 | { |
| 10499 | .vendor = "SST", |
| 10500 | .name = "SST29LE020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10501 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10502 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10503 | .model_id = SST_SST29LE020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10504 | .total_size = 256, |
| 10505 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10506 | .feature_bits = FEATURE_LONG_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 10507 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10508 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 10509 | .probe_timing = 10, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10510 | .block_erasers = |
| 10511 | { |
| 10512 | { |
| 10513 | .eraseblocks = { {256 * 1024, 1} }, |
| 10514 | .block_erase = erase_chip_block_jedec, |
| 10515 | } |
| 10516 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10517 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10518 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10519 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10520 | }, |
| 10521 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10522 | { |
| 10523 | .vendor = "SST", |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 10524 | .name = "SST39SF512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10525 | .bustype = BUS_PARALLEL, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 10526 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10527 | .model_id = SST_SST39SF512, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 10528 | .total_size = 64, |
| 10529 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10530 | .feature_bits = FEATURE_EITHER_RESET, |
Idwer Vollering | 7913fb4 | 2011-03-07 15:32:58 +0000 | [diff] [blame] | 10531 | .tested = TEST_OK_PREW, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 10532 | .probe = probe_jedec, |
| 10533 | .probe_timing = 1, /* 150 ns */ |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 10534 | .block_erasers = |
| 10535 | { |
| 10536 | { |
| 10537 | .eraseblocks = { {4 * 1024, 16} }, |
| 10538 | .block_erase = erase_sector_jedec, |
| 10539 | }, { |
| 10540 | .eraseblocks = { {64 * 1024, 1} }, |
| 10541 | .block_erase = erase_chip_block_jedec, |
| 10542 | } |
| 10543 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10544 | .write = write_jedec_1, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 10545 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10546 | .voltage = {4500, 5500}, |
Uwe Hermann | 48da3f9 | 2010-01-23 15:15:19 +0000 | [diff] [blame] | 10547 | }, |
| 10548 | |
| 10549 | { |
| 10550 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10551 | .name = "SST39SF010A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10552 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10553 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10554 | .model_id = SST_SST39SF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10555 | .total_size = 128, |
| 10556 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10557 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 10558 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10559 | .probe = probe_jedec, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 10560 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10561 | .block_erasers = |
| 10562 | { |
| 10563 | { |
| 10564 | .eraseblocks = { {4 * 1024, 32} }, |
| 10565 | .block_erase = erase_sector_jedec, |
| 10566 | }, { |
| 10567 | .eraseblocks = { {128 * 1024, 1} }, |
| 10568 | .block_erase = erase_chip_block_jedec, |
| 10569 | } |
| 10570 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10571 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10572 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10573 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10574 | }, |
| 10575 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10576 | { |
| 10577 | .vendor = "SST", |
| 10578 | .name = "SST39SF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10579 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10580 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10581 | .model_id = SST_SST39SF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10582 | .total_size = 256, |
| 10583 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10584 | .feature_bits = FEATURE_EITHER_RESET, |
Uwe Hermann | 19f46f2 | 2011-06-18 22:56:14 +0000 | [diff] [blame] | 10585 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10586 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10587 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10588 | .block_erasers = |
| 10589 | { |
| 10590 | { |
| 10591 | .eraseblocks = { {4 * 1024, 64} }, |
| 10592 | .block_erase = erase_sector_jedec, |
| 10593 | }, { |
| 10594 | .eraseblocks = { {256 * 1024, 1} }, |
| 10595 | .block_erase = erase_chip_block_jedec, |
| 10596 | } |
| 10597 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10598 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10599 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10600 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10601 | }, |
| 10602 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10603 | { |
| 10604 | .vendor = "SST", |
| 10605 | .name = "SST39SF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10606 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10607 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10608 | .model_id = SST_SST39SF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10609 | .total_size = 512, |
| 10610 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10611 | .feature_bits = FEATURE_EITHER_RESET, |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 10612 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10613 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10614 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10615 | .block_erasers = |
| 10616 | { |
| 10617 | { |
| 10618 | .eraseblocks = { {4 * 1024, 128} }, |
| 10619 | .block_erase = erase_sector_jedec, |
| 10620 | }, { |
| 10621 | .eraseblocks = { {512 * 1024, 1} }, |
| 10622 | .block_erase = erase_chip_block_jedec, |
| 10623 | } |
| 10624 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10625 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10626 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10627 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10628 | }, |
| 10629 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10630 | { |
| 10631 | .vendor = "SST", |
| 10632 | .name = "SST39VF512", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10633 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10634 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10635 | .model_id = SST_SST39VF512, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10636 | .total_size = 64, |
| 10637 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10638 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d7d423b | 2012-10-20 09:13:16 +0000 | [diff] [blame] | 10639 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10640 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10641 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10642 | .block_erasers = |
| 10643 | { |
| 10644 | { |
| 10645 | .eraseblocks = { {4 * 1024, 16} }, |
| 10646 | .block_erase = erase_sector_jedec, |
| 10647 | }, { |
| 10648 | .eraseblocks = { {64 * 1024, 1} }, |
| 10649 | .block_erase = erase_chip_block_jedec, |
| 10650 | } |
| 10651 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10652 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10653 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10654 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10655 | }, |
| 10656 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10657 | { |
| 10658 | .vendor = "SST", |
| 10659 | .name = "SST39VF010", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10660 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10661 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10662 | .model_id = SST_SST39VF010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10663 | .total_size = 128, |
| 10664 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10665 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | d94d25d | 2012-07-28 03:17:15 +0000 | [diff] [blame] | 10666 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10667 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10668 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10669 | .block_erasers = |
| 10670 | { |
| 10671 | { |
| 10672 | .eraseblocks = { {4 * 1024, 32} }, |
| 10673 | .block_erase = erase_sector_jedec, |
| 10674 | }, { |
| 10675 | .eraseblocks = { {128 * 1024, 1} }, |
| 10676 | .block_erase = erase_chip_block_jedec, |
| 10677 | } |
| 10678 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10679 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10680 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10681 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10682 | }, |
| 10683 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10684 | { |
| 10685 | .vendor = "SST", |
| 10686 | .name = "SST39VF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10687 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10688 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10689 | .model_id = SST_SST39VF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10690 | .total_size = 256, |
| 10691 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10692 | .feature_bits = FEATURE_EITHER_RESET, |
| 10693 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10694 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10695 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10696 | .block_erasers = |
| 10697 | { |
| 10698 | { |
| 10699 | .eraseblocks = { {4 * 1024, 64} }, |
| 10700 | .block_erase = erase_sector_jedec, |
| 10701 | }, { |
| 10702 | .eraseblocks = { {256 * 1024, 1} }, |
| 10703 | .block_erase = erase_chip_block_jedec, |
| 10704 | } |
| 10705 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10706 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10707 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10708 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10709 | }, |
| 10710 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10711 | { |
| 10712 | .vendor = "SST", |
| 10713 | .name = "SST39VF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10714 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10715 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10716 | .model_id = SST_SST39VF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10717 | .total_size = 512, |
| 10718 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10719 | .feature_bits = FEATURE_EITHER_RESET, |
| 10720 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10721 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10722 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10723 | .block_erasers = |
| 10724 | { |
| 10725 | { |
| 10726 | .eraseblocks = { {4 * 1024, 128} }, |
| 10727 | .block_erase = erase_sector_jedec, |
| 10728 | }, { |
| 10729 | .eraseblocks = { {512 * 1024, 1} }, |
| 10730 | .block_erase = erase_chip_block_jedec, |
| 10731 | } |
| 10732 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10733 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10734 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10735 | .voltage = {2700, 3600}, |
Carl-Daniel Hailfinger | 90eff15 | 2008-12-08 23:51:45 +0000 | [diff] [blame] | 10736 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10737 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10738 | { |
| 10739 | .vendor = "SST", |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 10740 | .name = "SST39VF080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10741 | .bustype = BUS_PARALLEL, |
Mateusz Murawski | e33890d | 2009-06-12 11:45:10 +0000 | [diff] [blame] | 10742 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10743 | .model_id = SST_SST39VF080, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 10744 | .total_size = 1024, |
| 10745 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10746 | .feature_bits = FEATURE_EITHER_RESET, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 10747 | .tested = TEST_UNTESTED, |
| 10748 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 10749 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10750 | .block_erasers = |
| 10751 | { |
| 10752 | { |
| 10753 | .eraseblocks = { {4 * 1024, 256} }, |
| 10754 | .block_erase = erase_sector_jedec, |
| 10755 | }, { |
| 10756 | .eraseblocks = { {64 * 1024, 16} }, |
| 10757 | .block_erase = erase_block_jedec, |
| 10758 | }, { |
| 10759 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10760 | .block_erase = erase_chip_block_jedec, |
| 10761 | } |
| 10762 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10763 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10764 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10765 | .voltage = {2700, 3600}, |
Peter Stuge | 8440cc0 | 2009-01-25 23:55:12 +0000 | [diff] [blame] | 10766 | }, |
| 10767 | |
| 10768 | { |
| 10769 | .vendor = "SST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10770 | .name = "SST49LF002A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10771 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10772 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10773 | .model_id = SST_SST49LF002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10774 | .total_size = 256, |
| 10775 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10776 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 10777 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10778 | .probe = probe_jedec, |
| 10779 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10780 | .block_erasers = |
| 10781 | { |
| 10782 | { |
| 10783 | .eraseblocks = { {4 * 1024, 64} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10784 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10785 | }, { |
| 10786 | .eraseblocks = { {16 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10787 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10788 | }, { |
| 10789 | .eraseblocks = { {256 * 1024, 1} }, |
| 10790 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 10791 | } |
| 10792 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10793 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10794 | .unlock = unlock_sst_fwhub, |
| 10795 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10796 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10797 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10798 | }, |
| 10799 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10800 | { |
| 10801 | .vendor = "SST", |
| 10802 | .name = "SST49LF003A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10803 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10804 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10805 | .model_id = SST_SST49LF003A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10806 | .total_size = 384, |
| 10807 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10808 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 10809 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10810 | .probe = probe_jedec, |
| 10811 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10812 | .block_erasers = |
| 10813 | { |
| 10814 | { |
| 10815 | .eraseblocks = { {4 * 1024, 96} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10816 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10817 | }, { |
| 10818 | .eraseblocks = { {64 * 1024, 6} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10819 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10820 | }, { |
| 10821 | .eraseblocks = { {384 * 1024, 1} }, |
| 10822 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 10823 | } |
| 10824 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10825 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10826 | .unlock = unlock_sst_fwhub, |
| 10827 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10828 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10829 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10830 | }, |
| 10831 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10832 | { |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 10833 | /* Contrary to the data sheet, TBL# on the SST49LF004B affects the top 128kB (instead of 64kB) |
| 10834 | * and is only honored for 64k block erase, but not 4k sector erase. |
| 10835 | */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10836 | .vendor = "SST", |
| 10837 | .name = "SST49LF004A/B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10838 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10839 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10840 | .model_id = SST_SST49LF004A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10841 | .total_size = 512, |
| 10842 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10843 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 10844 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10845 | .probe = probe_jedec, |
| 10846 | .probe_timing = 1, /* 150 ns */ |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 10847 | .block_erasers = |
| 10848 | { |
| 10849 | { |
| 10850 | .eraseblocks = { {4 * 1024, 128} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10851 | .block_erase = erase_sector_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 10852 | }, { |
| 10853 | .eraseblocks = { {64 * 1024, 8} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10854 | .block_erase = erase_block_jedec, |
Carl-Daniel Hailfinger | a06287c | 2009-09-23 22:01:33 +0000 | [diff] [blame] | 10855 | }, { |
| 10856 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10857 | .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] | 10858 | }, |
| 10859 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10860 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10861 | .unlock = unlock_sst_fwhub, |
| 10862 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10863 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10864 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10865 | }, |
| 10866 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10867 | { |
| 10868 | .vendor = "SST", |
| 10869 | .name = "SST49LF004C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10870 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10871 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10872 | .model_id = SST_SST49LF004C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10873 | .total_size = 512, |
| 10874 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10875 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10876 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10877 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 10878 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10879 | .block_erasers = |
| 10880 | { |
| 10881 | { |
| 10882 | .eraseblocks = { {4 * 1024, 128} }, |
| 10883 | .block_erase = erase_sector_49lfxxxc, |
| 10884 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 10885 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10886 | {64 * 1024, 7}, |
| 10887 | {32 * 1024, 1}, |
| 10888 | {8 * 1024, 2}, |
| 10889 | {16 * 1024, 1}, |
| 10890 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 10891 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10892 | } |
| 10893 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 10894 | .unlock = unlock_49lfxxxc, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 10895 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10896 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10897 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10898 | }, |
| 10899 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10900 | { |
| 10901 | .vendor = "SST", |
| 10902 | .name = "SST49LF008A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10903 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10904 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10905 | .model_id = SST_SST49LF008A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10906 | .total_size = 1024, |
| 10907 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 10908 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 10909 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10910 | .probe = probe_jedec, |
| 10911 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10912 | .block_erasers = |
| 10913 | { |
| 10914 | { |
| 10915 | .eraseblocks = { {4 * 1024, 256} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10916 | .block_erase = erase_sector_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10917 | }, { |
| 10918 | .eraseblocks = { {64 * 1024, 16} }, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10919 | .block_erase = erase_block_jedec, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10920 | }, { |
| 10921 | .eraseblocks = { {1024 * 1024, 1} }, |
| 10922 | .block_erase = NULL, /* AA 55 80 AA 55 10, only in A/A mux mode */ |
| 10923 | } |
| 10924 | }, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10925 | .printlock = printlock_sst_fwhub, |
Sean Nelson | ccf7a2a | 2010-03-16 03:09:10 +0000 | [diff] [blame] | 10926 | .unlock = unlock_sst_fwhub, |
| 10927 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10928 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10929 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10930 | }, |
| 10931 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10932 | { |
| 10933 | .vendor = "SST", |
| 10934 | .name = "SST49LF008C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10935 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10936 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10937 | .model_id = SST_SST49LF008C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10938 | .total_size = 1024, |
| 10939 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10940 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10941 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10942 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 10943 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10944 | .block_erasers = |
| 10945 | { |
| 10946 | { |
| 10947 | .eraseblocks = { {4 * 1024, 256} }, |
| 10948 | .block_erase = erase_sector_49lfxxxc, |
| 10949 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 10950 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10951 | {64 * 1024, 15}, |
| 10952 | {32 * 1024, 1}, |
| 10953 | {8 * 1024, 2}, |
| 10954 | {16 * 1024, 1}, |
| 10955 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 10956 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10957 | } |
| 10958 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 10959 | .unlock = unlock_49lfxxxc, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 10960 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10961 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10962 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10963 | }, |
| 10964 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10965 | { |
| 10966 | .vendor = "SST", |
| 10967 | .name = "SST49LF016C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 10968 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10969 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 10970 | .model_id = SST_SST49LF016C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10971 | .total_size = 2048, |
| 10972 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10973 | .feature_bits = FEATURE_REGISTERMAP, |
Stefan Tauner | 2abab94 | 2012-04-27 20:41:23 +0000 | [diff] [blame] | 10974 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 10975 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 10976 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10977 | .block_erasers = |
| 10978 | { |
| 10979 | { |
| 10980 | .eraseblocks = { {4 * 1024, 512} }, |
| 10981 | .block_erase = erase_sector_49lfxxxc, |
| 10982 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 10983 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10984 | {64 * 1024, 31}, |
| 10985 | {32 * 1024, 1}, |
| 10986 | {8 * 1024, 2}, |
| 10987 | {16 * 1024, 1}, |
| 10988 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 10989 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 10990 | } |
| 10991 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 10992 | .unlock = unlock_49lfxxxc, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 10993 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 10994 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 10995 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 10996 | }, |
| 10997 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 10998 | { |
| 10999 | .vendor = "SST", |
| 11000 | .name = "SST49LF020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11001 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11002 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11003 | .model_id = SST_SST49LF020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11004 | .total_size = 256, |
| 11005 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11006 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 11007 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11008 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 11009 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11010 | .block_erasers = |
| 11011 | { |
| 11012 | { |
| 11013 | .eraseblocks = { {4 * 1024, 64} }, |
| 11014 | .block_erase = erase_sector_jedec, |
| 11015 | }, { |
| 11016 | .eraseblocks = { {16 * 1024, 16} }, |
| 11017 | .block_erase = erase_block_jedec, |
| 11018 | }, { |
| 11019 | .eraseblocks = { {256 * 1024, 1} }, |
| 11020 | .block_erase = NULL, |
| 11021 | } |
| 11022 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11023 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11024 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11025 | .voltage = {3000, 3600}, |
Sven Schnelle | c208dfb | 2009-01-07 12:35:09 +0000 | [diff] [blame] | 11026 | }, |
| 11027 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11028 | { |
| 11029 | .vendor = "SST", |
| 11030 | .name = "SST49LF020A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11031 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11032 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11033 | .model_id = SST_SST49LF020A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11034 | .total_size = 256, |
Carl-Daniel Hailfinger | da65432 | 2009-07-23 01:44:38 +0000 | [diff] [blame] | 11035 | .page_size = 4 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11036 | .feature_bits = FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 11037 | .tested = TEST_OK_PRE, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11038 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 11039 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11040 | .block_erasers = |
| 11041 | { |
| 11042 | { |
| 11043 | .eraseblocks = { {4 * 1024, 64} }, |
| 11044 | .block_erase = erase_sector_jedec, |
| 11045 | }, { |
| 11046 | .eraseblocks = { {16 * 1024, 16} }, |
| 11047 | .block_erase = erase_block_jedec, |
| 11048 | }, { |
| 11049 | .eraseblocks = { {256 * 1024, 1} }, |
| 11050 | .block_erase = NULL, |
| 11051 | } |
| 11052 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11053 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11054 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11055 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11056 | }, |
| 11057 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11058 | { |
| 11059 | .vendor = "SST", |
| 11060 | .name = "SST49LF040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11061 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11062 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11063 | .model_id = SST_SST49LF040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11064 | .total_size = 512, |
| 11065 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11066 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 11067 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11068 | .probe = probe_jedec, |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 11069 | .probe_timing = 1, /* 150 ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11070 | .block_erasers = |
| 11071 | { |
| 11072 | { |
| 11073 | .eraseblocks = { {4 * 1024, 128} }, |
| 11074 | .block_erase = erase_sector_jedec, |
| 11075 | }, { |
| 11076 | .eraseblocks = { {64 * 1024, 8} }, |
| 11077 | .block_erase = erase_block_jedec, |
| 11078 | }, { |
| 11079 | .eraseblocks = { {512 * 1024, 1} }, |
| 11080 | .block_erase = NULL, |
| 11081 | } |
| 11082 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11083 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11084 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11085 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11086 | }, |
| 11087 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11088 | { |
| 11089 | .vendor = "SST", |
| 11090 | .name = "SST49LF040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11091 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11092 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11093 | .model_id = SST_SST49LF040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11094 | .total_size = 512, |
| 11095 | .page_size = 64 * 1024, |
Joshua Roys | a84b0bd | 2010-08-16 22:12:39 +0000 | [diff] [blame] | 11096 | .feature_bits = FEATURE_EITHER_RESET | FEATURE_REGISTERMAP, |
Sylvain "ythier" Hitier | 3093f8f | 2011-09-03 11:22:27 +0000 | [diff] [blame] | 11097 | .tested = TEST_OK_PREW, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11098 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11099 | .probe_timing = 1, /* 150ns */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11100 | .block_erasers = |
| 11101 | { |
| 11102 | { |
| 11103 | .eraseblocks = { {4 * 1024, 128} }, |
| 11104 | .block_erase = erase_sector_jedec, |
| 11105 | }, { |
| 11106 | .eraseblocks = { {64 * 1024, 8} }, |
| 11107 | .block_erase = erase_block_jedec, |
| 11108 | }, { |
| 11109 | .eraseblocks = { {512 * 1024, 1} }, |
| 11110 | .block_erase = NULL, |
| 11111 | } |
| 11112 | }, |
Joshua Roys | a84b0bd | 2010-08-16 22:12:39 +0000 | [diff] [blame] | 11113 | .unlock = unlock_82802ab, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11114 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11115 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11116 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11117 | }, |
| 11118 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11119 | { |
| 11120 | .vendor = "SST", |
| 11121 | .name = "SST49LF080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11122 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11123 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11124 | .model_id = SST_SST49LF080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11125 | .total_size = 1024, |
| 11126 | .page_size = 4096, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11127 | .feature_bits = FEATURE_EITHER_RESET, |
Brandon Dowdy | f07bf32 | 2011-03-06 18:31:11 +0000 | [diff] [blame] | 11128 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11129 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 11130 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11131 | .block_erasers = |
| 11132 | { |
| 11133 | { |
| 11134 | .eraseblocks = { {4 * 1024, 256} }, |
| 11135 | .block_erase = erase_sector_jedec, |
| 11136 | }, { |
| 11137 | .eraseblocks = { {64 * 1024, 16} }, |
| 11138 | .block_erase = erase_block_jedec, |
| 11139 | }, { |
| 11140 | .eraseblocks = { {1024 * 1024, 1} }, |
| 11141 | .block_erase = NULL, |
| 11142 | } |
| 11143 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11144 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11145 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11146 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11147 | }, |
| 11148 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11149 | { |
| 11150 | .vendor = "SST", |
| 11151 | .name = "SST49LF160C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11152 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11153 | .manufacture_id = SST_ID, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 11154 | .model_id = SST_SST49LF160C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11155 | .total_size = 2048, |
| 11156 | .page_size = 4 * 1024, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11157 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 11158 | .tested = TEST_OK_PRE, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11159 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 11160 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11161 | .block_erasers = |
| 11162 | { |
| 11163 | { |
| 11164 | .eraseblocks = { {4 * 1024, 512} }, |
| 11165 | .block_erase = erase_sector_49lfxxxc, |
| 11166 | }, { |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 11167 | .eraseblocks = { |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11168 | {64 * 1024, 31}, |
| 11169 | {32 * 1024, 1}, |
| 11170 | {8 * 1024, 2}, |
| 11171 | {16 * 1024, 1}, |
| 11172 | }, |
Sean Nelson | 69e5811 | 2010-03-23 17:10:28 +0000 | [diff] [blame] | 11173 | .block_erase = erase_block_82802ab, |
Sean Nelson | 51c83fb | 2010-01-20 20:55:53 +0000 | [diff] [blame] | 11174 | } |
| 11175 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 11176 | .unlock = unlock_49lfxxxc, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 11177 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11178 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11179 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11180 | }, |
| 11181 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11182 | { |
| 11183 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11184 | .name = "M29F002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11185 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11186 | .manufacture_id = ST_ID, |
| 11187 | .model_id = ST_M29F002B, |
| 11188 | .total_size = 256, |
| 11189 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11190 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11191 | .tested = TEST_UNTESTED, |
| 11192 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11193 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11194 | .block_erasers = |
| 11195 | { |
| 11196 | { |
| 11197 | .eraseblocks = { |
| 11198 | {16 * 1024, 1}, |
| 11199 | {8 * 1024, 2}, |
| 11200 | {32 * 1024, 1}, |
| 11201 | {64 * 1024, 3}, |
| 11202 | }, |
| 11203 | .block_erase = erase_sector_jedec, |
| 11204 | }, { |
| 11205 | .eraseblocks = { {256 * 1024, 1} }, |
| 11206 | .block_erase = erase_chip_block_jedec, |
| 11207 | } |
| 11208 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11209 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11210 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 11211 | .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] | 11212 | }, |
| 11213 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11214 | { |
| 11215 | .vendor = "ST", |
| 11216 | .name = "M29F002T/NT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11217 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11218 | .manufacture_id = ST_ID, |
| 11219 | .model_id = ST_M29F002T, |
| 11220 | .total_size = 256, |
| 11221 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11222 | .feature_bits = FEATURE_ADDR_AAA | FEATURE_EITHER_RESET, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 11223 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11224 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11225 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11226 | .block_erasers = |
| 11227 | { |
| 11228 | { |
| 11229 | .eraseblocks = { |
| 11230 | {64 * 1024, 3}, |
| 11231 | {32 * 1024, 1}, |
| 11232 | {8 * 1024, 2}, |
| 11233 | {16 * 1024, 1}, |
| 11234 | }, |
| 11235 | .block_erase = erase_sector_jedec, |
| 11236 | }, { |
| 11237 | .eraseblocks = { {256 * 1024, 1} }, |
| 11238 | .block_erase = erase_chip_block_jedec, |
| 11239 | } |
| 11240 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11241 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11242 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 11243 | .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] | 11244 | }, |
| 11245 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11246 | { |
| 11247 | .vendor = "ST", |
| 11248 | .name = "M29F040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11249 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11250 | .manufacture_id = ST_ID, |
| 11251 | .model_id = ST_M29F040B, |
| 11252 | .total_size = 512, |
| 11253 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11254 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
| 11255 | .tested = TEST_UNTESTED, |
| 11256 | .probe = probe_jedec, |
David Borg | 204f465 | 2010-12-04 03:26:40 +0000 | [diff] [blame] | 11257 | .probe_timing = TIMING_ZERO, /* datasheet specifies no timing */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11258 | .block_erasers = |
| 11259 | { |
| 11260 | { |
| 11261 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11262 | .block_erase = erase_sector_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11263 | }, { |
| 11264 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11265 | .block_erase = erase_chip_block_jedec, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11266 | } |
| 11267 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11268 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11269 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11270 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11271 | }, |
| 11272 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11273 | { |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11274 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11275 | .vendor = "ST", |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 11276 | .name = "M29F400BB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11277 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 11278 | .manufacture_id = ST_ID, |
| 11279 | .model_id = ST_M29F400BB, |
| 11280 | .total_size = 512, |
| 11281 | .page_size = 64 * 1024, |
| 11282 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 11283 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 11284 | .probe = probe_m29f400bt, |
| 11285 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */ |
| 11286 | .block_erasers = |
| 11287 | { |
| 11288 | { |
| 11289 | .eraseblocks = { |
| 11290 | {16 * 1024, 1}, |
| 11291 | {8 * 1024, 2}, |
| 11292 | {32 * 1024, 1}, |
| 11293 | {64 * 1024, 7}, |
| 11294 | }, |
| 11295 | .block_erase = block_erase_m29f400bt, |
| 11296 | }, { |
| 11297 | .eraseblocks = { {512 * 1024, 1} }, |
| 11298 | .block_erase = block_erase_chip_m29f400bt, |
| 11299 | } |
| 11300 | }, |
Carl-Daniel Hailfinger | 79e6757 | 2010-10-13 21:49:30 +0000 | [diff] [blame] | 11301 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 11302 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11303 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 11304 | }, |
| 11305 | { |
| 11306 | /* FIXME: this has WORD/BYTE sequences; 2AA for word, 555 for byte */ |
| 11307 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11308 | .name = "M29F400BT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11309 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11310 | .manufacture_id = ST_ID, |
| 11311 | .model_id = ST_M29F400BT, |
| 11312 | .total_size = 512, |
| 11313 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11314 | .feature_bits = FEATURE_ADDR_SHIFTED | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11315 | .tested = TEST_UNTESTED, |
| 11316 | .probe = probe_m29f400bt, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 11317 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (m29f400bt.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11318 | .block_erasers = |
| 11319 | { |
| 11320 | { |
| 11321 | .eraseblocks = { |
| 11322 | {64 * 1024, 7}, |
| 11323 | {32 * 1024, 1}, |
| 11324 | {8 * 1024, 2}, |
| 11325 | {16 * 1024, 1}, |
| 11326 | }, |
| 11327 | .block_erase = block_erase_m29f400bt, |
| 11328 | }, { |
| 11329 | .eraseblocks = { {512 * 1024, 1} }, |
| 11330 | .block_erase = block_erase_chip_m29f400bt, |
| 11331 | } |
| 11332 | }, |
Carl-Daniel Hailfinger | 420cf6f | 2010-07-16 22:07:20 +0000 | [diff] [blame] | 11333 | .write = write_m29f400bt, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11334 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11335 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11336 | }, |
| 11337 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11338 | { |
| 11339 | .vendor = "ST", |
| 11340 | .name = "M29W010B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11341 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11342 | .manufacture_id = ST_ID, |
| 11343 | .model_id = ST_M29W010B, |
| 11344 | .total_size = 128, |
| 11345 | .page_size = 16 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11346 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11347 | .tested = TEST_UNTESTED, |
| 11348 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11349 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11350 | .block_erasers = |
| 11351 | { |
| 11352 | { |
| 11353 | .eraseblocks = { {16 * 1024, 8}, }, |
| 11354 | .block_erase = erase_sector_jedec, |
| 11355 | }, { |
| 11356 | .eraseblocks = { {128 * 1024, 1} }, |
| 11357 | .block_erase = erase_chip_block_jedec, |
| 11358 | } |
| 11359 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11360 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11361 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11362 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11363 | }, |
| 11364 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11365 | { |
| 11366 | .vendor = "ST", |
| 11367 | .name = "M29W040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11368 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11369 | .manufacture_id = ST_ID, |
| 11370 | .model_id = ST_M29W040B, |
| 11371 | .total_size = 512, |
| 11372 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11373 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11374 | .tested = TEST_UNTESTED, |
| 11375 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11376 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11377 | .block_erasers = |
| 11378 | { |
| 11379 | { |
| 11380 | .eraseblocks = { {64 * 1024, 8}, }, |
| 11381 | .block_erase = erase_sector_jedec, |
| 11382 | }, { |
| 11383 | .eraseblocks = { {512 * 1024, 1} }, |
| 11384 | .block_erase = erase_chip_block_jedec, |
| 11385 | } |
| 11386 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11387 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11388 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11389 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11390 | }, |
| 11391 | |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 11392 | { |
| 11393 | .vendor = "ST", |
| 11394 | .name = "M29W512B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11395 | .bustype = BUS_PARALLEL, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 11396 | .manufacture_id = ST_ID, |
| 11397 | .model_id = ST_M29W512B, |
| 11398 | .total_size = 64, |
| 11399 | .page_size = 64 * 1024, |
| 11400 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 11401 | .tested = TEST_OK_PREW, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 11402 | .probe = probe_jedec, |
| 11403 | .probe_timing = TIMING_ZERO, |
| 11404 | .block_erasers = |
| 11405 | { |
| 11406 | { |
| 11407 | .eraseblocks = { {64 * 1024, 1} }, |
| 11408 | .block_erase = erase_chip_block_jedec, |
| 11409 | } |
| 11410 | }, |
| 11411 | .write = write_jedec_1, |
| 11412 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11413 | .voltage = {2700, 3600}, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 11414 | }, |
Jeffrey A. Kent | ba7c922 | 2010-02-01 05:49:46 +0000 | [diff] [blame] | 11415 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11416 | { |
| 11417 | .vendor = "ST", |
| 11418 | .name = "M50FLW040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11419 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11420 | .manufacture_id = ST_ID, |
| 11421 | .model_id = ST_M50FLW040A, |
| 11422 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11423 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11424 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11425 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11426 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 11427 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11428 | .block_erasers = |
| 11429 | { |
| 11430 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11431 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 11432 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11433 | {64 * 1024, 5}, /* block */ |
| 11434 | {4 * 1024, 16}, /* sector */ |
| 11435 | {4 * 1024, 16}, /* sector */ |
| 11436 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 11437 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11438 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11439 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11440 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11441 | } |
| 11442 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11443 | .write = write_82802ab, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11444 | .unlock = unlock_stm50_uniform, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11445 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11446 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11447 | }, |
| 11448 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11449 | { |
| 11450 | .vendor = "ST", |
| 11451 | .name = "M50FLW040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11452 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11453 | .manufacture_id = ST_ID, |
| 11454 | .model_id = ST_M50FLW040B, |
| 11455 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11456 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11457 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11458 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11459 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 11460 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11461 | .block_erasers = |
| 11462 | { |
| 11463 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11464 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 11465 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11466 | {4 * 1024, 16}, /* sector */ |
| 11467 | {64 * 1024, 5}, /* block */ |
| 11468 | {4 * 1024, 16}, /* sector */ |
| 11469 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 11470 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11471 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11472 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11473 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11474 | } |
| 11475 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11476 | .write = write_82802ab, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11477 | .unlock = unlock_stm50_uniform, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11478 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11479 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11480 | }, |
| 11481 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11482 | { |
| 11483 | .vendor = "ST", |
| 11484 | .name = "M50FLW080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11485 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11486 | .manufacture_id = ST_ID, |
| 11487 | .model_id = ST_M50FLW080A, |
| 11488 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11489 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11490 | .feature_bits = FEATURE_REGISTERMAP, |
Carl-Daniel Hailfinger | f52f784 | 2010-10-08 18:52:29 +0000 | [diff] [blame] | 11491 | .tested = TEST_OK_PRE, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11492 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 11493 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11494 | .block_erasers = |
| 11495 | { |
| 11496 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11497 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 11498 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11499 | {64 * 1024, 13}, /* block */ |
| 11500 | {4 * 1024, 16}, /* sector */ |
| 11501 | {4 * 1024, 16}, /* sector */ |
| 11502 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 11503 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11504 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11505 | .eraseblocks = { {64 * 1024, 16}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11506 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11507 | } |
| 11508 | }, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11509 | .unlock = unlock_stm50_nonuniform, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11510 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11511 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11512 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11513 | }, |
| 11514 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11515 | { |
| 11516 | .vendor = "ST", |
| 11517 | .name = "M50FLW080B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11518 | .bustype = BUS_FWH | BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11519 | .manufacture_id = ST_ID, |
| 11520 | .model_id = ST_M50FLW080B, |
| 11521 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11522 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11523 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11524 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11525 | .probe = probe_82802ab, |
Carl-Daniel Hailfinger | 08fa2f3 | 2010-01-10 01:34:00 +0000 | [diff] [blame] | 11526 | .probe_timing = TIMING_FIXME, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11527 | .block_erasers = |
| 11528 | { |
| 11529 | { |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11530 | .eraseblocks = { |
Uwe Hermann | 431f4f7 | 2010-09-05 12:41:25 +0000 | [diff] [blame] | 11531 | {4 * 1024, 16}, /* sector */ |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11532 | {4 * 1024, 16}, /* sector */ |
| 11533 | {64 * 1024, 13}, /* block */ |
| 11534 | {4 * 1024, 16}, /* sector */ |
| 11535 | }, |
Stefan Tauner | beaffd8 | 2013-09-12 08:29:06 +0000 | [diff] [blame] | 11536 | .block_erase = erase_sector_stm50, |
Sean Nelson | 329bde7 | 2010-01-19 16:39:19 +0000 | [diff] [blame] | 11537 | }, { |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11538 | .eraseblocks = { {64 * 1024, 16}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11539 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11540 | } |
| 11541 | }, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11542 | .unlock = unlock_stm50_nonuniform, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11543 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11544 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11545 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11546 | }, |
| 11547 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11548 | { |
| 11549 | .vendor = "ST", |
| 11550 | .name = "M50FW002", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11551 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11552 | .manufacture_id = ST_ID, |
| 11553 | .model_id = ST_M50FW002, |
| 11554 | .total_size = 256, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11555 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11556 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11557 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11558 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 11559 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (sst49lfxxxc.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11560 | .block_erasers = |
| 11561 | { |
| 11562 | { |
| 11563 | .eraseblocks = { |
| 11564 | {64 * 1024, 3}, |
| 11565 | {32 * 1024, 1}, |
| 11566 | {8 * 1024, 2}, |
| 11567 | {16 * 1024, 1}, |
| 11568 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11569 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11570 | } |
| 11571 | }, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11572 | .unlock = unlock_stm50_nonuniform, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11573 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11574 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11575 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11576 | }, |
| 11577 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11578 | { |
| 11579 | .vendor = "ST", |
| 11580 | .name = "M50FW016", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11581 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11582 | .manufacture_id = ST_ID, |
| 11583 | .model_id = ST_M50FW016, |
| 11584 | .total_size = 2048, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11585 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11586 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11587 | .tested = TEST_UNTESTED, |
| 11588 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 11589 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11590 | .block_erasers = |
| 11591 | { |
| 11592 | { |
| 11593 | .eraseblocks = { {64 * 1024, 32}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11594 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11595 | } |
| 11596 | }, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11597 | .unlock = unlock_stm50_uniform, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11598 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11599 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11600 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11601 | }, |
| 11602 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11603 | { |
| 11604 | .vendor = "ST", |
| 11605 | .name = "M50FW040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11606 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11607 | .manufacture_id = ST_ID, |
| 11608 | .model_id = ST_M50FW040, |
| 11609 | .total_size = 512, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11610 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11611 | .feature_bits = FEATURE_REGISTERMAP, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11612 | .tested = TEST_OK_PR, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11613 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 11614 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11615 | .block_erasers = |
| 11616 | { |
| 11617 | { |
| 11618 | .eraseblocks = { {64 * 1024, 8}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11619 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11620 | } |
| 11621 | }, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11622 | .unlock = unlock_stm50_uniform, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11623 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11624 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11625 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11626 | }, |
| 11627 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11628 | { |
| 11629 | .vendor = "ST", |
| 11630 | .name = "M50FW080", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11631 | .bustype = BUS_FWH, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11632 | .manufacture_id = ST_ID, |
| 11633 | .model_id = ST_M50FW080, |
| 11634 | .total_size = 1024, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11635 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11636 | .feature_bits = FEATURE_REGISTERMAP, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 11637 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11638 | .probe = probe_82802ab, |
Paul Menzel | c07a41c | 2011-06-19 17:23:55 +0000 | [diff] [blame] | 11639 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (82802ab.c) */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11640 | .block_erasers = |
| 11641 | { |
| 11642 | { |
| 11643 | .eraseblocks = { {64 * 1024, 16}, }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11644 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11645 | } |
| 11646 | }, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11647 | .unlock = unlock_stm50_uniform, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11648 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11649 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11650 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11651 | }, |
| 11652 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11653 | { |
| 11654 | .vendor = "ST", |
Stefan Tauner | 8c4602b | 2013-09-12 08:29:00 +0000 | [diff] [blame] | 11655 | .name = "M50LPW080", |
| 11656 | .bustype = BUS_LPC, /* A/A Mux */ |
| 11657 | .manufacture_id = ST_ID, |
| 11658 | .model_id = ST_M50LPW080, |
| 11659 | .total_size = 1024, |
| 11660 | .page_size = 0, |
| 11661 | .feature_bits = FEATURE_REGISTERMAP, |
| 11662 | .tested = TEST_UNTESTED, |
| 11663 | .probe = probe_82802ab, |
| 11664 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 11665 | .block_erasers = |
| 11666 | { |
| 11667 | { |
| 11668 | .eraseblocks = { {64 * 1024, 16}, }, |
| 11669 | .block_erase = erase_block_82802ab, |
| 11670 | } |
| 11671 | }, |
| 11672 | .unlock = unlock_stm50_uniform, |
| 11673 | .write = write_82802ab, |
| 11674 | .read = read_memmapped, |
| 11675 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
| 11676 | }, |
| 11677 | |
| 11678 | { |
| 11679 | .vendor = "ST", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11680 | .name = "M50LPW116", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11681 | .bustype = BUS_LPC, /* A/A Mux */ |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11682 | .manufacture_id = ST_ID, |
| 11683 | .model_id = ST_M50LPW116, |
| 11684 | .total_size = 2048, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11685 | .page_size = 0, |
Carl-Daniel Hailfinger | 81449a2 | 2010-03-15 03:48:42 +0000 | [diff] [blame] | 11686 | .feature_bits = FEATURE_REGISTERMAP, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11687 | .tested = TEST_UNTESTED, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11688 | .probe = probe_82802ab, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11689 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11690 | .block_erasers = |
| 11691 | { |
| 11692 | { |
| 11693 | .eraseblocks = { |
| 11694 | {4 * 1024, 16}, |
| 11695 | {64 * 1024, 30}, |
| 11696 | {32 * 1024, 1}, |
| 11697 | {8 * 1024, 2}, |
| 11698 | {16 * 1024, 1}, |
| 11699 | }, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11700 | .block_erase = erase_block_82802ab, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11701 | } |
| 11702 | }, |
Stefan Tauner | 4404f73 | 2013-09-12 08:28:56 +0000 | [diff] [blame] | 11703 | .unlock = unlock_stm50_nonuniform, |
Sean Nelson | 28accc2 | 2010-03-19 18:47:06 +0000 | [diff] [blame] | 11704 | .write = write_82802ab, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11705 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11706 | .voltage = {3000, 3600}, /* Also has 12V fast program & erase */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11707 | }, |
| 11708 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11709 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11710 | .vendor = "SyncMOS/MoselVitelic", |
| 11711 | .name = "{F,S,V}29C51001B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11712 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11713 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11714 | .model_id = SM_MVC_29C51001B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11715 | .total_size = 128, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11716 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11717 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11718 | .tested = TEST_UNTESTED, |
| 11719 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11720 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11721 | .block_erasers = |
| 11722 | { |
| 11723 | { |
| 11724 | .eraseblocks = { {512, 256} }, |
| 11725 | .block_erase = erase_sector_jedec, |
| 11726 | }, { |
| 11727 | .eraseblocks = { {128 * 1024, 1} }, |
| 11728 | .block_erase = erase_chip_block_jedec, |
| 11729 | }, |
| 11730 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11731 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11732 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11733 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11734 | }, |
| 11735 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11736 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11737 | .vendor = "SyncMOS/MoselVitelic", |
| 11738 | .name = "{F,S,V}29C51001T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11739 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11740 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11741 | .model_id = SM_MVC_29C51001T, |
| 11742 | .total_size = 128, |
| 11743 | .page_size = 512, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11744 | .feature_bits = FEATURE_EITHER_RESET, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11745 | .tested = TEST_UNTESTED, |
| 11746 | .probe = probe_jedec, |
| 11747 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 11748 | .block_erasers = |
| 11749 | { |
| 11750 | { |
| 11751 | .eraseblocks = { {512, 256} }, |
| 11752 | .block_erase = erase_sector_jedec, |
| 11753 | }, { |
| 11754 | .eraseblocks = { {128 * 1024, 1} }, |
| 11755 | .block_erase = erase_chip_block_jedec, |
| 11756 | }, |
| 11757 | }, |
| 11758 | .write = write_jedec_1, |
| 11759 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11760 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11761 | }, |
| 11762 | |
| 11763 | { |
| 11764 | .vendor = "SyncMOS/MoselVitelic", |
| 11765 | .name = "{F,S,V}29C51002B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11766 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11767 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11768 | .model_id = SM_MVC_29C51002B, |
| 11769 | .total_size = 256, |
| 11770 | .page_size = 512, |
| 11771 | .feature_bits = FEATURE_EITHER_RESET, |
| 11772 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11773 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11774 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11775 | .block_erasers = |
| 11776 | { |
| 11777 | { |
| 11778 | .eraseblocks = { {512, 512} }, |
| 11779 | .block_erase = erase_sector_jedec, |
| 11780 | }, { |
| 11781 | .eraseblocks = { {256 * 1024, 1} }, |
| 11782 | .block_erase = erase_chip_block_jedec, |
| 11783 | }, |
| 11784 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11785 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11786 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11787 | }, |
| 11788 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11789 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11790 | .vendor = "SyncMOS/MoselVitelic", |
| 11791 | .name = "{F,S,V}29C51002T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11792 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11793 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11794 | .model_id = SM_MVC_29C51002T, |
| 11795 | .total_size = 256, |
| 11796 | .page_size = 512, |
| 11797 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 11798 | .tested = TEST_OK_PREW, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11799 | .probe = probe_jedec, |
| 11800 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 11801 | .block_erasers = |
| 11802 | { |
| 11803 | { |
| 11804 | .eraseblocks = { {512, 512} }, |
| 11805 | .block_erase = erase_sector_jedec, |
| 11806 | }, { |
| 11807 | .eraseblocks = { {256 * 1024, 1} }, |
| 11808 | .block_erase = erase_chip_block_jedec, |
| 11809 | }, |
| 11810 | }, |
| 11811 | .write = write_jedec_1, |
| 11812 | .read = read_memmapped, |
| 11813 | }, |
| 11814 | |
| 11815 | { |
| 11816 | .vendor = "SyncMOS/MoselVitelic", |
| 11817 | .name = "{F,S,V}29C51004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11818 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11819 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11820 | .model_id = SM_MVC_29C51004B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11821 | .total_size = 512, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11822 | .page_size = 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11823 | .feature_bits = FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11824 | .tested = TEST_UNTESTED, |
| 11825 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11826 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11827 | .block_erasers = |
| 11828 | { |
| 11829 | { |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11830 | .eraseblocks = { {1024, 512} }, |
| 11831 | .block_erase = erase_sector_jedec, |
| 11832 | }, { |
| 11833 | .eraseblocks = { {512 * 1024, 1} }, |
| 11834 | .block_erase = erase_chip_block_jedec, |
| 11835 | }, |
| 11836 | }, |
| 11837 | .write = write_jedec_1, |
| 11838 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11839 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11840 | }, |
| 11841 | |
| 11842 | { |
| 11843 | .vendor = "SyncMOS/MoselVitelic", |
| 11844 | .name = "{F,S,V}29C51004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11845 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11846 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11847 | .model_id = SM_MVC_29C51004T, |
| 11848 | .total_size = 512, |
| 11849 | .page_size = 1024, |
| 11850 | .feature_bits = FEATURE_EITHER_RESET, |
| 11851 | .tested = TEST_UNTESTED, |
| 11852 | .probe = probe_jedec, |
| 11853 | .probe_timing = TIMING_ZERO, |
| 11854 | .block_erasers = |
| 11855 | { |
| 11856 | { |
| 11857 | .eraseblocks = { {1024, 512} }, |
| 11858 | .block_erase = erase_sector_jedec, |
| 11859 | }, { |
| 11860 | .eraseblocks = { {512 * 1024, 1} }, |
| 11861 | .block_erase = erase_chip_block_jedec, |
| 11862 | }, |
| 11863 | }, |
| 11864 | .write = write_jedec_1, |
| 11865 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11866 | .voltage = {4500, 5500}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11867 | }, |
| 11868 | |
| 11869 | { |
| 11870 | .vendor = "SyncMOS/MoselVitelic", |
| 11871 | .name = "{S,V}29C31004B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11872 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11873 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11874 | .model_id = SM_MVC_29C31004B, |
| 11875 | .total_size = 512, |
| 11876 | .page_size = 1024, |
| 11877 | .feature_bits = FEATURE_EITHER_RESET, |
| 11878 | .tested = TEST_UNTESTED, |
| 11879 | .probe = probe_jedec, |
| 11880 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 11881 | .block_erasers = |
| 11882 | { |
| 11883 | { |
| 11884 | .eraseblocks = { {1024, 512} }, |
| 11885 | .block_erase = erase_sector_jedec, |
| 11886 | }, { |
| 11887 | .eraseblocks = { {512 * 1024, 1} }, |
| 11888 | .block_erase = erase_chip_block_jedec, |
| 11889 | }, |
| 11890 | }, |
| 11891 | .write = write_jedec_1, |
| 11892 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11893 | .voltage = {3000, 3600}, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11894 | }, |
| 11895 | |
| 11896 | { |
| 11897 | .vendor = "SyncMOS/MoselVitelic", |
| 11898 | .name = "{S,V}29C31004T", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11899 | .bustype = BUS_PARALLEL, |
Mattias Mattsson | 4c06650 | 2010-07-29 20:01:13 +0000 | [diff] [blame] | 11900 | .manufacture_id = SYNCMOS_MVC_ID, |
| 11901 | .model_id = SM_MVC_29C31004T, |
| 11902 | .total_size = 512, |
| 11903 | .page_size = 1024, |
| 11904 | .feature_bits = FEATURE_EITHER_RESET, |
| 11905 | .tested = TEST_UNTESTED, |
| 11906 | .probe = probe_jedec, |
| 11907 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
| 11908 | .block_erasers = |
| 11909 | { |
| 11910 | { |
| 11911 | .eraseblocks = { {1024, 512} }, |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11912 | .block_erase = erase_sector_jedec, |
| 11913 | }, { |
| 11914 | .eraseblocks = { {512 * 1024, 1} }, |
| 11915 | .block_erase = erase_chip_block_jedec, |
| 11916 | }, |
| 11917 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11918 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 11919 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11920 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 11921 | }, |
| 11922 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11923 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 11924 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11925 | .name = "TMS29F002RB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11926 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11927 | .manufacture_id = TI_OLD_ID, |
| 11928 | .model_id = TI_TMS29F002RB, |
| 11929 | .total_size = 256, |
| 11930 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11931 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11932 | .tested = TEST_UNTESTED, |
| 11933 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11934 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11935 | .block_erasers = |
| 11936 | { |
| 11937 | { |
| 11938 | .eraseblocks = { |
| 11939 | {16 * 1024, 1}, |
| 11940 | {8 * 1024, 2}, |
| 11941 | {32 * 1024, 1}, |
| 11942 | {64 * 1024, 3}, |
| 11943 | }, |
| 11944 | .block_erase = erase_sector_jedec, |
| 11945 | }, { |
| 11946 | .eraseblocks = { {256 * 1024, 1} }, |
| 11947 | .block_erase = erase_chip_block_jedec, |
| 11948 | }, |
| 11949 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11950 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11951 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11952 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11953 | }, |
| 11954 | |
| 11955 | { |
Uwe Hermann | a106d15 | 2009-05-27 23:17:40 +0000 | [diff] [blame] | 11956 | .vendor = "TI", |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11957 | .name = "TMS29F002RT", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11958 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11959 | .manufacture_id = TI_OLD_ID, |
| 11960 | .model_id = TI_TMS29F002RT, |
| 11961 | .total_size = 256, |
| 11962 | .page_size = 16384, /* Non-uniform sectors */ |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11963 | .feature_bits = FEATURE_ADDR_2AA | FEATURE_EITHER_RESET, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11964 | .tested = TEST_UNTESTED, |
| 11965 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 11966 | .probe_timing = TIMING_ZERO, /* Datasheet has no timing info specified */ |
Sean Nelson | 56358aa | 2010-01-19 16:08:51 +0000 | [diff] [blame] | 11967 | .block_erasers = |
| 11968 | { |
| 11969 | { |
| 11970 | .eraseblocks = { |
| 11971 | {64 * 1024, 3}, |
| 11972 | {32 * 1024, 1}, |
| 11973 | {8 * 1024, 2}, |
| 11974 | {16 * 1024, 1}, |
| 11975 | }, |
| 11976 | .block_erase = erase_sector_jedec, |
| 11977 | }, { |
| 11978 | .eraseblocks = { {256 * 1024, 1} }, |
| 11979 | .block_erase = erase_chip_block_jedec, |
| 11980 | }, |
| 11981 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 11982 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11983 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 11984 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | 09b4fb7 | 2009-05-26 21:26:23 +0000 | [diff] [blame] | 11985 | }, |
| 11986 | |
| 11987 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 11988 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11989 | .name = "W25Q80.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 11990 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11991 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11992 | .model_id = WINBOND_NEX_W25Q80_V, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11993 | .total_size = 1024, |
| 11994 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 11995 | /* supports SFDP */ |
| 11996 | /* 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] | 11997 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 11998 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 11999 | .probe = probe_spi_rdid, |
| 12000 | .probe_timing = TIMING_ZERO, |
| 12001 | .block_erasers = |
| 12002 | { |
| 12003 | { |
| 12004 | .eraseblocks = { {4 * 1024, 256} }, |
| 12005 | .block_erase = spi_block_erase_20, |
| 12006 | }, { |
| 12007 | .eraseblocks = { {32 * 1024, 32} }, |
| 12008 | .block_erase = spi_block_erase_52, |
| 12009 | }, { |
| 12010 | .eraseblocks = { {64 * 1024, 16} }, |
| 12011 | .block_erase = spi_block_erase_d8, |
| 12012 | }, { |
| 12013 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12014 | .block_erase = spi_block_erase_60, |
| 12015 | }, { |
| 12016 | .eraseblocks = { {1024 * 1024, 1} }, |
| 12017 | .block_erase = spi_block_erase_c7, |
| 12018 | } |
| 12019 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12020 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12021 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 12022 | .write = spi_chip_write_256, |
| 12023 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12024 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 12025 | }, |
| 12026 | |
| 12027 | { |
| 12028 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12029 | .name = "W25Q16.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12030 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 12031 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12032 | .model_id = WINBOND_NEX_W25Q16_V, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 12033 | .total_size = 2048, |
| 12034 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12035 | /* supports SFDP */ |
| 12036 | /* 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] | 12037 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 12038 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 12039 | .probe = probe_spi_rdid, |
| 12040 | .probe_timing = TIMING_ZERO, |
| 12041 | .block_erasers = |
| 12042 | { |
| 12043 | { |
| 12044 | .eraseblocks = { {4 * 1024, 512} }, |
| 12045 | .block_erase = spi_block_erase_20, |
| 12046 | }, { |
| 12047 | .eraseblocks = { {32 * 1024, 64} }, |
| 12048 | .block_erase = spi_block_erase_52, |
| 12049 | }, { |
| 12050 | .eraseblocks = { {64 * 1024, 32} }, |
| 12051 | .block_erase = spi_block_erase_d8, |
| 12052 | }, { |
| 12053 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12054 | .block_erase = spi_block_erase_60, |
| 12055 | }, { |
| 12056 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12057 | .block_erase = spi_block_erase_c7, |
| 12058 | } |
| 12059 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12060 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12061 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 12062 | .write = spi_chip_write_256, |
| 12063 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12064 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 12065 | }, |
| 12066 | |
| 12067 | { |
| 12068 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12069 | .name = "W25Q32.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12070 | .bustype = BUS_SPI, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 12071 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12072 | .model_id = WINBOND_NEX_W25Q32_V, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 12073 | .total_size = 4096, |
| 12074 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12075 | /* supports SFDP */ |
| 12076 | /* 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] | 12077 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 12078 | .tested = TEST_OK_PREW, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 12079 | .probe = probe_spi_rdid, |
| 12080 | .probe_timing = TIMING_ZERO, |
| 12081 | .block_erasers = |
| 12082 | { |
| 12083 | { |
| 12084 | .eraseblocks = { {4 * 1024, 1024} }, |
| 12085 | .block_erase = spi_block_erase_20, |
| 12086 | }, { |
| 12087 | .eraseblocks = { {32 * 1024, 128} }, |
| 12088 | .block_erase = spi_block_erase_52, |
| 12089 | }, { |
| 12090 | .eraseblocks = { {64 * 1024, 64} }, |
| 12091 | .block_erase = spi_block_erase_d8, |
| 12092 | }, { |
| 12093 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12094 | .block_erase = spi_block_erase_60, |
| 12095 | }, { |
| 12096 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12097 | .block_erase = spi_block_erase_c7, |
| 12098 | } |
| 12099 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12100 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12101 | .unlock = spi_disable_blockprotect, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 12102 | .write = spi_chip_write_256, |
| 12103 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12104 | .voltage = {2700, 3600}, |
Rudolf Marek | ce1c798 | 2010-04-20 19:34:31 +0000 | [diff] [blame] | 12105 | }, |
| 12106 | |
| 12107 | { |
| 12108 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12109 | .name = "W25Q64.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12110 | .bustype = BUS_SPI, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 12111 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12112 | .model_id = WINBOND_NEX_W25Q64_V, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 12113 | .total_size = 8192, |
| 12114 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12115 | /* supports SFDP */ |
| 12116 | /* 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] | 12117 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
David Hendricks | 22e0532 | 2010-12-13 23:54:59 +0000 | [diff] [blame] | 12118 | .tested = TEST_OK_PREW, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 12119 | .probe = probe_spi_rdid, |
| 12120 | .probe_timing = TIMING_ZERO, |
| 12121 | .block_erasers = |
| 12122 | { |
| 12123 | { |
| 12124 | .eraseblocks = { {4 * 1024, 2048} }, |
| 12125 | .block_erase = spi_block_erase_20, |
| 12126 | }, { |
| 12127 | .eraseblocks = { {32 * 1024, 256} }, |
| 12128 | .block_erase = spi_block_erase_52, |
| 12129 | }, { |
| 12130 | .eraseblocks = { {64 * 1024, 128} }, |
| 12131 | .block_erase = spi_block_erase_d8, |
| 12132 | }, { |
| 12133 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 12134 | .block_erase = spi_block_erase_60, |
| 12135 | }, { |
| 12136 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 12137 | .block_erase = spi_block_erase_c7, |
| 12138 | } |
| 12139 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12140 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12141 | .unlock = spi_disable_blockprotect, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 12142 | .write = spi_chip_write_256, |
| 12143 | .read = spi_chip_read, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12144 | .voltage = {2700, 3600}, |
David Hendricks | c4acec9 | 2010-06-24 11:39:57 +0000 | [diff] [blame] | 12145 | }, |
| 12146 | |
| 12147 | { |
| 12148 | .vendor = "Winbond", |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12149 | .name = "W25Q128.V", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12150 | .bustype = BUS_SPI, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 12151 | .manufacture_id = WINBOND_NEX_ID, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12152 | .model_id = WINBOND_NEX_W25Q128_V, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 12153 | .total_size = 16384, |
| 12154 | .page_size = 256, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12155 | /* supports SFDP */ |
| 12156 | /* 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] | 12157 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 12158 | .tested = TEST_OK_PREW, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 12159 | .probe = probe_spi_rdid, |
| 12160 | .probe_timing = TIMING_ZERO, |
| 12161 | .block_erasers = |
| 12162 | { |
| 12163 | { |
| 12164 | .eraseblocks = { {4 * 1024, 4096} }, |
| 12165 | .block_erase = spi_block_erase_20, |
| 12166 | }, { |
| 12167 | .eraseblocks = { {32 * 1024, 512} }, |
| 12168 | .block_erase = spi_block_erase_52, |
| 12169 | }, { |
| 12170 | .eraseblocks = { {64 * 1024, 256} }, |
| 12171 | .block_erase = spi_block_erase_d8, |
| 12172 | }, { |
| 12173 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 12174 | .block_erase = spi_block_erase_60, |
| 12175 | }, { |
| 12176 | .eraseblocks = { {16 * 1024 * 1024, 1} }, |
| 12177 | .block_erase = spi_block_erase_c7, |
| 12178 | } |
| 12179 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12180 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 12181 | .unlock = spi_disable_blockprotect, |
| 12182 | .write = spi_chip_write_256, |
| 12183 | .read = spi_chip_read, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12184 | .voltage = {2700, 3600}, |
| 12185 | }, |
| 12186 | |
| 12187 | { |
| 12188 | .vendor = "Winbond", |
| 12189 | .name = "W25Q20.W", |
| 12190 | .bustype = BUS_SPI, |
| 12191 | .manufacture_id = WINBOND_NEX_ID, |
| 12192 | .model_id = WINBOND_NEX_W25Q20_W, |
| 12193 | .total_size = 256, |
| 12194 | .page_size = 256, |
| 12195 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 12196 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12197 | .tested = TEST_UNTESTED, |
| 12198 | .probe = probe_spi_rdid, |
| 12199 | .probe_timing = TIMING_ZERO, |
| 12200 | .block_erasers = |
| 12201 | { |
| 12202 | { |
| 12203 | .eraseblocks = { {4 * 1024, 64} }, |
| 12204 | .block_erase = spi_block_erase_20, |
| 12205 | }, { |
| 12206 | .eraseblocks = { {32 * 1024, 8} }, |
| 12207 | .block_erase = spi_block_erase_52, |
| 12208 | }, { |
| 12209 | .eraseblocks = { {64 * 1024, 4} }, |
| 12210 | .block_erase = spi_block_erase_d8, |
| 12211 | }, { |
| 12212 | .eraseblocks = { {256 * 1024, 1} }, |
| 12213 | .block_erase = spi_block_erase_60, |
| 12214 | }, { |
| 12215 | .eraseblocks = { {256 * 1024, 1} }, |
| 12216 | .block_erase = spi_block_erase_c7, |
| 12217 | } |
| 12218 | }, |
| 12219 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 12220 | .unlock = spi_disable_blockprotect, |
| 12221 | .write = spi_chip_write_256, |
| 12222 | .read = spi_chip_read, |
| 12223 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 12224 | }, |
| 12225 | |
| 12226 | { |
| 12227 | .vendor = "Winbond", |
| 12228 | .name = "W25Q40.W", |
| 12229 | .bustype = BUS_SPI, |
| 12230 | .manufacture_id = WINBOND_NEX_ID, |
| 12231 | .model_id = WINBOND_NEX_W25Q40_W, |
| 12232 | .total_size = 512, |
| 12233 | .page_size = 256, |
| 12234 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 12235 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12236 | .tested = TEST_UNTESTED, |
| 12237 | .probe = probe_spi_rdid, |
| 12238 | .probe_timing = TIMING_ZERO, |
| 12239 | .block_erasers = |
| 12240 | { |
| 12241 | { |
| 12242 | .eraseblocks = { {4 * 1024, 128} }, |
| 12243 | .block_erase = spi_block_erase_20, |
| 12244 | }, { |
| 12245 | .eraseblocks = { {32 * 1024, 16} }, |
| 12246 | .block_erase = spi_block_erase_52, |
| 12247 | }, { |
| 12248 | .eraseblocks = { {64 * 1024, 8} }, |
| 12249 | .block_erase = spi_block_erase_d8, |
| 12250 | }, { |
| 12251 | .eraseblocks = { {512 * 1024, 1} }, |
| 12252 | .block_erase = spi_block_erase_60, |
| 12253 | }, { |
| 12254 | .eraseblocks = { {512 * 1024, 1} }, |
| 12255 | .block_erase = spi_block_erase_c7, |
| 12256 | } |
| 12257 | }, |
| 12258 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 12259 | .unlock = spi_disable_blockprotect, |
| 12260 | .write = spi_chip_write_256, |
| 12261 | .read = spi_chip_read, |
| 12262 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 12263 | }, |
| 12264 | |
| 12265 | { |
| 12266 | .vendor = "Winbond", |
| 12267 | .name = "W25Q80.W", |
| 12268 | .bustype = BUS_SPI, |
| 12269 | .manufacture_id = WINBOND_NEX_ID, |
| 12270 | .model_id = WINBOND_NEX_W25Q80_W, |
| 12271 | .total_size = 1024, |
| 12272 | .page_size = 256, |
| 12273 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 12274 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP, |
| 12275 | .tested = TEST_UNTESTED, |
| 12276 | .probe = probe_spi_rdid, |
| 12277 | .probe_timing = TIMING_ZERO, |
| 12278 | .block_erasers = |
| 12279 | { |
| 12280 | { |
| 12281 | .eraseblocks = { {4 * 1024, 256} }, |
| 12282 | .block_erase = spi_block_erase_20, |
| 12283 | }, { |
| 12284 | .eraseblocks = { {32 * 1024, 32} }, |
| 12285 | .block_erase = spi_block_erase_52, |
| 12286 | }, { |
| 12287 | .eraseblocks = { {64 * 1024, 16} }, |
| 12288 | .block_erase = spi_block_erase_d8, |
| 12289 | }, { |
| 12290 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 12291 | .block_erase = spi_block_erase_60, |
| 12292 | }, { |
| 12293 | .eraseblocks = { {1 * 1024 * 1024, 1} }, |
| 12294 | .block_erase = spi_block_erase_c7, |
| 12295 | } |
| 12296 | }, |
| 12297 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 12298 | .unlock = spi_disable_blockprotect, |
| 12299 | .write = spi_chip_write_256, |
| 12300 | .read = spi_chip_read, |
| 12301 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 12302 | }, |
| 12303 | |
| 12304 | { |
| 12305 | .vendor = "Winbond", |
| 12306 | .name = "W25Q16.W", |
| 12307 | .bustype = BUS_SPI, |
| 12308 | .manufacture_id = WINBOND_NEX_ID, |
| 12309 | .model_id = WINBOND_NEX_W25Q16_W, |
| 12310 | .total_size = 2048, |
| 12311 | .page_size = 256, |
| 12312 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 12313 | /* QPI enable 0x38, disable 0xFF */ |
| 12314 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 12315 | .tested = TEST_UNTESTED, |
| 12316 | .probe = probe_spi_rdid, |
| 12317 | .probe_timing = TIMING_ZERO, |
| 12318 | .block_erasers = |
| 12319 | { |
| 12320 | { |
| 12321 | .eraseblocks = { {4 * 1024, 512} }, |
| 12322 | .block_erase = spi_block_erase_20, |
| 12323 | }, { |
| 12324 | .eraseblocks = { {32 * 1024, 64} }, |
| 12325 | .block_erase = spi_block_erase_52, |
| 12326 | }, { |
| 12327 | .eraseblocks = { {64 * 1024, 32} }, |
| 12328 | .block_erase = spi_block_erase_d8, |
| 12329 | }, { |
| 12330 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12331 | .block_erase = spi_block_erase_60, |
| 12332 | }, { |
| 12333 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12334 | .block_erase = spi_block_erase_c7, |
| 12335 | } |
| 12336 | }, |
| 12337 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 12338 | .unlock = spi_disable_blockprotect, |
| 12339 | .write = spi_chip_write_256, |
| 12340 | .read = spi_chip_read, |
| 12341 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 12342 | }, |
| 12343 | |
| 12344 | { |
| 12345 | .vendor = "Winbond", |
| 12346 | .name = "W25Q32.W", |
| 12347 | .bustype = BUS_SPI, |
| 12348 | .manufacture_id = WINBOND_NEX_ID, |
| 12349 | .model_id = WINBOND_NEX_W25Q32_W, |
| 12350 | .total_size = 4096, |
| 12351 | .page_size = 256, |
| 12352 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 12353 | /* QPI enable 0x38, disable 0xFF */ |
| 12354 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
| 12355 | .tested = TEST_OK_PREW, |
| 12356 | .probe = probe_spi_rdid, |
| 12357 | .probe_timing = TIMING_ZERO, |
| 12358 | .block_erasers = |
| 12359 | { |
| 12360 | { |
| 12361 | .eraseblocks = { {4 * 1024, 1024} }, |
| 12362 | .block_erase = spi_block_erase_20, |
| 12363 | }, { |
| 12364 | .eraseblocks = { {32 * 1024, 128} }, |
| 12365 | .block_erase = spi_block_erase_52, |
| 12366 | }, { |
| 12367 | .eraseblocks = { {64 * 1024, 64} }, |
| 12368 | .block_erase = spi_block_erase_d8, |
| 12369 | }, { |
| 12370 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12371 | .block_erase = spi_block_erase_60, |
| 12372 | }, { |
| 12373 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12374 | .block_erase = spi_block_erase_c7, |
| 12375 | } |
| 12376 | }, |
| 12377 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 12378 | .unlock = spi_disable_blockprotect, |
| 12379 | .write = spi_chip_write_256, |
| 12380 | .read = spi_chip_read, |
| 12381 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
| 12382 | }, |
| 12383 | |
| 12384 | { |
| 12385 | .vendor = "Winbond", |
| 12386 | .name = "W25Q64.W", |
| 12387 | .bustype = BUS_SPI, |
| 12388 | .manufacture_id = WINBOND_NEX_ID, |
| 12389 | .model_id = WINBOND_NEX_W25Q64_W, |
| 12390 | .total_size = 8192, |
| 12391 | .page_size = 256, |
| 12392 | /* OTP: 256B total; read 0x48; write 0x42, erase 0x44, read ID 0x4B */ |
| 12393 | /* QPI enable 0x38, disable 0xFF */ |
| 12394 | .feature_bits = FEATURE_WRSR_WREN | FEATURE_OTP | FEATURE_QPI, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 12395 | .tested = TEST_OK_PREW, |
Yung-Chieh Lo | b13d4e6 | 2013-06-09 14:00:46 +0000 | [diff] [blame] | 12396 | .probe = probe_spi_rdid, |
| 12397 | .probe_timing = TIMING_ZERO, |
| 12398 | .block_erasers = |
| 12399 | { |
| 12400 | { |
| 12401 | .eraseblocks = { {4 * 1024, 2048} }, |
| 12402 | .block_erase = spi_block_erase_20, |
| 12403 | }, { |
| 12404 | .eraseblocks = { {32 * 1024, 256} }, |
| 12405 | .block_erase = spi_block_erase_52, |
| 12406 | }, { |
| 12407 | .eraseblocks = { {64 * 1024, 128} }, |
| 12408 | .block_erase = spi_block_erase_d8, |
| 12409 | }, { |
| 12410 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 12411 | .block_erase = spi_block_erase_60, |
| 12412 | }, { |
| 12413 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 12414 | .block_erase = spi_block_erase_c7, |
| 12415 | } |
| 12416 | }, |
| 12417 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
| 12418 | .unlock = spi_disable_blockprotect, |
| 12419 | .write = spi_chip_write_256, |
| 12420 | .read = spi_chip_read, |
| 12421 | .voltage = {1700, 1950}, /* Fast read (0x0B) and multi I/O supported */ |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 12422 | }, |
| 12423 | |
| 12424 | { |
| 12425 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12426 | .name = "W25X10", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12427 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12428 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12429 | .model_id = WINBOND_NEX_W25X10, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12430 | .total_size = 128, |
| 12431 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 12432 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | e34e3e8 | 2013-01-01 00:06:51 +0000 | [diff] [blame] | 12433 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12434 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12435 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12436 | .block_erasers = |
| 12437 | { |
| 12438 | { |
| 12439 | .eraseblocks = { {4 * 1024, 32} }, |
| 12440 | .block_erase = spi_block_erase_20, |
| 12441 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12442 | .eraseblocks = { {64 * 1024, 2} }, |
| 12443 | .block_erase = spi_block_erase_d8, |
| 12444 | }, { |
| 12445 | .eraseblocks = { {128 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12446 | .block_erase = spi_block_erase_c7, |
| 12447 | } |
| 12448 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12449 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12450 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12451 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12452 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12453 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12454 | }, |
| 12455 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12456 | { |
| 12457 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12458 | .name = "W25X20", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12459 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12460 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12461 | .model_id = WINBOND_NEX_W25X20, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12462 | .total_size = 256, |
| 12463 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 12464 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 12465 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12466 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12467 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12468 | .block_erasers = |
| 12469 | { |
| 12470 | { |
| 12471 | .eraseblocks = { {4 * 1024, 64} }, |
| 12472 | .block_erase = spi_block_erase_20, |
| 12473 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12474 | .eraseblocks = { {64 * 1024, 4} }, |
| 12475 | .block_erase = spi_block_erase_d8, |
| 12476 | }, { |
| 12477 | .eraseblocks = { {256 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12478 | .block_erase = spi_block_erase_c7, |
| 12479 | } |
| 12480 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12481 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12482 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12483 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12484 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12485 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12486 | }, |
| 12487 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12488 | { |
| 12489 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12490 | .name = "W25X40", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12491 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12492 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12493 | .model_id = WINBOND_NEX_W25X40, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12494 | .total_size = 512, |
| 12495 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 12496 | .feature_bits = FEATURE_WRSR_WREN, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 12497 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12498 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12499 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12500 | .block_erasers = |
| 12501 | { |
| 12502 | { |
| 12503 | .eraseblocks = { {4 * 1024, 128} }, |
| 12504 | .block_erase = spi_block_erase_20, |
| 12505 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12506 | .eraseblocks = { {64 * 1024, 8} }, |
| 12507 | .block_erase = spi_block_erase_d8, |
| 12508 | }, { |
| 12509 | .eraseblocks = { {512 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12510 | .block_erase = spi_block_erase_c7, |
| 12511 | } |
| 12512 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12513 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12514 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12515 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12516 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12517 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12518 | }, |
| 12519 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12520 | { |
| 12521 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12522 | .name = "W25X80", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12523 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12524 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12525 | .model_id = WINBOND_NEX_W25X80, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12526 | .total_size = 1024, |
| 12527 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 12528 | .feature_bits = FEATURE_WRSR_WREN, |
Yul Rottmann | 6d6ab74 | 2011-03-05 16:31:57 +0000 | [diff] [blame] | 12529 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12530 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 12531 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12532 | .block_erasers = |
| 12533 | { |
| 12534 | { |
| 12535 | .eraseblocks = { {4 * 1024, 256} }, |
| 12536 | .block_erase = spi_block_erase_20, |
| 12537 | }, { |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12538 | .eraseblocks = { {64 * 1024, 16} }, |
| 12539 | .block_erase = spi_block_erase_d8, |
| 12540 | }, { |
| 12541 | .eraseblocks = { {1024 * 1024, 1} }, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12542 | .block_erase = spi_block_erase_c7, |
| 12543 | } |
| 12544 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12545 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12546 | .unlock = spi_disable_blockprotect, |
Carl-Daniel Hailfinger | 8d49701 | 2009-05-09 02:34:18 +0000 | [diff] [blame] | 12547 | .write = spi_chip_write_256, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12548 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12549 | .voltage = {2700, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12550 | }, |
| 12551 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12552 | { |
| 12553 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12554 | .name = "W25X16", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12555 | .bustype = BUS_SPI, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 12556 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12557 | .model_id = WINBOND_NEX_W25X16, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 12558 | .total_size = 2048, |
| 12559 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 12560 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | 8179be5 | 2011-06-04 13:13:34 +0000 | [diff] [blame] | 12561 | .tested = TEST_OK_PREW, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 12562 | .probe = probe_spi_rdid, |
| 12563 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12564 | .block_erasers = |
| 12565 | { |
| 12566 | { |
| 12567 | .eraseblocks = { {4 * 1024, 512} }, |
| 12568 | .block_erase = spi_block_erase_20, |
| 12569 | }, { |
| 12570 | .eraseblocks = { {32 * 1024, 64} }, |
| 12571 | .block_erase = spi_block_erase_52, |
| 12572 | }, { |
| 12573 | .eraseblocks = { {64 * 1024, 32} }, |
| 12574 | .block_erase = spi_block_erase_d8, |
| 12575 | }, { |
| 12576 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12577 | .block_erase = spi_block_erase_60, |
| 12578 | }, { |
| 12579 | .eraseblocks = { {2 * 1024 * 1024, 1} }, |
| 12580 | .block_erase = spi_block_erase_c7, |
| 12581 | } |
| 12582 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12583 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12584 | .unlock = spi_disable_blockprotect, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 12585 | .write = spi_chip_write_256, |
| 12586 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12587 | .voltage = {2700, 3600}, |
Hector Martin | a721ae2 | 2009-07-11 19:39:11 +0000 | [diff] [blame] | 12588 | }, |
| 12589 | |
| 12590 | { |
| 12591 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12592 | .name = "W25X32", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12593 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12594 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12595 | .model_id = WINBOND_NEX_W25X32, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12596 | .total_size = 4096, |
| 12597 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 12598 | .feature_bits = FEATURE_WRSR_WREN, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 12599 | .tested = TEST_OK_PREW, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12600 | .probe = probe_spi_rdid, |
| 12601 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12602 | .block_erasers = |
| 12603 | { |
| 12604 | { |
| 12605 | .eraseblocks = { {4 * 1024, 1024} }, |
| 12606 | .block_erase = spi_block_erase_20, |
| 12607 | }, { |
| 12608 | .eraseblocks = { {32 * 1024, 128} }, |
| 12609 | .block_erase = spi_block_erase_52, |
| 12610 | }, { |
| 12611 | .eraseblocks = { {64 * 1024, 64} }, |
| 12612 | .block_erase = spi_block_erase_d8, |
| 12613 | }, { |
| 12614 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12615 | .block_erase = spi_block_erase_60, |
| 12616 | }, { |
| 12617 | .eraseblocks = { {4 * 1024 * 1024, 1} }, |
| 12618 | .block_erase = spi_block_erase_c7, |
| 12619 | } |
| 12620 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12621 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12622 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12623 | .write = spi_chip_write_256, |
| 12624 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12625 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12626 | }, |
| 12627 | |
| 12628 | { |
| 12629 | .vendor = "Winbond", |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12630 | .name = "W25X64", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12631 | .bustype = BUS_SPI, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12632 | .manufacture_id = WINBOND_NEX_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12633 | .model_id = WINBOND_NEX_W25X64, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12634 | .total_size = 8192, |
| 12635 | .page_size = 256, |
David Hendricks | 2cbb722 | 2010-09-03 03:06:07 +0000 | [diff] [blame] | 12636 | .feature_bits = FEATURE_WRSR_WREN, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 12637 | .tested = TEST_OK_PROBE, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12638 | .probe = probe_spi_rdid, |
| 12639 | .probe_timing = TIMING_ZERO, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12640 | .block_erasers = |
| 12641 | { |
| 12642 | { |
| 12643 | .eraseblocks = { {4 * 1024, 2048} }, |
| 12644 | .block_erase = spi_block_erase_20, |
| 12645 | }, { |
| 12646 | .eraseblocks = { {32 * 1024, 256} }, |
| 12647 | .block_erase = spi_block_erase_52, |
| 12648 | }, { |
| 12649 | .eraseblocks = { {64 * 1024, 128} }, |
| 12650 | .block_erase = spi_block_erase_d8, |
| 12651 | }, { |
| 12652 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 12653 | .block_erase = spi_block_erase_60, |
| 12654 | }, { |
| 12655 | .eraseblocks = { {8 * 1024 * 1024, 1} }, |
| 12656 | .block_erase = spi_block_erase_c7, |
| 12657 | } |
| 12658 | }, |
Stefan Tauner | 6ee37e2 | 2012-12-29 15:03:51 +0000 | [diff] [blame] | 12659 | .printlock = spi_prettyprint_status_register_plain, /* TODO: improve */ |
Carl-Daniel Hailfinger | 29a1c66 | 2010-07-14 20:21:22 +0000 | [diff] [blame] | 12660 | .unlock = spi_disable_blockprotect, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12661 | .write = spi_chip_write_256, |
| 12662 | .read = spi_chip_read, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12663 | .voltage = {2700, 3600}, |
Zheng Bao | 1db2b75 | 2009-11-26 11:05:01 +0000 | [diff] [blame] | 12664 | }, |
| 12665 | |
| 12666 | { |
| 12667 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 12668 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012-old", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12669 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 12670 | .manufacture_id = WINBOND_ID, |
| 12671 | .model_id = WINBOND_W29C010, |
| 12672 | .total_size = 128, |
| 12673 | .page_size = 128, |
| 12674 | .feature_bits = FEATURE_LONG_RESET, |
Stefan Tauner | c2eec2c | 2014-05-03 21:33:01 +0000 | [diff] [blame] | 12675 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 2e88a9f | 2011-07-26 14:18:52 +0000 | [diff] [blame] | 12676 | .probe = probe_w29ee011, |
| 12677 | .probe_timing = TIMING_IGNORED, /* routine doesn't use probe_timing (w29ee011.c) */ |
| 12678 | .block_erasers = |
| 12679 | { |
| 12680 | { |
| 12681 | .eraseblocks = { {128 * 1024, 1} }, |
| 12682 | .block_erase = erase_chip_block_jedec, |
| 12683 | } |
| 12684 | }, |
| 12685 | .write = write_jedec, |
| 12686 | .read = read_memmapped, |
| 12687 | }, |
| 12688 | |
| 12689 | {/* W29EE011, W29EE012, W29C010M, W29C011A do not support probe_jedec according to the datasheet, but it works for newer(?) steppings. */ |
| 12690 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12691 | .name = "W29C010(M)/W29C011A/W29EE011/W29EE012", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12692 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12693 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12694 | .model_id = WINBOND_W29C010, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12695 | .total_size = 128, |
| 12696 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12697 | .feature_bits = FEATURE_LONG_RESET, |
David Hendricks | 567b7b8 | 2011-05-18 01:31:03 +0000 | [diff] [blame] | 12698 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12699 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 12700 | .probe_timing = 10, /* used datasheet for the W29C011A */ |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12701 | .block_erasers = |
| 12702 | { |
| 12703 | { |
| 12704 | .eraseblocks = { {128 * 1024, 1} }, |
| 12705 | .block_erase = erase_chip_block_jedec, |
| 12706 | } |
| 12707 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12708 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12709 | .read = read_memmapped, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12710 | }, |
| 12711 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12712 | { |
| 12713 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12714 | .name = "W29C020(C)/W29C022", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12715 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12716 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12717 | .model_id = WINBOND_W29C020, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12718 | .total_size = 256, |
| 12719 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12720 | .feature_bits = FEATURE_LONG_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12721 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12722 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 12723 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12724 | .block_erasers = |
| 12725 | { |
| 12726 | { |
| 12727 | .eraseblocks = { {256 * 1024, 1} }, |
| 12728 | .block_erase = erase_chip_block_jedec, |
| 12729 | } |
| 12730 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12731 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12732 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12733 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12734 | }, |
| 12735 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12736 | { |
| 12737 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12738 | .name = "W29C040/P", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12739 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12740 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12741 | .model_id = WINBOND_W29C040, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12742 | .total_size = 512, |
| 12743 | .page_size = 256, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12744 | .feature_bits = FEATURE_LONG_RESET, |
| 12745 | .tested = TEST_UNTESTED, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12746 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 12747 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12748 | .block_erasers = |
| 12749 | { |
| 12750 | { |
| 12751 | .eraseblocks = { {512 * 1024, 1} }, |
| 12752 | .block_erase = erase_chip_block_jedec, |
| 12753 | } |
| 12754 | }, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12755 | .write = write_jedec, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12756 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12757 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12758 | }, |
| 12759 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12760 | { |
| 12761 | .vendor = "Winbond", |
Kyösti Mälkki | c31243e | 2012-10-28 01:50:08 +0000 | [diff] [blame] | 12762 | .name = "W39F010", |
| 12763 | .bustype = BUS_PARALLEL, |
| 12764 | .manufacture_id = WINBOND_ID, |
| 12765 | .model_id = WINBOND_W39F010, |
| 12766 | .total_size = 128, |
| 12767 | .page_size = 4 * 1024, |
| 12768 | .feature_bits = FEATURE_EITHER_RESET, |
| 12769 | .tested = TEST_OK_PREW, |
| 12770 | .probe = probe_jedec, |
| 12771 | .probe_timing = 10, |
| 12772 | .block_erasers = |
| 12773 | { |
| 12774 | { |
| 12775 | .eraseblocks = { {4 * 1024, 32} }, |
| 12776 | .block_erase = erase_block_jedec, |
| 12777 | }, { |
| 12778 | .eraseblocks = { {128 * 1024, 1} }, |
| 12779 | .block_erase = erase_chip_block_jedec, |
| 12780 | } |
| 12781 | }, |
| 12782 | .printlock = printlock_w39f010, |
| 12783 | .write = write_jedec_1, |
| 12784 | .read = read_memmapped, |
| 12785 | .voltage = {4500, 5500}, |
| 12786 | }, |
| 12787 | |
| 12788 | { |
| 12789 | .vendor = "Winbond", |
| 12790 | .name = "W39L010", |
| 12791 | .bustype = BUS_PARALLEL, |
| 12792 | .manufacture_id = WINBOND_ID, |
| 12793 | .model_id = WINBOND_W39L010, |
| 12794 | .total_size = 128, |
| 12795 | .page_size = 4 * 1024, |
| 12796 | .feature_bits = FEATURE_EITHER_RESET, |
| 12797 | .tested = TEST_UNTESTED, |
| 12798 | .probe = probe_jedec, |
| 12799 | .probe_timing = 10, |
| 12800 | .block_erasers = |
| 12801 | { |
| 12802 | { |
| 12803 | .eraseblocks = { {4 * 1024, 32} }, |
| 12804 | .block_erase = erase_block_jedec, |
| 12805 | }, { |
| 12806 | .eraseblocks = { {128 * 1024, 1} }, |
| 12807 | .block_erase = erase_chip_block_jedec, |
| 12808 | } |
| 12809 | }, |
| 12810 | .printlock = printlock_w39l010, |
| 12811 | .write = write_jedec_1, |
| 12812 | .read = read_memmapped, |
| 12813 | .voltage = {3000, 3600}, |
| 12814 | }, |
| 12815 | |
| 12816 | { |
| 12817 | .vendor = "Winbond", |
| 12818 | .name = "W39L020", |
| 12819 | .bustype = BUS_PARALLEL, |
| 12820 | .manufacture_id = WINBOND_ID, |
| 12821 | .model_id = WINBOND_W39L020, |
| 12822 | .total_size = 256, |
| 12823 | .page_size = 4 * 1024, |
| 12824 | .feature_bits = FEATURE_EITHER_RESET, |
| 12825 | .tested = TEST_UNTESTED, |
| 12826 | .probe = probe_jedec, |
| 12827 | .probe_timing = 10, |
| 12828 | .block_erasers = |
| 12829 | { |
| 12830 | { |
| 12831 | .eraseblocks = { {4 * 1024, 64} }, |
| 12832 | .block_erase = erase_block_jedec, |
| 12833 | }, { |
| 12834 | .eraseblocks = { {64 * 1024, 4} }, |
| 12835 | .block_erase = erase_sector_jedec, |
| 12836 | }, { |
| 12837 | .eraseblocks = { {256 * 1024, 1} }, |
| 12838 | .block_erase = erase_chip_block_jedec, |
| 12839 | } |
| 12840 | }, |
| 12841 | .printlock = printlock_w39l020, |
| 12842 | .write = write_jedec_1, |
| 12843 | .read = read_memmapped, |
| 12844 | .voltage = {3000, 3600}, |
| 12845 | }, |
| 12846 | |
| 12847 | { |
| 12848 | .vendor = "Winbond", |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 12849 | .name = "W39L040", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12850 | .bustype = BUS_PARALLEL, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 12851 | .manufacture_id = WINBOND_ID, |
| 12852 | .model_id = WINBOND_W39L040, |
| 12853 | .total_size = 512, |
| 12854 | .page_size = 64 * 1024, |
| 12855 | .feature_bits = FEATURE_EITHER_RESET, |
| 12856 | .tested = TEST_OK_PR, |
| 12857 | .probe = probe_jedec, |
| 12858 | .probe_timing = 10, |
| 12859 | .block_erasers = |
| 12860 | { |
| 12861 | { |
| 12862 | .eraseblocks = { {4 * 1024, 128} }, |
| 12863 | .block_erase = erase_block_jedec, |
| 12864 | }, { |
| 12865 | .eraseblocks = { {64 * 1024, 8} }, |
| 12866 | .block_erase = erase_sector_jedec, |
| 12867 | }, { |
| 12868 | .eraseblocks = { {512 * 1024, 1} }, |
| 12869 | .block_erase = erase_chip_block_jedec, |
| 12870 | } |
| 12871 | }, |
| 12872 | .printlock = printlock_w39l040, |
| 12873 | .write = write_jedec_1, |
| 12874 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 12875 | .voltage = {3000, 3600}, |
Michael Karcher | 19e0aac | 2011-03-06 17:58:05 +0000 | [diff] [blame] | 12876 | }, |
| 12877 | |
| 12878 | { |
| 12879 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12880 | .name = "W39V040A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12881 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12882 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12883 | .model_id = WINBOND_W39V040A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12884 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12885 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12886 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 12887 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12888 | .probe = probe_jedec, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 12889 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12890 | .block_erasers = |
| 12891 | { |
| 12892 | { |
| 12893 | .eraseblocks = { {64 * 1024, 8} }, |
| 12894 | .block_erase = erase_sector_jedec, |
| 12895 | }, { |
| 12896 | .eraseblocks = { {512 * 1024, 1} }, |
| 12897 | .block_erase = erase_chip_block_jedec, |
| 12898 | } |
| 12899 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12900 | .printlock = printlock_w39v040a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12901 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12902 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12903 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12904 | }, |
| 12905 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12906 | { |
| 12907 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12908 | .name = "W39V040B", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12909 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12910 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12911 | .model_id = WINBOND_W39V040B, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12912 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12913 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12914 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 12915 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12916 | .probe = probe_jedec, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 12917 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12918 | .block_erasers = |
| 12919 | { |
| 12920 | { |
| 12921 | .eraseblocks = { {64 * 1024, 8} }, |
| 12922 | .block_erase = erase_sector_jedec, |
| 12923 | }, { |
| 12924 | .eraseblocks = { {512 * 1024, 1} }, |
| 12925 | .block_erase = erase_chip_block_jedec, |
| 12926 | } |
| 12927 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12928 | .printlock = printlock_w39v040b, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12929 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12930 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12931 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12932 | }, |
| 12933 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12934 | { |
| 12935 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12936 | .name = "W39V040C", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12937 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12938 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12939 | .model_id = WINBOND_W39V040C, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12940 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12941 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12942 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | 018d482 | 2011-10-21 12:33:07 +0000 | [diff] [blame] | 12943 | .tested = TEST_OK_PREW, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12944 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12945 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12946 | .block_erasers = |
| 12947 | { |
| 12948 | { |
| 12949 | .eraseblocks = { {64 * 1024, 8} }, |
| 12950 | .block_erase = erase_sector_jedec, |
| 12951 | }, { |
| 12952 | .eraseblocks = { {512 * 1024, 1} }, |
| 12953 | .block_erase = erase_chip_block_jedec, |
| 12954 | } |
| 12955 | }, |
Sean Nelson | 6e0b912 | 2010-02-19 00:52:10 +0000 | [diff] [blame] | 12956 | .printlock = printlock_w39v040c, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12957 | .write = write_jedec_1, |
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}, |
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 = "Winbond", |
| 12964 | .name = "W39V040FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12965 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12966 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 12967 | .model_id = WINBOND_W39V040FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12968 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 12969 | .page_size = 64 * 1024, |
Michael Karcher | c9b6341 | 2010-05-30 16:55:18 +0000 | [diff] [blame] | 12970 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 12971 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12972 | .probe = probe_jedec, |
Antony Rheneus | 0fbba98 | 2011-05-26 14:28:51 +0000 | [diff] [blame] | 12973 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 12974 | .block_erasers = |
| 12975 | { |
| 12976 | { |
| 12977 | .eraseblocks = { {4 * 1024, 128} }, |
| 12978 | .block_erase = erase_block_jedec, |
| 12979 | }, { |
| 12980 | .eraseblocks = { {64 * 1024, 8} }, |
| 12981 | .block_erase = erase_sector_jedec, |
| 12982 | }, { |
| 12983 | .eraseblocks = { {512 * 1024, 1} }, |
| 12984 | .block_erase = erase_chip_block_jedec, |
| 12985 | } |
| 12986 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12987 | .printlock = printlock_w39v040fa, |
Michael Karcher | c9b6341 | 2010-05-30 16:55:18 +0000 | [diff] [blame] | 12988 | .unlock = unlock_sst_fwhub, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 12989 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 12990 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 12991 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 12992 | }, |
| 12993 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 12994 | { |
| 12995 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12996 | .name = "W39V040FB", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 12997 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 12998 | .manufacture_id = WINBOND_ID, |
| 12999 | .model_id = WINBOND_W39V040B, |
| 13000 | .total_size = 512, |
| 13001 | .page_size = 64 * 1024, |
| 13002 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Idwer Vollering | 67f2814 | 2011-03-06 22:26:23 +0000 | [diff] [blame] | 13003 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 13004 | .probe = probe_jedec, |
Stefan Tauner | 0554ca5 | 2013-07-25 22:54:25 +0000 | [diff] [blame] | 13005 | .probe_timing = 10, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 13006 | .block_erasers = |
| 13007 | { |
| 13008 | { |
| 13009 | .eraseblocks = { {64 * 1024, 8} }, |
| 13010 | .block_erase = erase_sector_jedec, |
| 13011 | }, { |
| 13012 | .eraseblocks = { {512 * 1024, 1} }, |
| 13013 | .block_erase = erase_chip_block_jedec, |
| 13014 | } |
| 13015 | }, |
| 13016 | .printlock = printlock_w39v040fb, |
Idwer Vollering | ecc6707 | 2010-12-26 23:55:12 +0000 | [diff] [blame] | 13017 | .unlock = unlock_w39v040fb, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 13018 | .write = write_jedec_1, |
| 13019 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 13020 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 13021 | }, |
| 13022 | |
| 13023 | { |
| 13024 | .vendor = "Winbond", |
| 13025 | .name = "W39V040FC", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13026 | .bustype = BUS_FWH, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 13027 | .manufacture_id = WINBOND_ID, |
| 13028 | .model_id = WINBOND_W39V040C, |
| 13029 | .total_size = 512, |
| 13030 | .page_size = 64 * 1024, |
| 13031 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 13032 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 13033 | .probe = probe_jedec, |
| 13034 | .probe_timing = 10, |
| 13035 | .block_erasers = |
| 13036 | { |
| 13037 | { |
| 13038 | .eraseblocks = { {64 * 1024, 8} }, |
| 13039 | .block_erase = erase_sector_jedec, |
| 13040 | }, { |
| 13041 | .eraseblocks = { {512 * 1024, 1} }, |
| 13042 | .block_erase = erase_chip_block_jedec, |
| 13043 | } |
| 13044 | }, |
| 13045 | .printlock = printlock_w39v040fc, |
| 13046 | .write = write_jedec_1, |
| 13047 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 13048 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 13049 | }, |
| 13050 | |
| 13051 | { |
| 13052 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13053 | .name = "W39V080A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13054 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13055 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 13056 | .model_id = WINBOND_W39V080A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13057 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 13058 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13059 | .feature_bits = FEATURE_EITHER_RESET, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 13060 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13061 | .probe = probe_jedec, |
Paul Menzel | ac427b2 | 2012-02-16 21:07:07 +0000 | [diff] [blame] | 13062 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 13063 | .block_erasers = |
| 13064 | { |
| 13065 | { |
| 13066 | .eraseblocks = { {64 * 1024, 16} }, |
| 13067 | .block_erase = erase_sector_jedec, |
| 13068 | }, { |
| 13069 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13070 | .block_erase = erase_chip_block_jedec, |
| 13071 | } |
| 13072 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 13073 | .printlock = printlock_w39v080a, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13074 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13075 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13076 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13077 | }, |
| 13078 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13079 | { |
| 13080 | .vendor = "Winbond", |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 13081 | .name = "W49F002U/N", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13082 | .bustype = BUS_PARALLEL, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13083 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 13084 | .model_id = WINBOND_W49F002U, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13085 | .total_size = 256, |
| 13086 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13087 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 13088 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13089 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13090 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 13091 | .block_erasers = |
| 13092 | { |
| 13093 | { |
| 13094 | .eraseblocks = { |
| 13095 | {128 * 1024, 1}, |
| 13096 | {96 * 1024, 1}, |
| 13097 | {8 * 1024, 2}, |
| 13098 | {16 * 1024, 1}, |
| 13099 | }, |
| 13100 | .block_erase = erase_sector_jedec, |
| 13101 | }, { |
| 13102 | .eraseblocks = { {256 * 1024, 1} }, |
| 13103 | .block_erase = erase_chip_block_jedec, |
| 13104 | } |
| 13105 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13106 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13107 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13108 | .voltage = {4500, 5500}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13109 | }, |
| 13110 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13111 | { |
| 13112 | .vendor = "Winbond", |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 13113 | .name = "W49F020", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13114 | .bustype = BUS_PARALLEL, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 13115 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 13116 | .model_id = WINBOND_W49F020, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 13117 | .total_size = 256, |
| 13118 | .page_size = 128, |
| 13119 | .feature_bits = FEATURE_EITHER_RESET, |
| 13120 | .tested = TEST_OK_PROBE, |
| 13121 | .probe = probe_jedec, |
| 13122 | .probe_timing = 10, |
| 13123 | .block_erasers = |
| 13124 | { |
| 13125 | { |
| 13126 | .eraseblocks = { {256 * 1024, 1} }, |
| 13127 | .block_erase = erase_chip_block_jedec, |
| 13128 | } |
| 13129 | }, |
| 13130 | .write = write_jedec_1, |
| 13131 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13132 | .voltage = {4500, 5500}, |
Carl-Daniel Hailfinger | abebe6b | 2010-07-17 13:45:42 +0000 | [diff] [blame] | 13133 | }, |
| 13134 | |
| 13135 | { |
| 13136 | .vendor = "Winbond", |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13137 | .name = "W49V002A", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13138 | .bustype = BUS_LPC, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13139 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 13140 | .model_id = WINBOND_W49V002A, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13141 | .total_size = 256, |
| 13142 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13143 | .feature_bits = FEATURE_EITHER_RESET, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 13144 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13145 | .probe = probe_jedec, |
Cristian Măgherușan-Stanciu | 9932c7b | 2011-07-07 19:56:58 +0000 | [diff] [blame] | 13146 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 13147 | .block_erasers = |
| 13148 | { |
| 13149 | { |
| 13150 | .eraseblocks = { |
| 13151 | {64 * 1024, 3}, |
| 13152 | {32 * 1024, 1}, |
| 13153 | {8 * 1024, 2}, |
| 13154 | {16 * 1024, 1}, |
| 13155 | }, |
| 13156 | .block_erase = erase_sector_jedec, |
| 13157 | }, { |
| 13158 | .eraseblocks = { {256 * 1024, 1} }, |
| 13159 | .block_erase = erase_chip_block_jedec, |
| 13160 | } |
| 13161 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13162 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13163 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13164 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13165 | }, |
| 13166 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13167 | { |
| 13168 | .vendor = "Winbond", |
| 13169 | .name = "W49V002FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13170 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13171 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 13172 | .model_id = WINBOND_W49V002FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13173 | .total_size = 256, |
| 13174 | .page_size = 128, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13175 | .feature_bits = FEATURE_EITHER_RESET, |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 13176 | .tested = TEST_OK_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13177 | .probe = probe_jedec, |
Udu Ogah | c04ee22 | 2009-09-05 01:31:32 +0000 | [diff] [blame] | 13178 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 13179 | .block_erasers = |
| 13180 | { |
| 13181 | { |
| 13182 | .eraseblocks = { |
| 13183 | {64 * 1024, 3}, |
| 13184 | {32 * 1024, 1}, |
| 13185 | {8 * 1024, 2}, |
| 13186 | {16 * 1024, 1}, |
| 13187 | }, |
| 13188 | .block_erase = erase_sector_jedec, |
| 13189 | }, { |
| 13190 | .eraseblocks = { {256 * 1024, 1} }, |
| 13191 | .block_erase = erase_chip_block_jedec, |
| 13192 | } |
| 13193 | }, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13194 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13195 | .read = read_memmapped, |
Steven Zakulec | cbe370e | 2011-06-03 07:26:31 +0000 | [diff] [blame] | 13196 | .voltage = {3000, 3600}, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13197 | }, |
| 13198 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13199 | { |
| 13200 | .vendor = "Winbond", |
| 13201 | .name = "W39V080FA", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13202 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13203 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 13204 | .model_id = WINBOND_W39V080FA, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13205 | .total_size = 1024, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 13206 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13207 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stefan Tauner | 716e098 | 2011-07-25 20:38:52 +0000 | [diff] [blame] | 13208 | .tested = TEST_OK_PREW, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 13209 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 13210 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 13211 | .block_erasers = |
| 13212 | { |
| 13213 | { |
| 13214 | .eraseblocks = { {64 * 1024, 16}, }, |
| 13215 | .block_erase = erase_sector_jedec, |
| 13216 | }, { |
| 13217 | .eraseblocks = { {1024 * 1024, 1} }, |
| 13218 | .block_erase = erase_chip_block_jedec, |
| 13219 | } |
| 13220 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 13221 | .printlock = printlock_w39v080fa, |
| 13222 | .unlock = unlock_w39v080fa, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13223 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13224 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 13225 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13226 | }, |
| 13227 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13228 | { |
| 13229 | .vendor = "Winbond", |
| 13230 | .name = "W39V080FA (dual mode)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13231 | .bustype = BUS_FWH, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13232 | .manufacture_id = WINBOND_ID, |
Mattias Mattsson | a745cf4 | 2010-09-14 23:56:56 +0000 | [diff] [blame] | 13233 | .model_id = WINBOND_W39V080FA_DM, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13234 | .total_size = 512, |
Sean Nelson | 72a9a02 | 2009-12-22 22:15:33 +0000 | [diff] [blame] | 13235 | .page_size = 64 * 1024, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13236 | .feature_bits = FEATURE_REGISTERMAP | FEATURE_EITHER_RESET, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13237 | .tested = TEST_UNTESTED, |
Carl-Daniel Hailfinger | e940466 | 2010-01-09 02:24:17 +0000 | [diff] [blame] | 13238 | .probe = probe_jedec, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 13239 | .probe_timing = 10, |
Sean Nelson | cfc35cd | 2010-01-19 03:24:55 +0000 | [diff] [blame] | 13240 | .block_erasers = |
| 13241 | { |
| 13242 | { |
| 13243 | .eraseblocks = { {64 * 1024, 8}, }, |
| 13244 | .block_erase = erase_sector_jedec, |
| 13245 | }, { |
| 13246 | .eraseblocks = { {512 * 1024, 1} }, |
| 13247 | .block_erase = erase_chip_block_jedec, |
| 13248 | } |
| 13249 | }, |
Carl-Daniel Hailfinger | 9188240 | 2010-12-05 16:33:59 +0000 | [diff] [blame] | 13250 | .printlock = printlock_w39v080fa_dual, |
Sean Nelson | 35727f7 | 2010-01-28 23:55:12 +0000 | [diff] [blame] | 13251 | .write = write_jedec_1, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13252 | .read = read_memmapped, |
Steven Zakulec | 7d257b4 | 2011-07-19 08:50:18 +0000 | [diff] [blame] | 13253 | .voltage = {3000, 3600}, /* Also has 12V fast program */ |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13254 | }, |
Stefan Tauner | ac1b4c8 | 2012-02-17 14:51:04 +0000 | [diff] [blame] | 13255 | |
| 13256 | { |
| 13257 | .vendor = "Unknown", |
| 13258 | .name = "SFDP-capable chip", |
| 13259 | .bustype = BUS_SPI, |
| 13260 | .manufacture_id = GENERIC_MANUF_ID, |
| 13261 | .model_id = SFDP_DEVICE_ID, |
| 13262 | /* We present our own "report this" text hence we do not |
| 13263 | * want the default "This flash part has status UNTESTED..." |
| 13264 | * text to be printed. */ |
| 13265 | .tested = TEST_OK_PREW, |
| 13266 | .probe = probe_spi_sfdp, |
| 13267 | .unlock = spi_disable_blockprotect, /* is this safe? */ |
| 13268 | .read = spi_chip_read, |
| 13269 | /* FIXME: some vendor extensions define this */ |
Carl-Daniel Hailfinger | 1c6d2ff | 2012-08-27 00:44:42 +0000 | [diff] [blame] | 13270 | .voltage = {0}, |
Stefan Tauner | ac1b4c8 | 2012-02-17 14:51:04 +0000 | [diff] [blame] | 13271 | /* Everything below will be set by the probing function. */ |
| 13272 | .write = NULL, |
| 13273 | .total_size = 0, |
| 13274 | .page_size = 0, |
| 13275 | .feature_bits = 0, |
| 13276 | .block_erasers = {}, |
| 13277 | }, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13278 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13279 | { |
Carl-Daniel Hailfinger | 532c717 | 2011-11-04 21:35:26 +0000 | [diff] [blame] | 13280 | .vendor = "Programmer", |
| 13281 | .name = "Opaque flash chip", |
| 13282 | .bustype = BUS_PROG, |
| 13283 | .manufacture_id = PROGMANUF_ID, |
| 13284 | .model_id = PROGDEV_ID, |
| 13285 | .total_size = 0, |
| 13286 | .page_size = 256, |
| 13287 | /* probe is assumed to work, rest will be filled in by probe */ |
| 13288 | .tested = TEST_OK_PROBE, |
| 13289 | .probe = probe_opaque, |
| 13290 | /* eraseblock sizes will be set by the probing function */ |
| 13291 | .block_erasers = |
| 13292 | { |
| 13293 | { |
| 13294 | .block_erase = erase_opaque, |
| 13295 | } |
| 13296 | }, |
| 13297 | .write = write_opaque, |
| 13298 | .read = read_opaque, |
| 13299 | }, |
| 13300 | |
| 13301 | { |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 13302 | .vendor = "AMIC", |
| 13303 | .name = "unknown AMIC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13304 | .bustype = BUS_SPI, |
Daniel Lenski | df90d3a | 2010-07-22 11:44:38 +0000 | [diff] [blame] | 13305 | .manufacture_id = AMIC_ID, |
| 13306 | .model_id = GENERIC_DEVICE_ID, |
| 13307 | .total_size = 0, |
| 13308 | .page_size = 256, |
| 13309 | .tested = TEST_BAD_PREW, |
| 13310 | .probe = probe_spi_rdid4, |
| 13311 | .probe_timing = TIMING_ZERO, |
| 13312 | .write = NULL, |
| 13313 | .read = NULL, |
| 13314 | }, |
| 13315 | |
| 13316 | { |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13317 | .vendor = "Atmel", |
| 13318 | .name = "unknown Atmel SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13319 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13320 | .manufacture_id = ATMEL_ID, |
| 13321 | .model_id = GENERIC_DEVICE_ID, |
| 13322 | .total_size = 0, |
| 13323 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 13324 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13325 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13326 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13327 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13328 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13329 | }, |
| 13330 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13331 | { |
Carl-Daniel Hailfinger | f792c7d | 2010-07-28 22:20:20 +0000 | [diff] [blame] | 13332 | .vendor = "Eon", |
| 13333 | .name = "unknown Eon SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13334 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13335 | .manufacture_id = EON_ID_NOPREFIX, |
| 13336 | .model_id = GENERIC_DEVICE_ID, |
| 13337 | .total_size = 0, |
| 13338 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 13339 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13340 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13341 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13342 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13343 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13344 | }, |
| 13345 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13346 | { |
| 13347 | .vendor = "Macronix", |
| 13348 | .name = "unknown Macronix SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13349 | .bustype = BUS_SPI, |
Mattias Mattsson | 6eabe28 | 2010-09-15 23:31:03 +0000 | [diff] [blame] | 13350 | .manufacture_id = MACRONIX_ID, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13351 | .model_id = GENERIC_DEVICE_ID, |
| 13352 | .total_size = 0, |
| 13353 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 13354 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13355 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13356 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13357 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13358 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13359 | }, |
| 13360 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13361 | { |
| 13362 | .vendor = "PMC", |
| 13363 | .name = "unknown PMC SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13364 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13365 | .manufacture_id = PMC_ID, |
| 13366 | .model_id = GENERIC_DEVICE_ID, |
| 13367 | .total_size = 0, |
| 13368 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 13369 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13370 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13371 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13372 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13373 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13374 | }, |
| 13375 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13376 | { |
| 13377 | .vendor = "SST", |
| 13378 | .name = "unknown SST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13379 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13380 | .manufacture_id = SST_ID, |
| 13381 | .model_id = GENERIC_DEVICE_ID, |
| 13382 | .total_size = 0, |
| 13383 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 13384 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13385 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13386 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13387 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13388 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13389 | }, |
| 13390 | |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13391 | { |
| 13392 | .vendor = "ST", |
| 13393 | .name = "unknown ST SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13394 | .bustype = BUS_SPI, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13395 | .manufacture_id = ST_ID, |
| 13396 | .model_id = GENERIC_DEVICE_ID, |
| 13397 | .total_size = 0, |
| 13398 | .page_size = 256, |
Carl-Daniel Hailfinger | 42882fd | 2009-04-22 13:33:43 +0000 | [diff] [blame] | 13399 | .tested = TEST_BAD_PREW, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13400 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 2bc020b | 2009-06-05 13:46:17 +0000 | [diff] [blame] | 13401 | .probe_timing = TIMING_ZERO, |
Stephan Guilloux | 5c5b525 | 2009-01-08 03:40:17 +0000 | [diff] [blame] | 13402 | .write = NULL, |
Carl-Daniel Hailfinger | 03b4e71 | 2009-05-08 12:49:03 +0000 | [diff] [blame] | 13403 | .read = NULL, |
FENG yu ning | ff692fb | 2008-12-08 18:15:10 +0000 | [diff] [blame] | 13404 | }, |
Uwe Hermann | fc425e8 | 2008-03-16 02:06:25 +0000 | [diff] [blame] | 13405 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 13406 | { |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 13407 | .vendor = "Sanyo", |
| 13408 | .name = "unknown Sanyo SPI chip", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13409 | .bustype = BUS_SPI, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 13410 | .manufacture_id = SANYO_ID, |
| 13411 | .model_id = GENERIC_DEVICE_ID, |
| 13412 | .total_size = 0, |
| 13413 | .page_size = 256, |
| 13414 | .tested = TEST_BAD_PREW, |
| 13415 | .probe = probe_spi_rdid, |
| 13416 | .probe_timing = TIMING_ZERO, |
Sean Nelson | 118e1d6 | 2009-11-24 02:08:11 +0000 | [diff] [blame] | 13417 | .write = NULL, |
| 13418 | .read = NULL, |
| 13419 | }, |
| 13420 | |
| 13421 | { |
Stefan Tauner | eb58257 | 2012-09-21 12:52:50 +0000 | [diff] [blame] | 13422 | .vendor = "Winbond", |
| 13423 | .name = "unknown Winbond (ex Nexcom) SPI chip", |
| 13424 | .bustype = BUS_SPI, |
| 13425 | .manufacture_id = WINBOND_NEX_ID, |
| 13426 | .model_id = GENERIC_DEVICE_ID, |
| 13427 | .total_size = 0, |
| 13428 | .page_size = 256, |
| 13429 | .tested = TEST_BAD_PREW, |
| 13430 | .probe = probe_spi_rdid, |
| 13431 | .probe_timing = TIMING_ZERO, |
| 13432 | .write = NULL, |
| 13433 | .read = NULL, |
| 13434 | }, |
| 13435 | |
| 13436 | { |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 13437 | .vendor = "Generic", |
| 13438 | .name = "unknown SPI chip (RDID)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13439 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 13440 | .manufacture_id = GENERIC_MANUF_ID, |
| 13441 | .model_id = GENERIC_DEVICE_ID, |
| 13442 | .total_size = 0, |
| 13443 | .page_size = 256, |
| 13444 | .tested = TEST_BAD_PREW, |
| 13445 | .probe = probe_spi_rdid, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 13446 | .write = NULL, |
| 13447 | }, |
Stefan Tauner | af2db61 | 2011-12-02 21:48:17 +0000 | [diff] [blame] | 13448 | |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 13449 | { |
| 13450 | .vendor = "Generic", |
| 13451 | .name = "unknown SPI chip (REMS)", |
Carl-Daniel Hailfinger | 1a22795 | 2011-07-27 07:13:06 +0000 | [diff] [blame] | 13452 | .bustype = BUS_SPI, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 13453 | .manufacture_id = GENERIC_MANUF_ID, |
| 13454 | .model_id = GENERIC_DEVICE_ID, |
| 13455 | .total_size = 0, |
| 13456 | .page_size = 256, |
| 13457 | .tested = TEST_BAD_PREW, |
| 13458 | .probe = probe_spi_rems, |
Carl-Daniel Hailfinger | 01d49ed | 2009-11-20 01:12:45 +0000 | [diff] [blame] | 13459 | .write = NULL, |
| 13460 | }, |
| 13461 | |
Stefan Tauner | 96658be | 2014-05-26 22:05:31 +0000 | [diff] [blame] | 13462 | {0} |
Stephan Guilloux | 72cf565 | 2009-04-21 01:46:07 +0000 | [diff] [blame] | 13463 | }; |
Stefan Tauner | 96658be | 2014-05-26 22:05:31 +0000 | [diff] [blame] | 13464 | |
| 13465 | const unsigned int flashchips_size = ARRAY_SIZE(flashchips); |